summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2015-10-29Also need exec to run the editor of course.Todd C. Miller
2015-10-29crontab needs "proc" for fork(2)Todd C. Miller
2015-10-29Use stravis(3) instead of a homegrown vis-like function.Todd C. Miller
OK nicm@
2015-10-29remove unused variablesTodd C. Miller
2015-10-29Convert env_get() into env_find() similar to __findenv() in libc.Todd C. Miller
Use env_find() in both env_get() and env_set() to find a var in envp. Remove now-unused strcmp_until() function.
2015-10-29Remove useless FACILITY define and use LOG_CRON directly.Todd C. Miller
Remove unneeded limits.h include.
2015-10-29put timeout nullification in correct spotTed Unangst
2015-10-29be a little more precise about checking filtersTed Unangst
2015-10-29refold a few linesTed Unangst
2015-10-29collect some cool stats and print them out with SIGUSR1Ted Unangst
2015-10-29Implement smtpctl discover <evpid|msgid>.Sunil Nimmagadda
discover subcommand schedules envelopes manually moved to the queue. It triggers a queue walk searching for envelopes with the given id, schedules them and informs the user number of envelopes scheduled. Admins no longer would need to restart the daemon to discover manually moved messages. Ok gilles@
2015-10-29rdate is a classic "run as root, talk to internet for a while doingTheo de Raadt
crazy packet parsing, then do something requiring privilege at the end" program. Simplistic pledge would be "stdio rpath wpath inet dns settime", which is not very useful. Imagine if it was exploited? It could still change your time backwards or write to your passwd file - game over. However the pledge "categorization" is educational, and quickly leads to a priv-sep solution of sorts. Create a pipe and fork. child pledges "stdio inet dns", and talks the time protocols, then writes error message + timeinfo to the pipe. parent pledges "stdio rpath wpath settime" and reads error message/timeinfo from pipe. If error message, spit it out. Otherwise handle the time, then pledge "stdio rpath", and finally report how the time was adjusted. A bit more complicated. Now observe that the pledges help test if it is right... (Now that privsep processing is in place, the child could be modified to chroot + change to a different uid... problem is: which uid..) ok millert
2015-10-29Almost assuredly no longer needs pledge "route"Theo de Raadt
2015-10-28impose some limit on the cache size as well.Ted Unangst
2015-10-28if accept() fails due to fd exhaustion, stop accepting for one second.Ted Unangst
should only happen for ENFILE, but check for EMFILE too.
2015-10-28Backout the backout of installboot softraid non-gpt case fix.Stefan Sperling
krw and I crossed streams
2015-10-28bug in the request tree code: requests were being added to the tree beforeTed Unangst
the socket (the key) was being set. move the enqueue code later, and fix freerequest to only dequeue if socket is set.
2015-10-28twiddle with rlimit to give us a few more files. use rlimit as a hint asTed Unangst
to how many requests to allow open at once. start closing old ones as we approach the limit, which means we track the number of outstanding requests (and count tcp as two). also rename tcp "phase" to tcp, and use it as a more direct indicator.
2015-10-28pledgeTheo de Raadt
ok millert
2015-10-28Revert GPT change. Breaks non-GPT install/upgrade.Kenneth R Westerback
Found the hard way by reyk@
2015-10-28add pledge to main process, though it needs a few more optionsTed Unangst
2015-10-28use an rb tree for the cache too. modelled after the reqtree.Ted Unangst
2015-10-28In sr_install_bootblk for i386, don't clobber 'part' in non-GPT case.Stefan Sperling
Found the hard way by reyk@. stupid mistake stsp@ ok reyk@
2015-10-28use an rb tree for finding requests. from Dimitris PapastamosTed Unangst
2015-10-28Remove a few more NULL-checks before free.mmcc
2015-10-28While I'm in here, drop a NULL-check before free.mmcc
2015-10-28masquerade and senders map require being able to lookup mailaddr structuresGilles Chehade
in tables, prepare for such features by bringing the helpers + smtpd.h part ok millert@
2015-10-28Remove support for lpd.pid file. OK deraadt@Todd C. Miller
2015-10-28pcap_stat fields are unsigned, print them as suchJeremie Courreges-Anglas
Patch from Kevin Reay.
2015-10-28By hoisting sysctl hw.cpuspeed towards the top, it is possible toTheo de Raadt
pledge "stdio rpath wpath cpath unix". I wonder what we can do in apmd...
2015-10-28Remove linkmtu and maxmtu from struct nd_ifinfo. IN6_LINKMTU can nowFlorian Obser
die and ifp->if_mtu is the one true mtu. Suggested by and OK mpi@
2015-10-28pid removal; from jan staryJason McIntyre
2015-10-28various macro fixes;Jason McIntyre
2015-10-28remove old check on username length that simply makes no sense nowadaysGilles Chehade
ok millert@ sunil@
2015-10-28dns_lookup_host() needs to remove brackets and IPv6: prefix when receivingGilles Chehade
a text representation otherwise getaddrinfo_async() will choke ok eric@
2015-10-28aliases support resolving to maildir:/pathGilles Chehade
ok sunil@ millert@
2015-10-28Remove dead code.Sunil Nimmagadda
Ok jung@ gilles@
2015-10-27add a rcpt-to parameter to be able to use the original (probably expanded)Joerg Jung
RCPT TO within LMTP sessions ok gilles eric
2015-10-27delivery lmtp gets fed with a message file as input which is guaranted to haveJoerg Jung
\n-terminated lines, so no need to strip \r here also remove an unneeded len assignment while here discussed with and ok gilles
2015-10-27enqueue pledge: getmailname() needs dns, ~/dead.letter needs cpath/wpathGilles Chehade
ok jung@, ok millert@
2015-10-27aliases_virtual_check() has been unneeded for a whileGilles Chehade
ok jung@, ok sunil@, ok millert@
2015-10-27calloc -> malloc when the memory is immediately overwritten with memcpy.mmcc
ok claudio@
2015-10-27Use AF_UNIX instead of AF_LOCAL.Todd C. Miller
2015-10-27Fix manpage for empty pidfile. Pointed out by millert@Stuart Henderson
2015-10-27Don't use a pidfile in unbound by default. Retain the ability in unbound.confStuart Henderson
to set one if needed. ok millert@
2015-10-27Remove wrong line.Renato Westphal
2015-10-27change cipher-server-preference to be on by default. It can be disabled withSebastian Benoit
no cipher-server-preference this makes more clients select ciphers with pfs. requested and ok by reyk@
2015-10-27Consistency in error messages.Jeremie Courreges-Anglas
No functional change.
2015-10-27Fix nsd and unbound's error checking with SSL_CTX_set_options().Doug Hogan
LibreSSL, BoringSSL and OpenSSL have all been redefining SSL_OP_* flags to be 0 when support is removed. This breaks the error checking that nsd and unbound were doing. It should check against the flag value itself to allow for 0. input deraadt@, jsing@ tweak + ok miod@, guenther@
2015-10-27tweak previous;Jason McIntyre