]> git.pld-linux.org Git - packages/apparmor-parser.git/blobdiff - apparmor-parser-cache-rebuild.patch
- up to 3.0.1
[packages/apparmor-parser.git] / apparmor-parser-cache-rebuild.patch
index 97954bc79b4eae1e18e7c6244a69bea9fe1dea45..f08efcbb263aff5df53d0bc93250ee4c969127cf 100644 (file)
@@ -13,15 +13,14 @@ diff -ur apparmor-2.12.org/parser/parser_main.c apparmor-2.12/parser/parser_main
 diff -ur apparmor-2.12.org/parser/policy_cache.c apparmor-2.12/parser/policy_cache.c
 --- apparmor-2.12.org/parser/policy_cache.c    2017-12-24 09:48:31.000000000 +0100
 +++ apparmor-2.12/parser/policy_cache.c        2018-01-10 09:30:27.533641865 +0100
-@@ -78,6 +78,15 @@
+@@ -78,6 +78,14 @@
        cache_tstamp = t;
  }
  
 +void cache_tstamp_final_check(void)
 +{
 +      if (tstamp_cmp(cache_tstamp, mru_policy_tstamp) != 0) {
-+              if (debug_cache)
-+                      pwarn("%s: cache mtime is different than policy files mtimes\n", progname);
++              pwarn(WARN_CACHE, "%s: cache mtime is different than policy files mtimes\n", progname);
 +              mru_skip_cache = 1;
 +      }
 +}
This page took 0.031785 seconds and 4 git commands to generate.