[patch 3/5] Apply the PG_sensitive flag to audit subsystem
From: Larry H.
Date: Wed May 20 2009 - 14:50:43 EST
This patch deploys the use of the PG_sensitive page allocator flag
within the audit subsystem. It's not necessarily a high profile
target for use of this flag, but could be expected to contain
potentially sensitive information under some circumstances.
Signed-off-by: Larry H. <research@xxxxxxxxxxxxxx>
---
kernel/audit.c | 3 +++
1 file changed, 3 insertions(+)
Index: linux-2.6/kernel/audit.c
===================================================================
--- linux-2.6.orig/kernel/audit.c
+++ linux-2.6/kernel/audit.c
@@ -1061,6 +1061,9 @@ static struct audit_buffer * audit_buffe
}
spin_unlock_irqrestore(&audit_freelist_lock, flags);
+ if (!(gfp_mask & GFP_SENSITIVE))
+ gfp_mask |= GFP_SENSITIVE;
+
if (!ab) {
ab = kmalloc(sizeof(*ab), gfp_mask);
if (!ab)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/