Chris PeBenito 17de1b
Chris PeBenito 12e9ea
policy_module(distcc,1.4.1)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Declarations
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type distccd_t;
Chris PeBenito 17de1b
type distccd_exec_t;
Chris PeBenito 17de1b
init_daemon_domain(distccd_t,distccd_exec_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type distccd_log_t;
Chris PeBenito 17de1b
logging_log_file(distccd_log_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type distccd_tmp_t;
Chris PeBenito 17de1b
files_tmp_file(distccd_tmp_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type distccd_var_run_t;
Chris PeBenito 17de1b
files_pid_file(distccd_var_run_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Local policy
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
allow distccd_t self:capability { setgid setuid };
Chris PeBenito 17de1b
dontaudit distccd_t self:capability sys_tty_config;
Chris PeBenito 17de1b
allow distccd_t self:process { signal_perms setsched };
Chris PeBenito 17de1b
allow distccd_t self:fifo_file { read write getattr };
Chris PeBenito 92d1ad
allow distccd_t self:netlink_route_socket r_netlink_socket_perms;
Chris PeBenito 17de1b
allow distccd_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 17de1b
allow distccd_t self:udp_socket create_socket_perms;
Chris PeBenito 17de1b
Chris PeBenito c0868a
allow distccd_t distccd_log_t:file manage_file_perms;
Chris PeBenito 17de1b
logging_log_filetrans(distccd_t,distccd_log_t,file)
Chris PeBenito 17de1b
Chris PeBenito c0868a
manage_dirs_pattern(distccd_t,distccd_tmp_t,distccd_tmp_t)
Chris PeBenito c0868a
manage_files_pattern(distccd_t,distccd_tmp_t,distccd_tmp_t)
Chris PeBenito 17de1b
files_tmp_filetrans(distccd_t, distccd_tmp_t, { file dir })
Chris PeBenito 17de1b
Chris PeBenito c0868a
manage_files_pattern(distccd_t,distccd_var_run_t,distccd_var_run_t)
Chris PeBenito 17de1b
files_pid_filetrans(distccd_t,distccd_var_run_t,file)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
kernel_read_system_state(distccd_t)
Chris PeBenito 17de1b
kernel_read_kernel_sysctls(distccd_t)
Chris PeBenito 17de1b
Chris PeBenito 190066
corenet_all_recvfrom_unlabeled(distccd_t)
Chris PeBenito 190066
corenet_all_recvfrom_netlabel(distccd_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_all_if(distccd_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_all_if(distccd_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_all_nodes(distccd_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_all_nodes(distccd_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_all_ports(distccd_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_all_ports(distccd_t)
Chris PeBenito 17de1b
corenet_tcp_bind_all_nodes(distccd_t)
Chris PeBenito 17de1b
corenet_tcp_bind_distccd_port(distccd_t)
Chris PeBenito 17de1b
corenet_sendrecv_distccd_server_packets(distccd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
dev_read_sysfs(distccd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
fs_getattr_all_fs(distccd_t)
Chris PeBenito 17de1b
fs_search_auto_mountpoints(distccd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
corecmd_exec_bin(distccd_t)
Chris PeBenito 8021cb
corecmd_read_bin_symlinks(distccd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
domain_use_interactive_fds(distccd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
files_read_etc_files(distccd_t)
Chris PeBenito 17de1b
files_read_etc_runtime_files(distccd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
libs_use_ld_so(distccd_t)
Chris PeBenito 17de1b
libs_use_shared_libs(distccd_t)
Chris PeBenito 17de1b
libs_exec_lib_files(distccd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
logging_send_syslog_msg(distccd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
miscfiles_read_localization(distccd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
sysnet_read_config(distccd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
userdom_dontaudit_use_unpriv_user_fds(distccd_t)
Chris PeBenito 17de1b
userdom_dontaudit_search_sysadm_home_dirs(distccd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	nis_use_ypbind(distccd_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	seutil_sigchld_newrole(distccd_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	udev_read_db(distccd_t)
Chris PeBenito 17de1b
')