|
Chris PeBenito |
29af4c |
policy_module(cups, 1.14.0)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
########################################
|
|
Chris PeBenito |
ef5ca0 |
#
|
|
Chris PeBenito |
ef5ca0 |
# Declarations
|
|
Chris PeBenito |
ef5ca0 |
#
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
type cupsd_config_t;
|
|
Chris PeBenito |
ef5ca0 |
type cupsd_config_exec_t;
|
|
Chris PeBenito |
0bfccd |
init_daemon_domain(cupsd_config_t, cupsd_config_exec_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
type cupsd_config_var_run_t;
|
|
Chris PeBenito |
ef5ca0 |
files_pid_file(cupsd_config_var_run_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
type cupsd_t;
|
|
Chris PeBenito |
e070dd |
type cupsd_exec_t;
|
|
Chris PeBenito |
0bfccd |
init_daemon_domain(cupsd_t, cupsd_exec_t)
|
|
Dan Walsh |
3eaa99 |
mls_trusted_object(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
9bbc75 |
type cupsd_etc_t;
|
|
Chris PeBenito |
9bbc75 |
files_config_file(cupsd_etc_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
8f3bdd |
type cupsd_initrc_exec_t;
|
|
Chris PeBenito |
8f3bdd |
init_script_file(cupsd_initrc_exec_t)
|
|
Chris PeBenito |
8f3bdd |
|
|
Chris PeBenito |
4e698b |
type cupsd_interface_t;
|
|
Chris PeBenito |
4e698b |
files_type(cupsd_interface_t)
|
|
Chris PeBenito |
4e698b |
|
|
Chris PeBenito |
9bbc75 |
type cupsd_rw_etc_t;
|
|
Chris PeBenito |
9bbc75 |
files_config_file(cupsd_rw_etc_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
8f3bdd |
type cupsd_lock_t;
|
|
Chris PeBenito |
8f3bdd |
files_lock_file(cupsd_lock_t)
|
|
Chris PeBenito |
8f3bdd |
|
|
Chris PeBenito |
ef5ca0 |
type cupsd_log_t;
|
|
Chris PeBenito |
ef5ca0 |
logging_log_file(cupsd_log_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
type cupsd_lpd_t;
|
|
Chris PeBenito |
ef5ca0 |
type cupsd_lpd_exec_t;
|
|
Chris PeBenito |
8b2d5c |
domain_type(cupsd_lpd_t)
|
|
Chris PeBenito |
0bfccd |
domain_entry_file(cupsd_lpd_t, cupsd_lpd_exec_t)
|
|
Chris PeBenito |
ef5ca0 |
role system_r types cupsd_lpd_t;
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
type cupsd_lpd_tmp_t;
|
|
Chris PeBenito |
ef5ca0 |
files_tmp_file(cupsd_lpd_tmp_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
type cupsd_lpd_var_run_t;
|
|
Chris PeBenito |
ef5ca0 |
files_pid_file(cupsd_lpd_var_run_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
8f3bdd |
type cups_pdf_t;
|
|
Chris PeBenito |
8f3bdd |
type cups_pdf_exec_t;
|
|
Chris PeBenito |
8f3bdd |
cups_backend(cups_pdf_t, cups_pdf_exec_t)
|
|
Chris PeBenito |
8f3bdd |
|
|
Chris PeBenito |
8f3bdd |
type cups_pdf_tmp_t;
|
|
Chris PeBenito |
8f3bdd |
files_tmp_file(cups_pdf_tmp_t)
|
|
Chris PeBenito |
8f3bdd |
|
|
Chris PeBenito |
ef5ca0 |
type cupsd_tmp_t;
|
|
Chris PeBenito |
ef5ca0 |
files_tmp_file(cupsd_tmp_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
type cupsd_var_run_t;
|
|
Chris PeBenito |
ef5ca0 |
files_pid_file(cupsd_var_run_t)
|
|
Chris PeBenito |
d6d16b |
mls_trusted_object(cupsd_var_run_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
type hplip_t;
|
|
Chris PeBenito |
ef5ca0 |
type hplip_exec_t;
|
|
Chris PeBenito |
0bfccd |
init_daemon_domain(hplip_t, hplip_exec_t)
|
|
Chris PeBenito |
8f3bdd |
# For CUPS to run as a backend
|
|
Chris PeBenito |
8f3bdd |
cups_backend(hplip_t, hplip_exec_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
9bbc75 |
type hplip_etc_t;
|
|
Chris PeBenito |
9bbc75 |
files_config_file(hplip_etc_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
8f3bdd |
type hplip_tmp_t;
|
|
Chris PeBenito |
8f3bdd |
files_tmp_file(hplip_tmp_t)
|
|
Chris PeBenito |
8f3bdd |
|
|
Chris PeBenito |
4e698b |
type hplip_var_lib_t;
|
|
Chris PeBenito |
4e698b |
files_type(hplip_var_lib_t)
|
|
Chris PeBenito |
4e698b |
|
|
Chris PeBenito |
ef5ca0 |
type hplip_var_run_t;
|
|
Chris PeBenito |
ef5ca0 |
files_pid_file(hplip_var_run_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
type ptal_t;
|
|
Chris PeBenito |
ef5ca0 |
type ptal_exec_t;
|
|
Chris PeBenito |
0bfccd |
init_daemon_domain(ptal_t, ptal_exec_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
9bbc75 |
type ptal_etc_t;
|
|
Chris PeBenito |
9bbc75 |
files_config_file(ptal_etc_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
type ptal_var_run_t;
|
|
Chris PeBenito |
ef5ca0 |
files_pid_file(ptal_var_run_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
e070dd |
ifdef(`enable_mcs',`
|
|
Chris PeBenito |
3f67f7 |
init_ranged_daemon_domain(cupsd_t, cupsd_exec_t, s0 - mcs_systemhigh)
|
|
Chris PeBenito |
e070dd |
')
|
|
Chris PeBenito |
e070dd |
|
|
Chris PeBenito |
d9845a |
ifdef(`enable_mls',`
|
|
Chris PeBenito |
3f67f7 |
init_ranged_daemon_domain(cupsd_t, cupsd_exec_t, mls_systemhigh)
|
|
Chris PeBenito |
d9845a |
')
|
|
Chris PeBenito |
d9845a |
|
|
Chris PeBenito |
ef5ca0 |
########################################
|
|
Chris PeBenito |
ef5ca0 |
#
|
|
Chris PeBenito |
ef5ca0 |
# Cups local policy
|
|
Chris PeBenito |
ef5ca0 |
#
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
# /usr/lib/cups/backend/serial needs sys_admin(?!)
|
|
Chris PeBenito |
4e698b |
allow cupsd_t self:capability { ipc_lock sys_admin dac_override dac_read_search kill setgid setuid fsetid net_bind_service fowner chown dac_override sys_rawio sys_resource sys_tty_config };
|
|
Chris PeBenito |
9bbc75 |
dontaudit cupsd_t self:capability { sys_tty_config net_admin };
|
|
Chris PeBenito |
8f3bdd |
allow cupsd_t self:process { getpgid setpgid setsched signal_perms };
|
|
Chris PeBenito |
8f3bdd |
allow cupsd_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
a3cf80 |
allow cupsd_t self:unix_stream_socket { create_stream_socket_perms connectto };
|
|
Chris PeBenito |
ef5ca0 |
allow cupsd_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
a5e213 |
allow cupsd_t self:netlink_selinux_socket create_socket_perms;
|
|
Chris PeBenito |
8f3bdd |
allow cupsd_t self:shm create_shm_perms;
|
|
Chris PeBenito |
4e698b |
allow cupsd_t self:sem create_sem_perms;
|
|
Chris PeBenito |
33c7e6 |
allow cupsd_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
ef5ca0 |
allow cupsd_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
f40b22 |
allow cupsd_t self:appletalk_socket create_socket_perms;
|
|
Chris PeBenito |
f40b22 |
# generic socket here until appletalk socket is available in kernels
|
|
Chris PeBenito |
f40b22 |
allow cupsd_t self:socket create_socket_perms;
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
c0868a |
allow cupsd_t cupsd_etc_t:{ dir file } setattr;
|
|
Chris PeBenito |
0bfccd |
read_files_pattern(cupsd_t, cupsd_etc_t, cupsd_etc_t)
|
|
Chris PeBenito |
0bfccd |
read_lnk_files_pattern(cupsd_t, cupsd_etc_t, cupsd_etc_t)
|
|
Chris PeBenito |
ef5ca0 |
files_search_etc(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
4e698b |
manage_files_pattern(cupsd_t, cupsd_interface_t, cupsd_interface_t)
|
|
Dan Walsh |
3eaa99 |
can_exec(cupsd_t, cupsd_interface_t)
|
|
Chris PeBenito |
4e698b |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern(cupsd_t, cupsd_etc_t, cupsd_rw_etc_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(cupsd_t, cupsd_etc_t, cupsd_rw_etc_t)
|
|
Chris PeBenito |
0bfccd |
filetrans_pattern(cupsd_t, cupsd_etc_t, cupsd_rw_etc_t, file)
|
|
Chris PeBenito |
0bfccd |
files_var_filetrans(cupsd_t, cupsd_rw_etc_t, { dir file })
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
# allow cups to execute its backend scripts
|
|
Chris PeBenito |
ef5ca0 |
can_exec(cupsd_t, cupsd_exec_t)
|
|
Chris PeBenito |
8f3bdd |
allow cupsd_t cupsd_exec_t:dir search_dir_perms;
|
|
Chris PeBenito |
8f3bdd |
allow cupsd_t cupsd_exec_t:lnk_file read_lnk_file_perms;
|
|
Chris PeBenito |
8f3bdd |
|
|
Chris PeBenito |
8f3bdd |
allow cupsd_t cupsd_lock_t:file manage_file_perms;
|
|
Chris PeBenito |
8f3bdd |
files_lock_filetrans(cupsd_t, cupsd_lock_t, file)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Dan Walsh |
3eaa99 |
manage_dirs_pattern(cupsd_t, cupsd_log_t, cupsd_log_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(cupsd_t, cupsd_log_t, cupsd_log_t)
|
|
Chris PeBenito |
c0868a |
allow cupsd_t cupsd_log_t:dir setattr;
|
|
Chris PeBenito |
0bfccd |
logging_log_filetrans(cupsd_t, cupsd_log_t, { file dir })
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern(cupsd_t, cupsd_tmp_t, cupsd_tmp_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(cupsd_t, cupsd_tmp_t, cupsd_tmp_t)
|
|
Chris PeBenito |
0bfccd |
manage_fifo_files_pattern(cupsd_t, cupsd_tmp_t, cupsd_tmp_t)
|
|
Chris PeBenito |
103fe2 |
files_tmp_filetrans(cupsd_t, cupsd_tmp_t, { file dir fifo_file })
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
c0868a |
allow cupsd_t cupsd_var_run_t:dir setattr;
|
|
Dan Walsh |
3eaa99 |
manage_dirs_pattern(cupsd_t, cupsd_var_run_t, cupsd_var_run_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(cupsd_t, cupsd_var_run_t, cupsd_var_run_t)
|
|
Chris PeBenito |
0bfccd |
manage_sock_files_pattern(cupsd_t, cupsd_var_run_t, cupsd_var_run_t)
|
|
Chris PeBenito |
8f3bdd |
manage_fifo_files_pattern(cupsd_t, cupsd_var_run_t, cupsd_var_run_t)
|
|
Dan Walsh |
3eaa99 |
files_pid_filetrans(cupsd_t, cupsd_var_run_t, { dir file fifo_file })
|
|
Chris PeBenito |
8f3bdd |
|
|
Chris PeBenito |
8f3bdd |
allow cupsd_t hplip_t:process { signal sigkill };
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
0bfccd |
read_files_pattern(cupsd_t, hplip_etc_t, hplip_etc_t)
|
|
Chris PeBenito |
d9845a |
|
|
Chris PeBenito |
0b36a2 |
allow cupsd_t hplip_var_run_t:file read_file_perms;
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
0bfccd |
stream_connect_pattern(cupsd_t, ptal_var_run_t, ptal_var_run_t, ptal_t)
|
|
Chris PeBenito |
c0868a |
allow cupsd_t ptal_var_run_t : sock_file setattr;
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
kernel_read_system_state(cupsd_t)
|
|
Chris PeBenito |
a3cf80 |
kernel_read_network_state(cupsd_t)
|
|
Chris PeBenito |
445522 |
kernel_read_all_sysctls(cupsd_t)
|
|
Chris PeBenito |
4e698b |
kernel_request_load_module(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(cupsd_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(cupsd_t)
|
|
Chris PeBenito |
668b30 |
corenet_tcp_sendrecv_generic_if(cupsd_t)
|
|
Chris PeBenito |
668b30 |
corenet_udp_sendrecv_generic_if(cupsd_t)
|
|
Chris PeBenito |
668b30 |
corenet_raw_sendrecv_generic_if(cupsd_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(cupsd_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(cupsd_t)
|
|
Chris PeBenito |
c12621 |
corenet_raw_sendrecv_generic_node(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
corenet_tcp_sendrecv_all_ports(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
corenet_udp_sendrecv_all_ports(cupsd_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_bind_generic_node(cupsd_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_bind_generic_node(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
corenet_tcp_bind_ipp_port(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
corenet_udp_bind_ipp_port(cupsd_t)
|
|
Chris PeBenito |
4e698b |
corenet_udp_bind_howl_port(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
corenet_tcp_bind_reserved_port(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
corenet_dontaudit_tcp_bind_all_reserved_ports(cupsd_t)
|
|
Chris PeBenito |
8f3bdd |
corenet_tcp_bind_all_rpc_ports(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
corenet_tcp_connect_all_ports(cupsd_t)
|
|
Chris PeBenito |
378d5c |
corenet_sendrecv_hplip_client_packets(cupsd_t)
|
|
Chris PeBenito |
8745d9 |
corenet_sendrecv_ipp_client_packets(cupsd_t)
|
|
Chris PeBenito |
8745d9 |
corenet_sendrecv_ipp_server_packets(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
dev_rw_printer(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
dev_read_urand(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
dev_read_sysfs(cupsd_t)
|
|
Chris PeBenito |
8f3bdd |
dev_rw_input_dev(cupsd_t) #447878
|
|
Chris PeBenito |
8f3bdd |
dev_rw_generic_usb_dev(cupsd_t)
|
|
Chris PeBenito |
8f3bdd |
dev_rw_usbfs(cupsd_t)
|
|
Chris PeBenito |
d6d16b |
dev_getattr_printer_dev(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
a5e213 |
domain_read_all_domains_state(cupsd_t)
|
|
Chris PeBenito |
a5e213 |
|
|
Chris PeBenito |
ef5ca0 |
fs_getattr_all_fs(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
fs_search_auto_mountpoints(cupsd_t)
|
|
Chris PeBenito |
4e698b |
fs_search_fusefs(cupsd_t)
|
|
Chris PeBenito |
8f3bdd |
fs_read_anon_inodefs_files(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
d9845a |
mls_file_downgrade(cupsd_t)
|
|
Chris PeBenito |
f8233a |
mls_file_write_all_levels(cupsd_t)
|
|
Chris PeBenito |
f8233a |
mls_file_read_all_levels(cupsd_t)
|
|
Chris PeBenito |
8f3bdd |
mls_rangetrans_target(cupsd_t)
|
|
Chris PeBenito |
d9845a |
mls_socket_write_all_levels(cupsd_t)
|
|
Chris PeBenito |
8f3bdd |
mls_fd_use_all_levels(cupsd_t)
|
|
Chris PeBenito |
d9845a |
|
|
Chris PeBenito |
8708d9 |
term_use_unallocated_ttys(cupsd_t)
|
|
Chris PeBenito |
9c1c08 |
term_search_ptys(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
# Filter scripts may be shell scripts, and may invoke progs like /bin/mktemp
|
|
Chris PeBenito |
ef5ca0 |
corecmd_exec_shell(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
corecmd_exec_bin(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
15722e |
domain_use_interactive_fds(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
8f3bdd |
files_list_spool(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
files_read_etc_files(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
files_read_etc_runtime_files(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
# read python modules
|
|
Chris PeBenito |
ef5ca0 |
files_read_usr_files(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
# for /var/lib/defoma
|
|
Chris PeBenito |
8f3bdd |
files_read_var_lib_files(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
files_list_world_readable(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
files_read_world_readable_files(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
files_read_world_readable_symlinks(cupsd_t)
|
|
Chris PeBenito |
9c1c08 |
# Satisfy readahead
|
|
Chris PeBenito |
9c1c08 |
files_read_var_files(cupsd_t)
|
|
Chris PeBenito |
9c1c08 |
files_read_var_symlinks(cupsd_t)
|
|
Chris PeBenito |
9c1c08 |
# for /etc/printcap
|
|
Chris PeBenito |
9c1c08 |
files_dontaudit_write_etc_files(cupsd_t)
|
|
Chris PeBenito |
6b19be |
# smbspool seems to be iterating through all existing tmp files.
|
|
Chris PeBenito |
6b19be |
# redhat bug #214953
|
|
Chris PeBenito |
6b19be |
# cjp: this might be a broken behavior
|
|
Chris PeBenito |
6b19be |
files_dontaudit_getattr_all_tmp_files(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
a5e213 |
selinux_compute_access_vector(cupsd_t)
|
|
Chris PeBenito |
8f3bdd |
selinux_validate_context(cupsd_t)
|
|
Chris PeBenito |
a5e213 |
|
|
Chris PeBenito |
f75479 |
init_exec_script_files(cupsd_t)
|
|
Chris PeBenito |
8f3bdd |
init_read_utmp(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
8f3bdd |
auth_domtrans_chk_passwd(cupsd_t)
|
|
Chris PeBenito |
8f3bdd |
auth_dontaudit_read_pam_pid(cupsd_t)
|
|
Chris PeBenito |
8f3bdd |
auth_rw_faillog(cupsd_t)
|
|
Chris PeBenito |
c0cf6e |
auth_use_nsswitch(cupsd_t)
|
|
Chris PeBenito |
c0cf6e |
|
|
Chris PeBenito |
ef5ca0 |
# Read /usr/lib/gconv/gconv-modules.* and /usr/lib/python2.2/.*
|
|
Chris PeBenito |
1815ba |
libs_read_lib_files(cupsd_t)
|
|
Chris PeBenito |
8f3bdd |
libs_exec_lib_files(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
d5b81a |
logging_send_audit_msgs(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
logging_send_syslog_msg(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
miscfiles_read_localization(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
# invoking ghostscript needs to read fonts
|
|
Chris PeBenito |
ef5ca0 |
miscfiles_read_fonts(cupsd_t)
|
|
Chris PeBenito |
4e698b |
miscfiles_setattr_fonts_cache_dirs(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
a5e213 |
seutil_read_config(cupsd_t)
|
|
Chris PeBenito |
8f3bdd |
sysnet_exec_ifconfig(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
8f3bdd |
files_dontaudit_list_home(cupsd_t)
|
|
Chris PeBenito |
15722e |
userdom_dontaudit_use_unpriv_user_fds(cupsd_t)
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_search_user_home_content(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
# Write to /var/spool/cups.
|
|
Chris PeBenito |
ef5ca0 |
lpd_manage_spool(cupsd_t)
|
|
Chris PeBenito |
8f3bdd |
lpd_read_config(cupsd_t)
|
|
Chris PeBenito |
8f3bdd |
lpd_exec_lpr(cupsd_t)
|
|
Chris PeBenito |
8f3bdd |
lpd_relabel_spool(cupsd_t)
|
|
Chris PeBenito |
d9845a |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
a5e213 |
apm_domtrans_client(cupsd_t)
|
|
Chris PeBenito |
a5e213 |
')
|
|
Chris PeBenito |
a5e213 |
|
|
Chris PeBenito |
a5e213 |
optional_policy(`
|
|
Chris PeBenito |
93727e |
cron_system_entry(cupsd_t, cupsd_exec_t)
|
|
Chris PeBenito |
9fd4b8 |
')
|
|
Chris PeBenito |
9fd4b8 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
296273 |
dbus_system_bus_client(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
9fd4b8 |
userdom_dbus_send_all_users(cupsd_t)
|
|
Chris PeBenito |
9fd4b8 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
8f3bdd |
avahi_dbus_chat(cupsd_t)
|
|
Chris PeBenito |
8f3bdd |
')
|
|
Chris PeBenito |
8f3bdd |
|
|
Chris PeBenito |
8f3bdd |
optional_policy(`
|
|
Chris PeBenito |
9fd4b8 |
hal_dbus_chat(cupsd_t)
|
|
Chris PeBenito |
9fd4b8 |
')
|
|
Chris PeBenito |
8f3bdd |
|
|
Dan Walsh |
3eaa99 |
# talk to processes that do not have policy
|
|
Chris PeBenito |
8f3bdd |
optional_policy(`
|
|
Chris PeBenito |
8f3bdd |
unconfined_dbus_chat(cupsd_t)
|
|
Dan Walsh |
3eaa99 |
files_write_generic_pid_pipes(cupsd_t)
|
|
Chris PeBenito |
8f3bdd |
')
|
|
Chris PeBenito |
ef5ca0 |
')
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
ef5ca0 |
hostname_exec(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
')
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
b34db7 |
inetd_core_service_domain(cupsd_t, cupsd_exec_t)
|
|
Chris PeBenito |
9fd4b8 |
')
|
|
Chris PeBenito |
9fd4b8 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
a5e213 |
logrotate_domtrans(cupsd_t)
|
|
Chris PeBenito |
a5e213 |
')
|
|
Chris PeBenito |
a5e213 |
|
|
Chris PeBenito |
a5e213 |
optional_policy(`
|
|
Chris PeBenito |
8f3bdd |
mta_send_mail(cupsd_t)
|
|
Chris PeBenito |
8f3bdd |
')
|
|
Chris PeBenito |
8f3bdd |
|
|
Chris PeBenito |
8f3bdd |
optional_policy(`
|
|
Chris PeBenito |
d9845a |
# cups execs smbtool which reads samba_etc_t files
|
|
Chris PeBenito |
376fbc |
samba_read_config(cupsd_t)
|
|
Chris PeBenito |
9fd4b8 |
samba_rw_var_files(cupsd_t)
|
|
Chris PeBenito |
9fd4b8 |
')
|
|
Chris PeBenito |
9fd4b8 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
ef5ca0 |
seutil_sigchld_newrole(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
')
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
4e698b |
snmp_read_snmp_var_lib_files(cupsd_t)
|
|
Chris PeBenito |
4e698b |
')
|
|
Chris PeBenito |
4e698b |
|
|
Chris PeBenito |
4e698b |
optional_policy(`
|
|
Chris PeBenito |
ef5ca0 |
udev_read_db(cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
')
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
########################################
|
|
Chris PeBenito |
ef5ca0 |
#
|
|
Chris PeBenito |
ef5ca0 |
# Cups configuration daemon local policy
|
|
Chris PeBenito |
ef5ca0 |
#
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
8f3bdd |
allow cupsd_config_t self:capability { chown dac_override sys_tty_config };
|
|
Chris PeBenito |
33acca |
dontaudit cupsd_config_t self:capability sys_tty_config;
|
|
Chris PeBenito |
4e698b |
allow cupsd_config_t self:process { getsched signal_perms };
|
|
Chris PeBenito |
c0868a |
allow cupsd_config_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
ef5ca0 |
allow cupsd_config_t self:unix_stream_socket create_socket_perms;
|
|
Chris PeBenito |
ef5ca0 |
allow cupsd_config_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
1904b0 |
allow cupsd_config_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
c0868a |
allow cupsd_config_t cupsd_t:process signal;
|
|
Chris PeBenito |
0bfccd |
ps_process_pattern(cupsd_config_t, cupsd_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(cupsd_config_t, cupsd_etc_t, cupsd_etc_t)
|
|
Chris PeBenito |
0bfccd |
manage_lnk_files_pattern(cupsd_config_t, cupsd_etc_t, cupsd_etc_t)
|
|
Chris PeBenito |
0bfccd |
filetrans_pattern(cupsd_config_t, cupsd_etc_t, cupsd_rw_etc_t, file)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(cupsd_config_t, cupsd_rw_etc_t, cupsd_rw_etc_t)
|
|
Chris PeBenito |
0bfccd |
manage_lnk_files_pattern(cupsd_config_t, cupsd_rw_etc_t, cupsd_rw_etc_t)
|
|
Chris PeBenito |
0bfccd |
files_var_filetrans(cupsd_config_t, cupsd_rw_etc_t, file)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
4e698b |
can_exec(cupsd_config_t, cupsd_config_exec_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
049e11 |
allow cupsd_config_t cupsd_log_t:file rw_file_perms;
|
|
Chris PeBenito |
049e11 |
|
|
Chris PeBenito |
8f3bdd |
manage_lnk_files_pattern(cupsd_config_t, cupsd_tmp_t, cupsd_tmp_t)
|
|
Chris PeBenito |
8f3bdd |
manage_files_pattern(cupsd_config_t, cupsd_tmp_t, cupsd_tmp_t)
|
|
Chris PeBenito |
8f3bdd |
manage_dirs_pattern(cupsd_config_t, cupsd_tmp_t, cupsd_tmp_t)
|
|
Chris PeBenito |
8f3bdd |
files_tmp_filetrans(cupsd_config_t, cupsd_tmp_t, { lnk_file file dir })
|
|
Chris PeBenito |
123a99 |
|
|
Chris PeBenito |
0b36a2 |
allow cupsd_config_t cupsd_var_run_t:file read_file_perms;
|
|
Chris PeBenito |
ef5ca0 |
|
|
Dan Walsh |
3eaa99 |
manage_dirs_pattern(cupsd_config_t, cupsd_config_var_run_t, cupsd_config_var_run_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(cupsd_config_t, cupsd_config_var_run_t, cupsd_config_var_run_t)
|
|
Dan Walsh |
3eaa99 |
files_pid_filetrans(cupsd_config_t, cupsd_config_var_run_t, { dir file })
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
8f3bdd |
domtrans_pattern(cupsd_config_t, hplip_exec_t, hplip_t)
|
|
Chris PeBenito |
8f3bdd |
|
|
Chris PeBenito |
8f3bdd |
read_files_pattern(cupsd_config_t, hplip_etc_t, hplip_etc_t)
|
|
Chris PeBenito |
8f3bdd |
|
|
Chris PeBenito |
ef5ca0 |
kernel_read_system_state(cupsd_config_t)
|
|
Chris PeBenito |
8f3bdd |
kernel_read_all_sysctls(cupsd_config_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(cupsd_config_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(cupsd_config_t)
|
|
Chris PeBenito |
668b30 |
corenet_tcp_sendrecv_generic_if(cupsd_config_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(cupsd_config_t)
|
|
Chris PeBenito |
ef5ca0 |
corenet_tcp_sendrecv_all_ports(cupsd_config_t)
|
|
Chris PeBenito |
ef5ca0 |
corenet_tcp_connect_all_ports(cupsd_config_t)
|
|
Chris PeBenito |
b68a85 |
corenet_sendrecv_all_client_packets(cupsd_config_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
dev_read_sysfs(cupsd_config_t)
|
|
Chris PeBenito |
ef5ca0 |
dev_read_urand(cupsd_config_t)
|
|
Chris PeBenito |
123a99 |
dev_read_rand(cupsd_config_t)
|
|
Chris PeBenito |
8f3bdd |
dev_rw_generic_usb_dev(cupsd_config_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
4e698b |
files_search_all_mountpoints(cupsd_config_t)
|
|
Chris PeBenito |
4e698b |
|
|
Chris PeBenito |
ef5ca0 |
fs_getattr_all_fs(cupsd_config_t)
|
|
Chris PeBenito |
ef5ca0 |
fs_search_auto_mountpoints(cupsd_config_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
corecmd_exec_bin(cupsd_config_t)
|
|
Chris PeBenito |
ef5ca0 |
corecmd_exec_shell(cupsd_config_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
15722e |
domain_use_interactive_fds(cupsd_config_t)
|
|
Chris PeBenito |
9fd4b8 |
# killall causes the following
|
|
Chris PeBenito |
9fd4b8 |
domain_dontaudit_search_all_domains_state(cupsd_config_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
files_read_usr_files(cupsd_config_t)
|
|
Chris PeBenito |
33acca |
files_read_etc_files(cupsd_config_t)
|
|
Chris PeBenito |
33acca |
files_read_etc_runtime_files(cupsd_config_t)
|
|
Chris PeBenito |
9c1c08 |
files_read_var_symlinks(cupsd_config_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
9c1c08 |
# Alternatives asks for this
|
|
Chris PeBenito |
8f3bdd |
init_getattr_all_script_files(cupsd_config_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
c0cf6e |
auth_use_nsswitch(cupsd_config_t)
|
|
Chris PeBenito |
c0cf6e |
|
|
Chris PeBenito |
ef5ca0 |
logging_send_syslog_msg(cupsd_config_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
miscfiles_read_localization(cupsd_config_t)
|
|
Chris PeBenito |
8f3bdd |
miscfiles_read_hwdata(cupsd_config_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
seutil_dontaudit_search_config(cupsd_config_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
15722e |
userdom_dontaudit_use_unpriv_user_fds(cupsd_config_t)
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_search_user_home_dirs(cupsd_config_t)
|
|
Dan Walsh |
3eaa99 |
userdom_rw_user_tmp_files(cupsd_config_t)
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
cups_stream_connect(cupsd_config_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
9c1c08 |
lpd_read_config(cupsd_config_t)
|
|
Chris PeBenito |
9c1c08 |
|
|
Chris PeBenito |
9fd4b8 |
ifdef(`distro_redhat',`
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
9fd4b8 |
rpm_read_db(cupsd_config_t)
|
|
Chris PeBenito |
9fd4b8 |
')
|
|
Chris PeBenito |
9fd4b8 |
')
|
|
Chris PeBenito |
9fd4b8 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
4e698b |
term_use_generic_ptys(cupsd_config_t)
|
|
Chris PeBenito |
4e698b |
')
|
|
Chris PeBenito |
4e698b |
|
|
Chris PeBenito |
4e698b |
optional_policy(`
|
|
Chris PeBenito |
93727e |
cron_system_entry(cupsd_config_t, cupsd_config_exec_t)
|
|
Chris PeBenito |
9fd4b8 |
')
|
|
Chris PeBenito |
9fd4b8 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
4e698b |
dbus_system_domain(cupsd_config_t, cupsd_config_exec_t)
|
|
Chris PeBenito |
9fd4b8 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
9fd4b8 |
hal_dbus_chat(cupsd_config_t)
|
|
Chris PeBenito |
9fd4b8 |
')
|
|
Chris PeBenito |
9fd4b8 |
')
|
|
Chris PeBenito |
9fd4b8 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
gnome_dontaudit_search_config(cupsd_config_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Chris PeBenito |
4614e8 |
hal_domtrans(cupsd_config_t)
|
|
Chris PeBenito |
123a99 |
hal_read_tmp_files(cupsd_config_t)
|
|
Chris PeBenito |
8f3bdd |
hal_dontaudit_use_fds(hplip_t)
|
|
Chris PeBenito |
ef5ca0 |
')
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
ef5ca0 |
hostname_exec(cupsd_config_t)
|
|
Chris PeBenito |
ef5ca0 |
')
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
1c1ac6 |
logrotate_use_fds(cupsd_config_t)
|
|
Chris PeBenito |
ef5ca0 |
')
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
4e698b |
policykit_dbus_chat(cupsd_config_t)
|
|
Chris PeBenito |
4e698b |
userdom_read_all_users_state(cupsd_config_t)
|
|
Chris PeBenito |
4e698b |
')
|
|
Chris PeBenito |
4e698b |
|
|
Chris PeBenito |
4e698b |
optional_policy(`
|
|
Chris PeBenito |
9fd4b8 |
rpm_read_db(cupsd_config_t)
|
|
Chris PeBenito |
9fd4b8 |
')
|
|
Chris PeBenito |
9fd4b8 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
ef5ca0 |
seutil_sigchld_newrole(cupsd_config_t)
|
|
Chris PeBenito |
ef5ca0 |
')
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
ef5ca0 |
udev_read_db(cupsd_config_t)
|
|
Chris PeBenito |
ef5ca0 |
')
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
4e698b |
optional_policy(`
|
|
Chris PeBenito |
4e698b |
unconfined_stream_connect(cupsd_config_t)
|
|
Chris PeBenito |
4e698b |
')
|
|
Chris PeBenito |
4e698b |
|
|
Chris PeBenito |
ef5ca0 |
########################################
|
|
Chris PeBenito |
ef5ca0 |
#
|
|
Chris PeBenito |
ef5ca0 |
# Cups lpd support
|
|
Chris PeBenito |
ef5ca0 |
#
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
allow cupsd_lpd_t self:process signal_perms;
|
|
Chris PeBenito |
c0868a |
allow cupsd_lpd_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
ef5ca0 |
allow cupsd_lpd_t self:tcp_socket connected_stream_socket_perms;
|
|
Chris PeBenito |
33acca |
allow cupsd_lpd_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
# for identd
|
|
Chris PeBenito |
ef5ca0 |
# cjp: this should probably only be inetd_child rules?
|
|
Chris PeBenito |
ef5ca0 |
allow cupsd_lpd_t self:netlink_tcpdiag_socket r_netlink_socket_perms;
|
|
Chris PeBenito |
ef5ca0 |
allow cupsd_lpd_t self:capability { setuid setgid };
|
|
Chris PeBenito |
ef5ca0 |
files_search_home(cupsd_lpd_t)
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
ef5ca0 |
kerberos_use(cupsd_lpd_t)
|
|
Chris PeBenito |
ef5ca0 |
')
|
|
Chris PeBenito |
ef5ca0 |
#end for identd
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
9bbc75 |
allow cupsd_lpd_t cupsd_etc_t:dir list_dir_perms;
|
|
Chris PeBenito |
0bfccd |
read_files_pattern(cupsd_lpd_t, cupsd_etc_t, cupsd_etc_t)
|
|
Chris PeBenito |
0bfccd |
read_lnk_files_pattern(cupsd_lpd_t, cupsd_etc_t, cupsd_etc_t)
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
allow cupsd_lpd_t cupsd_rw_etc_t:dir list_dir_perms;
|
|
Chris PeBenito |
0bfccd |
read_files_pattern(cupsd_lpd_t, cupsd_rw_etc_t, cupsd_rw_etc_t)
|
|
Chris PeBenito |
0bfccd |
read_lnk_files_pattern(cupsd_lpd_t, cupsd_rw_etc_t, cupsd_rw_etc_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern(cupsd_lpd_t, cupsd_lpd_tmp_t, cupsd_lpd_tmp_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(cupsd_lpd_t, cupsd_lpd_tmp_t, cupsd_lpd_tmp_t)
|
|
Chris PeBenito |
103fe2 |
files_tmp_filetrans(cupsd_lpd_t, cupsd_lpd_tmp_t, { file dir })
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(cupsd_lpd_t, cupsd_lpd_var_run_t, cupsd_lpd_var_run_t)
|
|
Chris PeBenito |
0bfccd |
files_pid_filetrans(cupsd_lpd_t, cupsd_lpd_var_run_t, file)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
445522 |
kernel_read_kernel_sysctls(cupsd_lpd_t)
|
|
Chris PeBenito |
ef5ca0 |
kernel_read_system_state(cupsd_lpd_t)
|
|
Chris PeBenito |
ef5ca0 |
kernel_read_network_state(cupsd_lpd_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(cupsd_lpd_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(cupsd_lpd_t)
|
|
Chris PeBenito |
668b30 |
corenet_tcp_sendrecv_generic_if(cupsd_lpd_t)
|
|
Chris PeBenito |
668b30 |
corenet_udp_sendrecv_generic_if(cupsd_lpd_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(cupsd_lpd_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(cupsd_lpd_t)
|
|
Chris PeBenito |
ef5ca0 |
corenet_tcp_sendrecv_all_ports(cupsd_lpd_t)
|
|
Chris PeBenito |
ef5ca0 |
corenet_udp_sendrecv_all_ports(cupsd_lpd_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_bind_generic_node(cupsd_lpd_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_bind_generic_node(cupsd_lpd_t)
|
|
Chris PeBenito |
ef5ca0 |
corenet_tcp_connect_ipp_port(cupsd_lpd_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
dev_read_urand(cupsd_lpd_t)
|
|
Chris PeBenito |
d6d16b |
dev_read_rand(cupsd_lpd_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
fs_getattr_xattr_fs(cupsd_lpd_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
files_read_etc_files(cupsd_lpd_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
c0cf6e |
auth_use_nsswitch(cupsd_lpd_t)
|
|
Chris PeBenito |
c0cf6e |
|
|
Chris PeBenito |
ef5ca0 |
logging_send_syslog_msg(cupsd_lpd_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
ef5ca0 |
miscfiles_read_localization(cupsd_lpd_t)
|
|
Chris PeBenito |
4e698b |
miscfiles_setattr_fonts_cache_dirs(cupsd_lpd_t)
|
|
Chris PeBenito |
ef5ca0 |
|
|
Chris PeBenito |
87eb5c |
cups_stream_connect(cupsd_lpd_t)
|
|
Chris PeBenito |
87eb5c |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
0bfccd |
inetd_service_domain(cupsd_lpd_t, cupsd_lpd_exec_t)
|
|
Chris PeBenito |
8b2d5c |
')
|
|
Chris PeBenito |
8b2d5c |
|
|
Chris PeBenito |
189694 |
########################################
|
|
Chris PeBenito |
189694 |
#
|
|
Chris PeBenito |
8f3bdd |
# cups_pdf local policy
|
|
Chris PeBenito |
8f3bdd |
#
|
|
Chris PeBenito |
8f3bdd |
|
|
Chris PeBenito |
4e698b |
allow cups_pdf_t self:capability { chown fowner fsetid setuid setgid dac_override };
|
|
Chris PeBenito |
8f3bdd |
allow cups_pdf_t self:fifo_file rw_file_perms;
|
|
Chris PeBenito |
8f3bdd |
allow cups_pdf_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
8f3bdd |
|
|
Chris PeBenito |
8f3bdd |
manage_files_pattern(cups_pdf_t, cupsd_log_t, cupsd_log_t)
|
|
Chris PeBenito |
8f3bdd |
|
|
Chris PeBenito |
8f3bdd |
manage_files_pattern(cups_pdf_t, cups_pdf_tmp_t, cups_pdf_tmp_t)
|
|
Chris PeBenito |
8f3bdd |
manage_dirs_pattern(cups_pdf_t, cups_pdf_tmp_t, cups_pdf_tmp_t)
|
|
Chris PeBenito |
8f3bdd |
files_tmp_filetrans(cups_pdf_t, cups_pdf_tmp_t, { file dir })
|
|
Chris PeBenito |
8f3bdd |
|
|
Chris PeBenito |
4e698b |
fs_rw_anon_inodefs_files(cups_pdf_t)
|
|
Chris PeBenito |
4e698b |
|
|
Chris PeBenito |
8f3bdd |
kernel_read_system_state(cups_pdf_t)
|
|
Chris PeBenito |
8f3bdd |
|
|
Chris PeBenito |
8f3bdd |
files_read_etc_files(cups_pdf_t)
|
|
Chris PeBenito |
8f3bdd |
files_read_usr_files(cups_pdf_t)
|
|
Chris PeBenito |
8f3bdd |
|
|
Chris PeBenito |
8f3bdd |
corecmd_exec_shell(cups_pdf_t)
|
|
Chris PeBenito |
8f3bdd |
corecmd_exec_bin(cups_pdf_t)
|
|
Chris PeBenito |
8f3bdd |
|
|
Chris PeBenito |
8f3bdd |
auth_use_nsswitch(cups_pdf_t)
|
|
Chris PeBenito |
8f3bdd |
|
|
Chris PeBenito |
8f3bdd |
miscfiles_read_localization(cups_pdf_t)
|
|
Chris PeBenito |
8f3bdd |
miscfiles_read_fonts(cups_pdf_t)
|
|
Dan Walsh |
3eaa99 |
miscfiles_setattr_fonts_cache_dirs(cups_pdf_t)
|
|
Chris PeBenito |
8f3bdd |
|
|
Chris PeBenito |
8f3bdd |
userdom_home_filetrans_user_home_dir(cups_pdf_t)
|
|
Dan Walsh |
3eaa99 |
userdom_user_home_dir_filetrans_pattern(cups_pdf_t, { file dir })
|
|
Chris PeBenito |
8f3bdd |
userdom_manage_user_home_content_dirs(cups_pdf_t)
|
|
Chris PeBenito |
8f3bdd |
userdom_manage_user_home_content_files(cups_pdf_t)
|
|
Dan Walsh |
3eaa99 |
userdom_dontaudit_search_admin_dir(cups_pdf_t)
|
|
Chris PeBenito |
8f3bdd |
|
|
Chris PeBenito |
8f3bdd |
lpd_manage_spool(cups_pdf_t)
|
|
Chris PeBenito |
8f3bdd |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
gnome_read_config(cups_pdf_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Chris PeBenito |
8f3bdd |
|
|
Chris PeBenito |
8f3bdd |
tunable_policy(`use_nfs_home_dirs',`
|
|
Chris PeBenito |
4e698b |
fs_search_auto_mountpoints(cups_pdf_t)
|
|
Chris PeBenito |
8f3bdd |
fs_manage_nfs_dirs(cups_pdf_t)
|
|
Chris PeBenito |
8f3bdd |
fs_manage_nfs_files(cups_pdf_t)
|
|
Chris PeBenito |
8f3bdd |
')
|
|
Chris PeBenito |
8f3bdd |
|
|
Chris PeBenito |
8f3bdd |
tunable_policy(`use_samba_home_dirs',`
|
|
Chris PeBenito |
8f3bdd |
fs_manage_cifs_dirs(cups_pdf_t)
|
|
Chris PeBenito |
8f3bdd |
fs_manage_cifs_files(cups_pdf_t)
|
|
Chris PeBenito |
8f3bdd |
')
|
|
Chris PeBenito |
8f3bdd |
|
|
Chris PeBenito |
8f3bdd |
########################################
|
|
Chris PeBenito |
8f3bdd |
#
|
|
Chris PeBenito |
189694 |
# HPLIP local policy
|
|
Chris PeBenito |
189694 |
#
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
8708d9 |
# Needed for USB Scanneer and xsane
|
|
Chris PeBenito |
8708d9 |
allow hplip_t self:capability { dac_override dac_read_search net_raw };
|
|
Chris PeBenito |
189694 |
dontaudit hplip_t self:capability sys_tty_config;
|
|
Chris PeBenito |
c0868a |
allow hplip_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
189694 |
allow hplip_t self:process signal_perms;
|
|
Chris PeBenito |
189694 |
allow hplip_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
189694 |
allow hplip_t self:unix_stream_socket create_socket_perms;
|
|
Chris PeBenito |
b68a85 |
allow hplip_t self:netlink_route_socket r_netlink_socket_perms;
|
|
Chris PeBenito |
189694 |
allow hplip_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
189694 |
allow hplip_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
189694 |
allow hplip_t self:rawip_socket create_socket_perms;
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
8f3bdd |
allow hplip_t cupsd_etc_t:dir search_dir_perms;
|
|
Chris PeBenito |
8f3bdd |
manage_dirs_pattern(hplip_t, cupsd_tmp_t, cupsd_tmp_t)
|
|
Chris PeBenito |
8f3bdd |
manage_files_pattern(hplip_t, cupsd_tmp_t, cupsd_tmp_t)
|
|
Chris PeBenito |
8f3bdd |
files_tmp_filetrans(hplip_t, cupsd_tmp_t, { file dir })
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
cups_stream_connect(hplip_t)
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
c0868a |
allow hplip_t hplip_etc_t:dir list_dir_perms;
|
|
Chris PeBenito |
0bfccd |
read_files_pattern(hplip_t, hplip_etc_t, hplip_etc_t)
|
|
Chris PeBenito |
0bfccd |
read_lnk_files_pattern(hplip_t, hplip_etc_t, hplip_etc_t)
|
|
Chris PeBenito |
189694 |
files_search_etc(hplip_t)
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
4e698b |
manage_files_pattern(hplip_t, hplip_var_lib_t, hplip_var_lib_t)
|
|
Chris PeBenito |
4e698b |
manage_lnk_files_pattern(hplip_t, hplip_var_lib_t, hplip_var_lib_t)
|
|
Chris PeBenito |
4e698b |
|
|
Chris PeBenito |
8f3bdd |
manage_fifo_files_pattern(hplip_t, hplip_tmp_t, hplip_tmp_t)
|
|
Chris PeBenito |
8f3bdd |
files_tmp_filetrans(hplip_t, hplip_tmp_t, fifo_file )
|
|
Chris PeBenito |
8f3bdd |
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(hplip_t, hplip_var_run_t, hplip_var_run_t)
|
|
Chris PeBenito |
0bfccd |
files_pid_filetrans(hplip_t, hplip_var_run_t, file)
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
kernel_read_system_state(hplip_t)
|
|
Chris PeBenito |
189694 |
kernel_read_kernel_sysctls(hplip_t)
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(hplip_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(hplip_t)
|
|
Chris PeBenito |
668b30 |
corenet_tcp_sendrecv_generic_if(hplip_t)
|
|
Chris PeBenito |
668b30 |
corenet_udp_sendrecv_generic_if(hplip_t)
|
|
Chris PeBenito |
668b30 |
corenet_raw_sendrecv_generic_if(hplip_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(hplip_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(hplip_t)
|
|
Chris PeBenito |
c12621 |
corenet_raw_sendrecv_generic_node(hplip_t)
|
|
Chris PeBenito |
189694 |
corenet_tcp_sendrecv_all_ports(hplip_t)
|
|
Chris PeBenito |
189694 |
corenet_udp_sendrecv_all_ports(hplip_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_bind_generic_node(hplip_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_bind_generic_node(hplip_t)
|
|
Chris PeBenito |
189694 |
corenet_tcp_bind_hplip_port(hplip_t)
|
|
Chris PeBenito |
189694 |
corenet_tcp_connect_hplip_port(hplip_t)
|
|
Chris PeBenito |
189694 |
corenet_tcp_connect_ipp_port(hplip_t)
|
|
Chris PeBenito |
189694 |
corenet_sendrecv_hplip_client_packets(hplip_t)
|
|
Chris PeBenito |
189694 |
corenet_receive_hplip_server_packets(hplip_t)
|
|
Chris PeBenito |
4e698b |
corenet_udp_bind_howl_port(hplip_t)
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
dev_read_sysfs(hplip_t)
|
|
Chris PeBenito |
189694 |
dev_rw_printer(hplip_t)
|
|
Chris PeBenito |
189694 |
dev_read_urand(hplip_t)
|
|
Chris PeBenito |
123a99 |
dev_read_rand(hplip_t)
|
|
Chris PeBenito |
189694 |
dev_rw_generic_usb_dev(hplip_t)
|
|
Chris PeBenito |
8f3bdd |
dev_rw_usbfs(hplip_t)
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
fs_getattr_all_fs(hplip_t)
|
|
Chris PeBenito |
189694 |
fs_search_auto_mountpoints(hplip_t)
|
|
Chris PeBenito |
8f3bdd |
fs_rw_anon_inodefs_files(hplip_t)
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
# for python
|
|
Chris PeBenito |
189694 |
corecmd_exec_bin(hplip_t)
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
domain_use_interactive_fds(hplip_t)
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
files_read_etc_files(hplip_t)
|
|
Chris PeBenito |
189694 |
files_read_etc_runtime_files(hplip_t)
|
|
Chris PeBenito |
189694 |
files_read_usr_files(hplip_t)
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
logging_send_syslog_msg(hplip_t)
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
miscfiles_read_localization(hplip_t)
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
sysnet_read_config(hplip_t)
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
userdom_dontaudit_use_unpriv_user_fds(hplip_t)
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_search_user_home_dirs(hplip_t)
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_search_user_home_content(hplip_t)
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
8f3bdd |
lpd_read_config(hplip_t)
|
|
Chris PeBenito |
8f3bdd |
lpd_manage_spool(hplip_t)
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
optional_policy(`
|
|
Chris PeBenito |
296273 |
dbus_system_bus_client(hplip_t)
|
|
Chris PeBenito |
9bcfb6 |
')
|
|
Chris PeBenito |
9bcfb6 |
|
|
Chris PeBenito |
9bcfb6 |
optional_policy(`
|
|
Chris PeBenito |
522b59 |
seutil_sigchld_newrole(hplip_t)
|
|
Chris PeBenito |
189694 |
')
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
optional_policy(`
|
|
Chris PeBenito |
522b59 |
snmp_read_snmp_var_lib_files(hplip_t)
|
|
Chris PeBenito |
189694 |
')
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
optional_policy(`
|
|
Chris PeBenito |
189694 |
udev_read_db(hplip_t)
|
|
Chris PeBenito |
189694 |
')
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
########################################
|
|
Chris PeBenito |
189694 |
#
|
|
Chris PeBenito |
189694 |
# PTAL local policy
|
|
Chris PeBenito |
189694 |
#
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
allow ptal_t self:capability { chown sys_rawio };
|
|
Chris PeBenito |
189694 |
dontaudit ptal_t self:capability sys_tty_config;
|
|
Chris PeBenito |
c0868a |
allow ptal_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
189694 |
allow ptal_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
189694 |
allow ptal_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
189694 |
allow ptal_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
c0868a |
allow ptal_t ptal_etc_t:dir list_dir_perms;
|
|
Chris PeBenito |
0bfccd |
read_files_pattern(ptal_t, ptal_etc_t, ptal_etc_t)
|
|
Chris PeBenito |
0bfccd |
read_lnk_files_pattern(ptal_t, ptal_etc_t, ptal_etc_t)
|
|
Chris PeBenito |
189694 |
files_search_etc(ptal_t)
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern(ptal_t, ptal_var_run_t, ptal_var_run_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(ptal_t, ptal_var_run_t, ptal_var_run_t)
|
|
Chris PeBenito |
0bfccd |
manage_lnk_files_pattern(ptal_t, ptal_var_run_t, ptal_var_run_t)
|
|
Chris PeBenito |
0bfccd |
manage_fifo_files_pattern(ptal_t, ptal_var_run_t, ptal_var_run_t)
|
|
Chris PeBenito |
0bfccd |
manage_sock_files_pattern(ptal_t, ptal_var_run_t, ptal_var_run_t)
|
|
Chris PeBenito |
0bfccd |
files_pid_filetrans(ptal_t, ptal_var_run_t, { dir file lnk_file sock_file fifo_file })
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
kernel_read_kernel_sysctls(ptal_t)
|
|
Chris PeBenito |
189694 |
kernel_list_proc(ptal_t)
|
|
Chris PeBenito |
189694 |
kernel_read_proc_symlinks(ptal_t)
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(ptal_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(ptal_t)
|
|
Chris PeBenito |
668b30 |
corenet_tcp_sendrecv_generic_if(ptal_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(ptal_t)
|
|
Chris PeBenito |
189694 |
corenet_tcp_sendrecv_all_ports(ptal_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_bind_generic_node(ptal_t)
|
|
Chris PeBenito |
189694 |
corenet_tcp_bind_ptal_port(ptal_t)
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
dev_read_sysfs(ptal_t)
|
|
Chris PeBenito |
189694 |
dev_read_usbfs(ptal_t)
|
|
Chris PeBenito |
189694 |
dev_rw_printer(ptal_t)
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
fs_getattr_all_fs(ptal_t)
|
|
Chris PeBenito |
189694 |
fs_search_auto_mountpoints(ptal_t)
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
domain_use_interactive_fds(ptal_t)
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
files_read_etc_files(ptal_t)
|
|
Chris PeBenito |
189694 |
files_read_etc_runtime_files(ptal_t)
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
logging_send_syslog_msg(ptal_t)
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
miscfiles_read_localization(ptal_t)
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
sysnet_read_config(ptal_t)
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
userdom_dontaudit_use_unpriv_user_fds(ptal_t)
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_search_user_home_content(ptal_t)
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
optional_policy(`
|
|
Chris PeBenito |
189694 |
seutil_sigchld_newrole(ptal_t)
|
|
Chris PeBenito |
189694 |
')
|
|
Chris PeBenito |
189694 |
|
|
Chris PeBenito |
189694 |
optional_policy(`
|
|
Chris PeBenito |
189694 |
udev_read_db(ptal_t)
|
|
Chris PeBenito |
189694 |
')
|