summaryrefslogtreecommitdiff
path: root/lib/libc/sys
AgeCommit message (Collapse)Author
2016-03-19Add STANDARDS and HISTORY blurbs for SOCK_{NONBLOCK,CLOEXEC,DNS}Philip Guenther
2016-03-19This is thrkill, not __thrsigdivertPhilip Guenther
2016-03-13environ and __progname are not declared in a public header; declare themPhilip Guenther
in libc's hidden/stdlib.h instead of in each .c file that needs one ok deraadt@ gsoares@ mpi@
2016-03-11missing article in previous;Jason McIntyre
2016-03-11pledge: define the meaning of passing NULL to one arguments of pledge(2) as "ISebastien Marie
don't want to change the current value" it changes only the `request' argument behaviour when NULL is passed: previously it was traited as "" was passed. with help from jmc@ for man-page OK tb@ on previous version
2016-03-10un-vax;Jason McIntyre
i've also changed some "and" to "no", since i think it reads better;
2016-03-06The range of PIDs has changed, and always included zero.Philip Guenther
Based on diff from Michal Mazurek (akfaew (at) jasminek.net)
2016-03-06No more compat emulations, so remove ktrace EMUL records and the baggagePhilip Guenther
for generating and parsing them. ok mpi@ naddy@ millert@ deraadt@
2016-03-06Document the PT_GET_THREAD_{FIRST,NEXT} requestsPhilip Guenther
From Michal Mazurek (akfaew (at) jasminek.net)
2016-02-28fruncate() returns EFBIG when length exceeds the max file size.natano
ok mpi@
2016-02-22Document sendsyslog2(2) in man page.Alexander Bluhm
from Rafael Neves; input jmc@; OK deraadt@
2016-02-11Document how to use sndio in pledged programs.Tim van der Molen
Input and OK jmc@ ratchov@ semarie@
2016-01-18adjust some syscalls in proc & id; from Carlin BinghamTheo de Raadt
2016-01-09Replace "function call" with "function" when referring to a functionmmcc
(well, a syscall, but this is the established practice) in the general sense. ok jmc@
2016-01-09drop "abort" promise, and make it the default behaviour.Sebastien Marie
The current code has already setted it by default since 1.74 any pledge failure tries to make a coredump (default rules for coredump still applies: so setuid binaries don't create them locally). ok deraadt@
2016-01-06add a bug that the path whitelist is not available at this time.Ted Unangst
2016-01-05Use "path" not "file" as the function arg to utimes() and utimensat().Todd C. Miller
The DESCRIPTION section already referred to "path" in some places.
2015-12-25Add missing second argument to FD_SET macro in example code snippet.tb
Spotted and diff provided by d ! lowe () openmailbox ! org, thanks! ok schwarze@
2015-12-16documents pledge(2) "dpath" promiseSebastien Marie
with inputs from jmc@ ok jmc@ deraadt@
2015-12-16in pledged process, setuid/setgid/sticky bits should be ignored.Sebastien Marie
enforce it for mkfifo(2) and mknod(2) (with "dpath" promise). ok deraadt@
2015-12-03Remove the /usr/share/nls/ exception from pledge(2). The libcAlexander Bluhm
native language support was deleted a month ago at u2k15. OK semarie@ deraadt@
2015-12-01use strlcat instead of strlcpy with modified arguments. ok deraadt@Can Erkin Acar
2015-12-01Document that "tty" provides read-write access to /dev/tty too.Todd C. Miller
OK deraadt@
2015-12-01Send Aviion to same place as Nova IITheo de Raadt
discussed with jsg
2015-12-01Mention ksh along with csh when job control is discussed. ok deraadt@mmcc
2015-11-29Add pledge "pf" which allows ioctls on pf(4). This will be used bySebastian Benoit
relayd and other programs manipulating the packet filter. ok deraadt@
2015-11-25Rather than using syslog(3) (which pulls in snprintf), creating the reportTheo de Raadt
string using simpler strings functions and use sendsyslog2() directly. Also, use the LOG_CONS flag so that single-user reports are more clear. Use a buffer size of 1024 (from bluhm) discussed with guenther and matthew ok millert
2015-11-25Add a syscall stub for sendsyslog2(2), and use it in syslog_r(3), passingTheo de Raadt
LOG_CONS to the kernel. As a result, the /dev/console opening code can be removed. ok kettenis millert beck
2015-11-24fix an error in NAME; ok schwarzeJason McIntyre
2015-11-23point to mount_mfs(8), not mfs(8);Jason McIntyre
2015-11-18rob pierce spotted a mistake left by jmcTheo de Raadt
2015-11-16minor tweaks;Jason McIntyre
2015-11-16Permit revoke(2) for a pledge "rpath tty"Theo de Raadt
ok millert semarie tedu guenther
2015-11-16Only perform revoke(2) on tty cdevs. Others paths return ENOTTY.Theo de Raadt
ok millert semarie tedu guenther
2015-11-10update NAME section to include all documented functions,Jason McIntyre
or otherwise change Dt to reflect the name of an existing function; feedback/ok schwarze
2015-11-10Split the intra-thread functionality from kill(2) into its own syscallPhilip Guenther
thrkill(2), rolling the kill(2) syscall number with the ABI change to avoid breaking binaries during during the transition. thrkill(2) includes a 'tcb' argument that eliminates the need for locking in pthread_kill() and simplifies pthread_cancel(). Switch __stack_smash_handler() to use thrkill(2) and explicitly unblock SIGABRT. Minor bump to both libc and libpthread: make sure you install a new kernel! ok semarie@
2015-11-10libc.so can't be unloaded, so move the hidden atexit() and pthread_atfork()Philip Guenther
stubs for the executable from crtbegin.o into libc, which lets them be excluded from static links that don't use them. For this, drop the normal crt{begin,end}S.o from libc.so: the .init and .fini sections for libc aren't called at the right times anyway, so it's good that they're unused. libc.so just needs __guard_local and the .note.openbsd.ident section, so add them to stack_protector.c for now (this will be improved) "good time" deraadt@
2015-11-07add missing NAME entries;Jason McIntyre
2015-11-06Remove needless comma.mmcc
2015-11-03Improve explanations throughoutTheo de Raadt
2015-11-03systrace should work nowTed Unangst
2015-11-02kill 0 has worked for ages, no idea how the man page could be so innacurate ↵Theo de Raadt
so long; ok guenther
2015-11-01replace "can not" with "cannot";Jason McIntyre
2015-10-29update text to be more like posix, in particular wrt length = 0Ted Unangst
2015-10-25Move the _atfork_list definition to atexit.c so that the fork syscall stubPhilip Guenther
doesn't get pulled into all static executables ok millert@ jca@
2015-10-24Unify all the errno names inAlexander Bluhm
- include comment - libc errlist - nls C msg - man page OK tedu@
2015-10-24remove a paste error and get section numbers right for sysctl(3);Jason McIntyre
2015-10-23Merge the sigaction() and sigprocmask() overloads/wrappers from libpthreadPhilip Guenther
into libc, and move pthread_sigmask() as well (just a trivial wrapper). This provides consistent handling of SIGTHR between single- and multi-threaded programs and is a step in the merge of all the libpthread overloads, providing some ASM and Makefile bits that the other wrappers will need. ok deraadt@ millert@
2015-10-23Add 3 new pledge requests. "ps" exposes enough sysctl information forTheo de Raadt
ps-style programs (there are quite a few in the tree, including tmux). "vminfo" exposes a bit more system operation information, which many observation programs want (such as top). settime allows setting the system time, and will be used to pledge-protect the last ntpd process.
2015-10-23Remove dnssocket() and dnsconnect(), since we decided to use a SOCK_DNSTheo de Raadt
flag instead. ok guenther tedu semarie