]> nv-tegra.nvidia Code Review - linux-2.6.git/commit - security/smack
Smack: check for 'struct socket' with NULL sk
authorAhmed S. Darwish <darwish.07@gmail.com>
Wed, 13 Feb 2008 23:03:34 +0000 (15:03 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 14 Feb 2008 00:21:20 +0000 (16:21 -0800)
commit2e1d146a19f2941aec08f60ca67fb2763baad595
tree14831c6332b2d4004a7551354be46526a0c6f426
parentcba44359d15ac7a3bca2c9199b7ff403d7edc69e
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 <darwish.07@gmail.com>
Acked-by: Casey Schaufler <casey@schuafler-ca.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
security/smack/smack_lsm.c