summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_syscalls.c
AgeCommit message (Expand)Author
2016-01-08On the recvmsg() side, cmsgs are in mbuf chains, not a contiguous buffer.Philip Guenther
2015-12-05remove stale lint annotationsTed Unangst
2015-11-21remove completely pledge_socket() from listen(2) and accept(2).Sebastien Marie
2015-11-20Neuter the pledge domain checking for listen, getpeername, and getsocknameTheo de Raadt
2015-11-20Exempt accept(2) from the pledge_socket() check part of the "domain"Theo de Raadt
2015-11-19corrects leaks refs to files introduced by my previous commit for pledge_socket.Sebastien Marie
2015-11-18check domain and state of socket against pledge promise.Sebastien Marie
2015-11-08pull initialization up before poosible goto bad, from Mark LatimerTed Unangst
2015-11-01refactor pledge_*_check and pledge_fail functionsSebastien Marie
2015-10-28more accurate pledge_fail() error and code for sys_socketSebastien Marie
2015-10-28The short-lived dnssocket/dnsconnect calls are being required because weTheo de Raadt
2015-10-26dns check needs to be done on the kernel address after copyinTed Unangst
2015-10-25Fold "malloc" into "stdio" and -- recognizing that no program so far hasTheo de Raadt
2015-10-25pledge_sockopt_check is shared between setsockopt/getsockopt. nicmTheo de Raadt
2015-10-20At guenther's suggestion replace dnssocket() with a SOCK_DNS flag onTheo de Raadt
2015-10-20Always allow the setsockopt & getsockopt system calls... however, in theTheo de Raadt
2015-10-18Instead of fragile CMSG parsing, control pledge "sendfd" and "recvfd"Theo de Raadt
2015-10-18Add two new system calls: dnssocket() and dnsconnect(). This creates aTheo de Raadt
2015-10-16delete pledge_bind_check() function and remove pledge_bind_check() call from ...Sebastien Marie
2015-10-09Rename tame() to pledge(). This fairly interface has evolved to be moreTheo de Raadt
2015-10-06Rework the tame cmsg handler to make it work both ways. While on recv oneClaudio Jeker
2015-09-29Save a lot of people grief. tame()'d CMSG reception is busted and itTheo de Raadt
2015-09-11Convert _TM_ flags to TAME_ flags, collapsing the entire mappingTheo de Raadt
2015-09-11Only include <sys/tame.h> in the .c files that need itPhilip Guenther
2015-08-22Move to tame(int flags, char *paths[]) API/ABI.Theo de Raadt
2015-07-28Add ktracing of structs iovec, msghdr, and cmsghdr for {,p}{read,write}v(),Philip Guenther
2015-07-27tame check of msghdr should be done after checking for copyin failurePhilip Guenther
2015-07-19tame(2) is a subsystem which restricts programs into a "reduced featureTheo de Raadt
2015-07-17In socketpair(), need to mask the type argument when testing for dgram.Philip Guenther
2015-05-21Rename caddr_t p to cp in an inner block to avoid aliasing the outerNicholas Marriott
2015-05-06Pass a thread pointer instead of its file descriptor table to getsock(9).Martin Pieuchot
2015-03-14Remove some includes include-what-you-use claims don'tJonathan Gray
2015-01-19Move doaccept() declaration from its .c file to sys/socketvar.h for usePhilip Guenther
2015-01-19Delete ABI compat for osockaddr: 20 years and many ABI bumps since sa_len addedPhilip Guenther
2014-12-13yet more mallocarray() changes.Doug Hogan
2014-12-11convert bcopy to memcpy/memmove. ok krwTed Unangst
2014-12-09More malloc() -> mallocarray() in the kernel.Doug Hogan
2014-12-02In sys_socket() and doaccept(), gotta skip setting the close-on-execPhilip Guenther
2014-09-09Delete the SS_ISCONFIRMING flag that supported delayed connectionPhilip Guenther
2014-08-31Add additional kernel interfaces for setting close-on-exec on fdsPhilip Guenther
2014-07-13pass the size to free in some of the obvious casesTed Unangst
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
2013-09-14Correct the handling of I/O of >=2^32 bytes and the ktracing there ofPhilip Guenther
2013-04-05remove some obsolete castsTed Unangst
2012-10-17In sys_accept(), don't sleep between pulling the new socket from thePhilip Guenthe
2012-05-06Change accept(), recvfrom(), recvmsg(), getsockname(), andMatthew Dempsky
2012-04-22Add struct proc * argument to FRELE() and FILE_SET_MATURE() inPhilip Guenthe
2011-12-03add support for MSG_NOSIGNAL.Federico G. Schwindt
2011-10-23shorten periods of fdplock() in accept() and socket(), so that greaterTheo de Raadt
2011-07-08Remove COMPAT_OLDSOCK since no nothing sets MSG_COMPAT anymore.Theo de Raadt