On 2014-08-27, 1:34 AM, Zhang Xiao wrote:
YAFFS doesn't sopport ACL yet, it must refuse any related settings.
I've grabbed these two patches and staged them for my next updates. Thanks! Bruce
Signed-off-by: Zhang Xiao <[email protected]> --- 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;
-- _______________________________________________ linux-yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/linux-yocto
