@@ -24230,7 +24236,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 +1170,17 @@
+@@ -1187,12 +1171,11 @@
# and may change other protocols
tunable_policy(`user_tcp_server',`
corenet_tcp_bind_all_nodes($1_t)
@@ -24245,17 +24251,16 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
# Run pppd in pppd_t by default for user
- optional_policy(`
- ppp_run_cond($1_t,$1_r,{ $1_tty_device_t $1_devpts_t })
+@@ -1201,7 +1184,7 @@
')
--
-- optional_policy(`
+
+ optional_policy(`
- setroubleshoot_stream_connect($1_t)
-- ')
++ nsplugin_per_role_template($1, $1_usertype, $1_r)
+ ')
')
- #######################################
-@@ -1278,8 +1256,6 @@
+@@ -1278,8 +1261,6 @@
# Manipulate other users crontab.
allow $1_t self:passwd crontab;
@@ -24264,7 +24269,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 +1392,7 @@
+@@ -1416,6 +1397,7 @@
dev_relabel_all_dev_nodes($1)
files_create_boot_flag($1)
@@ -24272,7 +24277,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 +1758,14 @@
+@@ -1781,10 +1763,14 @@
template(`userdom_user_home_content',`
gen_require(`
attribute $1_file_type;
@@ -24288,7 +24293,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -1880,11 +1861,11 @@
+@@ -1880,11 +1866,11 @@
#
template(`userdom_search_user_home_dirs',`
gen_require(`
@@ -24302,7 +24307,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -1914,11 +1895,11 @@
+@@ -1914,11 +1900,11 @@
#
template(`userdom_list_user_home_dirs',`
gen_require(`
@@ -24316,7 +24321,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -1962,12 +1943,12 @@
+@@ -1962,12 +1948,12 @@
#
template(`userdom_user_home_domtrans',`
gen_require(`
@@ -24332,7 +24337,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -1997,10 +1978,10 @@
+@@ -1997,10 +1983,10 @@
#
template(`userdom_dontaudit_list_user_home_dirs',`
gen_require(`
@@ -24345,7 +24350,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2032,11 +2013,47 @@
+@@ -2032,11 +2018,47 @@
#
template(`userdom_manage_user_home_content_dirs',`
gen_require(`
@@ -24395,7 +24400,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2068,10 +2085,10 @@
+@@ -2068,10 +2090,10 @@
#
template(`userdom_dontaudit_setattr_user_home_content_files',`
gen_require(`
@@ -24408,7 +24413,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2101,11 +2118,11 @@
+@@ -2101,11 +2123,11 @@
#
template(`userdom_read_user_home_content_files',`
gen_require(`
@@ -24422,7 +24427,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2135,11 +2152,11 @@
+@@ -2135,11 +2157,11 @@
#
template(`userdom_dontaudit_read_user_home_content_files',`
gen_require(`
@@ -24437,7 +24442,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2169,10 +2186,10 @@
+@@ -2169,10 +2191,10 @@
#
template(`userdom_dontaudit_write_user_home_content_files',`
gen_require(`
@@ -24450,7 +24455,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2202,11 +2219,11 @@
+@@ -2202,11 +2224,11 @@
#
template(`userdom_read_user_home_content_symlinks',`
gen_require(`
@@ -24464,7 +24469,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2236,11 +2253,11 @@
+@@ -2236,11 +2258,11 @@
#
template(`userdom_exec_user_home_content_files',`
gen_require(`
@@ -24478,7 +24483,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2270,10 +2287,10 @@
+@@ -2270,10 +2292,10 @@
#
template(`userdom_dontaudit_exec_user_home_content_files',`
gen_require(`
@@ -24491,7 +24496,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2305,12 +2322,12 @@
+@@ -2305,12 +2327,12 @@
#
template(`userdom_manage_user_home_content_files',`
gen_require(`
@@ -24507,7 +24512,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2342,10 +2359,10 @@
+@@ -2342,10 +2364,10 @@
#
template(`userdom_dontaudit_manage_user_home_content_dirs',`
gen_require(`
@@ -24520,7 +24525,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2377,12 +2394,12 @@
+@@ -2377,12 +2399,12 @@
#
template(`userdom_manage_user_home_content_symlinks',`
gen_require(`
@@ -24536,7 +24541,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2414,12 +2431,12 @@
+@@ -2414,12 +2436,12 @@
#
template(`userdom_manage_user_home_content_pipes',`
gen_require(`
@@ -24552,7 +24557,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2451,12 +2468,12 @@
+@@ -2451,12 +2473,12 @@
#
template(`userdom_manage_user_home_content_sockets',`
gen_require(`
@@ -24568,7 +24573,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2501,11 +2518,11 @@
+@@ -2501,11 +2523,11 @@
#
template(`userdom_user_home_dir_filetrans',`
gen_require(`
@@ -24582,7 +24587,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2550,11 +2567,11 @@
+@@ -2550,11 +2572,11 @@
#
template(`userdom_user_home_content_filetrans',`
gen_require(`
@@ -24596,7 +24601,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2594,11 +2611,11 @@
+@@ -2594,11 +2616,11 @@
#
template(`userdom_user_home_dir_filetrans_user_home_content',`
gen_require(`
@@ -24610,7 +24615,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2628,11 +2645,11 @@
+@@ -2628,11 +2650,11 @@
#
template(`userdom_write_user_tmp_sockets',`
gen_require(`
@@ -24624,7 +24629,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2662,11 +2679,11 @@
+@@ -2662,11 +2684,11 @@
#
template(`userdom_list_user_tmp',`
gen_require(`
@@ -24638,7 +24643,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2698,10 +2715,10 @@
+@@ -2698,10 +2720,10 @@
#
template(`userdom_dontaudit_list_user_tmp',`
gen_require(`
@@ -24651,7 +24656,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2733,10 +2750,10 @@
+@@ -2733,10 +2755,10 @@
#
template(`userdom_dontaudit_manage_user_tmp_dirs',`
gen_require(`
@@ -24664,7 +24669,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2766,12 +2783,12 @@
+@@ -2766,12 +2788,12 @@
#
template(`userdom_read_user_tmp_files',`
gen_require(`
@@ -24680,7 +24685,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2803,10 +2820,10 @@
+@@ -2803,10 +2825,10 @@
#
template(`userdom_dontaudit_read_user_tmp_files',`
gen_require(`
@@ -24693,7 +24698,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2838,10 +2855,48 @@
+@@ -2838,10 +2860,48 @@
#
template(`userdom_dontaudit_append_user_tmp_files',`
gen_require(`
@@ -24744,7 +24749,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2871,12 +2926,12 @@
+@@ -2871,12 +2931,12 @@
#
template(`userdom_rw_user_tmp_files',`
gen_require(`
@@ -24760,7 +24765,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2908,10 +2963,10 @@
+@@ -2908,10 +2968,10 @@
#
template(`userdom_dontaudit_manage_user_tmp_files',`
gen_require(`
@@ -24773,7 +24778,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2943,12 +2998,12 @@
+@@ -2943,12 +3003,12 @@
#
template(`userdom_read_user_tmp_symlinks',`
gen_require(`
@@ -24789,7 +24794,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2980,11 +3035,11 @@
+@@ -2980,11 +3040,11 @@
#
template(`userdom_manage_user_tmp_dirs',`
gen_require(`
@@ -24803,7 +24808,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -3016,11 +3071,11 @@
+@@ -3016,11 +3076,11 @@
#
template(`userdom_manage_user_tmp_files',`
gen_require(`
@@ -24817,7 +24822,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -3052,11 +3107,11 @@
+@@ -3052,11 +3112,11 @@
#
template(`userdom_manage_user_tmp_symlinks',`
gen_require(`
@@ -24831,7 +24836,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -3088,11 +3143,11 @@
+@@ -3088,11 +3148,11 @@
#
template(`userdom_manage_user_tmp_pipes',`
gen_require(`
@@ -24845,7 +24850,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -3124,11 +3179,11 @@
+@@ -3124,11 +3184,11 @@
#
template(`userdom_manage_user_tmp_sockets',`
gen_require(`
@@ -24859,7 +24864,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -3173,10 +3228,10 @@
+@@ -3173,10 +3233,10 @@
#
template(`userdom_user_tmp_filetrans',`
gen_require(`
@@ -24872,7 +24877,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
files_search_tmp($2)
')
-@@ -3217,10 +3272,10 @@
+@@ -3217,10 +3277,10 @@
#
template(`userdom_tmp_filetrans_user_tmp',`
gen_require(`
@@ -24885,7 +24890,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -3248,6 +3303,42 @@
+@@ -3248,6 +3308,42 @@
##
##
#
@@ -24928,7 +24933,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 +4316,11 @@
+@@ -4225,11 +4321,11 @@
#
interface(`userdom_search_staff_home_dirs',`
gen_require(`
@@ -24942,7 +24947,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4245,10 +4336,10 @@
+@@ -4245,10 +4341,10 @@
#
interface(`userdom_dontaudit_search_staff_home_dirs',`
gen_require(`
@@ -24955,7 +24960,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4264,11 +4355,11 @@
+@@ -4264,11 +4360,11 @@
#
interface(`userdom_manage_staff_home_dirs',`
gen_require(`
@@ -24969,7 +24974,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4283,16 +4374,16 @@
+@@ -4283,16 +4379,16 @@
#
interface(`userdom_relabelto_staff_home_dirs',`
gen_require(`
@@ -24989,7 +24994,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
## users home directory.
##
##
-@@ -4301,12 +4392,27 @@
+@@ -4301,17 +4397,32 @@
##
##
#
@@ -25002,10 +25007,11 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
- dontaudit $1 staff_home_t:file append;
+ dontaudit $1 user_home_t:file append_file_perms;
-+')
-+
-+########################################
-+##