aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorSeth Forshee <seth.forshee@canonical.com>2016-08-29 09:46:37 -0400
committerMiklos Szeredi <mszeredi@redhat.com>2016-10-01 01:32:32 -0400
commit60bcc88ad185d512f5718f2f8dcccb483ea8fb73 (patch)
tree898d528618e9091ed7a9191ee736b57073b8a1ad /include/uapi/linux
parent5e940c1dd3c1f7561924954eecee956ec277a79b (diff)
fuse: Add posix ACL support
Add a new INIT flag, FUSE_POSIX_ACL, for negotiating ACL support with userspace. When it is set in the INIT response, ACL support will be enabled. ACL support also implies "default_permissions". When ACL support is enabled, the kernel will cache and have responsibility for enforcing ACLs. ACL xattrs will be passed to userspace, which is responsible for updating the ACLs in the filesystem, keeping the file mode in sync, and inheritance of default ACLs when new filesystem nodes are created. Signed-off-by: Seth Forshee <seth.forshee@canonical.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/fuse.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/fuse.h b/include/uapi/linux/fuse.h
index 14ca2f10d354..42fa977e3b14 100644
--- a/include/uapi/linux/fuse.h
+++ b/include/uapi/linux/fuse.h
@@ -111,6 +111,7 @@
111 * 111 *
112 * 7.26 112 * 7.26
113 * - add FUSE_HANDLE_KILLPRIV 113 * - add FUSE_HANDLE_KILLPRIV
114 * - add FUSE_POSIX_ACL
114 */ 115 */
115 116
116#ifndef _LINUX_FUSE_H 117#ifndef _LINUX_FUSE_H
@@ -242,6 +243,7 @@ struct fuse_file_lock {
242 * FUSE_NO_OPEN_SUPPORT: kernel supports zero-message opens 243 * FUSE_NO_OPEN_SUPPORT: kernel supports zero-message opens
243 * FUSE_PARALLEL_DIROPS: allow parallel lookups and readdir 244 * FUSE_PARALLEL_DIROPS: allow parallel lookups and readdir
244 * FUSE_HANDLE_KILLPRIV: fs handles killing suid/sgid/cap on write/chown/trunc 245 * FUSE_HANDLE_KILLPRIV: fs handles killing suid/sgid/cap on write/chown/trunc
246 * FUSE_POSIX_ACL: filesystem supports posix acls
245 */ 247 */
246#define FUSE_ASYNC_READ (1 << 0) 248#define FUSE_ASYNC_READ (1 << 0)
247#define FUSE_POSIX_LOCKS (1 << 1) 249#define FUSE_POSIX_LOCKS (1 << 1)
@@ -263,6 +265,7 @@ struct fuse_file_lock {
263#define FUSE_NO_OPEN_SUPPORT (1 << 17) 265#define FUSE_NO_OPEN_SUPPORT (1 << 17)
264#define FUSE_PARALLEL_DIROPS (1 << 18) 266#define FUSE_PARALLEL_DIROPS (1 << 18)
265#define FUSE_HANDLE_KILLPRIV (1 << 19) 267#define FUSE_HANDLE_KILLPRIV (1 << 19)
268#define FUSE_POSIX_ACL (1 << 20)
266 269
267/** 270/**
268 * CUSE INIT request/reply flags 271 * CUSE INIT request/reply flags