File disable-cache-on-ro-fs.diff of Package apparmor.9207
--- 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;