Merge branch 'resolved' of https://github.com/bigon/refpolicy
This commit is contained in:
commit
0e868859c4
@ -756,9 +756,14 @@ interface(`sysnet_dns_name_resolve',`
|
||||
nscd_use($1)
|
||||
')
|
||||
|
||||
# This seems needed when the mymachines NSS module is used
|
||||
optional_policy(`
|
||||
systemd_read_machines($1)
|
||||
ifdef(`init_systemd',`
|
||||
optional_policy(`
|
||||
systemd_dbus_chat_resolved($1)
|
||||
')
|
||||
# This seems needed when the mymachines NSS module is used
|
||||
optional_policy(`
|
||||
systemd_read_machines($1)
|
||||
')
|
||||
')
|
||||
')
|
||||
|
||||
|
@ -753,6 +753,27 @@ interface(`systemd_tmpfilesd_managed',`
|
||||
allow systemd_tmpfiles_t $1:$2 { setattr relabelfrom relabelto create };
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Send and receive messages from
|
||||
## systemd resolved over dbus.
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`systemd_dbus_chat_resolved',`
|
||||
gen_require(`
|
||||
type systemd_resolved_t;
|
||||
class dbus send_msg;
|
||||
')
|
||||
|
||||
allow $1 systemd_resolved_t:dbus send_msg;
|
||||
allow systemd_resolved_t $1:dbus send_msg;
|
||||
')
|
||||
|
||||
#######################################
|
||||
## <summary>
|
||||
## Allow domain to read resolv.conf file generated by systemd_resolved
|
||||
|
@ -864,7 +864,7 @@ optional_policy(`
|
||||
# Resolved local policy
|
||||
#
|
||||
|
||||
allow systemd_resolved_t self:capability { chown setgid setpcap setuid };
|
||||
allow systemd_resolved_t self:capability { chown net_raw setgid setpcap setuid };
|
||||
allow systemd_resolved_t self:process { getcap setcap setfscreate signal };
|
||||
|
||||
allow systemd_resolved_t self:tcp_socket { accept listen };
|
||||
@ -881,8 +881,10 @@ 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_dns_port(systemd_resolved_t)
|
||||
corenet_tcp_bind_llmnr_port(systemd_resolved_t)
|
||||
corenet_udp_bind_generic_node(systemd_resolved_t)
|
||||
corenet_udp_bind_dns_port(systemd_resolved_t)
|
||||
corenet_udp_bind_llmnr_port(systemd_resolved_t)
|
||||
|
||||
auth_use_nsswitch(systemd_resolved_t)
|
||||
|
@ -58,6 +58,12 @@ ifdef(`direct_sysadm_daemon',`
|
||||
')
|
||||
')
|
||||
|
||||
ifdef(`init_systemd',`
|
||||
optional_policy(`
|
||||
systemd_dbus_chat_resolved(unconfined_t)
|
||||
')
|
||||
')
|
||||
|
||||
optional_policy(`
|
||||
ada_domtrans(unconfined_t)
|
||||
')
|
||||
|
Loading…
Reference in New Issue
Block a user