mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
Move the cache to /var/cache
Let's not store a bunch of automatically generated binary files in /etc.
AppArmor 3.0 will store the cache in /var/cache and most distros
(openSUSE, Debian, and soon Ubuntu) moved it there already.
Bug-Debian: https://bugs.debian.org/904637
(cherry picked from commit 3d21cf0e32
)
Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -1272,12 +1272,7 @@ int main(int argc, char *argv[])
|
||||
uint16_t max_caches = write_cache && cond_clear_cache ? (uint16_t) (-1) : 0;
|
||||
|
||||
if (!cacheloc[0]) {
|
||||
char *tmp;
|
||||
|
||||
if (asprintf(&tmp, "%s/cache.d", basedir) == -1) {
|
||||
PERROR(_("Memory allocation error."));
|
||||
return 1;
|
||||
}
|
||||
char *tmp = "/var/cache/apparmor";
|
||||
cacheloc[0] = tmp;
|
||||
cacheloc_n = 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user