Go to file
pooka d3ab3ede2e Add -m which can be used to load modules (which is a completely
different code path than using dlopen() before rump_init(), since
the former uses the in-kernel linker and the latter links the object
in rtld).

So:
golem> ./rump_server -l librumpvfs.so -m /sys/modules/tmpfs/tmpfs.kmod unix:///tmp/commsuck
==>
golem> env RUMP_SERVER=unix:///tmp/commsuck rump.modstat
NAME             CLASS      SOURCE     REFS  SIZE     REQUIRES
suser            secmodel   builtin    0     -        -
tmpfs            vfs        filesys    0     16713    -
wapbl            vfs        builtin    0     -        -

Source is filesys instead of builtin, as expected.

Notably, for -m you *must* use -l librumpvfs.so.  This is because
you need VFS in your kernel to be able to load modules from the
file system.  In a regular kernel "librumpvfs.so" is linked at
kernel build time and loaded by the bootloader.  Here we use dlopen()
for both effects (the other choices would have been to link
rump_server with -lrumpvfs, but that would limit the flexibility,
or link tmpfs.kmod directly into the binary, but that would limit
the flexibility even more).
2010-12-13 14:13:21 +00:00
bin check return value of localtime. 2010-12-12 17:30:23 +00:00
common Provide proper namespace protection for rbtree(3) because it is now 2010-11-17 13:19:32 +00:00
compat Remove the do-external-lib and do-gnu-lib targets, along with 2010-12-03 21:38:46 +00:00
crypto Use separate SA addresses for phase2's created by admin command. The 2010-12-08 07:38:35 +00:00
dist warns=4 2010-12-13 01:45:38 +00:00
distrib Retire h_simpleserver and use rump_server instead. 2010-12-13 13:39:42 +00:00
doc Imported OpenLDAP-2.4.23 2010-12-12 16:13:37 +00:00
etc directory not used anymore 2010-12-13 13:41:41 +00:00
external reinstall awk.texi. 2010-12-13 06:30:44 +00:00
extsrc
games Don't use the same name for two parameters. 2010-12-08 17:08:07 +00:00
gnu remove obsolete file 2010-12-11 23:04:46 +00:00
include add VIS_NOESCAPE and VIS_HTTP1866 2010-11-27 19:44:54 +00:00
lib Xref module(4). 2010-12-13 10:07:46 +00:00
libexec Build ld.elf_so with -fvisibility=hidden. Exploit this for i386/x86_64 2010-12-05 00:56:06 +00:00
regress Don't overrun the buffer, when writing some payload. 2010-10-03 19:41:25 +00:00
rescue Implement dl_iterate_phdr. 2010-10-16 10:27:06 +00:00
sbin Xref module(4). 2010-12-13 10:07:46 +00:00
share Xref module(4). 2010-12-13 10:07:46 +00:00
sys stubs to make life easier 2010-12-13 14:03:59 +00:00
tests Retire h_simpleserver and use rump_server instead. 2010-12-13 13:39:42 +00:00
tools hook to the new awk in external 2010-12-12 04:06:19 +00:00
usr.bin Add -m which can be used to load modules (which is a completely 2010-12-13 14:13:21 +00:00
usr.sbin PR bin/44230: Missing close. 2010-12-13 11:51:23 +00:00
x11 Disable USE_PAM on ports which have legacy non-XFree86 servers. 2010-10-10 07:03:28 +00:00
BUILDING remove the MKSUBPIXEL/MKTTINTERP options; they're going away. 2010-07-25 07:19:00 +00:00
Makefile Remove the do-external-lib and do-gnu-lib targets, along with 2010-12-03 21:38:46 +00:00
Makefile.inc
UPDATING Mention setenv lossage. 2010-11-25 22:08:49 +00:00
build.sh * test librumpdev_dm 2010-12-06 09:08:39 +00:00