<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sbin/sysctl, branch stable/13</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>sysctl: Teach sysctl to attach and run itself in a jail</title>
<updated>2025-02-06T16:08:53+00:00</updated>
<author>
<name>Zhenlei Huang</name>
<email>zlei@FreeBSD.org</email>
</author>
<published>2025-01-30T18:20:41+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=5b0a5d8c1ea33ae7afb56d6c452df7e90ed54e9e'/>
<id>5b0a5d8c1ea33ae7afb56d6c452df7e90ed54e9e</id>
<content type='text'>
This allows the parent jail to retrieve or set kernel state when child
does not have sysctl(8) installed (e.g. light weighted OCI containers
or slim jails).

This is especially useful when manipulating jail prison or vnet sysctls.
For example, `sysctl -j foo -Ja` or `sysctl -j foo net.fibs=2`.

Reviewed by:	dfr (previous version), markj
MFC after:	1 week
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D48618

(cherry picked from commit 08aa7128dea4d14811ae4a0225d7c678869cfe62)
(cherry picked from commit 8d5d7e2ba3a685a9ebe7aa578c6b76adf8fe4c2e)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows the parent jail to retrieve or set kernel state when child
does not have sysctl(8) installed (e.g. light weighted OCI containers
or slim jails).

This is especially useful when manipulating jail prison or vnet sysctls.
For example, `sysctl -j foo -Ja` or `sysctl -j foo net.fibs=2`.

Reviewed by:	dfr (previous version), markj
MFC after:	1 week
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D48618

(cherry picked from commit 08aa7128dea4d14811ae4a0225d7c678869cfe62)
(cherry picked from commit 8d5d7e2ba3a685a9ebe7aa578c6b76adf8fe4c2e)
</pre>
</div>
</content>
</entry>
<entry>
<title>sysctl: Refactor function parsefile()</title>
<updated>2025-02-06T16:08:52+00:00</updated>
<author>
<name>Zhenlei Huang</name>
<email>zlei@FreeBSD.org</email>
</author>
<published>2025-01-30T18:20:41+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=73a516c6527c84701921c329d4f08da44522ccc4'/>
<id>73a516c6527c84701921c329d4f08da44522ccc4</id>
<content type='text'>
Let the caller open the file and pass in the file handler. This can
benefit an upcoming change so that we will have cleaner logic.

No functional change intended.

Suggested by:	markj
MFC after:	1 week

(cherry picked from commit 6193855fc76c591ffabe6168cd674e6ec0dafa8e)
(cherry picked from commit 4ef48d172bb11f01174fff871d69623eed59d626)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Let the caller open the file and pass in the file handler. This can
benefit an upcoming change so that we will have cleaner logic.

No functional change intended.

Suggested by:	markj
MFC after:	1 week

(cherry picked from commit 6193855fc76c591ffabe6168cd674e6ec0dafa8e)
(cherry picked from commit 4ef48d172bb11f01174fff871d69623eed59d626)
</pre>
</div>
</content>
</entry>
<entry>
<title>sysctl: Fix usage() and SYNOPSIS section of man page</title>
<updated>2025-01-25T11:56:41+00:00</updated>
<author>
<name>Zhenlei Huang</name>
<email>zlei@FreeBSD.org</email>
</author>
<published>2025-01-23T07:24:15+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=47560d54be59f89e1768e7b4d81f5c599a9c59ef'/>
<id>47560d54be59f89e1768e7b4d81f5c599a9c59ef</id>
<content type='text'>
I forgot to update the usage() and SYNOPSIS section of man page when
adding the two options -J and -V.

While here, fix the options sort order in SYNOPSIS section.

Fixes:	5ec83c660aca sysctl: Add flags to filter jail prison and vnet variables
MFC after:	1 day

(cherry picked from commit 0ee3e29e1d9ee3ed22441c0d580d2d1e57a1d9e3)
(cherry picked from commit 1d890d546b064f2c7753b949f5dbf00d79cde292)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I forgot to update the usage() and SYNOPSIS section of man page when
adding the two options -J and -V.

While here, fix the options sort order in SYNOPSIS section.

Fixes:	5ec83c660aca sysctl: Add flags to filter jail prison and vnet variables
MFC after:	1 day

(cherry picked from commit 0ee3e29e1d9ee3ed22441c0d580d2d1e57a1d9e3)
(cherry picked from commit 1d890d546b064f2c7753b949f5dbf00d79cde292)
</pre>
</div>
</content>
</entry>
<entry>
<title>sysctl: Add flags to filter jail prison and vnet variables</title>
<updated>2025-01-23T09:47:10+00:00</updated>
<author>
<name>Zhenlei Huang</name>
<email>zlei@FreeBSD.org</email>
</author>
<published>2024-10-29T11:26:11+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=09cbd68e4e4728dbac768937b35ad09995c20fea'/>
<id>09cbd68e4e4728dbac768937b35ad09995c20fea</id>
<content type='text'>
So users do not have to contact the source code to tell whether a
variable is a jail prison / vnet one or not.

Reviewed by:	cy (previous version), markj, jamie (for #jails)
MFC after:	2 weeks
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D47107

(cherry picked from commit 5ec83c660acaf30c1d6b9417dbd8c80dfa9d56ac)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
So users do not have to contact the source code to tell whether a
variable is a jail prison / vnet one or not.

Reviewed by:	cy (previous version), markj, jamie (for #jails)
MFC after:	2 weeks
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D47107

(cherry picked from commit 5ec83c660acaf30c1d6b9417dbd8c80dfa9d56ac)
</pre>
</div>
</content>
</entry>
<entry>
<title>sysctl.8: fix format typo</title>
<updated>2024-10-15T05:18:39+00:00</updated>
<author>
<name>Igor Ostapenko</name>
<email>pm@igoro.pro</email>
</author>
<published>2024-01-23T14:34:59+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=54cb2f5b8b89e57f20068f26f00466e22a6b9057'/>
<id>54cb2f5b8b89e57f20068f26f00466e22a6b9057</id>
<content type='text'>
Signed-off-by: Igor Ostapenko &lt;pm@igoro.pro&gt;
(cherry picked from commit 380b7eb309478e1aac1609a3dfe1c28436add1c4)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Igor Ostapenko &lt;pm@igoro.pro&gt;
(cherry picked from commit 380b7eb309478e1aac1609a3dfe1c28436add1c4)
</pre>
</div>
</content>
</entry>
<entry>
<title>sysctl(8): Mention more security.bsd knobs; Refer to security(7)</title>
<updated>2023-12-21T13:38:39+00:00</updated>
<author>
<name>Olivier Certner</name>
<email>olce.freebsd@certner.fr</email>
</author>
<published>2023-08-17T23:54:49+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=f63da970458592f7488796da4e8c07f9e5314b31'/>
<id>f63da970458592f7488796da4e8c07f9e5314b31</id>
<content type='text'>
Reviewed by:            mhorne, pauamma_gundo.com, emaste
Sponsored by:           Kumacom SAS
Differential Revision:  https://reviews.freebsd.org/D41113

(cherry picked from commit 8d7a48d367ffde2a29419ef943c4099984e3af4d)

Approved by:    markj (mentor)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:            mhorne, pauamma_gundo.com, emaste
Sponsored by:           Kumacom SAS
Differential Revision:  https://reviews.freebsd.org/D41113

(cherry picked from commit 8d7a48d367ffde2a29419ef943c4099984e3af4d)

Approved by:    markj (mentor)
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line nroff pattern</title>
<updated>2023-08-23T17:43:32+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:32:13+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=24115b70d6d614ed7ac5cfc4f51fa9d6cfe8b1b2'/>
<id>24115b70d6d614ed7ac5cfc4f51fa9d6cfe8b1b2</id>
<content type='text'>
Remove /^\.\\"\s*\$FreeBSD\$$\n/

Similar commit in main:
(cherry picked from commit b2c76c41be32)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove /^\.\\"\s*\$FreeBSD\$$\n/

Similar commit in main:
(cherry picked from commit b2c76c41be32)
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line sh pattern</title>
<updated>2023-08-23T17:43:30+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:32:01+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=023fc80ee38a117fa65b2ccb2abf8bdc7dbd6fd9'/>
<id>023fc80ee38a117fa65b2ccb2abf8bdc7dbd6fd9</id>
<content type='text'>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/

Similar commit in main:
(cherry picked from commit d0b2dbfa0ecf)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/

Similar commit in main:
(cherry picked from commit d0b2dbfa0ecf)
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-23T17:43:26+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:31:41+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=3d497e17ebd33fe0f58d773e35ab994d750258d6'/>
<id>3d497e17ebd33fe0f58d773e35ab994d750258d6</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/

Similar commit in main:
(cherry picked from commit 1d386b48a555)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/

Similar commit in main:
(cherry picked from commit 1d386b48a555)
</pre>
</div>
</content>
</entry>
<entry>
<title>sysctl.8: Reference sysctl(9)</title>
<updated>2022-07-07T09:56:18+00:00</updated>
<author>
<name>Mateusz Piotrowski</name>
<email>0mp@FreeBSD.org</email>
</author>
<published>2022-06-30T13:34:58+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=76b06d5a1a7486af72deb572b00e5a231676d59e'/>
<id>76b06d5a1a7486af72deb572b00e5a231676d59e</id>
<content type='text'>
MFC after:	1 week

(cherry picked from commit 0438e9beb552b5e33c5d54748395429c6f9b8075)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
MFC after:	1 week

(cherry picked from commit 0438e9beb552b5e33c5d54748395429c6f9b8075)
</pre>
</div>
</content>
</entry>
</feed>
