From owner-cvs-all Fri Aug 27 12:48:36 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 578C3155C8; Fri, 27 Aug 1999 12:48:32 -0700 (PDT) (envelope-from marcel@FreeBSD.org) Received: (from marcel@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id MAA42799; Fri, 27 Aug 1999 12:47:42 -0700 (PDT) (envelope-from marcel@FreeBSD.org) Message-Id: <199908271947.MAA42799@freefall.freebsd.org> From: Marcel Moolenaar Date: Fri, 27 Aug 1999 12:47:42 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/i386/conf files.i386 src/sys/i386/linux linux_mib.c linux_mib.h linux_misc.c src/sys/kern kern_exit.c kern_mib.c src/sys/modules/linux Makefile src/sys/sys jail.h sysctl.h Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk marcel 1999/08/27 12:47:42 PDT Modified files: sys/i386/conf files.i386 sys/i386/linux linux_misc.c sys/kern kern_exit.c kern_mib.c sys/modules/linux Makefile sys/sys jail.h sysctl.h Added files: sys/i386/linux linux_mib.c linux_mib.h Log: 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 Revision Changes Path 1.260 +2 -1 src/sys/i386/conf/files.i386 1.68 +8 -3 src/sys/i386/linux/linux_misc.c 1.82 +5 -2 src/sys/kern/kern_exit.c 1.24 +4 -2 src/sys/kern/kern_mib.c 1.26 +2 -2 src/sys/modules/linux/Makefile 1.3 +2 -1 src/sys/sys/jail.h 1.74 +2 -1 src/sys/sys/sysctl.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message