The branch stable/15 has been updated by siva: URL: https://cgit.FreeBSD.org/src/commit/?id=57bc966e65aeba3273fe0c860e23af439af524ba
commit 57bc966e65aeba3273fe0c860e23af439af524ba Author: Siva Mahadevan <[email protected]> AuthorDate: 2026-08-20 04:17:45 +0000 Commit: Siva Mahadevan <[email protected]> CommitDate: 2026-09-01 09:02:12 +0000 tarfs: remove PRIV_VFS_MOUNT_PERM check The backing file is already opened successfully, so there is no need to override the permissions. Reviewed by: des MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D58832 (cherry picked from commit 4d524915233092d71b309b49d9743012cb05c11e) --- sys/fs/tarfs/tarfs_vfsops.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/fs/tarfs/tarfs_vfsops.c b/sys/fs/tarfs/tarfs_vfsops.c index e1ba925ccb0f..87607544b4b1 100644 --- a/sys/fs/tarfs/tarfs_vfsops.c +++ b/sys/fs/tarfs/tarfs_vfsops.c @@ -1005,11 +1005,6 @@ tarfs_mount(struct mount *mp) error = EOPNOTSUPP; goto bad_open_locked; } - error = priv_check(td, PRIV_VFS_MOUNT_PERM); - if (error != 0) { - TARFS_DPF(FS, "%s: not permitted to mount\n", __func__); - goto bad_open_locked; - } if (flags & O_VERIFY) { mp->mnt_flag |= MNT_VERIFIED; }
