Commit 72e60b6
policy/test_secretmem.te: add anon_inode perms required in Linux v6.16-rc5
Starting with Linux v6.16-rc5 and commit cbe4134ea4bc
("fs: export anon_inode_make_secure_inode() and fix secretmem LSM bypass")
secretmem's anonymous inodes are no longer marked as S_PRIVATE which
means they are subject to a number of SELinux permission checks that
has been previously skipped. This patch updates the test policy to
account for these new checks and allows for a clean test run on Linux
kernel builds with the above mentioned patch.
It is worth noting that there are still some capability/ipc_lock AVC
denials when running the secretmem tests, but granting access to
CAP_IPC_LOCK proved not to be strictly necessary for a clean test run so
those rules were omitted from this patch.
Suggested-by: Shivank Garg <shivankg@amd.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
[OM: drop an unnecessary execute permission + added Suggested-by]
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>1 parent ee0ba4d commit 72e60b6
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
0 commit comments