|
Dan Walsh |
3eaa99 |
policy_module(sandbox,1.0.0)
|
|
Dan Walsh |
3eaa99 |
dbus_stub()
|
|
Dan Walsh |
3eaa99 |
attribute sandbox_domain;
|
|
Dan Walsh |
3eaa99 |
attribute sandbox_x_domain;
|
|
Dan Walsh |
3eaa99 |
attribute sandbox_file_type;
|
|
Dan Walsh |
3eaa99 |
attribute sandbox_web_type;
|
|
Dan Walsh |
3eaa99 |
attribute sandbox_tmpfs_type;
|
|
Dan Walsh |
3eaa99 |
attribute sandbox_x_type;
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
# Declarations
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
sandbox_domain_template(sandbox)
|
|
Dan Walsh |
3eaa99 |
sandbox_x_domain_template(sandbox_min)
|
|
Dan Walsh |
3eaa99 |
sandbox_x_domain_template(sandbox_x)
|
|
Dan Walsh |
3eaa99 |
sandbox_x_domain_template(sandbox_web)
|
|
Dan Walsh |
3eaa99 |
sandbox_x_domain_template(sandbox_net)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
type sandbox_xserver_t;
|
|
Dan Walsh |
3eaa99 |
domain_type(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
xserver_user_x_domain_template(sandbox_xserver, sandbox_xserver_t, sandbox_xserver_tmpfs_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
type sandbox_xserver_tmpfs_t;
|
|
Dan Walsh |
3eaa99 |
files_tmpfs_file(sandbox_xserver_tmpfs_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
type sandbox_devpts_t;
|
|
Dan Walsh |
3eaa99 |
term_pty(sandbox_devpts_t)
|
|
Dan Walsh |
3eaa99 |
files_type(sandbox_devpts_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
# sandbox xserver policy
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
allow sandbox_xserver_t self:process { execmem execstack };
|
|
Dan Walsh |
3eaa99 |
allow sandbox_xserver_t self:fifo_file manage_fifo_file_perms;
|
|
Dan Walsh |
3eaa99 |
allow sandbox_xserver_t self:shm create_shm_perms;
|
|
Dan Walsh |
3eaa99 |
allow sandbox_xserver_t self:tcp_socket create_stream_socket_perms;
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
manage_dirs_pattern(sandbox_xserver_t, sandbox_xserver_tmpfs_t, sandbox_xserver_tmpfs_t)
|
|
Dan Walsh |
3eaa99 |
manage_files_pattern(sandbox_xserver_t, sandbox_xserver_tmpfs_t, sandbox_xserver_tmpfs_t)
|
|
Dan Walsh |
3eaa99 |
manage_lnk_files_pattern(sandbox_xserver_t, sandbox_xserver_tmpfs_t, sandbox_xserver_tmpfs_t)
|
|
Dan Walsh |
3eaa99 |
manage_fifo_files_pattern(sandbox_xserver_t, sandbox_xserver_tmpfs_t, sandbox_xserver_tmpfs_t)
|
|
Dan Walsh |
3eaa99 |
manage_sock_files_pattern(sandbox_xserver_t, sandbox_xserver_tmpfs_t, sandbox_xserver_tmpfs_t)
|
|
Dan Walsh |
3eaa99 |
fs_tmpfs_filetrans(sandbox_xserver_t, sandbox_xserver_tmpfs_t, { dir file lnk_file sock_file fifo_file })
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
c6fa93 |
kernel_dontaudit_request_load_module(sandbox_xserver_t)
|
|
Dan Walsh |
c6fa93 |
|
|
Dan Walsh |
3eaa99 |
corecmd_exec_bin(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
corecmd_exec_shell(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
corenet_all_recvfrom_unlabeled(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
corenet_all_recvfrom_netlabel(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_sendrecv_all_if(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
corenet_udp_sendrecv_all_if(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_sendrecv_all_nodes(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
corenet_udp_sendrecv_all_nodes(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_sendrecv_all_ports(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
corenet_udp_sendrecv_all_ports(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_bind_all_nodes(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_bind_xserver_port(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
corenet_sendrecv_xserver_server_packets(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
corenet_sendrecv_all_client_packets(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
dev_rwx_zero(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
files_read_config_files(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
files_read_usr_files(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
files_search_home(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
fs_dontaudit_rw_tmpfs_files(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
fs_list_inotifyfs(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
miscfiles_read_fonts(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
miscfiles_read_localization(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
kernel_read_system_state(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
selinux_validate_context(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
selinux_compute_access_vector(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
selinux_compute_create_context(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
auth_use_nsswitch(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
logging_send_syslog_msg(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
logging_send_audit_msgs(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
userdom_use_user_terminals(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
userdom_dontaudit_search_user_home_content(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
xserver_entry_type(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
dbus_system_bus_client(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
hal_dbus_chat(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
# sandbox local policy
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
## internal communication is often done using fifo and unix sockets.
|
|
Dan Walsh |
3eaa99 |
allow sandbox_domain self:fifo_file manage_file_perms;
|
|
Dan Walsh |
3eaa99 |
allow sandbox_domain self:sem create_sem_perms;
|
|
Dan Walsh |
3eaa99 |
allow sandbox_domain self:shm create_shm_perms;
|
|
Dan Walsh |
3eaa99 |
allow sandbox_domain self:msgq create_msgq_perms;
|
|
Dan Walsh |
3eaa99 |
allow sandbox_domain self:unix_stream_socket create_stream_socket_perms;
|
|
Dan Walsh |
3eaa99 |
allow sandbox_domain self:unix_dgram_socket { sendto create_socket_perms };
|
|
Dan Walsh |
3eaa99 |
dontaudit sandbox_domain self:netlink_audit_socket { create_netlink_socket_perms nlmsg_relay };
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
dev_rw_all_inherited_chr_files(sandbox_domain)
|
|
Dan Walsh |
3eaa99 |
dev_rw_all_inherited_blk_files(sandbox_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
type usr_t, lib_t, locale_t;
|
|
Dan Walsh |
3eaa99 |
type var_t, var_run_t, rpm_log_t, locale_t;
|
|
Dan Walsh |
3eaa99 |
attribute exec_type, configfile;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
files_rw_all_inherited_files(sandbox_domain, -exec_type -configfile -usr_t -lib_t -locale_t -var_t -var_run_t -device_t -rpm_log_t )
|
|
Dan Walsh |
3eaa99 |
files_entrypoint_all_files(sandbox_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
files_read_config_files(sandbox_domain)
|
|
Dan Walsh |
3eaa99 |
files_read_usr_files(sandbox_domain)
|
|
Dan Walsh |
3eaa99 |
files_read_var_files(sandbox_domain)
|
|
Dan Walsh |
3eaa99 |
files_dontaudit_search_all_dirs(sandbox_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
miscfiles_read_localization(sandbox_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
kernel_dontaudit_read_system_state(sandbox_domain)
|
|
Dan Walsh |
3eaa99 |
corecmd_exec_all_executables(sandbox_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
userdom_dontaudit_use_user_terminals(sandbox_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
mta_dontaudit_read_spool_symlinks(sandbox_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
# sandbox_x_domain local policy
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
allow sandbox_x_domain self:fifo_file manage_file_perms;
|
|
Dan Walsh |
3eaa99 |
allow sandbox_x_domain self:sem create_sem_perms;
|
|
Dan Walsh |
3eaa99 |
allow sandbox_x_domain self:shm create_shm_perms;
|
|
Dan Walsh |
3eaa99 |
allow sandbox_x_domain self:msgq create_msgq_perms;
|
|
Dan Walsh |
3eaa99 |
allow sandbox_x_domain self:unix_stream_socket create_stream_socket_perms;
|
|
Dan Walsh |
3eaa99 |
allow sandbox_x_domain self:unix_dgram_socket { sendto create_socket_perms };
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
allow sandbox_x_domain self:unix_stream_socket create_stream_socket_perms;
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
allow sandbox_x_domain self:process { signal_perms getsched setpgid execstack execmem };
|
|
Dan Walsh |
3eaa99 |
allow sandbox_x_domain self:shm create_shm_perms;
|
|
Dan Walsh |
3eaa99 |
allow sandbox_x_domain self:unix_stream_socket { connectto create_stream_socket_perms };
|
|
Dan Walsh |
3eaa99 |
allow sandbox_x_domain self:unix_dgram_socket { sendto create_socket_perms };
|
|
Dan Walsh |
3eaa99 |
allow sandbox_x_domain sandbox_xserver_t:unix_stream_socket connectto;
|
|
Dan Walsh |
3eaa99 |
dontaudit sandbox_x_domain self:netlink_audit_socket { create_netlink_socket_perms nlmsg_relay };
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
domain_dontaudit_read_all_domains_state(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
files_search_home(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
files_dontaudit_list_tmp(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
kernel_getattr_proc(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
kernel_read_network_state(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
kernel_read_system_state(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
corecmd_exec_all_executables(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
dev_read_urand(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
dev_dontaudit_read_rand(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
dev_read_sysfs(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
files_entrypoint_all_files(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
files_read_config_files(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
files_read_usr_files(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
files_read_usr_symlinks(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
fs_getattr_tmpfs(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
fs_getattr_xattr_fs(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
fs_list_inotifyfs(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
auth_dontaudit_read_login_records(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
auth_dontaudit_write_login_records(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
auth_use_nsswitch(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
auth_search_pam_console_data(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
init_read_utmp(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
init_dontaudit_write_utmp(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
miscfiles_read_localization(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
miscfiles_dontaudit_setattr_fonts_cache_dirs(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
term_getattr_pty_fs(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
term_use_ptmx(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
logging_send_syslog_msg(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
logging_dontaudit_search_logs(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
miscfiles_read_fonts(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
storage_dontaudit_rw_fuse(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
cups_stream_connect(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
cups_read_rw_config(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
dbus_system_bus_client(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
gnome_read_gconf_config(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
nscd_dontaudit_search_pid(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
sssd_dontaudit_search_lib(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
udev_read_db(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
userdom_dontaudit_use_user_terminals(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
userdom_read_user_home_content_symlinks(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
userdom_search_user_home_content(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
files_search_home(sandbox_x_t)
|
|
Dan Walsh |
3eaa99 |
userdom_use_user_ptys(sandbox_x_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
# sandbox_x_client_t local policy
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
c6fa93 |
allow sandbox_x_client_t self:tcp_socket create_stream_socket_perms;
|
|
Dan Walsh |
3eaa99 |
allow sandbox_x_client_t self:udp_socket create_socket_perms;
|
|
Dan Walsh |
3eaa99 |
allow sandbox_x_client_t self:dbus { acquire_svc send_msg };
|
|
Dan Walsh |
3eaa99 |
allow sandbox_x_client_t self:netlink_selinux_socket create_socket_perms;
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
dev_read_rand(sandbox_x_client_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_connect_ipp_port(sandbox_x_client_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
auth_use_nsswitch(sandbox_x_client_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
selinux_get_fs_mount(sandbox_x_client_t)
|
|
Dan Walsh |
3eaa99 |
selinux_validate_context(sandbox_x_client_t)
|
|
Dan Walsh |
3eaa99 |
selinux_compute_access_vector(sandbox_x_client_t)
|
|
Dan Walsh |
3eaa99 |
selinux_compute_create_context(sandbox_x_client_t)
|
|
Dan Walsh |
3eaa99 |
selinux_compute_relabel_context(sandbox_x_client_t)
|
|
Dan Walsh |
3eaa99 |
selinux_compute_user_contexts(sandbox_x_client_t)
|
|
Dan Walsh |
3eaa99 |
seutil_read_default_contexts(sandbox_x_client_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
hal_dbus_chat(sandbox_x_client_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
c2dae9 |
|
|
Dan Walsh |
c2dae9 |
allow sandbox_web_t self:process setsched;
|
|
Dan Walsh |
c2dae9 |
|
|
Dan Walsh |
c2dae9 |
optional_policy(`
|
|
Dan Walsh |
c2dae9 |
nsplugin_read_rw_files(sandbox_web_t)
|
|
Dan Walsh |
c2dae9 |
')
|
|
Dan Walsh |
c2dae9 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
# sandbox_web_client_t local policy
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
typeattribute sandbox_web_client_t sandbox_web_type;
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
allow sandbox_web_type self:capability { setuid setgid };
|
|
Dan Walsh |
3eaa99 |
allow sandbox_web_type self:netlink_audit_socket nlmsg_relay;
|
|
Dan Walsh |
3eaa99 |
allow sandbox_web_type self:process setsched;
|
|
Dan Walsh |
3eaa99 |
dontaudit sandbox_web_type self:process setrlimit;
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
c6fa93 |
allow sandbox_web_type self:tcp_socket create_stream_socket_perms;
|
|
Dan Walsh |
3eaa99 |
allow sandbox_web_type self:udp_socket create_socket_perms;
|
|
Dan Walsh |
3eaa99 |
allow sandbox_web_type self:dbus { acquire_svc send_msg };
|
|
Dan Walsh |
3eaa99 |
allow sandbox_web_type self:netlink_selinux_socket create_socket_perms;
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
kernel_dontaudit_search_kernel_sysctl(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
kernel_request_load_module(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
dev_read_rand(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
dev_write_sound(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
dev_read_sound(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
corenet_all_recvfrom_unlabeled(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_all_recvfrom_netlabel(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_sendrecv_all_if(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_raw_sendrecv_all_if(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_sendrecv_all_nodes(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_raw_sendrecv_all_nodes(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_sendrecv_http_port(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_sendrecv_http_cache_port(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_sendrecv_squid_port(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_sendrecv_ftp_port(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_sendrecv_ipp_port(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_connect_http_port(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_connect_http_cache_port(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_connect_squid_port(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_connect_flash_port(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_connect_ftp_port(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_connect_ipp_port(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_connect_streaming_port(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_connect_pulseaudio_port(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_connect_speech_port(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_connect_generic_port(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_connect_soundd_port(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_connect_speech_port(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_sendrecv_http_client_packets(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_sendrecv_http_cache_client_packets(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_sendrecv_squid_client_packets(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_sendrecv_ftp_client_packets(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_sendrecv_ipp_client_packets(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_sendrecv_generic_client_packets(sandbox_web_type)
|
|
Dan Walsh |
5dd0c2 |
|
|
Dan Walsh |
3eaa99 |
corenet_dontaudit_tcp_sendrecv_generic_port(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
corenet_dontaudit_tcp_bind_generic_port(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
files_dontaudit_getattr_all_dirs(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
files_dontaudit_list_mnt(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
fs_dontaudit_rw_anon_inodefs_files(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
fs_dontaudit_getattr_all_fs(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
storage_dontaudit_getattr_fixed_disk_dev(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
auth_use_nsswitch(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
dbus_system_bus_client(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
dbus_read_config(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
selinux_get_fs_mount(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
selinux_validate_context(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
selinux_compute_access_vector(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
selinux_compute_create_context(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
selinux_compute_relabel_context(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
selinux_compute_user_contexts(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
seutil_read_default_contexts(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
userdom_rw_user_tmpfs_files(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
userdom_delete_user_tmpfs_files(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
bluetooth_dontaudit_dbus_chat(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
consolekit_dbus_chat(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
hal_dbus_chat(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
nsplugin_read_rw_files(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
nsplugin_rw_exec(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
nsplugin_manage_rw(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
pulseaudio_stream_connect(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
allow sandbox_web_type self:netlink_kobject_uevent_socket create_socket_perms;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
rtkit_daemon_dontaudit_dbus_chat(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
networkmanager_dontaudit_dbus_chat(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
udev_read_state(sandbox_web_type)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
# sandbox_net_client_t local policy
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
typeattribute sandbox_net_client_t sandbox_web_type;
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
corenet_all_recvfrom_unlabeled(sandbox_net_client_t)
|
|
Dan Walsh |
3eaa99 |
corenet_all_recvfrom_netlabel(sandbox_net_client_t)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_sendrecv_all_if(sandbox_net_client_t)
|
|
Dan Walsh |
3eaa99 |
corenet_udp_sendrecv_all_if(sandbox_net_client_t)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_sendrecv_all_nodes(sandbox_net_client_t)
|
|
Dan Walsh |
3eaa99 |
corenet_udp_sendrecv_all_nodes(sandbox_net_client_t)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_sendrecv_all_ports(sandbox_net_client_t)
|
|
Dan Walsh |
3eaa99 |
corenet_udp_sendrecv_all_ports(sandbox_net_client_t)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_connect_all_ports(sandbox_net_client_t)
|
|
Dan Walsh |
3eaa99 |
corenet_sendrecv_all_client_packets(sandbox_net_client_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
mozilla_dontaudit_rw_user_home_files(sandbox_x_t)
|
|
Dan Walsh |
3eaa99 |
mozilla_dontaudit_rw_user_home_files(sandbox_xserver_t)
|
|
Dan Walsh |
3eaa99 |
mozilla_dontaudit_rw_user_home_files(sandbox_x_domain)
|
|
Dan Walsh |
3eaa99 |
')
|