SOURCES (LINUX_2_6): kernel-apparmor-after-grsec_full.patch - ratelimit err...

arekm arekm at pld-linux.org
Mon Mar 16 18:42:41 CET 2009


Author: arekm                        Date: Mon Mar 16 17:42:41 2009 GMT
Module: SOURCES                       Tag: LINUX_2_6
---- Log message:
- ratelimit error messages

---- Files affected:
SOURCES:
   kernel-apparmor-after-grsec_full.patch (1.1.2.6 -> 1.1.2.7) 

---- Diffs:

================================================================
Index: SOURCES/kernel-apparmor-after-grsec_full.patch
diff -u SOURCES/kernel-apparmor-after-grsec_full.patch:1.1.2.6 SOURCES/kernel-apparmor-after-grsec_full.patch:1.1.2.7
--- SOURCES/kernel-apparmor-after-grsec_full.patch:1.1.2.6	Fri Mar 13 00:11:37 2009
+++ SOURCES/kernel-apparmor-after-grsec_full.patch	Mon Mar 16 18:42:35 2009
@@ -3096,7 +3096,7 @@
 +			printk(KERN_DEBUG "AppArmor: " fmt, ##args);	\
 +	} while (0)
 +
-+#define AA_ERROR(fmt, args...)	printk(KERN_ERR "AppArmor: " fmt, ##args)
++#define AA_ERROR(fmt, args...)	do { if (printk_ratelimit()) printk(KERN_ERR "AppArmor: " fmt, ##args) } while (0)
 +
 +/* struct aa_rlimit - rlimits settings for the profile
 + * @mask: which hard limits to set
================================================================

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



More information about the pld-cvs-commit mailing list