summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2016-09-10Drop syspatch_trap, it's simple enough for trap no needing its own function.Antoine Jacoutot
Introduce sp_err() which will get used for error messages.
2016-09-10apply_patches should not take any arguments.Antoine Jacoutot
Few tweaks while here.
2016-09-10missing fclose() in an error pathJonathan Gray
2016-09-10fix an fd leak in an error pathJonathan Gray
2016-09-08Streamline the daemon shutdown sequence.Eric Faurot
Only the parent process handles SIGTERM and SIGINT. Upon receiving one of those, it closes all imsg sockets and waitpid() for the children. It fatal()s if one of the sockets is closed unexpectedly. Other processes exit() "normally" when one of the imsg sockets is closed. ok gilles@ sunil@
2016-09-08new sign only when new signMarc Espie
2016-09-07strlen + emalloc + snprintf = asprintfMichal Mazurek
Written with and ok tb@
2016-09-07Get rid of the static nomem() function and replace it with err(1, NULL);Michal Mazurek
Written with and ok tb@
2016-09-07Minimal man page.Antoine Jacoutot
2016-09-07Don't fetch all patches at once but instead fetch+verify+patch one by one.Antoine Jacoutot
2016-09-07Don't put bsd.mp twice in the GENERIC.MP rollback tarball.Antoine Jacoutot
2016-09-07syspatch goal is not to act as a package manager but to sync the system to theAntoine Jacoutot
corresponding stable. So prevent rollbacking a specific binpatch but instead always rollback the latest one. It's the only way we can know the system is consistent. discussed with halex@ jasper@ robert@
2016-09-07Validate service names with _rc_check_name() from rc.subr.Antoine Jacoutot
ok sthen@ robert@
2016-09-07Fix about the default value of pptp-hostname. It's an empty string.YASUOKA Masahiko
Reported by Joe Holden.
2016-09-06use closefrom() before reexec to make sure the new process only getsEric Faurot
the imsg socket. ok gilles@ sunil@
2016-09-06Drop useless variable and check.Antoine Jacoutot
2016-09-06Greatly simplify patch type detection and make things more generic.Antoine Jacoutot
2016-09-06Backport unbound r3830/3831 from upstreadm, fixing an issue where it canStuart Henderson
become unresponsive and need to be restarted following a connectivity outage. From Brad, ok florian@ r3831 | wouter | 2016-08-23 04:49:01 -0400 (Tue, 23 Aug 2016) | 3 lines - Fix #804: lower num_target_queries for iterator also for failed lookups. r3830 | wouter | 2016-08-23 04:30:12 -0400 (Tue, 23 Aug 2016) | 3 lines - Fix #804: unbound stops responding after outage. Fixes queries that attempt to wait for an empty list of subqueries.
2016-09-06Sort and set readonly global vars.Antoine Jacoutot
2016-09-06heck, have new signatures be -Dnewsign until we flip the switchMarc Espie
2016-09-06Mention PAGER behavior when undefined/empty.Antoine Jacoutot
from Michael Reed ok jmc@
2016-09-06remove code that allows pkg_create to signMarc Espie
2016-09-06some indent; from michael reedJason McIntyre
2016-09-05We do not compile things -g by defaultTheo de Raadt
2016-09-05this file cannot be kept accurateTheo de Raadt
2016-09-05Make sure the file exists before putting it in the rollback tarball.Antoine Jacoutot
2016-09-05Missing local.Antoine Jacoutot
Shorter var name.
2016-09-05use a for loop for mtree for the two spec filesRobert Nagy
and add a better comment ok ajacoutot@
2016-09-05No need to install the /var/syspatch/$REL directory, the binpatch does it ↵Antoine Jacoutot
for us. Put /var/syspatch into a variable, it's used more than 10 times. prodded by robert@
2016-09-05Welcome syspatch(8), a binary patch management utility for the base system.Antoine Jacoutot
This is currently a POC, maybe it will become something, maybe not. Therefore it will not be hooked to the build before we are happy with it. Workflow would be something like: - fetch and verify signed tarballs containing the patched binaries from a mirror - create a rollback tarball of the files we are about to replace - extract and install the patched files *** BIG FAT RED DISCLAIMER *** This is very much WIP, it does *NOT* work, don't bikeshed, don't use it! "get it in" deraadt@
2016-09-05forgot to provide an empty methodMarc Espie
2016-09-04The smtpd processes are not expected to ever leave their event loop.Eric Faurot
So stop pretending that the *_shutdown() functions could ever be called in this context, and just fatal() if event_dispatch() returns. ok gilles@ sunil@ giovanni@
2016-09-04forgot to regenFlorian Obser
2016-09-04Add format attribute to logger functions.Florian Obser
Add syslog_debug to keep in sync with others. Input & OK benno@
2016-09-04Add format attribute to logger functions.Florian Obser
Fix format string while here. Input & OK benno@
2016-09-04Add format attribute to logger functions.Florian Obser
Input & OK benno@
2016-09-04put signify errors alongside ftpMarc Espie
2016-09-04signature tracking bases: stored signed status inside object, so thatMarc Espie
we don't erroneously get "signature" comments from unsigned packages. force the gzip object to get its header. So if it can't something wrong happened. for now, we just know shit happened...
2016-09-04basic scaffolding to ask signify to check stuffMarc Espie
still missing some proper error reporting
2016-09-04Avoid double negations in tests.Jeremie Courreges-Anglas
ok krw@
2016-09-04A few bits of stray leading/embedded/trailing whitespace spotted whileKenneth R Westerback
stealing code.
2016-09-04Remove the "smtpctl stop" command.Eric Faurot
The daemon is stopped with kill(1). ok gilles@
2016-09-03log IP/hostname for all SMTP operations.Giovanni Bechis
patch from Pavel Korovin, thanks ok gilles@
2016-09-03remove dead codeGilles Chehade
2016-09-03rearrange code: traceroute.c now only contains main() and usage(),Sebastian Benoit
worker.c contains all other functions, and i tracked down which global variables are used in which file and marked them accordingly with static (or not). No functional change, just the basis of further work. ok florian@, deraadt@
2016-09-03Some .h files are not neededTheo de Raadt
2016-09-03partial rewrite of the tcp/tls option parts: the trouble wasJason McIntyre
with options which accepted a "no" prefix, it was difficult to see what was enabled and what was disabled; ok reyk (claudio ok'd an earlier version of the diff too)
2016-09-03typosJeremie Courreges-Anglas
2016-09-03Simplify shutdown process.Renato Westphal
On shutdown, there's no need to use kill(2) to kill the child processes. Just closing the IPC sockets will make the children receive an EOF, break out from the event loop and then exit. Tha advantages of this "pipe teardown" are: * simpler code; * no need to pledge "proc" in the parent process; * removal of a (hard to trigger) PID reuse race condition. ok benno@ claudio@
2016-09-03Rework the sending of address messages.Renato Westphal
* Respect the session's negotiated maximum pdu length and split the sending of our local addresses into multiple messages if necessary; * Log sent/received addresses; * Add new wrappers to send only one address (send_address_single) and to send all addresses of the given address-family (send_address_all). These wrappers create a temporary list of addresses to be sent, and send_address() then acts on this last.