PERFORCE change 105878 for review

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


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

Change 105878 by rwatson at rwatson_sesame on 2006/09/09 09:57:24

	Make svr4's privilege use for PRIV_VFS_ADMIN consistent with all
	other PRIV_VFS_ADMIN instances in the kernel.

Affected files ...

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

Differences ...

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

@@ -280,7 +280,8 @@
 		goto out;
 
 	if (td->td_ucred->cr_uid != vattr.va_uid &&
-	    (error = priv_check(td, PRIV_VFS_ADMIN)) != 0)
+	    (error = priv_check_cred(td->td_ucred, PRIV_VFS_ADMIN,
+	    SUSER_ALLOWJAIL)) != 0)
 		goto out;
 
 	if ((error = vn_start_write(vp, &mp, V_WAIT | PCATCH)) != 0)


More information about the p4-projects mailing list