<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/libexec/rc, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>http://cgit.freebsd.org/src/atom?h=main</id>
<link rel='self' href='http://cgit.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<updated>2026-08-01T13:02:59Z</updated>
<entry>
<title>nuageinit: Allow the userdata script to run before firstboot* rc services</title>
<updated>2026-08-01T13:02:59Z</updated>
<author>
<name>Gleb Popov</name>
<email>arrowd@FreeBSD.org</email>
</author>
<published>2026-07-27T18:18:12Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=16e47f317c4ce2be5fed530bf8a9af9f9bf55364'/>
<id>urn:sha1:16e47f317c4ce2be5fed530bf8a9af9f9bf55364</id>
<content type='text'>
Allowing nuageinit user scripts to run before these makes it possible to
customize official BASIC-CI and BASIC-CLOUDINIT FreeBSD images.

This was requested by KDE for their CI.

Approved by:	cperciva
Pull-Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/60
</content>
</entry>
<entry>
<title>rc.d/bthidd: Correct load_kld invocations</title>
<updated>2026-07-31T18:05:03Z</updated>
<author>
<name>Li-Wen Hsu</name>
<email>lwhsu@FreeBSD.org</email>
</author>
<published>2026-07-31T18:05:03Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b5fe1bc5c6e4b483aacadddd8bdf37aa12c89982'/>
<id>urn:sha1:b5fe1bc5c6e4b483aacadddd8bdf37aa12c89982</id>
<content type='text'>
Pass a single module name to load_kld for kbdmux and vkbd, allowing
bthidd_prestart to load both modules successfully.

Fixes:		cfe1962a1925 (rc: Fix improper use of load_kld)
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>rc.subr: Fix premature return from wait_for_pids</title>
<updated>2026-07-27T10:15:47Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-07-27T10:15:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=356d0b79cf6fc693ed1a5564232e240ce15ccb8a'/>
<id>urn:sha1:356d0b79cf6fc693ed1a5564232e240ce15ccb8a</id>
<content type='text'>
Use pwait's new -r option to wait until the target processes have not
only terminated, but also been reaped.

PR:		293183
MFC after:	1 week
Sponsored by:	Klara, Inc.
Sponsored by:	NetApp, Inc.
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D58391
</content>
</entry>
<entry>
<title>rc.d/dumpon: minor hardening/tightening up</title>
<updated>2026-07-16T16:25:03Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2026-07-16T16:24:54Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=fc186c24b1e72fa3eba91c166f7a554a5cea5828'/>
<id>urn:sha1:fc186c24b1e72fa3eba91c166f7a554a5cea5828</id>
<content type='text'>
- Scope local variables properly to each function.
- Quote variables that should be treated as single words.
- Replace `${cmd}; if [ $? -eq 0 ]` with `if ${cmd}` for simplicity.

MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D57899
</content>
</entry>
<entry>
<title>pflog: create bpf tapping points without ifnet(9)</title>
<updated>2026-06-28T13:59:35Z</updated>
<author>
<name>Kristof Provost</name>
<email>kp@FreeBSD.org</email>
</author>
<published>2026-06-24T10:21:20Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e4f3ab161a9e149fd2f657f6d8af2ba3c618255f'/>
<id>urn:sha1:e4f3ab161a9e149fd2f657f6d8af2ba3c618255f</id>
<content type='text'>
Just as was done for ipfw's log device stop creating entire struct
ifnet's for pflog devices. Create only a bpf_t.

This does mean we lose the create/destroy infrastructure provided by the
clone interface. Rather than implement this ourselves we allow users to
configure the number of pflog interfaces using the net.pflog.if_count
sysctl. We default to 8 devices, but allow up to 256.

The /etc/rc.d/pflog script will create extra devices as required.

While it was possible to rename pflog devices pfctl expected the pflogX
name, so it's safe to assume users never did this.

Requested by:	glebius
Reviewed by:	glebius
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D57851
</content>
</entry>
<entry>
<title>rc.d: fix lockd and statd flags processing after scvj</title>
<updated>2026-06-27T13:52:08Z</updated>
<author>
<name>Alexander Leidinger</name>
<email>netchild@FreeBSD.org</email>
</author>
<published>2026-06-27T13:44:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d05d60e958bca778ea193932facb026c48d7ca0b'/>
<id>urn:sha1:d05d60e958bca778ea193932facb026c48d7ca0b</id>
<content type='text'>
The documented flags are named differently than the script name, this
requires special handling of the flags.

The Service Jails feature requires the handling of the variable to be
differently than it was initially. The change back then did not work,
which resulted in the flags to be ignored.

This commit fixes the issue in head. This affects 15.0 and 15.1 too.

PR:		296233
Reported by:	Robert Blayzor &lt;rblayzor@inoc.net&gt;
Tested by:	Robert Blayzor &lt;rblayzor@inoc.net&gt;
Fixes:		f99f0ee14e3af81c2 - rc.d: add a service jails config to all base system services
MFC after:	1 month
MFC to:	15-stable
</content>
</entry>
<entry>
<title>rc.d/tmp: Fix dupe mount check</title>
<updated>2026-06-26T14:39:03Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-06-26T14:39:03Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=45efa4e61623e3eeee7fd0a3f4436616e24c8e98'/>
<id>urn:sha1:45efa4e61623e3eeee7fd0a3f4436616e24c8e98</id>
<content type='text'>
Before mounting a new mfs on /tmp, we check if there already is one.
However, the dupe check only takes /dev/md[0-9]* into account, while the
default mfs type these days is tmpfs.  Rewrite it to look for tmpfs as
well.

Note that the dupe check is redundant in the tmpmfs=auto case, but we
leave moving it for later.

PR:		182035
MFC after:	1 week
Reviewed by:	kevans, allanjude
Differential Revision:	https://reviews.freebsd.org/D57682
</content>
</entry>
<entry>
<title>rc.d/ddb: Really silently exit</title>
<updated>2026-06-26T14:38:58Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-06-26T14:38:58Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b0d3a2889a1b8e4b73ad1f396884224e1442b214'/>
<id>urn:sha1:b0d3a2889a1b8e4b73ad1f396884224e1442b214</id>
<content type='text'>
The comment says “silently exit if ddb is not enabled”, but we'd exit
with an error message.

Note that I switched the sysctl variable used to test for the presence
of ddb from debug.ddb.scripting.scripts to d.d.s.script, which has a
smaller value if set.

While here, drop a pointless fork-exec, and use ${SYSCTL_N} for
consistency.

PR:		177217
MFC after:	1 week
Reviewed by:	kevans
Differential Revision:	https://reviews.freebsd.org/D57686
</content>
</entry>
<entry>
<title>rc.firewall: Support on-disk lists</title>
<updated>2026-06-26T14:38:53Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-06-26T14:38:53Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a71abf38e2b46c02965f3224c62bb6ef1971996e'/>
<id>urn:sha1:a71abf38e2b46c02965f3224c62bb6ef1971996e</id>
<content type='text'>
For firewall_allowservices and firewall_trusted, if an element of the
list looks like an absolute path, read the file, skipping comments and
blank lines, and treat the first word on each line as an address or
subnet to be added to the list.

We should probably be using tables instead, but this is still an
improvement over the status quo ante.

MFC after:	1 week
Relnotes:	yes
Reviewed by:	allanjude
Differential Revision:	https://reviews.freebsd.org/D57679
</content>
</entry>
<entry>
<title>rc.firewall: Use checkyesno for boolean variables</title>
<updated>2026-06-26T14:38:44Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-06-26T14:38:44Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a3c077c1ccbe57ffad6317879bc1e49291892414'/>
<id>urn:sha1:a3c077c1ccbe57ffad6317879bc1e49291892414</id>
<content type='text'>
Use the checkyesno function from rc.subr instead of hardcoded checks for
boolean variables.  Also drop an incorrect comment about the default
logamount value; the actual default is zero (unlimited).

MFC after:	1 week
Reviewed by:	kevans, allanjude
Differential Revision:	https://reviews.freebsd.org/D57678
</content>
</entry>
</feed>
