summaryrefslogtreecommitdiff
path: root/sys/kern/kern_pledge.c
AgeCommit message (Expand)Author
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
2015-10-18TIOCSTI and TIOCSCTTY; oops got the condition backwards.Theo de Raadt
2015-10-18Allow read/write access to /dev/tty when using "tty" pledge.Doug Hogan
2015-10-18Add two new system calls: dnssocket() and dnsconnect(). This creates aTheo de Raadt
2015-10-17naddy asks me if __tfork should be allowed by "proc". yes!Theo de Raadt
2015-10-17Allow the nasty ioctl TIOCSTI in "tty", but also require the "proc"Theo de Raadt
2015-10-17better wording in a commentTheo de Raadt
2015-10-17Unify TIOCGPGRP/TIOCGWINSZ/TIOCGWINSZ behaviour regarding ENOTTY return.Theo de Raadt
2015-10-17Allow TIOCSCTTY on tty devices, if the pledge says "tty id"Theo de Raadt
2015-10-17whitespaceTheo de Raadt
2015-10-17Add pledge "id" support. This request permits setuid/seteuid/setresuid,Theo de Raadt
2015-10-17Allow a few 'get' ioctls for pledge("route"). route6d will soon use this.Jeremie Courreges-Anglas
2015-10-16Also allow 6 as a miblen for NET_RT_DUMP, not all users specify a rtable.Jeremie Courreges-Anglas
2015-10-16Repair the pty check for kernels without pty support.Theo de Raadt
2015-10-16Allow PTMGET with "tty rpath wpath" but restrict only to /dev/ptm byNicholas Marriott
2015-10-16Always allow a r/w opening of /dev/null though the namei check. ThisTheo de Raadt
2015-10-16delete pledge_bind_check() function and remove pledge_bind_check() call from ...Sebastien Marie
2015-10-16Place TIOCSTI reminder block betterTheo de Raadt
2015-10-16For "tty" pledges, treat TIOCGPGRP and TIOCGWINSZ like TIOCGETA -Theo de Raadt
2015-10-16Implement real "flock" request and add it to userland programs thatTodd C. Miller
2015-10-16FIOSETOWN/FIOGETOWN were added to "ioctl", but study finds no programsTheo de Raadt
2015-10-16Add TIOCCBRK and TIOCSDTR to the whitelist for pledge ioctl.Doug Hogan
2015-10-15Add TIOCFLUSH to "tty" in support of tcflush()Theo de Raadt
2015-10-15Exposing FIOASYNC in pledge "ioctl" is a mistake; remove it, cannot find safe...Theo de Raadt
2015-10-15FIOCLEX & FIONCLEX should be in base ioctl setTheo de Raadt
2015-10-14FALTHROUGH->FALLTHROUGH in comment, ok deraadt a few days agoStuart Henderson
2015-10-14Add a dummy "flock" request that will allow file locking. It isTodd C. Miller
2015-10-14When pledged with "fattr", allow chown to supplimentary groups. ThisTheo de Raadt
2015-10-14pledge "tty" can allow ioctl TIOCEXCL on a ttyTheo de Raadt
2015-10-14sendmsg() is allowed to pass cmsg's which are not CMSG_RIGHTS - lastTheo de Raadt
2015-10-133 more headers required for one stinking inet6 ioctl..Theo de Raadt
2015-10-13Allow ioctl SIOCGNBRINFO_IN6 in case of "route", for use by ndp.Theo de Raadt
2015-10-13NET_RT_FLAGS must also accept a proto selection.Theo de Raadt
2015-10-13allow getsockopt IP_RECVDSTPORT & IPV6_RECVDSTPORT for an "inet" pledgeTheo de Raadt
2015-10-13Pledge "fattr" request should allow fchflags().Doug Hogan
2015-10-12pledge "proc" request should allow setsid()Theo de Raadt
2015-10-12Remove the "cmsg" attribute, as promised. Use "sendfd" or "recvfd",Theo de Raadt
2015-10-11add a missed check for PLEDGE_RPATH when reading a file.Sebastien Marie