summaryrefslogtreecommitdiff
path: root/sys/kern/kern_pledge.c
AgeCommit message (Expand)Author
2016-02-17Return ENOTTY for TIOCFLUSH when allowed by pledge but the fd isTodd C. Miller
2016-01-19Check if the vnode type is VBAD (corresponds to disconnectedAlexandre Ratchov
2016-01-18Add SYS_truncate as a "wpath" operation. Omission noticed by tb and sthen.Theo de Raadt
2016-01-09drop "abort" promise, and make it the default behaviour.Sebastien Marie
2016-01-08Add "vmm" pledge to allow restricted ioctl access to /dev/vmm.Reyk Floeter
2016-01-06turn off the whitepath code for now; we're not sure it's ready for releaseTed Unangst
2016-01-06remove unnecessary casts where the incoming type is void *.Ted Unangst
2016-01-06Add pledge "drm", which allows a subset of the drm(4) ioctls. These areMark Kettenis
2016-01-05annoying whitespaceTheo de Raadt
2015-12-27Add missing #include "audio.h". Fixes sndiod pledge issue reported bytb
2015-12-27wrap "audio" pledge code in NAUDIO > 0, because there are a fewTheo de Raadt
2015-12-23pledge "audio" code block must be !SMALL_KERNELTheo de Raadt
2015-12-23If PLEDGE_AUDIO is set, allow audio(4) ioctls necessaryAlexandre Ratchov
2015-12-06Change kernel internal pledge variables to 64bit (to prepare for moreTheo de Raadt
2015-12-05Study of kernel code complete. Permit ioctl SIOCGIFMEDIA for pledgeTheo de Raadt
2015-12-04allow utrace(2) by default.Theo de Raadt
2015-12-04remove PLEDGE_INET granting when using "getpw" in YP environnmentSebastien Marie
2015-12-04Add pledge "dpath", which provides access to mknod(2) and mkfifo(2).Theo de Raadt
2015-12-04Do not think atomicity is required here. In any case, prepare forTheo de Raadt
2015-12-03Remove the /usr/share/nls/ exception from pledge(2). The libcAlexander Bluhm
2015-12-03pledge(pf) needs to allow DIOCKILLSRCNODES, used in relayd.Sebastian Benoit
2015-11-29On a SMALL_KERNEL, pledge "pf" has to be a no-op. We cannot matchTheo de Raadt
2015-11-29Add pledge "pf" which allows ioctls on pf(4). This will be used bySebastian Benoit
2015-11-28pledge: allow getsockopt IP_IPDEFTTL with promise inetSebastian Benoit
2015-11-27Two additional ioctls for pledge("disklabel"), needed by installboot.Jeremie Courreges-Anglas
2015-11-25permit kern.maxpartitionsTheo de Raadt
2015-11-24Add sendsyslog2(), which accepts the syslog/openlog "logopt" flagTheo de Raadt
2015-11-23the "getpw" test for /dev/tty is only needed for readpassphrase(3),Theo de Raadt
2015-11-23need sys/device.hTheo de Raadt
2015-11-22For "disklabel", allow sysctl mach.chr2kblk and ioctl BIOCINQ/BIOCVOLTheo de Raadt
2015-11-22"getpw" should also allow access to /etc/netidTheo de Raadt
2015-11-20Permit msync(2) in the "stdio" set; only a few programs use it relatedTheo de Raadt
2015-11-20Add pledge "disklabel", which allows sysctl kern.rawpartition, aTheo de Raadt
2015-11-20Exempt accept(2) from the pledge_socket() check part of the "domain"Theo de Raadt
2015-11-18check domain and state of socket against pledge promise.Sebastien Marie
2015-11-17backout removal of SYS_break from stdio, suggested by deraadt@Stuart Henderson
2015-11-17Allow sysctl kern.clockrate, kern.argmax, kern.ngroups, kern.sysvshm,Theo de Raadt
2015-11-16Allow TIOCEXT in pledge "tty"Theo de Raadt
2015-11-16Permit revoke(2) for a pledge "rpath tty"Theo de Raadt
2015-11-16brk/sbrk's use case is way too narrow to be a default stdio pledge.Pascal Stumpf
2015-11-14Add pathconf() to pledge "rpath"; ok guentherTheo de Raadt
2015-11-14For pledge "stdio", allow the break(2) system call which backends the brk/sbrkTheo de Raadt
2015-11-13All setsockopt IPPROTO_IPV6 IPV6_TCLASS (v4 calls this IP_TOS)Theo de Raadt
2015-11-10Split the intra-thread functionality from kill(2) into its own syscallPhilip Guenther
2015-11-05revert sys/kern/kern_pledge.c 1.103 and reenable pledge in pwd_mkdbSebastien Marie
2015-11-04pledge_ioctl only takes files, adjust prototype. ok semarieTed Unangst
2015-11-04move /etc/spwd.db blacklist outside PLEDGE_GETPW check.Sebastien Marie
2015-11-03pledge_aftersyscall has been reduced to one case, "getpw", to open aTheo de Raadt
2015-11-02some tweaks to the signal code.Ted Unangst
2015-11-02use binary-search for pledge-requestSebastien Marie