fuse: add inode/permission checks to fileattr_get/fileattr_set
authorAlexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Thu, 26 Jan 2023 10:23:18 +0000 (11:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:34:24 +0000 (09:34 +0100)
commitbea92c2d45a5c20e879ba9d7d90e6bf554d6123f
tree31ef5f8b415eb77d1fa643e6f61fbb3254462e31
parent5a66e59e1fd96665c02014c1b28be2aa29ca3da2
fuse: add inode/permission checks to fileattr_get/fileattr_set

commit 1cc4606d19e3710bfab3f6704b87ff9580493c69 upstream.

It looks like these checks were accidentally lost during the conversion to
fileattr API.

Fixes: 72227eac177d ("fuse: convert to fileattr")
Cc: <stable@vger.kernel.org> # v5.13
Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/fuse/ioctl.c