summaryrefslogtreecommitdiff
path: root/regress/sys/kern
AgeCommit message (Collapse)Author
2019-09-20Improve handling of nosuid mount option, temporary directory andAlexander Bluhm
super user permissions.
2019-09-11Fix unveil for relative lookups in the non AT_FDCWD caseBob Beck
Issue spotted by Benjamin Baier <programmer@netzbasis.de> with relative path lookups from openat(2). Lacking a current working directory unveil, operations using the *at functions could fail when not crossing an unveil, since an initial covering unveil was not found. This corrects this so we walk up from the directory vnode to find a covering unveil at the start of non AT_FDCWD lookups, and adds regress for this case. ok bluhm@
2019-09-11Make it possible to free overlapping regions (effectively allowingMark Kettenis
freeing parts of regions that are already free) when the EX_CONFLICTOK flag is passed to extent_free. ok jmatthew@
2019-09-08Pull out and expand openat tests into their own routine.Bob Beck
2019-08-06Use SUDO to run test as root.Alexander Bluhm
2019-08-06Test more variants to specify the root directory.Alexander Bluhm
2019-08-05Test realpath and unveil if the root directory is written as "//".Alexander Bluhm
2019-08-05Link regress realpath-unmount to build.Alexander Bluhm
2019-08-05Call realpath(3) in combination with chroot(2) and chdir(2).Alexander Bluhm
Use umount(8) to check that the mountpoint leaks no vnode. from Moritz Buhl
2019-08-04Add arm64 asm for stackpivot regress test.mortimer
2019-08-04Test that unmount works after calling unlink(2) with relativeAlexander Bluhm
directories obtained by chdir(2).
2019-08-01Call unveil(2) in combination with unlink(2) and chroot(2).Alexander Bluhm
Use umount(8) to check that the mountpoint leaks no vnode.
2019-08-01Link regress unveil-unmount to build.Alexander Bluhm
2019-08-01Call unveil(2) in combination with unlink(2) and chroot(2).Alexander Bluhm
Use umount(8) to check that the mountpoint leaks no vnode.
2019-07-29regress: Add mips64 stack pivot asm for octeon in stackpivot testsmortimer
2019-07-23Fix realpath(3) errno code for an empty input path string.Stefan Sperling
It should return ENOENT in this case, but was returning EINVAL. ok bluhm@ deraadt@
2019-07-16Call stat(2) only once in realpath(3) userland reference implementation.Alexander Bluhm
2019-07-15Our kernel __realpath(2) implementation does not allow non-existingAlexander Bluhm
files anymore. This is conforming to POSIX. Adjust the regression test to the new behavior. OK beck@
2019-07-12Test should also run if there is no obj directory. Name regressAlexander Bluhm
targets consistently with a run- prefix.
2019-07-09Regress realpath(3) fails since the non directory hack has beenAlexander Bluhm
removed from libc. Make the regress implementation more POSIX compliant like it has been done for the kernel. OK beck@ deraadt@
2019-07-09Fix white spaces.Alexander Bluhm
2019-07-08Add some padding bytes to syscall argument struct so that testsAlexander Bluhm
pass on armv7. from Moritz Buhl
2019-06-17improve clock_gettime regress:anton
* fix compilation error due to missing cast * do not run sysctl during make clean and the other common regress cleanup targets * make it work using a separate object directory
2019-06-14new regress: clock_gettime(2); test if CLOCK_MONOTONIC is really monotoniccheloha
suggested by kettenis@, tweaked by anton@. ok mpi@ jca@
2019-05-29Add some more relative path testsBob Beck
2019-05-17Add realpath to regressBob Beck
2019-05-15Add a regression test for path discovery outside of unveil() whichBob Beck
we should eventually fix
2019-05-13Document our currently incosnsistent behaviour and our currentBob Beck
sins which have been judged by Dr Posix as sinful...
2019-05-13Link regress sigpthread to build.Alexander Bluhm
2019-05-13Test the interaction of signals with multiple posix threads. ItAlexander Bluhm
covers blocking with signal mask, killing process or thread, invoking handler or waiting for signal.
2019-05-12Remove redundant settings.Alexander Bluhm
2019-05-11let's check /bin/c++Bob Beck
2019-05-10Enable the test on octeon. Ignore the fact that the test cannot workVisa Hankala
on CN3xxx where the TLB does not implement the execute inhibit feature. OK guenther@
2019-05-10Let the test build on mips64.Visa Hankala
OK guenther@
2019-05-10Simplify the detection for installed python and scapy. RefactorAlexander Bluhm
these tests to make them similar. Use the setup and cleanup variables.
2019-05-09Drop reference to sparc and expand 'VAC' so the comment makes sensePhilip Guenther
to semi-gurus
2019-05-08Add another case for robert@ :)Bob Beck
2019-05-06enable deadlock related testsanton
2019-04-26a bit more evilBob Beck
2019-04-26/usr/include/machine is a good one.Bob Beck
2019-04-19Start a realpath(2) regress test, currently not enabled.Bob Beck
This will extend as I add more cases to it. It will come into use once an in-kernel version of realpath(2) becomes a real thing
2019-03-24Make stat(2) and access(2) need UNVEIL_READ instead of UNVEIL_INSPECTBob Beck
UNVEIL_INSPECT is a hack we added to get chrome/glib working. It silently adds permission for stat(2), access(2), and readlink(2) to be used on all path components of any unveil'ed path. robert@ has sucessfully now fixed chrome/glib to not require exessive TOC vs TOU stat(2) and access(2) calls on the paths it uses, so that this no longer needed there. readlink(2) is the sole call that is now permitted by UNVEIL_INSPECT, and this is only needed so that realpath(3) can work. Going forward we will likely make a realpath(2), after which we can completely deprecate UNVEIL_INSPECT. ok deraadt@
2019-03-04add kqueue pty close slave testanton
2019-03-04add support for multiple kqueue pty testsanton
2019-03-04one regress test per line to reduce future churnanton
2019-02-10"non-existant" is one of those words that don't exist, so use "non-existent"Peter Hessler
instead From Pamela Mosiejczuk, many thanks! OK phessler@ deraadt@
2019-01-31Instead of skipping the text mmap test, do a non fixed mmap in thisAlexander Bluhm
case. This gives us another test case. Make error messages more verbose. Fix white spaces.
2019-01-25I am retiring my old email address; replace it with my OpenBSD one.Todd C. Miller
2019-01-17Unveil fixes:Bob Beck
1) Correctly notice covering unveil when using .. - fix crash noticed by visa@ 2) Notice when v_mount is NULL to not crash when unveil vnodes are on a forcibly unmounted filesystem, noticed by yasuoka@ 3) Add a flag to ni_data so that failures from unveil flag mismatches in covering unveils return the correct EACCESS instead of ENOENT (noticed by brynet@) ok deraadt@
2019-01-14Fix unveil issue noticed by kn@ where unveil does not notice coveringBob Beck
unveil matches when .. is used correctly. Also adds regress based upon his test program for the same issue.