From c6dfea0ebdd03519c549b3159be4f45f1edcf534 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Fri, 27 Aug 1999 19:47:41 +0000 Subject: Add sysctl variables for the Linuxulator. These reside under `compat.linux' as discussed on current. The following variables are defined (for now): osname (defaults to "Linux") Allow users to change the name of the OS as returned by uname(2), specially added for all those Linux Netscape users and statistics maniacs :-) We now have what we all wanted! osrelease (defaults to "2.2.5") Allow users to change the version of the OS as returned by uname(2). Since -current supports glibc2.1 now, change the default to 2.2.5 (was 2.0.36). oss_version (defaults to 198144 [0x030600]) This one will be used by the OSS_GETVERSION ioctl (PR 12917) which I can commit now that we have the MIB. The default version number is the lowest version possible with the current 'encoding'. A note about imprisoned processes (see jail(2)): These variables are copy-on-write (as suggested by phk). This means that imprisoned processes will use the system wide value unless it is written/set by the process. From that moment on, a copy local to the prison will be used. A note about the implementation: I choose to add a single pointer to struct prison, because I didn't like the idea of changing struct prison every time I come up with a new variable. As a side effect, the extra storage is only needed when a variable is set from within the prison. This also minimizes kernel bloat when the Linuxulator is not used; both compiled in or as a module. Reviewed by: bde (first version only) and phk --- sys/modules/linux/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/modules/linux') diff --git a/sys/modules/linux/Makefile b/sys/modules/linux/Makefile index e6328ac4cbf7..72485f0be1b7 100644 --- a/sys/modules/linux/Makefile +++ b/sys/modules/linux/Makefile @@ -1,9 +1,9 @@ -# $Id: Makefile,v 1.24 1998/11/12 00:37:39 jkh Exp $ +# $Id: Makefile,v 1.25 1999/01/26 21:29:01 julian Exp $ .PATH: ${.CURDIR}/../../i386/linux KMOD= linux SRCS= linux_file.c linux_ioctl.c linux_misc.c linux_signal.c \ - linux_ipc.c linux_socket.c linux_stats.c \ + linux_ipc.c linux_socket.c linux_stats.c linux_mib.c \ linux_dummy.c linux_sysent.c linux_sysvec.c linux_util.c \ imgact_linux.c opt_compat.h opt_linux.h opt_vmpage.h vnode_if.h OBJS= linux_locore.o -- cgit v1.3