Skip to content
Snippets Groups Projects
Unverified Commit af0c288f authored by Christian Boltz's avatar Christian Boltz
Browse files

fix capabilities in apparmor.vim

apparmor/apparmor!461 /
e92da079 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 60b00578)
parent 0d8e4cda
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment