[PATCH] selinux: check for failed kmalloc in security_sid_to_context()
commit3220ee4a7afa92cc7315f9f74b64bb8a7f9b1320
authorSerge E. Hallyn <serue@us.ibm.com>
Mon, 15 May 2006 16:43:48 +0000 (15 09:43 -0700)
committerChris Wright <chrisw@sous-sol.org>
Sat, 20 May 2006 22:00:31 +0000 (20 15:00 -0700)
tree8b7929c1bdb5e73e94782306fc457ae3312cdfb2
parent39970bdd43f953f204f1bcbdf1d97dc2d78df17f
[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>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
security/selinux/ss/services.c