aboutsummaryrefslogtreecommitdiffstats
path: root/libselinux/src/setfilecon.c
diff options
context:
space:
mode:
Diffstat (limited to 'libselinux/src/setfilecon.c')
-rw-r--r--libselinux/src/setfilecon.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libselinux/src/setfilecon.c b/libselinux/src/setfilecon.c
index 50cb228f..d05969c6 100644
--- a/libselinux/src/setfilecon.c
+++ b/libselinux/src/setfilecon.c
@@ -7,12 +7,12 @@
#include "selinux_internal.h"
#include "policy.h"
-int setfilecon_raw(const char *path, const security_context_t context)
+int setfilecon_raw(const char *path, const char * context)
{
int rc = setxattr(path, XATTR_NAME_SELINUX, context, strlen(context) + 1,
0);
if (rc < 0 && errno == ENOTSUP) {
- security_context_t ccontext = NULL;
+ char * ccontext = NULL;
int err = errno;
if ((getfilecon_raw(path, &ccontext) >= 0) &&
(strcmp(context,ccontext) == 0)) {
@@ -27,10 +27,10 @@ int setfilecon_raw(const char *path, const security_context_t context)
hidden_def(setfilecon_raw)
-int setfilecon(const char *path, const security_context_t context)
+int setfilecon(const char *path, const char *context)
{
int ret;
- security_context_t rcontext;
+ char * rcontext;
if (selinux_trans_to_raw_context(context, &rcontext))
return -1;