diff --git a/utils/vim/create-apparmor.vim.py b/utils/vim/create-apparmor.vim.py index 6a5f02a2f..b5df957af 100644 --- a/utils/vim/create-apparmor.vim.py +++ b/utils/vim/create-apparmor.vim.py @@ -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: