hostname: small adjustments

* reorder process - capabilities statements
* remove unsighted debian block
This commit is contained in:
cgzones 2017-01-05 12:30:38 +01:00
parent d9980666a4
commit d9fcbdfbb3

View File

@ -15,9 +15,9 @@ role system_r types hostname_t;
# Local policy
#
# for setting the hostname
allow hostname_t self:process { sigchld sigkill sigstop signull signal };
# sys_admin : for setting the hostname
allow hostname_t self:capability sys_admin;
allow hostname_t self:process { sigchld sigkill sigstop signull signal };
allow hostname_t self:unix_stream_socket create_stream_socket_perms;
dontaudit hostname_t self:capability sys_tty_config;
@ -56,10 +56,6 @@ sysnet_dontaudit_rw_dhcpc_unix_stream_sockets(hostname_t)
sysnet_read_config(hostname_t)
sysnet_dns_name_resolve(hostname_t)
ifdef(`distro_debian',`
term_dontaudit_use_unallocated_ttys(hostname_t)
')
optional_policy(`
nis_use_ypbind(hostname_t)
')