* Tue Jan 10 2006 Dan Walsh <dwalsh@redhat.com> 1.29.5-3

- Fixes for mls policy
This commit is contained in:
Daniel J Walsh 2006-01-10 19:13:15 +00:00
parent a76ee7dadd
commit 3767b9266f
2 changed files with 19 additions and 20 deletions

View File

@ -1,6 +1,6 @@
diff --exclude-from=exclude -N -u -r nsapolicycoreutils/scripts/genhomedircon policycoreutils-1.29.5/scripts/genhomedircon diff --exclude-from=exclude -N -u -r nsapolicycoreutils/scripts/genhomedircon policycoreutils-1.29.5/scripts/genhomedircon
--- nsapolicycoreutils/scripts/genhomedircon 2006-01-05 10:35:49.000000000 -0500 --- nsapolicycoreutils/scripts/genhomedircon 2006-01-05 10:35:49.000000000 -0500
+++ policycoreutils-1.29.5/scripts/genhomedircon 2006-01-10 12:11:48.000000000 -0500 +++ policycoreutils-1.29.5/scripts/genhomedircon 2006-01-10 14:10:21.000000000 -0500
@@ -144,7 +144,7 @@ @@ -144,7 +144,7 @@
for i in fd.read().split('\n'): for i in fd.read().split('\n'):
if i.find("HOME_ROOT") == 0: if i.find("HOME_ROOT") == 0:
@ -10,24 +10,20 @@ diff --exclude-from=exclude -N -u -r nsapolicycoreutils/scripts/genhomedircon po
fd.close() fd.close()
if ret=="": if ret=="":
errorExit("No Home Root Context Found") errorExit("No Home Root Context Found")
@@ -240,7 +240,7 @@ @@ -162,9 +162,10 @@
i=i.replace("HOME_DIR", home) for idx in range(self.usize):
i=i.replace("ROLE", role) user = semanage_user_by_idx(self.ulist, idx)
i=i.replace("system_u", user) if semanage_user_get_name(user) == name:
- ret = ret+i+"\n" - #role=semanage_user_get_defrole(user)
+ ret += i+"\n" - #return role
fd.close() - return "user_r"
return ret + if name == "staff_u" or name == "root" and self.type != "targeted":
+ return "staff_r"
@@ -252,7 +252,7 @@ + else:
i=i.replace("USER", user) + return "user_r"
i=i.replace("ROLE", role) return name
i=i.replace("system_u", sel_user) def getOldRole(self, role):
- ret=ret+i+"\n" rc=findval(self.selinuxdir+self.type+"/users/system.users", 'grep "^user %s"' % role, "=")
+ ret = i+"\n"
fd.close()
return ret
diff --exclude-from=exclude -N -u -r nsapolicycoreutils/semanage/Makefile policycoreutils-1.29.5/semanage/Makefile diff --exclude-from=exclude -N -u -r nsapolicycoreutils/semanage/Makefile policycoreutils-1.29.5/semanage/Makefile
--- nsapolicycoreutils/semanage/Makefile 2005-11-29 10:55:01.000000000 -0500 --- nsapolicycoreutils/semanage/Makefile 2005-11-29 10:55:01.000000000 -0500
+++ policycoreutils-1.29.5/semanage/Makefile 2006-01-06 14:34:47.000000000 -0500 +++ policycoreutils-1.29.5/semanage/Makefile 2006-01-06 14:34:47.000000000 -0500

View File

@ -4,7 +4,7 @@
Summary: SELinux policy core utilities. Summary: SELinux policy core utilities.
Name: policycoreutils Name: policycoreutils
Version: 1.29.5 Version: 1.29.5
Release: 2 Release: 3
License: GPL License: GPL
Group: System Environment/Base Group: System Environment/Base
Source: http://www.nsa.gov/selinux/archives/policycoreutils-%{version}.tgz Source: http://www.nsa.gov/selinux/archives/policycoreutils-%{version}.tgz
@ -97,6 +97,9 @@ rm -rf ${RPM_BUILD_ROOT}
%{_libdir}/python2.4/site-packages/seobject.py* %{_libdir}/python2.4/site-packages/seobject.py*
%changelog %changelog
* Tue Jan 10 2006 Dan Walsh <dwalsh@redhat.com> 1.29.5-3
- Fixes for mls policy
* Tue Jan 10 2006 Dan Walsh <dwalsh@redhat.com> 1.29.5-2 * Tue Jan 10 2006 Dan Walsh <dwalsh@redhat.com> 1.29.5-2
- Update semanage and split out seobject - Update semanage and split out seobject
- Fix labeleing of home_root - Fix labeleing of home_root