Signed-off-by: Dan Walsh <dwalsh@xxxxxxxxxx> --- policycoreutils/sepolicy/sepolicy/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/policycoreutils/sepolicy/sepolicy/__init__.py b/policycoreutils/sepolicy/sepolicy/__init__.py index fd95c16..679725d 100644 --- a/policycoreutils/sepolicy/sepolicy/__init__.py +++ b/policycoreutils/sepolicy/sepolicy/__init__.py @@ -141,6 +141,9 @@ def get_writable_files(setype): for i in permlist: if i['target'] in attributes: continue + if "enabled" in i: + if not i["enabled"]: + continue if i['target'].endswith("_t"): if i['target'] not in file_types: continue -- 1.8.4.2 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.