summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorKonrad Lipinski <konrad.l@samsung.com>2016-07-15 13:15:05 +0200
committerSeung-Woo Kim <sw0312.kim@samsung.com>2016-12-14 13:52:21 +0900
commit7e86301373b1abf537cdada73d0001098d56fcc5 (patch)
tree7b0190e6d64d025650b2483b9fe6876cf67831b8 /ipc
parent498537b074aacddd409bcad00bb7dd315bd4a9e4 (diff)
kdbus: allow unix domain socket fd passing
Change-Id: Ifafec44da924ec8ed677629606c92a45e7171636
Diffstat (limited to 'ipc')
-rw-r--r--ipc/kdbus/message.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/ipc/kdbus/message.c b/ipc/kdbus/message.c
index 80960756a329..4b1487a88c49 100644
--- a/ipc/kdbus/message.c
+++ b/ipc/kdbus/message.c
@@ -169,9 +169,6 @@ exit:
static int kdbus_handle_check_file(struct file *file)
{
- struct inode *inode = file_inode(file);
- struct socket *sock;
-
/*
* Don't allow file descriptors in the transport that themselves allow
* file descriptor queueing. This will eventually be allowed once both
@@ -181,16 +178,6 @@ static int kdbus_handle_check_file(struct file *file)
if (file->f_op == &kdbus_handle_ops)
return -EOPNOTSUPP;
- if (!S_ISSOCK(inode->i_mode))
- return 0;
-
- if (file->f_mode & FMODE_PATH)
- return 0;
-
- sock = SOCKET_I(inode);
- if (sock->sk && sock->ops && sock->ops->family == PF_UNIX)
- return -EOPNOTSUPP;
-
return 0;
}