summaryrefslogtreecommitdiff
path: root/src/shared/label.h
diff options
context:
space:
mode:
authorWaLyong Cho <walyong.cho@samsung.com>2014-10-25 13:28:03 -0400
committerAnthony G. Basile <blueness@gentoo.org>2014-10-25 13:28:03 -0400
commit1b6c7e7255cf5d03d049f63dfdea24f6f64328d1 (patch)
tree610cdafe2c6e04fe7af8d8211d728d9ced85b98e /src/shared/label.h
parenta79876e097b87ede8c75301a99e4cd964b83a933 (diff)
label: rearrange mandatory access control(MAC) apis
move label apis to selinux-util.ch or smack-util.ch appropriately. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/shared/label.h')
-rw-r--r--src/shared/label.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/shared/label.h b/src/shared/label.h
index 592ef607cd..72d455d6fb 100644
--- a/src/shared/label.h
+++ b/src/shared/label.h
@@ -19,18 +19,7 @@
#pragma once
-#include <sys/types.h>
-#include <stdbool.h>
-#include <sys/socket.h>
-
-int label_init(const char *prefix);
-void label_finish(void);
+#include "selinux-util.h"
+#include "smack-util.h"
int label_fix(const char *path, bool ignore_enoent, bool ignore_erofs);
-
-int label_context_set(const char *path, mode_t mode);
-void label_context_clear(void);
-
-int label_mkdir(const char *path, mode_t mode);
-
-int label_apply(const char *path, const char *label);