summaryrefslogtreecommitdiffstats
path: root/tools/regression/security/cap_test/cap_test.c
diff options
context:
space:
mode:
authorjonathan <jonathan@FreeBSD.org>2011-08-18 23:15:04 +0000
committerjonathan <jonathan@FreeBSD.org>2011-08-18 23:15:04 +0000
commit14454847f17719e23a6acb72a60bc5fd71ff35b2 (patch)
tree3ebcbfce1c47ff4ddd968a1fd80c4e9766a9753a /tools/regression/security/cap_test/cap_test.c
parent9c3c6695d8263c150eee1ab52de486cecc245f5a (diff)
downloadFreeBSD-src-14454847f17719e23a6acb72a60bc5fd71ff35b2.zip
FreeBSD-src-14454847f17719e23a6acb72a60bc5fd71ff35b2.tar.gz
Test process descriptors.
Ensure that process descriptors work as expected. We should be able to: - pdfork(), like regular fork(), but producing a process descriptor - pdgetpid() to convert a PD into a PID - pdkill() to send signals to a process identified by a PD Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc
Diffstat (limited to 'tools/regression/security/cap_test/cap_test.c')
-rw-r--r--tools/regression/security/cap_test/cap_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/regression/security/cap_test/cap_test.c b/tools/regression/security/cap_test/cap_test.c
index c583454..580ce4e 100644
--- a/tools/regression/security/cap_test/cap_test.c
+++ b/tools/regression/security/cap_test/cap_test.c
@@ -49,6 +49,8 @@ struct test all_tests[] = {
TEST_INIT(capmode),
TEST_INIT(capabilities),
TEST_INIT(fcntl),
+ TEST_INIT(pdfork),
+ TEST_INIT(pdkill),
TEST_INIT(relative),
TEST_INIT(sysctl),
};
OpenPOWER on IntegriCloud