<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sbin/sysctl, branch release/12.3.0</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>MFC 367188: Use a dynamic buffer for the copy of a node's new value.</title>
<updated>2020-12-12T17:11:22+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2020-12-12T17:11:22+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=8c4e82b759e19fbd1bbb95554cd2ed43deaf9c17'/>
<id>8c4e82b759e19fbd1bbb95554cd2ed43deaf9c17</id>
<content type='text'>
This permits setting a node's value to a string longer than BUFSIZ.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This permits setting a node's value to a string longer than BUFSIZ.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r366465, r367003, r367006, r367009</title>
<updated>2020-11-02T20:00:50+00:00</updated>
<author>
<name>Ryan Moeller</name>
<email>freqlabs@FreeBSD.org</email>
</author>
<published>2020-11-02T20:00:50+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=933b4ca434d7028e3d6881c95c9057732c39c7f0'/>
<id>933b4ca434d7028e3d6881c95c9057732c39c7f0</id>
<content type='text'>
Enable iterating all sysctls, even ones with CTLFLAG_SKIP
kern_sysctl: Misc code cleanup
sysctl: Misc code cleanup
sysctl+kern_sysctl: Honor SKIP for descendant nodes
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Enable iterating all sysctls, even ones with CTLFLAG_SKIP
kern_sysctl: Misc code cleanup
sysctl: Misc code cleanup
sysctl+kern_sysctl: Honor SKIP for descendant nodes
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r344494,r344495:</title>
<updated>2019-03-10T20:43:08+00:00</updated>
<author>
<name>Vladimir Kondratyev</name>
<email>wulf@FreeBSD.org</email>
</author>
<published>2019-03-10T20:43:08+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4a919ad3a21126cde96acb565786baf1898764f8'/>
<id>4a919ad3a21126cde96acb565786baf1898764f8</id>
<content type='text'>
evdev: export event device properties through sysctl interface

A big security advantage of Wayland is not allowing applications to read
input devices all the time. Having /dev/input/* accessible to the user
account subverts this advantage.

libudev-devd was opening the evdev devices to detect their types (mouse,
keyboard, touchpad, etc). This don't work if /dev/input/* is inaccessible.
With the kernel exposing this information as sysctls (kern.evdev.input.*),
we can work w/o /dev/input/* access, preserving the Wayland security model.

Submitted by:	Greg V &lt;greg@unrelenting.technology&gt;
Reviewed by:	wulf, imp
Differential Revision:	https://reviews.freebsd.org/D18694
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
evdev: export event device properties through sysctl interface

A big security advantage of Wayland is not allowing applications to read
input devices all the time. Having /dev/input/* accessible to the user
account subverts this advantage.

libudev-devd was opening the evdev devices to detect their types (mouse,
keyboard, touchpad, etc). This don't work if /dev/input/* is inaccessible.
With the kernel exposing this information as sysctls (kern.evdev.input.*),
we can work w/o /dev/input/* access, preserving the Wayland security model.

Submitted by:	Greg V &lt;greg@unrelenting.technology&gt;
Reviewed by:	wulf, imp
Differential Revision:	https://reviews.freebsd.org/D18694
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r343930:</title>
<updated>2019-02-14T09:12:19+00:00</updated>
<author>
<name>Guangyuan Yang</name>
<email>ygy@FreeBSD.org</email>
</author>
<published>2019-02-14T09:12:19+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e4eac8c4f1d0ff3a4b4002e165ff53ec2ae41256'/>
<id>e4eac8c4f1d0ff3a4b4002e165ff53ec2ae41256</id>
<content type='text'>
Remove -R option which was added to sysctl(8) man page per r244106, but it is not implemented.

Submitted by:	Alfonso Siciliano &lt;alfix86@gmail.com&gt;
Reviewed by:	0mp, imp
Differential Revision: 	https://reviews.freebsd.org/D19012
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove -R option which was added to sysctl(8) man page per r244106, but it is not implemented.

Submitted by:	Alfonso Siciliano &lt;alfix86@gmail.com&gt;
Reviewed by:	0mp, imp
Differential Revision: 	https://reviews.freebsd.org/D19012
</pre>
</div>
</content>
</entry>
<entry>
<title>sysctl(8): Add a standard exit status section.</title>
<updated>2018-09-24T20:46:45+00:00</updated>
<author>
<name>Mateusz Piotrowski</name>
<email>0mp@FreeBSD.org</email>
</author>
<published>2018-09-24T20:46:45+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=8251b8b87eab9f00c51f0a3717e73a7402ed367e'/>
<id>8251b8b87eab9f00c51f0a3717e73a7402ed367e</id>
<content type='text'>
Reviewed by:	bcr
Approved by:	re (gjb), krion (mentor)
Differential Revision:	https://reviews.freebsd.org/D17147
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:	bcr
Approved by:	re (gjb), krion (mentor)
Differential Revision:	https://reviews.freebsd.org/D17147
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve handling of the EFI map types[] array.</title>
<updated>2018-09-08T18:57:05+00:00</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2018-09-08T18:57:05+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7404ab5ba9ddb782532766cad35c4918d465e993'/>
<id>7404ab5ba9ddb782532766cad35c4918d465e993</id>
<content type='text'>
Use nitems(), do not assume EFI_MD_TYPE_ contiguous allocation, in
particular, switch to use designated array initializers.

Reviewed by:	jhb (previous version)
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Approved by:	re (gjb)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use nitems(), do not assume EFI_MD_TYPE_ contiguous allocation, in
particular, switch to use designated array initializers.

Reviewed by:	jhb (previous version)
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Approved by:	re (gjb)
</pre>
</div>
</content>
</entry>
<entry>
<title>Teach sysctl(8) about the Persistent memory type.</title>
<updated>2018-09-07T15:09:56+00:00</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2018-09-07T15:09:56+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d4bdf8ed9a8482a5f638cf5024b162b6fa040ea9'/>
<id>d4bdf8ed9a8482a5f638cf5024b162b6fa040ea9</id>
<content type='text'>
Add PersistentMemory to the list of sysctl's known memory types
when decoding an EFI memory map.

Submitted by:	D Scott Phillips &lt;d.scott.phillips@intel.com&gt;
MFC after:	1 week
Approved by:	re (rgrimes)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add PersistentMemory to the list of sysctl's known memory types
when decoding an EFI memory map.

Submitted by:	D Scott Phillips &lt;d.scott.phillips@intel.com&gt;
MFC after:	1 week
Approved by:	re (rgrimes)
</pre>
</div>
</content>
</entry>
<entry>
<title>Trim whitespace.</title>
<updated>2018-09-07T14:37:44+00:00</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2018-09-07T14:37:44+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e1372c0e6ddf67bd6816e619dcd4160273b13266'/>
<id>e1372c0e6ddf67bd6816e619dcd4160273b13266</id>
<content type='text'>
Approved by:	re (gjb)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Approved by:	re (gjb)
</pre>
</div>
</content>
</entry>
<entry>
<title>Move sysctl.conf to sbin/sysctl/ and switch to CONFS.</title>
<updated>2018-08-11T13:28:03+00:00</updated>
<author>
<name>Brad Davis</name>
<email>brd@FreeBSD.org</email>
</author>
<published>2018-08-11T13:28:03+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=40557b99f5966e4224d8eff9a127b5f9ad8aaa19'/>
<id>40557b99f5966e4224d8eff9a127b5f9ad8aaa19</id>
<content type='text'>
This helps with pkgbase to tag this config file as a config file.

Approved by:	allanjude (mentor), will (mentor)
Differential Revision:	https://reviews.freebsd.org/D16559
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This helps with pkgbase to tag this config file as a config file.

Approved by:	allanjude (mentor), will (mentor)
Differential Revision:	https://reviews.freebsd.org/D16559
</pre>
</div>
</content>
</entry>
<entry>
<title>Permit sysctl(8) to set an array of numeric values for a single node.</title>
<updated>2018-03-09T23:37:19+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2018-03-09T23:37:19+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2365fe5616cfcd3cfde5fd640ef0153979205a8a'/>
<id>2365fe5616cfcd3cfde5fd640ef0153979205a8a</id>
<content type='text'>
Most sysctl nodes only return a single value, but some nodes return an
array of values (e.g. kern.cp_time).  sysctl(8) understand how to display
the values of a node that returns multiple values (it prints out each
numeric value separated by spaces).  However, until now sysctl(8) has
only been able to set sysctl nodes to a single value.  This change
allows sysctl to accept a new value for a numeric sysctl node that contains
multiple values separated by either spaces or commas.  sysctl(8) parses
this list into an array of values and passes the array as the "new" value
to sysctl(2).

Reviewed by:	rpokala
MFC after:	1 week
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D14569
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Most sysctl nodes only return a single value, but some nodes return an
array of values (e.g. kern.cp_time).  sysctl(8) understand how to display
the values of a node that returns multiple values (it prints out each
numeric value separated by spaces).  However, until now sysctl(8) has
only been able to set sysctl nodes to a single value.  This change
allows sysctl to accept a new value for a numeric sysctl node that contains
multiple values separated by either spaces or commas.  sysctl(8) parses
this list into an array of values and passes the array as the "new" value
to sysctl(2).

Reviewed by:	rpokala
MFC after:	1 week
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D14569
</pre>
</div>
</content>
</entry>
</feed>
