]> git.pld-linux.org Git - packages/kernel.git/commitdiff
ratelimit error msg
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 16 Mar 2009 11:26:05 +0000 (11:26 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    kernel-apparmor.patch -> 1.1.2.5.2.1

kernel-apparmor.patch

index 3bed838970d7e9d2ae7f95fcc1bd987ac3dba9bb..c8e64cd57ffb4812929c4fc354b8ca6f7eca8b3c 100644 (file)
@@ -5309,8 +5309,8 @@ diff -uprN e/security/apparmor/main.c f/security/apparmor/main.c
 +      ab = audit_log_start(audit_cxt, sa->gfp_mask, type);
 +
 +      if (!ab) {
-+              AA_ERROR("Unable to log event (%d) to audit subsys\n",
-+                       type);
++              if (printk_ratelimit())
++                      AA_ERROR("Unable to log event (%d) to audit subsys\n",type);
 +               /* don't fail operations in complain mode even if logging
 +                * fails */
 +              return type == AUDIT_APPARMOR_ALLOWED ? 0 : -ENOMEM;
This page took 0.072358 seconds and 4 git commands to generate.