|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
d7b98c |
policy_module(gpm, 1.7.1)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type gpm_t;
|
|
Chris PeBenito |
17de1b |
type gpm_exec_t;
|
|
Chris PeBenito |
0bfccd |
init_daemon_domain(gpm_t, gpm_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type gpm_conf_t;
|
|
Chris PeBenito |
17de1b |
files_type(gpm_conf_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type gpm_tmp_t;
|
|
Chris PeBenito |
17de1b |
files_tmp_file(gpm_tmp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type gpm_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(gpm_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type gpmctl_t;
|
|
Chris PeBenito |
17de1b |
files_type(gpmctl_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
d7b98c |
allow gpm_t self:capability { setpcap setuid dac_override sys_admin sys_tty_config };
|
|
Chris PeBenito |
d7b98c |
allow gpm_t self:process { getcap setcap };
|
|
Chris PeBenito |
17de1b |
allow gpm_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
allow gpm_t gpm_conf_t:dir list_dir_perms;
|
|
Chris PeBenito |
0bfccd |
read_files_pattern(gpm_t, gpm_conf_t, gpm_conf_t)
|
|
Chris PeBenito |
0bfccd |
read_lnk_files_pattern(gpm_t, gpm_conf_t, gpm_conf_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern(gpm_t, gpm_tmp_t, gpm_tmp_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(gpm_t, gpm_tmp_t, gpm_tmp_t)
|
|
Chris PeBenito |
17de1b |
files_tmp_filetrans(gpm_t, gpm_tmp_t, { file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
allow gpm_t gpm_var_run_t:file manage_file_perms;
|
|
Chris PeBenito |
3f67f7 |
files_pid_filetrans(gpm_t, gpm_var_run_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
cbe82b |
allow gpm_t gpmctl_t:sock_file manage_sock_file_perms;
|
|
Chris PeBenito |
cbe82b |
allow gpm_t gpmctl_t:fifo_file manage_fifo_file_perms;
|
|
Chris PeBenito |
0bfccd |
dev_filetrans(gpm_t, gpmctl_t, { sock_file fifo_file })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(gpm_t)
|
|
Chris PeBenito |
17de1b |
kernel_list_proc(gpm_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_proc_symlinks(gpm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(gpm_t)
|
|
Chris PeBenito |
17de1b |
# Access the mouse.
|
|
Chris PeBenito |
17de1b |
dev_rw_input_dev(gpm_t)
|
|
Chris PeBenito |
17de1b |
dev_rw_mouse(gpm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
455155 |
files_read_etc_files(gpm_t)
|
|
Chris PeBenito |
455155 |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(gpm_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(gpm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
term_use_unallocated_ttys(gpm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(gpm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(gpm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(gpm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(gpm_t)
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_search_user_home_dirs(gpm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(gpm_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(gpm_t)
|
|
Chris PeBenito |
17de1b |
')
|