summaryrefslogtreecommitdiff
path: root/src/basic/selinux-util.c
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2017-01-09 05:53:00 +0100
committerSven Eden <yamakuzure@gmx.net>2017-03-14 10:22:32 +0100
commit4ebadef69ff96e92122a133cfecadf60816c4fa3 (patch)
treed7d65cccf110e8b12a4353c0d91db2b0b83f08dc /src/basic/selinux-util.c
parentbd1ce0bdbfc97a958a6c56fe062bed892f08444a (diff)
Prep v226: Apply missing fixes and changes to src/basic
Diffstat (limited to 'src/basic/selinux-util.c')
-rw-r--r--src/basic/selinux-util.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/basic/selinux-util.c b/src/basic/selinux-util.c
index 03ebab32c..cea80b678 100644
--- a/src/basic/selinux-util.c
+++ b/src/basic/selinux-util.c
@@ -207,11 +207,11 @@ int mac_selinux_get_create_label_from_exe(const char *exe, char **label) {
if (!mac_selinux_use())
return -EOPNOTSUPP;
- r = getcon(&mycon);
+ r = getcon_raw(&mycon);
if (r < 0)
return -errno;
- r = getfilecon(exe, &fcon);
+ r = getfilecon_raw(exe, &fcon);
if (r < 0)
return -errno;
@@ -233,7 +233,7 @@ int mac_selinux_get_our_label(char **label) {
if (!mac_selinux_use())
return -EOPNOTSUPP;
- r = getcon(label);
+ r = getcon_raw(label);
if (r < 0)
return -errno;
#endif
@@ -257,7 +257,7 @@ int mac_selinux_get_child_mls_label(int socket_fd, const char *exe, const char *
if (!mac_selinux_use())
return -EOPNOTSUPP;
- r = getcon(&mycon);
+ r = getcon_raw(&mycon);
if (r < 0)
return -errno;
@@ -268,7 +268,7 @@ int mac_selinux_get_child_mls_label(int socket_fd, const char *exe, const char *
if (!exec_label) {
/* If there is no context set for next exec let's use context
of target executable */
- r = getfilecon(exe, &fcon);
+ r = getfilecon_raw(exe, &fcon);
if (r < 0)
return -errno;
}