PERFORCE change 99873 for review

John Baldwin jhb at FreeBSD.org
Fri Jun 23 17:36:24 UTC 2006


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

Change 99873 by jhb at jhb_mutex on 2006/06/23 17:36:16

	kern_kldload() already does the permissions checks.

Affected files ...

.. //depot/projects/smpng/sys/kern/vfs_init.c#24 edit

Differences ...

==== //depot/projects/smpng/sys/kern/vfs_init.c#24 (text+ko) ====

@@ -115,13 +115,7 @@
 	if (vfsp != NULL)
 		return (vfsp);
 
-	/* Only load modules for root (very important!). */
-	*error = suser(td);
-	if (*error)
-		return (NULL);
-	*error = securelevel_gt(td->td_ucred, 0);
-	if (*error) 
-		return (NULL);
+	/* Try to load the respective module. */
 	*error = kern_kldload(td, fstype, &fileid);
 	if (*error)
 		return (NULL);


More information about the p4-projects mailing list