diff options
author | Ahmed S. Darwish <darwish.07@gmail.com> | 2008-02-14 00:03:34 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-14 01:21:20 +0100 |
commit | 2e1d146a19f2941aec08f60ca67fb2763baad595 (patch) | |
tree | 14831c6332b2d4004a7551354be46526a0c6f426 /security/dummy.c | |
parent | udf: fix udf_add_free_space (diff) | |
download | linux-2e1d146a19f2941aec08f60ca67fb2763baad595.tar.xz linux-2e1d146a19f2941aec08f60ca67fb2763baad595.zip |
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>
Diffstat (limited to 'security/dummy.c')
0 files changed, 0 insertions, 0 deletions