git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Allow passing O_PATH descriptors via SCM_RIGHTS datagrams
[pandora-kernel.git]
/
net
/
unix
/
garbage.c
diff --git
a/net/unix/garbage.c
b/net/unix/garbage.c
index
f89f83b
..
b6f4b99
100644
(file)
--- a/
net/unix/garbage.c
+++ b/
net/unix/garbage.c
@@
-104,7
+104,7
@@
struct sock *unix_get_socket(struct file *filp)
/*
* Socket ?
*/
- if (S_ISSOCK(inode->i_mode)) {
+ if (S_ISSOCK(inode->i_mode)
&& !(filp->f_mode & FMODE_PATH)
) {
struct socket *sock = SOCKET_I(inode);
struct sock *s = sock->sk;