From 0453f48e509077c83129b8aaceecb4e4430c8309 Mon Sep 17 00:00:00 2001 From: Daniel Dickinson Date: Sun, 22 May 2016 05:30:38 -0400 Subject: [PATCH] block.c: Add ability to mount with ACL and XATTR support Some users will want to use OpenWrt/LEDE devices as NAS devices and have full POSIX ACL and user_xattr support (along with other possible use cases), therefore add support to mount with POSIX ACLs and/or user XATTR support. Signed-off-by: Daniel Dickinson --- block.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/block.c b/block.c index 397db0f..13992f2 100644 --- a/block.c +++ b/block.c @@ -170,6 +170,10 @@ static const struct mount_flag mount_flags[] = { { "relatime", MS_RELATIME }, { "norelatime", ~MS_RELATIME }, { "strictatime", MS_STRICTATIME }, + { "acl", MS_POSIXACL }, + { "noacl", ~MS_POSIXACL }, + { "nouser_xattr", MS_NOUSER }, + { "user_xattr", ~MS_NOUSER }, }; static char *blobmsg_get_strdup(struct blob_attr *attr) -- 2.11.0