Fix support for FUSE_POSIX_ACL
authorMarcin Sulikowski <marcin.sulikowski@editshare.com>
Thu, 3 Aug 2017 14:24:39 +0000 (16:24 +0200)
committerNikolaus Rath <Nikolaus@rath.org>
Mon, 7 Aug 2017 13:53:02 +0000 (15:53 +0200)
commit0daa3b516940ebc854613573fa7505ae77ede5e5
treeb17866973f23e89d91d569662f20cc1fdd6910dd
parent4be90a6f9a9f242b1f480024a7cb3c749fcf5390
Fix support for FUSE_POSIX_ACL

The kernel may set the FUSE_POSIX_ACL flag in the FUSE_INIT request to
notify the userspace daemon that the OS does support POSIX ACLs for FUSE
file systems. If the filesystem implementation wants to enable POSIX
ACLs, it has to reply with the FUSE_POSIX_ACL flag set. However, the
reply to the kernel never includes this flag, even if the implementation
expresses the need by setting the FUSE_CAP_POSIX_ACL flag in the
fuse_conn_info::want variable passed to its init callback. We modify the
library to handle requests for FUSE_CAP_POSIX_ACL correctly, i.e., set
the FUSE_POSIX_ACL flag in the FUSE_INIT reply to the kernel.

Signed-off-by: Marcin Sulikowski <marcin.sulikowski@editshare.com>
ChangeLog.rst
lib/fuse_lowlevel.c