svn commit: r197860 - head/sys/cddl/compat/opensolaris/kern

Pawel Jakub Dawidek pjd at FreeBSD.org
Thu Oct 8 16:03:20 UTC 2009


Author: pjd
Date: Thu Oct  8 16:03:19 2009
New Revision: 197860
URL: http://svn.freebsd.org/changeset/base/197860

Log:
  File system owner is when uid matches and jail matches.
  
  MFC after:	3 days

Modified:
  head/sys/cddl/compat/opensolaris/kern/opensolaris_policy.c

Modified: head/sys/cddl/compat/opensolaris/kern/opensolaris_policy.c
==============================================================================
--- head/sys/cddl/compat/opensolaris/kern/opensolaris_policy.c	Thu Oct  8 15:34:01 2009	(r197859)
+++ head/sys/cddl/compat/opensolaris/kern/opensolaris_policy.c	Thu Oct  8 16:03:19 2009	(r197860)
@@ -78,12 +78,11 @@ secpolicy_fs_owner(struct mount *mp, str
 
 	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);
 }
 
 /*


More information about the svn-src-all mailing list