* 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: ;
|
+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
|
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
|
--- 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
|
+++ policycoreutils-2.0.82/sepolgen-ifgen/sepolgen-ifgen 2010-04-27 10:10:28.000000000 -0400
|
||||||
@@ -0,0 +1,128 @@
|
@@ -0,0 +1,131 @@
|
||||||
+#! /usr/bin/python -E
|
+#! /usr/bin/python -E
|
||||||
+#
|
+#
|
||||||
+# Authors: Karl MacMillan <kmacmillan@mentalrootkit.com>
|
+# 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
|
+ return options
|
||||||
+
|
+
|
||||||
+def get_attrs():
|
+def get_attrs():
|
||||||
+ policy_path = selinux.selinux_binary_policy_path() + "." + str(selinux.security_policyvers())
|
|
||||||
+ try:
|
+ try:
|
||||||
|
+ policy_path = selinux.selinux_binary_policy_path() + "." + str(selinux.security_policyvers())
|
||||||
+ outfile = tempfile.NamedTemporaryFile()
|
+ outfile = tempfile.NamedTemporaryFile()
|
||||||
+ except IOError, e:
|
+ except IOError, e:
|
||||||
+ sys.stderr.write("could not open attribute output file\n")
|
+ sys.stderr.write("could not open attribute output file\n")
|
||||||
+ return None
|
+ return None
|
||||||
|
+ except OSError:
|
||||||
|
+ # SELinux Disabled Machine
|
||||||
|
+ return None
|
||||||
+
|
+
|
||||||
+ fd = open("/dev/null","w")
|
+ fd = open("/dev/null","w")
|
||||||
+ ret = subprocess.Popen([ATTR_HELPER, policy_path, outfile.name], stdout=fd).wait()
|
+ ret = subprocess.Popen([ATTR_HELPER, policy_path, outfile.name], stdout=fd).wait()
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
Summary: SELinux policy core utilities
|
Summary: SELinux policy core utilities
|
||||||
Name: policycoreutils
|
Name: policycoreutils
|
||||||
Version: 2.0.82
|
Version: 2.0.82
|
||||||
Release: 9%{?dist}
|
Release: 10%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
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
|
||||||
|
@ -143,7 +143,7 @@ The policycoreutils-python package contains the management tools use to manage a
|
||||||
%{_mandir}/ru/man8/semanage.8*
|
%{_mandir}/ru/man8/semanage.8*
|
||||||
|
|
||||||
%post python
|
%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
|
exit 0
|
||||||
|
|
||||||
%package sandbox
|
%package sandbox
|
||||||
|
@ -167,7 +167,7 @@ The policycoreutils-python package contains the scripts to create graphical sand
|
||||||
%{_datadir}/sandbox/sandboxX.sh
|
%{_datadir}/sandbox/sandboxX.sh
|
||||||
|
|
||||||
%triggerin python -- selinux-policy
|
%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
|
exit 0
|
||||||
|
|
||||||
%post sandbox
|
%post sandbox
|
||||||
|
@ -306,7 +306,7 @@ fi
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%changelog
|
%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
|
- Make sepolgen-ifgen be quiet
|
||||||
|
|
||||||
* Wed Apr 21 2010 Dan Walsh <dwalsh@redhat.com> 2.0.82-8
|
* Wed Apr 21 2010 Dan Walsh <dwalsh@redhat.com> 2.0.82-8
|
||||||
|
|
Loading…
Reference in New Issue