mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Merge branch 'cboltz-utils-exclude-cache-d' into 'master'
is_skippable_dir(): add 'cache.d' to exclude list See merge request apparmor/apparmor!110 Acked-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
commit
67d84c8959
2 changed files with 3 additions and 1 deletions
|
@ -2048,7 +2048,7 @@ def is_skippable_file(path):
|
|||
return False
|
||||
|
||||
def is_skippable_dir(path):
|
||||
if re.search('^(.*/)?(disable|cache|force-complain|lxc|\.git)/?$', path):
|
||||
if re.search('^(.*/)?(disable|cache|cache\.d|force-complain|lxc|\.git)/?$', path):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
|
|
@ -484,6 +484,8 @@ class AaTest_is_skippable_dir(AATest):
|
|||
('lxc', True),
|
||||
('force-complain', True),
|
||||
('/etc/apparmor.d/cache', True),
|
||||
('/etc/apparmor.d/cache.d', True),
|
||||
('/etc/apparmor.d/cache.d/', True),
|
||||
('/etc/apparmor.d/lxc/', True),
|
||||
('/etc/apparmor.d/.git/', True),
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue