Skip to content

Commit 739ee69

Browse files
committed
portage: grant compile domains getattr on chr_files in /dev
Some ebuilds, such as app-emulation/qemu, attempt to check for the existence of various character devices in /dev: avc: denied { getattr } for pid=6062 comm="meson" path="/dev/kvm" dev="devtmpfs" ino=80 scontext=superuser:sysadm_r:portage_sandbox_t tcontext=system_u:object_r:kvm_device_t tclass=chr_file permissive=0 Signed-off-by: Rahul Sandhu <[email protected]>
1 parent bcc04d2 commit 739ee69

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

policy/modules/admin/portage.if

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ interface(`portage_compile_domain',`
149149
dev_read_rand($1)
150150
dev_read_urand($1)
151151

152+
# some packages test for nodes in /dev
153+
dev_getattr_all_chr_files($1)
154+
152155
domain_use_interactive_fds($1)
153156
domain_dontaudit_read_all_domains_state($1)
154157
# SELinux-aware installs doing relabels in the sandbox

0 commit comments

Comments
 (0)