[PATCH] selinux: check for failed kmalloc in security_sid_to_context()
authorSerge E. Hallyn <[email protected]>
Mon, 15 May 2006 16:43:48 +0000 (09:43 -0700)
committerLinus Torvalds <[email protected]>
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 <[email protected]>
Acked-by: James Morris <[email protected]>
Cc: Stephen Smalley <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
security/selinux/ss/services.c