summaryrefslogtreecommitdiff
path: root/etc
AgeCommit message (Collapse)Author
2017-07-25Finally remove backwards compat code to support the 'rtsol' keywordRobert Peichaer
in hostname.if(5) OK mpi@ deraadt@ florian@ OK jmc@ from doc perspective
2017-07-21Align ifstart() in netstart and install.sub.Robert Peichaer
- in netstart, rename _file to _hn referencing hostname.if files - in install.sub switch ifstart() to be used with _if instead of _hn as parameter ok krw@ tb@
2017-07-21syncMike Belopuhov
2017-07-21Multiple virtualization layers may be available at the same timeMike Belopuhov
reachable through different pvbus device nodes. Suggestion and OK deraadt, OK reyk
2017-07-18Use a bit better idiom to get most recent version of the libraryVadim Zhukov
being reordered. okay tb@ deraadt@
2017-07-18Use numerical sysctl output to check for nfs mounts.Robert Peichaer
OK tb@
2017-07-17Tweak previous.Robert Peichaer
2017-07-17Use a more compact way to compose the initial pf ruleset.Robert Peichaer
Diff from Klemens Nanni OK tb@ zhuk@
2017-07-17Now that choosing the library versions is much faster, we can doTheo Buehler
it after remounting the filesystem containing /usr/lib as rw: the former is pointless if the latter should happen to fail. From Klemens Nanni ok rpe
2017-07-17Optimize and simplify the selection of the latest library version inTheo Buehler
reorder_libs(). From Klemens Nanni with input from rpe. ok rpe, zhuk
2017-07-15Replace some `eval` with $(eval) for consistency and useTheo Buehler
parameter expansion instead of basename(1). From Raf Czlonka ok rpe
2017-07-10Test if an acct file exists before trying to rename it. This silencesAlexander Bluhm
false warnings in the frist three daily mails after process accounting has been turned on. from Raf Czlonka
2017-07-08Increase size to make slaacd fit.Florian Obser
Size problem noted by me, correct fix from deraadt@
2017-07-04Switch reorder_kernel() from sending emails to logging via syslogRobert Peichaer
and to write the logfile inside the kernel compile dir. - turn the whole reorder_kernel function into a subshell {} -> () - create kernel compile dir early on - redirect all stdout/stderr to a logfile inside this dir - setup ERR trap handler that - disables the EXIT trap handler - syslogs the error and hints to the logfile - additionally sends this message to the console - setup EXIT trap handler that syslogs success - wipe only the content instead of the whole kernel compile dir - reestablish stdout redirection to the log after the wipe - remove -q option of sha256 to log check result - run reorder_kernel() in the background OK deraadt@ tb@
2017-07-04Add GRACEFUL_SHUTDOWN example to bgpd.confjob
OK phessler@
2017-06-30Improve reorder_kernel()Robert Peichaer
- check for and exit if /usr/share is on a nfs mounted filesystem - add trap handlers that mail the logfile to the admin user - use $_compile instead of $_compile_dir like in the installer - use $_compile/$_kernel instead of $_kernel_dir - remove the now redundant sha256 -h ... after make newinstall - write stdout/stderr of the background subshell to a logfile OK tb@ deraadt@
2017-06-27remove some old cruft.Ted Unangst
2017-06-23Import regenerated moduli.Darren Tucker
2017-06-22Adjust relink procedure to use new targets. Better use semantics forTheo de Raadt
users and developers. diff from rpe, ok tb
2017-06-22compile.tgz no longer needs to contain machine/ subdir, instead it needsTheo de Raadt
makegap.sh ok tb
2017-06-21When building a snapshot, install the compile.tgz file to builder'sTheo de Raadt
/usr/share/ so that next boot will find it and perhaps use it. ok tb rpe
2017-06-19As early as possible, create a link /bsd.booted to the /bsd kernel weTheo de Raadt
presume we booted from. If you boot from another kernel, we cannot help you later with hibernate, sorry -- The kernel does not get a useable filename from the bootblocks. In the bootblocks, detect a live hibernate signature and boot from /bsd.booted instead. with yasuoka, lots of discussion with mlarkin, ok tom
2017-06-14Add a new function reorder_kernel() that relinks and installs theRobert Peichaer
new kernel in the background on system startup. It stores the hash of the new kernel and sends a notification email to the admin or root user. If it finds /usr/share/compile.tgz, it removes the existing compile dir and replaces it with the content of (new) archive. If the hash of /bsd does not match the stored one, no relinking happens. Idea from, joint work with and OK deraadt@ OK tb@ halex@ unnoticed by many
2017-06-14Grow sgi iso, to account for base containing compile.tgz.Theo de Raadt
SGI has 8 kernels, so the file is 113MB!
2017-06-13For KARL, include a linkkit into the base set, as usr/share/compile.tgz.Theo de Raadt
This contains the relevant pieces from all the GENERIC* compile directories (*.o ld.script Makefile gap.S). It also includes the machine/ subdir for now, to support re-randomizing of gap.S, though other methods are being investigated. (Any binutils ld.script hackers out there?) collaboration with rpe
2017-06-13The KARL compile.tgz linkkit adds some growth to the base set.Theo de Raadt
Prepare the install*.fs files for this growth.
2017-06-12destroy lint remnants.Marc Espie
okay millert@ deraadt@
2017-06-10Report processes that were killed due to pledge or memory accessAlexander Bluhm
violations in the daily mail. OK millert@ jmc@
2017-06-06start slaacd as early as possible, right after pf and sysctl.conf areFlorian Obser
setup. Input & OK deraadt@
2017-06-06Mention that the special files are created in the current workingTheo Buehler
directory. Suggested by Scott Cheloha. discussed with jmc
2017-06-05Temporarily disable the second call to rc_check until I figure out whatAntoine Jacoutot
is going on. Should fix another case of false negative reported by sthen (redis).
2017-06-05Fix logic in _rc_wait to properly cope with setproctitle(3) daemons. It was aAntoine Jacoutot
regression from my recent rc.subr changes. reported by deraadt@ and naddy@ : pflogd was marked as failed during boot while it was properly running
2017-06-03We have been running a small awk program before installing the relinked libc.Theo de Raadt
Perform the same kind of test for relinked libcrypto, using an openssl sequence (proposed by sthen)
2017-06-03Immediately after mounting / read-write, chmod og-rwx the kernel. RemoteTheo de Raadt
prying eyes were already been hindered at determining kernel addresses, now local prying eyes are also hindered. ok tb rpe
2017-06-03kernels in compile dirs are og-rwx, so need to make them readable inTheo de Raadt
$RELEASEDIR ok tb rpe
2017-06-03Move slaacd to /sbinFlorian Obser
jca points out that all the other interface configuration tools live there (like ifconfig or dhclient). Furthermore it starts so early in the boot process that /usr might not be mounted yet if it's a nfs filesystem. sthen and deraadt agree
2017-05-30Introduce a scary rc.conf(8) knob library_aslr=(YES|NO) to turn off theTheo Buehler
reordering of libraries by rc(8). This way machines with very slow disk I/O have a chance of booting within reasonable time now that libcrypto is also randomized. Discussed with various; input & ok from deraadt ajacoutot
2017-05-30Enable slaacd(8) by default and disable router solicitation andFlorian Obser
advertisement processing in the kernel. Go for it!!! deraadt@ additional encouragement to push forward from at least mpi and henning special thanks to naddy for being an early adopter and finding bugs.
2017-05-29rc.d(8) for slaacdFlorian Obser
OK phessler, deraadt
2017-05-29Randomize link-order of libcrypto as we do with libc. This libraryTheo de Raadt
has many small functions without significant local storage, therefore less tail protection from -fstack-protector-strong to prevent their use as ROP gadgets. It is used in security contexts. Also many functions dribble pointers onto the stack, allowing discovery of gadgets via the fixed relative addresses, so let's randomly bias those. ok tedu jsing The rc script will soon need a strategy for skipping this step on machines with poor IO performance. Or maybe do it less often? However, I don't see many more libraries we'll do this with, these are the two most important ones.
2017-05-28Move check later to mitigate a possible race.Antoine Jacoutot
2017-05-28Indent and rename var; no functional change.Antoine Jacoutot
2017-05-28When a daemon reaches its timeout when starting, display "timeout" insteadAntoine Jacoutot
of "ok" so the user is warned and has a chance to fix it (most of the time due to bogus flags). Daemons reaching the timeout without being able to start are still marked as "failed" (which should also give a clue to the user that some investigation is needed). prodded by beck@ a while ago discussed with and ok sthen@
2017-05-28Drop useless lines continuation; no functional change.Antoine Jacoutot
2017-05-28etc/netstart: use colon separator instead of dot with chownAdam Wolk
OK jung@, deraadt@, jmc@
2017-05-27Ok turns out we still want to keep the rc_bg variable around but we needAntoine Jacoutot
to know which daemon cannot background themselves (actually we want to know the opposite, but there are much more). However, it's only needed in _rc_wait and rc.subr still does its magic without the need to add `&'.
2017-05-27Add an ALRM timer to cope with 2 annoying issues in rc.d(8):Antoine Jacoutot
- prevent a daemon from hanging the boot (typo in your flagsm e.g. httpd_flags=-d) - make sure we can get the status of a backgrounded daemon instead of always returning success Side effect of this is that we can kill a knob! rip rc_bg :-) Ports will need love, and a second commit is coming for that. The diff is small yet not trivial so I am committing early in the release process in one shot so it can easily be reverted if needed. I started working on this during g2k16 in Cambridge then finished it in Brisbane for a2k17 where robert@, beck@ and sthen@ agreed it was the correct way to go and I should move ahead with it post 6.1. If you see any regression, please talk to me!
2017-05-21regenVisa Hankala
2017-05-21Enable radeondrm(4) on loongson to get accelerated graphicsVisa Hankala
with the RS780E chipset. OK kettenis@, jsg@
2017-05-07Change test from [] to [[]] and simplify pattern.Robert Peichaer
OK tb@, krw@ (for [[]]) Feedback and OK halex@