ede3b9fa12
- disable write cache if filesystem is read-only and don't bail out (bsc#1069906, bsc#1074429) OBS-URL: https://build.opensuse.org/request/show/563667 OBS-URL: https://build.opensuse.org/package/show/security:apparmor/apparmor?expand=0&rev=199
12 lines
435 B
Diff
12 lines
435 B
Diff
--- parser/parser_main.c
|
|
+++ parser/parser_main.c 2018/01/11 16:52:00
|
|
@@ -1124,7 +1124,7 @@
|
|
retval = aa_policy_cache_new(&policy_cache, features,
|
|
AT_FDCWD, cacheloc, max_caches);
|
|
if (retval) {
|
|
- if (errno != ENOENT && errno != EEXIST) {
|
|
+ if (errno != ENOENT && errno != EEXIST && errno != EROFS) {
|
|
PERROR(_("Failed setting up policy cache (%s): %s\n"),
|
|
cacheloc, strerror(errno));
|
|
return 1;
|