From: Djalal Harouni Date: Wed, 22 Oct 2014 14:39:27 +0000 (+0100) Subject: message: we want to allow O_PATHed file descriptors X-Git-Tag: upstream/0.20141102.012929utc~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec97d9b9bdae3f7b92a9d556912e18e377f0adee;p=platform%2Fcore%2Fsystem%2Fkdbus-bus.git message: we want to allow O_PATHed file descriptors Signed-off-by: Djalal Harouni --- diff --git a/message.c b/message.c index 1c5f1b0..cb45bc6 100644 --- a/message.c +++ b/message.c @@ -96,7 +96,7 @@ static int kdbus_handle_check_file(struct file *file) if (!S_ISSOCK(inode->i_mode)) return 0; - if (!(file->f_mode & FMODE_PATH)) + if (file->f_mode & FMODE_PATH) return 0; sock = SOCKET_I(inode);