summaryrefslogtreecommitdiff
path: root/src/lsetfilecon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lsetfilecon.c')
-rw-r--r--src/lsetfilecon.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/lsetfilecon.c b/src/lsetfilecon.c
deleted file mode 100644
index 7147f9e..0000000
--- a/src/lsetfilecon.c
+++ /dev/null
@@ -1,15 +0,0 @@
-#include <unistd.h>
-#include <fcntl.h>
-#include <string.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <sys/xattr.h>
-#include "selinux_internal.h"
-#include "policy.h"
-
-int lsetfilecon(const char *path, const char *context)
-{
- return lsetxattr(path, XATTR_NAME_SELINUX, context, strlen(context) + 1,
- 0);
-}
-