diff options
author | Trond Myklebust <trond.myklebust@fys.uio.no> | 2005-03-31 20:44:10 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-03-31 20:44:10 -0800 |
commit | 6a9a52cf8758e064c95bad4367f5ee9a7a852a37 (patch) | |
tree | 81faf6d426230c7cc7f7fcd4cbe99cfa17be194c | |
parent | 71cc52941ac4963e52435067e3654e000ad5ca39 (diff) | |
download | history-6a9a52cf8758e064c95bad4367f5ee9a7a852a37.tar.gz |
[PATCH] SELINUX: Fix i_sock reference.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | security/selinux/hooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 8c5dd09a89b407..eeed2e32875378 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -877,7 +877,7 @@ static int inode_doinit_with_dentry(struct inode *inode, struct dentry *opt_dent isec->initialized = 1; out: - if (inode->i_sock) { + if (S_ISSOCK(inode->i_mode)) { struct socket *sock = SOCKET_I(inode); if (sock->sk) { isec->sclass = socket_type_to_security_class(sock->sk->sk_family, |