mirror of
https://github.com/SELinuxProject/selinux
synced 2025-03-04 01:07:31 +00:00
Only return writeable files that are enabled
Signed-off-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
635e803e1c
commit
dc866db4dc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user