diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2006-06-26 18:33:32 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2006-06-26 18:33:32 +0000 |
| commit | 322fb40cbfa5d59c812f6ef469013afa7191b069 (patch) | |
| tree | 1d838879d93565bf4ee04ae9dda956fa242af893 /sys/kern/vfs_init.c | |
| parent | cc477a63475c0e1e91154916d7f4c8a3657a4195 (diff) | |
Notes
Diffstat (limited to 'sys/kern/vfs_init.c')
| -rw-r--r-- | sys/kern/vfs_init.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/kern/vfs_init.c b/sys/kern/vfs_init.c index b279e8959d97..143eaf56c524 100644 --- a/sys/kern/vfs_init.c +++ b/sys/kern/vfs_init.c @@ -115,13 +115,7 @@ vfs_byname_kld(const char *fstype, struct thread *td, int *error) 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); |
