summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_linker.c
diff options
context:
space:
mode:
authorjamie <jamie@FreeBSD.org>2009-07-17 14:48:21 +0000
committerjamie <jamie@FreeBSD.org>2009-07-17 14:48:21 +0000
commit9f81cbd9ecbd42ba9494b4d36a79e700e9e3a74f (patch)
tree2512a1900a6519091f682eeddcd7ff520f3a76ae /sys/kern/kern_linker.c
parentd77b22ca313fa4061782d2b1677a768149593534 (diff)
downloadFreeBSD-src-9f81cbd9ecbd42ba9494b4d36a79e700e9e3a74f.zip
FreeBSD-src-9f81cbd9ecbd42ba9494b4d36a79e700e9e3a74f.tar.gz
Remove the interim vimage containers, struct vimage and struct procg,
and the ioctl-based interface that supported them. Approved by: re (kib), bz (mentor)
Diffstat (limited to 'sys/kern/kern_linker.c')
-rw-r--r--sys/kern/kern_linker.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/kern/kern_linker.c b/sys/kern/kern_linker.c
index 1768e69..e0c50fe3 100644
--- a/sys/kern/kern_linker.c
+++ b/sys/kern/kern_linker.c
@@ -992,12 +992,6 @@ kern_kldload(struct thread *td, const char *file, int *fileid)
if ((error = priv_check(td, PRIV_KLD_LOAD)) != 0)
return (error);
-#ifdef VIMAGE
- /* Only the default vimage is permitted to kldload modules. */
- if (!IS_DEFAULT_VIMAGE(TD_TO_VIMAGE(td)))
- return (EPERM);
-#endif
-
/*
* It is possible that kldloaded module will attach a new ifnet,
* so vnet context must be set when this ocurs.
@@ -1069,12 +1063,6 @@ kern_kldunload(struct thread *td, int fileid, int flags)
if ((error = priv_check(td, PRIV_KLD_UNLOAD)) != 0)
return (error);
-#ifdef VIMAGE
- /* Only the default vimage is permitted to kldunload modules. */
- if (!IS_DEFAULT_VIMAGE(TD_TO_VIMAGE(td)))
- return (EPERM);
-#endif
-
CURVNET_SET(TD_TO_VNET(td));
KLD_LOCK();
lf = linker_find_file_by_id(fileid);
OpenPOWER on IntegriCloud