selinux-policy/policy/modules/services/gpm.te

80 lines
1.7 KiB
Plaintext
Raw Normal View History

2010-05-24 19:32:01 +00:00
policy_module(gpm, 1.8.0)
2005-08-17 21:28:31 +00:00
########################################
#
# Declarations
#
type gpm_t;
type gpm_exec_t;
init_daemon_domain(gpm_t, gpm_exec_t)
2005-08-17 21:28:31 +00:00
type gpm_conf_t;
files_type(gpm_conf_t)
type gpm_tmp_t;
files_tmp_file(gpm_tmp_t)
type gpm_var_run_t;
files_pid_file(gpm_var_run_t)
type gpmctl_t;
files_type(gpmctl_t)
########################################
#
# Local policy
#
2009-12-18 15:39:23 +00:00
allow gpm_t self:capability { setpcap setuid dac_override sys_admin sys_tty_config };
allow gpm_t self:process { getcap setcap };
2005-12-13 20:38:19 +00:00
allow gpm_t self:unix_stream_socket create_stream_socket_perms;
2005-08-17 21:28:31 +00:00
2006-12-12 20:08:08 +00:00
allow gpm_t gpm_conf_t:dir list_dir_perms;
read_files_pattern(gpm_t, gpm_conf_t, gpm_conf_t)
read_lnk_files_pattern(gpm_t, gpm_conf_t, gpm_conf_t)
2005-08-17 21:28:31 +00:00
manage_dirs_pattern(gpm_t, gpm_tmp_t, gpm_tmp_t)
manage_files_pattern(gpm_t, gpm_tmp_t, gpm_tmp_t)
2006-02-21 18:40:44 +00:00
files_tmp_filetrans(gpm_t, gpm_tmp_t, { file dir })
2005-08-17 21:28:31 +00:00
2006-12-12 20:08:08 +00:00
allow gpm_t gpm_var_run_t:file manage_file_perms;
2009-06-26 14:40:13 +00:00
files_pid_filetrans(gpm_t, gpm_var_run_t, file)
2005-08-17 21:28:31 +00:00
allow gpm_t gpmctl_t:sock_file manage_sock_file_perms;
allow gpm_t gpmctl_t:fifo_file manage_fifo_file_perms;
dev_filetrans(gpm_t, gpmctl_t, { sock_file fifo_file })
2005-08-17 21:28:31 +00:00
kernel_read_kernel_sysctls(gpm_t)
2005-08-17 21:28:31 +00:00
kernel_list_proc(gpm_t)
kernel_read_proc_symlinks(gpm_t)
dev_read_sysfs(gpm_t)
# Access the mouse.
dev_rw_input_dev(gpm_t)
2005-12-12 18:53:45 +00:00
dev_rw_mouse(gpm_t)
2005-08-17 21:28:31 +00:00
2009-06-12 19:44:10 +00:00
files_read_etc_files(gpm_t)
2005-08-17 21:28:31 +00:00
fs_getattr_all_fs(gpm_t)
fs_search_auto_mountpoints(gpm_t)
2006-02-02 21:08:12 +00:00
term_use_unallocated_ttys(gpm_t)
2005-08-17 21:28:31 +00:00
2006-02-20 21:33:25 +00:00
domain_use_interactive_fds(gpm_t)
2005-08-17 21:28:31 +00:00
logging_send_syslog_msg(gpm_t)
miscfiles_read_localization(gpm_t)
2006-02-20 21:33:25 +00:00
userdom_dontaudit_use_unpriv_user_fds(gpm_t)
2008-11-05 16:10:46 +00:00
userdom_dontaudit_search_user_home_dirs(gpm_t)
2005-08-17 21:28:31 +00:00
optional_policy(`
2005-08-17 21:28:31 +00:00
seutil_sigchld_newrole(gpm_t)
')
optional_policy(`
2005-08-17 21:28:31 +00:00
udev_read_db(gpm_t)
')