diff options
author | pjd <pjd@FreeBSD.org> | 2009-10-08 16:03:19 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2009-10-08 16:03:19 +0000 |
commit | 4a0c1891f4d08b211f16e0cf75ca100bc6870dda (patch) | |
tree | 73fce58848e0e808183e55e3b284f25cc9879938 /sys/cddl/compat/opensolaris | |
parent | 3c900cf5e93b0b9d85af61578777ecf0271f46ec (diff) | |
download | FreeBSD-src-4a0c1891f4d08b211f16e0cf75ca100bc6870dda.zip FreeBSD-src-4a0c1891f4d08b211f16e0cf75ca100bc6870dda.tar.gz |
File system owner is when uid matches and jail matches.
MFC after: 3 days
Diffstat (limited to 'sys/cddl/compat/opensolaris')
-rw-r--r-- | sys/cddl/compat/opensolaris/kern/opensolaris_policy.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/cddl/compat/opensolaris/kern/opensolaris_policy.c b/sys/cddl/compat/opensolaris/kern/opensolaris_policy.c index cedf335..040f27d 100644 --- a/sys/cddl/compat/opensolaris/kern/opensolaris_policy.c +++ b/sys/cddl/compat/opensolaris/kern/opensolaris_policy.c @@ -78,12 +78,11 @@ secpolicy_fs_owner(struct mount *mp, struct ucred *cred) if (zfs_super_owner) { if (cred->cr_uid == mp->mnt_cred->cr_uid && - (!jailed(cred) || - cred->cr_prison == mp->mnt_cred->cr_prison)) { + cred->cr_prison == mp->mnt_cred->cr_prison) { return (0); } } - return (priv_check_cred(cred, PRIV_VFS_MOUNT_OWNER, 0)); + return (EPERM); } /* |