]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ubifs: Reject unsupported ioctl flags explicitly
authorHou Tao <houtao1@huawei.com>
Sat, 9 Feb 2019 08:54:20 +0000 (16:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2020 12:34:00 +0000 (04:34 -0800)
commit08ae5ec4be5a6d9e97bebb93d916d666e1763572
tree27ccf67b6d11b29f81558a603dfaffe40b518b0b
parentb522ff023e2daf109de25c94695b400bd217b3aa
ubifs: Reject unsupported ioctl flags explicitly

commit 2fe8b2d5578d7d142982e3bf62e4c0caf8b8fe02 upstream.

Reject unsupported ioctl flags explicitly, so the following command
on a regular ubifs file will fail:
chattr +d ubifs_file

And xfstests generic/424 will pass.

Signed-off-by: Hou Tao <houtao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ubifs/ioctl.c