Blame mls/domains/program/hostname.te
|
Chris PeBenito |
31b7c0 |
#DESC hostname - show or set the system host name
|
|
Chris PeBenito |
31b7c0 |
#
|
|
Chris PeBenito |
31b7c0 |
# Author: Russell Coker <russell@coker.com.au>
|
|
Chris PeBenito |
31b7c0 |
# X-Debian-Packages: hostname
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
# for setting the hostname
|
|
Chris PeBenito |
31b7c0 |
daemon_core_rules(hostname, , nosysadm)
|
|
Chris PeBenito |
31b7c0 |
allow hostname_t self:capability sys_admin;
|
|
Chris PeBenito |
31b7c0 |
allow hostname_t etc_t:file { getattr read };
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
allow hostname_t { user_tty_type admin_tty_type }:chr_file rw_file_perms;
|
|
Chris PeBenito |
31b7c0 |
read_locale(hostname_t)
|
|
Chris PeBenito |
31b7c0 |
can_resolve(hostname_t)
|
|
Chris PeBenito |
31b7c0 |
allow hostname_t userdomain:fd use;
|
|
Chris PeBenito |
31b7c0 |
dontaudit hostname_t kernel_t:fd use;
|
|
Chris PeBenito |
31b7c0 |
allow hostname_t net_conf_t:file { getattr read };
|
|
Chris PeBenito |
31b7c0 |
allow hostname_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
31b7c0 |
dontaudit hostname_t var_t:dir search;
|
|
Chris PeBenito |
31b7c0 |
allow hostname_t fs_t:filesystem getattr;
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
# for when /usr is not mounted
|
|
Chris PeBenito |
31b7c0 |
dontaudit hostname_t file_t:dir search;
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
ifdef(`distro_redhat', `
|
|
Chris PeBenito |
31b7c0 |
allow hostname_t tmpfs_t:chr_file rw_file_perms;
|
|
Chris PeBenito |
31b7c0 |
')
|
|
Chris PeBenito |
31b7c0 |
can_access_pty(hostname_t, initrc)
|
|
Chris PeBenito |
31b7c0 |
allow hostname_t initrc_t:fd use;
|