summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_syscalls.c
AgeCommit message (Expand)Author
2017-01-26Allocate the mbuf before the netlock. While here, move the setting ofDavid Hill
2017-01-25Allocate and connect sockets first, then upon success create fileTheo de Raadt
2017-01-25Enable the NET_LOCK(), take 2.Martin Pieuchot
2017-01-24In accept(2) and accept4(2) allocate a new file descriptor beforeMartin Pieuchot
2016-12-29Change NET_LOCK()/NET_UNLOCK() to be simple wrappers aroundMartin Pieuchot
2016-12-19Introduce the NET_LOCK() a rwlock used to serialize accesses to the partsMartin Pieuchot
2016-11-29m_free() and m_freem() test for NULL. Simplify callers which had their ownJonathan Gray
2016-11-28Remove NULL checks before m_free{m,}().Martin Pieuchot
2016-11-21Enforce that pr_usrreq functions are called at IPL_SOFTNET.Martin Pieuchot
2016-11-09Do not call splsoftnet() recursively, this won't work with a lock.Martin Pieuchot
2016-10-23unbreak by fixing obvious pastosChristian Weisgerber
2016-10-23handle non-INET6 kernels in some wayTheo de Raadt
2016-10-23dns hijacking must be af specific. move it into the port check function,Ted Unangst
2016-10-08Add ktracing of the fds returned by pipe() and socketpair()Philip Guenther
2016-10-07introduce a sysctl to hijack dns sockets. when set to a port number,Ted Unangst
2016-08-09When interrupted, connect() should leave the socket connecting in thePhilip Guenther
2016-05-18Remove unnecessary cast of buflen to u_int in sockargs(). This wasTodd C. Miller
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