|
Chris PeBenito |
08690c |
policy_module(userhelper, 1.5.1)
|
|
Chris PeBenito |
7c2f5a |
|
|
Chris PeBenito |
7c2f5a |
########################################
|
|
Chris PeBenito |
7c2f5a |
#
|
|
Chris PeBenito |
7c2f5a |
# Declarations
|
|
Chris PeBenito |
7c2f5a |
#
|
|
Chris PeBenito |
7c2f5a |
|
|
Chris PeBenito |
296273 |
attribute userhelper_type;
|
|
Dan Walsh |
3eaa99 |
attribute consolehelper_domain;
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
7c2f5a |
type userhelper_conf_t;
|
|
Chris PeBenito |
7c2f5a |
files_type(userhelper_conf_t)
|
|
Chris PeBenito |
7c2f5a |
|
|
Chris PeBenito |
7c2f5a |
type userhelper_exec_t;
|
|
Chris PeBenito |
d46cfe |
application_executable_file(userhelper_exec_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
type consolehelper_exec_t;
|
|
Dan Walsh |
3eaa99 |
application_executable_file(consolehelper_exec_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
# consolehelper local policy
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
7c94a3 |
allow consolehelper_domain self:shm create_shm_perms;
|
|
Dan Walsh |
3eaa99 |
allow consolehelper_domain self:capability { setgid setuid };
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
dontaudit consolehelper_domain userhelper_conf_t:file write;
|
|
Dan Walsh |
3eaa99 |
read_files_pattern(consolehelper_domain, userhelper_conf_t, userhelper_conf_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
# Init script handling
|
|
Dan Walsh |
3eaa99 |
domain_use_interactive_fds(consolehelper_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
# internal communication is often done using fifo and unix sockets.
|
|
Dan Walsh |
3eaa99 |
allow consolehelper_domain self:fifo_file rw_fifo_file_perms;
|
|
Dan Walsh |
3eaa99 |
allow consolehelper_domain self:unix_stream_socket create_stream_socket_perms;
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
kernel_read_kernel_sysctls(consolehelper_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
corecmd_exec_bin(consolehelper_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
files_read_config_files(consolehelper_domain)
|
|
Dan Walsh |
3eaa99 |
files_read_usr_files(consolehelper_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
auth_search_pam_console_data(consolehelper_domain)
|
|
Dan Walsh |
3eaa99 |
auth_read_pam_pid(consolehelper_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
init_read_utmp(consolehelper_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
miscfiles_read_localization(consolehelper_domain)
|
|
Dan Walsh |
7c94a3 |
miscfiles_read_fonts(consolehelper_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
userhelper_exec(consolehelper_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
userdom_use_user_ptys(consolehelper_domain)
|
|
Dan Walsh |
3eaa99 |
userdom_use_user_ttys(consolehelper_domain)
|
|
Dan Walsh |
7c94a3 |
userdom_read_user_home_content_files(consolehelper_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
7c94a3 |
gnome_read_gconf_home_files(consolehelper_domain)
|
|
Dan Walsh |
7c94a3 |
')
|
|
Dan Walsh |
7c94a3 |
|
|
Dan Walsh |
7c94a3 |
optional_policy(`
|
|
Dan Walsh |
7c94a3 |
xserver_read_home_fonts(consolehelper_domain)
|
|
Dan Walsh |
3eaa99 |
xserver_stream_connect(consolehelper_domain)
|
|
Dan Walsh |
3eaa99 |
')
|