summaryrefslogtreecommitdiff
path: root/sys/kern/kern_pledge.c
AgeCommit message (Expand)Author
2015-11-02some tweaks to the signal code.Ted Unangst
2015-11-02use binary-search for pledge-requestSebastien Marie
2015-11-02move the pledgenote annotation from `struct proc' to `struct nameidata'Sebastien Marie
2015-11-02also handle the kill(self) case for threads; from Theo BuehlerTheo de Raadt
2015-11-01refactor pledge_*_check and pledge_fail functionsSebastien Marie
2015-11-01Do not need to check the pledge control bits for system calls that areTheo de Raadt
2015-11-01uniformize "always allowed syscalls" with pledgeSebastien Marie
2015-10-31oops, forgot pselect! crazy how many interface the kernel has here.Theo de Raadt
2015-10-31expose the sysctl backing getloadavg(3) all the time, now that moreTheo de Raadt
2015-10-29Add some setsockopt hacks for libisc, aka John FrumTheo de Raadt
2015-10-29Reorder system call table into sequential blocks of alike-functionalityTheo de Raadt
2015-10-28cleanup indentation and comments in sysctl whitelistTheo de Raadt
2015-10-28merge whitelisted r/w paths and rd paths switch to only one. It becomesSebastien Marie
2015-10-28make sys_chroot() only allowed to be used when pledged, with "rpath id proc".Sebastien Marie
2015-10-28refactor pledge_namei() a bitSebastien Marie
2015-10-28canonpath() error isn't related to p_pledgenote requirement (only possibleSebastien Marie
2015-10-28in pledge_namei(), move PLEDGE_EXEC check sooner: it doesn't depend of pathSebastien Marie
2015-10-28Prevent F_SETOWN, unless a "proc" pledge was made.Theo de Raadt
2015-10-28The short-lived dnssocket/dnsconnect calls are being required because weTheo de Raadt
2015-10-28kern.cptime is length 2Theo de Raadt
2015-10-28support kern.cptime alsoTheo de Raadt
2015-10-26Add ppoll() to "stdio"Theo de Raadt
2015-10-26Allow NET_RT_IFLIST in pledge "dns" as wellTheo de Raadt
2015-10-26If the system call is entirely unpermitted, code will be 0, and there isTheo de Raadt
2015-10-26add setreuid/setregid to "id"Theo de Raadt
2015-10-26change some pledge_fail() error/codeSebastien Marie
2015-10-26make pledge_check(), used for syscall check with pledge, returns an error andSebastien Marie
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-25reorder some checks in pledge_namei() in order to properly work.Sebastien Marie
2015-10-25ps(1) needs sysctl KERN_PROC_CWD exposed as well in the pledge "ps" set.Theo de Raadt
2015-10-25For SYS_open let the /dev/null special case match if any TMN_RPATH,Todd C. Miller
2015-10-25Allow getsockopt(IP_OPTIONS) (with inet), needed by portmap (for RPC).Nicholas Marriott
2015-10-23Allow SIOCGIFINFO_IN6Theo de Raadt
2015-10-23Introduce a new sysctl NET_RT_IFNAMES that returns only ifnames to ifindexClaudio Jeker
2015-10-23Add 3 new pledge requests. "ps" exposes enough sysctl information forTheo de Raadt
2015-10-23Allow hw.ncpu sysctl (a few reasons showed up in my mailbox rapidly..)Theo de Raadt
2015-10-22Further study shows "route" should allow all address families in NET_RT_DUMPTheo de Raadt
2015-10-22After some consideration, simply allow TIOCSCTTY in the "tty" pledge.Theo de Raadt
2015-10-20At guenther's suggestion replace dnssocket() with a SOCK_DNS flag onTheo de Raadt
2015-10-20Add SIOCGIFGMEMB to "route" (returns a list of all interfaces who areReyk Floeter
2015-10-20clear whitelisted-paths view in pledge.Sebastien Marie
2015-10-20allow SO_ERROR all the timeTheo de Raadt
2015-10-20Always allow the setsockopt & getsockopt system calls... however, in theTheo de Raadt
2015-10-19Allow setpriority in "proc" as well, since a few shells have "nice"Theo de Raadt
2015-10-19Print vnode type for sendfd/recvfd not file type, ok semarieNicholas Marriott
2015-10-18Instead of fragile CMSG parsing, control pledge "sendfd" and "recvfd"Theo de Raadt
2015-10-18move SS_DNS socket check from kern_plegde.c to sys_generic.cSebastien Marie
2015-10-18getting sloppy, lost a }Theo de Raadt
2015-10-18Move your drink further away... When a program pledged "getpw" fails toTheo de Raadt