From: Djalal Harouni Date: Wed, 22 Oct 2014 14:45:04 +0000 (+0100) Subject: message: switch to fget_raw() to allow passing O_PATH file descriptors X-Git-Tag: upstream/0.20141102.012929utc~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ee66b27fa342dd043bfa403d2957ecd52895150;p=platform%2Fcore%2Fsystem%2Fkdbus-bus.git message: switch to fget_raw() to allow passing O_PATH file descriptors Signed-off-by: Djalal Harouni --- diff --git a/message.c b/message.c index cb45bc6..579ad76 100644 --- a/message.c +++ b/message.c @@ -232,9 +232,10 @@ static int kdbus_msg_scan_items(struct kdbus_conn *conn, /* * Verify the fd and increment the - * usage count + * usage count. Use fget_raw() to allow + * passing O_PATH fds */ - if (fd < 0 || !(f = fget(fd))) + if (fd < 0 || !(f = fget_raw(fd))) return -EBADF; kmsg->fds[i] = f;