OSDN Git Service

xfs: also reject BULKSTAT_SINGLE in a mount user namespace
authorChristoph Hellwig <hch@lst.de>
Sun, 14 Mar 2021 17:59:39 +0000 (10:59 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 15 Mar 2021 15:50:41 +0000 (08:50 -0700)
commit8723d5ba8bdae1c41be7a6fc8469dc9aa551e7d0
tree36a6d36f96d6bced2ea52ef5c8f08239fa0090a8
parent08a204387e8063ba7375481281701137bd553dee
xfs: also reject BULKSTAT_SINGLE in a mount user namespace

BULKSTAT_SINGLE exposed the ondisk uids/gids just like bulkstat, and can
be called on any inode, including ones not visible in the current mount.

Fixes: f736d93d76d3 ("xfs: support idmapped mounts")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_itable.c