mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
test-file.py: Document that w doesn't cover a yet
This is the code "translation" of https://bugs.launchpad.net/apparmor/+bug/1385474
This commit is contained in:
@@ -585,6 +585,28 @@ class FileCoveredTest_05(FileCoveredTest):
|
||||
('/foo mrwPx -> bar,' , [ False , False , False , False ]),
|
||||
]
|
||||
|
||||
class FileCoveredTest_06(FileCoveredTest):
|
||||
rule = 'deny /foo w,'
|
||||
|
||||
tests = [
|
||||
# rule equal strict equal covered covered exact
|
||||
('/foo w,' , [ False , False , False , False ]),
|
||||
('/foo a,' , [ False , False , False , False ]),
|
||||
('deny /foo w,' , [ True , True , True , True ]),
|
||||
('deny /foo a,' , [ False , False , False , False ]), # XXX should be covered
|
||||
]
|
||||
|
||||
class FileCoveredTest_07(FileCoveredTest):
|
||||
rule = '/foo w,'
|
||||
|
||||
tests = [
|
||||
# rule equal strict equal covered covered exact
|
||||
('/foo w,' , [ True , True , True , True ]),
|
||||
('/foo a,' , [ False , False , False , False ]), # XXX should be covered
|
||||
('deny /foo w,' , [ False , False , False , False ]),
|
||||
('deny /foo a,' , [ False , False , False , False ]),
|
||||
]
|
||||
|
||||
class FileCoveredTest_ManualOrInvalid(AATest):
|
||||
def AASetup(self):
|
||||
#FileRule# path, perms, exec_perms, target, owner, file_keyword, leading_perms
|
||||
|
Reference in New Issue
Block a user