linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [patch 3/5] Apply the PG_sensitive flag to audit subsystem
@ 2009-05-20 18:50 Larry H.
  2009-05-30 17:21 ` Linus Torvalds
  0 siblings, 1 reply; 3+ messages in thread
From: Larry H. @ 2009-05-20 18:50 UTC (permalink / raw)
  To: linux-kernel; +Cc: Linus Torvalds, linux-mm, Ingo Molnar, pageexec, faith

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@subreption.com>

---
 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, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-05-30 17:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-20 18:50 [patch 3/5] Apply the PG_sensitive flag to audit subsystem Larry H.
2009-05-30 17:21 ` Linus Torvalds
2009-05-30 17:33   ` Larry H.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox