summaryrefslogtreecommitdiff
path: root/sbin/init
AgeCommit message (Collapse)Author
2003-10-12Bump date for previous; new sentence, new line; use more macros; fix a typo.wiz
2003-10-12Add an explanation of the fundamental purpose of the "security level"tls
mechanism and attempt to explain how to use it effectively.
2003-10-03If /dev/constty exists, use it instead of /dev/console for single user shell.dsl
I'm not 100% certain it should call login_tty() for anything else.
2003-09-11If /dev/MAKEDEV is a symlink then preserve the symlink in the mfs /dev.dsl
If /dev/MAKEDEV doesn't exist then try to run /etc/MAKEDEV instead. Use the (new) '-n inodes' option to mount_mfs and base the size on the number of inodes and the size of the MAKEDEV script.
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22308, verified by myself.
2003-08-05Exit child process if we fail to 'cd /dev' or 'execl sh MAKEDEV'.dsl
Don't really want two processes in the rest of init!
2003-07-12use asprintf, which is easieritojun
2003-07-01Avoid code duplication by factoring out the open/map open/write/unmap functions.christos
2003-07-01Always compile in support for attempting to obtain the major devicelukem
number of the console from sysctl("machdep.console_device"), rather than making in optional on the (unused) #ifdef DEBUG. Certain platforms do not have the console at makedev(0,0) (including many arm32 and some sh3 platforms), so the "mfs MAKEDEV" hack would have failed on those. Noted in private discussion with Quentin Barnes.
2003-05-26If RESCUEDIR is defined, use that as an alternate path to sh and mount_mfs,lukem
and prepend RESCUEDIR to the default PATH. (This replaces my _PATH_ALTSHELL mods from rev 1.52 of init.c)
2003-05-14setup -> set up.wiz
2003-04-20PR/5544: Anders Magnusson: Init segfaults when hupped in single user.christos
- fix so that session_db is not de-referenced when null, and other possible null pointer dereferences. - ignore hup and tstp in single user mode.
2003-04-17Call MAKEDEV with "init"fvdl
2003-02-25.Nm does not need a dummy argument ("") before punctuation orwiz
for correct formatting of the SYNOPSIS any longer.
2002-10-04White space nit.simonb
2002-10-01New sentence, new line. By Robert Elz with minimal fixes.wiz
2002-08-24if RESCUEDIR is defined, use ${RESCUEDIR}/sh as _PATH_ALTSHELLlukem
2002-08-24- use _PATH_ALTSHELL (which defaults to _PATH_BSHELL) as the default ALTSHELLlukem
(as opposed to _PATH_BSHELL), to allow the ALTSHELL to be changed. - print the full path to the default shell in the ALTSHELL prompt.
2002-08-24now that we have working rescue tools, there's no need to forcelukem
LDSTATIC=-static for init(8) on people who want LDSTATIC=""
2002-08-02fix typos that prevented us from cleaning utmpx. Noted by wizchristos
2002-07-27add utmpx/wtmpx processing support.christos
2002-04-16In single-user, after taking a signal and having the `shell' die withmycroft
SIGKILL, go into an infinite loop (like in the runcom SIGTERM case), on the assumption that reboot(8) is in the middle of taking the system down. This fixes `panic: init died' from sysinst.
2002-02-03crank size of mfs from 512 sectors to 768 sectors (large i386 MAKEDEV)lukem
2002-02-03.ifdef SMALLPROG, compile without ALTSHELL and SECURE supportlukem
2002-01-26KNF: - use %m always instead of sometimes using strerror()christos
- space problems in casts - don't cast 0, use NULL - don't have long lines - don't cast malloc - use warn/warnx instead of fprintf - fix bug where a failed mount_mfs would cause the program to continue. - pass lint
2002-01-23fix compilation problems on my alphalukem
2002-01-21Rename MSDOSFS_ROOT to MFS_DEV_IF_NO_CONSOLE, and rework:abs
- Always attempt mfs dev if missing /dev/console - Save and run both MAKEDEV and MAKEDEV.local - After creating the mfs dev, mknod() and freopen() /dev/console. - If MAKEDEV is missing do not fail out early, but still create the mfs, /dev/console. - If we hit any errors fail out to single user. This change _only_ affects systems booting without /dev/console.
2002-01-16Increase the size of the dev mfs to at least enough for 1.5.2 i386.abs
bin/15235 by Gavan Fantom.
2001-12-28* Add user-controlled mk.conf variableslukem
- SHLIBDIR Location to install shared libraries if ${USE_SHLIBDIR} is "yes". Defaults to "/usr/lib". - USE_SHLIBDIR If "yes", install shared libraries in ${SHLIBDIR} instead of ${LIBDIR}. Defaults to "no". Sets ${_LIBSODIR} to the appropriate value. This may be set by individual Makefiles as well. - SHLINKDIR Location of shared linker. Defaults to "/usr/libexec". If != "/usr/libexec", change the dynamic-linker encoded in shared programs * Set USE_SHLIBDIR for libraries used by /bin and /sbin: libc libcrypt libcrypto libedit libipsec libkvm libm libmi387 libtermcap libutil libz * If ${_LIBSODIR} != ${LIBDIR}, add symlinks from ${LIBDIR}/${LIB}.so* to ${_LIBSODIR}/${LIB}.so* for compatibility. * Always install /sbin/init statically (for now) The net effect of these changes depends on how the variables are set: 1.) If nothing is set or changed, there is no change from the current behaviour: - Static /bin, /sbin, and bits of /usr/* - Dynamic rest - Shared linker is /usr/libexec/ld*so 2.) If the following make variables are set: LDSTATIC= SHLINKDIR=/lib SHLIBDIR=/lib Then the behaviour becomes: - Dynamic tools - .so libraries used by /bin and /sbin are installed to /lib, with symlinks from /usr/lib/lib*so to -> /lib/lib*so where appropriate - Shared linker is /lib/ld*so 3.) As per 2.), but add the following variable: USE_SHLIBDIR=yes This forces all .so's to be instaleld in /lib (with compat symlinks), not just those tagged by their Makefiles to be. Again, compat symlinks are installed
2001-11-16Sort sections and SEE ALSO.wiz
2001-06-18complete conversion to ANSI Clukem
2001-06-05Drop arguments of .Os.wiz
2001-01-10deprecate LOG_ODELAY; it's the defaultlukem
2000-12-30Fix typo in v1.38.wiz
2000-12-30sprinkle some const'swiz
2000-12-30ANSIfy and de-__P()wiz
2000-12-30Handle NULL return value by fgets after shell prompt better. Alsowiz
improve '\n' slightly. Addresses bin/11847.
2000-10-18Remove INSTALLFLAGS=-fschg, as per change to usr.bin/ssh/ssh/Makefile.simonb
2000-04-29document the conditions for /etc/rc to be called with "autoboot"lukem
2000-04-26Using the `NOTES' file and source code as a reference, attempt to morelukem
accurately explain the operation of init(8)'s state machine.
2000-03-19The mode 0544 workaround has not been necessary since the first BSDi import.soren
2000-03-19Remove reference to crash(8).soren
2000-03-19Unbreak compilation with -DLETS_GET_SMALL as in PR bin/9639 by Patrick Welche.soren
2000-01-21Nuke `extern int errno;' in code we compile with -Wstrict-prototypes. We getmycroft
the correct definition from errno.h.
1999-11-09Since our gcc doesn't warn about NULL format strings anymore, we candrochner
fix the incorrect err(1, "%s", "") et al. Closes PR bin/7592 by cgd.
1999-09-28Note that proc.<pid>.corename susctl node is read-only at securelevel >= 2.bouyer
1998-11-14document ipf change at securelevel >= 2tls
1998-11-14reflect new securelevel 2 changestls
1998-11-14When downgrading from 'highly secure' mode (securelevel >= 2) to 'insecure' ↵tls
mode (securelevel 0) and the root password is set, always require it before giving a shell on the console. Reasoning: if an attacker has access to the machine console, he doesn't necessarily have access to the hardware itself; on a 'highly secure' machine, we may as well make his life hard.
1998-09-18Use sigset_t for signal masks.thorpej