|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
12e9ea |
policy_module(userdomain,2.4.1)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
role sysadm_r, staff_r, user_r;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
ifdef(`enable_mls',`
|
|
Chris PeBenito |
17de1b |
role secadm_r;
|
|
Chris PeBenito |
17de1b |
role auditadm_r;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
56e1b3 |
## <desc>
|
|
Chris PeBenito |
56e1b3 |
##
|
|
Chris PeBenito |
56e1b3 |
## Allow sysadm to ptrace all processes
|
|
Chris PeBenito |
56e1b3 |
##
|
|
Chris PeBenito |
56e1b3 |
## </desc>
|
|
Chris PeBenito |
56e1b3 |
gen_tunable(allow_ptrace,false)
|
|
Chris PeBenito |
56e1b3 |
|
|
Chris PeBenito |
56e1b3 |
## <desc>
|
|
Chris PeBenito |
56e1b3 |
##
|
|
Chris PeBenito |
56e1b3 |
## Allow users to connect to mysql
|
|
Chris PeBenito |
56e1b3 |
##
|
|
Chris PeBenito |
56e1b3 |
## </desc>
|
|
Chris PeBenito |
56e1b3 |
gen_tunable(allow_user_mysql_connect,false)
|
|
Chris PeBenito |
56e1b3 |
|
|
Chris PeBenito |
56e1b3 |
## <desc>
|
|
Chris PeBenito |
56e1b3 |
##
|
|
Chris PeBenito |
cb10a2 |
## Allow users to connect to PostgreSQL
|
|
Chris PeBenito |
cb10a2 |
##
|
|
Chris PeBenito |
cb10a2 |
## </desc>
|
|
Chris PeBenito |
cb10a2 |
gen_tunable(allow_user_postgresql_connect,false)
|
|
Chris PeBenito |
cb10a2 |
|
|
Chris PeBenito |
cb10a2 |
## <desc>
|
|
Chris PeBenito |
cb10a2 |
##
|
|
Chris PeBenito |
56e1b3 |
## Allow regular users direct mouse access
|
|
Chris PeBenito |
56e1b3 |
##
|
|
Chris PeBenito |
56e1b3 |
## </desc>
|
|
Chris PeBenito |
56e1b3 |
gen_tunable(user_direct_mouse,false)
|
|
Chris PeBenito |
56e1b3 |
|
|
Chris PeBenito |
56e1b3 |
## <desc>
|
|
Chris PeBenito |
56e1b3 |
##
|
|
Chris PeBenito |
56e1b3 |
## Allow users to read system messages.
|
|
Chris PeBenito |
56e1b3 |
##
|
|
Chris PeBenito |
56e1b3 |
## </desc>
|
|
Chris PeBenito |
56e1b3 |
gen_tunable(user_dmesg,false)
|
|
Chris PeBenito |
56e1b3 |
|
|
Chris PeBenito |
56e1b3 |
## <desc>
|
|
Chris PeBenito |
56e1b3 |
##
|
|
Chris PeBenito |
56e1b3 |
## Allow user to r/w files on filesystems
|
|
Chris PeBenito |
56e1b3 |
## that do not have extended attributes (FAT, CDROM, FLOPPY)
|
|
Chris PeBenito |
56e1b3 |
##
|
|
Chris PeBenito |
56e1b3 |
## </desc>
|
|
Chris PeBenito |
56e1b3 |
gen_tunable(user_rw_noexattrfile,false)
|
|
Chris PeBenito |
56e1b3 |
|
|
Chris PeBenito |
56e1b3 |
## <desc>
|
|
Chris PeBenito |
56e1b3 |
##
|
|
Chris PeBenito |
56e1b3 |
## Allow w to display everyone
|
|
Chris PeBenito |
56e1b3 |
##
|
|
Chris PeBenito |
56e1b3 |
## </desc>
|
|
Chris PeBenito |
56e1b3 |
gen_tunable(user_ttyfile_stat,false)
|
|
Chris PeBenito |
56e1b3 |
|
|
Chris PeBenito |
17de1b |
# admin users terminals (tty and pty)
|
|
Chris PeBenito |
17de1b |
attribute admin_terminal;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# users home directory
|
|
Chris PeBenito |
17de1b |
attribute home_dir_type;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# users home directory contents
|
|
Chris PeBenito |
17de1b |
attribute home_type;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# The privhome attribute identifies every domain that can create files under
|
|
Chris PeBenito |
17de1b |
# regular user home directories in the regular context (IE act on behalf of
|
|
Chris PeBenito |
17de1b |
# a user in writing regular files)
|
|
Chris PeBenito |
17de1b |
attribute privhome;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# all unprivileged users home directories
|
|
Chris PeBenito |
17de1b |
attribute user_home_dir_type;
|
|
Chris PeBenito |
17de1b |
attribute user_home_type;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# all unprivileged users ptys
|
|
Chris PeBenito |
17de1b |
attribute user_ptynode;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# all unprivileged users tmp files
|
|
Chris PeBenito |
17de1b |
attribute user_tmpfile;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# all unprivileged users ttys
|
|
Chris PeBenito |
17de1b |
attribute user_ttynode;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# all user domains
|
|
Chris PeBenito |
17de1b |
attribute userdomain;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# unprivileged user domains
|
|
Chris PeBenito |
17de1b |
attribute unpriv_userdomain;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
attribute untrusted_content_type;
|
|
Chris PeBenito |
17de1b |
attribute untrusted_content_tmp_type;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
userdom_admin_user_template(sysadm)
|
|
Chris PeBenito |
350b6a |
userdom_unpriv_user_template(staff)
|
|
Chris PeBenito |
350b6a |
userdom_unpriv_user_template(user)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
# user role change rules:
|
|
Chris PeBenito |
350b6a |
# sysadm_r can change to user roles
|
|
Chris PeBenito |
350b6a |
userdom_role_change_template(sysadm, user)
|
|
Chris PeBenito |
350b6a |
userdom_role_change_template(sysadm, staff)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
# only staff_r can change to sysadm_r
|
|
Chris PeBenito |
350b6a |
userdom_role_change_template(staff, sysadm)
|
|
Chris PeBenito |
350b6a |
dontaudit staff_t admin_terminal:chr_file { read write };
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
ifdef(`enable_mls',`
|
|
Chris PeBenito |
350b6a |
userdom_unpriv_user_template(secadm)
|
|
Chris PeBenito |
350b6a |
userdom_unpriv_user_template(auditadm)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
userdom_role_change_template(staff, auditadm)
|
|
Chris PeBenito |
350b6a |
userdom_role_change_template(staff, secadm)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
userdom_role_change_template(sysadm, secadm)
|
|
Chris PeBenito |
350b6a |
userdom_role_change_template(sysadm, auditadm)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
userdom_role_change_template(auditadm, secadm)
|
|
Chris PeBenito |
350b6a |
userdom_role_change_template(auditadm, sysadm)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
userdom_role_change_template(secadm, auditadm)
|
|
Chris PeBenito |
350b6a |
userdom_role_change_template(secadm, sysadm)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
# this should be tunable_policy, but
|
|
Chris PeBenito |
350b6a |
# currently type_change and RBAC allow
|
|
Chris PeBenito |
350b6a |
# do not work in conditionals
|
|
Chris PeBenito |
350b6a |
ifdef(`user_canbe_sysadm',`
|
|
Chris PeBenito |
350b6a |
userdom_role_change_template(user, sysadm)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
########################################
|
|
Chris PeBenito |
350b6a |
#
|
|
Chris PeBenito |
350b6a |
# Sysadm local policy
|
|
Chris PeBenito |
350b6a |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
# for su
|
|
Chris PeBenito |
350b6a |
allow sysadm_t userdomain:fd use;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
# Add/remove user home directories
|
|
Chris PeBenito |
350b6a |
allow sysadm_t user_home_dir_t:dir manage_dir_perms;
|
|
Chris PeBenito |
350b6a |
files_home_filetrans(sysadm_t, user_home_dir_t, dir)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
corecmd_exec_shell(sysadm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
mls_process_read_up(sysadm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
init_exec(sysadm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
# Following for sending reboot and wall messages
|
|
Chris PeBenito |
350b6a |
userdom_use_unpriv_users_ptys(sysadm_t)
|
|
Chris PeBenito |
350b6a |
userdom_use_unpriv_users_ttys(sysadm_t)
|
|
Chris PeBenito |
693d4a |
|
|
Chris PeBenito |
350b6a |
ifdef(`direct_sysadm_daemon',`
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
init_run_daemon(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
350b6a |
',`
|
|
Chris PeBenito |
350b6a |
ifdef(`distro_gentoo',`
|
|
Chris PeBenito |
d6d16b |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
seutil_init_script_run_runinit(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
d6d16b |
')
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
ifdef(`enable_mls',`
|
|
Chris PeBenito |
350b6a |
allow auditadm_t self:capability { dac_read_search dac_override };
|
|
Chris PeBenito |
350b6a |
seutil_run_runinit(auditadm_t, auditadm_r, { auditadm_tty_device_t auditadm_devpts_t })
|
|
Chris PeBenito |
350b6a |
domain_kill_all_domains(auditadm_t)
|
|
Chris PeBenito |
350b6a |
seutil_read_bin_policy(auditadm_t)
|
|
Chris PeBenito |
350b6a |
corecmd_exec_shell(auditadm_t)
|
|
Chris PeBenito |
350b6a |
logging_send_syslog_msg(auditadm_t)
|
|
Chris PeBenito |
350b6a |
logging_read_generic_logs(auditadm_t)
|
|
Chris PeBenito |
350b6a |
logging_manage_audit_log(auditadm_t)
|
|
Chris PeBenito |
350b6a |
logging_manage_audit_config(auditadm_t)
|
|
Chris PeBenito |
350b6a |
logging_run_auditctl(auditadm_t, auditadm_r, { auditadm_tty_device_t auditadm_devpts_t })
|
|
Chris PeBenito |
350b6a |
logging_run_auditd(auditadm_t, auditadm_r, { auditadm_tty_device_t auditadm_devpts_t })
|
|
Chris PeBenito |
350b6a |
userdom_dontaudit_read_sysadm_home_content_files(auditadm_t)
|
|
Chris PeBenito |
350b6a |
|
|
Chris PeBenito |
350b6a |
allow secadm_t self:capability { dac_read_search dac_override };
|
|
Chris PeBenito |
350b6a |
corecmd_exec_shell(secadm_t)
|
|
Chris PeBenito |
350b6a |
domain_obj_id_change_exemption(secadm_t)
|
|
Chris PeBenito |
350b6a |
mls_process_read_up(secadm_t)
|
|
Chris PeBenito |
350b6a |
mls_file_read_all_levels(secadm_t)
|
|
Chris PeBenito |
350b6a |
mls_file_write_all_levels(secadm_t)
|
|
Chris PeBenito |
350b6a |
mls_file_upgrade(secadm_t)
|
|
Chris PeBenito |
350b6a |
mls_file_downgrade(secadm_t)
|
|
Chris PeBenito |
350b6a |
auth_relabel_all_files_except_shadow(secadm_t)
|
|
Chris PeBenito |
350b6a |
dev_relabel_all_dev_nodes(secadm_t)
|
|
Chris PeBenito |
350b6a |
auth_relabel_shadow(secadm_t)
|
|
Chris PeBenito |
350b6a |
init_exec(secadm_t)
|
|
Chris PeBenito |
350b6a |
logging_read_audit_log(secadm_t)
|
|
Chris PeBenito |
350b6a |
logging_read_generic_logs(secadm_t)
|
|
Chris PeBenito |
350b6a |
logging_read_audit_config(secadm_t)
|
|
Chris PeBenito |
350b6a |
userdom_dontaudit_append_staff_home_content_files(secadm_t)
|
|
Chris PeBenito |
350b6a |
userdom_dontaudit_read_sysadm_home_content_files(secadm_t)
|
|
Chris PeBenito |
350b6a |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
aide_run(secadm_t, secadm_r, { secadm_tty_device_t secadm_devpts_t })
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
350b6a |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
netlabel_run_mgmt(secadm_t, secadm_r, { secadm_tty_device_t secadm_devpts_t })
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
350b6a |
',`
|
|
Chris PeBenito |
350b6a |
logging_manage_audit_log(sysadm_t)
|
|
Chris PeBenito |
350b6a |
logging_manage_audit_config(sysadm_t)
|
|
Chris PeBenito |
350b6a |
logging_run_auditctl(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
350b6a |
tunable_policy(`allow_ptrace',`
|
|
Chris PeBenito |
350b6a |
domain_ptrace_all_domains(sysadm_t)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
amanda_run_recover(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
apache_run_helper(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
#apache_run_all_scripts(sysadm_t, sysadm_r)
|
|
Chris PeBenito |
350b6a |
#apache_domtrans_sys_script(sysadm_t)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
tzdata_domtrans(sysadm_t)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
raid_domtrans_mdadm(sysadm_t)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
# cjp: why is this not apm_run_client
|
|
Chris PeBenito |
350b6a |
apm_domtrans_client(sysadm_t)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
apt_run(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
backup_run(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
bootloader_run(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
bind_run_ndc(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
certwatch_run(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
consoletype_run(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
clock_run(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
clockspeed_run_cli(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
cvs_exec(sysadm_t)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
b4dfdc |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
consoletype_exec(sysadm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
ifdef(`enable_mls',`
|
|
Chris PeBenito |
350b6a |
consoletype_exec(auditadm_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
cron_admin_template(sysadm, sysadm_t, sysadm_r)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
dcc_run_cdcc(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
dcc_run_client(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
dcc_run_dbclean(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
ddcprobe_run(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
dmesg_exec(sysadm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
ifdef(`enable_mls',`
|
|
Chris PeBenito |
350b6a |
dmesg_exec(auditadm_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
dmidecode_run(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
dpkg_run(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
ethereal_run_tethereal(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
ethereal_admin_template(sysadm, sysadm_t, sysadm_r)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
firstboot_run(sysadm_t, sysadm_r, sysadm_tty_device_t)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
fstools_run(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
hostname_run(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
# allow system administrator to use the ipsec script to look
|
|
Chris PeBenito |
350b6a |
# at things (e.g., ipsec auto --status)
|
|
Chris PeBenito |
350b6a |
# probably should create an ipsec_admin role for this kind of thing
|
|
Chris PeBenito |
350b6a |
ipsec_exec_mgmt(sysadm_t)
|
|
Chris PeBenito |
350b6a |
ipsec_stream_connect(sysadm_t)
|
|
Chris PeBenito |
350b6a |
# for lsof
|
|
Chris PeBenito |
350b6a |
ipsec_getattr_key_sockets(sysadm_t)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
iptables_run(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
libs_run_ldconfig(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
lvm_run(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
logrotate_run(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
lpd_run_checkpc(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
lpr_admin_template(sysadm, sysadm_t, sysadm_r)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
kudzu_run(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
b4dfdc |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
modutils_run_depmod(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
modutils_run_insmod(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
modutils_run_update_mods(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
mount_run(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
mta_admin_template(sysadm, sysadm_t, sysadm_r)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
mysql_stream_connect(sysadm_t)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
netutils_run(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
netutils_run_ping(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
netutils_run_traceroute(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
rpc_domtrans_nfsd(sysadm_t)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
munin_stream_connect(sysadm_t)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
ntp_stub()
|
|
Chris PeBenito |
350b6a |
corenet_udp_bind_ntp_port(sysadm_t)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
oav_run_update(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
pcmcia_run_cardctl(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
portage_run(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
portage_run_gcc_config(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
portmap_run_helper(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
quota_run(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
rpm_run(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
rsync_exec(sysadm_t)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
samba_run_net(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
samba_run_winbind_helper(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
seutil_run_setfiles(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
seutil_run_runinit(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
ifdef(`enable_mls',`
|
|
Chris PeBenito |
350b6a |
userdom_security_admin_template(secadm_t, secadm_r, { secadm_tty_device_t sysadm_devpts_t })
|
|
Chris PeBenito |
350b6a |
', `
|
|
Chris PeBenito |
350b6a |
userdom_security_admin_template(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
sysnet_run_ifconfig(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
sysnet_run_dhcpc(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
tripwire_run_siggen(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
tripwire_run_tripwire(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
tripwire_run_twadmin(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
tripwire_run_twprint(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
unconfined_domtrans(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
usbmodules_run(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
usermanage_run_admin_passwd(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
usermanage_run_groupadd(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
usermanage_run_useradd(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
bbcd3c |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
vpn_run(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
bbcd3c |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
webalizer_run(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
bbcd3c |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
yam_run(sysadm_t, sysadm_r, admin_terminal)
|
|
Chris PeBenito |
bbcd3c |
')
|