2005-08-05 14:32:12 +00:00
|
|
|
|
2007-12-14 14:23:18 +00:00
|
|
|
policy_module(acct,1.1.0)
|
2005-08-05 14:32:12 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type acct_t;
|
|
|
|
type acct_exec_t;
|
2005-10-24 22:31:44 +00:00
|
|
|
init_system_domain(acct_t,acct_exec_t)
|
2005-08-05 14:32:12 +00:00
|
|
|
|
|
|
|
type acct_data_t;
|
2005-09-12 21:40:56 +00:00
|
|
|
logging_log_file(acct_data_t)
|
2005-08-05 14:32:12 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local Policy
|
|
|
|
#
|
|
|
|
|
|
|
|
# gzip needs chown capability for some reason
|
|
|
|
allow acct_t self:capability { sys_pacct chown fsetid };
|
|
|
|
# not sure why we need kill, the command "last" is reported as using it
|
|
|
|
dontaudit acct_t self:capability { kill sys_tty_config };
|
|
|
|
|
|
|
|
allow acct_t self:fifo_file { read write getattr };
|
|
|
|
allow acct_t self:process signal_perms;
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_files_pattern(acct_t,acct_data_t,acct_data_t)
|
|
|
|
manage_lnk_files_pattern(acct_t,acct_data_t,acct_data_t)
|
2005-08-05 14:32:12 +00:00
|
|
|
|
|
|
|
can_exec(acct_t,acct_exec_t)
|
|
|
|
|
|
|
|
kernel_list_proc(acct_t)
|
|
|
|
kernel_read_system_state(acct_t)
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(acct_t)
|
2005-08-05 14:32:12 +00:00
|
|
|
|
|
|
|
dev_read_sysfs(acct_t)
|
|
|
|
# for SSP
|
|
|
|
dev_read_urand(acct_t)
|
|
|
|
|
|
|
|
fs_search_auto_mountpoints(acct_t)
|
|
|
|
fs_getattr_xattr_fs(acct_t)
|
|
|
|
|
|
|
|
term_dontaudit_use_console(acct_t)
|
|
|
|
|
|
|
|
corecmd_exec_bin(acct_t)
|
|
|
|
corecmd_exec_shell(acct_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(acct_t)
|
2005-08-05 14:32:12 +00:00
|
|
|
|
|
|
|
files_read_etc_files(acct_t)
|
|
|
|
files_read_etc_runtime_files(acct_t)
|
2005-09-05 18:17:17 +00:00
|
|
|
files_list_usr(acct_t)
|
2005-08-05 14:32:12 +00:00
|
|
|
# for nscd
|
2005-09-01 20:13:42 +00:00
|
|
|
files_dontaudit_search_pids(acct_t)
|
2005-08-05 14:32:12 +00:00
|
|
|
|
2006-03-02 23:41:11 +00:00
|
|
|
init_use_fds(acct_t)
|
2006-02-02 21:08:12 +00:00
|
|
|
init_use_script_ptys(acct_t)
|
2006-02-06 15:40:41 +00:00
|
|
|
init_exec_script_files(acct_t)
|
2005-08-05 14:32:12 +00:00
|
|
|
|
|
|
|
libs_use_ld_so(acct_t)
|
|
|
|
libs_use_shared_libs(acct_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(acct_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(acct_t)
|
|
|
|
|
2006-02-21 18:40:44 +00:00
|
|
|
userdom_dontaudit_search_sysadm_home_dirs(acct_t)
|
2006-02-20 21:33:25 +00:00
|
|
|
userdom_dontaudit_use_unpriv_user_fds(acct_t)
|
2005-08-05 14:32:12 +00:00
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
|
|
|
optional_policy(`
|
2005-08-05 14:32:12 +00:00
|
|
|
# for monthly cron job
|
2006-02-21 18:40:44 +00:00
|
|
|
auth_log_filetrans_login_records(acct_t)
|
2005-08-05 14:32:12 +00:00
|
|
|
auth_manage_login_records(acct_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
cron_system_entry(acct_t,acct_exec_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-02-02 21:08:12 +00:00
|
|
|
nscd_socket_use(acct_t)
|
2005-10-24 22:31:44 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-08-05 14:32:12 +00:00
|
|
|
seutil_sigchld_newrole(acct_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-08-05 14:32:12 +00:00
|
|
|
udev_read_db(acct_t)
|
|
|
|
')
|