From: Konrad Lipinski Date: Fri, 15 Jul 2016 11:15:05 +0000 (+0200) Subject: kdbus: allow unix domain socket fd passing X-Git-Tag: submit/tizen/20160719.030401^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F54%2F80254%2F1;p=platform%2Fkernel%2Flinux-exynos.git kdbus: allow unix domain socket fd passing Change-Id: Ifafec44da924ec8ed677629606c92a45e7171636 --- 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; }