fedora-selinux / selinux-policy

selinux-policy for Fedora is a large patch off the mainline
GNU General Public License v2.0
156 stars 157 forks source link

Allow systemd-networkd list /var/lib/systemd/network #2199

Closed zpytela closed 4 days ago

zpytela commented 5 days ago

Label /var/lib/systemd/network with systemd_networkd_var_lib_t and allow systemd-networkd access to it.

The commit addresses the following AVC denial: type=PROCTITLE msg=audit(04/29/2024 06:24:24.614:1151) : proctitle=/usr/lib/systemd/systemd-networkd type=SYSCALL msg=audit(04/29/2024 06:24:24.614:1151) : arch=x86_64 syscall=recvmsg success=yes exit=81 a0=0x18 a1=0x7ffdd79c0540 a2=MSG_DONTWAIT|MSG_CMSG_CLOEXEC a3=0x10 items=0 ppid=1 pid=55118 auid=unset uid=systemd-network gid=systemd-network euid=systemd-network suid=systemd-network fsuid=systemd-network egid=systemd-network sgid=systemd-network fsgid=systemd-network tty=(none) ses=unset comm=systemd-network exe=/usr/lib/systemd/systemd-networkd subj=system_u:system_r:systemd_networkd_t:s0 key=(null) type=AVC msg=audit(04/29/2024 06:24:24.614:1151) : avc: denied { read } for pid=55118 comm=systemd-network path=/var/lib/systemd/network dev="vda4" ino=26714 scontext=system_u:system_r:systemd_networkd_t:s0 tcontext=system_u:object_r:init_var_lib_t:s0 tclass=dir permissive=0