2005-05-09 13:26:33 +00:00
|
|
|
|
2006-10-18 19:25:27 +00:00
|
|
|
policy_module(hostname,1.3.0)
|
2005-05-09 13:26:33 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type hostname_t;
|
|
|
|
type hostname_exec_t;
|
2005-06-13 17:35:46 +00:00
|
|
|
init_system_domain(hostname_t,hostname_exec_t)
|
2005-05-09 13:26:33 +00:00
|
|
|
role system_r types hostname_t;
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
# for setting the hostname
|
|
|
|
allow hostname_t self:process { sigchld sigkill sigstop signull signal };
|
|
|
|
allow hostname_t self:capability sys_admin;
|
2005-10-21 21:35:25 +00:00
|
|
|
allow hostname_t self:unix_stream_socket create_stream_socket_perms;
|
2005-05-09 13:26:33 +00:00
|
|
|
dontaudit hostname_t self:capability sys_tty_config;
|
|
|
|
|
2005-07-08 20:44:57 +00:00
|
|
|
kernel_list_proc(hostname_t)
|
|
|
|
kernel_read_proc_symlinks(hostname_t)
|
2005-05-09 13:26:33 +00:00
|
|
|
|
2005-06-16 20:33:51 +00:00
|
|
|
dev_read_sysfs(hostname_t)
|
|
|
|
|
2005-06-10 01:01:13 +00:00
|
|
|
fs_getattr_xattr_fs(hostname_t)
|
2005-06-27 16:30:55 +00:00
|
|
|
fs_search_auto_mountpoints(hostname_t)
|
2006-01-17 17:50:10 +00:00
|
|
|
fs_dontaudit_use_tmpfs_chr_dev(hostname_t)
|
2005-05-09 13:26:33 +00:00
|
|
|
|
2005-06-10 01:01:13 +00:00
|
|
|
term_dontaudit_use_console(hostname_t)
|
|
|
|
term_use_all_user_ttys(hostname_t)
|
|
|
|
term_use_all_user_ptys(hostname_t)
|
2005-05-09 13:26:33 +00:00
|
|
|
|
2006-03-02 23:41:11 +00:00
|
|
|
init_use_fds(hostname_t)
|
2006-02-20 21:33:25 +00:00
|
|
|
init_use_script_fds(hostname_t)
|
2006-02-02 21:08:12 +00:00
|
|
|
init_use_script_ptys(hostname_t)
|
2005-05-09 13:26:33 +00:00
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(hostname_t)
|
2005-05-09 13:26:33 +00:00
|
|
|
|
2005-06-29 14:26:41 +00:00
|
|
|
files_read_etc_files(hostname_t)
|
2005-06-13 20:27:32 +00:00
|
|
|
files_dontaudit_search_var(hostname_t)
|
2005-05-31 21:25:45 +00:00
|
|
|
# for when /usr is not mounted:
|
2006-01-31 19:21:01 +00:00
|
|
|
files_dontaudit_search_isid_type_dirs(hostname_t)
|
2005-05-31 21:25:45 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
libs_use_ld_so(hostname_t)
|
|
|
|
libs_use_shared_libs(hostname_t)
|
2005-05-09 13:26:33 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
logging_send_syslog_msg(hostname_t)
|
2005-05-09 13:26:33 +00:00
|
|
|
|
|
|
|
miscfiles_read_localization(hostname_t)
|
|
|
|
|
2005-09-15 21:03:29 +00:00
|
|
|
sysnet_read_config(hostname_t)
|
|
|
|
sysnet_dns_name_resolve(hostname_t)
|
|
|
|
|
2006-08-29 02:41:00 +00:00
|
|
|
optional_policy(`
|
|
|
|
xen_dontaudit_use_fds(hostname_t)
|
|
|
|
')
|