Skip to content

Commit 0ef7eaf

Browse files
committed
selinux: dontaudit /proc/pid/exe reads
Don't spam audit.log with /proc/pid/exe read attempts. Signed-off-by: Pavel Boldin <[email protected]>
1 parent d833014 commit 0ef7eaf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dist/selinux/libcare.te

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require {
77
type var_run_t;
88
type proc_t;
99
type qemu_exec_t;
10-
10+
attribute domain;
1111
}
1212

1313
# systemd(init_t) executes /usr/bin/libcare-ctl(libcare_exec_t)
@@ -66,6 +66,8 @@ allow svirt_t libcare_t : unix_stream_socket connectto;
6666
# to allow patient to send us SIGCHLD (required for ptrace)
6767
allow svirt_t libcare_t : process sigchld;
6868

69+
# silence all the audits about /proc/pid/exe
70+
dontaudit libcare_t domain : dir search;
6971

7072
# DEBUG
7173
## Run runcon system_u:system_r:libcare_t:s0 /usr/bin/libcare-ctl -v patch -p $(pidof qemu-kvm) /var/lib/libcare

0 commit comments

Comments
 (0)