YAFFS doesn't sopport ACL yet, it must refuse any related settings.

Signed-off-by: Zhang Xiao <xiao.zh...@windriver.com>
---
 fs/yaffs2/yaffs_vfs.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/fs/yaffs2/yaffs_vfs.c b/fs/yaffs2/yaffs_vfs.c
index 13de856..d372a4e 100644
--- a/fs/yaffs2/yaffs_vfs.c
+++ b/fs/yaffs2/yaffs_vfs.c
@@ -931,6 +931,12 @@ static int yaffs_setxattr(struct dentry *dentry, const 
char *name,
 
        yaffs_trace(YAFFS_TRACE_OS, "yaffs_setxattr of object %d", obj->obj_id);
 
+       /* Currently we don't support posix ACL so never accept any settings
+        * start with "system.posix_acl_".
+        */
+       if (strncmp(name, "system.posix_acl_", 17))
+               error = -EOPNOTSUPP;
+
        if (error == 0) {
                int result;
                dev = obj->my_dev;
-- 
1.8.5.2.233.g932f7e4

-- 
_______________________________________________
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to