* Wed Jan 25 2006 Dan Walsh <dwalsh@redhat.com> 1.29.11-3
- Cleanup of the patch
This commit is contained in:
parent
a1b21192f2
commit
a336777890
@ -45,7 +45,7 @@ diff --exclude-from=exclude -N -u -r nsapolicycoreutils/scripts/chcat policycore
|
|||||||
if delete_ind:
|
if delete_ind:
|
||||||
diff --exclude-from=exclude -N -u -r nsapolicycoreutils/semanage/semanage policycoreutils-1.29.11/semanage/semanage
|
diff --exclude-from=exclude -N -u -r nsapolicycoreutils/semanage/semanage policycoreutils-1.29.11/semanage/semanage
|
||||||
--- nsapolicycoreutils/semanage/semanage 2006-01-20 10:37:37.000000000 -0500
|
--- nsapolicycoreutils/semanage/semanage 2006-01-20 10:37:37.000000000 -0500
|
||||||
+++ policycoreutils-1.29.11/semanage/semanage 2006-01-25 11:13:33.000000000 -0500
|
+++ policycoreutils-1.29.11/semanage/semanage 2006-01-26 12:17:30.000000000 -0500
|
||||||
@@ -30,28 +30,27 @@
|
@@ -30,28 +30,27 @@
|
||||||
|
|
||||||
def usage(message = ""):
|
def usage(message = ""):
|
||||||
@ -80,7 +80,7 @@ diff --exclude-from=exclude -N -u -r nsapolicycoreutils/semanage/semanage policy
|
|||||||
'
|
'
|
||||||
print message
|
print message
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
@@ -62,35 +61,29 @@
|
@@ -62,35 +61,27 @@
|
||||||
sys.stderr.flush()
|
sys.stderr.flush()
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
@ -116,15 +116,13 @@ diff --exclude-from=exclude -N -u -r nsapolicycoreutils/semanage/semanage policy
|
|||||||
+ valid_option["user"] = []
|
+ valid_option["user"] = []
|
||||||
+ valid_option["user"] += valid_everyone + [ '-L', '--level', '-r', '--range', '-R', '--roles' ]
|
+ valid_option["user"] += valid_everyone + [ '-L', '--level', '-r', '--range', '-R', '--roles' ]
|
||||||
+ valid_option["port"] = []
|
+ valid_option["port"] = []
|
||||||
+ valid_option["port"] += valid_everyone + [ '-t', '--type', '-r', '--range']
|
|
||||||
+ valid_option["port"] = []
|
|
||||||
+ valid_option["port"] += valid_everyone + [ '-t', '--type', '-r', '--range', '-p', '--protocol' ]
|
+ valid_option["port"] += valid_everyone + [ '-t', '--type', '-r', '--range', '-p', '--protocol' ]
|
||||||
+ valid_option["interface"] = []
|
+ valid_option["interface"] = []
|
||||||
+ valid_option["interface"] += valid_everyone + [ '-t', '--type', '-r', '--range']
|
+ valid_option["interface"] += valid_everyone + [ '-t', '--type', '-r', '--range']
|
||||||
+ valid_option["fcontext"] = []
|
+ valid_option["fcontext"] = []
|
||||||
+ valid_option["fcontext"] += valid_everyone + [ '-f', '--ftype', '-s', '--seuser', '-t', '--type', '-r', '--range']
|
+ valid_option["fcontext"] += valid_everyone + [ '-f', '--ftype', '-s', '--seuser', '-t', '--type', '-r', '--range']
|
||||||
+ valid_option["translation"] = []
|
+ valid_option["translation"] = []
|
||||||
+ valid_option["fcontext"] += valid_everyone + [ '-T', '--trans' ]
|
+ valid_option["translation"] += valid_everyone + [ '-T', '--trans' ]
|
||||||
+ return valid_option
|
+ return valid_option
|
||||||
+
|
+
|
||||||
#
|
#
|
||||||
@ -135,7 +133,7 @@ diff --exclude-from=exclude -N -u -r nsapolicycoreutils/semanage/semanage policy
|
|||||||
input = sys.stdin
|
input = sys.stdin
|
||||||
output = sys.stdout
|
output = sys.stdout
|
||||||
serange = ""
|
serange = ""
|
||||||
@@ -112,12 +105,14 @@
|
@@ -112,12 +103,14 @@
|
||||||
usage("Requires 2 or more arguments")
|
usage("Requires 2 or more arguments")
|
||||||
|
|
||||||
object = sys.argv[1]
|
object = sys.argv[1]
|
||||||
@ -148,11 +146,11 @@ diff --exclude-from=exclude -N -u -r nsapolicycoreutils/semanage/semanage policy
|
|||||||
+
|
+
|
||||||
gopts, cmds = getopt.getopt(args,
|
gopts, cmds = getopt.getopt(args,
|
||||||
- 'adf:lhmnp:P:s:R:L:r:t:vT:',
|
- 'adf:lhmnp:P:s:R:L:r:t:vT:',
|
||||||
+ 'adf:lhmnp:s:R:L:r:t:vT:',
|
+ 'adf:lhmnp:s:R:L:r:t:T:',
|
||||||
['add',
|
['add',
|
||||||
'delete',
|
'delete',
|
||||||
'ftype=',
|
'ftype=',
|
||||||
@@ -125,16 +120,18 @@
|
@@ -125,16 +118,18 @@
|
||||||
'list',
|
'list',
|
||||||
'modify',
|
'modify',
|
||||||
'noheading',
|
'noheading',
|
||||||
@ -174,7 +172,7 @@ diff --exclude-from=exclude -N -u -r nsapolicycoreutils/semanage/semanage policy
|
|||||||
for o,a in gopts:
|
for o,a in gopts:
|
||||||
if o == "-a" or o == "--add":
|
if o == "-a" or o == "--add":
|
||||||
if modify or delete:
|
if modify or delete:
|
||||||
@@ -167,11 +164,11 @@
|
@@ -167,7 +162,7 @@
|
||||||
if o == "-L" or o == '--level':
|
if o == "-L" or o == '--level':
|
||||||
selevel = a
|
selevel = a
|
||||||
|
|
||||||
@ -183,15 +181,13 @@ diff --exclude-from=exclude -N -u -r nsapolicycoreutils/semanage/semanage policy
|
|||||||
proto = a
|
proto = a
|
||||||
|
|
||||||
if o == "-R" or o == '--roles':
|
if o == "-R" or o == '--roles':
|
||||||
- roles = roles + " " + a
|
@@ -182,94 +177,25 @@
|
||||||
+ roles = a
|
if o == "-T" or o == "--trans":
|
||||||
|
setrans = a
|
||||||
if o == "-s" or o == "--seuser":
|
|
||||||
seuser = a
|
|
||||||
@@ -185,91 +182,25 @@
|
|
||||||
if o == "-v" or o == "--verbose":
|
|
||||||
verbose = 1
|
|
||||||
|
|
||||||
|
- if o == "-v" or o == "--verbose":
|
||||||
|
- verbose = 1
|
||||||
|
-
|
||||||
-# Note in this section I intentionally leave the unwanted_*() functions for
|
-# Note in this section I intentionally leave the unwanted_*() functions for
|
||||||
-# variabled which are wanted commented out and don't delete those lines. This
|
-# variabled which are wanted commented out and don't delete those lines. This
|
||||||
-# will make it easier to modify the code when the list of wanted variables
|
-# will make it easier to modify the code when the list of wanted variables
|
||||||
@ -280,7 +276,7 @@ diff --exclude-from=exclude -N -u -r nsapolicycoreutils/semanage/semanage policy
|
|||||||
OBJECT.list(heading)
|
OBJECT.list(heading)
|
||||||
sys.exit(0);
|
sys.exit(0);
|
||||||
|
|
||||||
@@ -324,16 +255,6 @@
|
@@ -324,16 +250,6 @@
|
||||||
sys.exit(0);
|
sys.exit(0);
|
||||||
|
|
||||||
if delete:
|
if delete:
|
||||||
@ -299,7 +295,7 @@ diff --exclude-from=exclude -N -u -r nsapolicycoreutils/semanage/semanage policy
|
|||||||
|
|
||||||
diff --exclude-from=exclude -N -u -r nsapolicycoreutils/semanage/semanage.8 policycoreutils-1.29.11/semanage/semanage.8
|
diff --exclude-from=exclude -N -u -r nsapolicycoreutils/semanage/semanage.8 policycoreutils-1.29.11/semanage/semanage.8
|
||||||
--- nsapolicycoreutils/semanage/semanage.8 2006-01-20 10:37:37.000000000 -0500
|
--- nsapolicycoreutils/semanage/semanage.8 2006-01-20 10:37:37.000000000 -0500
|
||||||
+++ policycoreutils-1.29.11/semanage/semanage.8 2006-01-25 11:13:33.000000000 -0500
|
+++ policycoreutils-1.29.11/semanage/semanage.8 2006-01-26 12:13:43.000000000 -0500
|
||||||
@@ -3,19 +3,19 @@
|
@@ -3,19 +3,19 @@
|
||||||
semanage \- SELinux Policy Management tool
|
semanage \- SELinux Policy Management tool
|
||||||
|
|
||||||
@ -363,7 +359,7 @@ diff --exclude-from=exclude -N -u -r nsapolicycoreutils/semanage/semanage.8 poli
|
|||||||
MLS/MCS Security Range
|
MLS/MCS Security Range
|
||||||
.TP
|
.TP
|
||||||
+.I \-R, \-\-role
|
+.I \-R, \-\-role
|
||||||
+SELinux Roles. You must inclose multiple roles within quotes, separate by spaces.
|
+SELinux Roles. You must inclose multiple roles within quotes, separate by spaces. Or specify \-R multiple times.
|
||||||
+.TP
|
+.TP
|
||||||
.I \-s, \-\-seuser
|
.I \-s, \-\-seuser
|
||||||
SELinux user name
|
SELinux user name
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
Summary: SELinux policy core utilities.
|
Summary: SELinux policy core utilities.
|
||||||
Name: policycoreutils
|
Name: policycoreutils
|
||||||
Version: 1.29.11
|
Version: 1.29.11
|
||||||
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
|
||||||
|
* Wed Jan 25 2006 Dan Walsh <dwalsh@redhat.com> 1.29.11-3
|
||||||
|
- Cleanup of the patch
|
||||||
|
|
||||||
* Wed Jan 25 2006 Dan Walsh <dwalsh@redhat.com> 1.29.11-2
|
* Wed Jan 25 2006 Dan Walsh <dwalsh@redhat.com> 1.29.11-2
|
||||||
- Correct handling of symbolic links in restorecon
|
- Correct handling of symbolic links in restorecon
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user