diff options
author | jhb <jhb@FreeBSD.org> | 2006-06-26 18:33:32 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2006-06-26 18:33:32 +0000 |
commit | d7b0de5b872888470d605126b1157c13ce1b54ed (patch) | |
tree | 1d838879d93565bf4ee04ae9dda956fa242af893 /sys | |
parent | 823f6f19d1ca9d3213ac4ade9e371efc759c16bb (diff) | |
download | FreeBSD-src-d7b0de5b872888470d605126b1157c13ce1b54ed.zip FreeBSD-src-d7b0de5b872888470d605126b1157c13ce1b54ed.tar.gz |
Remove duplicate security checks already performed in kern_kldload().
Diffstat (limited to 'sys')
-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 b279e89..143eaf5 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); |