git: 4d5249152330 - main - tarfs: remove PRIV_VFS_MOUNT_PERM check

From: Siva Mahadevan <siva_at_FreeBSD.org>
Date: Thu, 20 Aug 2026 04:20:35 UTC
The branch main has been updated by siva:

URL: https://cgit.FreeBSD.org/src/commit/?id=4d524915233092d71b309b49d9743012cb05c11e

commit 4d524915233092d71b309b49d9743012cb05c11e
Author:     Siva Mahadevan <siva@FreeBSD.org>
AuthorDate: 2026-08-20 04:17:45 +0000
Commit:     Siva Mahadevan <siva@FreeBSD.org>
CommitDate: 2026-08-20 04:19:40 +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
---
 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 cae780cb71e5..8aa261c88da9 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;
 	}