##
@@ -24275,7 +24703,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,12 +1171,11 @@
+@@ -1187,12 +1178,11 @@
# and may change other protocols
tunable_policy(`user_tcp_server',`
corenet_tcp_bind_all_nodes($1_t)
@@ -24290,7 +24718,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
# Run pppd in pppd_t by default for user
-@@ -1201,7 +1184,7 @@
+@@ -1201,7 +1191,7 @@
')
optional_policy(`
@@ -24299,7 +24727,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
')
')
-@@ -1278,8 +1261,6 @@
+@@ -1278,8 +1268,6 @@
# Manipulate other users crontab.
allow $1_t self:passwd crontab;
@@ -24308,6 +24736,20 @@ 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)
+@@ -1357,13 +1345,6 @@
+ # But presently necessary for installing the file_contexts file.
+ seutil_manage_bin_policy($1_t)
+
+- tunable_policy(`user_rw_noexattrfile',`
+- fs_manage_noxattr_fs_files($1_t)
+- fs_manage_noxattr_fs_dirs($1_t)
+- ',`
+- fs_read_noxattr_fs_files($1_t)
+- ')
+-
+ optional_policy(`
+ userhelper_exec($1_t)
+ ')
@@ -1416,6 +1397,7 @@
dev_relabel_all_dev_nodes($1)
@@ -25033,7 +25475,7 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
## users home directory.
##
##
-@@ -4301,17 +4397,32 @@
+@@ -4301,12 +4397,27 @@
##
##
#
@@ -25046,11 +25488,10 @@ 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;
- ')
-
- ########################################
- ##
--## Read files in the staff users home directory.
++')
++
++########################################
++##
+## Do not audit attempts to append to the staff
+## users home directory.
+##
@@ -25062,14 +25503,9 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/userdo
+#
+interface(`userdom_dontaudit_append_staff_home_content_files',`
+ userdom_dontaudit_append_unpriv_home_content_files($1)
-+')
-+
-+########################################
-+##
-+## Read files in the staff users home directory.
- ##
- ##
- ##
+ ')
+
+ ########################################
@@ -4321,13 +4432,13 @@
#
interface(`userdom_read_staff_home_content_files',`
@@ -26472,8 +26908,8 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/users/staff.i
+## Policy for staff user
diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/users/staff.te serefpolicy-3.2.5/policy/modules/users/staff.te
--- nsaserefpolicy/policy/modules/users/staff.te 1969-12-31 19:00:00.000000000 -0500
-+++ serefpolicy-3.2.5/policy/modules/users/staff.te 2008-01-18 14:02:43.000000000 -0500
-@@ -0,0 +1,42 @@
++++ serefpolicy-3.2.5/policy/modules/users/staff.te 2008-01-24 16:05:12.000000000 -0500
+@@ -0,0 +1,47 @@
+policy_module(staff,1.0.1)
+userdom_unpriv_user_template(staff)
+
@@ -26484,9 +26920,10 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/users/staff.t
+domain_read_all_domains_state(staff_t)
+domain_getattr_all_domains(staff_t)
+
-+optional_policy(`
-+ xserver_per_role_template(staff, staff_t, staff_r)
-+')
++files_read_kernel_modules(staff_t)
++
++modutils_read_module_config(staff_t)
++modutils_read_module_deps(staff_t)
+
+sudo_per_role_template(staff, staff_t, staff_r)
+seutil_run_newrole(staff_t, staff_r, { staff_tty_device_t staff_devpts_t })
@@ -26516,6 +26953,10 @@ diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/users/staff.t
+ netutils_run_traceroute_cond(staff_t,staff_r,{ staff_tty_device_t staff_devpts_t })
+')
+
++optional_policy(`
++ xserver_per_role_template(staff, staff_t, staff_r)
++')
++
diff --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/users/user.fc serefpolicy-3.2.5/policy/modules/users/user.fc
--- nsaserefpolicy/policy/modules/users/user.fc 1969-12-31 19:00:00.000000000 -0500
+++ serefpolicy-3.2.5/policy/modules/users/user.fc 2008-01-18 12:40:46.000000000 -0500
diff --git a/selinux-policy.spec b/selinux-policy.spec
index 525cec3..d8525d1 100644
--- a/selinux-policy.spec
+++ b/selinux-policy.spec
@@ -17,7 +17,7 @@
Summary: SELinux policy configuration
Name: selinux-policy
Version: 3.2.5
-Release: 19%{?dist}
+Release: 20%{?dist}
License: GPLv2+
Group: System Environment/Base
Source: serefpolicy-%{version}.tgz
@@ -387,6 +387,9 @@ exit 0
%endif
%changelog
+* Fri Jan 25 2008 Dan Walsh 3.2.5-20
+- Allow usertypes to read/write noxattr file systems
+
* Thu Jan 24 2008 Dan Walsh 3.2.5-19
- Fix nsplugin to allow flashplugin to work in enforcing mode