Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Aug 1999 12:47:42 -0700 (PDT)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
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
Message-ID:  <199908271947.MAA42799@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908271947.MAA42799>