]> err.no Git - linux-2.6/commit
[PATCH] selinux: check for failed kmalloc in security_sid_to_context()
authorSerge E. Hallyn <serue@us.ibm.com>
Mon, 15 May 2006 16:43:48 +0000 (09:43 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 15 May 2006 18:20:54 +0000 (11:20 -0700)
commit0cccca06f9870eb6daa89357b8a99ad041865553
tree216251e4cbbdbb9509ed0b6fc769050ece2fb93e
parent9be2f7c38e0bd64e8a0f74ea68df1e73e2ddfcc3
[PATCH] selinux: check for failed kmalloc in security_sid_to_context()

Check for NULL kmalloc return value before writing to it.

Signed-off-by: Serge E. Hallyn <serue@us.ibm.com>
Acked-by: James Morris <jmorris@namei.org>
Cc: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
security/selinux/ss/services.c