mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
Description: use -QTK instead of -p in verify_policy(). '-p' only runs the
preprocessor and is not as thorough as -QTK (--skip-kernel-load, --skip-read-cache, --skip-cache). Like with '-p', '-QTK' can be run without privilege but it will catch things like conflictings 'x' modifiers. Acked-By: Jamie Strandboge <jamie@canonical.com> Acked-by: Seth Arnold <seth.arnold@canonical.com>
This commit is contained in:
@@ -279,7 +279,7 @@ def verify_policy(policy):
|
||||
os.write(f, policy)
|
||||
os.close(f)
|
||||
|
||||
rc, out = cmd([exe, '-p', fn])
|
||||
rc, out = cmd([exe, '-QTK', fn])
|
||||
os.unlink(fn)
|
||||
if rc == 0:
|
||||
return True
|
||||
|
Reference in New Issue
Block a user