++## This template creates a derived domains which are used ++## for nsplugin web browser. ++##
++##++## This template is invoked automatically for each user, and ++## generally does not need to be invoked directly ++## by policy writers. ++##
++##++## Transition to confined nsplugin domains from unconfined user ++##
++##
@@ -24155,7 +24230,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
## This template creates a user domain, types, and
## rules for the user's tty, pty, home directories,
## tmp, and tmpfs files.
-@@ -1187,22 +1166,17 @@
+@@ -1187,22 +1170,17 @@
# and may change other protocols
tunable_policy(`user_tcp_server',`
corenet_tcp_bind_all_nodes($1_t)
@@ -24180,7 +24255,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
#######################################
-@@ -1278,8 +1252,6 @@
+@@ -1278,8 +1256,6 @@
# Manipulate other users crontab.
allow $1_t self:passwd crontab;
@@ -24189,7 +24264,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
kernel_read_software_raid_state($1_t)
kernel_getattr_core_if($1_t)
kernel_getattr_message_if($1_t)
-@@ -1416,6 +1388,7 @@
+@@ -1416,6 +1392,7 @@
dev_relabel_all_dev_nodes($1)
files_create_boot_flag($1)
@@ -24197,7 +24272,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
# Necessary for managing /boot/efi
fs_manage_dos_files($1)
-@@ -1781,10 +1754,14 @@
+@@ -1781,10 +1758,14 @@
template(`userdom_user_home_content',`
gen_require(`
attribute $1_file_type;
@@ -24213,7 +24288,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -1880,11 +1857,11 @@
+@@ -1880,11 +1861,11 @@
#
template(`userdom_search_user_home_dirs',`
gen_require(`
@@ -24227,7 +24302,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -1914,11 +1891,11 @@
+@@ -1914,11 +1895,11 @@
#
template(`userdom_list_user_home_dirs',`
gen_require(`
@@ -24241,7 +24316,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -1962,12 +1939,12 @@
+@@ -1962,12 +1943,12 @@
#
template(`userdom_user_home_domtrans',`
gen_require(`
@@ -24257,7 +24332,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -1997,10 +1974,10 @@
+@@ -1997,10 +1978,10 @@
#
template(`userdom_dontaudit_list_user_home_dirs',`
gen_require(`
@@ -24270,7 +24345,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2032,11 +2009,47 @@
+@@ -2032,11 +2013,47 @@
#
template(`userdom_manage_user_home_content_dirs',`
gen_require(`
@@ -24320,7 +24395,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2068,10 +2081,10 @@
+@@ -2068,10 +2085,10 @@
#
template(`userdom_dontaudit_setattr_user_home_content_files',`
gen_require(`
@@ -24333,7 +24408,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2101,11 +2114,11 @@
+@@ -2101,11 +2118,11 @@
#
template(`userdom_read_user_home_content_files',`
gen_require(`
@@ -24347,7 +24422,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2135,11 +2148,11 @@
+@@ -2135,11 +2152,11 @@
#
template(`userdom_dontaudit_read_user_home_content_files',`
gen_require(`
@@ -24362,7 +24437,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2169,10 +2182,10 @@
+@@ -2169,10 +2186,10 @@
#
template(`userdom_dontaudit_write_user_home_content_files',`
gen_require(`
@@ -24375,7 +24450,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2202,11 +2215,11 @@
+@@ -2202,11 +2219,11 @@
#
template(`userdom_read_user_home_content_symlinks',`
gen_require(`
@@ -24389,7 +24464,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2236,11 +2249,11 @@
+@@ -2236,11 +2253,11 @@
#
template(`userdom_exec_user_home_content_files',`
gen_require(`
@@ -24403,7 +24478,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2270,10 +2283,10 @@
+@@ -2270,10 +2287,10 @@
#
template(`userdom_dontaudit_exec_user_home_content_files',`
gen_require(`
@@ -24416,7 +24491,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2305,12 +2318,12 @@
+@@ -2305,12 +2322,12 @@
#
template(`userdom_manage_user_home_content_files',`
gen_require(`
@@ -24432,7 +24507,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2342,10 +2355,10 @@
+@@ -2342,10 +2359,10 @@
#
template(`userdom_dontaudit_manage_user_home_content_dirs',`
gen_require(`
@@ -24445,7 +24520,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2377,12 +2390,12 @@
+@@ -2377,12 +2394,12 @@
#
template(`userdom_manage_user_home_content_symlinks',`
gen_require(`
@@ -24461,7 +24536,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2414,12 +2427,12 @@
+@@ -2414,12 +2431,12 @@
#
template(`userdom_manage_user_home_content_pipes',`
gen_require(`
@@ -24477,7 +24552,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2451,12 +2464,12 @@
+@@ -2451,12 +2468,12 @@
#
template(`userdom_manage_user_home_content_sockets',`
gen_require(`
@@ -24493,7 +24568,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2501,11 +2514,11 @@
+@@ -2501,11 +2518,11 @@
#
template(`userdom_user_home_dir_filetrans',`
gen_require(`
@@ -24507,7 +24582,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2550,11 +2563,11 @@
+@@ -2550,11 +2567,11 @@
#
template(`userdom_user_home_content_filetrans',`
gen_require(`
@@ -24521,7 +24596,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2594,11 +2607,11 @@
+@@ -2594,11 +2611,11 @@
#
template(`userdom_user_home_dir_filetrans_user_home_content',`
gen_require(`
@@ -24535,7 +24610,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2628,11 +2641,11 @@
+@@ -2628,11 +2645,11 @@
#
template(`userdom_write_user_tmp_sockets',`
gen_require(`
@@ -24549,7 +24624,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2662,11 +2675,11 @@
+@@ -2662,11 +2679,11 @@
#
template(`userdom_list_user_tmp',`
gen_require(`
@@ -24563,7 +24638,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2698,10 +2711,10 @@
+@@ -2698,10 +2715,10 @@
#
template(`userdom_dontaudit_list_user_tmp',`
gen_require(`
@@ -24576,7 +24651,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2733,10 +2746,10 @@
+@@ -2733,10 +2750,10 @@
#
template(`userdom_dontaudit_manage_user_tmp_dirs',`
gen_require(`
@@ -24589,7 +24664,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2766,12 +2779,12 @@
+@@ -2766,12 +2783,12 @@
#
template(`userdom_read_user_tmp_files',`
gen_require(`
@@ -24605,7 +24680,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2803,10 +2816,10 @@
+@@ -2803,10 +2820,10 @@
#
template(`userdom_dontaudit_read_user_tmp_files',`
gen_require(`
@@ -24618,7 +24693,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2838,10 +2851,48 @@
+@@ -2838,10 +2855,48 @@
#
template(`userdom_dontaudit_append_user_tmp_files',`
gen_require(`
@@ -24669,7 +24744,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2871,12 +2922,12 @@
+@@ -2871,12 +2926,12 @@
#
template(`userdom_rw_user_tmp_files',`
gen_require(`
@@ -24685,7 +24760,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2908,10 +2959,10 @@
+@@ -2908,10 +2963,10 @@
#
template(`userdom_dontaudit_manage_user_tmp_files',`
gen_require(`
@@ -24698,7 +24773,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2943,12 +2994,12 @@
+@@ -2943,12 +2998,12 @@
#
template(`userdom_read_user_tmp_symlinks',`
gen_require(`
@@ -24714,7 +24789,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2980,11 +3031,11 @@
+@@ -2980,11 +3035,11 @@
#
template(`userdom_manage_user_tmp_dirs',`
gen_require(`
@@ -24728,7 +24803,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -3016,11 +3067,11 @@
+@@ -3016,11 +3071,11 @@
#
template(`userdom_manage_user_tmp_files',`
gen_require(`
@@ -24742,7 +24817,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -3052,11 +3103,11 @@
+@@ -3052,11 +3107,11 @@
#
template(`userdom_manage_user_tmp_symlinks',`
gen_require(`
@@ -24756,7 +24831,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -3088,11 +3139,11 @@
+@@ -3088,11 +3143,11 @@
#
template(`userdom_manage_user_tmp_pipes',`
gen_require(`
@@ -24770,7 +24845,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -3124,11 +3175,11 @@
+@@ -3124,11 +3179,11 @@
#
template(`userdom_manage_user_tmp_sockets',`
gen_require(`
@@ -24784,7 +24859,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -3173,10 +3224,10 @@
+@@ -3173,10 +3228,10 @@
#
template(`userdom_user_tmp_filetrans',`
gen_require(`
@@ -24797,7 +24872,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
files_search_tmp($2)
')
-@@ -3217,10 +3268,10 @@
+@@ -3217,10 +3272,10 @@
#
template(`userdom_tmp_filetrans_user_tmp',`
gen_require(`
@@ -24810,7 +24885,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -3248,6 +3299,42 @@
+@@ -3248,6 +3303,42 @@
##
##
#
@@ -24853,7 +24928,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
template(`userdom_rw_user_tmpfs_files',`
gen_require(`
type $1_tmpfs_t;
-@@ -4225,11 +4312,11 @@
+@@ -4225,11 +4316,11 @@
#
interface(`userdom_search_staff_home_dirs',`
gen_require(`
@@ -24867,7 +24942,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4245,10 +4332,10 @@
+@@ -4245,10 +4336,10 @@
#
interface(`userdom_dontaudit_search_staff_home_dirs',`
gen_require(`
@@ -24880,7 +24955,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4264,11 +4351,11 @@
+@@ -4264,11 +4355,11 @@
#
interface(`userdom_manage_staff_home_dirs',`
gen_require(`
@@ -24894,7 +24969,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4283,16 +4370,16 @@
+@@ -4283,16 +4374,16 @@
#
interface(`userdom_relabelto_staff_home_dirs',`
gen_require(`
@@ -24914,7 +24989,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
## users home directory.
##
##
-@@ -4301,12 +4388,27 @@
+@@ -4301,12 +4392,27 @@
##
##
#
@@ -24945,7 +25020,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4321,13 +4423,13 @@
+@@ -4321,13 +4427,13 @@
#
interface(`userdom_read_staff_home_content_files',`
gen_require(`
@@ -24963,7 +25038,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4525,10 +4627,10 @@
+@@ -4525,10 +4631,10 @@
#
interface(`userdom_getattr_sysadm_home_dirs',`
gen_require(`
@@ -24976,7 +25051,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4545,10 +4647,10 @@
+@@ -4545,10 +4651,10 @@
#
interface(`userdom_dontaudit_getattr_sysadm_home_dirs',`
gen_require(`
@@ -24989,7 +25064,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4563,10 +4665,10 @@
+@@ -4563,10 +4669,10 @@
#
interface(`userdom_search_sysadm_home_dirs',`
gen_require(`
@@ -25002,7 +25077,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4582,10 +4684,10 @@
+@@ -4582,10 +4688,10 @@
#
interface(`userdom_dontaudit_search_sysadm_home_dirs',`
gen_require(`
@@ -25015,7 +25090,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4600,10 +4702,10 @@
+@@ -4600,10 +4706,10 @@
#
interface(`userdom_list_sysadm_home_dirs',`
gen_require(`
@@ -25028,7 +25103,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4619,10 +4721,10 @@
+@@ -4619,10 +4725,10 @@
#
interface(`userdom_dontaudit_list_sysadm_home_dirs',`
gen_require(`
@@ -25041,7 +25116,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4638,12 +4740,11 @@
+@@ -4638,12 +4744,11 @@
#
interface(`userdom_dontaudit_read_sysadm_home_content_files',`
gen_require(`
@@ -25057,7 +25132,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4670,10 +4771,10 @@
+@@ -4670,10 +4775,10 @@
#
interface(`userdom_sysadm_home_dir_filetrans',`
gen_require(`
@@ -25070,7 +25145,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4688,10 +4789,10 @@
+@@ -4688,10 +4793,10 @@
#
interface(`userdom_search_sysadm_home_content_dirs',`
gen_require(`
@@ -25083,7 +25158,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4706,13 +4807,13 @@
+@@ -4706,13 +4811,13 @@
#
interface(`userdom_read_sysadm_home_content_files',`
gen_require(`
@@ -25101,7 +25176,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4748,11 +4849,49 @@
+@@ -4748,11 +4853,49 @@
#
interface(`userdom_search_all_users_home_dirs',`
gen_require(`
@@ -25152,7 +25227,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4772,6 +4911,14 @@
+@@ -4772,6 +4915,14 @@
files_list_home($1)
allow $1 home_dir_type:dir list_dir_perms;
@@ -25167,7 +25242,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -5109,7 +5256,7 @@
+@@ -5109,7 +5260,7 @@
#
interface(`userdom_relabelto_generic_user_home_dirs',`
gen_require(`
@@ -25176,7 +25251,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
files_search_home($1)
-@@ -5298,6 +5445,49 @@
+@@ -5298,6 +5449,49 @@
########################################
##