aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorJames Morris <jmorris@namei.org>2009-01-28 20:34:53 -0500
committerJames Morris <jmorris@namei.org>2009-01-29 16:55:15 -0500
commit5c4054ccfafb6a446e9b65c524af1741656c6c60 (patch)
tree6d54e11d617e4daf53c3afc5c1edb321b32d9315 /security
parent2cbbd19812b7636c1c37bcf50c403e7af5278d73 (diff)
selinux: remove secondary ops call to unix_stream_connect
Remove secondary ops call to unix_stream_connect, which is a noop in capabilities. Acked-by: Serge Hallyn <serue@us.ibm.com> Acked-by: Eric Paris <eparis@redhat.com> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security')
-rw-r--r--security/selinux/hooks.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 0bd36a17587c..25198e9896fa 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -3997,10 +3997,6 @@ static int selinux_socket_unix_stream_connect(struct socket *sock,
3997 struct avc_audit_data ad; 3997 struct avc_audit_data ad;
3998 int err; 3998 int err;
3999 3999
4000 err = secondary_ops->unix_stream_connect(sock, other, newsk);
4001 if (err)
4002 return err;
4003
4004 isec = SOCK_INODE(sock)->i_security; 4000 isec = SOCK_INODE(sock)->i_security;
4005 other_isec = SOCK_INODE(other)->i_security; 4001 other_isec = SOCK_INODE(other)->i_security;
4006 4002