[linux-yocto] [PATCH 1/2] yaffs: Avoid setting any ACL releated xattr

Bruce Ashfield bruce.ashfield at windriver.com
Wed Aug 27 21:07:31 PDT 2014


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 <xiao.zhang at 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;
>



More information about the linux-yocto mailing list