Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Sep 2006 09:58:39 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 105879 for review
Message-ID:  <200609090958.k899wduN023886@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=105879

Change 105879 by rwatson@rwatson_sesame on 2006/09/09 09:58:04

	Allow fchroot() in jail on svr4, consistent with chroot elsewhere
	in the kernel.

Affected files ...

.. //depot/projects/trustedbsd/priv/sys/compat/svr4/svr4_misc.c#3 edit

Differences ...

==== //depot/projects/trustedbsd/priv/sys/compat/svr4/svr4_misc.c#3 (text+ko) ====

@@ -611,7 +611,8 @@
 	struct file	*fp;
 	int		 error, vfslocked;
 
-	if ((error = priv_check(td, PRIV_VFS_FCHROOT)) != 0)
+	if ((error = priv_check_cred(td->td_ucred, PRIV_VFS_FCHROOT,
+	    SUSER_ALLOWJAIL)) != 0)
 		return error;
 	if ((error = getvnode(fdp, uap->fd, &fp)) != 0)
 		return error;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609090958.k899wduN023886>