|
Chris PeBenito |
5b6ddb |
|
|
Chris PeBenito |
5b6ddb |
policy_module(uml,1.0.0)
|
|
Chris PeBenito |
5b6ddb |
|
|
Chris PeBenito |
5b6ddb |
########################################
|
|
Chris PeBenito |
5b6ddb |
#
|
|
Chris PeBenito |
5b6ddb |
# Declarations
|
|
Chris PeBenito |
5b6ddb |
#
|
|
Chris PeBenito |
5b6ddb |
|
|
Chris PeBenito |
5b6ddb |
type uml_exec_t;
|
|
Chris PeBenito |
5b6ddb |
files_type(uml_exec_t)
|
|
Chris PeBenito |
5b6ddb |
|
|
Chris PeBenito |
5b6ddb |
type uml_ro_t;
|
|
Chris PeBenito |
5b6ddb |
files_type(uml_ro_t)
|
|
Chris PeBenito |
5b6ddb |
|
|
Chris PeBenito |
5b6ddb |
type uml_switch_t;
|
|
Chris PeBenito |
5b6ddb |
type uml_switch_exec_t;
|
|
Chris PeBenito |
5b6ddb |
init_daemon_domain(uml_switch_t,uml_switch_exec_t)
|
|
Chris PeBenito |
5b6ddb |
|
|
Chris PeBenito |
5b6ddb |
type uml_switch_var_run_t;
|
|
Chris PeBenito |
5b6ddb |
files_pid_file(uml_switch_var_run_t)
|
|
Chris PeBenito |
5b6ddb |
|
|
Chris PeBenito |
5b6ddb |
########################################
|
|
Chris PeBenito |
5b6ddb |
#
|
|
Chris PeBenito |
5b6ddb |
# Local policy
|
|
Chris PeBenito |
5b6ddb |
#
|
|
Chris PeBenito |
5b6ddb |
|
|
Chris PeBenito |
5b6ddb |
dontaudit uml_switch_t self:capability sys_tty_config;
|
|
Chris PeBenito |
5b6ddb |
allow uml_switch_t self:process signal_perms;
|
|
Chris PeBenito |
5b6ddb |
allow uml_switch_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
5b6ddb |
allow uml_switch_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
5b6ddb |
|
|
Chris PeBenito |
5b6ddb |
allow uml_switch_t uml_switch_var_run_t:sock_file create_file_perms;
|
|
Chris PeBenito |
5b6ddb |
allow uml_switch_t uml_switch_var_run_t:file create_file_perms;
|
|
Chris PeBenito |
5b6ddb |
allow uml_switch_t uml_switch_var_run_t:dir rw_dir_perms;
|
|
Chris PeBenito |
5b6ddb |
files_filetrans_pid(uml_switch_t,uml_switch_var_run_t,file)
|
|
Chris PeBenito |
5b6ddb |
|
|
Chris PeBenito |
5b6ddb |
kernel_read_kernel_sysctls(uml_switch_t)
|
|
Chris PeBenito |
5b6ddb |
kernel_list_proc(uml_switch_t)
|
|
Chris PeBenito |
5b6ddb |
kernel_read_proc_symlinks(uml_switch_t)
|
|
Chris PeBenito |
5b6ddb |
|
|
Chris PeBenito |
5b6ddb |
dev_read_sysfs(uml_switch_t)
|
|
Chris PeBenito |
5b6ddb |
|
|
Chris PeBenito |
15722e |
domain_use_interactive_fds(uml_switch_t)
|
|
Chris PeBenito |
5b6ddb |
|
|
Chris PeBenito |
5b6ddb |
fs_getattr_all_fs(uml_switch_t)
|
|
Chris PeBenito |
5b6ddb |
fs_search_auto_mountpoints(uml_switch_t)
|
|
Chris PeBenito |
5b6ddb |
|
|
Chris PeBenito |
5b6ddb |
term_dontaudit_use_console(uml_switch_t)
|
|
Chris PeBenito |
5b6ddb |
|
|
Chris PeBenito |
5b6ddb |
init_use_fd(uml_switch_t)
|
|
Chris PeBenito |
5b6ddb |
init_use_script_ptys(uml_switch_t)
|
|
Chris PeBenito |
5b6ddb |
|
|
Chris PeBenito |
5b6ddb |
libs_use_ld_so(uml_switch_t)
|
|
Chris PeBenito |
5b6ddb |
libs_use_shared_libs(uml_switch_t)
|
|
Chris PeBenito |
5b6ddb |
|
|
Chris PeBenito |
5b6ddb |
logging_send_syslog_msg(uml_switch_t)
|
|
Chris PeBenito |
5b6ddb |
|
|
Chris PeBenito |
5b6ddb |
miscfiles_read_localization(uml_switch_t)
|
|
Chris PeBenito |
5b6ddb |
|
|
Chris PeBenito |
15722e |
userdom_dontaudit_use_unpriv_user_fds(uml_switch_t)
|
|
Chris PeBenito |
5b6ddb |
userdom_dontaudit_search_sysadm_home_dir(uml_switch_t)
|
|
Chris PeBenito |
5b6ddb |
|
|
Chris PeBenito |
5b6ddb |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
5b6ddb |
files_dontaudit_read_root_files(uml_switch_t)
|
|
Chris PeBenito |
5b6ddb |
|
|
Chris PeBenito |
5b6ddb |
term_dontaudit_use_unallocated_ttys(uml_switch_t)
|
|
Chris PeBenito |
5b6ddb |
term_dontaudit_use_generic_ptys(uml_switch_t)
|
|
Chris PeBenito |
5b6ddb |
')
|
|
Chris PeBenito |
5b6ddb |
|
|
Chris PeBenito |
5b6ddb |
optional_policy(`selinuxutil',`
|
|
Chris PeBenito |
5b6ddb |
seutil_sigchld_newrole(uml_switch_t)
|
|
Chris PeBenito |
5b6ddb |
')
|
|
Chris PeBenito |
5b6ddb |
|
|
Chris PeBenito |
5b6ddb |
optional_policy(`udev',`
|
|
Chris PeBenito |
5b6ddb |
udev_read_db(uml_switch_t)
|
|
Chris PeBenito |
5b6ddb |
')
|