rpms/policycoreutils/devel policycoreutils-rhat.patch, 1.145, 1.146 policycoreutils.spec, 1.216, 1.217
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Sat Jan 14 13:54:31 UTC 2006
Author: dwalsh
Update of /cvs/dist/rpms/policycoreutils/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv22170
Modified Files:
policycoreutils-rhat.patch policycoreutils.spec
Log Message:
* Sat Jan 14 2006 Dan Walsh <dwalsh at redhat.com> 1.29.7-3
- Add check for root for semanage, genhomedircon
policycoreutils-rhat.patch:
scripts/genhomedircon | 3
semanage/semanage | 11
semanage/seobject.py | 676 ++++++++++++++++++++++++++++++--------------------
semanage/seobject.pyc |binary
4 files changed, 427 insertions(+), 263 deletions(-)
Index: policycoreutils-rhat.patch
===================================================================
RCS file: /cvs/dist/rpms/policycoreutils/devel/policycoreutils-rhat.patch,v
retrieving revision 1.145
retrieving revision 1.146
diff -u -r1.145 -r1.146
--- policycoreutils-rhat.patch 14 Jan 2006 06:50:34 -0000 1.145
+++ policycoreutils-rhat.patch 14 Jan 2006 13:54:25 -0000 1.146
@@ -1,7 +1,35 @@
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/scripts/genhomedircon policycoreutils-1.29.7/scripts/genhomedircon
+--- nsapolicycoreutils/scripts/genhomedircon 2006-01-13 09:47:40.000000000 -0500
++++ policycoreutils-1.29.7/scripts/genhomedircon 2006-01-14 08:39:02.000000000 -0500
+@@ -327,6 +327,9 @@
+ sys.stderr.write("%s: %s\n" % ( sys.argv[0], error ))
+
+
++if os.getuid() > 0 or os.geteuid() > 0:
++ print "You must be root to run %s." % sys.argv[0]
++ sys.exit(0)
+
+ #
+ # This script will generate home dir file context
diff --exclude-from=exclude -N -u -r nsapolicycoreutils/semanage/semanage policycoreutils-1.29.7/semanage/semanage
--- nsapolicycoreutils/semanage/semanage 2006-01-13 09:47:40.000000000 -0500
-+++ policycoreutils-1.29.7/semanage/semanage 2006-01-14 01:50:09.000000000 -0500
-@@ -186,6 +186,7 @@
++++ policycoreutils-1.29.7/semanage/semanage 2006-01-14 08:38:35.000000000 -0500
+@@ -20,10 +20,13 @@
+ # 02111-1307 USA
+ #
+ #
+-import sys, getopt
++import os, sys, getopt
+ import seobject
+
+ if __name__ == '__main__':
++ if os.getuid() > 0 or os.geteuid() > 0:
++ print "You must be root to run %s." % sys.argv[0]
++ sys.exit(0)
+
+ def usage(message = ""):
+ print '\
+@@ -186,6 +189,7 @@
if object == "fcontext":
OBJECT.add(target, setype, ftype, serange, seuser)
@@ -9,7 +37,7 @@
sys.exit(0);
if modify:
-@@ -210,8 +211,13 @@
+@@ -210,8 +214,13 @@
if delete:
if object == "port":
OBJECT.delete(target, proto)
@@ -930,3 +958,4 @@
-
-
+ print "%-50s %-18s " % (k[0], dict[k][0])
+Binary files nsapolicycoreutils/semanage/seobject.pyc and policycoreutils-1.29.7/semanage/seobject.pyc differ
Index: policycoreutils.spec
===================================================================
RCS file: /cvs/dist/rpms/policycoreutils/devel/policycoreutils.spec,v
retrieving revision 1.216
retrieving revision 1.217
diff -u -r1.216 -r1.217
--- policycoreutils.spec 14 Jan 2006 06:56:23 -0000 1.216
+++ policycoreutils.spec 14 Jan 2006 13:54:25 -0000 1.217
@@ -4,7 +4,7 @@
Summary: SELinux policy core utilities.
Name: policycoreutils
Version: 1.29.7
-Release: 2
+Release: 3
License: GPL
Group: System Environment/Base
Source: http://www.nsa.gov/selinux/archives/policycoreutils-%{version}.tgz
@@ -97,6 +97,9 @@
%{_libdir}/python2.4/site-packages/seobject.py*
%changelog
+* Sat Jan 14 2006 Dan Walsh <dwalsh at redhat.com> 1.29.7-3
+- Add check for root for semanage, genhomedircon
+
* Sat Jan 14 2006 Dan Walsh <dwalsh at redhat.com> 1.29.7-2
- Add ivans patch
More information about the fedora-cvs-commits
mailing list