-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 We need to delete all modifications before we re-add them, otherwise we end up with conflicts on user/login mappings. This patch looks good to me. acked. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlJph6EACgkQrlYvE4MpobPW1QCdHNpLIzTF0mkn/7q8TJE/sNYi xegAn32VlxNrrIBqTnQ9w+fpmFJZdlU5 =vdCH -----END PGP SIGNATURE-----
>From 93934bf933e5a32f0ce4af0da5ca44410dd4859a Mon Sep 17 00:00:00 2001 From: Dan Walsh <dwalsh@xxxxxxxxxx> Date: Thu, 24 Oct 2013 16:05:11 -0400 Subject: [PATCH 2/2] Need to delete all managed objects before readding them --- policycoreutils/semanage/semanage | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/policycoreutils/semanage/semanage b/policycoreutils/semanage/semanage index e055ee3..bd6c526 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)) -- 1.8.3.1