Chris PeBenito 17de1b
Chris PeBenito 17de1b
policy_module(speedtouch,1.0.0)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
#######################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Rules for the speedmgmt_t domain.
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type speedmgmt_t;
Chris PeBenito 17de1b
type speedmgmt_exec_t;
Chris PeBenito 17de1b
init_daemon_domain(speedmgmt_t,speedmgmt_exec_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type speedmgmt_tmp_t;
Chris PeBenito 17de1b
files_tmp_file(speedmgmt_tmp_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type speedmgmt_var_run_t;
Chris PeBenito 17de1b
files_pid_file(speedmgmt_var_run_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Local policy
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
dontaudit speedmgmt_t self:capability sys_tty_config;
Chris PeBenito 17de1b
allow speedmgmt_t self:process signal_perms;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
allow speedmgmt_t speedmgmt_tmp_t:dir create_dir_perms;
Chris PeBenito 17de1b
allow speedmgmt_t speedmgmt_tmp_t:file create_file_perms;
Chris PeBenito 17de1b
files_tmp_filetrans(speedmgmt_t, speedmgmt_tmp_t, { file dir })
Chris PeBenito 17de1b
Chris PeBenito 17de1b
allow speedmgmt_t speedmgmt_var_run_t:file create_file_perms;
Chris PeBenito 17de1b
allow speedmgmt_t speedmgmt_var_run_t:dir rw_dir_perms;
Chris PeBenito 17de1b
files_pid_filetrans(speedmgmt_t,speedmgmt_var_run_t,file)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
kernel_read_kernel_sysctls(speedmgmt_t)
Chris PeBenito 17de1b
kernel_list_proc(speedmgmt_t)
Chris PeBenito 17de1b
kernel_read_proc_symlinks(speedmgmt_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
dev_read_sysfs(speedmgmt_t)
Chris PeBenito 17de1b
dev_read_usbfs(speedmgmt_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
domain_use_interactive_fds(speedmgmt_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
files_read_etc_files(speedmgmt_t)
Chris PeBenito 17de1b
files_read_usr_files(speedmgmt_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
fs_getattr_all_fs(speedmgmt_t)
Chris PeBenito 17de1b
fs_search_auto_mountpoints(speedmgmt_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
term_dontaudit_use_console(speedmgmt_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
init_use_fds(speedmgmt_t)
Chris PeBenito 17de1b
init_use_script_ptys(speedmgmt_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
libs_use_ld_so(speedmgmt_t)
Chris PeBenito 17de1b
libs_use_shared_libs(speedmgmt_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
logging_send_syslog_msg(speedmgmt_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
miscfiles_read_localization(speedmgmt_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
userdom_dontaudit_use_unpriv_user_fds(speedmgmt_t)
Chris PeBenito 17de1b
userdom_dontaudit_search_sysadm_home_dirs(speedmgmt_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
ifdef(`targeted_policy',`
Chris PeBenito 17de1b
	term_dontaudit_use_unallocated_ttys(speedmgmt_t)
Chris PeBenito 17de1b
	term_dontaudit_use_generic_ptys(speedmgmt_t)
Chris PeBenito 17de1b
	files_dontaudit_read_root_files(speedmgmt_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	seutil_sigchld_newrole(speedmgmt_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	udev_read_db(speedmgmt_t)
Chris PeBenito 17de1b
')