22 lines
1.1 KiB
Diff
22 lines
1.1 KiB
Diff
diff -up policycoreutils-2.0.83/gui/fcontextPage.py.old policycoreutils-2.0.83/gui/fcontextPage.py
|
|
--- policycoreutils-2.0.83/gui/fcontextPage.py.old 2010-08-23 11:23:31.000000000 -0400
|
|
+++ policycoreutils-2.0.83/gui/fcontextPage.py 2010-08-23 11:23:48.000000000 -0400
|
|
@@ -185,14 +185,14 @@ class fcontextPage(semanagePage):
|
|
self.error(e.args[0])
|
|
|
|
def add(self):
|
|
+ ftype=["", "--", "-d", "-c", "-b", "-s", "-l", "-p" ]
|
|
fspec=self.fcontextEntry.get_text().strip()
|
|
type=self.fcontextTypeEntry.get_text().strip()
|
|
mls=self.fcontextMLSEntry.get_text().strip()
|
|
list_model=self.fcontextFileTypeCombo.get_model()
|
|
- iter = self.fcontextFileTypeCombo.get_active_iter()
|
|
- ftype=list_model.get_value(iter,0)
|
|
+ active = self.fcontextFileTypeCombo.get_active()
|
|
self.wait()
|
|
- (rc, out) = commands.getstatusoutput("semanage fcontext -a -t %s -r %s -f '%s' '%s'" % (type, mls, ftype, fspec))
|
|
+ (rc, out) = commands.getstatusoutput("semanage fcontext -a -t %s -r %s -f '%s' '%s'" % (type, mls, ftype[active], fspec))
|
|
self.ready()
|
|
if rc != 0:
|
|
self.error(out)
|