Skip to content

Commit a6caa65

Browse files
cgzonesdburgener
authored andcommitted
Add system permissions added to Linux for 6.15
For deciding whether a permission of the system class is a userspace or kernel one the kernel ones are hardcoded. Add the ones to be introduced in Linux 6.15 with commit 2c2b1e059792 ("selinux: add permission checks for loading other kinds of kernel files"). See SELinuxProject/selinux-kernel@2c2b1e0
1 parent fdf0d41 commit a6caa65

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/maps.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,11 @@ int is_userspace_class(const char *class_name, const struct string_list *permiss
317317
0 != strcmp(p->string, "syslog_console") &&
318318
0 != strcmp(p->string, "module_request") &&
319319
0 != strcmp(p->string, "module_load") &&
320+
0 != strcmp(p->string, "firmware_load") &&
321+
0 != strcmp(p->string, "kexec_image_load") &&
322+
0 != strcmp(p->string, "kexec_initramfs_load") &&
323+
0 != strcmp(p->string, "policy_load") &&
324+
0 != strcmp(p->string, "x509_certificate_load") &&
320325
0 != strcmp(p->string, "*") &&
321326
0 != strcmp(p->string, "~")) {
322327
return 1;

0 commit comments

Comments
 (0)