[Linux-cachefs] [PATCH] cachefiles: Allow the cache to be non-root

Gao Xiang hsiangkao at linux.alibaba.com
Sat May 20 02:07:40 UTC 2023



On 2023/5/20 10:21, David Howells wrote:
>      
> Set mode 0600 on files in the cache so that cachefilesd can run as an
> unprivileged user rather than leaving the files all with 0.  Directories
> are already set to 0700.
> 
> Userspace then needs to set the uid and gid before issuing the "bind"
> command and the cache must've been chown'd to those IDs.
> 
> Signed-off-by: David Howells <dhowells at redhat.com>
> cc: David Howells <dhowells at redhat.com>
> cc: Jeff Layton <jlayton at kernel.org>
> cc: linux-cachefs at redhat.com
> cc: linux-erofs at lists.ozlabs.org
> cc: linux-fsdevel at vger.kernel.org

It seems useful on our side as well and safe:

Reviewed-by: Gao Xiang <hsiangkao at linux.alibaba.com>

Thanks,
Gao Xiang



More information about the Linux-cachefs mailing list