Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131675
b: refs/heads/master
c: 09c50b4
h: refs/heads/master
i:
  131673: 6081b8f
  131671: ccf90ee
v: v3
  • Loading branch information
Paul Moore authored and James Morris committed Feb 22, 2009
1 parent 694eb6d commit 67b4f2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 586c25003707067f074043d80fb2071671c58db0
refs/heads/master: 09c50b4a52c01a1f450b8eec819089e228655bfb
4 changes: 3 additions & 1 deletion trunk/security/selinux/netlabel.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,10 @@ int selinux_netlbl_socket_setsockopt(struct socket *sock,
lock_sock(sk);
rc = netlbl_sock_getattr(sk, &secattr);
release_sock(sk);
if (rc == 0 && secattr.flags != NETLBL_SECATTR_NONE)
if (rc == 0)
rc = -EACCES;
else if (rc == -ENOMSG)
rc = 0;
netlbl_secattr_destroy(&secattr);
}

Expand Down

0 comments on commit 67b4f2f

Please sign in to comment.