-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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/ iEYEARECAAYFAlJpNj4ACgkQrlYvE4MpobNUEgCgivpaD8veT4OE/fWnVxzElnX2 tLoAniZN8BvHwa4rgNxI5LufxlEEpsoq =heAa -----END PGP SIGNATURE-----
>From 22408cb3ccf8305ba3adbd6e697ad5f02785341c Mon Sep 17 00:00:00 2001 From: Dan Walsh <dwalsh@xxxxxxxxxx> Date: Fri, 11 Oct 2013 08:59:26 -0400 Subject: [PATCH 54/74] <<none>> should be a valid type to be used with the semanage fcontext call Users want to add labels like semanage fcontext -t <<none>> '/foobar(/.*)?' This fix allows this to work. --- policycoreutils/semanage/seobject.py | 1 + 1 file changed, 1 insertion(+) diff --git a/policycoreutils/semanage/seobject.py b/policycoreutils/semanage/seobject.py index b32c4d9..3f35579 100644 --- a/policycoreutils/semanage/seobject.py +++ b/policycoreutils/semanage/seobject.py @@ -1673,6 +1673,7 @@ class fcontextRecords(semanageRecords): try: valid_types = sepolicy.info(sepolicy.ATTRIBUTE,"file_type")[0]["types"] valid_types += sepolicy.info(sepolicy.ATTRIBUTE,"device_node")[0]["types"] + valid_types.append("<<none>>") except RuntimeError: valid_types = [] -- 1.8.3.1