<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/sys/compat/linux/linux_mib.h, branch release/5.2.1_cvs</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F5.2.1_cvs</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F5.2.1_cvs'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2004-02-23T15:32:56Z</updated>
<entry>
<title>This commit was manufactured by cvs2svn to create tag</title>
<updated>2004-02-23T15:32:56Z</updated>
<author>
<name>cvs2svn</name>
<email>cvs2svn@FreeBSD.org</email>
</author>
<published>2004-02-23T15:32:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=84a7b99b4e02a260bf7ff9b540032f4cb7bc612a'/>
<id>urn:sha1:84a7b99b4e02a260bf7ff9b540032f4cb7bc612a</id>
<content type='text'>
'RELENG_5_2_1_RELEASE'.

This commit was manufactured to restore the state of the 5.2.1-RELEASE image.
Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs.
</content>
</entry>
<entry>
<title>Add a cleanup function to destroy the osname_lock and call it on module</title>
<updated>2003-03-26T18:29:44Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2003-03-26T18:29:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=35eb8c5aa20878f727b0143405166e9b463ee24a'/>
<id>urn:sha1:35eb8c5aa20878f727b0143405166e9b463ee24a</id>
<content type='text'>
unload.

Submitted by:	gallatin
Reported by:	Martin Karlsson &lt;mk-freebsd@bredband.net&gt;
</content>
</entry>
<entry>
<title>- Change the linux_[gs]et_os{name, release, s_version}() functions to</title>
<updated>2003-03-13T22:45:43Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2003-03-13T22:45:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=b62f75cf4406c25c5910775e81241f19ccc77e99'/>
<id>urn:sha1:b62f75cf4406c25c5910775e81241f19ccc77e99</id>
<content type='text'>
  take a thread instead of a proc for their first argument.
- Add a mutex to protect the system-wide Linux osname, osrelease, and
  oss_version variables.
- Change linux_get_prison() to take a thread instead of a proc for its
  first argument and to use td_ucred rather than p_ucred.  This is ok
  because a thread's prison does not change even though it's ucred might.
- Also, change linux_get_prison() to return a struct prison * instead of
  a struct linux_prison * since it returns with the struct prison locked
  and this makes it easier to safely unlock the prison when we are done
  messing with it.
</content>
</entry>
<entry>
<title>Fixed some style bugs in the removal of __P(()).  Tabs before "__P(("</title>
<updated>2002-03-24T04:04:50Z</updated>
<author>
<name>Bruce Evans</name>
<email>bde@FreeBSD.org</email>
</author>
<published>2002-03-24T04:04:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=4292735db9f9d1b817bd9abc65560b40e16db47c'/>
<id>urn:sha1:4292735db9f9d1b817bd9abc65560b40e16db47c</id>
<content type='text'>
were not removed.
</content>
</entry>
<entry>
<title>Remove __P.</title>
<updated>2002-03-20T05:48:58Z</updated>
<author>
<name>Alfred Perlstein</name>
<email>alfred@FreeBSD.org</email>
</author>
<published>2002-03-20T05:48:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=b63dc6ad473b82b196386d0c3dcbd1056cea81df'/>
<id>urn:sha1:b63dc6ad473b82b196386d0c3dcbd1056cea81df</id>
<content type='text'>
</content>
</entry>
<entry>
<title>o Introduce pr_mtx into struct prison, providing protection for the</title>
<updated>2001-12-03T16:12:27Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2001-12-03T16:12:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=011376308f954457a26cc632ad96816a76d25b00'/>
<id>urn:sha1:011376308f954457a26cc632ad96816a76d25b00</id>
<content type='text'>
  mutable contents of struct prison (hostname, securelevel, refcount,
  pr_linux, ...)
o Generally introduce mtx_lock()/mtx_unlock() calls throughout kern/
  so as to enforce these protections, in particular, in kern_mib.c
  protection sysctl access to the hostname and securelevel, as well as
  kern_prot.c access to the securelevel for access control purposes.
o Rewrite linux emulator abstractions for accessing per-jail linux
  mib entries (osname, osrelease, osversion) so that they don't return
  a pointer to the text in the struct linux_prison, rather, a copy
  to an array passed into the calls.  Likewise, update linprocfs to
  use these primitives.
o Update in_pcb.c to always use prison_getip() rather than directly
  accessing struct prison.

Reviewed by:	jhb
</content>
</entry>
<entry>
<title>Fix typo in license.</title>
<updated>2000-08-25T07:32:24Z</updated>
<author>
<name>Marcel Moolenaar</name>
<email>marcel@FreeBSD.org</email>
</author>
<published>2000-08-25T07:32:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=bc34729c4788ff49c595376846d91e61b76daf6d'/>
<id>urn:sha1:bc34729c4788ff49c595376846d91e61b76daf6d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>$Id$ -&gt; $FreeBSD$</title>
<updated>1999-08-28T02:16:32Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1999-08-28T02:16:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=280652828b1d80da9bea959330c2185766069a2e'/>
<id>urn:sha1:280652828b1d80da9bea959330c2185766069a2e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add sysctl variables for the Linuxulator. These reside under `compat.linux' as</title>
<updated>1999-08-27T19:47:41Z</updated>
<author>
<name>Marcel Moolenaar</name>
<email>marcel@FreeBSD.org</email>
</author>
<published>1999-08-27T19:47:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=c6dfea0ebdd03519c549b3159be4f45f1edcf534'/>
<id>urn:sha1:c6dfea0ebdd03519c549b3159be4f45f1edcf534</id>
<content type='text'>
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
</content>
</entry>
</feed>
