mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 22:05:27 +00:00
disable write cache if filesystem is read-only
... and don't bail out Patch by Thorsten Kukuk <kukuk@suse.com> References: https://bugzilla.opensuse.org/show_bug.cgi?id=1069906 https://bugzilla.opensuse.org/show_bug.cgi?id=1074429
This commit is contained in:
committed by
Christian Boltz
parent
6344b8ecc3
commit
924983e702
@@ -1124,7 +1124,7 @@ int main(int argc, char *argv[])
|
||||
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;
|
||||
|
Reference in New Issue
Block a user