summaryrefslogtreecommitdiff
path: root/sys/kern/kern_unveil.c
AgeCommit message (Expand)Author
2022-01-11move kern_unveil.c to use DPRINTF()Sebastien Marie
2022-01-09Add an UNVEIL_USERSET flag which is set when a unveil node is added viaClaudio Jeker
2021-09-09No need to initialize nuv, it is assigned to before use.Claudio Jeker
2021-09-02Refactor how unveil generates EACCES errors. Instead of tracking theClaudio Jeker
2021-08-30Make sure unveil remains locked over fork even in the case where theClaudio Jeker
2021-07-16Remove the unveil current directory pointer from struct process. InsteadClaudio Jeker
2021-07-15UNVEIL_INSPECT is no longer needed, adjust code accordingly.Claudio Jeker
2021-07-08Remove the code to store intermediary vnodes in the unveil list.Claudio Jeker
2021-06-29Adjust unveil_find_cover() to return -1 if the root vnode is passed in.Claudio Jeker
2021-06-24unveil: cleanup code. no intented functional change.Sebastien Marie
2021-06-23In unveil_add_vnode() refactor code around the indexes i and j. In oneClaudio Jeker
2021-06-15Remove the uvshrink logic and keep the unveil list in the order of insertion.Claudio Jeker
2021-06-09unveil: small cleanup for UNVEIL_INSPECTSebastien Marie
2021-03-10spellingJonathan Gray
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