* Tue Mar 31 2009 Dan Walsh <dwalsh@redhat.com> 2.0.62-7
- Cleanup creation of permissive domains - Update po files
This commit is contained in:
parent
ca6c46fd19
commit
e5ab0eb59c
12111
policycoreutils-po.patch
12111
policycoreutils-po.patch
File diff suppressed because it is too large
Load Diff
@ -48,7 +48,7 @@ diff --exclude-from=exclude --exclude=sepolgen-1.0.16 --exclude=gui --exclude=po
|
||||
|
||||
diff --exclude-from=exclude --exclude=sepolgen-1.0.16 --exclude=gui --exclude=po -N -u -r nsapolicycoreutils/semanage/seobject.py policycoreutils-2.0.62/semanage/seobject.py
|
||||
--- nsapolicycoreutils/semanage/seobject.py 2008-11-14 17:10:15.000000000 -0500
|
||||
+++ policycoreutils-2.0.62/semanage/seobject.py 2009-03-12 09:25:27.000000000 -0400
|
||||
+++ policycoreutils-2.0.62/semanage/seobject.py 2009-03-31 08:54:25.000000000 -0400
|
||||
@@ -281,15 +281,20 @@
|
||||
global handle
|
||||
|
||||
@ -85,3 +85,35 @@ diff --exclude-from=exclude --exclude=sepolgen-1.0.16 --exclude=gui --exclude=po
|
||||
class permissiveRecords(semanageRecords):
|
||||
def __init__(self, store):
|
||||
semanageRecords.__init__(self, store)
|
||||
@@ -328,6 +339,7 @@
|
||||
|
||||
|
||||
def add(self, type):
|
||||
+ import glob
|
||||
name = "permissive_%s" % type
|
||||
dirname = "/var/lib/selinux"
|
||||
os.chdir(dirname)
|
||||
@@ -351,16 +363,19 @@
|
||||
fd.close()
|
||||
|
||||
rc = semanage_module_install(self.sh, data, len(data));
|
||||
- if rc < 0:
|
||||
- raise ValueError(_("Could not set permissive domain %s (module installation failed)") % name)
|
||||
-
|
||||
- self.commit()
|
||||
+ if rc >= 0:
|
||||
+ self.commit()
|
||||
|
||||
for root, dirs, files in os.walk("tmp", topdown=False):
|
||||
for name in files:
|
||||
os.remove(os.path.join(root, name))
|
||||
for name in dirs:
|
||||
os.rmdir(os.path.join(root, name))
|
||||
+ os.removedirs("tmp")
|
||||
+ for i in glob.glob("permissive_%s.*" % type):
|
||||
+ os.remove(i)
|
||||
+ if rc < 0:
|
||||
+ raise ValueError(_("Could not set permissive domain %s (module installation failed)") % name)
|
||||
|
||||
def delete(self, name):
|
||||
for n in name.split():
|
||||
|
@ -6,7 +6,7 @@
|
||||
Summary: SELinux policy core utilities
|
||||
Name: policycoreutils
|
||||
Version: 2.0.62
|
||||
Release: 6%{?dist}
|
||||
Release: 7%{?dist}
|
||||
License: GPLv2+
|
||||
Group: System Environment/Base
|
||||
Source: http://www.nsa.gov/selinux/archives/policycoreutils-%{version}.tgz
|
||||
@ -221,6 +221,10 @@ else
|
||||
fi
|
||||
|
||||
%changelog
|
||||
* Tue Mar 31 2009 Dan Walsh <dwalsh@redhat.com> 2.0.62-7
|
||||
- Cleanup creation of permissive domains
|
||||
- Update po files
|
||||
|
||||
* Mon Mar 23 2009 Dan Walsh <dwalsh@redhat.com> 2.0.62-6
|
||||
- Update po files
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user