Searched hist:e5b431fc0c20771a2a18cb5169d75cf337d0f1dd (Results 1 – 4 of 4) sorted by relevance
/freebsd/tests/sys/kern/execve/ |
H A D | execve_argc_helper.c | e5b431fc0c20771a2a18cb5169d75cf337d0f1dd Wed Jan 26 02:22:03 CET 2022 Kyle Evans <kevans@FreeBSD.org> tests: add a basic test for argc == 0
The kernel should reject such exec()s now, early on. Instead of adding the needed boilerplate to write a test in C, just add an -n argument for "(n)ull argv" to the execve helper and exec this other helper that just exits silently with argv count.
Reviewed by: emaste, kib, markj (all previous version) Differential Revision: https://reviews.freebsd.org/D34045
|
H A D | execve_test.sh | diff e5b431fc0c20771a2a18cb5169d75cf337d0f1dd Wed Jan 26 02:22:03 CET 2022 Kyle Evans <kevans@FreeBSD.org> tests: add a basic test for argc == 0
The kernel should reject such exec()s now, early on. Instead of adding the needed boilerplate to write a test in C, just add an -n argument for "(n)ull argv" to the execve helper and exec this other helper that just exits silently with argv count.
Reviewed by: emaste, kib, markj (all previous version) Differential Revision: https://reviews.freebsd.org/D34045
|
H A D | execve_helper.c | diff e5b431fc0c20771a2a18cb5169d75cf337d0f1dd Wed Jan 26 02:22:03 CET 2022 Kyle Evans <kevans@FreeBSD.org> tests: add a basic test for argc == 0
The kernel should reject such exec()s now, early on. Instead of adding the needed boilerplate to write a test in C, just add an -n argument for "(n)ull argv" to the execve helper and exec this other helper that just exits silently with argv count.
Reviewed by: emaste, kib, markj (all previous version) Differential Revision: https://reviews.freebsd.org/D34045
|
H A D | Makefile | diff e5b431fc0c20771a2a18cb5169d75cf337d0f1dd Wed Jan 26 02:22:03 CET 2022 Kyle Evans <kevans@FreeBSD.org> tests: add a basic test for argc == 0
The kernel should reject such exec()s now, early on. Instead of adding the needed boilerplate to write a test in C, just add an -n argument for "(n)ull argv" to the execve helper and exec this other helper that just exits silently with argv count.
Reviewed by: emaste, kib, markj (all previous version) Differential Revision: https://reviews.freebsd.org/D34045
|