Allow systemd-resolved to read sysctl
type=AVC msg=audit(1527698300.007:150): avc: denied { search } for pid=1193 comm="systemd-resolve" name="net" dev="proc" ino=8515 scontext=system_u:system_r:systemd_resolved_t:s0 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=dir type=AVC msg=audit(1527698300.007:150): avc: denied { read } for pid=1193 comm="systemd-resolve" name="disable_ipv6" dev="proc" ino=7988 scontext=system_u:system_r:systemd_resolved_t:s0 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=file type=AVC msg=audit(1527698300.007:150): avc: denied { open } for pid=1193 comm="systemd-resolve" path="/proc/sys/net/ipv6/conf/all/disable_ipv6" dev="proc" ino=7988 scontext=system_u:system_r:systemd_resolved_t:s0 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=file type=AVC msg=audit(1527698300.007:151): avc: denied { getattr } for pid=1193 comm="systemd-resolve" path="/proc/sys/net/ipv6/conf/all/disable_ipv6" dev="proc" ino=7988 scontext=system_u:system_r:systemd_resolved_t:s0 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=file type=AVC msg=audit(1527698300.006:148): avc: denied { read } for pid=1193 comm="systemd-resolve" name="disable" dev="sysfs" ino=2111 scontext=system_u:system_r:systemd_resolved_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=file type=AVC msg=audit(1527698300.006:148): avc: denied { open } for pid=1193 comm="systemd-resolve" path="/sys/module/ipv6/parameters/disable" dev="sysfs" ino=2111 scontext=system_u:system_r:systemd_resolved_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=file type=AVC msg=audit(1527698300.007:149): avc: denied { getattr } for pid=1193 comm="systemd-resolve" path="/sys/module/ipv6/parameters/disable" dev="sysfs" ino=2111 scontext=system_u:system_r:systemd_resolved_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=file Signed-off-by: Dave Sugar <dsugar@tresys.com>
This commit is contained in:
parent
ef6e79a082
commit
1dd2e5aca4
|
@ -842,8 +842,11 @@ manage_dirs_pattern(systemd_resolved_t, systemd_resolved_var_run_t, systemd_reso
|
||||||
manage_files_pattern(systemd_resolved_t, systemd_resolved_var_run_t, systemd_resolved_var_run_t)
|
manage_files_pattern(systemd_resolved_t, systemd_resolved_var_run_t, systemd_resolved_var_run_t)
|
||||||
init_pid_filetrans(systemd_resolved_t, systemd_resolved_var_run_t, dir)
|
init_pid_filetrans(systemd_resolved_t, systemd_resolved_var_run_t, dir)
|
||||||
|
|
||||||
|
dev_read_sysfs(systemd_resolved_t)
|
||||||
|
|
||||||
kernel_read_crypto_sysctls(systemd_resolved_t)
|
kernel_read_crypto_sysctls(systemd_resolved_t)
|
||||||
kernel_read_kernel_sysctls(systemd_resolved_t)
|
kernel_read_kernel_sysctls(systemd_resolved_t)
|
||||||
|
kernel_read_net_sysctls(systemd_resolved_t)
|
||||||
|
|
||||||
corenet_tcp_bind_generic_node(systemd_resolved_t)
|
corenet_tcp_bind_generic_node(systemd_resolved_t)
|
||||||
corenet_tcp_bind_llmnr_port(systemd_resolved_t)
|
corenet_tcp_bind_llmnr_port(systemd_resolved_t)
|
||||||
|
|
Loading…
Reference in New Issue