summaryrefslogtreecommitdiff
path: root/libexec
AgeCommit message (Collapse)Author
2016-03-16More "(<blah> *)0" -> NULL, avoiding any stdarg functions.Kenneth R Westerback
Feedback millert@ kettenis@
2016-03-16- Check if user running spamlogd(8) has root privileges and if not then stopmestre
program early - #define SPAMD_USER "_spamd" and use it on getpwnam(3) call - Set usage() as __dead void - Remove lint-style comments OK beck@
2016-03-10- add a define for "_spamd" user like others OpenBSD daemons;Gleydson Soares
- check for root privileges, otherwise exit early with an appropriate status code and a formatted string; - be more specific with chroot()/chdir() checks. OK beck@
2016-02-29Print ssize_t with %zd; ok deraadt@ mmcc@Jeremie Courreges-Anglas
2016-02-29Kill unused variable.Jeremie Courreges-Anglas
2016-02-05pledge(2) for talkd(8):mestre
rpath: fopen(3) _PATH_UTMP in read mode wpath/cpath: fopen(3) full_tty in write mode (w), which implies O_CREAT inet/dns: the intervening hosts in the conversation may be remote, or not, but since we will never know beforehand then it'll always need inet and dns to resolve the hostnames ok jca@ and also discussed with tb@
2016-02-01Remove unused headers and sort the remainingmestre
OK tb@
2016-01-24Delete remnants of grpsym cache setting during symbol search: it's done atPhilip Guenther
load time only nwo. Rename _dl_searchnum and lastlookup to _dl_grpsym_gen and grpsym_gen as they are generation numbers. Merge _dl_newsymsearch() into _dl_cache_grpsym_list_setup(). ok millert@
2016-01-24Lacking precise dependency-from-relocation tracking, a nodelete objectPhilip Guenther
needs to lock down the entire load group, not just the specific object. problem report and ok sthen@ been in snaps for a week
2016-01-08Zap extraneous SYNOPSIS sections.Vadim Zhukov
The gettytab(5) and termcap(5) get FILES, others don't need anything. With input from & okay schwarze@
2016-01-04pledge(2) spamd-setup(8)mestre
It needs these annotations, to at least run the operations next to them: stdio: malloc(3) rpath: open(2) inet: connect(2)/socket(2) proc: fork(2) exec: execvp(3) While here remove netinet/in.h since all we need is already in arpa/inet.h and sort the headers alphabetically OK beck@
2015-12-22assign pointers to NULL rather than 0mmcc
2015-12-22Remove a couple needless allocation casts. No binary change.mmcc
2015-12-17s/failes/failed/gmmcc
2015-12-12Remove NULL-checks before free(). ok tb@mmcc
2015-12-11pledge spamlogd - again from Ricardo Mestre <serial@helheim.mooo.com> - Thanks!Bob Beck
2015-12-10tighten the pledge for spamd, from Ricardo Mestre <serial@helheim.mooo.com>Bob Beck
this loads the tls certificate files pre-pledge then does the bulk of the tls setup goo pledged.
2015-12-08Initially pledge spamdBob Beck
All the work done by Ricardo Mestre <serial@helheim.mooo.com> - Thanks.
2015-12-06Simplify the relocation code for the ld.so bootstrap and static pie: trackPhilip Guenther
just the dynamic tags are needed instead of reusing the generic elf_object_t structure. testing and feedback from miod@ ok kettenis@
2015-12-05adjust to newer tls_read/_write semantics.Henning Brauer
quite involved, due to tls_read potentially needing to write and tls_write potentially needing to read (in the reneg case); that not fitting the spamd model too well - it needs to keep a little more state. help & ok bluhm & beck
2015-12-02in response to EHLO, don't offer STARTTLS if we already completed theHenning Brauer
STARTTLS dance. ok millert
2015-12-02I misread the standard when adding TLS; clients are supposed to start overHenning Brauer
and issue a new EHLO after STARTTLS. The misunderstaning seems to be common, so we'll still grok MAIL FROM right after the STARTTLS dance, as well as accepting a second EHLO. ok phessler beck millert
2015-12-02fix error messages to say tls_write after tls_write and not tls_read...Henning Brauer
with bluhm
2015-12-01knock out duplicate rcs id;Jason McIntyre
2015-12-01needs utf8.c from the ls tree alsoTheo de Raadt
2015-12-01rpc.rstatd(8) and rpc.rusersd(8) don't run as user nobody for quite some time.Tim van der Molen
2015-12-01Remove superfluous check; "Of course" deraadt@Tim van der Molen
2015-12-01Don't fall back to user nobody if _rusersd doesn't exist; "Of course!" deraadt@Tim van der Molen
2015-11-29Document that the pfdev check for 63 is /dev/fd/ only contains those nodesTheo de Raadt
2015-11-26passwd no longer has an -l flag; ok deraadtJason McIntyre
2015-11-26pledge in login_radius(8).YASUOKA Masahiko
ok deraadt
2015-11-26rpc.yppasswdd goes to the bitbucket.Theo de Raadt
(The story is that some people do use YP still as a libc -> non-file lookup mechanism; some of them with standard ypbind/ypserv, but more of them with ypbind/ypldap. That however does not justify these cruddy tools dealing with passwords, which are more likely to contain problems)
2015-11-26Delete YP password related code. As a result, these can also beTheo de Raadt
pledged. Keep an eye out for regressions, because they could be uncomfortable. ok beck semarie
2015-11-25rename internally to ntalkd, after the binary; this way bothJason McIntyre
"man talkd" and "man ntalkd" work; issue reported by sobrado; fix from schwarze
2015-11-24missing pledge "getpw"Theo de Raadt
2015-11-21zap the yppasswdd mlink, at ingo's behest (its original purpose being,Jason McIntyre
obviously, to provide a drunk spell test);
2015-11-21remove mlinks for aliases: ntalkd, mfs, updatedbJason McIntyre
ok schwarze
2015-11-20Remove login_tis, no one should be using the TIS authenticationTodd C. Miller
server these days.
2015-11-19Call syslog() if login_* pledge fails; OK deraadt@Todd C. Miller
2015-11-18use _shadow getpw functions. these utilities obviously deal with hashes.Ted Unangst
2015-11-16Observe that FIOASYNC clearing for stdin is only done in the case whereTheo de Raadt
getty receives the fd from init, so hoist it upwards. Since revoke(2) is now allowed by pledge "rpath tty", the pledges can be hoisted much higher. ok millert semarie tedu guenther
2015-11-16don't need to ifdef setproctitleTed Unangst
2015-11-15ldd(1) sets environment variable LD_TRACE_LOADED_OBJECTS to tell ld.soTheo de Raadt
that it should show information about the program it loads, rather than run it. In that specific case, ld.so can pledge to "stdio rpath" to ensure that code path in ld.so has no bugs. Yes, a pledge in ld.so.... who'd have thought! ok guenther
2015-11-15pledge "stdio rpath wpath cpath tmppath fattr"Theo de Raadt
ok guenther
2015-11-134-step pledge in a program noone really uses anymore.Theo de Raadt
pledge "stdio inet dns proc exec" at startup. In the logging codepath, "stdio dns proc exec" after getpeername() drop to stdio proc exec(), before fork / execve Parent moving data out of the pipe only needs "stdio"
2015-11-13_exit() in the child; as a result, must use syslog() directly.Theo de Raadt
2015-11-06further PPP reduction, hint from sthenTed Unangst
2015-11-06remove ppplogin support. ok sthenTed Unangst
2015-11-06Fix unloading of load groups when the last reference wasn't on thePhilip Guenther
load_object but rather some descendent. Detect that case in _dl_unload_shlib() and switch to unloading the entire group. Based on partial analyses by Henri Kemppainen (duclare (at) guu.fi) and Peter Hajdu (peter.ferenc.hajdu (at) gmail.com) ok millert@
2015-11-02Remove duplicate declarationPhilip Guenther