From 533c755e4de7ba4c8d0e9795e2dae3c652d1e1a0 Mon Sep 17 00:00:00 2001
From: Daniel J Walsh
@@ -29378,7 +29563,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.
-@@ -1193,12 +1191,11 @@
+@@ -1193,12 +1195,11 @@
# and may change other protocols
tunable_policy(`user_tcp_server',`
corenet_tcp_bind_all_nodes($1_t)
@@ -29393,7 +29578,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
# Run pppd in pppd_t by default for user
-@@ -1207,7 +1204,23 @@
+@@ -1207,7 +1208,23 @@
')
optional_policy(`
@@ -29418,7 +29603,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
')
-@@ -1284,8 +1297,6 @@
+@@ -1284,8 +1301,6 @@
# Manipulate other users crontab.
allow $1_t self:passwd crontab;
@@ -29427,7 +29612,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)
-@@ -1363,13 +1374,6 @@
+@@ -1363,13 +1378,6 @@
# But presently necessary for installing the file_contexts file.
seutil_manage_bin_policy($1_t)
@@ -29441,7 +29626,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
optional_policy(`
userhelper_exec($1_t)
')
-@@ -1422,6 +1426,7 @@
+@@ -1422,6 +1430,7 @@
dev_relabel_all_dev_nodes($1)
files_create_boot_flag($1)
@@ -29449,7 +29634,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
# Necessary for managing /boot/efi
fs_manage_dos_files($1)
-@@ -1787,10 +1792,14 @@
+@@ -1787,10 +1796,14 @@
template(`userdom_user_home_content',`
gen_require(`
attribute $1_file_type;
@@ -29465,7 +29650,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -1886,11 +1895,11 @@
+@@ -1886,11 +1899,11 @@
#
template(`userdom_search_user_home_dirs',`
gen_require(`
@@ -29479,7 +29664,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -1920,11 +1929,11 @@
+@@ -1920,11 +1933,11 @@
#
template(`userdom_list_user_home_dirs',`
gen_require(`
@@ -29493,7 +29678,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -1968,12 +1977,12 @@
+@@ -1968,12 +1981,12 @@
#
template(`userdom_user_home_domtrans',`
gen_require(`
@@ -29509,7 +29694,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2003,10 +2012,10 @@
+@@ -2003,10 +2016,10 @@
#
template(`userdom_dontaudit_list_user_home_dirs',`
gen_require(`
@@ -29522,7 +29707,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2038,11 +2047,47 @@
+@@ -2038,11 +2051,47 @@
#
template(`userdom_manage_user_home_content_dirs',`
gen_require(`
@@ -29572,7 +29757,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2074,10 +2119,10 @@
+@@ -2074,10 +2123,10 @@
#
template(`userdom_dontaudit_setattr_user_home_content_files',`
gen_require(`
@@ -29585,7 +29770,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2107,11 +2152,11 @@
+@@ -2107,11 +2156,11 @@
#
template(`userdom_read_user_home_content_files',`
gen_require(`
@@ -29599,7 +29784,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2141,11 +2186,11 @@
+@@ -2141,11 +2190,11 @@
#
template(`userdom_dontaudit_read_user_home_content_files',`
gen_require(`
@@ -29614,7 +29799,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2175,10 +2220,14 @@
+@@ -2175,10 +2224,14 @@
#
template(`userdom_dontaudit_write_user_home_content_files',`
gen_require(`
@@ -29631,7 +29816,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2208,11 +2257,11 @@
+@@ -2208,11 +2261,11 @@
#
template(`userdom_read_user_home_content_symlinks',`
gen_require(`
@@ -29645,7 +29830,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2242,11 +2291,11 @@
+@@ -2242,11 +2295,11 @@
#
template(`userdom_exec_user_home_content_files',`
gen_require(`
@@ -29659,7 +29844,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2276,10 +2325,10 @@
+@@ -2276,10 +2329,10 @@
#
template(`userdom_dontaudit_exec_user_home_content_files',`
gen_require(`
@@ -29672,7 +29857,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2311,12 +2360,12 @@
+@@ -2311,12 +2364,12 @@
#
template(`userdom_manage_user_home_content_files',`
gen_require(`
@@ -29688,7 +29873,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2348,10 +2397,10 @@
+@@ -2348,10 +2401,10 @@
#
template(`userdom_dontaudit_manage_user_home_content_dirs',`
gen_require(`
@@ -29701,7 +29886,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2383,12 +2432,12 @@
+@@ -2383,12 +2436,12 @@
#
template(`userdom_manage_user_home_content_symlinks',`
gen_require(`
@@ -29717,7 +29902,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2420,12 +2469,12 @@
+@@ -2420,12 +2473,12 @@
#
template(`userdom_manage_user_home_content_pipes',`
gen_require(`
@@ -29733,7 +29918,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2457,12 +2506,12 @@
+@@ -2457,12 +2510,12 @@
#
template(`userdom_manage_user_home_content_sockets',`
gen_require(`
@@ -29749,7 +29934,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2507,11 +2556,11 @@
+@@ -2507,11 +2560,11 @@
#
template(`userdom_user_home_dir_filetrans',`
gen_require(`
@@ -29763,7 +29948,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2556,11 +2605,11 @@
+@@ -2556,11 +2609,11 @@
#
template(`userdom_user_home_content_filetrans',`
gen_require(`
@@ -29777,7 +29962,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2600,11 +2649,11 @@
+@@ -2600,11 +2653,11 @@
#
template(`userdom_user_home_dir_filetrans_user_home_content',`
gen_require(`
@@ -29791,7 +29976,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2634,11 +2683,11 @@
+@@ -2634,11 +2687,11 @@
#
template(`userdom_write_user_tmp_sockets',`
gen_require(`
@@ -29805,7 +29990,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2668,11 +2717,11 @@
+@@ -2668,11 +2721,11 @@
#
template(`userdom_list_user_tmp',`
gen_require(`
@@ -29819,7 +30004,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2704,10 +2753,10 @@
+@@ -2704,10 +2757,10 @@
#
template(`userdom_dontaudit_list_user_tmp',`
gen_require(`
@@ -29832,7 +30017,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2739,10 +2788,10 @@
+@@ -2739,10 +2792,10 @@
#
template(`userdom_dontaudit_manage_user_tmp_dirs',`
gen_require(`
@@ -29845,7 +30030,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2772,12 +2821,12 @@
+@@ -2772,12 +2825,12 @@
#
template(`userdom_read_user_tmp_files',`
gen_require(`
@@ -29861,7 +30046,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2809,10 +2858,10 @@
+@@ -2809,10 +2862,10 @@
#
template(`userdom_dontaudit_read_user_tmp_files',`
gen_require(`
@@ -29874,7 +30059,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2844,10 +2893,48 @@
+@@ -2844,10 +2897,48 @@
#
template(`userdom_dontaudit_append_user_tmp_files',`
gen_require(`
@@ -29925,7 +30110,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2877,12 +2964,12 @@
+@@ -2877,12 +2968,12 @@
#
template(`userdom_rw_user_tmp_files',`
gen_require(`
@@ -29941,7 +30126,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2914,10 +3001,10 @@
+@@ -2914,10 +3005,10 @@
#
template(`userdom_dontaudit_manage_user_tmp_files',`
gen_require(`
@@ -29954,7 +30139,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2949,12 +3036,12 @@
+@@ -2949,12 +3040,12 @@
#
template(`userdom_read_user_tmp_symlinks',`
gen_require(`
@@ -29970,7 +30155,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -2986,11 +3073,11 @@
+@@ -2986,11 +3077,11 @@
#
template(`userdom_manage_user_tmp_dirs',`
gen_require(`
@@ -29984,7 +30169,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -3022,11 +3109,11 @@
+@@ -3022,11 +3113,11 @@
#
template(`userdom_manage_user_tmp_files',`
gen_require(`
@@ -29998,7 +30183,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -3058,11 +3145,11 @@
+@@ -3058,11 +3149,11 @@
#
template(`userdom_manage_user_tmp_symlinks',`
gen_require(`
@@ -30012,7 +30197,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -3094,11 +3181,11 @@
+@@ -3094,11 +3185,11 @@
#
template(`userdom_manage_user_tmp_pipes',`
gen_require(`
@@ -30026,7 +30211,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -3130,11 +3217,11 @@
+@@ -3130,11 +3221,11 @@
#
template(`userdom_manage_user_tmp_sockets',`
gen_require(`
@@ -30040,7 +30225,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -3179,10 +3266,10 @@
+@@ -3179,10 +3270,10 @@
#
template(`userdom_user_tmp_filetrans',`
gen_require(`
@@ -30053,7 +30238,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
files_search_tmp($2)
')
-@@ -3223,10 +3310,10 @@
+@@ -3223,10 +3314,10 @@
#
template(`userdom_tmp_filetrans_user_tmp',`
gen_require(`
@@ -30066,7 +30251,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -3254,6 +3341,42 @@
+@@ -3254,6 +3345,42 @@
##
##
#
@@ -30109,7 +30294,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;
-@@ -4231,11 +4354,11 @@
+@@ -4231,11 +4358,11 @@
#
interface(`userdom_search_staff_home_dirs',`
gen_require(`
@@ -30123,7 +30308,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4251,10 +4374,10 @@
+@@ -4251,10 +4378,10 @@
#
interface(`userdom_dontaudit_search_staff_home_dirs',`
gen_require(`
@@ -30136,7 +30321,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4270,11 +4393,11 @@
+@@ -4270,11 +4397,11 @@
#
interface(`userdom_manage_staff_home_dirs',`
gen_require(`
@@ -30150,7 +30335,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4289,16 +4412,16 @@
+@@ -4289,16 +4416,16 @@
#
interface(`userdom_relabelto_staff_home_dirs',`
gen_require(`
@@ -30170,7 +30355,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
## users home directory.
##
##
-@@ -4307,12 +4430,27 @@
+@@ -4307,12 +4434,27 @@
##
##
#
@@ -30201,7 +30386,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4327,13 +4465,13 @@
+@@ -4327,13 +4469,13 @@
#
interface(`userdom_read_staff_home_content_files',`
gen_require(`
@@ -30219,7 +30404,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4531,10 +4669,10 @@
+@@ -4531,10 +4673,10 @@
#
interface(`userdom_getattr_sysadm_home_dirs',`
gen_require(`
@@ -30232,7 +30417,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4551,10 +4689,10 @@
+@@ -4551,10 +4693,10 @@
#
interface(`userdom_dontaudit_getattr_sysadm_home_dirs',`
gen_require(`
@@ -30245,7 +30430,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4569,10 +4707,10 @@
+@@ -4569,10 +4711,10 @@
#
interface(`userdom_search_sysadm_home_dirs',`
gen_require(`
@@ -30258,7 +30443,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4588,10 +4726,10 @@
+@@ -4588,10 +4730,10 @@
#
interface(`userdom_dontaudit_search_sysadm_home_dirs',`
gen_require(`
@@ -30271,7 +30456,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4606,10 +4744,10 @@
+@@ -4606,10 +4748,10 @@
#
interface(`userdom_list_sysadm_home_dirs',`
gen_require(`
@@ -30284,7 +30469,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4625,10 +4763,10 @@
+@@ -4625,10 +4767,10 @@
#
interface(`userdom_dontaudit_list_sysadm_home_dirs',`
gen_require(`
@@ -30297,7 +30482,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4644,12 +4782,11 @@
+@@ -4644,12 +4786,11 @@
#
interface(`userdom_dontaudit_read_sysadm_home_content_files',`
gen_require(`
@@ -30313,7 +30498,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4676,10 +4813,10 @@
+@@ -4676,10 +4817,10 @@
#
interface(`userdom_sysadm_home_dir_filetrans',`
gen_require(`
@@ -30326,7 +30511,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4694,10 +4831,10 @@
+@@ -4694,10 +4835,10 @@
#
interface(`userdom_search_sysadm_home_content_dirs',`
gen_require(`
@@ -30339,7 +30524,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4712,13 +4849,13 @@
+@@ -4712,13 +4853,13 @@
#
interface(`userdom_read_sysadm_home_content_files',`
gen_require(`
@@ -30357,7 +30542,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4754,11 +4891,49 @@
+@@ -4754,11 +4895,49 @@
#
interface(`userdom_search_all_users_home_dirs',`
gen_require(`
@@ -30408,7 +30593,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4778,6 +4953,14 @@
+@@ -4778,6 +4957,14 @@
files_list_home($1)
allow $1 home_dir_type:dir list_dir_perms;
@@ -30423,7 +30608,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
########################################
-@@ -4839,6 +5022,26 @@
+@@ -4839,6 +5026,26 @@
########################################
##