ttys: Add 'ifexists' option to enable ttys only if existsImplement the 'ifexists' ttys option in init(8) to enable a tty only ifit exists. This allows one to turn off getty for ttys that aren'tp
ttys: Add 'ifexists' option to enable ttys only if existsImplement the 'ifexists' ttys option in init(8) to enable a tty only ifit exists. This allows one to turn off getty for ttys that aren'tpresent (e.g., on a headless system), and thus prevent getty error logsfrom filling up /var/log/messages; e.g.,------Sep 20 09:13:07 microserver getty[236362]: open /dev/ttyv0: No such file or directorySep 20 09:13:07 microserver getty[236404]: open /dev/ttyv0: No such file or directorySep 20 09:13:07 microserver getty[236405]: open /dev/ttyv0: No such file or directorySep 20 09:13:07 microserver getty[236406]: open /dev/ttyv0: No such file or directorySep 20 09:13:07 microserver getty[236407]: open /dev/ttyv0: No such file or directorySep 20 09:13:07 microserver init: getty repeating too quickly on port /dev/ttyv0, sleeping 30 secs------Update the ttys(5) and getttyent(3) man pages accordingly.The updates to ttys files will follow.Discussed-with: dillonCredit: https://reviews.freebsd.org/D10037
show more ...
init(8): Remove unneeded libcrypto linking.
world: Staticize various variables and also remove a couple of unused ones.
Adjust numerous manual pages, scripts and Makefiles for the utmp removal.Also remove /var/run/utmp and /var/log/lastlog via 'make upgrade'. Keepany /var/log/wtmp and /var/log/wtmp.* files in case
Adjust numerous manual pages, scripts and Makefiles for the utmp removal.Also remove /var/run/utmp and /var/log/lastlog via 'make upgrade'. Keepany /var/log/wtmp and /var/log/wtmp.* files in case the user wants toconvert them with wtmpcvt(1).
init(8): Switch to utmpx. Drop utmp support.
init(8): Pass waitpid() status to clear_session_logs() and log to wtmpx.Taken-from: NetBSD
init(8): Put utmp/wtmp specific code under SUPPORT_UTMP.
init/oinit: Remove some old, unused/obsolete paths and comments.Seems the _PATH_SLOGGER was defined but not used since at least 4.4BSD.Reported-by: aly
Remove a number of duplicated includes in userland.
Remove usage of syslog(3)'s LOG_ODELAY because it is the default.
Convert from __arysize to NELEMTry to use a single macro across the boardDiscussed-with: zrj, swildner
Normalize libcrypto and libssl DPADD variable names and adjust Makefiles.
init(8): Convert to use sig_atomic_t.Instead of returning function pointer, now return enum for the next state.Avoids -Wcast-function-type warnings.Taken-from: OpenBSD
Fix seg-faults on crypt(3) failure
LIBPRIV: Add common PRIVATELIB_LDFLAGS definitions.Simply being able to change it in two places is easier than everywhere.Also add PRIVATELIB_BLDFLAGS that is intended for bootsrapping only.While
LIBPRIV: Add common PRIVATELIB_LDFLAGS definitions.Simply being able to change it in two places is easier than everywhere.Also add PRIVATELIB_BLDFLAGS that is intended for bootsrapping only.While there, perform some cleanup for dup entries.
build - Rewire secure, remove conflicts from libmd, libcrypt* Remove /usr/src/secure, folding all of its subsystems into /usr/src. There's no point having a /usr/src/secure any more, the syste
build - Rewire secure, remove conflicts from libmd, libcrypt* Remove /usr/src/secure, folding all of its subsystems into /usr/src. There's no point having a /usr/src/secure any more, the system won't run without the secure stuff, the idea that some foreign actor could segregate it in order to legally download code without crypto is absurd on the modern internet, and the U.S. government stopped caring decades ago.* Remove conflicts from libmd and libcrypt. Essentially this removes the SHA*_*() and MD5_*() APIs from libmd because these APIs already exist in lib[re]ssl. The older SHA*() and MD5*() APIs are partially retained for legacy base code, but will be removed in a later stage (moved to direct-linking the needed support source). Conflicting routines in libcrypt have been renamed and internalized to be libcrypt-only.* Major rewiring of the Makefile's to support the changes.
Add HISTORY sections in most sbin/ manual pages.Submitted-by: Sevan JaniyanDragonfly-bug: <https://bugs.dragonflybsd.org/issues/2950>
Remove advertising header from bin/ & sbin/Correct BSD License clause numbering from 1-2-4 to 1-2-3.
ttys - Add 'ifconsole' option to ttys entries* Add the 'ifconsole' option. This allows you to construct a line as shown below to enable a getty (e.g. on a serial port) only if the tty is the s
ttys - Add 'ifconsole' option to ttys entries* Add the 'ifconsole' option. This allows you to construct a line as shown below to enable a getty (e.g. on a serial port) only if the tty is the system console. ttyd0 "/usr/libexec/getty std.9600" dialup on secure ifconsole The ifconsole option also silently disables any devices which do not exist, removing unnecessary console spam.* Modify libc and init to handle the new flag.* Modify the nrelease build and ttys defaults to use this option for ttyd0, ttyd1, ttyd2, and ttyd3.* Avoids previously reported issues with system crashes on certain machines whos serial ports are not implemented properly without having to fully disable the default ttyd* getty feature. If the serial port isn't the console, it won't be enabled.* Add a sysctl to the kernel which init needs to test whether a tty is the console or not.Suggested-by: swildner
Dynamic root: Build /bin and /sbin dynamically* Introduce a NO_DYNAMICROOT variable for people wanting to keep fully static /bin and /sbin directories* Keep building /sbin/init statically* Ke
Dynamic root: Build /bin and /sbin dynamically* Introduce a NO_DYNAMICROOT variable for people wanting to keep fully static /bin and /sbin directories* Keep building /sbin/init statically* Keep a few other binaries static to avoid moving too many libraries to /lib and/or creating many symlinks. Those few binaries do not handle user names and thus don't need to be NSS aware/dynamically linked.* In particular, keeping udevd static allow us to avoid moving libpthread and its associated links to libc_r or libthread_xu
Correct BSD License clause numbering from 1-2-4 to 1-2-3.Apparently everyone's doing it:http://svnweb.freebsd.org/base?view=revision&revision=251069Submitted-by: "Eitan Adler" <lists at eitanadl
Correct BSD License clause numbering from 1-2-4 to 1-2-3.Apparently everyone's doing it:http://svnweb.freebsd.org/base?view=revision&revision=251069Submitted-by: "Eitan Adler" <lists at eitanadler.com>
Remove advertising header from man pages.By: Eitan Adler <lists@eitanadler.com>
Remove advertising header from all userland binaries.From: Eitan Adler <lists@eitanadler.com>
init(8): Resurrect kern.shutdown_timeout as kern.init_shutdown_timeout.Taken from FreeBSD. Quoting their commit msg:Fix system shutdown timeout handling by again supporting longer runningshutdow
init(8): Resurrect kern.shutdown_timeout as kern.init_shutdown_timeout.Taken from FreeBSD. Quoting their commit msg:Fix system shutdown timeout handling by again supporting longer runningshutdown procedures (which have a duration of more than 120 seconds).We have two user-space affecting shutdown timeouts: a "soft" one in/etc/rc.shutdown and a "hard" one in init(8). The first one can beconfigured via /etc/rc.conf variable "rcshutdown_timeout" and defaultsto 30 seconds. The second one was originally (in 1998) intended to beconfigured via sysctl(8) variable "kern.shutdown_timeout" and defaultsto 120 seconds.Unfortunately, the "kern.shutdown_timeout" was declared "unused" in 1999(as it obviously is actually not used within the kernel itself) andhence was intentionally but misleadingly removed in revision 1.107 frominit_main.c. Kernel sysctl(8) variables are certainly a wrong way tocontrol user-space processes in general, but in this particular case thesysctl(8) variable should have remained as it supports init(8), whichisn't passed command line flags (which in turn could have been set via/etc/rc.conf), etc.As there is already a similar "kern.init_path" sysctl(8) variable whichdirectly affects init(8), resurrect the init(8) shutdown timeout undersysctl(8) variable "kern.init_shutdown_timeout". But this time documentit as being intentionally unused within the kernel and used by init(8).Also document it in the manpages init(8) and rc.conf(5).
Sweep-fix comparing pointers with 0 (and assigning 0 to pointers).For better readability, don't compare pointers with 0 or assign 0to them. Use NULL instead.The change was done with coccinelle.
12