PERFORCE change 105879 for review

Robert Watson rwatson at FreeBSD.org
Sat Sep 9 09:59:57 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=105879

Change 105879 by rwatson at 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;


More information about the trustedbsd-cvs mailing list