diff --git a/policycoreutils/semanage/semanage b/policycoreutils/semanage/semanage index e055ee37..bd6c5265 100644 --- a/policycoreutils/semanage/semanage +++ b/policycoreutils/semanage/semanage @@ -667,8 +667,9 @@ def setupDontauditParser(subparsers): def handleExport(args): manageditems=[ "boolean", "login", "interface", "user", "port", "node", "fcontext", "module"] for i in manageditems: - OBJECT = object_dict[i]() print "%s -D" % i + for i in manageditems: + OBJECT = object_dict[i]() for c in OBJECT.customized(): print "%s %s" % (i, str(c)) diff --git a/policycoreutils/semanage/seobject.py b/policycoreutils/semanage/seobject.py index e1980909..b3018f3e 100644 --- a/policycoreutils/semanage/seobject.py +++ b/policycoreutils/semanage/seobject.py @@ -958,7 +958,7 @@ class seluserRecords(semanageRecords): keys = ddict.keys() keys.sort() for k in keys: - l.append("-a -l %s -r %s -R '%s' %s" % (ddict[k][1], ddict[k][2], ddict[k][3], k)) + l.append("-a -L %s -r %s -R '%s' %s" % (ddict[k][1], ddict[k][2], ddict[k][3], k)) return l def list(self, heading = 1, locallist = 0):