Date: Fri, 23 Jun 2006 17:36:21 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 99873 for review Message-ID: <200606231736.k5NHaLZj036744@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=99873 Change 99873 by jhb@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606231736.k5NHaLZj036744>