SOURCES (LINUX_2_6): kernel-apparmor.patch ratelimit error msg

arekm arekm at pld-linux.org
Mon Mar 16 12:26:47 CET 2009


Author: arekm                        Date: Mon Mar 16 11:26:46 2009 GMT
Module: SOURCES                       Tag: LINUX_2_6
---- Log message:
ratelimit error msg

---- Files affected:
SOURCES:
   kernel-apparmor.patch (1.1.2.5 -> 1.1.2.6) 

---- Diffs:

================================================================
Index: SOURCES/kernel-apparmor.patch
diff -u SOURCES/kernel-apparmor.patch:1.1.2.5 SOURCES/kernel-apparmor.patch:1.1.2.6
--- SOURCES/kernel-apparmor.patch:1.1.2.5	Fri Oct 31 16:33:03 2008
+++ SOURCES/kernel-apparmor.patch	Mon Mar 16 12:26:41 2009
@@ -5309,8 +5309,8 @@
 +	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;
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/kernel-apparmor.patch?r1=1.1.2.5&r2=1.1.2.6&f=u



More information about the pld-cvs-commit mailing list