1 ## <summary>Policy for user domains</summary>
3 #######################################
5 ## The template containing the most basic rules common to all users.
9 ## The template containing the most basic rules common to all users.
12 ## This template creates a user domain, types, and
13 ## rules for the user's tty and pty.
16 ## <param name="userdomain_prefix">
18 ## The prefix of the user domain (e.g., user
19 ## is the prefix for user_t).
24 template(`userdom_base_user_template',`
28 type user_devpts_t, user_tty_device_t;
29 class context contains;
32 attribute $1_file_type;
33 attribute $1_usertype;
35 type $1_t, userdomain, $1_usertype;
38 corecmd_shell_entry_type($1_t)
39 corecmd_bin_entry_type($1_t)
40 domain_user_exemption_target($1_t)
41 ubac_constrained($1_t)
45 term_user_pty($1_t, user_devpts_t)
47 term_user_tty($1_t, user_tty_device_t)
48 term_dontaudit_getattr_generic_ptys($1_t)
50 allow $1_usertype $1_usertype:process { ptrace signal_perms getsched setsched share getpgid setpgid getcap setcap getsession getattr };
51 allow $1_usertype $1_usertype:fd use;
52 allow $1_usertype $1_t:key { create view read write search link setattr };
54 allow $1_usertype $1_usertype:fifo_file rw_fifo_file_perms;
55 allow $1_usertype $1_usertype:unix_dgram_socket { create_socket_perms sendto };
56 allow $1_usertype $1_usertype:unix_stream_socket { create_stream_socket_perms connectto };
57 allow $1_usertype $1_usertype:shm create_shm_perms;
58 allow $1_usertype $1_usertype:sem create_sem_perms;
59 allow $1_usertype $1_usertype:msgq create_msgq_perms;
60 allow $1_usertype $1_usertype:msg { send receive };
61 allow $1_usertype $1_usertype:context contains;
62 dontaudit $1_usertype $1_usertype:socket create;
64 allow $1_usertype user_devpts_t:chr_file { setattr rw_chr_file_perms };
65 term_create_pty($1_usertype, user_devpts_t)
66 # avoid annoying messages on terminal hangup on role change
67 dontaudit $1_usertype user_devpts_t:chr_file ioctl;
69 allow $1_usertype user_tty_device_t:chr_file { setattr rw_chr_file_perms };
70 # avoid annoying messages on terminal hangup on role change
71 dontaudit $1_usertype user_tty_device_t:chr_file ioctl;
73 application_exec_all($1_usertype)
75 kernel_read_kernel_sysctls($1_usertype)
76 kernel_read_all_sysctls($1_usertype)
77 kernel_dontaudit_list_unlabeled($1_usertype)
78 kernel_dontaudit_getattr_unlabeled_files($1_usertype)
79 kernel_dontaudit_getattr_unlabeled_symlinks($1_usertype)
80 kernel_dontaudit_getattr_unlabeled_pipes($1_usertype)
81 kernel_dontaudit_getattr_unlabeled_sockets($1_usertype)
82 kernel_dontaudit_getattr_unlabeled_blk_files($1_usertype)
83 kernel_dontaudit_getattr_unlabeled_chr_files($1_usertype)
84 kernel_dontaudit_list_proc($1_usertype)
86 dev_dontaudit_getattr_all_blk_files($1_usertype)
87 dev_dontaudit_getattr_all_chr_files($1_usertype)
88 dev_getattr_mtrr_dev($1_t)
90 # When the user domain runs ps, there will be a number of access
91 # denials when ps tries to search /proc. Do not audit these denials.
92 domain_dontaudit_read_all_domains_state($1_usertype)
93 domain_dontaudit_getattr_all_domains($1_usertype)
94 domain_dontaudit_getsession_all_domains($1_usertype)
95 dev_dontaudit_all_access_check($1_usertype)
97 files_read_etc_files($1_usertype)
98 files_list_mnt($1_usertype)
99 files_list_var($1_usertype)
100 files_read_mnt_files($1_usertype)
101 files_dontaudit_access_check_mnt($1_usertype)
102 files_read_etc_runtime_files($1_usertype)
103 files_read_usr_files($1_usertype)
104 files_read_usr_src_files($1_usertype)
105 # Read directories and files with the readable_t type.
106 # This type is a general type for "world"-readable files.
107 files_list_world_readable($1_usertype)
108 files_read_world_readable_files($1_usertype)
109 files_read_world_readable_symlinks($1_usertype)
110 files_read_world_readable_pipes($1_usertype)
111 files_read_world_readable_sockets($1_usertype)
112 # old broswer_domain():
113 files_dontaudit_getattr_all_dirs($1_usertype)
114 files_dontaudit_list_non_security($1_usertype)
115 files_dontaudit_getattr_all_files($1_usertype)
116 files_dontaudit_getattr_non_security_symlinks($1_usertype)
117 files_dontaudit_getattr_non_security_pipes($1_usertype)
118 files_dontaudit_getattr_non_security_sockets($1_usertype)
119 files_dontaudit_setattr_etc_runtime_files($1_usertype)
121 files_exec_usr_files($1_t)
123 fs_list_cgroup_dirs($1_usertype)
124 fs_dontaudit_rw_cgroup_files($1_usertype)
126 storage_rw_fuse($1_usertype)
128 auth_use_nsswitch($1_t)
130 init_stream_connect($1_usertype)
131 # The library functions always try to open read-write first,
132 # then fall back to read-only if it fails.
133 init_dontaudit_rw_utmp($1_usertype)
135 libs_exec_ld_so($1_usertype)
137 logging_send_audit_msgs($1_t)
139 miscfiles_read_localization($1_t)
140 miscfiles_read_generic_certs($1_t)
142 miscfiles_read_all_certs($1_usertype)
143 miscfiles_read_localization($1_usertype)
144 miscfiles_read_man_pages($1_usertype)
145 miscfiles_read_public_files($1_usertype)
147 systemd_dbus_chat_logind($1_usertype)
149 tunable_policy(`allow_execmem',`
150 # Allow loading DSOs that require executable stack.
151 allow $1_t self:process execmem;
154 tunable_policy(`allow_execmem && allow_execstack',`
155 # Allow making the stack executable via mprotect.
156 allow $1_t self:process execstack;
160 abrt_stream_connect($1_usertype)
164 fs_list_cgroup_dirs($1_usertype)
168 ssh_rw_stream_sockets($1_usertype)
174 #######################################
176 ## Allow a home directory for which the
177 ## role has read-only access.
181 ## Allow a home directory for which the
182 ## role has read-only access.
185 ## This does not allow execute access.
188 ## <param name="role">
193 ## <param name="userdomain">
200 interface(`userdom_ro_home_role',`
202 type user_home_t, user_home_dir_t;
205 role $1 types { user_home_t user_home_dir_t };
207 ##############################
209 # Domain access to home dir
212 type_member $2 user_home_dir_t:dir user_home_dir_t;
214 # read-only home directory
215 allow $2 user_home_dir_t:dir list_dir_perms;
216 allow $2 user_home_t:dir list_dir_perms;
217 allow $2 user_home_t:file entrypoint;
218 read_files_pattern($2, { user_home_t user_home_dir_t }, user_home_t)
219 read_lnk_files_pattern($2, { user_home_t user_home_dir_t }, user_home_t)
220 read_fifo_files_pattern($2, { user_home_t user_home_dir_t }, user_home_t)
221 read_sock_files_pattern($2, { user_home_t user_home_dir_t }, user_home_t)
226 #######################################
228 ## Allow a home directory for which the
229 ## role has full access.
233 ## Allow a home directory for which the
234 ## role has full access.
237 ## This does not allow execute access.
240 ## <param name="role">
245 ## <param name="userdomain">
252 interface(`userdom_manage_home_role',`
254 type user_home_t, user_home_dir_t;
255 attribute user_home_type;
258 role $1 types { user_home_type user_home_dir_t };
260 ##############################
262 # Domain access to home dir
265 type_member $2 user_home_dir_t:dir user_home_dir_t;
267 # full control of the home directory
268 allow $2 user_home_t:dir mounton;
269 allow $2 user_home_t:file entrypoint;
271 allow $2 user_home_type:dir_file_class_set { relabelto relabelfrom };
272 allow $2 user_home_dir_t:lnk_file read_lnk_file_perms;
273 manage_dirs_pattern($2, { user_home_dir_t user_home_type }, user_home_type)
274 manage_files_pattern($2, { user_home_dir_t user_home_type }, user_home_type)
275 manage_lnk_files_pattern($2, { user_home_dir_t user_home_type }, user_home_type)
276 manage_sock_files_pattern($2, { user_home_dir_t user_home_type }, user_home_type)
277 manage_fifo_files_pattern($2, { user_home_dir_t user_home_type }, user_home_type)
278 relabel_dirs_pattern($2, { user_home_dir_t user_home_type }, user_home_type)
279 relabel_files_pattern($2, { user_home_dir_t user_home_type }, user_home_type)
280 relabel_lnk_files_pattern($2, { user_home_dir_t user_home_type }, user_home_type)
281 relabel_sock_files_pattern($2, { user_home_dir_t user_home_type }, user_home_type)
282 relabel_fifo_files_pattern($2, { user_home_dir_t user_home_type }, user_home_type)
283 filetrans_pattern($2, user_home_dir_t, user_home_t, { dir file lnk_file sock_file fifo_file })
286 # cjp: this should probably be removed:
287 allow $2 user_home_dir_t:dir { manage_dir_perms relabel_dir_perms };
289 tunable_policy(`use_nfs_home_dirs',`
292 fs_manage_nfs_dirs($2)
293 fs_manage_nfs_files($2)
294 fs_manage_nfs_symlinks($2)
295 fs_manage_nfs_named_sockets($2)
296 fs_manage_nfs_named_pipes($2)
299 tunable_policy(`use_samba_home_dirs',`
302 fs_manage_cifs_dirs($2)
303 fs_manage_cifs_files($2)
304 fs_manage_cifs_symlinks($2)
305 fs_manage_cifs_named_sockets($2)
306 fs_manage_cifs_named_pipes($2)
310 #######################################
312 ## Manage user temporary files
314 ## <param name="role">
316 ## Role allowed access.
319 ## <param name="domain">
321 ## Domain allowed access.
326 interface(`userdom_manage_tmp_role',`
328 attribute user_tmp_type;
332 role $1 types user_tmp_t;
334 files_poly_member_tmp($2, user_tmp_t)
336 manage_dirs_pattern($2, user_tmp_type, user_tmp_type)
337 manage_files_pattern($2, user_tmp_type, user_tmp_type)
338 manage_lnk_files_pattern($2, user_tmp_type, user_tmp_type)
339 manage_sock_files_pattern($2, user_tmp_type, user_tmp_type)
340 manage_fifo_files_pattern($2, user_tmp_type, user_tmp_type)
341 files_tmp_filetrans($2, user_tmp_t, { dir file lnk_file sock_file fifo_file })
342 relabel_dirs_pattern($2, user_tmp_type, user_tmp_type)
343 relabel_files_pattern($2, user_tmp_type, user_tmp_type)
344 relabel_lnk_files_pattern($2, user_tmp_type, user_tmp_type)
345 relabel_sock_files_pattern($2, user_tmp_type, user_tmp_type)
346 relabel_fifo_files_pattern($2, user_tmp_type, user_tmp_type)
349 #######################################
351 ## Dontaudit search of user bin dirs.
353 ## <param name="domain">
355 ## Domain to not audit.
359 interface(`userdom_dontaudit_search_user_bin_dirs',`
364 dontaudit $1 home_bin_t:dir search_dir_perms;
367 #######################################
369 ## Execute user bin files.
371 ## <param name="domain">
373 ## Domain allowed access.
377 interface(`userdom_exec_user_bin_files',`
379 attribute user_home_type;
380 type home_bin_t, user_home_dir_t;
383 exec_files_pattern($1, { user_home_dir_t user_home_type }, home_bin_t)
384 files_search_home($1)
387 #######################################
389 ## The execute access user temporary files.
391 ## <param name="domain">
393 ## Domain allowed access.
398 interface(`userdom_exec_user_tmp_files',`
403 exec_files_pattern($1, user_tmp_t, user_tmp_t)
404 dontaudit $1 user_tmp_t:sock_file execute;
408 #######################################
410 ## Role access for the user tmpfs type
411 ## that the user has full access.
415 ## Role access for the user tmpfs type
416 ## that the user has full access.
419 ## This does not allow execute access.
422 ## <param name="role">
424 ## Role allowed access.
427 ## <param name="domain">
429 ## Domain allowed access.
434 interface(`userdom_manage_tmpfs_role',`
436 attribute user_tmpfs_type;
440 role $1 types user_tmpfs_t;
442 manage_dirs_pattern($2, user_tmpfs_type, user_tmpfs_type)
443 manage_files_pattern($2, user_tmpfs_type, user_tmpfs_type)
444 manage_lnk_files_pattern($2, user_tmpfs_type, user_tmpfs_type)
445 manage_sock_files_pattern($2, user_tmpfs_type, user_tmpfs_type)
446 manage_fifo_files_pattern($2, user_tmpfs_type, user_tmpfs_type)
447 fs_tmpfs_filetrans($2, user_tmpfs_t, { dir file lnk_file sock_file fifo_file })
448 relabel_dirs_pattern($2, user_tmpfs_type, user_tmpfs_type)
449 relabel_files_pattern($2, user_tmpfs_type, user_tmpfs_type)
450 relabel_lnk_files_pattern($2, user_tmpfs_type, user_tmpfs_type)
451 relabel_sock_files_pattern($2, user_tmpfs_type, user_tmpfs_type)
452 relabel_fifo_files_pattern($2, user_tmpfs_type, user_tmpfs_type)
455 #######################################
457 ## The interface allowing the user basic
458 ## network permissions
460 ## <param name="userdomain">
467 interface(`userdom_basic_networking',`
469 allow $1 self:tcp_socket create_stream_socket_perms;
470 allow $1 self:udp_socket create_socket_perms;
472 corenet_all_recvfrom_unlabeled($1)
473 corenet_all_recvfrom_netlabel($1)
474 corenet_tcp_sendrecv_generic_if($1)
475 corenet_udp_sendrecv_generic_if($1)
476 corenet_tcp_sendrecv_generic_node($1)
477 corenet_udp_sendrecv_generic_node($1)
478 corenet_tcp_sendrecv_all_ports($1)
479 corenet_udp_sendrecv_all_ports($1)
480 corenet_tcp_connect_all_ports($1)
481 corenet_sendrecv_all_client_packets($1)
484 init_tcp_recvfrom_all_daemons($1)
485 init_udp_recvfrom_all_daemons($1)
489 ipsec_match_default_spd($1)
494 #######################################
496 ## The template for creating a user xwindows client. (Deprecated)
498 ## <param name="userdomain_prefix">
500 ## The prefix of the user domain (e.g., user
501 ## is the prefix for user_t).
506 template(`userdom_xwindows_client_template',`
507 refpolicywarn(`$0() has been deprecated, please use xserver_role() instead.')
509 type $1_t, user_tmpfs_t;
512 dev_rw_xserver_misc($1_t)
513 dev_rw_power_management($1_t)
517 # open office is looking for the following
518 dev_getattr_agp_dev($1_t)
519 dev_dontaudit_rw_dri($1_t)
520 # GNOME checks for usb and other devices:
522 dev_rw_generic_usb_dev($1_t)
524 xserver_user_x_domain_template($1, $1_t, user_tmpfs_t)
525 xserver_xsession_entry_type($1_t)
526 xserver_dontaudit_write_log($1_t)
527 xserver_stream_connect_xdm($1_t)
528 # certain apps want to read xdm.pid file
529 xserver_read_xdm_pid($1_t)
530 # gnome-session creates socket under /tmp/.ICE-unix/
531 xserver_create_xdm_tmp_sockets($1_t)
532 # Needed for escd, remove if we get escd policy
533 xserver_manage_xdm_tmp_files($1_t)
536 #######################################
538 ## The template for allowing the user to change passwords.
540 ## <param name="userdomain_prefix">
542 ## The prefix of the user domain (e.g., user
543 ## is the prefix for user_t).
548 template(`userdom_change_password_template',`
555 usermanage_run_chfn($1_t,$1_r)
556 usermanage_run_passwd($1_t,$1_r)
560 #######################################
562 ## The template containing rules common to unprivileged
563 ## users and administrative users.
567 ## This template creates a user domain, types, and
568 ## rules for the user's tty, pty, tmp, and tmpfs files.
571 ## <param name="userdomain_prefix">
573 ## The prefix of the user domain (e.g., user
574 ## is the prefix for user_t).
578 template(`userdom_common_user_template',`
580 attribute unpriv_userdomain;
583 userdom_basic_networking($1_usertype)
585 ##############################
587 # User domain Local policy
590 # evolution and gnome-session try to create a netlink socket
591 dontaudit $1_t self:netlink_socket { create ioctl read getattr write setattr append bind connect getopt setopt shutdown };
592 dontaudit $1_t self:netlink_route_socket { create ioctl read getattr write setattr append bind connect getopt setopt shutdown nlmsg_read nlmsg_write };
593 allow $1_t self:netlink_kobject_uevent_socket create_socket_perms;
594 allow $1_t self:socket create_socket_perms;
596 allow $1_usertype unpriv_userdomain:fd use;
598 kernel_read_system_state($1_usertype)
599 kernel_read_network_state($1_usertype)
600 kernel_read_software_raid_state($1_usertype)
601 kernel_read_net_sysctls($1_usertype)
602 # Very permissive allowing every domain to see every type:
603 kernel_get_sysvipc_info($1_usertype)
604 # Find CDROM devices:
605 kernel_read_device_sysctls($1_usertype)
606 kernel_request_load_module($1_usertype)
608 corenet_udp_bind_generic_node($1_usertype)
609 corenet_udp_bind_generic_port($1_usertype)
611 dev_read_rand($1_usertype)
612 dev_write_sound($1_usertype)
613 dev_read_sound($1_usertype)
614 dev_read_sound_mixer($1_usertype)
615 dev_write_sound_mixer($1_usertype)
617 files_exec_etc_files($1_usertype)
618 files_search_locks($1_usertype)
619 # Check to see if cdrom is mounted
620 files_search_mnt($1_usertype)
621 # cjp: perhaps should cut back on file reads:
622 files_read_var_files($1_usertype)
623 files_read_var_symlinks($1_usertype)
624 files_read_generic_spool($1_usertype)
625 files_read_var_lib_files($1_usertype)
627 files_getattr_lost_found_dirs($1_usertype)
628 files_read_config_files($1_usertype)
629 fs_read_noxattr_fs_files($1_usertype)
630 fs_read_noxattr_fs_symlinks($1_usertype)
631 fs_rw_cgroup_files($1_usertype)
633 application_getattr_socket($1_usertype)
635 logging_send_syslog_msg($1_usertype)
636 logging_send_audit_msgs($1_usertype)
637 selinux_get_enforce_mode($1_usertype)
639 # cjp: some of this probably can be removed
640 selinux_get_fs_mount($1_usertype)
641 selinux_validate_context($1_usertype)
642 selinux_compute_access_vector($1_usertype)
643 selinux_compute_create_context($1_usertype)
644 selinux_compute_relabel_context($1_usertype)
645 selinux_compute_user_contexts($1_usertype)
648 storage_getattr_fixed_disk_dev($1_usertype)
650 auth_read_login_records($1_usertype)
651 auth_run_pam($1_t,$1_r)
652 auth_run_utempter($1_t,$1_r)
654 init_read_utmp($1_usertype)
656 seutil_read_file_contexts($1_usertype)
657 seutil_read_default_contexts($1_usertype)
658 seutil_run_newrole($1_t,$1_r)
659 seutil_exec_checkpolicy($1_t)
660 seutil_exec_setfiles($1_usertype)
661 # for when the network connection is killed
662 # this is needed when a login role can change
664 seutil_dontaudit_signal_newrole($1_t)
666 tunable_policy(`user_direct_mouse',`
667 dev_read_mouse($1_usertype)
670 tunable_policy(`user_ttyfile_stat',`
671 term_getattr_all_ttys($1_t)
675 alsa_read_rw_config($1_usertype)
676 alsa_manage_home_files($1_t)
677 alsa_relabel_home_files($1_t)
678 alsa_filetrans_named_content($1_t)
682 # Allow graphical boot to check battery lifespan
683 apm_stream_connect($1_usertype)
687 canna_stream_connect($1_usertype)
691 chrome_role($1_r, $1_usertype)
695 colord_read_lib_files($1_usertype)
699 dbus_system_bus_client($1_usertype)
701 allow $1_usertype $1_usertype:dbus send_msg;
704 avahi_dbus_chat($1_usertype)
708 policykit_dbus_chat($1_usertype)
712 bluetooth_dbus_chat($1_usertype)
716 consolekit_dbus_chat($1_usertype)
717 consolekit_read_log($1_usertype)
721 devicekit_dbus_chat($1_usertype)
722 devicekit_dbus_chat_power($1_usertype)
723 devicekit_dbus_chat_disk($1_usertype)
727 evolution_dbus_chat($1_usertype)
728 evolution_alarm_dbus_chat($1_usertype)
732 gnome_dbus_chat_gconfdefault($1_usertype)
736 hal_dbus_chat($1_usertype)
740 kde_dbus_chat_backlighthelper($1_usertype)
744 modemmanager_dbus_chat($1_usertype)
748 networkmanager_dbus_chat($1_usertype)
749 networkmanager_read_lib_files($1_usertype)
753 vpn_dbus_chat($1_usertype)
758 git_session_role($1_r, $1_usertype)
762 inetd_use_fds($1_usertype)
763 inetd_rw_tcp_sockets($1_usertype)
767 inn_read_config($1_usertype)
768 inn_read_news_lib($1_usertype)
769 inn_read_news_spool($1_usertype)
773 lircd_stream_connect($1_usertype)
777 locate_read_lib_files($1_usertype)
780 # for running depmod as part of the kernel packaging process
782 modutils_read_module_config($1_usertype)
786 mta_rw_spool($1_usertype)
787 mta_manage_queue($1_usertype)
788 mta_filetrans_home_content($1_usertype)
792 nsplugin_role($1_r, $1_usertype)
796 tunable_policy(`allow_user_mysql_connect',`
797 mysql_stream_connect($1_t)
802 oident_manage_user_content($1_t)
803 oident_relabel_user_content($1_t)
807 # to allow monitoring of pcmcia status
808 pcmcia_read_pid($1_usertype)
812 pcscd_read_pub_files($1_usertype)
813 pcscd_stream_connect($1_usertype)
817 tunable_policy(`allow_user_postgresql_connect',`
818 postgresql_stream_connect($1_usertype)
819 postgresql_tcp_connect($1_usertype)
824 resmgr_stream_connect($1_usertype)
828 rpc_dontaudit_getattr_exports($1_usertype)
829 rpc_manage_nfs_rw_content($1_usertype)
833 rpcbind_stream_connect($1_usertype)
837 samba_stream_connect_winbind($1_usertype)
841 sandbox_transition($1_usertype, $1_r)
845 seunshare_role_template($1, $1_r, $1_t)
849 slrnpull_search_spool($1_usertype)
854 #######################################
856 ## The template for creating a login user.
860 ## This template creates a user domain, types, and
861 ## rules for the user's tty, pty, home directories,
862 ## tmp, and tmpfs files.
865 ## <param name="userdomain_prefix">
867 ## The prefix of the user domain (e.g., user
868 ## is the prefix for user_t).
872 template(`userdom_login_user_template', `
874 class context contains;
877 userdom_base_user_template($1)
879 userdom_manage_home_role($1_r, $1_usertype)
881 userdom_manage_tmp_role($1_r, $1_usertype)
882 userdom_manage_tmpfs_role($1_r, $1_usertype)
884 ifelse(`$1',`unconfined',`',`
885 gen_tunable(allow_$1_exec_content, true)
887 tunable_policy(`allow_$1_exec_content',`
888 userdom_exec_user_tmp_files($1_usertype)
889 userdom_exec_user_home_content_files($1_usertype)
891 tunable_policy(`allow_$1_exec_content && use_nfs_home_dirs',`
892 fs_exec_nfs_files($1_usertype)
895 tunable_policy(`allow_$1_exec_content && use_samba_home_dirs',`
896 fs_exec_cifs_files($1_usertype)
900 userdom_change_password_template($1)
902 ##############################
904 # User domain Local policy
907 allow $1_t self:capability { setgid chown fowner };
908 dontaudit $1_t self:capability { sys_nice fsetid };
910 allow $1_t self:process ~{ setcurrent setexec setrlimit execmem execstack execheap };
911 dontaudit $1_t self:process setrlimit;
912 dontaudit $1_t self:netlink_route_socket { create ioctl read getattr write setattr append bind connect getopt setopt shutdown nlmsg_read nlmsg_write };
914 allow $1_t self:context contains;
916 kernel_dontaudit_read_system_state($1_usertype)
917 kernel_dontaudit_list_all_proc($1_usertype)
919 dev_read_sysfs($1_usertype)
920 dev_read_urand($1_usertype)
922 domain_use_interactive_fds($1_usertype)
923 # Command completion can fire hundreds of denials
924 domain_dontaudit_exec_all_entry_files($1_usertype)
926 files_dontaudit_list_default($1_usertype)
927 files_dontaudit_read_default_files($1_usertype)
929 files_getattr_lost_found_dirs($1_usertype)
931 fs_get_all_fs_quotas($1_usertype)
932 fs_getattr_all_fs($1_usertype)
933 fs_search_all($1_usertype)
934 fs_list_inotifyfs($1_usertype)
935 fs_rw_anon_inodefs_files($1_usertype)
937 auth_dontaudit_write_login_records($1_t)
940 application_exec_all($1_t)
941 # The library functions always try to open read-write first,
942 # then fall back to read-only if it fails.
943 init_dontaudit_rw_utmp($1_t)
945 # Stop warnings about access to /dev/console
946 init_dontaudit_use_fds($1_usertype)
947 init_dontaudit_use_script_fds($1_usertype)
949 libs_exec_lib_files($1_usertype)
951 logging_dontaudit_getattr_all_logs($1_usertype)
953 # for running TeX programs
954 miscfiles_read_tetex_data($1_usertype)
955 miscfiles_exec_tetex_data($1_usertype)
957 seutil_read_config($1_usertype)
960 cups_read_config($1_usertype)
961 cups_stream_connect($1_usertype)
962 cups_stream_connect_ptal($1_usertype)
966 kerberos_use($1_usertype)
967 kerberos_filetrans_home_content($1_usertype)
971 mta_dontaudit_read_spool_symlinks($1_usertype)
975 quota_dontaudit_getattr_db($1_usertype)
979 rpm_read_db($1_usertype)
980 rpm_dontaudit_manage_db($1_usertype)
981 rpm_read_cache($1_usertype)
985 oddjob_run_mkhomedir($1_t, $1_r)
989 #######################################
991 ## The template for creating a unprivileged login user.
995 ## This template creates a user domain, types, and
996 ## rules for the user's tty, pty, home directories,
997 ## tmp, and tmpfs files.
1000 ## <param name="userdomain_prefix">
1002 ## The prefix of the user domain (e.g., user
1003 ## is the prefix for user_t).
1007 template(`userdom_restricted_user_template',`
1009 attribute unpriv_userdomain;
1012 userdom_login_user_template($1)
1014 typeattribute $1_t unpriv_userdomain;
1015 domain_interactive_fd($1_t)
1017 allow $1_usertype self:netlink_kobject_uevent_socket create_socket_perms;
1018 dontaudit $1_usertype self:netlink_audit_socket create_socket_perms;
1020 ##############################
1026 loadkeys_run($1_t, $1_r)
1030 #######################################
1032 ## The template for creating a unprivileged xwindows login user.
1036 ## The template for creating a unprivileged xwindows login user.
1039 ## This template creates a user domain, types, and
1040 ## rules for the user's tty, pty, home directories,
1041 ## tmp, and tmpfs files.
1044 ## <param name="userdomain_prefix">
1046 ## The prefix of the user domain (e.g., user
1047 ## is the prefix for user_t).
1051 template(`userdom_restricted_xwindows_user_template',`
1053 userdom_restricted_user_template($1)
1055 ##############################
1060 auth_role($1_r, $1_t)
1061 auth_search_pam_console_data($1_usertype)
1062 auth_dontaudit_read_login_records($1_usertype)
1064 dev_read_sound($1_usertype)
1065 dev_write_sound($1_usertype)
1066 # gnome keyring wants to read this.
1067 dev_dontaudit_read_rand($1_usertype)
1068 # temporarily allow since openoffice requires this
1069 dev_read_rand($1_usertype)
1071 dev_read_video_dev($1_usertype)
1072 dev_write_video_dev($1_usertype)
1073 dev_rw_wireless($1_usertype)
1075 libs_dontaudit_setattr_lib_files($1_usertype)
1077 tunable_policy(`user_rw_noexattrfile',`
1079 dev_rw_generic_usb_dev($1_usertype)
1081 fs_manage_noxattr_fs_files($1_usertype)
1082 fs_manage_noxattr_fs_dirs($1_usertype)
1083 fs_manage_dos_dirs($1_usertype)
1084 fs_manage_dos_files($1_usertype)
1085 storage_raw_read_removable_device($1_usertype)
1086 storage_raw_write_removable_device($1_usertype)
1089 logging_send_syslog_msg($1_usertype)
1090 logging_dontaudit_send_audit_msgs($1_t)
1092 # Need to to this just so screensaver will work. Should be moved to screensaver domain
1093 logging_send_audit_msgs($1_t)
1094 selinux_get_enforce_mode($1_t)
1095 seutil_exec_restorecond($1_t)
1096 seutil_read_file_contexts($1_t)
1097 seutil_read_default_contexts($1_t)
1099 xserver_restricted_role($1_r, $1_t)
1102 alsa_read_rw_config($1_usertype)
1105 # cjp: needed by KDE apps
1108 gnome_read_usr_config($1_usertype)
1109 gnome_role_gkeyringd($1, $1_r, $1_usertype)
1110 # cjp: telepathy F15 bugs
1111 telepathy_role($1_r, $1_t, $1)
1115 dbus_role_template($1, $1_r, $1_usertype)
1116 dbus_system_bus_client($1_usertype)
1117 allow $1_usertype $1_usertype:dbus send_msg;
1120 abrt_dbus_chat($1_usertype)
1121 abrt_run_helper($1_usertype, $1_r)
1125 consolekit_dontaudit_read_log($1_usertype)
1126 consolekit_dbus_chat($1_usertype)
1130 cups_dbus_chat($1_usertype)
1131 cups_dbus_chat_config($1_usertype)
1135 devicekit_dbus_chat($1_usertype)
1136 devicekit_dbus_chat_disk($1_usertype)
1137 devicekit_dbus_chat_power($1_usertype)
1141 fprintd_dbus_chat($1_t)
1146 openoffice_role_template($1, $1_r, $1_usertype)
1150 policykit_role($1_r, $1_usertype)
1154 pulseaudio_role($1_r, $1_usertype)
1155 pulseaudio_filetrans_admin_home_content($1_usertype)
1156 pulseaudio_filetrans_home_content($1_usertype)
1160 rtkit_scheduled($1_usertype)
1164 setroubleshoot_dontaudit_stream_connect($1_t)
1168 udev_read_db($1_usertype)
1172 wm_role_template($1, $1_r, $1_t)
1176 #######################################
1178 ## The template for creating a unprivileged user roughly
1179 ## equivalent to a regular linux user.
1183 ## The template for creating a unprivileged user roughly
1184 ## equivalent to a regular linux user.
1187 ## This template creates a user domain, types, and
1188 ## rules for the user's tty, pty, home directories,
1189 ## tmp, and tmpfs files.
1192 ## <param name="userdomain_prefix">
1194 ## The prefix of the user domain (e.g., user
1195 ## is the prefix for user_t).
1199 template(`userdom_unpriv_user_template', `
1201 ##############################
1206 # Inherit rules for ordinary users.
1207 userdom_restricted_xwindows_user_template($1)
1208 userdom_common_user_template($1)
1210 ##############################
1215 # port access is audited even if dac would not have allowed it, so dontaudit it here
1216 # corenet_dontaudit_tcp_bind_all_reserved_ports($1_t)
1217 # Need the following rule to allow users to run vpnc
1218 corenet_tcp_bind_xserver_port($1_t)
1219 corenet_tcp_bind_generic_node($1_usertype)
1221 storage_rw_fuse($1_t)
1223 files_exec_usr_files($1_t)
1225 files_read_kernel_symbol_table($1_t)
1227 ifndef(`enable_mls',`
1228 fs_exec_noxattr($1_t)
1230 tunable_policy(`user_rw_noexattrfile',`
1231 fs_manage_noxattr_fs_files($1_t)
1232 fs_manage_noxattr_fs_dirs($1_t)
1234 storage_raw_read_removable_device($1_t)
1235 storage_raw_write_removable_device($1_t)
1237 storage_raw_read_removable_device($1_t)
1241 miscfiles_read_hwdata($1_usertype)
1243 # Allow users to run TCP servers (bind to ports and accept connection from
1244 # the same domain and outside users) disabling this forces FTP passive mode
1245 # and may change other protocols
1247 tunable_policy(`user_share_music',`
1248 corenet_tcp_bind_daap_port($1_usertype)
1251 tunable_policy(`user_tcp_server',`
1252 corenet_tcp_bind_all_unreserved_ports($1_usertype)
1255 tunable_policy(`user_setrlimit',`
1256 allow $1_usertype self:process setrlimit;
1260 cdrecord_role($1_r, $1_t)
1264 cron_role($1_r, $1_t)
1268 games_rw_data($1_usertype)
1272 gpg_role($1_r, $1_usertype)
1276 gnomeclock_dbus_chat($1_t)
1280 gpm_stream_connect($1_usertype)
1284 execmem_role_template($1, $1_r, $1_t)
1288 java_role_template($1, $1_r, $1_t)
1292 mono_role_template($1, $1_r, $1_t)
1296 mount_run_fusermount($1_t, $1_r)
1297 mount_read_pid_files($1_t)
1301 wine_role_template($1, $1_r, $1_t)
1305 postfix_run_postdrop($1_t, $1_r)
1308 # Run pppd in pppd_t by default for user
1310 ppp_run_cond($1_t, $1_r)
1314 #######################################
1316 ## The template for creating an administrative user.
1320 ## This template creates a user domain, types, and
1321 ## rules for the user's tty, pty, home directories,
1322 ## tmp, and tmpfs files.
1325 ## The privileges given to administrative users are:
1327 ## <li>Raw disk access</li>
1328 ## <li>Set all sysctls</li>
1329 ## <li>All kernel ring buffer controls</li>
1330 ## <li>Create, read, write, and delete all files but shadow</li>
1331 ## <li>Manage source and binary format SELinux policy</li>
1332 ## <li>Run insmod</li>
1336 ## <param name="userdomain_prefix">
1338 ## The prefix of the user domain (e.g., sysadm
1339 ## is the prefix for sysadm_t).
1343 template(`userdom_admin_user_template',`
1345 attribute admindomain;
1346 class passwd { passwd chfn chsh rootok crontab };
1349 ##############################
1354 # Inherit rules for ordinary users.
1355 userdom_login_user_template($1)
1356 userdom_common_user_template($1)
1358 domain_obj_id_change_exemption($1_t)
1359 role system_r types $1_t;
1361 typeattribute $1_t admindomain;
1363 ifdef(`direct_sysadm_daemon',`
1364 domain_system_change_exemption($1_t)
1367 ##############################
1372 allow $1_t self:capability ~{ sys_module audit_control audit_write };
1373 allow $1_t self:capability2 syslog;
1374 allow $1_t self:process { setexec setfscreate };
1375 allow $1_t self:netlink_audit_socket nlmsg_readpriv;
1376 allow $1_t self:tun_socket create;
1377 # Set password information for other users.
1378 allow $1_t self:passwd { passwd chfn chsh };
1379 # Skip authentication when pam_rootok is specified.
1380 allow $1_t self:passwd rootok;
1382 # Manipulate other users crontab.
1383 allow $1_t self:passwd crontab;
1385 kernel_read_software_raid_state($1_t)
1386 kernel_getattr_core_if($1_t)
1387 kernel_getattr_message_if($1_t)
1388 kernel_change_ring_buffer_level($1_t)
1389 kernel_clear_ring_buffer($1_t)
1390 kernel_read_ring_buffer($1_t)
1391 kernel_get_sysvipc_info($1_t)
1392 kernel_rw_all_sysctls($1_t)
1393 # signal unlabeled processes:
1394 kernel_kill_unlabeled($1_t)
1395 kernel_signal_unlabeled($1_t)
1396 kernel_sigstop_unlabeled($1_t)
1397 kernel_signull_unlabeled($1_t)
1398 kernel_sigchld_unlabeled($1_t)
1401 corenet_tcp_bind_generic_port($1_t)
1402 # allow setting up tunnels
1403 corenet_rw_tun_tap_dev($1_t)
1405 dev_getattr_generic_blk_files($1_t)
1406 dev_getattr_generic_chr_files($1_t)
1408 dev_getattr_mtrr_dev($1_t)
1409 # Allow MAKEDEV to work
1410 dev_create_all_blk_files($1_t)
1411 dev_create_all_chr_files($1_t)
1412 dev_delete_all_blk_files($1_t)
1413 dev_delete_all_chr_files($1_t)
1414 dev_rename_all_blk_files($1_t)
1415 dev_rename_all_chr_files($1_t)
1416 dev_create_generic_symlinks($1_t)
1417 dev_rw_generic_usb_dev($1_t)
1420 domain_setpriority_all_domains($1_t)
1421 domain_read_all_domains_state($1_t)
1422 domain_getattr_all_domains($1_t)
1423 domain_getcap_all_domains($1_t)
1424 domain_dontaudit_ptrace_all_domains($1_t)
1425 # signal all domains:
1426 domain_kill_all_domains($1_t)
1427 domain_signal_all_domains($1_t)
1428 domain_signull_all_domains($1_t)
1429 domain_sigstop_all_domains($1_t)
1430 domain_sigstop_all_domains($1_t)
1431 domain_sigchld_all_domains($1_t)
1433 domain_getattr_all_sockets($1_t)
1434 domain_dontaudit_getattr_all_sockets($1_t)
1436 files_exec_usr_src_files($1_t)
1438 fs_getattr_all_fs($1_t)
1439 fs_getattr_all_files($1_t)
1441 fs_set_all_quotas($1_t)
1442 fs_exec_noxattr($1_t)
1444 storage_raw_read_removable_device($1_t)
1445 storage_raw_write_removable_device($1_t)
1446 storage_dontaudit_read_fixed_disk($1_t)
1448 term_use_all_inherited_terms($1_t)
1449 term_use_unallocated_ttys($1_t)
1451 auth_getattr_shadow($1_t)
1452 # Manage almost all files
1453 files_manage_non_security_files($1_t)
1454 # Relabel almost all files
1455 files_relabel_non_security_files($1_t)
1459 logging_send_syslog_msg($1_t)
1462 modutils_domtrans_insmod($1_t)
1463 modutils_domtrans_depmod($1_t)
1466 # The following rule is temporary until such time that a complete
1467 # policy management infrastructure is in place so that an administrator
1468 # cannot directly manipulate policy files with arbitrary programs.
1469 seutil_manage_src_policy($1_t)
1470 # Violates the goal of limiting write access to checkpolicy.
1471 # But presently necessary for installing the file_contexts file.
1472 seutil_manage_bin_policy($1_t)
1474 systemd_config_all_services($1_t)
1476 userdom_manage_user_home_content_dirs($1_t)
1477 userdom_manage_user_home_content_files($1_t)
1478 userdom_manage_user_home_content_symlinks($1_t)
1479 userdom_manage_user_home_content_pipes($1_t)
1480 userdom_manage_user_home_content_sockets($1_t)
1481 userdom_user_home_dir_filetrans_user_home_content($1_t, { dir file lnk_file fifo_file sock_file })
1483 tunable_policy(`user_rw_noexattrfile',`
1484 fs_manage_noxattr_fs_files($1_t)
1485 fs_manage_noxattr_fs_dirs($1_t)
1487 fs_read_noxattr_fs_files($1_t)
1491 postgresql_unconfined($1_t)
1495 userhelper_exec($1_t)
1499 ########################################
1501 ## Allow user to run as a secadm
1505 ## Create objects in a user home directory
1506 ## with an automatic type transition to
1507 ## a specified private type.
1510 ## This is a templated interface, and should only
1511 ## be called from a per-userdomain template.
1514 ## <param name="domain">
1516 ## Domain allowed access.
1519 ## <param name="role">
1521 ## The role of the object to create.
1525 template(`userdom_security_admin_template',`
1526 allow $1 self:capability { dac_read_search dac_override };
1528 corecmd_exec_shell($1)
1530 domain_obj_id_change_exemption($1)
1532 dev_relabel_all_dev_nodes($1)
1534 files_create_boot_flag($1)
1535 files_create_default_dir($1)
1536 files_root_filetrans_default($1, dir)
1538 # Necessary for managing /boot/efi
1539 fs_manage_dos_files($1)
1541 mls_process_read_up($1)
1542 mls_file_read_all_levels($1)
1543 mls_file_upgrade($1)
1544 mls_file_downgrade($1)
1546 selinux_set_enforce_mode($1)
1547 selinux_set_all_booleans($1)
1548 selinux_set_parameters($1)
1549 selinux_read_policy($1)
1551 files_relabel_all_files($1)
1552 auth_relabel_shadow($1)
1556 logging_send_syslog_msg($1)
1557 logging_read_audit_log($1)
1558 logging_read_generic_logs($1)
1559 logging_read_audit_config($1)
1561 seutil_manage_bin_policy($1)
1562 seutil_manage_default_contexts($1)
1563 seutil_manage_file_contexts($1)
1564 seutil_manage_module_store($1)
1565 seutil_manage_config($1)
1566 seutil_run_checkpolicy($1,$2)
1567 seutil_run_loadpolicy($1,$2)
1568 seutil_run_semanage($1,$2)
1569 seutil_run_setsebool($1,$2)
1570 seutil_run_setfiles($1, $2)
1572 seutil_manage_bin_policy($1)
1573 seutil_manage_default_contexts($1)
1574 seutil_manage_file_contexts($1)
1575 seutil_manage_module_store($1)
1576 seutil_manage_config($1)
1583 consoletype_exec($1)
1591 ipsec_run_setkey($1,$2)
1595 netlabel_run_mgmt($1,$2)
1603 ########################################
1605 ## Make the specified type usable in a
1606 ## user home directory.
1608 ## <param name="type">
1610 ## Type to be used as a file in the
1611 ## user home directory.
1615 interface(`userdom_user_home_content',`
1618 attribute user_home_type;
1621 allow $1 user_home_t:filesystem associate;
1623 ubac_constrained($1)
1625 files_poly_member($1)
1626 typeattribute $1 user_home_type;
1629 ########################################
1631 ## Make the specified type usable in a
1632 ## generic temporary directory.
1634 ## <param name="type">
1636 ## Type to be used as a file in the
1637 ## generic temporary directory.
1641 interface(`userdom_user_tmp_content',`
1643 attribute user_tmp_type;
1646 typeattribute $1 user_tmp_type;
1649 ubac_constrained($1)
1652 ########################################
1654 ## Make the specified type usable in a
1655 ## generic tmpfs_t directory.
1657 ## <param name="type">
1659 ## Type to be used as a file in the
1660 ## generic temporary directory.
1664 interface(`userdom_user_tmpfs_content',`
1666 attribute user_tmpfs_type;
1669 typeattribute $1 user_tmpfs_type;
1671 files_tmpfs_file($1)
1672 ubac_constrained($1)
1675 ########################################
1677 ## Allow domain to attach to TUN devices created by administrative users.
1679 ## <param name="domain">
1681 ## Domain allowed access.
1685 interface(`userdom_attach_admin_tun_iface',`
1687 attribute admindomain;
1690 allow $1 admindomain:tun_socket relabelfrom;
1691 allow $1 self:tun_socket relabelto;
1694 ########################################
1696 ## Set the attributes of a user pty.
1698 ## <param name="domain">
1700 ## Domain allowed access.
1704 interface(`userdom_setattr_user_ptys',`
1709 allow $1 user_devpts_t:chr_file setattr_chr_file_perms;
1712 ########################################
1714 ## Create a user pty.
1716 ## <param name="domain">
1718 ## Domain allowed access.
1722 interface(`userdom_create_user_pty',`
1727 term_create_pty($1, user_devpts_t)
1730 ########################################
1732 ## Get the attributes of user home directories.
1734 ## <param name="domain">
1736 ## Domain allowed access.
1740 interface(`userdom_getattr_user_home_dirs',`
1742 type user_home_dir_t;
1745 allow $1 user_home_dir_t:dir getattr_dir_perms;
1746 files_search_home($1)
1749 ########################################
1751 ## Do not audit attempts to get the attributes of user home directories.
1753 ## <param name="domain">
1755 ## Domain to not audit.
1759 interface(`userdom_dontaudit_getattr_user_home_dirs',`
1761 type user_home_dir_t;
1764 dontaudit $1 user_home_dir_t:dir getattr_dir_perms;
1767 ########################################
1769 ## Search user home directories.
1771 ## <param name="domain">
1773 ## Domain allowed access.
1777 interface(`userdom_search_user_home_dirs',`
1779 type user_home_dir_t;
1782 allow $1 user_home_dir_t:dir search_dir_perms;
1783 allow $1 user_home_dir_t:lnk_file read_lnk_file_perms;
1784 files_search_home($1)
1787 ########################################
1789 ## Do not audit attempts to search user home directories.
1793 ## Do not audit attempts to search user home directories.
1794 ## This will supress SELinux denial messages when the specified
1795 ## domain is denied the permission to search these directories.
1798 ## <param name="domain">
1800 ## Domain to not audit.
1803 ## <infoflow type="none"/>
1805 interface(`userdom_dontaudit_search_user_home_dirs',`
1807 type user_home_dir_t;
1810 dontaudit $1 user_home_dir_t:dir search_dir_perms;
1813 ########################################
1815 ## List user home directories.
1817 ## <param name="domain">
1819 ## Domain allowed access.
1823 interface(`userdom_list_user_home_dirs',`
1825 type user_home_dir_t;
1828 allow $1 user_home_dir_t:dir list_dir_perms;
1829 files_search_home($1)
1831 tunable_policy(`use_nfs_home_dirs',`
1835 tunable_policy(`use_samba_home_dirs',`
1840 ########################################
1842 ## Do not audit attempts to list user home subdirectories.
1844 ## <param name="domain">
1846 ## Domain to not audit.
1850 interface(`userdom_dontaudit_list_user_home_dirs',`
1852 type user_home_dir_t;
1856 dontaudit $1 user_home_dir_t:dir list_dir_perms;
1857 dontaudit $1 user_home_t:dir list_dir_perms;
1860 ########################################
1862 ## Create user home directories.
1864 ## <param name="domain">
1866 ## Domain allowed access.
1870 interface(`userdom_create_user_home_dirs',`
1872 type user_home_dir_t;
1875 allow $1 user_home_dir_t:dir create_dir_perms;
1878 ########################################
1880 ## Create user home directories.
1882 ## <param name="domain">
1884 ## Domain allowed access.
1888 interface(`userdom_manage_user_home_dirs',`
1890 type user_home_dir_t;
1893 allow $1 user_home_dir_t:dir manage_dir_perms;
1896 ########################################
1898 ## Relabel to user home directories.
1900 ## <param name="domain">
1902 ## Domain allowed access.
1906 interface(`userdom_relabelto_user_home_dirs',`
1908 type user_home_dir_t;
1911 allow $1 user_home_dir_t:dir relabelto;
1915 ########################################
1917 ## Relabel to user home files.
1919 ## <param name="domain">
1921 ## Domain allowed access.
1925 interface(`userdom_relabelto_user_home_files',`
1930 allow $1 user_home_t:file relabelto;
1932 ########################################
1934 ## Relabel user home files.
1936 ## <param name="domain">
1938 ## Domain allowed access.
1942 interface(`userdom_relabel_user_home_files',`
1947 allow $1 user_home_t:file relabel_file_perms;
1950 ########################################
1952 ## Create directories in the home dir root with
1953 ## the user home directory type.
1955 ## <param name="domain">
1957 ## Domain allowed access.
1961 interface(`userdom_home_filetrans_user_home_dir',`
1963 type user_home_dir_t;
1966 files_home_filetrans($1, user_home_dir_t, dir)
1969 ########################################
1971 ## Do a domain transition to the specified
1972 ## domain when executing a program in the
1973 ## user home directory.
1977 ## Do a domain transition to the specified
1978 ## domain when executing a program in the
1979 ## user home directory.
1982 ## No interprocess communication (signals, pipes,
1983 ## etc.) is provided by this interface since
1984 ## the domains are not owned by this module.
1987 ## <param name="source_domain">
1989 ## Domain allowed to transition.
1992 ## <param name="target_domain">
1994 ## Domain to transition to.
1998 interface(`userdom_user_home_domtrans',`
2000 type user_home_dir_t, user_home_t;
2003 domain_auto_trans($1, user_home_t, $2)
2004 allow $1 user_home_dir_t:dir search_dir_perms;
2005 files_search_home($1)
2008 ########################################
2010 ## Do not audit attempts to search user home content directories.
2012 ## <param name="domain">
2014 ## Domain to not audit.
2018 interface(`userdom_dontaudit_search_user_home_content',`
2023 dontaudit $1 user_home_t:dir search_dir_perms;
2024 fs_dontaudit_list_nfs($1)
2025 fs_dontaudit_list_cifs($1)
2028 ########################################
2030 ## List contents of users home directory.
2032 ## <param name="domain">
2034 ## Domain allowed access.
2038 interface(`userdom_list_user_home_content',`
2040 type user_home_dir_t;
2041 attribute user_home_type;
2045 allow $1 { user_home_dir_t user_home_type }:dir list_dir_perms;
2048 ########################################
2050 ## Create, read, write, and delete directories
2051 ## in a user home subdirectory.
2053 ## <param name="domain">
2055 ## Domain allowed access.
2059 interface(`userdom_manage_user_home_content_dirs',`
2061 type user_home_dir_t, user_home_t;
2064 manage_dirs_pattern($1, { user_home_dir_t user_home_t }, user_home_t)
2065 files_search_home($1)
2068 ########################################
2070 ## Delete directories in a user home subdirectory.
2072 ## <param name="domain">
2074 ## Domain allowed access.
2078 interface(`userdom_delete_user_home_content_dirs',`
2083 allow $1 user_home_t:dir delete_dir_perms;
2086 ########################################
2088 ## Delete all directories in a user home subdirectory.
2090 ## <param name="domain">
2092 ## Domain allowed access.
2096 interface(`userdom_delete_all_user_home_content_dirs',`
2098 attribute user_home_type;
2101 allow $1 user_home_type:dir delete_dir_perms;
2104 ########################################
2106 ## Set the attributes of user home files.
2108 ## <param name="domain">
2110 ## Domain allowed access.
2115 interface(`userdom_setattr_user_home_content_files',`
2120 allow $1 user_home_t:file setattr;
2123 ########################################
2125 ## Do not audit attempts to set the
2126 ## attributes of user home files.
2128 ## <param name="domain">
2130 ## Domain to not audit.
2134 interface(`userdom_dontaudit_setattr_user_home_content_files',`
2139 dontaudit $1 user_home_t:file setattr_file_perms;
2142 ########################################
2144 ## Set the attributes of all user home directories.
2146 ## <param name="domain">
2148 ## Domain allowed access.
2153 interface(`userdom_setattr_all_user_home_content_dirs',`
2155 attribute user_home_type;
2158 allow $1 user_home_type:dir setattr_dir_perms;
2161 ########################################
2163 ## Mmap user home files.
2165 ## <param name="domain">
2167 ## Domain allowed access.
2171 interface(`userdom_mmap_user_home_content_files',`
2173 type user_home_dir_t, user_home_t;
2176 mmap_files_pattern($1, { user_home_dir_t user_home_t }, user_home_t)
2177 files_search_home($1)
2180 ########################################
2182 ## Read user home files.
2184 ## <param name="domain">
2186 ## Domain allowed access.
2190 interface(`userdom_read_user_home_content_files',`
2192 type user_home_dir_t, user_home_t;
2195 list_dirs_pattern($1, { user_home_dir_t user_home_t }, { user_home_dir_t user_home_t })
2196 read_files_pattern($1, { user_home_dir_t user_home_t }, user_home_t)
2197 files_search_home($1)
2200 ########################################
2202 ## Do not audit attempts to getattr user home files.
2204 ## <param name="domain">
2206 ## Domain to not audit.
2210 interface(`userdom_dontaudit_getattr_user_home_content',`
2212 attribute user_home_type;
2215 dontaudit $1 user_home_type:dir getattr;
2216 dontaudit $1 user_home_type:file getattr;
2219 ########################################
2221 ## Do not audit attempts to read user home files.
2223 ## <param name="domain">
2225 ## Domain to not audit.
2229 interface(`userdom_dontaudit_read_user_home_content_files',`
2231 attribute user_home_type;
2232 type user_home_dir_t;
2235 dontaudit $1 user_home_dir_t:dir list_dir_perms;
2236 dontaudit $1 user_home_type:dir list_dir_perms;
2237 dontaudit $1 user_home_type:file read_file_perms;
2238 dontaudit $1 user_home_type:lnk_file read_lnk_file_perms;
2241 ########################################
2243 ## Do not audit attempts to append user home files.
2245 ## <param name="domain">
2247 ## Domain to not audit.
2251 interface(`userdom_dontaudit_append_user_home_content_files',`
2256 dontaudit $1 user_home_t:file append_file_perms;
2259 ########################################
2261 ## Do not audit attempts to write user home files.
2263 ## <param name="domain">
2265 ## Domain to not audit.
2269 interface(`userdom_dontaudit_write_user_home_content_files',`
2274 dontaudit $1 user_home_t:file write_file_perms;
2277 ########################################
2279 ## Delete files in a user home subdirectory.
2281 ## <param name="domain">
2283 ## Domain allowed access.
2287 interface(`userdom_delete_user_home_content_files',`
2292 allow $1 user_home_t:file delete_file_perms;
2295 ########################################
2297 ## Delete all files in a user home subdirectory.
2299 ## <param name="domain">
2301 ## Domain allowed access.
2305 interface(`userdom_delete_all_user_home_content_files',`
2307 attribute user_home_type;
2310 allow $1 user_home_type:file delete_file_perms;
2313 ########################################
2315 ## Delete sock files in a user home subdirectory.
2317 ## <param name="domain">
2319 ## Domain allowed access.
2323 interface(`userdom_delete_user_home_content_sock_files',`
2328 allow $1 user_home_t:sock_file delete_file_perms;
2331 ########################################
2333 ## Delete all sock files in a user home subdirectory.
2335 ## <param name="domain">
2337 ## Domain allowed access.
2341 interface(`userdom_delete_all_user_home_content_sock_files',`
2343 attribute user_home_type;
2346 allow $1 user_home_type:sock_file delete_file_perms;
2349 ########################################
2351 ## Do not audit attempts to write user home files.
2353 ## <param name="domain">
2355 ## Domain to not audit.
2359 interface(`userdom_dontaudit_relabel_user_home_content_files',`
2364 dontaudit $1 user_home_t:file relabel_file_perms;
2367 ########################################
2369 ## Read user home subdirectory symbolic links.
2371 ## <param name="domain">
2373 ## Domain allowed access.
2377 interface(`userdom_read_user_home_content_symlinks',`
2379 type user_home_dir_t, user_home_t;
2382 allow $1 { user_home_dir_t user_home_t }:lnk_file read_lnk_file_perms;
2385 ########################################
2387 ## Execute user home files.
2389 ## <param name="domain">
2391 ## Domain allowed access.
2396 interface(`userdom_exec_user_home_content_files',`
2398 type user_home_dir_t;
2399 attribute user_home_type;
2402 files_search_home($1)
2403 exec_files_pattern($1, { user_home_dir_t user_home_type }, user_home_type)
2404 dontaudit $1 user_home_type:sock_file execute;
2407 ########################################
2409 ## Do not audit attempts to execute user home files.
2411 ## <param name="domain">
2413 ## Domain to not audit.
2417 interface(`userdom_dontaudit_exec_user_home_content_files',`
2422 dontaudit $1 user_home_t:file exec_file_perms;
2425 ########################################
2427 ## Create, read, write, and delete files
2428 ## in a user home subdirectory.
2430 ## <param name="domain">
2432 ## Domain allowed access.
2436 interface(`userdom_manage_user_home_content_files',`
2438 type user_home_dir_t, user_home_t;
2441 manage_files_pattern($1, user_home_t, user_home_t)
2442 allow $1 user_home_dir_t:dir search_dir_perms;
2443 files_search_home($1)
2446 ########################################
2448 ## Do not audit attempts to create, read, write, and delete directories
2449 ## in a user home subdirectory.
2451 ## <param name="domain">
2453 ## Domain to not audit.
2457 interface(`userdom_dontaudit_manage_user_home_content_dirs',`
2459 type user_home_dir_t, user_home_t;
2462 dontaudit $1 user_home_t:dir manage_dir_perms;
2465 ########################################
2467 ## Create, read, write, and delete symbolic links
2468 ## in a user home subdirectory.
2470 ## <param name="domain">
2472 ## Domain allowed access.
2476 interface(`userdom_manage_user_home_content_symlinks',`
2478 type user_home_dir_t, user_home_t;
2481 manage_lnk_files_pattern($1, user_home_t, user_home_t)
2482 allow $1 user_home_dir_t:dir search_dir_perms;
2483 files_search_home($1)
2486 ########################################
2488 ## Delete symbolic links in a user home directory.
2490 ## <param name="domain">
2492 ## Domain allowed access.
2496 interface(`userdom_delete_user_home_content_symlinks',`
2501 allow $1 user_home_t:lnk_file delete_lnk_file_perms;
2504 ########################################
2506 ## Delete all symbolic links in a user home directory.
2508 ## <param name="domain">
2510 ## Domain allowed access.
2514 interface(`userdom_delete_all_user_home_content_symlinks',`
2516 attribute user_home_type;
2519 allow $1 user_home_type:lnk_file delete_lnk_file_perms;
2522 ########################################
2524 ## Create, read, write, and delete named pipes
2525 ## in a user home subdirectory.
2527 ## <param name="domain">
2529 ## Domain allowed access.
2533 interface(`userdom_manage_user_home_content_pipes',`
2535 type user_home_dir_t, user_home_t;
2538 manage_fifo_files_pattern($1, user_home_t, user_home_t)
2539 allow $1 user_home_dir_t:dir search_dir_perms;
2540 files_search_home($1)
2543 ########################################
2545 ## Create, read, write, and delete named sockets
2546 ## in a user home subdirectory.
2548 ## <param name="domain">
2550 ## Domain allowed access.
2554 interface(`userdom_manage_user_home_content_sockets',`
2556 type user_home_dir_t, user_home_t;
2559 allow $1 user_home_dir_t:dir search_dir_perms;
2560 manage_sock_files_pattern($1, user_home_t, user_home_t)
2561 files_search_home($1)
2564 ########################################
2566 ## Create objects in a user home directory
2567 ## with an automatic type transition to
2568 ## a specified private type.
2570 ## <param name="domain">
2572 ## Domain allowed access.
2575 ## <param name="private_type">
2577 ## The type of the object to create.
2580 ## <param name="object_class">
2582 ## The class of the object to be created.
2586 interface(`userdom_user_home_dir_filetrans',`
2588 type user_home_dir_t;
2591 filetrans_pattern($1, user_home_dir_t, $2, $3, $4)
2592 files_search_home($1)
2595 ########################################
2597 ## Create objects in a user home directory
2598 ## with an automatic type transition to
2599 ## a specified private type.
2601 ## <param name="domain">
2603 ## Domain allowed access.
2606 ## <param name="private_type">
2608 ## The type of the object to create.
2611 ## <param name="object_class">
2613 ## The class of the object to be created.
2617 interface(`userdom_user_home_content_filetrans',`
2619 type user_home_dir_t, user_home_t;
2622 filetrans_pattern($1, user_home_t, $2, $3)
2623 allow $1 user_home_dir_t:dir search_dir_perms;
2624 files_search_home($1)
2627 ########################################
2629 ## Create objects in a user home directory
2630 ## with an automatic type transition to
2631 ## the user home file type.
2633 ## <param name="domain">
2635 ## Domain allowed access.
2638 ## <param name="object_class">
2640 ## The class of the object to be created.
2644 interface(`userdom_user_home_dir_filetrans_user_home_content',`
2646 type user_home_dir_t, user_home_t;
2649 filetrans_pattern($1, user_home_dir_t, user_home_t, $2)
2650 files_search_home($1)
2653 ########################################
2655 ## Write to user temporary named sockets.
2657 ## <param name="domain">
2659 ## Domain allowed access.
2663 interface(`userdom_write_user_tmp_sockets',`
2668 allow $1 user_tmp_t:sock_file write_sock_file_perms;
2669 files_search_tmp($1)
2672 ########################################
2674 ## List user temporary directories.
2676 ## <param name="domain">
2678 ## Domain allowed access.
2682 interface(`userdom_list_user_tmp',`
2687 allow $1 user_tmp_t:dir list_dir_perms;
2688 files_search_tmp($1)
2691 ########################################
2693 ## Do not audit attempts to list user
2694 ## temporary directories.
2696 ## <param name="domain">
2698 ## Domain to not audit.
2702 interface(`userdom_dontaudit_list_user_tmp',`
2707 dontaudit $1 user_tmp_t:dir list_dir_perms;
2710 ########################################
2712 ## Do not audit attempts to manage users
2713 ## temporary directories.
2715 ## <param name="domain">
2717 ## Domain to not audit.
2721 interface(`userdom_dontaudit_manage_user_tmp_dirs',`
2726 dontaudit $1 user_tmp_t:dir manage_dir_perms;
2729 ########################################
2731 ## Read user temporary files.
2733 ## <param name="domain">
2735 ## Domain allowed access.
2739 interface(`userdom_read_user_tmp_files',`
2744 read_files_pattern($1, user_tmp_t, user_tmp_t)
2745 allow $1 user_tmp_t:dir list_dir_perms;
2746 files_search_tmp($1)
2749 ########################################
2751 ## Do not audit attempts to read users
2754 ## <param name="domain">
2756 ## Domain to not audit.
2760 interface(`userdom_dontaudit_read_user_tmp_files',`
2765 dontaudit $1 user_tmp_t:file read_inherited_file_perms;
2768 ########################################
2770 ## Do not audit attempts to append users
2773 ## <param name="domain">
2775 ## Domain to not audit.
2779 interface(`userdom_dontaudit_append_user_tmp_files',`
2784 dontaudit $1 user_tmp_t:file append_file_perms;
2787 ########################################
2789 ## Read and write user temporary files.
2791 ## <param name="domain">
2793 ## Domain allowed access.
2797 interface(`userdom_rw_user_tmp_files',`
2802 allow $1 user_tmp_t:dir list_dir_perms;
2803 rw_files_pattern($1, user_tmp_t, user_tmp_t)
2804 files_search_tmp($1)
2807 ########################################
2809 ## Do not audit attempts to manage users
2812 ## <param name="domain">
2814 ## Domain to not audit.
2818 interface(`userdom_dontaudit_manage_user_tmp_files',`
2823 dontaudit $1 user_tmp_t:file manage_file_perms;
2826 ########################################
2828 ## Read user temporary symbolic links.
2830 ## <param name="domain">
2832 ## Domain allowed access.
2836 interface(`userdom_read_user_tmp_symlinks',`
2841 read_lnk_files_pattern($1, user_tmp_t, user_tmp_t)
2842 allow $1 user_tmp_t:dir list_dir_perms;
2843 files_search_tmp($1)
2846 ########################################
2848 ## Create, read, write, and delete user
2849 ## temporary directories.
2851 ## <param name="domain">
2853 ## Domain allowed access.
2857 interface(`userdom_manage_user_tmp_dirs',`
2862 manage_dirs_pattern($1, user_tmp_t, user_tmp_t)
2863 files_search_tmp($1)
2866 ########################################
2868 ## Create, read, write, and delete user
2871 ## <param name="domain">
2873 ## Domain allowed access.
2877 interface(`userdom_manage_user_tmp_files',`
2882 manage_files_pattern($1, user_tmp_t, user_tmp_t)
2883 files_search_tmp($1)
2886 ########################################
2888 ## Create, read, write, and delete user
2889 ## temporary symbolic links.
2891 ## <param name="domain">
2893 ## Domain allowed access.
2897 interface(`userdom_manage_user_tmp_symlinks',`
2902 manage_lnk_files_pattern($1, user_tmp_t, user_tmp_t)
2903 files_search_tmp($1)
2906 ########################################
2908 ## Create, read, write, and delete user
2909 ## temporary named pipes.
2911 ## <param name="domain">
2913 ## Domain allowed access.
2917 interface(`userdom_manage_user_tmp_pipes',`
2922 manage_fifo_files_pattern($1, user_tmp_t, user_tmp_t)
2923 files_search_tmp($1)
2926 ########################################
2928 ## Create, read, write, and delete user
2929 ## temporary named sockets.
2931 ## <param name="domain">
2933 ## Domain allowed access.
2937 interface(`userdom_manage_user_tmp_sockets',`
2942 manage_sock_files_pattern($1, user_tmp_t, user_tmp_t)
2943 files_search_tmp($1)
2946 ########################################
2948 ## Create objects in a user temporary directory
2949 ## with an automatic type transition to
2950 ## a specified private type.
2952 ## <param name="domain">
2954 ## Domain allowed access.
2957 ## <param name="private_type">
2959 ## The type of the object to create.
2962 ## <param name="object_class">
2964 ## The class of the object to be created.
2968 interface(`userdom_user_tmp_filetrans',`
2973 filetrans_pattern($1, user_tmp_t, $2, $3)
2974 files_search_tmp($1)
2977 ########################################
2979 ## Create objects in the temporary directory
2980 ## with an automatic type transition to
2981 ## the user temporary type.
2983 ## <param name="domain">
2985 ## Domain allowed access.
2988 ## <param name="object_class">
2990 ## The class of the object to be created.
2994 interface(`userdom_tmp_filetrans_user_tmp',`
2999 files_tmp_filetrans($1, user_tmp_t, $2)
3002 ########################################
3004 ## Read user tmpfs files.
3006 ## <param name="domain">
3008 ## Domain allowed access.
3012 interface(`userdom_read_user_tmpfs_files',`
3017 read_files_pattern($1, user_tmpfs_t, user_tmpfs_t)
3018 read_lnk_files_pattern($1, user_tmpfs_t, user_tmpfs_t)
3019 allow $1 user_tmpfs_t:dir list_dir_perms;
3023 ########################################
3025 ## Read/Write user tmpfs files.
3027 ## <param name="domain">
3029 ## Domain allowed access.
3033 interface(`userdom_rw_user_tmpfs_files',`
3038 rw_files_pattern($1, user_tmpfs_t, user_tmpfs_t)
3039 read_lnk_files_pattern($1, user_tmpfs_t, user_tmpfs_t)
3040 allow $1 user_tmpfs_t:dir list_dir_perms;
3044 ########################################
3046 ## Get the attributes of a user domain tty.
3048 ## <param name="domain">
3050 ## Domain allowed access.
3054 interface(`userdom_getattr_user_ttys',`
3056 type user_tty_device_t;
3059 allow $1 user_tty_device_t:chr_file getattr_chr_file_perms;
3062 ########################################
3064 ## Do not audit attempts to get the attributes of a user domain tty.
3066 ## <param name="domain">
3068 ## Domain to not audit.
3072 interface(`userdom_dontaudit_getattr_user_ttys',`
3074 type user_tty_device_t;
3077 dontaudit $1 user_tty_device_t:chr_file getattr_chr_file_perms;
3080 ########################################
3082 ## Set the attributes of a user domain tty.
3084 ## <param name="domain">
3086 ## Domain allowed access.
3090 interface(`userdom_setattr_user_ttys',`
3092 type user_tty_device_t;
3095 allow $1 user_tty_device_t:chr_file setattr_chr_file_perms;
3098 ########################################
3100 ## Do not audit attempts to set the attributes of a user domain tty.
3102 ## <param name="domain">
3104 ## Domain to not audit.
3108 interface(`userdom_dontaudit_setattr_user_ttys',`
3110 type user_tty_device_t;
3113 dontaudit $1 user_tty_device_t:chr_file setattr_chr_file_perms;
3116 ########################################
3118 ## Read and write a user domain tty.
3120 ## <param name="domain">
3122 ## Domain allowed access.
3126 interface(`userdom_use_user_ttys',`
3128 type user_tty_device_t;
3131 allow $1 user_tty_device_t:chr_file rw_term_perms;
3134 ########################################
3136 ## Read and write a inherited user domain tty.
3138 ## <param name="domain">
3140 ## Domain allowed access.
3144 interface(`userdom_use_inherited_user_ttys',`
3146 type user_tty_device_t;
3149 allow $1 user_tty_device_t:chr_file rw_inherited_term_perms;
3152 ########################################
3154 ## Read and write a user domain pty.
3156 ## <param name="domain">
3158 ## Domain allowed access.
3162 interface(`userdom_use_user_ptys',`
3167 allow $1 user_devpts_t:chr_file rw_term_perms;
3170 ########################################
3172 ## Read and write a inherited user domain pty.
3174 ## <param name="domain">
3176 ## Domain allowed access.
3180 interface(`userdom_use_inherited_user_ptys',`
3185 allow $1 user_devpts_t:chr_file rw_inherited_term_perms;
3188 ########################################
3190 ## Read and write a inherited user TTYs and PTYs.
3194 ## Allow the specified domain to read and write inherited user
3195 ## TTYs and PTYs. This will allow the domain to
3196 ## interact with the user via the terminal. Typically
3197 ## all interactive applications will require this
3201 ## <param name="domain">
3203 ## Domain allowed access.
3206 ## <infoflow type="both" weight="10"/>
3208 interface(`userdom_use_inherited_user_terminals',`
3210 type user_tty_device_t, user_devpts_t;
3213 allow $1 user_tty_device_t:chr_file rw_inherited_term_perms;
3214 allow $1 user_devpts_t:chr_file rw_inherited_term_perms;
3217 #######################################
3219 ## Allow attempts to read and write
3220 ## a user domain tty and pty.
3222 ## <param name="domain">
3224 ## Domain to not audit.
3228 interface(`userdom_use_user_terminals',`
3230 type user_tty_device_t, user_devpts_t;
3233 allow $1 user_tty_device_t:chr_file rw_term_perms;
3234 allow $1 user_devpts_t:chr_file rw_term_perms;
3237 ########################################
3239 ## Do not audit attempts to read and write
3240 ## a user domain tty and pty.
3242 ## <param name="domain">
3244 ## Domain to not audit.
3248 interface(`userdom_dontaudit_use_user_terminals',`
3250 type user_tty_device_t, user_devpts_t;
3253 dontaudit $1 user_tty_device_t:chr_file rw_term_perms;
3254 dontaudit $1 user_devpts_t:chr_file rw_term_perms;
3258 ########################################
3260 ## Get attributes of user domain tty and pty.
3262 ## <param name="domain">
3264 ## Domain allowed access.
3268 interface(`userdom_getattr_user_terminals',`
3270 type user_tty_device_t, user_devpts_t;
3273 allow $1 { user_tty_device_t user_devpts_t }:chr_file getattr_chr_file_perms;
3276 ########################################
3278 ## Execute a shell in all user domains. This
3279 ## is an explicit transition, requiring the
3280 ## caller to use setexeccon().
3282 ## <param name="domain">
3284 ## Domain allowed to transition.
3288 interface(`userdom_spec_domtrans_all_users',`
3290 attribute userdomain;
3293 corecmd_shell_spec_domtrans($1, userdomain)
3294 allow userdomain $1:fd use;
3295 allow userdomain $1:fifo_file rw_file_perms;
3296 allow userdomain $1:process sigchld;
3299 ########################################
3301 ## Execute an Xserver session in all unprivileged user domains. This
3302 ## is an explicit transition, requiring the
3303 ## caller to use setexeccon().
3305 ## <param name="domain">
3307 ## Domain allowed to transition.
3311 interface(`userdom_xsession_spec_domtrans_all_users',`
3313 attribute userdomain;
3316 xserver_xsession_spec_domtrans($1, userdomain)
3317 allow userdomain $1:fd use;
3318 allow userdomain $1:fifo_file rw_file_perms;
3319 allow userdomain $1:process sigchld;
3322 ########################################
3324 ## Execute a shell in all unprivileged user domains. This
3325 ## is an explicit transition, requiring the
3326 ## caller to use setexeccon().
3328 ## <param name="domain">
3330 ## Domain allowed to transition.
3334 interface(`userdom_spec_domtrans_unpriv_users',`
3336 attribute unpriv_userdomain;
3339 corecmd_shell_spec_domtrans($1, unpriv_userdomain)
3340 allow unpriv_userdomain $1:fd use;
3341 allow unpriv_userdomain $1:fifo_file rw_file_perms;
3342 allow unpriv_userdomain $1:process sigchld;
3345 ########################################
3347 ## Execute an Xserver session in all unprivileged user domains. This
3348 ## is an explicit transition, requiring the
3349 ## caller to use setexeccon().
3351 ## <param name="domain">
3353 ## Domain allowed to transition.
3357 interface(`userdom_xsession_spec_domtrans_unpriv_users',`
3359 attribute unpriv_userdomain;
3362 xserver_xsession_spec_domtrans($1, unpriv_userdomain)
3363 allow unpriv_userdomain $1:fd use;
3364 allow unpriv_userdomain $1:fifo_file rw_file_perms;
3365 allow unpriv_userdomain $1:process sigchld;
3368 ########################################
3370 ## Manage unpriviledged user SysV sempaphores.
3372 ## <param name="domain">
3374 ## Domain allowed access.
3378 interface(`userdom_manage_unpriv_user_semaphores',`
3380 attribute unpriv_userdomain;
3383 allow $1 unpriv_userdomain:sem create_sem_perms;
3386 ########################################
3388 ## Manage unpriviledged user SysV shared
3391 ## <param name="domain">
3393 ## Domain allowed access.
3397 interface(`userdom_manage_unpriv_user_shared_mem',`
3399 attribute unpriv_userdomain;
3402 allow $1 unpriv_userdomain:shm create_shm_perms;
3405 ########################################
3407 ## Execute bin_t in the unprivileged user domains. This
3408 ## is an explicit transition, requiring the
3409 ## caller to use setexeccon().
3411 ## <param name="domain">
3413 ## Domain allowed to transition.
3417 interface(`userdom_bin_spec_domtrans_unpriv_users',`
3419 attribute unpriv_userdomain;
3422 corecmd_bin_spec_domtrans($1, unpriv_userdomain)
3423 allow unpriv_userdomain $1:fd use;
3424 allow unpriv_userdomain $1:fifo_file rw_file_perms;
3425 allow unpriv_userdomain $1:process sigchld;
3428 ########################################
3430 ## Execute all entrypoint files in unprivileged user
3431 ## domains. This is an explicit transition, requiring the
3432 ## caller to use setexeccon().
3434 ## <param name="domain">
3436 ## Domain allowed access.
3440 interface(`userdom_entry_spec_domtrans_unpriv_users',`
3442 attribute unpriv_userdomain;
3445 domain_entry_file_spec_domtrans($1, unpriv_userdomain)
3446 allow unpriv_userdomain $1:fd use;
3447 allow unpriv_userdomain $1:fifo_file rw_fifo_file_perms;
3448 allow unpriv_userdomain $1:process sigchld;
3451 ########################################
3453 ## Search users home directories.
3455 ## <param name="domain">
3457 ## Domain allowed access.
3461 interface(`userdom_search_user_home_content',`
3463 type user_home_dir_t;
3464 attribute user_home_type;
3468 allow $1 { user_home_dir_t user_home_type }:dir search_dir_perms;
3469 allow $1 { user_home_dir_t user_home_type }:lnk_file read_lnk_file_perms;
3472 ########################################
3474 ## Send general signals to unprivileged user domains.
3476 ## <param name="domain">
3478 ## Domain allowed access.
3482 interface(`userdom_signal_unpriv_users',`
3484 attribute unpriv_userdomain;
3487 allow $1 unpriv_userdomain:process signal;
3490 ########################################
3492 ## Inherit the file descriptors from unprivileged user domains.
3494 ## <param name="domain">
3496 ## Domain allowed access.
3500 interface(`userdom_use_unpriv_users_fds',`
3502 attribute unpriv_userdomain;
3505 allow $1 unpriv_userdomain:fd use;
3508 ########################################
3510 ## Do not audit attempts to inherit the file descriptors
3511 ## from unprivileged user domains.
3515 ## Do not audit attempts to inherit the file descriptors
3516 ## from unprivileged user domains. This will supress
3517 ## SELinux denial messages when the specified domain is denied
3518 ## the permission to inherit these file descriptors.
3521 ## <param name="domain">
3523 ## Domain to not audit.
3526 ## <infoflow type="none"/>
3528 interface(`userdom_dontaudit_use_unpriv_user_fds',`
3530 attribute unpriv_userdomain;
3533 dontaudit $1 unpriv_userdomain:fd use;
3536 ########################################
3538 ## Do not audit attempts to use user ptys.
3540 ## <param name="domain">
3542 ## Domain to not audit.
3546 interface(`userdom_dontaudit_use_user_ptys',`
3551 dontaudit $1 user_devpts_t:chr_file rw_inherited_file_perms;
3554 ########################################
3556 ## Relabel files to unprivileged user pty types.
3558 ## <param name="domain">
3560 ## Domain allowed access.
3564 interface(`userdom_relabelto_user_ptys',`
3569 allow $1 user_devpts_t:chr_file relabelto;
3572 ########################################
3574 ## Do not audit attempts to relabel files from
3577 ## <param name="domain">
3579 ## Domain to not audit.
3583 interface(`userdom_dontaudit_relabelfrom_user_ptys',`
3588 dontaudit $1 user_devpts_t:chr_file relabelfrom;
3591 ########################################
3593 ## Write all users files in /tmp
3595 ## <param name="domain">
3597 ## Domain allowed access.
3601 interface(`userdom_write_user_tmp_files',`
3606 write_files_pattern($1, user_tmp_t, user_tmp_t)
3609 ########################################
3611 ## Do not audit attempts to write users
3614 ## <param name="domain">
3616 ## Domain to not audit.
3620 interface(`userdom_dontaudit_write_user_tmp_files',`
3625 dontaudit $1 user_tmp_t:file write;
3628 ########################################
3630 ## Do not audit attempts to read/write users
3631 ## temporary fifo files.
3633 ## <param name="domain">
3635 ## Domain to not audit.
3639 interface(`userdom_dontaudit_rw_user_tmp_pipes',`
3644 dontaudit $1 user_tmp_t:fifo_file rw_inherited_fifo_file_perms;
3647 ########################################
3649 ## Do not audit attempts to use user ttys.
3651 ## <param name="domain">
3653 ## Domain to not audit.
3657 interface(`userdom_dontaudit_use_user_ttys',`
3659 type user_tty_device_t;
3662 dontaudit $1 user_tty_device_t:chr_file rw_file_perms;
3665 ########################################
3667 ## Read the process state of all user domains.
3669 ## <param name="domain">
3671 ## Domain allowed access.
3675 interface(`userdom_read_all_users_state',`
3677 attribute userdomain;
3680 read_files_pattern($1, userdomain, userdomain)
3681 read_lnk_files_pattern($1,userdomain,userdomain)
3682 kernel_search_proc($1)
3685 ########################################
3687 ## Get the attributes of all user domains.
3689 ## <param name="domain">
3691 ## Domain allowed access.
3695 interface(`userdom_getattr_all_users',`
3697 attribute userdomain;
3700 allow $1 userdomain:process getattr;
3703 ########################################
3705 ## Inherit the file descriptors from all user domains
3707 ## <param name="domain">
3709 ## Domain allowed access.
3713 interface(`userdom_use_all_users_fds',`
3715 attribute userdomain;
3718 allow $1 userdomain:fd use;
3721 ########################################
3723 ## Do not audit attempts to inherit the file
3724 ## descriptors from any user domains.
3726 ## <param name="domain">
3728 ## Domain to not audit.
3732 interface(`userdom_dontaudit_use_all_users_fds',`
3734 attribute userdomain;
3737 dontaudit $1 userdomain:fd use;
3740 ########################################
3742 ## Send general signals to all user domains.
3744 ## <param name="domain">
3746 ## Domain allowed access.
3750 interface(`userdom_signal_all_users',`
3752 attribute userdomain;
3755 allow $1 userdomain:process signal;
3758 ########################################
3760 ## Send kill signals to all user domains.
3762 ## <param name="domain">
3764 ## Domain allowed access.
3768 interface(`userdom_kill_all_users',`
3770 attribute userdomain;
3773 allow $1 userdomain:process sigkill;
3776 ########################################
3778 ## Send a SIGCHLD signal to all user domains.
3780 ## <param name="domain">
3782 ## Domain allowed access.
3786 interface(`userdom_sigchld_all_users',`
3788 attribute userdomain;
3791 allow $1 userdomain:process sigchld;
3794 ########################################
3796 ## Create keys for all user domains.
3798 ## <param name="domain">
3800 ## Domain allowed access.
3804 interface(`userdom_create_all_users_keys',`
3806 attribute userdomain;
3809 allow $1 userdomain:key create;
3812 ########################################
3814 ## Send a dbus message to all user domains.
3816 ## <param name="domain">
3818 ## Domain allowed access.
3822 interface(`userdom_dbus_send_all_users',`
3824 attribute userdomain;
3825 class dbus send_msg;
3828 allow $1 userdomain:dbus send_msg;
3831 ########################################
3833 ## Allow apps to set rlimits on userdomain
3835 ## <param name="domain">
3837 ## Domain allowed access.
3841 interface(`userdom_set_rlimitnh',`
3843 attribute userdomain;
3846 allow $1 userdomain:process rlimitinh;
3849 ########################################
3851 ## Define this type as a Allow apps to set rlimits on userdomain
3853 ## <param name="domain">
3855 ## Domain allowed access.
3858 ## <param name="userdomain_prefix">
3860 ## The prefix of the user domain (e.g., user
3861 ## is the prefix for user_t).
3864 ## <param name="domain">
3866 ## Domain allowed access.
3870 template(`userdom_unpriv_usertype',`
3872 attribute unpriv_userdomain, userdomain;
3873 attribute $1_usertype;
3875 typeattribute $2 $1_usertype;
3876 typeattribute $2 unpriv_userdomain;
3877 typeattribute $2 userdomain;
3879 auth_use_nsswitch($2)
3880 ubac_constrained($2)
3883 ########################################
3885 ## Connect to users over an unix stream socket.
3887 ## <param name="domain">
3889 ## Domain allowed access.
3893 interface(`userdom_stream_connect',`
3896 attribute userdomain;
3899 stream_connect_pattern($1, user_tmp_t, user_tmp_t, userdomain)
3902 ########################################
3904 ## Ptrace user domains.
3906 ## <param name="domain">
3908 ## Domain allowed access.
3912 interface(`userdom_ptrace_all_users',`
3914 attribute userdomain;
3917 allow $1 userdomain:process ptrace;
3920 ########################################
3922 ## dontaudit Search /root
3924 ## <param name="domain">
3926 ## Domain to not audit.
3930 interface(`userdom_dontaudit_search_admin_dir',`
3935 dontaudit $1 admin_home_t:dir search_dir_perms;
3938 ########################################
3940 ## dontaudit list /root
3942 ## <param name="domain">
3944 ## Domain to not audit.
3948 interface(`userdom_dontaudit_list_admin_dir',`
3953 dontaudit $1 admin_home_t:dir list_dir_perms;
3956 ########################################
3958 ## Allow domain to list /root
3960 ## <param name="domain">
3962 ## Domain allowed access.
3966 interface(`userdom_list_admin_dir',`
3971 allow $1 admin_home_t:dir list_dir_perms;
3974 ########################################
3976 ## Allow Search /root
3978 ## <param name="domain">
3980 ## Domain allowed access.
3984 interface(`userdom_search_admin_dir',`
3989 allow $1 admin_home_t:dir search_dir_perms;
3992 ########################################
3994 ## RW unpriviledged user SysV sempaphores.
3996 ## <param name="domain">
3998 ## Domain allowed access.
4002 interface(`userdom_rw_semaphores',`
4004 attribute unpriv_userdomain;
4007 allow $1 unpriv_userdomain:sem rw_sem_perms;
4010 ########################################
4012 ## Send a message to unpriv users over a unix domain
4015 ## <param name="domain">
4017 ## Domain allowed access.
4021 interface(`userdom_dgram_send',`
4023 attribute unpriv_userdomain;
4026 allow $1 unpriv_userdomain:unix_dgram_socket sendto;
4029 ######################################
4031 ## Send a message to users over a unix domain
4034 ## <param name="domain">
4036 ## Domain allowed access.
4040 interface(`userdom_users_dgram_send',`
4042 attribute userdomain;
4045 allow $1 userdomain:unix_dgram_socket sendto;
4048 #######################################
4050 ## Allow execmod on files in homedirectory
4052 ## <param name="domain">
4054 ## Domain allowed access.
4059 interface(`userdom_execmod_user_home_files',`
4061 type user_home_type;
4064 allow $1 user_home_type:file execmod;
4067 ########################################
4069 ## Read admin home files.
4071 ## <param name="domain">
4073 ## Domain allowed access.
4078 interface(`userdom_read_admin_home_files',`
4083 read_files_pattern($1, admin_home_t, admin_home_t)
4086 ########################################
4088 ## Execute admin home files.
4090 ## <param name="domain">
4092 ## Domain allowed access.
4097 interface(`userdom_exec_admin_home_files',`
4102 exec_files_pattern($1, admin_home_t, admin_home_t)
4105 ########################################
4107 ## Append files inherited
4108 ## in the /root directory.
4110 ## <param name="domain">
4112 ## Domain allowed access.
4116 interface(`userdom_inherit_append_admin_home_files',`
4121 allow $1 admin_home_t:file { getattr append };
4125 #######################################
4127 ## Manage all files/directories in the homedir
4129 ## <param name="userdomain">
4136 interface(`userdom_manage_user_home_content',`
4138 type user_home_dir_t, user_home_t;
4139 attribute user_home_type;
4143 manage_dirs_pattern($1, { user_home_dir_t user_home_type }, user_home_type)
4144 manage_files_pattern($1, { user_home_dir_t user_home_type }, user_home_type)
4145 manage_lnk_files_pattern($1, { user_home_dir_t user_home_type }, user_home_type)
4146 manage_sock_files_pattern($1, { user_home_dir_t user_home_type }, user_home_type)
4147 manage_fifo_files_pattern($1, { user_home_dir_t user_home_type }, user_home_type)
4148 filetrans_pattern($1, user_home_dir_t, user_home_t, { dir file lnk_file sock_file fifo_file })
4153 ########################################
4155 ## Create objects in a user home directory
4156 ## with an automatic type transition to
4157 ## the user home file type.
4159 ## <param name="domain">
4161 ## Domain allowed access.
4164 ## <param name="object_class">
4166 ## The class of the object to be created.
4170 interface(`userdom_user_home_dir_filetrans_pattern',`
4172 type user_home_dir_t, user_home_t;
4175 type_transition $1 user_home_dir_t:$2 user_home_t;
4178 ########################################
4180 ## Create objects in the /root directory
4181 ## with an automatic type transition to
4182 ## a specified private type.
4184 ## <param name="domain">
4186 ## Domain allowed access.
4189 ## <param name="private_type">
4191 ## The type of the object to create.
4194 ## <param name="object_class">
4196 ## The class of the object to be created.
4200 interface(`userdom_admin_home_dir_filetrans',`
4205 filetrans_pattern($1, admin_home_t, $2, $3, $4)
4208 ########################################
4210 ## Send signull to unprivileged user domains.
4212 ## <param name="domain">
4214 ## Domain allowed access.
4218 interface(`userdom_signull_unpriv_users',`
4220 attribute unpriv_userdomain;
4223 allow $1 unpriv_userdomain:process signull;
4226 ########################################
4228 ## Write all users files in /tmp
4230 ## <param name="domain">
4232 ## Domain allowed access.
4236 interface(`userdom_write_user_tmp_dirs',`
4241 write_files_pattern($1, user_tmp_t, user_tmp_t)
4244 ########################################
4246 ## Manage keys for all user domains.
4248 ## <param name="domain">
4250 ## Domain allowed access.
4254 interface(`userdom_manage_all_users_keys',`
4256 attribute userdomain;
4259 allow $1 userdomain:key manage_key_perms;
4263 ########################################
4265 ## Do not audit attempts to read and write
4266 ## unserdomain stream.
4268 ## <param name="domain">
4270 ## Domain to not audit.
4274 interface(`userdom_dontaudit_rw_stream',`
4276 attribute userdomain;
4279 dontaudit $1 userdomain:unix_stream_socket rw_socket_perms;
4282 ########################################
4284 ## Do not audit attempts to read and write
4285 ## unserdomain datagram socket.
4287 ## <param name="domain">
4289 ## Domain to not audit.
4293 interface(`userdom_dontaudit_rw_dgram_socket',`
4295 attribute userdomain;
4298 dontaudit $1 userdomain:unix_dgram_socket { read write };
4301 ########################################
4304 ## in a user home subdirectory.
4306 ## <param name="domain">
4308 ## Domain allowed access.
4312 interface(`userdom_append_user_home_content_files',`
4314 type user_home_dir_t, user_home_t;
4317 append_files_pattern($1, user_home_t, user_home_t)
4318 allow $1 user_home_dir_t:dir search_dir_perms;
4319 files_search_home($1)
4322 ########################################
4324 ## Read files inherited
4325 ## in a user home subdirectory.
4327 ## <param name="domain">
4329 ## Domain allowed access.
4333 interface(`userdom_read_inherited_user_home_content_files',`
4335 attribute user_home_type;
4338 allow $1 user_home_type:file { getattr read };
4341 ########################################
4343 ## Append files inherited
4344 ## in a user home subdirectory.
4346 ## <param name="domain">
4348 ## Domain allowed access.
4352 interface(`userdom_inherit_append_user_home_content_files',`
4357 allow $1 user_home_t:file { getattr append };
4360 ########################################
4362 ## Append files inherited
4363 ## in a user tmp files.
4365 ## <param name="domain">
4367 ## Domain allowed access.
4371 interface(`userdom_inherit_append_user_tmp_files',`
4376 allow $1 user_tmp_t:file { getattr append };
4379 ######################################
4381 ## Read audio files in the users homedir.
4383 ## <param name="domain">
4385 ## Domain allowed access.
4390 interface(`userdom_read_home_audio_files',`
4395 userdom_search_user_home_dirs($1)
4396 allow $1 audio_home_t:dir list_dir_perms;
4397 read_files_pattern($1, audio_home_t, audio_home_t)
4398 read_lnk_files_pattern($1, audio_home_t, audio_home_t)
4401 ########################################
4403 ## Do not audit attempts to write all user home content files.
4405 ## <param name="domain">
4407 ## Domain to not audit.
4411 interface(`userdom_dontaudit_write_all_user_home_content_files',`
4413 attribute user_home_type;
4416 dontaudit $1 user_home_type:file write_file_perms;
4419 ########################################
4421 ## Do not audit attempts to write all user tmp content files.
4423 ## <param name="domain">
4425 ## Domain to not audit.
4429 interface(`userdom_dontaudit_write_all_user_tmp_content_files',`
4431 attribute user_tmp_type;
4434 dontaudit $1 user_tmp_type:file write_file_perms;
4437 ########################################
4439 ## Manage all user temporary content.
4441 ## <param name="domain">
4443 ## Domain allowed access.
4447 interface(`userdom_manage_all_user_tmp_content',`
4449 attribute user_tmp_type;
4452 manage_dirs_pattern($1, user_tmp_type, user_tmp_type)
4453 manage_files_pattern($1, user_tmp_type, user_tmp_type)
4454 manage_lnk_files_pattern($1, user_tmp_type, user_tmp_type)
4455 manage_sock_files_pattern($1, user_tmp_type, user_tmp_type)
4456 manage_fifo_files_pattern($1, user_tmp_type, user_tmp_type)
4457 files_search_tmp($1)
4460 ########################################
4462 ## List all user temporary content.
4464 ## <param name="domain">
4466 ## Domain allowed access.
4470 interface(`userdom_list_all_user_tmp_content',`
4472 attribute user_tmp_type;
4475 list_dirs_pattern($1, user_tmp_type, user_tmp_type)
4476 getattr_files_pattern($1, user_tmp_type, user_tmp_type)
4477 read_lnk_files_pattern($1, user_tmp_type, user_tmp_type)
4478 getattr_sock_files_pattern($1, user_tmp_type, user_tmp_type)
4479 getattr_fifo_files_pattern($1, user_tmp_type, user_tmp_type)
4480 files_search_var($1)
4481 files_search_tmp($1)
4484 ########################################
4486 ## Manage all user tmpfs content.
4488 ## <param name="domain">
4490 ## Domain allowed access.
4494 interface(`userdom_manage_all_user_tmpfs_content',`
4496 attribute user_tmpfs_type;
4499 manage_dirs_pattern($1, user_tmpfs_type, user_tmpfs_type)
4500 manage_files_pattern($1, user_tmpfs_type, user_tmpfs_type)
4501 manage_lnk_files_pattern($1, user_tmpfs_type, user_tmpfs_type)
4502 manage_sock_files_pattern($1, user_tmpfs_type, user_tmpfs_type)
4503 manage_fifo_files_pattern($1, user_tmpfs_type, user_tmpfs_type)
4507 ########################################
4509 ## Delete all user temporary content.
4511 ## <param name="domain">
4513 ## Domain allowed access.
4517 interface(`userdom_delete_all_user_tmp_content',`
4519 attribute user_tmp_type;
4522 delete_dirs_pattern($1, user_tmp_type, user_tmp_type)
4523 delete_files_pattern($1, user_tmp_type, user_tmp_type)
4524 delete_lnk_files_pattern($1, user_tmp_type, user_tmp_type)
4525 delete_sock_files_pattern($1, user_tmp_type, user_tmp_type)
4526 delete_fifo_files_pattern($1, user_tmp_type, user_tmp_type)
4528 files_search_var($1)
4529 files_delete_tmp_dir_entry($1)
4532 ########################################
4534 ## Read system SSL certificates in the users homedir.
4536 ## <param name="domain">
4538 ## Domain allowed access.
4542 interface(`userdom_read_home_certs',`
4547 userdom_search_user_home_content($1)
4548 allow $1 home_cert_t:dir list_dir_perms;
4549 read_files_pattern($1, home_cert_t, home_cert_t)
4550 read_lnk_files_pattern($1, home_cert_t, home_cert_t)
4553 #######################################
4555 ## Dontaudit Write system SSL certificates in the users homedir.
4557 ## <param name="domain">
4559 ## Domain to not audit.
4563 interface(`userdom_dontaudit_write_home_certs',`
4568 dontaudit $1 home_cert_t:file write;
4571 ########################################
4573 ## dontaudit Search getatrr /root files
4575 ## <param name="domain">
4577 ## Domain to not audit.
4581 interface(`userdom_dontaudit_getattr_admin_home_files',`
4586 dontaudit $1 admin_home_t:file getattr;
4589 ########################################
4591 ## dontaudit read /root lnk files
4593 ## <param name="domain">
4595 ## Domain to not audit.
4599 interface(`userdom_dontaudit_read_admin_home_lnk_files',`
4604 dontaudit $1 admin_home_t:lnk_file read;
4607 ########################################
4609 ## dontaudit read /root files
4611 ## <param name="domain">
4613 ## Domain to not audit.
4617 interface(`userdom_dontaudit_read_admin_home_files',`
4622 dontaudit $1 admin_home_t:file read_file_perms;
4625 ########################################
4627 ## Create, read, write, and delete user
4628 ## temporary chr files.
4630 ## <param name="domain">
4632 ## Domain allowed access.
4636 interface(`userdom_manage_user_tmp_chr_files',`
4641 manage_chr_files_pattern($1, user_tmp_t, user_tmp_t)
4642 files_search_tmp($1)
4645 ########################################
4647 ## Create, read, write, and delete user
4648 ## temporary blk files.
4650 ## <param name="domain">
4652 ## Domain allowed access.
4656 interface(`userdom_manage_user_tmp_blk_files',`
4661 manage_blk_files_pattern($1, user_tmp_t, user_tmp_t)
4662 files_search_tmp($1)
4665 ########################################
4667 ## Dontaudit attempt to set attributes on user temporary directories.
4669 ## <param name="domain">
4671 ## Domain to not audit.
4675 interface(`userdom_dontaudit_setattr_user_tmp',`
4680 dontaudit $1 user_tmp_t:dir setattr;
4683 ########################################
4685 ## Write all inherited users files in /tmp
4687 ## <param name="domain">
4689 ## Domain allowed access.
4693 interface(`userdom_write_inherited_user_tmp_files',`
4698 allow $1 user_tmp_t:file write;
4701 ########################################
4703 ## Delete all users files in /tmp
4705 ## <param name="domain">
4707 ## Domain allowed access.
4711 interface(`userdom_delete_user_tmp_files',`
4716 allow $1 user_tmp_t:file delete_file_perms;
4719 ########################################
4721 ## Delete user tmpfs files.
4723 ## <param name="domain">
4725 ## Domain allowed access.
4729 interface(`userdom_delete_user_tmpfs_files',`
4734 allow $1 user_tmpfs_t:file delete_file_perms;
4737 ########################################
4739 ## Read/Write unpriviledged user SysV shared
4742 ## <param name="domain">
4744 ## Domain allowed access.
4748 interface(`userdom_rw_unpriv_user_shared_mem',`
4750 attribute unpriv_userdomain;
4753 allow $1 unpriv_userdomain:shm rw_shm_perms;
4756 ########################################
4758 ## Do not audit attempts to search user
4759 ## temporary directories.
4761 ## <param name="domain">
4763 ## Domain to not audit.
4767 interface(`userdom_dontaudit_search_user_tmp',`
4772 dontaudit $1 user_tmp_t:dir search_dir_perms;
4775 ########################################
4777 ## Execute a file in a user home directory
4778 ## in the specified domain.
4782 ## Execute a file in a user home directory
4783 ## in the specified domain.
4786 ## No interprocess communication (signals, pipes,
4787 ## etc.) is provided by this interface since
4788 ## the domains are not owned by this module.
4791 ## <param name="domain">
4793 ## Domain allowed access.
4796 ## <param name="target_domain">
4798 ## The type of the new process.
4802 interface(`userdom_domtrans_user_home',`
4807 read_lnk_files_pattern($1, user_home_t, user_home_t)
4808 domain_transition_pattern($1, user_home_t, $2)
4809 type_transition $1 user_home_t:process $2;
4812 ########################################
4814 ## Execute a file in a user tmp directory
4815 ## in the specified domain.
4819 ## Execute a file in a user tmp directory
4820 ## in the specified domain.
4823 ## No interprocess communication (signals, pipes,
4824 ## etc.) is provided by this interface since
4825 ## the domains are not owned by this module.
4828 ## <param name="domain">
4830 ## Domain allowed access.
4833 ## <param name="target_domain">
4835 ## The type of the new process.
4839 interface(`userdom_domtrans_user_tmp',`
4844 files_search_tmp($1)
4845 read_lnk_files_pattern($1, user_tmp_t, user_tmp_t)
4846 domain_transition_pattern($1, user_tmp_t, $2)
4847 type_transition $1 user_tmp_t:process $2;
4850 ########################################
4852 ## Do not audit attempts to read all user home content files.
4854 ## <param name="domain">
4856 ## Domain to not audit.
4860 interface(`userdom_dontaudit_read_all_user_home_content_files',`
4862 attribute user_home_type;
4865 dontaudit $1 user_home_type:file read_file_perms;
4868 ########################################
4870 ## Do not audit attempts to read all user tmp content files.
4872 ## <param name="domain">
4874 ## Domain to not audit.
4878 interface(`userdom_dontaudit_read_all_user_tmp_content_files',`
4880 attribute user_tmp_type;
4883 dontaudit $1 user_tmp_type:file read_file_perms;
4886 #######################################
4888 ## Read and write unpriviledged user SysV sempaphores.
4890 ## <param name="domain">
4892 ## Domain allowed access.
4896 interface(`userdom_rw_unpriv_user_semaphores',`
4898 attribute unpriv_userdomain;
4901 allow $1 unpriv_userdomain:sem rw_sem_perms;