-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This patch looks good to me. acked. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk/I+ggACgkQrlYvE4MpobOTqQCgjfcg1nHnRjyG5/+26OUqiymY R30AoMJsqod55s/2hpYOl+d5XTo698R4 =pkB5 -----END PGP SIGNATURE-----
>From ed16cde347be16cf123724885da080b542ea7d06 Mon Sep 17 00:00:00 2001 From: Dan Walsh <dwalsh@xxxxxxxxxx> Date: Mon, 30 Apr 2012 15:03:16 -0400 Subject: [PATCH 54/90] fcontext customized was not returning the customized equivalency records. This patches fixes this. --- policycoreutils/semanage/seobject.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/policycoreutils/semanage/seobject.py b/policycoreutils/semanage/seobject.py index 12cd0fe..28cf30e 100644 --- a/policycoreutils/semanage/seobject.py +++ b/policycoreutils/semanage/seobject.py @@ -1925,6 +1925,10 @@ class fcontextRecords(semanageRecords): for k in keys: if fcon_dict[k]: l.append("-a -f '%s' -t %s '%s'" % (k[1], fcon_dict[k][2], k[0])) + + if len(self.equiv): + for target in self.equiv.keys(): + l.append("-a -e %s %s" % (target, self.equiv[target])) return l def list(self, heading = 1, locallist = 0 ): -- 1.7.10.2