hc
2024-05-10 ee930fffee469d076998274a2ca55e13dc1efb67
kernel/security/selinux/include/classmap.h
....@@ -7,7 +7,8 @@
77
88 #define COMMON_FILE_PERMS COMMON_FILE_SOCK_PERMS, "unlink", "link", \
99 "rename", "execute", "quotaon", "mounton", "audit_access", \
10
- "open", "execmod"
10
+ "open", "execmod", "watch", "watch_mount", "watch_sb", \
11
+ "watch_with_perm", "watch_reads"
1112
1213 #define COMMON_SOCK_PERMS COMMON_FILE_SOCK_PERMS, "bind", "connect", \
1314 "listen", "accept", "getopt", "setopt", "shutdown", "recvfrom", \
....@@ -26,9 +27,10 @@
2627 "audit_control", "setfcap"
2728
2829 #define COMMON_CAP2_PERMS "mac_override", "mac_admin", "syslog", \
29
- "wake_alarm", "block_suspend", "audit_read"
30
+ "wake_alarm", "block_suspend", "audit_read", "perfmon", "bpf", \
31
+ "checkpoint_restore"
3032
31
-#if CAP_LAST_CAP > CAP_AUDIT_READ
33
+#if CAP_LAST_CAP > CAP_CHECKPOINT_RESTORE
3234 #error New capability defined, please update COMMON_CAP2_PERMS.
3335 #endif
3436
....@@ -60,7 +62,7 @@
6062 { "filesystem",
6163 { "mount", "remount", "unmount", "getattr",
6264 "relabelfrom", "relabelto", "associate", "quotamod",
63
- "quotaget", NULL } },
65
+ "quotaget", "watch", NULL } },
6466 { "file",
6567 { COMMON_FILE_PERMS,
6668 "execute_no_trans", "entrypoint", NULL } },
....@@ -241,11 +243,14 @@
241243 { "infiniband_endport",
242244 { "manage_subnet", NULL } },
243245 { "bpf",
244
- {"map_create", "map_read", "map_write", "prog_load", "prog_run"} },
246
+ { "map_create", "map_read", "map_write", "prog_load", "prog_run",
247
+ NULL } },
245248 { "xdp_socket",
246249 { COMMON_SOCK_PERMS, NULL } },
247250 { "perf_event",
248
- {"open", "cpu", "kernel", "tracepoint", "read", "write"} },
251
+ { "open", "cpu", "kernel", "tracepoint", "read", "write", NULL } },
252
+ { "anon_inode",
253
+ { COMMON_FILE_PERMS, NULL } },
249254 { NULL }
250255 };
251256