Chris PeBenito 0c54fcf
Chris PeBenito 296273a
policy_module(dpkg, 1.5.1)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
########################################
Chris PeBenito 0c54fcf
#
Chris PeBenito 0c54fcf
# Declarations
Chris PeBenito 0c54fcf
#
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
type dpkg_t;
Chris PeBenito 0c54fcf
type dpkg_exec_t;
Chris PeBenito 0c54fcf
# dpkg can start/stop services
Chris PeBenito 0bfccda
init_system_domain(dpkg_t, dpkg_exec_t)
Chris PeBenito 0c54fcf
# dpkg can change file labels, roles, IO
Chris PeBenito 0c54fcf
domain_obj_id_change_exemption(dpkg_t)
Chris PeBenito 0c54fcf
domain_role_change_exemption(dpkg_t)
Chris PeBenito 0c54fcf
domain_system_change_exemption(dpkg_t)
Chris PeBenito 0c54fcf
domain_interactive_fd(dpkg_t)
Chris PeBenito 0c54fcf
role system_r types dpkg_t;
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
# lockfile
Chris PeBenito 0c54fcf
type dpkg_lock_t;
Chris PeBenito 0c54fcf
files_type(dpkg_lock_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
type dpkg_tmp_t;
Chris PeBenito 0c54fcf
files_tmp_file(dpkg_tmp_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
type dpkg_tmpfs_t;
Chris PeBenito 0c54fcf
files_tmpfs_file(dpkg_tmpfs_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
# status files
Chris PeBenito 0c54fcf
type dpkg_var_lib_t alias var_lib_dpkg_t;
Chris PeBenito 0c54fcf
files_type(dpkg_var_lib_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
# package scripts
Chris PeBenito 0c54fcf
type dpkg_script_t;
Chris PeBenito 0c54fcf
domain_type(dpkg_script_t)
Chris PeBenito 0c54fcf
domain_entry_file(dpkg_t, dpkg_var_lib_t)
Chris PeBenito 0c54fcf
corecmd_shell_entry_type(dpkg_script_t)
Chris PeBenito 0c54fcf
domain_obj_id_change_exemption(dpkg_script_t)
Chris PeBenito 0c54fcf
domain_system_change_exemption(dpkg_script_t)
Chris PeBenito 0c54fcf
domain_interactive_fd(dpkg_script_t)
Chris PeBenito 0c54fcf
role system_r types dpkg_script_t;
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
type dpkg_script_tmp_t;
Chris PeBenito 0c54fcf
files_tmp_file(dpkg_script_tmp_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
type dpkg_script_tmpfs_t;
Chris PeBenito 0c54fcf
files_tmpfs_file(dpkg_script_tmpfs_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
########################################
Chris PeBenito 0c54fcf
#
Chris PeBenito 0c54fcf
# dpkg Local policy
Chris PeBenito 0c54fcf
#
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
allow dpkg_t self:capability { chown dac_override fowner fsetid setgid setuid kill sys_tty_config sys_nice sys_resource mknod linux_immutable };
Chris PeBenito 0c54fcf
allow dpkg_t self:process { setpgid fork getsched setfscreate };
Chris PeBenito 0c54fcf
allow dpkg_t self:fd use;
Chris PeBenito c0868a7
allow dpkg_t self:fifo_file rw_fifo_file_perms;
Chris PeBenito 0c54fcf
allow dpkg_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 0c54fcf
allow dpkg_t self:unix_stream_socket rw_stream_socket_perms;
Chris PeBenito 0c54fcf
allow dpkg_t self:unix_dgram_socket sendto;
Chris PeBenito 0c54fcf
allow dpkg_t self:unix_stream_socket connectto;
Chris PeBenito 0c54fcf
allow dpkg_t self:udp_socket { connect create_socket_perms };
Chris PeBenito 0c54fcf
allow dpkg_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 0c54fcf
allow dpkg_t self:shm create_shm_perms;
Chris PeBenito 0c54fcf
allow dpkg_t self:sem create_sem_perms;
Chris PeBenito 0c54fcf
allow dpkg_t self:msgq create_msgq_perms;
Chris PeBenito 0c54fcf
allow dpkg_t self:msg { send receive };
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
allow dpkg_t dpkg_lock_t:file manage_file_perms;
Chris PeBenito 0c54fcf
Chris PeBenito 0bfccda
manage_dirs_pattern(dpkg_t, dpkg_tmp_t, dpkg_tmp_t)
Chris PeBenito 0bfccda
manage_files_pattern(dpkg_t, dpkg_tmp_t, dpkg_tmp_t)
Chris PeBenito 0c54fcf
files_tmp_filetrans(dpkg_t, dpkg_tmp_t, { file dir })
Chris PeBenito 0c54fcf
Chris PeBenito 0bfccda
manage_dirs_pattern(dpkg_t, dpkg_tmpfs_t, dpkg_tmpfs_t)
Chris PeBenito 0bfccda
manage_files_pattern(dpkg_t, dpkg_tmpfs_t, dpkg_tmpfs_t)
Chris PeBenito 0bfccda
manage_lnk_files_pattern(dpkg_t, dpkg_tmpfs_t, dpkg_tmpfs_t)
Chris PeBenito 0bfccda
manage_sock_files_pattern(dpkg_t, dpkg_tmpfs_t, dpkg_tmpfs_t)
Chris PeBenito 0bfccda
manage_fifo_files_pattern(dpkg_t, dpkg_tmpfs_t, dpkg_tmpfs_t)
Chris PeBenito 0bfccda
fs_tmpfs_filetrans(dpkg_t, dpkg_tmpfs_t, { dir file lnk_file sock_file fifo_file })
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
# Access /var/lib/dpkg files
Chris PeBenito 0bfccda
manage_files_pattern(dpkg_t, dpkg_var_lib_t, dpkg_var_lib_t)
Chris PeBenito 0bfccda
files_var_lib_filetrans(dpkg_t, dpkg_var_lib_t, dir)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
kernel_read_system_state(dpkg_t)
Chris PeBenito 0c54fcf
kernel_read_kernel_sysctls(dpkg_t)
Chris PeBenito 0c54fcf
Chris PeBenito fb63d0b
corecmd_exec_all_executables(dpkg_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
# TODO: do we really need all networking?
Chris PeBenito 1900668
corenet_all_recvfrom_unlabeled(dpkg_t)
Chris PeBenito 1900668
corenet_all_recvfrom_netlabel(dpkg_t)
Chris PeBenito 0c54fcf
corenet_tcp_sendrecv_all_if(dpkg_t)
Chris PeBenito 0c54fcf
corenet_raw_sendrecv_all_if(dpkg_t)
Chris PeBenito 0c54fcf
corenet_udp_sendrecv_all_if(dpkg_t)
Chris PeBenito 0c54fcf
corenet_tcp_sendrecv_all_nodes(dpkg_t)
Chris PeBenito 0c54fcf
corenet_raw_sendrecv_all_nodes(dpkg_t)
Chris PeBenito 0c54fcf
corenet_udp_sendrecv_all_nodes(dpkg_t)
Chris PeBenito 0c54fcf
corenet_tcp_sendrecv_all_ports(dpkg_t)
Chris PeBenito 0c54fcf
corenet_udp_sendrecv_all_ports(dpkg_t)
Chris PeBenito 0c54fcf
corenet_tcp_connect_all_ports(dpkg_t)
Chris PeBenito 9d0c9b3
corenet_sendrecv_all_client_packets(dpkg_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
dev_list_sysfs(dpkg_t)
Chris PeBenito 0c54fcf
dev_list_usbfs(dpkg_t)
Chris PeBenito 0c54fcf
dev_read_urand(dpkg_t)
Chris PeBenito 0c54fcf
#devices_manage_all_device_types(dpkg_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
domain_read_all_domains_state(dpkg_t)
Chris PeBenito 0c54fcf
domain_getattr_all_domains(dpkg_t)
Chris PeBenito 0c54fcf
domain_dontaudit_ptrace_all_domains(dpkg_t)
Chris PeBenito 0c54fcf
domain_use_interactive_fds(dpkg_t)
Chris PeBenito 0c54fcf
domain_dontaudit_getattr_all_pipes(dpkg_t)
Chris PeBenito 0c54fcf
domain_dontaudit_getattr_all_tcp_sockets(dpkg_t)
Chris PeBenito 0c54fcf
domain_dontaudit_getattr_all_udp_sockets(dpkg_t)
Chris PeBenito 0c54fcf
domain_dontaudit_getattr_all_packet_sockets(dpkg_t)
Chris PeBenito 0c54fcf
domain_dontaudit_getattr_all_raw_sockets(dpkg_t)
Chris PeBenito 0c54fcf
domain_dontaudit_getattr_all_stream_sockets(dpkg_t)
Chris PeBenito 0c54fcf
domain_dontaudit_getattr_all_dgram_sockets(dpkg_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
fs_manage_nfs_dirs(dpkg_t)
Chris PeBenito 0c54fcf
fs_manage_nfs_files(dpkg_t)
Chris PeBenito 0c54fcf
fs_manage_nfs_symlinks(dpkg_t)
Chris PeBenito 0c54fcf
fs_getattr_all_fs(dpkg_t)
Chris PeBenito 0c54fcf
fs_search_auto_mountpoints(dpkg_t)
Chris PeBenito 0c54fcf
Chris PeBenito f8233ab
mls_file_read_all_levels(dpkg_t)
Chris PeBenito f8233ab
mls_file_write_all_levels(dpkg_t)
Chris PeBenito 0c54fcf
mls_file_upgrade(dpkg_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
selinux_get_fs_mount(dpkg_t)
Chris PeBenito 0c54fcf
selinux_validate_context(dpkg_t)
Chris PeBenito 0c54fcf
selinux_compute_access_vector(dpkg_t)
Chris PeBenito 0c54fcf
selinux_compute_create_context(dpkg_t)
Chris PeBenito 0c54fcf
selinux_compute_relabel_context(dpkg_t)
Chris PeBenito 0c54fcf
selinux_compute_user_contexts(dpkg_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
storage_raw_write_fixed_disk(dpkg_t)
Chris PeBenito 0c54fcf
# for installing kernel packages
Chris PeBenito 0c54fcf
storage_raw_read_fixed_disk(dpkg_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
auth_relabel_all_files_except_shadow(dpkg_t)
Chris PeBenito 0c54fcf
auth_manage_all_files_except_shadow(dpkg_t)
Chris PeBenito 0c54fcf
auth_dontaudit_read_shadow(dpkg_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
files_exec_etc_files(dpkg_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
init_domtrans_script(dpkg_t)
Chris PeBenito e065ac8
init_use_script_ptys(dpkg_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
libs_exec_ld_so(dpkg_t)
Chris PeBenito 0c54fcf
libs_exec_lib_files(dpkg_t)
Chris PeBenito 0c54fcf
libs_domtrans_ldconfig(dpkg_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
logging_send_syslog_msg(dpkg_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
# allow compiling and loading new policy
Chris PeBenito 0c54fcf
seutil_manage_src_policy(dpkg_t)
Chris PeBenito 0c54fcf
seutil_manage_bin_policy(dpkg_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
sysnet_read_config(dpkg_t)
Chris PeBenito 0c54fcf
Chris PeBenito 296273a
userdom_use_user_terminals(dpkg_t)
Chris PeBenito 0c54fcf
userdom_use_unpriv_users_fds(dpkg_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
# transition to dpkg script:
Chris PeBenito 0c54fcf
dpkg_domtrans_script(dpkg_t)
Chris PeBenito 0c54fcf
# since the scripts aren't labeled correctly yet...
Chris PeBenito 0b36a21
allow dpkg_t dpkg_var_lib_t:file mmap_file_perms;
Chris PeBenito 0c54fcf
Chris PeBenito e065ac8
optional_policy(`
Chris PeBenito e065ac8
	apt_use_ptys(dpkg_t)
Chris PeBenito e065ac8
')
Chris PeBenito e065ac8
Chris PeBenito 0c54fcf
# TODO: allow?
Chris PeBenito bb7170f
#optional_policy(`
Chris PeBenito 0c54fcf
#	cron_system_entry(dpkg_t,dpkg_exec_t)
Chris PeBenito 0c54fcf
#')
Chris PeBenito 0c54fcf
Chris PeBenito bb7170f
optional_policy(`
Chris PeBenito 0c54fcf
	nis_use_ypbind(dpkg_t)
Chris PeBenito 0c54fcf
')
Chris PeBenito 0c54fcf
Chris PeBenito 350b6ab
optional_policy(`
Chris PeBenito 350b6ab
	unconfined_domain(dpkg_t)
Chris PeBenito 350b6ab
')
Chris PeBenito 350b6ab
Chris PeBenito 0c54fcf
# TODO: the following was copied from dpkg_script_t, and could probably
Chris PeBenito 0c54fcf
# be removed again when dpkg_script_t is actually used...
Chris PeBenito 0c54fcf
domain_signal_all_domains(dpkg_t)
Chris PeBenito 0c54fcf
domain_signull_all_domains(dpkg_t)
Chris PeBenito 0c54fcf
files_read_etc_runtime_files(dpkg_t)
Chris PeBenito 0c54fcf
files_exec_usr_files(dpkg_t)
Chris PeBenito 0c54fcf
miscfiles_read_localization(dpkg_t)
Chris PeBenito 0c54fcf
modutils_domtrans_depmod(dpkg_t)
Chris PeBenito 0c54fcf
modutils_domtrans_insmod(dpkg_t)
Chris PeBenito 0c54fcf
seutil_domtrans_loadpolicy(dpkg_t)
Chris PeBenito 762d2cb
seutil_domtrans_setfiles(dpkg_t)
Chris PeBenito 0c54fcf
userdom_use_all_users_fds(dpkg_t)
Chris PeBenito bb7170f
optional_policy(`
Chris PeBenito 0c54fcf
	mta_send_mail(dpkg_t)
Chris PeBenito 0c54fcf
')
Chris PeBenito bb7170f
optional_policy(`
Chris PeBenito 0c54fcf
	usermanage_domtrans_groupadd(dpkg_t)
Chris PeBenito 0c54fcf
	usermanage_domtrans_useradd(dpkg_t)
Chris PeBenito 0c54fcf
')
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
########################################
Chris PeBenito 0c54fcf
#
Chris PeBenito 0c54fcf
# dpkg-script Local policy
Chris PeBenito 0c54fcf
#
Chris PeBenito 0c54fcf
# TODO: actually use dpkg_script_t
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
allow dpkg_script_t self:capability { chown dac_override dac_read_search fowner fsetid setgid setuid ipc_lock sys_chroot sys_nice mknod kill };
Chris PeBenito 0c54fcf
allow dpkg_script_t self:process ~{ ptrace setcurrent setexec setfscreate setrlimit execmem execstack execheap };
Chris PeBenito 0c54fcf
allow dpkg_script_t self:fd use;
Chris PeBenito ef659a4
allow dpkg_script_t self:fifo_file rw_fifo_file_perms;
Chris PeBenito 0c54fcf
allow dpkg_script_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 0c54fcf
allow dpkg_script_t self:unix_stream_socket rw_stream_socket_perms;
Chris PeBenito 0c54fcf
allow dpkg_script_t self:unix_dgram_socket sendto;
Chris PeBenito 0c54fcf
allow dpkg_script_t self:unix_stream_socket connectto;
Chris PeBenito 0c54fcf
allow dpkg_script_t self:shm create_shm_perms;
Chris PeBenito 0c54fcf
allow dpkg_script_t self:sem create_sem_perms;
Chris PeBenito 0c54fcf
allow dpkg_script_t self:msgq create_msgq_perms;
Chris PeBenito 0c54fcf
allow dpkg_script_t self:msg { send receive };
Chris PeBenito 0c54fcf
Chris PeBenito ef659a4
allow dpkg_script_t dpkg_tmp_t:file read_file_perms;
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
allow dpkg_script_t dpkg_script_tmp_t:dir { manage_dir_perms mounton };
Chris PeBenito 0c54fcf
allow dpkg_script_t dpkg_script_tmp_t:file manage_file_perms;
Chris PeBenito 0c54fcf
files_tmp_filetrans(dpkg_script_t, dpkg_script_tmp_t, { file dir })
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
allow dpkg_script_t dpkg_script_tmpfs_t:dir manage_dir_perms;
Chris PeBenito 0c54fcf
allow dpkg_script_t dpkg_script_tmpfs_t:file manage_file_perms;
Chris PeBenito ef659a4
allow dpkg_script_t dpkg_script_tmpfs_t:lnk_file manage_lnk_file_perms;
Chris PeBenito ef659a4
allow dpkg_script_t dpkg_script_tmpfs_t:sock_file manage_sock_file_perms;
Chris PeBenito ef659a4
allow dpkg_script_t dpkg_script_tmpfs_t:fifo_file manage_fifo_file_perms;
Chris PeBenito 0bfccda
fs_tmpfs_filetrans(dpkg_script_t, dpkg_script_tmpfs_t, { dir file lnk_file sock_file fifo_file })
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
kernel_read_kernel_sysctls(dpkg_script_t)
Chris PeBenito 0c54fcf
kernel_read_system_state(dpkg_script_t)
Chris PeBenito 0c54fcf
Chris PeBenito fb63d0b
corecmd_exec_all_executables(dpkg_script_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
dev_list_sysfs(dpkg_script_t)
Chris PeBenito 0c54fcf
# ideally we would not need this
Chris PeBenito 0c54fcf
dev_manage_generic_blk_files(dpkg_script_t)
Chris PeBenito 0c54fcf
dev_manage_generic_chr_files(dpkg_script_t)
Chris PeBenito 0c54fcf
dev_manage_all_blk_files(dpkg_script_t)
Chris PeBenito 0c54fcf
dev_manage_all_chr_files(dpkg_script_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
domain_read_all_domains_state(dpkg_script_t)
Chris PeBenito 0c54fcf
domain_getattr_all_domains(dpkg_script_t)
Chris PeBenito 0c54fcf
domain_dontaudit_ptrace_all_domains(dpkg_script_t)
Chris PeBenito 0c54fcf
domain_use_interactive_fds(dpkg_script_t)
Chris PeBenito 0c54fcf
domain_signal_all_domains(dpkg_script_t)
Chris PeBenito 0c54fcf
domain_signull_all_domains(dpkg_script_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
files_exec_etc_files(dpkg_script_t)
Chris PeBenito 0c54fcf
files_read_etc_runtime_files(dpkg_script_t)
Chris PeBenito 0c54fcf
files_exec_usr_files(dpkg_script_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
fs_manage_nfs_files(dpkg_script_t)
Chris PeBenito 0c54fcf
fs_getattr_nfs(dpkg_script_t)
Chris PeBenito 0c54fcf
# why is this not using mount?
Chris PeBenito 0c54fcf
fs_getattr_xattr_fs(dpkg_script_t)
Chris PeBenito 0c54fcf
fs_mount_xattr_fs(dpkg_script_t)
Chris PeBenito 0c54fcf
fs_unmount_xattr_fs(dpkg_script_t)
Chris PeBenito 0c54fcf
fs_search_auto_mountpoints(dpkg_script_t)
Chris PeBenito 0c54fcf
Chris PeBenito f8233ab
mls_file_read_all_levels(dpkg_script_t)
Chris PeBenito f8233ab
mls_file_write_all_levels(dpkg_script_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
selinux_get_fs_mount(dpkg_script_t)
Chris PeBenito 0c54fcf
selinux_validate_context(dpkg_script_t)
Chris PeBenito 0c54fcf
selinux_compute_access_vector(dpkg_script_t)
Chris PeBenito 0c54fcf
selinux_compute_create_context(dpkg_script_t)
Chris PeBenito 0c54fcf
selinux_compute_relabel_context(dpkg_script_t)
Chris PeBenito 0c54fcf
selinux_compute_user_contexts(dpkg_script_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
storage_raw_read_fixed_disk(dpkg_script_t)
Chris PeBenito 0c54fcf
storage_raw_write_fixed_disk(dpkg_script_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
term_use_all_terms(dpkg_script_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
auth_dontaudit_getattr_shadow(dpkg_script_t)
Chris PeBenito 0c54fcf
# ideally we would not need this
Chris PeBenito 0c54fcf
auth_manage_all_files_except_shadow(dpkg_script_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
init_domtrans_script(dpkg_script_t)
Chris PeBenito e065ac8
init_use_script_fds(dpkg_script_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
libs_exec_ld_so(dpkg_script_t)
Chris PeBenito 0c54fcf
libs_exec_lib_files(dpkg_script_t)
Chris PeBenito 0c54fcf
libs_domtrans_ldconfig(dpkg_script_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
logging_send_syslog_msg(dpkg_script_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
miscfiles_read_localization(dpkg_script_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
modutils_domtrans_depmod(dpkg_script_t)
Chris PeBenito 0c54fcf
modutils_domtrans_insmod(dpkg_script_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
seutil_domtrans_loadpolicy(dpkg_script_t)
Chris PeBenito 762d2cb
seutil_domtrans_setfiles(dpkg_script_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
userdom_use_all_users_fds(dpkg_script_t)
Chris PeBenito 0c54fcf
Chris PeBenito 0c54fcf
tunable_policy(`allow_execmem',`
Chris PeBenito 0c54fcf
	allow dpkg_script_t self:process execmem;
Chris PeBenito 0c54fcf
')
Chris PeBenito 0c54fcf
Chris PeBenito bb7170f
optional_policy(`
Chris PeBenito e065ac8
	apt_rw_pipes(dpkg_script_t)
Chris PeBenito e065ac8
	apt_use_fds(dpkg_script_t)
Chris PeBenito e065ac8
')
Chris PeBenito e065ac8
Chris PeBenito e065ac8
optional_policy(`
Chris PeBenito 350b6ab
	bootloader_domtrans(dpkg_script_t)
Chris PeBenito 350b6ab
')
Chris PeBenito 350b6ab
Chris PeBenito 350b6ab
optional_policy(`
Chris PeBenito 0c54fcf
	mta_send_mail(dpkg_script_t)
Chris PeBenito 0c54fcf
')
Chris PeBenito 0c54fcf
Chris PeBenito bb7170f
optional_policy(`
Chris PeBenito 0c54fcf
	nis_use_ypbind(dpkg_script_t)
Chris PeBenito 0c54fcf
')
Chris PeBenito 0c54fcf
Chris PeBenito bb7170f
optional_policy(`
Chris PeBenito 350b6ab
	unconfined_domain(dpkg_script_t)
Chris PeBenito 350b6ab
')
Chris PeBenito 350b6ab
Chris PeBenito 350b6ab
optional_policy(`
Chris PeBenito 0c54fcf
	usermanage_domtrans_groupadd(dpkg_script_t)
Chris PeBenito 0c54fcf
	usermanage_domtrans_useradd(dpkg_script_t)
Chris PeBenito 0c54fcf
')