|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c12621 |
policy_module(razor, 2.0.1)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type razor_exec_t;
|
|
Chris PeBenito |
296273 |
corecmd_executable_file(razor_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type razor_etc_t;
|
|
Chris PeBenito |
17de1b |
files_config_file(razor_etc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
296273 |
type razor_home_t;
|
|
Chris PeBenito |
296273 |
typealias razor_home_t alias { user_razor_home_t staff_razor_home_t sysadm_razor_home_t };
|
|
Chris PeBenito |
296273 |
typealias razor_home_t alias { auditadm_razor_home_t secadm_razor_home_t };
|
|
Chris PeBenito |
296273 |
files_poly_member(razor_home_t)
|
|
Chris PeBenito |
296273 |
userdom_user_home_content(razor_home_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
17de1b |
type razor_log_t;
|
|
Chris PeBenito |
17de1b |
logging_log_file(razor_log_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
296273 |
type razor_tmp_t;
|
|
Chris PeBenito |
296273 |
typealias razor_tmp_t alias { user_razor_tmp_t staff_razor_tmp_t sysadm_razor_tmp_t };
|
|
Chris PeBenito |
296273 |
typealias razor_tmp_t alias { auditadm_razor_tmp_t secadm_razor_tmp_t };
|
|
Chris PeBenito |
296273 |
files_tmp_file(razor_tmp_t)
|
|
Chris PeBenito |
296273 |
ubac_constrained(razor_tmp_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
17de1b |
type razor_var_lib_t;
|
|
Chris PeBenito |
17de1b |
files_type(razor_var_lib_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
296273 |
# these are here due to ordering issues:
|
|
Chris PeBenito |
6b19be |
razor_common_domain_template(razor)
|
|
Chris PeBenito |
296273 |
typealias razor_t alias { user_razor_t staff_razor_t sysadm_razor_t };
|
|
Chris PeBenito |
296273 |
typealias razor_t alias { auditadm_razor_t secadm_razor_t };
|
|
Chris PeBenito |
296273 |
ubac_constrained(razor_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
razor_common_domain_template(system_razor)
|
|
Chris PeBenito |
296273 |
role system_r types system_razor_t;
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
296273 |
# System razor local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
296273 |
# this version of razor is invoked typically
|
|
Chris PeBenito |
296273 |
# via the system spam filter
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
296273 |
allow system_razor_t self:tcp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
296273 |
manage_dirs_pattern(system_razor_t, razor_etc_t, razor_etc_t)
|
|
Chris PeBenito |
296273 |
manage_files_pattern(system_razor_t, razor_etc_t, razor_etc_t)
|
|
Chris PeBenito |
296273 |
manage_lnk_files_pattern(system_razor_t, razor_etc_t, razor_etc_t)
|
|
Chris PeBenito |
296273 |
files_search_etc(system_razor_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
296273 |
allow system_razor_t razor_log_t:file manage_file_perms;
|
|
Chris PeBenito |
296273 |
logging_log_filetrans(system_razor_t, razor_log_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
296273 |
manage_files_pattern(system_razor_t, razor_var_lib_t, razor_var_lib_t)
|
|
Chris PeBenito |
296273 |
files_var_lib_filetrans(system_razor_t, razor_var_lib_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
296273 |
corenet_all_recvfrom_unlabeled(system_razor_t)
|
|
Chris PeBenito |
296273 |
corenet_all_recvfrom_netlabel(system_razor_t)
|
|
Chris PeBenito |
296273 |
corenet_tcp_sendrecv_generic_if(system_razor_t)
|
|
Chris PeBenito |
296273 |
corenet_raw_sendrecv_generic_if(system_razor_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(system_razor_t)
|
|
Chris PeBenito |
c12621 |
corenet_raw_sendrecv_generic_node(system_razor_t)
|
|
Chris PeBenito |
296273 |
corenet_tcp_sendrecv_razor_port(system_razor_t)
|
|
Chris PeBenito |
296273 |
corenet_tcp_connect_razor_port(system_razor_t)
|
|
Chris PeBenito |
296273 |
corenet_sendrecv_razor_client_packets(system_razor_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
sysnet_read_config(system_razor_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
# cjp: this shouldn't be needed
|
|
Chris PeBenito |
296273 |
userdom_use_unpriv_users_fds(system_razor_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
296273 |
logging_send_syslog_msg(system_razor_t)
|
|
Chris PeBenito |
296273 |
')
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
optional_policy(`
|
|
Chris PeBenito |
296273 |
nscd_socket_use(system_razor_t)
|
|
Chris PeBenito |
296273 |
')
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
########################################
|
|
Chris PeBenito |
296273 |
#
|
|
Chris PeBenito |
296273 |
# User razor local policy
|
|
Chris PeBenito |
296273 |
#
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
# Allow razor to be run by hand. Needed by any action other than
|
|
Chris PeBenito |
296273 |
# invocation from a spam filter.
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
allow razor_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
manage_dirs_pattern(razor_t, razor_home_t, razor_home_t)
|
|
Chris PeBenito |
296273 |
manage_files_pattern(razor_t, razor_home_t, razor_home_t)
|
|
Chris PeBenito |
296273 |
manage_lnk_files_pattern(razor_t, razor_home_t, razor_home_t)
|
|
Chris PeBenito |
296273 |
userdom_user_home_dir_filetrans(razor_t, razor_home_t, dir)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
manage_dirs_pattern(razor_t, razor_tmp_t, razor_tmp_t)
|
|
Chris PeBenito |
296273 |
manage_files_pattern(razor_t, razor_tmp_t, razor_tmp_t)
|
|
Chris PeBenito |
296273 |
files_tmp_filetrans(razor_t, razor_tmp_t, { file dir })
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
logging_send_syslog_msg(razor_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
userdom_search_user_home_dirs(razor_t)
|
|
Chris PeBenito |
296273 |
userdom_use_user_terminals(razor_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
tunable_policy(`use_nfs_home_dirs',`
|
|
Chris PeBenito |
296273 |
fs_manage_nfs_dirs(razor_t)
|
|
Chris PeBenito |
296273 |
fs_manage_nfs_files(razor_t)
|
|
Chris PeBenito |
296273 |
fs_manage_nfs_symlinks(razor_t)
|
|
Chris PeBenito |
296273 |
')
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
tunable_policy(`use_samba_home_dirs',`
|
|
Chris PeBenito |
296273 |
fs_manage_cifs_dirs(razor_t)
|
|
Chris PeBenito |
296273 |
fs_manage_cifs_files(razor_t)
|
|
Chris PeBenito |
296273 |
fs_manage_cifs_symlinks(razor_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
nscd_socket_use(razor_t)
|
|
Chris PeBenito |
17de1b |
')
|