summaryrefslogtreecommitdiff
path: root/sys/kern/kern_unveil.c
AgeCommit message (Expand)Author
2020-03-22remove unused variable; ok beck@ mpi@anton
2020-03-19Separate variable declaration and assignment. No functional change.anton
2020-03-19Move unveil data structures away from the proc.h header into theanton
2020-01-22delete wasteful ;;Theo de Raadt
2019-11-29Eliminate the sketchy use of ps_mainproc here by making unveil_add_vnode()Philip Guenther
2019-10-01Only increment the ps_uvncount counter when a path is successfully addedanton
2019-09-11Fix unveil for relative lookups in the non AT_FDCWD caseBob Beck
2019-08-05Remove the unused function parameter rootvnode from unveil_add_vnode().Alexander Bluhm
2019-08-02Move prototypes of unveil(2) functions which are used in separate CAlexander Bluhm
2019-08-01In ufs_lookup() *vpp is always refcounted, also in the ISDOTDOTAlexander Bluhm
2019-07-29correct mispellings of EACCES; from Kris KatterjohnTheo de Raadt
2019-07-25Use process accounting to find programs which try to access filesAlexander Bluhm
2019-07-14Don't lock the struct unveil being created in the child when cloning thePhilip Guenther
2019-06-19the pledge STATLIE code is no longer needed, as discussed with beck.Theo de Raadt
2019-03-26Remove this assert, I can't do this here with UNVEIL_INSPECTBob Beck
2019-03-24Make stat(2) and access(2) need UNVEIL_READ instead of UNVEIL_INSPECTBob Beck
2019-01-21sometimes we don't call unveil_add, which means memory allocated by nameiTed Unangst
2019-01-17Unveil fixes:Bob Beck
2019-01-14backout previous; crashes near mountpoints it seemsTheo de Raadt
2019-01-14Fix unveil issue noticed by kn@ where unveil does not notice coveringBob Beck
2019-01-06Clear ps_uvpcwd when we free ps_uvpaths. Fixes a crash seen by kn@ and meMark Kettenis
2019-01-03Fix a collection of covering unveil bugs that prevent unveil's of upperBob Beck
2018-10-29needs sys/lock.hTheo de Raadt
2018-10-28Correctly deal with upper level unveil's by keeping track of the coveringBob Beck
2018-09-25fix typo in commentJasper Lievisse Adriaanse
2018-08-28Fix stat of path components - this was breaking chrome - because theBob Beck
2018-08-11Get rid of PLEDGE_STAT, which was a hack used for unveil.Bob Beck
2018-08-07UNVEIL_* flags defined elsewhere in a .h fileTheo de Raadt
2018-08-05Decouple unveil from the pledge flags, by adding dedicated unveil flagsBob Beck
2018-08-05Prevent a panic when reboot -q is used by making unveil_removevnodeBob Beck
2018-07-30rename 2nd argument of unveil from vague "flags" to "permissions";Theo de Raadt
2018-07-30KNFTheo de Raadt
2018-07-29revert accidentally changed prototypeBob Beck
2018-07-29Don't exceed UNVEIL_MAX_VNODES with a long path now that we saveBob Beck
2018-07-29Make sure we don't count looking at .. as a componentBob Beck
2018-07-20Correctly copy across unveil's from parent to child process on fork().Bob Beck
2018-07-17unvname_new() is passed something that is always 64-bits so theKenneth R Westerback
2018-07-13unbreak gcc4 buildJonathan Gray
2018-07-13Unveiling unveil(2).Bob Beck