diff options
-rw-r--r-- | security/selinux/include/classmap.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/security/selinux/include/classmap.h b/security/selinux/include/classmap.h index 41990cbba760..b4c9eb4bd6f9 100644 --- a/security/selinux/include/classmap.h +++ b/security/selinux/include/classmap.h | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | #define COMMON_FILE_PERMS COMMON_FILE_SOCK_PERMS, "unlink", "link", \ | 4 | #define COMMON_FILE_PERMS COMMON_FILE_SOCK_PERMS, "unlink", "link", \ |
5 | "rename", "execute", "swapon", "quotaon", "mounton", "audit_access", \ | 5 | "rename", "execute", "swapon", "quotaon", "mounton", "audit_access", \ |
6 | "open" | 6 | "open", "execmod" |
7 | 7 | ||
8 | #define COMMON_SOCK_PERMS COMMON_FILE_SOCK_PERMS, "bind", "connect", \ | 8 | #define COMMON_SOCK_PERMS COMMON_FILE_SOCK_PERMS, "bind", "connect", \ |
9 | "listen", "accept", "getopt", "setopt", "shutdown", "recvfrom", \ | 9 | "listen", "accept", "getopt", "setopt", "shutdown", "recvfrom", \ |
@@ -44,7 +44,7 @@ struct security_class_mapping secclass_map[] = { | |||
44 | "quotaget", NULL } }, | 44 | "quotaget", NULL } }, |
45 | { "file", | 45 | { "file", |
46 | { COMMON_FILE_PERMS, | 46 | { COMMON_FILE_PERMS, |
47 | "execute_no_trans", "entrypoint", "execmod", NULL } }, | 47 | "execute_no_trans", "entrypoint", NULL } }, |
48 | { "dir", | 48 | { "dir", |
49 | { COMMON_FILE_PERMS, "add_name", "remove_name", | 49 | { COMMON_FILE_PERMS, "add_name", "remove_name", |
50 | "reparent", "search", "rmdir", NULL } }, | 50 | "reparent", "search", "rmdir", NULL } }, |
@@ -52,8 +52,7 @@ struct security_class_mapping secclass_map[] = { | |||
52 | { "lnk_file", | 52 | { "lnk_file", |
53 | { COMMON_FILE_PERMS, NULL } }, | 53 | { COMMON_FILE_PERMS, NULL } }, |
54 | { "chr_file", | 54 | { "chr_file", |
55 | { COMMON_FILE_PERMS, | 55 | { COMMON_FILE_PERMS, NULL } }, |
56 | "execute_no_trans", "entrypoint", "execmod", NULL } }, | ||
57 | { "blk_file", | 56 | { "blk_file", |
58 | { COMMON_FILE_PERMS, NULL } }, | 57 | { COMMON_FILE_PERMS, NULL } }, |
59 | { "sock_file", | 58 | { "sock_file", |