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
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion policy/modules/system/systemd.te
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,9 @@ optional_policy(`
# systemd-networkd local policy
#

allow systemd_networkd_t self:capability { dac_read_search dac_override net_admin net_raw setuid fowner chown setgid setpcap };
allow systemd_networkd_t self:bpf { map_create map_read map_write prog_load prog_run };
allow systemd_networkd_t self:capability { dac_read_search dac_override net_admin net_raw setuid fowner chown setgid setpcap sys_admin };
allow systemd_networkd_t self:capability2 bpf;
allow systemd_networkd_t self:process { getcap setcap };

allow systemd_networkd_t self:netlink_kobject_uevent_socket create_socket_perms;
Expand Down Expand Up @@ -629,6 +631,7 @@ corenet_udp_bind_dhcpc_port(systemd_networkd_t)
corenet_tcp_bind_dhcpd_port(systemd_networkd_t)
corenet_udp_bind_dhcpd_port(systemd_networkd_t)

fs_list_cgroup_dirs(systemd_networkd_t)
fs_read_xenfs_files(systemd_networkd_t)
fs_read_nsfs_files(systemd_networkd_t)
fs_cgroup_write_memory_pressure(systemd_networkd_t)
Expand Down