<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sbin/sysctl, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2025-07-08T12:56:00Z</updated>
<entry>
<title>sysctl_test: Print standard error if sysctl -ao fails</title>
<updated>2025-07-08T12:56:00Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2025-07-08T12:48:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=26e31700fc7d9bd033cb157f534c67bf9bc697dd'/>
<id>urn:sha1:26e31700fc7d9bd033cb157f534c67bf9bc697dd</id>
<content type='text'>
MFC after:	1 week
</content>
</entry>
<entry>
<title>sysctl: Add a regression test which runs sysctl -a</title>
<updated>2025-01-31T15:22:24Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2025-01-31T15:20:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=afc38f1f23ac3b579144d0d1d0c3fadf735d57bd'/>
<id>urn:sha1:afc38f1f23ac3b579144d0d1d0c3fadf735d57bd</id>
<content type='text'>
Run sysctl -a during the test suite so that KASAN/KMSAN have a chance to
catch something.

Inspired by https://jprx.io/cve-2024-54507/

Reviewed by:	jhb, emaste
MFC after:	2 weeks
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D48659
</content>
</entry>
<entry>
<title>sysctl: Teach sysctl to attach and run itself in a jail</title>
<updated>2025-01-30T18:20:41Z</updated>
<author>
<name>Zhenlei Huang</name>
<email>zlei@FreeBSD.org</email>
</author>
<published>2025-01-30T18:20:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=08aa7128dea4d14811ae4a0225d7c678869cfe62'/>
<id>urn:sha1:08aa7128dea4d14811ae4a0225d7c678869cfe62</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
</content>
</entry>
<entry>
<title>sysctl: Refactor function parsefile()</title>
<updated>2025-01-30T18:20:41Z</updated>
<author>
<name>Zhenlei Huang</name>
<email>zlei@FreeBSD.org</email>
</author>
<published>2025-01-30T18:20:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6193855fc76c591ffabe6168cd674e6ec0dafa8e'/>
<id>urn:sha1:6193855fc76c591ffabe6168cd674e6ec0dafa8e</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
</content>
</entry>
<entry>
<title>sysctl: Sort options</title>
<updated>2025-01-23T08:01:04Z</updated>
<author>
<name>Zhenlei Huang</name>
<email>zlei@FreeBSD.org</email>
</author>
<published>2025-01-23T08:01:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c294ecb25b5f3553b5c84b630869bb05724c9629'/>
<id>urn:sha1:c294ecb25b5f3553b5c84b630869bb05724c9629</id>
<content type='text'>
No functional change intended.

MFC after:	1 day
</content>
</entry>
<entry>
<title>sysctl: Fix usage() and SYNOPSIS section of man page</title>
<updated>2025-01-23T07:24:15Z</updated>
<author>
<name>Zhenlei Huang</name>
<email>zlei@FreeBSD.org</email>
</author>
<published>2025-01-23T07:24:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0ee3e29e1d9ee3ed22441c0d580d2d1e57a1d9e3'/>
<id>urn:sha1:0ee3e29e1d9ee3ed22441c0d580d2d1e57a1d9e3</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
</content>
</entry>
<entry>
<title>sysctl: Add flags to filter jail prison and vnet variables</title>
<updated>2024-10-29T11:26:11Z</updated>
<author>
<name>Zhenlei Huang</name>
<email>zlei@FreeBSD.org</email>
</author>
<published>2024-10-29T11:26:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5ec83c660acaf30c1d6b9417dbd8c80dfa9d56ac'/>
<id>urn:sha1:5ec83c660acaf30c1d6b9417dbd8c80dfa9d56ac</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
</content>
</entry>
<entry>
<title>sysctl.8: mark sysctls as vars per style.mdoc(7)</title>
<updated>2024-09-21T11:25:16Z</updated>
<author>
<name>Alexander Ziaee</name>
<email>concussious@runbox.com</email>
</author>
<published>2024-09-14T18:33:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2a680c5c37ea020467fce545734afea019d3a3ea'/>
<id>urn:sha1:2a680c5c37ea020467fce545734afea019d3a3ea</id>
<content type='text'>
+ while here, fix alignment and tag SPDX

MFC after:	3 days

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1421
</content>
</entry>
<entry>
<title>Remove residual blank line at start of Makefile</title>
<updated>2024-07-15T22:43:39Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2024-07-15T04:46:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e9ac41698b2f322d55ccf9da50a3596edb2c1800'/>
<id>urn:sha1:e9ac41698b2f322d55ccf9da50a3596edb2c1800</id>
<content type='text'>
This is a residual of the $FreeBSD$ removal.

MFC After: 3 days (though I'll just run the command on the branches)
Sponsored by: Netflix
</content>
</entry>
<entry>
<title>sysctl(8): Fix typo in comment</title>
<updated>2024-02-13T04:28:55Z</updated>
<author>
<name>Hao-Yu Hou</name>
<email>howard.hou.fan@elsa.cs.nthu.edu.tw</email>
</author>
<published>2023-12-30T09:36:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2e8ad2b698498a1c380d0d6fc5792b2c56926801'/>
<id>urn:sha1:2e8ad2b698498a1c380d0d6fc5792b2c56926801</id>
<content type='text'>
Line214: combind -&gt; combine

Reviewed by:	zlai
Event:		Advanced UNIX Programming Course (Fall’23) at NTHU
Request:	https://github.com/freebsd/freebsd-src/pull/966
</content>
</entry>
</feed>
