Skip to content

Commit

Permalink
selinux: remove secondary ops call to unix_stream_connect
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
James Morris committed Jan 29, 2009
1 parent 2cbbd19 commit 5c4054c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -3997,10 +3997,6 @@ static int selinux_socket_unix_stream_connect(struct socket *sock,
struct avc_audit_data ad;
int err;

err = secondary_ops->unix_stream_connect(sock, other, newsk);
if (err)
return err;

isec = SOCK_INODE(sock)->i_security;
other_isec = SOCK_INODE(other)->i_security;

Expand Down

0 comments on commit 5c4054c

Please sign in to comment.