From d245ba3574bb55c38e45f234fb394af5324367c9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 27 Jul 2016 16:00:44 -0400 Subject: [PATCH] fuse: Always fail X_OK in access() Pointed out by Ray Strode. --- document-portal/xdp-fuse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/document-portal/xdp-fuse.c b/document-portal/xdp-fuse.c index dd2f2d723..7abf2f163 100644 --- a/document-portal/xdp-fuse.c +++ b/document-portal/xdp-fuse.c @@ -2159,7 +2159,8 @@ xdp_fuse_access (fuse_req_t req, fuse_ino_t ino, int mask) else { if (((mask & R_OK) && !app_can_see_doc (entry, inode->app_id)) || - ((mask & W_OK) && !app_can_write_doc (entry, inode->app_id))) + ((mask & W_OK) && !app_can_write_doc (entry, inode->app_id)) || + (mask & X_OK)) { fuse_reply_err (req, EACCES); return;