mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 10:07:12 +00:00
fix capabilities in apparmor.vim
https://gitlab.com/apparmor/apparmor/-/merge_requests/461 / e92da079ca12e776991bd36524430bd67c1cb72a changed creating the capabilities to use a script. A side effect is that the list is now separated by \n instead of spaces. Adjust create-apparmor.vim.py to the new output. (cherry picked from commit 60b005788e79c1be7276349242e0cc97b99f7118)
This commit is contained in:
parent
0d8e4cda3f
commit
af0c288fcd
@ -50,7 +50,7 @@ if rc != 0:
|
||||
sys.stderr.write("make list_capabilities failed: " + output)
|
||||
exit(rc)
|
||||
|
||||
capabilities = re.sub('CAP_', '', output.strip()).lower().split(" ")
|
||||
capabilities = re.sub('CAP_', '', output.strip()).lower().split('\n')
|
||||
benign_caps = []
|
||||
for cap in capabilities:
|
||||
if cap not in danger_caps:
|
||||
|
Loading…
x
Reference in New Issue
Block a user