summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_extattr.c
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>2000-06-29 17:57:04 +0000
committerarchie <archie@FreeBSD.org>2000-06-29 17:57:04 +0000
commit0e6c8a1f1b5b88304acc6fb5ca49cd82b9372dbb (patch)
treee1d0482a4b78d57d4926a5ec74aad86179811959 /sys/kern/vfs_extattr.c
parent32a6eb4143857bbc839f3923272c0a7469e5ff68 (diff)
downloadFreeBSD-src-0e6c8a1f1b5b88304acc6fb5ca49cd82b9372dbb.zip
FreeBSD-src-0e6c8a1f1b5b88304acc6fb5ca49cd82b9372dbb.tar.gz
Move the securelevel check before loading KLD's into linker_load_file(),
instead of requiring every caller of linker_load_file() to perform the check itself. This avoids netgraph loading KLD's when securelevel > 0, not to mention any future code that may call linker_load_file(). Reviewed by: dfr
Diffstat (limited to 'sys/kern/vfs_extattr.c')
-rw-r--r--sys/kern/vfs_extattr.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c
index 57a844d..5c808bd 100644
--- a/sys/kern/vfs_extattr.c
+++ b/sys/kern/vfs_extattr.c
@@ -225,11 +225,6 @@ mount(p, uap)
if (vfsp == NULL) {
linker_file_t lf;
- /* Refuse to load modules if securelevel raised */
- if (securelevel > 0) {
- vput(vp);
- return EPERM;
- }
/* Only load modules for root (very important!) */
if ((error = suser(p)) != 0) {
vput(vp);
OpenPOWER on IntegriCloud