Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37206
b: refs/heads/master
c: 2148ccc
h: refs/heads/master
v: v3
  • Loading branch information
David Woodhouse authored and Linus Torvalds committed Sep 29, 2006
1 parent f324e4f commit 1d7ad7a
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: 9a69d1aeccf169d9a1e442c07d3a6e87f06a7b49
refs/heads/master: 2148ccc437a9eac9f0d4b3c27cb1e41f6a48194c
4 changes: 3 additions & 1 deletion trunk/security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -3619,7 +3619,9 @@ static void selinux_sock_graft(struct sock* sk, struct socket *parent)
struct inode_security_struct *isec = SOCK_INODE(parent)->i_security;
struct sk_security_struct *sksec = sk->sk_security;

isec->sid = sksec->sid;
if (sk->sk_family == PF_INET || sk->sk_family == PF_INET6 ||
sk->sk_family == PF_UNIX)
isec->sid = sksec->sid;

selinux_netlbl_sock_graft(sk, parent);
}
Expand Down

0 comments on commit 1d7ad7a

Please sign in to comment.