|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
3a53f1b |
diff --exclude-from=exclude --exclude=sepolgen-1.0.16 --exclude=gui --exclude=po -N -u -r nsapolicycoreutils/Makefile policycoreutils-2.0.62/Makefile
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
55a7005 |
--- nsapolicycoreutils/Makefile 2008-08-28 09:34:24.000000000 -0400
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
3a53f1b |
+++ policycoreutils-2.0.62/Makefile 2009-02-18 16:52:27.000000000 -0500
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
55a7005 |
@@ -1,4 +1,4 @@
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
55a7005 |
-SUBDIRS = setfiles semanage load_policy newrole run_init secon audit2allow audit2why scripts sestatus semodule_package semodule semodule_link semodule_expand semodule_deps setsebool po
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
55a7005 |
+SUBDIRS = setfiles semanage load_policy newrole run_init secon audit2allow audit2why scripts sestatus semodule_package semodule semodule_link semodule_expand semodule_deps setsebool po gui
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
55a7005 |
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
55a7005 |
INOTIFYH = $(shell ls /usr/include/sys/inotify.h 2>/dev/null)
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
55a7005 |
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
3a53f1b |
diff --exclude-from=exclude --exclude=sepolgen-1.0.16 --exclude=gui --exclude=po -N -u -r nsapolicycoreutils/restorecond/restorecond.conf policycoreutils-2.0.62/restorecond/restorecond.conf
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
3a53f1b |
--- nsapolicycoreutils/restorecond/restorecond.conf 2009-02-18 16:44:47.000000000 -0500
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
3a53f1b |
+++ policycoreutils-2.0.62/restorecond/restorecond.conf 2009-02-23 11:32:21.000000000 -0500
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
3a53f1b |
@@ -5,3 +5,7 @@
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
3a53f1b |
/var/run/utmp
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
3a53f1b |
/var/log/wtmp
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
3a53f1b |
~/*
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
3a53f1b |
+/root/.ssh
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
3a53f1b |
+/root/.ssh/*
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
3a53f1b |
+
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
3a53f1b |
+
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
3a53f1b |
diff --exclude-from=exclude --exclude=sepolgen-1.0.16 --exclude=gui --exclude=po -N -u -r nsapolicycoreutils/scripts/fixfiles policycoreutils-2.0.62/scripts/fixfiles
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
3a53f1b |
--- nsapolicycoreutils/scripts/fixfiles 2009-02-18 16:44:47.000000000 -0500
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
3a53f1b |
+++ policycoreutils-2.0.62/scripts/fixfiles 2009-02-19 10:07:49.000000000 -0500
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
3a53f1b |
@@ -122,7 +122,7 @@
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
3a53f1b |
fi
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
3a53f1b |
if [ ! -z "$RPMFILES" ]; then
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
3a53f1b |
for i in `echo "$RPMFILES" | sed 's/,/ /g'`; do
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
3a53f1b |
- rpmlist $i | ${RESTORECON} ${OUTFILES} ${FORCEFLAG} $* -i -f - 2>&1 >> $LOGFILE
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
3a53f1b |
+ rpmlist $i | ${RESTORECON} ${OUTFILES} ${FORCEFLAG} $* -R -i -f - 2>&1 >> $LOGFILE
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
3a53f1b |
done
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
3a53f1b |
exit $?
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
3a53f1b |
fi
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
diff --exclude-from=exclude --exclude=sepolgen-1.0.16 --exclude=gui --exclude=po -N -u -r nsapolicycoreutils/semanage/semanage policycoreutils-2.0.62/semanage/semanage
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
--- nsapolicycoreutils/semanage/semanage 2009-02-18 16:44:47.000000000 -0500
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
+++ policycoreutils-2.0.62/semanage/semanage 2009-03-12 09:22:45.000000000 -0400
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
@@ -464,10 +464,10 @@
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
else:
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
fd = open(input, 'r')
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
trans = seobject.semanageRecords(store)
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
- trans.begin()
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
+ trans.start()
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
for l in fd.readlines():
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
process_args(mkargv(l))
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
- trans.commit()
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
+ trans.finish()
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
else:
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
process_args(sys.argv[1:])
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
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
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
--- nsapolicycoreutils/semanage/seobject.py 2008-11-14 17:10:15.000000000 -0500
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
+++ policycoreutils-2.0.62/semanage/seobject.py 2009-03-31 08:54:25.000000000 -0400
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
@@ -281,15 +281,20 @@
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
global handle
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
if handle != None:
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
- self.transaction = True
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
self.sh = handle
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
else:
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
self.sh=get_handle(store)
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
- self.transaction = False
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
+ self.transaction = False
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
def deleteall(self):
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
raise ValueError(_("Not yet implemented"))
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
+ def start(self):
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
+ if self.transaction:
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
+ raise ValueError(_("Semanage transaction already in progress"))
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
+ self.begin()
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
+ self.transaction = True
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
+
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
def begin(self):
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
if self.transaction:
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
return
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
@@ -303,6 +308,12 @@
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
if rc < 0:
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
raise ValueError(_("Could not commit semanage transaction"))
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
+ def finish(self):
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
+ if not self.transaction:
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
+ raise ValueError(_("Semanage transaction not in progress"))
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
+ self.transaction = False
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
+ self.commit()
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
+
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
class permissiveRecords(semanageRecords):
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
def __init__(self, store):
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
28777e8 |
semanageRecords.__init__(self, store)
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
@@ -328,6 +339,7 @@
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
def add(self, type):
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
+ import glob
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
name = "permissive_%s" % type
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
dirname = "/var/lib/selinux"
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
os.chdir(dirname)
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
@@ -351,16 +363,19 @@
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
fd.close()
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
rc = semanage_module_install(self.sh, data, len(data));
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
- if rc < 0:
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
- raise ValueError(_("Could not set permissive domain %s (module installation failed)") % name)
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
-
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
- self.commit()
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
+ if rc >= 0:
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
+ self.commit()
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
for root, dirs, files in os.walk("tmp", topdown=False):
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
for name in files:
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
os.remove(os.path.join(root, name))
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
for name in dirs:
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
os.rmdir(os.path.join(root, name))
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
+ os.removedirs("tmp")
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
+ for i in glob.glob("permissive_%s.*" % type):
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
+ os.remove(i)
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
+ if rc < 0:
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
+ raise ValueError(_("Could not set permissive domain %s (module installation failed)") % name)
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
def delete(self, name):
|
|
![](https://seccdn.libravatar.org/avatar/736367bde6478dadf14113cbc0c504521dd994dc28b5fd55dacf3eaee94ae556?s=16&d=retro) |
e5ab0eb |
for n in name.split():
|