]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: hide metadata inodes from everyone because they are special
authorDarrick J. Wong <djwong@kernel.org>
Mon, 4 Nov 2024 04:18:53 +0000 (20:18 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:38:32 +0000 (13:38 -0800)
commitbb6cdd5529ff67081466ef7257000b04204aea23
treeda8ef2cd20d53cd837b2260b3cd6088b78c91469
parent8651b410ae781cc607159c51dbb0b317b23543b1
xfs: hide metadata inodes from everyone because they are special

Metadata inodes are private files and therefore cannot be exposed to
userspace.  This means no bulkstat, no open-by-handle, no linking them
into the directory tree, and no feeding them to LSMs.  As such, we mark
them S_PRIVATE, which stops all that.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/scrub/tempfile.c
fs/xfs/xfs_iops.c