<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sbin/init, branch upstream/13.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=upstream%2F13.1.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=upstream%2F13.1.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2021-08-26T06:42:00Z</updated>
<entry>
<title>init: execute /etc/rc.final after all user processes have terminated</title>
<updated>2021-08-26T06:42:00Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2021-07-20T10:40:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9ee8e86c0da02b0c0ef1d8b933788f9193b7e46d'/>
<id>urn:sha1:9ee8e86c0da02b0c0ef1d8b933788f9193b7e46d</id>
<content type='text'>
This can be useful for, e.g., unmounting filesystems that were needed
for shutdown.

Sponsored by:	NetApp, Inc.
Sponsored by:	Klara, Inc.
X-NetApp-PR:	#63

(cherry picked from commit 4d1597691916240b9023ee9f15e249503abf67fd)
</content>
</entry>
<entry>
<title>etc/ttys: add xen console</title>
<updated>2021-07-21T16:07:34Z</updated>
<author>
<name>Julien Grall</name>
<email>julien@xen.org</email>
</author>
<published>2015-10-29T14:22:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7ca3061f84e3d6ac4368d83251bf455df93d61a3'/>
<id>urn:sha1:7ca3061f84e3d6ac4368d83251bf455df93d61a3</id>
<content type='text'>
Xen VMs get a simulated serial device meant for use as a console.  Often
an xterm or other advanced terminal is used, so use xterm as the type.

Depending on configuration, FreeBSD on Xen for amd64 may instead use an
emulated serial port, but the virtual console may also be available.

Submitted by:	Elliott Mitchell &lt;ehem+freebsd@m5p.com&gt;
Reviewed by:	imp (slightly earlier version)
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D29873

(cherry picked from commit 2b2c460d7bb856a069047583a55a60976cd375a4)
</content>
</entry>
<entry>
<title>etc/ttys: merge ttys file down to single file</title>
<updated>2021-07-21T16:05:01Z</updated>
<author>
<name>Elliott Mitchell</name>
<email>ehem+freebsd@m5p.com</email>
</author>
<published>2021-05-13T06:58:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ddefb003ee208fce2a3a64ed16fcb7c3c94952b8'/>
<id>urn:sha1:ddefb003ee208fce2a3a64ed16fcb7c3c94952b8</id>
<content type='text'>
The tty lists were already pretty similar and there hadn't been any real
need for them to remain distinct for some time. As such, merge to a
single file.

The RISC-V console is preserved. For systems where it doesn't exist, its
presence in /etc/ttys is harmless. The uncommented version of the
ttyv8/XDM line from ttys.amd64 was the one chosen.

Reviewed by:	imp
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D30256

(cherry picked from commit c76616f496ee7e6b0a4ed9444fad56418f137a5a)
</content>
</entry>
<entry>
<title>ttys: diff reduction</title>
<updated>2021-07-21T16:04:43Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2021-05-04T19:49:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ad0c23cdcd122f2fb1598cfad7d61aabe062bffa'/>
<id>urn:sha1:ad0c23cdcd122f2fb1598cfad7d61aabe062bffa</id>
<content type='text'>
Back in the day, we used to have a number of entries that were either
'on' or 'off' directly, rather than conditionally on 'onifexists'
etc. Back then, we tried to line up the 'secure' columns by using the
construct 'on secure' or 'off secure' (one space or two). Now that these
have all moved to a conditional construct, remove the second space on
the ttys that still have it. This reduces diffs between the different
ttys and is no functional change. i386 and amd64 did this a long time
ago, and those are the only ones that affected external users (who used
to sed 's/on /off /' the entires as part of the automation).

MFC After:		3 days
Sponsored by:		Netflix

(cherry picked from commit 36be84b96699310e0020e194f81fe8e4a6c3f787)
</content>
</entry>
<entry>
<title>init: use explicit_bzero() for clearing passwords</title>
<updated>2021-04-01T17:29:06Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2021-03-03T03:38:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=223d6caabd2ebaa8f0498a4e33b3418661173dad'/>
<id>urn:sha1:223d6caabd2ebaa8f0498a4e33b3418661173dad</id>
<content type='text'>
This is a nop in practice, because it cannot be proven that this
particular bzero() is not significant.  Make it explicit anyways, rather
than relying on an implementation detail of how the password is
collected.

Discussed with:	Andrew Gierth &lt;andrew tao146 riddles org uk&gt;

(cherry picked from commit 852f70b24043885f0e438e8fecedd482a9a96d5e)
</content>
</entry>
<entry>
<title>sbin/init: Reduce code duplication by using %m for error message</title>
<updated>2020-12-26T01:49:33Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2020-12-26T01:49:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=804b4afb9cf897dc353d9ba379dbedbba1541016'/>
<id>urn:sha1:804b4afb9cf897dc353d9ba379dbedbba1541016</id>
<content type='text'>
instead of passing %s with return value from strerror().

MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Remove risky compatability with old kernels</title>
<updated>2020-09-02T21:14:36Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2020-09-02T21:14:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a449e81e001b2647c47389c6667ccc7fa5d9a869'/>
<id>urn:sha1:a449e81e001b2647c47389c6667ccc7fa5d9a869</id>
<content type='text'>
The badsys() handler for SIGSYS was added as a transtion aid for kernels
lacking sysctl() in 1993.  It is unsafe and unsound so remove it rather
than running the risk of a privilege-dropping system call being silently
omitted.

This partially reverts SCCSID 6.12 (Berkeley) 03/03/93 "add code to
change the system security level".

Reviewed by:	mckusick, imp, kevans
Obtained from:	CheriBSD
MFC after:	1 week
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D26289
</content>
</entry>
<entry>
<title>- Cleanups related to sparc64 removal.</title>
<updated>2020-07-28T10:58:37Z</updated>
<author>
<name>Yoshihiro Takahashi</name>
<email>nyan@FreeBSD.org</email>
</author>
<published>2020-07-28T10:58:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8f11c997150d17d72a801874bd486aad1ef7c239'/>
<id>urn:sha1:8f11c997150d17d72a801874bd486aad1ef7c239</id>
<content type='text'>
- Remove remains of sparc64 files.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D25831
</content>
</entry>
<entry>
<title>init(8): set environment variables from the "daemon" class as well</title>
<updated>2020-02-05T04:27:44Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-02-05T04:27:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=21c1a93c048fdd9c276899e72dcb8dc93cc18e09'/>
<id>urn:sha1:21c1a93c048fdd9c276899e72dcb8dc93cc18e09</id>
<content type='text'>
Specifically, when running /etc/rc. This allows one to specify via
login.conf(5) an environment that should be used when running services to
ease, e.g., setting up env vars for an HTTP proxy consistently across cron
and services alike.

Future changes will extend cron(8)/service(8) to use environment vars
pecified in login.conf(5) as well to promote a more cohesive experience.

This is a part of D21481.

Submitted by:	Andrew Gierth &lt;andrew_tao173.riddles.org.uk&gt;
</content>
</entry>
<entry>
<title>Small tweak to the default behavior of shutdown -c</title>
<updated>2020-01-17T01:20:48Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2020-01-17T01:20:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=73c6e0c358bd10473364f1836f8873fab43d616b'/>
<id>urn:sha1:73c6e0c358bd10473364f1836f8873fab43d616b</id>
<content type='text'>
'shutdown -c' is supposed to power cycle the system rather than doing a normal
reboot. However, when that fails, it halts the system. This is not quite right
since the intent isn't to halt the system but to restart. Make the default init
behavior be to restart the system. The halt(8) interface can be used if you'd
like to powercycle or halt.

MFC After: 1 week
Differential Revision: https://reviews.freebsd.org/D23129
</content>
</entry>
</feed>
