diff --git a/module/os/linux/zfs/policy.c b/module/os/linux/zfs/policy.c index ebec1e93a436..a3801c605dd6 100644 --- a/module/os/linux/zfs/policy.c +++ b/module/os/linux/zfs/policy.c @@ -120,10 +120,7 @@ secpolicy_vnode_access2(const cred_t *cr, struct inode *ip, uid_t owner, return (0); } - if ((uid == owner) || (uid == 0)) - return (0); - - if (zpl_inode_owner_or_capable(kcred->user_ns, ip)) + if (uid == 0) return (0); #if defined(CONFIG_USER_NS)