|
Chris PeBenito |
15e3d8 |
|
|
Chris PeBenito |
d3d270 |
policy_module(hostname,1.2.0)
|
|
Chris PeBenito |
15e3d8 |
|
|
Chris PeBenito |
15e3d8 |
########################################
|
|
Chris PeBenito |
15e3d8 |
#
|
|
Chris PeBenito |
15e3d8 |
# Declarations
|
|
Chris PeBenito |
15e3d8 |
#
|
|
Chris PeBenito |
15e3d8 |
|
|
Chris PeBenito |
15e3d8 |
type hostname_t;
|
|
Chris PeBenito |
15e3d8 |
type hostname_exec_t;
|
|
Chris PeBenito |
c9428d |
init_system_domain(hostname_t,hostname_exec_t)
|
|
Chris PeBenito |
15e3d8 |
role system_r types hostname_t;
|
|
Chris PeBenito |
15e3d8 |
|
|
Chris PeBenito |
15e3d8 |
########################################
|
|
Chris PeBenito |
15e3d8 |
#
|
|
Chris PeBenito |
15e3d8 |
# Local policy
|
|
Chris PeBenito |
15e3d8 |
#
|
|
Chris PeBenito |
15e3d8 |
|
|
Chris PeBenito |
15e3d8 |
# for setting the hostname
|
|
Chris PeBenito |
15e3d8 |
allow hostname_t self:process { sigchld sigkill sigstop signull signal };
|
|
Chris PeBenito |
15e3d8 |
allow hostname_t self:capability sys_admin;
|
|
Chris PeBenito |
e6a2ea |
allow hostname_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
15e3d8 |
dontaudit hostname_t self:capability sys_tty_config;
|
|
Chris PeBenito |
15e3d8 |
|
|
Chris PeBenito |
a42ca7 |
kernel_list_proc(hostname_t)
|
|
Chris PeBenito |
a42ca7 |
kernel_read_proc_symlinks(hostname_t)
|
|
Chris PeBenito |
15e3d8 |
|
|
Chris PeBenito |
d35c62 |
dev_read_sysfs(hostname_t)
|
|
Chris PeBenito |
d35c62 |
|
|
Chris PeBenito |
0fd9dc |
fs_getattr_xattr_fs(hostname_t)
|
|
Chris PeBenito |
ab940a |
fs_search_auto_mountpoints(hostname_t)
|
|
Chris PeBenito |
93727e |
fs_dontaudit_use_tmpfs_chr_dev(hostname_t)
|
|
Chris PeBenito |
15e3d8 |
|
|
Chris PeBenito |
0fd9dc |
term_dontaudit_use_console(hostname_t)
|
|
Chris PeBenito |
0fd9dc |
term_use_all_user_ttys(hostname_t)
|
|
Chris PeBenito |
0fd9dc |
term_use_all_user_ptys(hostname_t)
|
|
Chris PeBenito |
15e3d8 |
|
|
Chris PeBenito |
1c1ac6 |
init_use_fds(hostname_t)
|
|
Chris PeBenito |
15722e |
init_use_script_fds(hostname_t)
|
|
Chris PeBenito |
1815ba |
init_use_script_ptys(hostname_t)
|
|
Chris PeBenito |
15e3d8 |
|
|
Chris PeBenito |
15722e |
domain_use_interactive_fds(hostname_t)
|
|
Chris PeBenito |
15e3d8 |
|
|
Chris PeBenito |
8fd367 |
files_read_etc_files(hostname_t)
|
|
Chris PeBenito |
31908b |
files_dontaudit_search_var(hostname_t)
|
|
Chris PeBenito |
3b857e |
# for when /usr is not mounted:
|
|
Chris PeBenito |
9e04f5 |
files_dontaudit_search_isid_type_dirs(hostname_t)
|
|
Chris PeBenito |
3b857e |
|
|
Chris PeBenito |
c9428d |
libs_use_ld_so(hostname_t)
|
|
Chris PeBenito |
c9428d |
libs_use_shared_libs(hostname_t)
|
|
Chris PeBenito |
15e3d8 |
|
|
Chris PeBenito |
c9428d |
logging_send_syslog_msg(hostname_t)
|
|
Chris PeBenito |
15e3d8 |
|
|
Chris PeBenito |
15e3d8 |
miscfiles_read_localization(hostname_t)
|
|
Chris PeBenito |
15e3d8 |
|
|
Chris PeBenito |
98a8ea |
sysnet_read_config(hostname_t)
|
|
Chris PeBenito |
98a8ea |
sysnet_dns_name_resolve(hostname_t)
|
|
Chris PeBenito |
98a8ea |
|
|
Chris PeBenito |
f5c42b |
|
|
Chris PeBenito |
f5c42b |
|
|
Chris PeBenito |
15e3d8 |
|