2006-02-16 21:33:18 +00:00
|
|
|
|
2006-10-18 19:25:27 +00:00
|
|
|
policy_module(uml,1.1.0)
|
2006-02-16 21:33:18 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type uml_exec_t;
|
2006-04-19 21:43:02 +00:00
|
|
|
corecmd_executable_file(uml_exec_t)
|
2006-02-16 21:33:18 +00:00
|
|
|
|
|
|
|
type uml_ro_t;
|
|
|
|
files_type(uml_ro_t)
|
|
|
|
|
|
|
|
type uml_switch_t;
|
|
|
|
type uml_switch_exec_t;
|
|
|
|
init_daemon_domain(uml_switch_t,uml_switch_exec_t)
|
|
|
|
|
|
|
|
type uml_switch_var_run_t;
|
|
|
|
files_pid_file(uml_switch_var_run_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
dontaudit uml_switch_t self:capability sys_tty_config;
|
|
|
|
allow uml_switch_t self:process signal_perms;
|
|
|
|
allow uml_switch_t self:unix_dgram_socket create_socket_perms;
|
|
|
|
allow uml_switch_t self:unix_stream_socket create_stream_socket_perms;
|
|
|
|
|
|
|
|
allow uml_switch_t uml_switch_var_run_t:sock_file create_file_perms;
|
|
|
|
allow uml_switch_t uml_switch_var_run_t:file create_file_perms;
|
|
|
|
allow uml_switch_t uml_switch_var_run_t:dir rw_dir_perms;
|
2006-02-21 18:40:44 +00:00
|
|
|
files_pid_filetrans(uml_switch_t,uml_switch_var_run_t,file)
|
2006-02-16 21:33:18 +00:00
|
|
|
|
|
|
|
kernel_read_kernel_sysctls(uml_switch_t)
|
|
|
|
kernel_list_proc(uml_switch_t)
|
|
|
|
kernel_read_proc_symlinks(uml_switch_t)
|
|
|
|
|
|
|
|
dev_read_sysfs(uml_switch_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(uml_switch_t)
|
2006-02-16 21:33:18 +00:00
|
|
|
|
|
|
|
fs_getattr_all_fs(uml_switch_t)
|
|
|
|
fs_search_auto_mountpoints(uml_switch_t)
|
|
|
|
|
|
|
|
term_dontaudit_use_console(uml_switch_t)
|
|
|
|
|
2006-03-02 23:41:11 +00:00
|
|
|
init_use_fds(uml_switch_t)
|
2006-02-16 21:33:18 +00:00
|
|
|
init_use_script_ptys(uml_switch_t)
|
|
|
|
|
|
|
|
libs_use_ld_so(uml_switch_t)
|
|
|
|
libs_use_shared_libs(uml_switch_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(uml_switch_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(uml_switch_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
userdom_dontaudit_use_unpriv_user_fds(uml_switch_t)
|
2006-02-21 18:40:44 +00:00
|
|
|
userdom_dontaudit_search_sysadm_home_dirs(uml_switch_t)
|
2006-02-16 21:33:18 +00:00
|
|
|
|
|
|
|
ifdef(`targeted_policy',`
|
|
|
|
files_dontaudit_read_root_files(uml_switch_t)
|
|
|
|
|
|
|
|
term_dontaudit_use_unallocated_ttys(uml_switch_t)
|
|
|
|
term_dontaudit_use_generic_ptys(uml_switch_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-02-16 21:33:18 +00:00
|
|
|
seutil_sigchld_newrole(uml_switch_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-02-16 21:33:18 +00:00
|
|
|
udev_read_db(uml_switch_t)
|
|
|
|
')
|