|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
policy_module(acct,1.0)
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
########################################
|
|
Chris PeBenito |
9a66d4 |
#
|
|
Chris PeBenito |
9a66d4 |
# Declarations
|
|
Chris PeBenito |
9a66d4 |
#
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
type acct_t;
|
|
Chris PeBenito |
9a66d4 |
type acct_exec_t;
|
|
Chris PeBenito |
52e1ed |
init_system_domain(acct_t,acct_exec_t)
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
type acct_data_t;
|
|
Chris PeBenito |
2705f9 |
logging_log_file(acct_data_t)
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
########################################
|
|
Chris PeBenito |
9a66d4 |
#
|
|
Chris PeBenito |
9a66d4 |
# Local Policy
|
|
Chris PeBenito |
9a66d4 |
#
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
# gzip needs chown capability for some reason
|
|
Chris PeBenito |
9a66d4 |
allow acct_t self:capability { sys_pacct chown fsetid };
|
|
Chris PeBenito |
9a66d4 |
# not sure why we need kill, the command "last" is reported as using it
|
|
Chris PeBenito |
9a66d4 |
dontaudit acct_t self:capability { kill sys_tty_config };
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
allow acct_t self:fifo_file { read write getattr };
|
|
Chris PeBenito |
9a66d4 |
allow acct_t self:process signal_perms;
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
allow acct_t acct_data_t:dir rw_dir_perms;
|
|
Chris PeBenito |
9a66d4 |
allow acct_t acct_data_t:file create_file_perms;
|
|
Chris PeBenito |
9a66d4 |
allow acct_t acct_data_t:lnk_file create_lnk_perms;
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
can_exec(acct_t,acct_exec_t)
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
kernel_list_proc(acct_t)
|
|
Chris PeBenito |
9a66d4 |
kernel_read_system_state(acct_t)
|
|
Chris PeBenito |
9a66d4 |
kernel_read_kernel_sysctl(acct_t)
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
dev_read_sysfs(acct_t)
|
|
Chris PeBenito |
9a66d4 |
# for SSP
|
|
Chris PeBenito |
9a66d4 |
dev_read_urand(acct_t)
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
fs_search_auto_mountpoints(acct_t)
|
|
Chris PeBenito |
9a66d4 |
fs_getattr_xattr_fs(acct_t)
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
term_dontaudit_use_console(acct_t)
|
|
Chris PeBenito |
9a66d4 |
|
|
Don Miner |
bdfa8e |
corecmd_search_sbin(acct_t)
|
|
Chris PeBenito |
9a66d4 |
corecmd_exec_bin(acct_t)
|
|
Chris PeBenito |
9a66d4 |
corecmd_exec_shell(acct_t)
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
domain_use_wide_inherit_fd(acct_t)
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
files_read_etc_files(acct_t)
|
|
Chris PeBenito |
9a66d4 |
files_read_etc_runtime_files(acct_t)
|
|
Chris PeBenito |
603f90 |
files_list_usr(acct_t)
|
|
Chris PeBenito |
9a66d4 |
# for nscd
|
|
Chris PeBenito |
9d3bdc |
files_dontaudit_search_pids(acct_t)
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
init_use_fd(acct_t)
|
|
Chris PeBenito |
9a66d4 |
init_use_script_pty(acct_t)
|
|
Chris PeBenito |
9a66d4 |
init_exec_script(acct_t)
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
libs_use_ld_so(acct_t)
|
|
Chris PeBenito |
9a66d4 |
libs_use_shared_libs(acct_t)
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
logging_send_syslog_msg(acct_t)
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
miscfiles_read_localization(acct_t)
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
userdom_dontaudit_search_sysadm_home_dir(acct_t)
|
|
Chris PeBenito |
9a66d4 |
userdom_dontaudit_use_unpriv_user_fd(acct_t)
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
9a66d4 |
term_dontaudit_use_unallocated_tty(acct_t)
|
|
Chris PeBenito |
9a66d4 |
term_dontaudit_use_generic_pty(acct_t)
|
|
Chris PeBenito |
9a66d4 |
files_dontaudit_read_root_file(acct_t)
|
|
Chris PeBenito |
9a66d4 |
')
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
132880 |
optional_policy(`cron',`
|
|
Chris PeBenito |
132880 |
optional_policy(`authlogin',`
|
|
Chris PeBenito |
9a66d4 |
# for monthly cron job
|
|
Chris PeBenito |
9a66d4 |
auth_create_login_records(acct_t)
|
|
Chris PeBenito |
9a66d4 |
auth_manage_login_records(acct_t)
|
|
Chris PeBenito |
9a66d4 |
')
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
cron_system_entry(acct_t,acct_exec_t)
|
|
Chris PeBenito |
9a66d4 |
')
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
132880 |
optional_policy(`nscd',`
|
|
Chris PeBenito |
52e1ed |
nscd_use_socket(acct_t)
|
|
Chris PeBenito |
52e1ed |
')
|
|
Chris PeBenito |
52e1ed |
|
|
Chris PeBenito |
132880 |
optional_policy(`selinuxutil',`
|
|
Chris PeBenito |
9a66d4 |
seutil_sigchld_newrole(acct_t)
|
|
Chris PeBenito |
9a66d4 |
')
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
132880 |
optional_policy(`udev',`
|
|
Chris PeBenito |
9a66d4 |
udev_read_db(acct_t)
|
|
Chris PeBenito |
9a66d4 |
')
|
|
Chris PeBenito |
c0d156 |
|