Only return writeable files that are enabled

Signed-off-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
Dan Walsh 2013-11-08 08:17:29 -05:00 committed by Stephen Smalley
parent 635e803e1c
commit dc866db4dc

View File

@ -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