From: Ahmed S. Darwish Date: Wed, 13 Feb 2008 23:03:34 +0000 (-0800) Subject: Smack: check for 'struct socket' with NULL sk X-Git-Tag: v2.6.25-rc2~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e1d146a19f2941aec08f60ca67fb2763baad595;p=pandora-kernel.git Smack: check for 'struct socket' with NULL sk There's a small problem with smack and NFS. A similar report was also sent here: http://lkml.org/lkml/2007/10/27/85 I've also added similar checks in inode_{get/set}security(). Cheating from SELinux post_create_socket(), it does the same. [akpm@linux-foundation.org: remove uneeded BUG_ON()] Signed-off-by: Ahmed S. Darwish Acked-by: Casey Schaufler Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed