ovl: support the FS_IOC_FS[SG]ETXATTR ioctls
authorAmir Goldstein <amir73il@gmail.com>
Sun, 26 May 2019 06:28:25 +0000 (09:28 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Mon, 27 May 2019 08:03:10 +0000 (10:03 +0200)
commitb21d9c435f935014d3e3fa6914f2e4fbabb0e94d
treef3dfbc793067d5730e231bb525913db4dde58367
parentcd6c84d8f0cdc911df435bb075ba22ce3c605b07
ovl: support the FS_IOC_FS[SG]ETXATTR ioctls

They are the extended version of FS_IOC_FS[SG]ETFLAGS ioctls.
xfs_io -c "chattr <flags>" uses the new ioctls for setting flags.

This used to work in kernel pre v4.19, before stacked file ops
introduced the ovl_ioctl whitelist.

Reported-by: Dave Chinner <david@fromorbit.com>
Fixes: d1d04ef8572b ("ovl: stack file ops")
Cc: <stable@vger.kernel.org> # v4.19
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/file.c