]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc4031f40aadcbd89ee554a12ecfdfadaa685e554
tree36a6d36f96d6bced2ea52ef5c8f08239fa0090a8
parentd9c0192940bcc8eaddbf9da650cdd289070165db
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: b3e5acac691a ("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