ovl: remove privs in ovl_fallocate()
authorAmir Goldstein <amir73il@gmail.com>
Mon, 17 Oct 2022 15:06:39 +0000 (17:06 +0200)
committerChristian Brauner (Microsoft) <brauner@kernel.org>
Tue, 18 Oct 2022 08:09:48 +0000 (10:09 +0200)
commit23a8ce16419a3066829ad4a8b7032a75817af65b
tree0f6c78c0bbc33fd39541976939755919f3d3bb56
parentb306e90ffabdaa7e3b3350dbcd19b7663e71ab17
ovl: remove privs in ovl_fallocate()

Underlying fs doesn't remove privs because fallocate is called with
privileged mounter credentials.

This fixes some failure in fstests generic/683..687.

Fixes: aab8848cee5e ("ovl: add ovl_fallocate()")
Acked-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
fs/overlayfs/file.c