summaryrefslogtreecommitdiff
path: root/regress/sys/kern
AgeCommit message (Collapse)Author
2016-03-17Last parameter to execl[e]() functions *must* be cast to a pointer.Kenneth R Westerback
Just NULL is not good practise as NULL is theoretically allowed to be an integer rather than a pointer. Use (char *)NULL consistently instead of scattering a few (char *)0 and (void *)NULL into the mix. Prompted by and probably ok deraadt@ millert@ kettenis@ Definitely ok mestre@ ratchov@
2016-01-09drop "abort" promise, and make it the default behaviour.Sebastien Marie
The current code has already setted it by default since 1.74 any pledge failure tries to make a coredump (default rules for coredump still applies: so setuid binaries don't create them locally). ok deraadt@
2015-12-05simplistic regress test for KEVENT_TIMER kqueue(2) callsBret Lambert
ok and prodding tedu@
2015-11-14regress: pledge: update SYS_kill syscall numberSebastien Marie
2015-11-03regress: pledgeSebastien Marie
check for error output for systrace
2015-11-03regress: pledgeSebastien Marie
- add $OpenBSD$ tag in systrace.filter.in - replace dir by variable
2015-11-03regress pledge: check the regress with systrace enabled tooSebastien Marie
2015-10-30regress: pledgeSebastien Marie
- for calling ioctl(2), we need "stdio" now: change test_request_tty - for calling kill(2), we need "stdio" now: change test_kill
2015-10-29regress pledge: rpath isn't needed anymore for mkdir()Sebastien Marie
make the cpath test more strict.
2015-10-26update regress suite for pledgeSebastien Marie
2015-10-26temporary unhook regress/sys/kern/pledge from regressSebastien Marie
2015-10-23Cast isdigit() argument to unsigned char.mmcc
2015-10-20update regress for pledge after whitelisted-path view inclusionSebastien Marie
2015-10-18regress pledge: test kill()Sebastien Marie
since "inet" has PLEDGE_SELF, and now calling kill() to self is permitted with PLEDGE_SELF, try this with "fattr"
2015-10-18regress pledge: remove cmsgSebastien Marie
it has no sens to keep it.
2015-10-18regress pledge: cpath testSebastien Marie
you need to read the directory before creating something in. add rpath
2015-10-18regress pledge: cmsg is deprecatedSebastien Marie
2015-10-18regress pledge: tweak a bit the manner to grab hte syscall numberSebastien Marie
permit debug string be present on the line
2015-10-09regress pledgeSebastien Marie
add missing $OpenBSD$ header
2015-10-09regress pledge: remove 'regenerate' targetSebastien Marie
2015-10-09add "tty" regress for pledgeSebastien Marie
2015-10-09hook pledgeSebastien Marie
2015-10-09follow tame->pledge in regressSebastien Marie
2015-10-08allow a test to manage itself the tame(2) call.Sebastien Marie
2015-10-06update "cmsg" tests: it lost TAME_SELF flag.Sebastien Marie
2015-10-06add some tests for rpath, wpath, cpathSebastien Marie
2015-09-30implement new "prot_exec" tame(2) request:Sebastien Marie
- by default, a tamed-program don't have the possibility to use PROT_EXEC for mmap(2) or mprotect(2) - for that, use the request "prot_exec" (that could be dropped later) initial idea from deraadt@ and kettenis@ "make complete sense" beck@ ok deraadt@
2015-09-28make using tame path "/" work.Sebastien Marie
and add a regress test for that. ok deraadt@
2015-09-27add a tame(2) regress for stat(2) and realpath(3)Sebastien Marie
2015-09-24tame("xxx", NULL) and tame("xxx", {NULL}) are not the sameSebastien Marie
- change output of regress to reflect that - add test
2015-09-24refactor a bit regress tameSebastien Marie
- unit tests are functions in main.c - use test name in output - add grabbing stdout output of tests
2015-09-18remove check for LD_BIND_NOW as kbind(2) is available on almost (all ?) archSebastien Marie
where LD_BIND_NOW was in use.
2015-09-10enable generic regress for tame(2)Sebastien Marie
2015-09-10convert tame(2) regress to new APISebastien Marie
2015-09-10convert tame(2) regress to new APISebastien Marie
2015-08-28Add obviously missing #includesPhilip Guenther
2015-08-24add a missing headerSebastien Marie
2015-08-24add new (extensible) testsuite for tame(2)Sebastien Marie
2015-08-23remove tame/sys_exit in favor of more generic approch (soon)Sebastien Marie
2015-08-23convert to new tame(2) ABI/APISebastien Marie
2015-08-13NOTE_FORK|NOTE_TRACK knote can track grandchild processes. Wait forMasao Uebayashi
both child/grandchild process events.
2015-08-13Zero-clear test buffers. Close fds.Masao Uebayashi
2015-08-13Close an fd.Masao Uebayashi
2015-08-13Zero-clear test buffer. Close fds.Masao Uebayashi
2015-08-13Zero-clear test buffer.Masao Uebayashi
2015-08-13Zero-clear test buffer. KNF while here.Masao Uebayashi
2015-08-02Kill a useless assignment.Masao Uebayashi
2015-08-02Refactor to prepare a future change; no functional changes.Masao Uebayashi
2015-08-01SPC -> TABMasao Uebayashi
2015-07-28check that flags value of 0 restricts the process to the _exit(2) system call.Sebastien Marie
note that it isn't the case currently.