Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update systemd-networkd policy in systemd v257 #2441

Draft
wants to merge 1 commit into
base: rawhide
Choose a base branch
from

Conversation

zpytela
Copy link
Contributor

@zpytela zpytela commented Nov 20, 2024

In particular, permissions to read cgroup dirs and work with bpf programs were allowed.

The commit addresses, among others, the following AVC denial: type=PROCTITLE msg=audit(11/20/2024 02:20:27.486:845) : proctitle=/usr/lib/systemd/systemd-networkd type=SYSCALL msg=audit(11/20/2024 02:20:27.486:845) : arch=x86_64 syscall=bpf success=no exit=EACCES(Permission denied) a0=BPF_PROG_LOAD a1=0x7ffeeb990170 a2=0x94 a3=0x7fee005e937e items=0 ppid=1 pid=9637 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(11/20/2024 02:20:27.486:845) : avc: denied { prog_load } for pid=9637 comm=systemd-network scontext=system_u:system_r:systemd_networkd_t:s0 tcontext=system_u:system_r:systemd_networkd_t:s0 tclass=bpf permissive=0

In particular, permissions to read cgroup dirs and work with bpf
programs were allowed.

The commit addresses, among others, the following AVC denial:
type=PROCTITLE msg=audit(11/20/2024 02:20:27.486:845) : proctitle=/usr/lib/systemd/systemd-networkd
type=SYSCALL msg=audit(11/20/2024 02:20:27.486:845) : arch=x86_64 syscall=bpf success=no exit=EACCES(Permission denied) a0=BPF_PROG_LOAD a1=0x7ffeeb990170 a2=0x94 a3=0x7fee005e937e items=0 ppid=1 pid=9637 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(11/20/2024 02:20:27.486:845) : avc:  denied  { prog_load } for  pid=9637 comm=systemd-network scontext=system_u:system_r:systemd_networkd_t:s0 tcontext=system_u:system_r:systemd_networkd_t:s0 tclass=bpf permissive=0
@zpytela zpytela marked this pull request as draft November 20, 2024 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant