@@ -32927,7 +33016,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ##
#### This template creates a user domain, types, and -@@ -1167,11 +1163,10 @@ +@@ -1167,11 +1160,10 @@ # # port access is audited even if dac would not have allowed it, so dontaudit it here @@ -32940,7 +33029,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol # cjp: why? files_read_kernel_symbol_table($1_t) -@@ -1189,36 +1184,49 @@ +@@ -1189,36 +1181,49 @@ ') ') @@ -33003,7 +33092,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ') -@@ -1295,8 +1303,6 @@ +@@ -1295,8 +1300,6 @@ # Manipulate other users crontab. allow $1_t self:passwd crontab; @@ -33012,7 +33101,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol kernel_read_software_raid_state($1_t) kernel_getattr_core_if($1_t) kernel_getattr_message_if($1_t) -@@ -1318,8 +1324,6 @@ +@@ -1318,8 +1321,6 @@ dev_getattr_generic_blk_files($1_t) dev_getattr_generic_chr_files($1_t) @@ -33021,7 +33110,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol # Allow MAKEDEV to work dev_create_all_blk_files($1_t) dev_create_all_chr_files($1_t) -@@ -1374,13 +1378,6 @@ +@@ -1374,13 +1375,6 @@ # But presently necessary for installing the file_contexts file. seutil_manage_bin_policy($1_t) @@ -33035,7 +33124,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol optional_policy(` postgresql_unconfined($1_t) ') -@@ -1432,6 +1429,7 @@ +@@ -1432,6 +1426,7 @@ dev_relabel_all_dev_nodes($1) files_create_boot_flag($1) @@ -33043,7 +33132,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol # Necessary for managing /boot/efi fs_manage_dos_files($1) -@@ -1461,10 +1459,6 @@ +@@ -1461,10 +1456,6 @@ seutil_run_semanage($1,$2,$3) seutil_run_setfiles($1, $2, $3) @@ -33054,7 +33143,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol optional_policy(` aide_run($1,$2, $3) ') -@@ -1484,6 +1478,14 @@ +@@ -1484,6 +1475,14 @@ optional_policy(` netlabel_run_mgmt($1,$2, $3) ') @@ -33069,7 +33158,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -1741,11 +1743,15 @@ +@@ -1741,11 +1740,15 @@ # template(`userdom_user_home_content',` gen_require(` @@ -33088,7 +33177,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -1841,11 +1847,11 @@ +@@ -1841,11 +1844,11 @@ # template(`userdom_search_user_home_dirs',` gen_require(` @@ -33102,7 +33191,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -1875,11 +1881,11 @@ +@@ -1875,11 +1878,11 @@ # template(`userdom_list_user_home_dirs',` gen_require(` @@ -33116,7 +33205,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -1923,12 +1929,12 @@ +@@ -1923,12 +1926,12 @@ # template(`userdom_user_home_domtrans',` gen_require(` @@ -33132,7 +33221,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -1958,10 +1964,11 @@ +@@ -1958,10 +1961,11 @@ # template(`userdom_dontaudit_list_user_home_dirs',` gen_require(` @@ -33146,7 +33235,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -1993,11 +2000,47 @@ +@@ -1993,11 +1997,47 @@ # template(`userdom_manage_user_home_content_dirs',` gen_require(` @@ -33196,7 +33285,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2029,10 +2072,10 @@ +@@ -2029,10 +2069,10 @@ # template(`userdom_dontaudit_setattr_user_home_content_files',` gen_require(` @@ -33209,7 +33298,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2062,11 +2105,11 @@ +@@ -2062,11 +2102,11 @@ # template(`userdom_read_user_home_content_files',` gen_require(` @@ -33223,7 +33312,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2096,11 +2139,11 @@ +@@ -2096,11 +2136,11 @@ # template(`userdom_dontaudit_read_user_home_content_files',` gen_require(` @@ -33238,7 +33327,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2130,10 +2173,14 @@ +@@ -2130,10 +2170,14 @@ # template(`userdom_dontaudit_write_user_home_content_files',` gen_require(` @@ -33255,7 +33344,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2163,11 +2210,11 @@ +@@ -2163,11 +2207,11 @@ # template(`userdom_read_user_home_content_symlinks',` gen_require(` @@ -33269,7 +33358,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2197,11 +2244,11 @@ +@@ -2197,11 +2241,11 @@ # template(`userdom_exec_user_home_content_files',` gen_require(` @@ -33283,7 +33372,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2231,10 +2278,10 @@ +@@ -2231,10 +2275,10 @@ # template(`userdom_dontaudit_exec_user_home_content_files',` gen_require(` @@ -33296,7 +33385,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2266,12 +2313,12 @@ +@@ -2266,12 +2310,12 @@ # template(`userdom_manage_user_home_content_files',` gen_require(` @@ -33312,7 +33401,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2303,10 +2350,10 @@ +@@ -2303,10 +2347,10 @@ # template(`userdom_dontaudit_manage_user_home_content_dirs',` gen_require(` @@ -33325,7 +33414,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2338,12 +2385,12 @@ +@@ -2338,12 +2382,12 @@ # template(`userdom_manage_user_home_content_symlinks',` gen_require(` @@ -33341,7 +33430,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2375,12 +2422,12 @@ +@@ -2375,12 +2419,12 @@ # template(`userdom_manage_user_home_content_pipes',` gen_require(` @@ -33357,7 +33446,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2412,12 +2459,12 @@ +@@ -2412,12 +2456,12 @@ # template(`userdom_manage_user_home_content_sockets',` gen_require(` @@ -33373,7 +33462,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2462,11 +2509,11 @@ +@@ -2462,11 +2506,11 @@ # template(`userdom_user_home_dir_filetrans',` gen_require(` @@ -33387,7 +33476,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2511,11 +2558,11 @@ +@@ -2511,11 +2555,11 @@ # template(`userdom_user_home_content_filetrans',` gen_require(` @@ -33401,7 +33490,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2555,11 +2602,11 @@ +@@ -2555,11 +2599,11 @@ # template(`userdom_user_home_dir_filetrans_user_home_content',` gen_require(` @@ -33415,7 +33504,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2589,11 +2636,11 @@ +@@ -2589,11 +2633,11 @@ # template(`userdom_write_user_tmp_sockets',` gen_require(` @@ -33429,7 +33518,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2623,11 +2670,11 @@ +@@ -2623,11 +2667,11 @@ # template(`userdom_list_user_tmp',` gen_require(` @@ -33443,7 +33532,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2659,10 +2706,10 @@ +@@ -2659,10 +2703,10 @@ # template(`userdom_dontaudit_list_user_tmp',` gen_require(` @@ -33456,7 +33545,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2694,10 +2741,10 @@ +@@ -2694,10 +2738,10 @@ # template(`userdom_dontaudit_manage_user_tmp_dirs',` gen_require(` @@ -33469,7 +33558,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2727,12 +2774,12 @@ +@@ -2727,12 +2771,12 @@ # template(`userdom_read_user_tmp_files',` gen_require(` @@ -33485,7 +33574,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2764,10 +2811,10 @@ +@@ -2764,10 +2808,10 @@ # template(`userdom_dontaudit_read_user_tmp_files',` gen_require(` @@ -33498,7 +33587,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2799,10 +2846,10 @@ +@@ -2799,10 +2843,10 @@ # template(`userdom_dontaudit_append_user_tmp_files',` gen_require(` @@ -33511,7 +33600,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2832,12 +2879,12 @@ +@@ -2832,12 +2876,12 @@ # template(`userdom_rw_user_tmp_files',` gen_require(` @@ -33527,7 +33616,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2869,10 +2916,10 @@ +@@ -2869,10 +2913,10 @@ # template(`userdom_dontaudit_manage_user_tmp_files',` gen_require(` @@ -33540,7 +33629,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2904,12 +2951,12 @@ +@@ -2904,12 +2948,12 @@ # template(`userdom_read_user_tmp_symlinks',` gen_require(` @@ -33556,7 +33645,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2941,11 +2988,11 @@ +@@ -2941,11 +2985,11 @@ # template(`userdom_manage_user_tmp_dirs',` gen_require(` @@ -33570,7 +33659,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -2977,11 +3024,11 @@ +@@ -2977,11 +3021,11 @@ # template(`userdom_manage_user_tmp_files',` gen_require(` @@ -33584,7 +33673,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -3013,11 +3060,11 @@ +@@ -3013,11 +3057,11 @@ # template(`userdom_manage_user_tmp_symlinks',` gen_require(` @@ -33598,7 +33687,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -3049,11 +3096,11 @@ +@@ -3049,11 +3093,11 @@ # template(`userdom_manage_user_tmp_pipes',` gen_require(` @@ -33612,7 +33701,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -3085,11 +3132,11 @@ +@@ -3085,11 +3129,11 @@ # template(`userdom_manage_user_tmp_sockets',` gen_require(` @@ -33626,7 +33715,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ') ######################################## -@@ -3134,10 +3181,10 @@ +@@ -3134,10 +3178,10 @@ # template(`userdom_user_tmp_filetrans',` gen_require(` @@ -33639,7 +33728,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol files_search_tmp($2) ') -@@ -3178,19 +3225,19 @@ +@@ -3178,19 +3222,19 @@ # template(`userdom_tmp_filetrans_user_tmp',` gen_require(` @@ -33663,7 +33752,25 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol ##
##
## This is a templated interface, and should only
-@@ -4616,11 +4663,11 @@
+@@ -3211,13 +3255,13 @@
+ #
+ template(`userdom_rw_user_tmpfs_files',`
+ gen_require(`
+- type $1_tmpfs_t;
++ type user_tmpfs_t;
+ ')
+
+ fs_search_tmpfs($2)
+- allow $2 $1_tmpfs_t:dir list_dir_perms;
+- rw_files_pattern($2,$1_tmpfs_t,$1_tmpfs_t)
+- read_lnk_files_pattern($2,$1_tmpfs_t,$1_tmpfs_t)
++ allow $2 user_tmpfs_t:dir list_dir_perms;
++ rw_files_pattern($2,user_tmpfs_t,user_tmpfs_t)
++ read_lnk_files_pattern($2,user_tmpfs_t,user_tmpfs_t)
+ ')
+
+ ########################################
+@@ -4616,11 +4660,11 @@
#
interface(`userdom_search_all_users_home_dirs',`
gen_require(`
@@ -33677,7 +33784,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol
')
########################################
-@@ -4640,6 +4687,14 @@
+@@ -4640,6 +4684,14 @@
files_list_home($1)
allow $1 home_dir_type:dir list_dir_perms;
@@ -33692,7 +33799,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol
')
########################################
-@@ -4677,6 +4732,8 @@
+@@ -4677,6 +4729,8 @@
')
dontaudit $1 { home_dir_type home_type }:dir search_dir_perms;
@@ -33701,7 +33808,7 @@ diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/pol
')
########################################
-@@ -4721,6 +4778,25 @@
+@@ -4721,6 +4775,25 @@
########################################
##