2005-08-15 14:46:17 +00:00
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
policy_module(loadkeys, 1.4.0)
|
2005-08-15 14:46:17 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
# cjp: this should probably be rewritten
|
|
|
|
# per user domain, since it can rw
|
|
|
|
# all user domain ttys
|
|
|
|
type loadkeys_t;
|
|
|
|
type loadkeys_exec_t;
|
2008-07-23 21:38:39 +00:00
|
|
|
init_system_domain(loadkeys_t, loadkeys_exec_t)
|
2005-08-15 14:46:17 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
allow loadkeys_t self:capability { dac_override dac_read_search setuid sys_tty_config };
|
|
|
|
allow loadkeys_t self:fifo_file rw_fifo_file_perms;
|
2005-08-15 14:46:17 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
kernel_read_system_state(loadkeys_t)
|
2005-08-15 14:46:17 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
corecmd_exec_bin(loadkeys_t)
|
|
|
|
corecmd_exec_shell(loadkeys_t)
|
2007-02-16 23:01:42 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
files_read_etc_files(loadkeys_t)
|
|
|
|
files_read_etc_runtime_files(loadkeys_t)
|
2007-02-16 23:01:42 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
term_dontaudit_use_console(loadkeys_t)
|
|
|
|
term_use_unallocated_ttys(loadkeys_t)
|
2005-08-15 14:46:17 +00:00
|
|
|
|
2008-03-04 18:48:30 +00:00
|
|
|
init_dontaudit_use_fds(loadkeys_t)
|
2007-10-02 16:04:50 +00:00
|
|
|
init_dontaudit_use_script_ptys(loadkeys_t)
|
2005-08-15 14:46:17 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
libs_use_ld_so(loadkeys_t)
|
|
|
|
libs_use_shared_libs(loadkeys_t)
|
2005-08-15 14:46:17 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
locallogin_use_fds(loadkeys_t)
|
2005-08-15 14:46:17 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
miscfiles_read_localization(loadkeys_t)
|
2007-09-04 18:57:58 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
nscd_dontaudit_search_pid(loadkeys_t)
|
2005-11-14 20:26:41 +00:00
|
|
|
')
|