[pkg-apparmor] Bug#883584: [apparmor] Bug#883584: A reload deletes /etc/apparmor.d/cache/CACHEDIR.TAG

John Johansen john.johansen at canonical.com
Mon Jan 8 10:21:26 UTC 2018


On 01/07/2018 07:26 AM, intrigeri wrote:
> intrigeri:
>> intrigeri:
>>> Dear upstream/parser developers, would it feel crazy to modify
>>> clear_cache_cb to ignore the passed file if its basename is
>>> CACHEDIR.TAG? Or should _aa_dirat_for_each get a list of excluded file
>>> names as a new argument, or something similar?
> 
>>> If any of these approaches seems acceptable, is anyone around willing
>>> to write this patch, or should I try to find a C person elsewhere?
> 
>> Ping?
> 
> After thinking about it, as discussed on the upstream AppArmor mailing
> list I'd rather move the binary cache to /var/cache which should make
> this suggested change unnecessary.
> 
> Sorry for the too hasty ping!
> 

Well that isn't reason to add another file type that will be skipped. It
should be a fairly easy modification. In fact the cache isn't necessarily
the only dir we might want to skip so

  SKIPDIR.TAG
or
  IGNOREDIR.TAG

might even be better to have



More information about the pkg-apparmor-team mailing list