* Tue Apr 27 2010 Dan Walsh <dwalsh@redhat.com> 2.0.82-10
- Make sepolgen-ifgen be quiet
This commit is contained in:
parent
34a8ec78f7
commit
07e8306fc8
|
@ -4259,8 +4259,8 @@ diff --exclude-from=exclude --exclude=sepolgen-1.0.23 --exclude=gui --exclude=po
|
|||
+relabel: ;
|
||||
diff --exclude-from=exclude --exclude=sepolgen-1.0.23 --exclude=gui --exclude=po -N -u -r nsapolicycoreutils/sepolgen-ifgen/sepolgen-ifgen policycoreutils-2.0.82/sepolgen-ifgen/sepolgen-ifgen
|
||||
--- nsapolicycoreutils/sepolgen-ifgen/sepolgen-ifgen 1969-12-31 19:00:00.000000000 -0500
|
||||
+++ policycoreutils-2.0.82/sepolgen-ifgen/sepolgen-ifgen 2010-04-27 08:30:57.000000000 -0400
|
||||
@@ -0,0 +1,128 @@
|
||||
+++ policycoreutils-2.0.82/sepolgen-ifgen/sepolgen-ifgen 2010-04-27 10:10:28.000000000 -0400
|
||||
@@ -0,0 +1,131 @@
|
||||
+#! /usr/bin/python -E
|
||||
+#
|
||||
+# Authors: Karl MacMillan <kmacmillan@mentalrootkit.com>
|
||||
|
@ -4324,12 +4324,15 @@ diff --exclude-from=exclude --exclude=sepolgen-1.0.23 --exclude=gui --exclude=po
|
|||
+ return options
|
||||
+
|
||||
+def get_attrs():
|
||||
+ policy_path = selinux.selinux_binary_policy_path() + "." + str(selinux.security_policyvers())
|
||||
+ try:
|
||||
+ policy_path = selinux.selinux_binary_policy_path() + "." + str(selinux.security_policyvers())
|
||||
+ outfile = tempfile.NamedTemporaryFile()
|
||||
+ except IOError, e:
|
||||
+ sys.stderr.write("could not open attribute output file\n")
|
||||
+ return None
|
||||
+ except OSError:
|
||||
+ # SELinux Disabled Machine
|
||||
+ return None
|
||||
+
|
||||
+ fd = open("/dev/null","w")
|
||||
+ ret = subprocess.Popen([ATTR_HELPER, policy_path, outfile.name], stdout=fd).wait()
|
||||
|
@ -4368,7 +4371,7 @@ diff --exclude-from=exclude --exclude=sepolgen-1.0.23 --exclude=gui --exclude=po
|
|||
+ attrs = get_attrs()
|
||||
+ if attrs is None:
|
||||
+ return 1
|
||||
+
|
||||
+
|
||||
+ # Parse the headers
|
||||
+ try:
|
||||
+ headers = refparser.parse_headers(options.headers, output=log, debug=options.debug)
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
Summary: SELinux policy core utilities
|
||||
Name: policycoreutils
|
||||
Version: 2.0.82
|
||||
Release: 9%{?dist}
|
||||
Release: 10%{?dist}
|
||||
License: GPLv2+
|
||||
Group: System Environment/Base
|
||||
Source: http://www.nsa.gov/selinux/archives/policycoreutils-%{version}.tgz
|
||||
|
@ -143,7 +143,7 @@ The policycoreutils-python package contains the management tools use to manage a
|
|||
%{_mandir}/ru/man8/semanage.8*
|
||||
|
||||
%post python
|
||||
[ -f /usr/share/selinux/devel/include/build.conf ] && /usr/bin/sepolgen-ifgen
|
||||
selinuxenabled && [ -f /usr/share/selinux/devel/include/build.conf ] && /usr/bin/sepolgen-ifgen
|
||||
exit 0
|
||||
|
||||
%package sandbox
|
||||
|
@ -167,7 +167,7 @@ The policycoreutils-python package contains the scripts to create graphical sand
|
|||
%{_datadir}/sandbox/sandboxX.sh
|
||||
|
||||
%triggerin python -- selinux-policy
|
||||
[ -f /usr/share/selinux/devel/include/build.conf ] && /usr/bin/sepolgen-ifgen
|
||||
selinuxenabled && [ -f /usr/share/selinux/devel/include/build.conf ] && /usr/bin/sepolgen-ifgen
|
||||
exit 0
|
||||
|
||||
%post sandbox
|
||||
|
@ -306,7 +306,7 @@ fi
|
|||
exit 0
|
||||
|
||||
%changelog
|
||||
* Tue Apr 27 2010 Dan Walsh <dwalsh@redhat.com> 2.0.82-9
|
||||
* Tue Apr 27 2010 Dan Walsh <dwalsh@redhat.com> 2.0.82-10
|
||||
- Make sepolgen-ifgen be quiet
|
||||
|
||||
* Wed Apr 21 2010 Dan Walsh <dwalsh@redhat.com> 2.0.82-8
|
||||
|
|
Loading…
Reference in New Issue