summaryrefslogtreecommitdiff
path: root/sys/kern/kern_pledge.c
AgeCommit message (Expand)Author
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
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