summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_extattr.c
diff options
context:
space:
mode:
authorarr <arr@FreeBSD.org>2002-03-25 18:26:34 +0000
committerarr <arr@FreeBSD.org>2002-03-25 18:26:34 +0000
commitdb4f882c76df49663bf718c966c5e5fd6bebaff4 (patch)
tree168fe348a1e8fea0df5116c3874d1fbc0585b5b3 /sys/kern/vfs_extattr.c
parent693963da0d17bee552d4c649cf527ccd046a698a (diff)
downloadFreeBSD-src-db4f882c76df49663bf718c966c5e5fd6bebaff4.zip
FreeBSD-src-db4f882c76df49663bf718c966c5e5fd6bebaff4.tar.gz
- Recommit the securelevel_gt() calls removed by commits rev. 1.84 of
kern_linker.c and rev. 1.237 of vfs_syscalls.c since these are not the source of the recent panics occuring around kldloading file system support modules. Requested by: rwatson
Diffstat (limited to 'sys/kern/vfs_extattr.c')
-rw-r--r--sys/kern/vfs_extattr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c
index 915e26a..77eece4 100644
--- a/sys/kern/vfs_extattr.c
+++ b/sys/kern/vfs_extattr.c
@@ -307,6 +307,11 @@ vfs_mount(td, fstype, fspath, fsflags, fsdata)
vput(vp);
return error;
}
+ error = securelevel_gt(td->td_ucred, 0);
+ if (error != 0) {
+ vput(vp);
+ return (EPERM);
+ }
error = linker_load_file(fstype, &lf);
if (error || lf == NULL) {
vput(vp);
OpenPOWER on IntegriCloud