mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-05 00:35:13 +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
This commit is contained in:
@@ -1241,12 +1241,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