summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_syscalls.c
AgeCommit message (Expand)Author
2019-10-06Fix vn_open to require an op of 0, and 0 or KERNELPATH only as flags.Bob Beck
2019-08-31Make readlink require UNVEIL_READ instead of UNVEIL_INSPECT onlyBob Beck
2019-08-07The pathname in unveil(2) allocated 1024 bytes on the stack duringAlexander Bluhm
2019-08-06Fix white spaces.Alexander Bluhm
2019-08-05Kernel realpath(3) and unveil(2) did not work correctly if the rootAlexander Bluhm
2019-08-05Kernel realpath(3) had the same vnode leakage bug like unveil(2).Alexander Bluhm
2019-08-05Allow concurrent reads of the f_offset field of struct file byanton
2019-08-04Calling unveil(2) with the current directory leaked a vnode. EvenAlexander Bluhm
2019-08-02Move prototypes of unveil(2) functions which are used in separate CAlexander Bluhm
2019-07-25vinvalbuf(9): tlseep -> tsleep_nsec(9); ok millert@cheloha
2019-07-23Fix realpath(3) errno code for an empty input path string.Stefan Sperling
2019-07-22Correct minor style nit in sys_getdents() for consistency, missing parens aroundanton
2019-07-22Grab the vnode lock earlier in sys_getdents() since it could end upanton
2019-07-15revert unintended change that snuck in last commitBob Beck
2019-07-15Make realpath posixly correct by changing the kernel implementationBob Beck
2019-07-12Revert anton@ changes about read/write unlockingsolene
2019-07-10Make read/write of the f_offset field belonging to struct file MP-safe;anton
2019-06-19the pledge STATLIE code is no longer needed, as discussed with beck.Theo de Raadt
2019-06-15Have __realpath() do the pathname==NULL -> EINVAL check itself, eliminatingTheo de Raadt
2019-05-30namei() generate KTR_NAMEI record input filenames, but getcwd(2) andTheo de Raadt
2019-05-30Correct call to vfs_getcwd_common from within __realpathBob Beck
2019-05-13Add a kernel implementation of realpath() as __realpath().Bob Beck
2019-03-24Make stat(2) and access(2) need UNVEIL_READ instead of UNVEIL_INSPECTBob Beck
2019-01-23futimens(2), futimes(2), utimensat(2), utimes(2): Validate input at copyincheloha
2019-01-22namei can return a null dvp on success. check this before access.Ted Unangst
2019-01-21sometimes we don't call unveil_add, which means memory allocated by nameiTed Unangst
2019-01-03Fix a collection of covering unveil bugs that prevent unveil's of upperBob Beck
2018-12-23Rectify some issues with the noperm mount flag; the root vnode was notMartin Natano
2018-10-28Correctly deal with upper level unveil's by keeping track of the coveringBob Beck
2018-09-26Move the allocating and freeing of mount points intoVisa Hankala
2018-09-16Move vfsconf lookup code into dedicated functions.Visa Hankala
2018-09-01Fix errno for post-lock unveil callsTheo de Raadt
2018-08-20Reorder checks in the read/write(2) family of syscalls to prepare makingMartin Pieuchot
2018-08-13in sys_statfs(), BYPASSUNVEIL can be passed to NDINIT in the "flags"Theo de Raadt
2018-08-11Get rid of PLEDGE_STAT, which was a hack used for unveil.Bob Beck
2018-08-05Decouple unveil from the pledge flags, by adding dedicated unveil flagsBob Beck
2018-08-03ni_pledge flags are a uint64_t not an int - don't initialize with an int.Bob Beck
2018-07-30Fix a NULL-pointer dereference when calling open() on a cloned device with writeanton
2018-07-30rename 2nd argument of unveil from vague "flags" to "permissions";Theo de Raadt
2018-07-30activate unveil for testingTheo de Raadt
2018-07-27Don't double vput and panic after looking up "."Bob Beck
2018-07-22Avoid a NULL pointer deref when calling fchown() on a file descriptor belonginganton
2018-07-13Make the default failure for unveil while disabled return successBob Beck
2018-07-13Unveiling unveil(2).Bob Beck
2018-07-03Add a new so_seek member to "struct file" such that we can have seekableMark Kettenis
2018-06-25During open(2), release the fdp lock before calling vn_open(9).Visa Hankala
2018-06-18Put file descriptors on shared data structures when they are completelyMartin Pieuchot
2018-06-14In dounlinkat() only perform the check for a mounted directory whenTodd C. Miller
2018-06-13Make the VFS layer responsible for preventing the deletionVisa Hankala
2018-06-07Make callers of VOP_CREATE(9) and VOP_MKNOD(9) responsible forVisa Hankala