-/* $OpenBSD: main.c,v 1.3 2015/10/18 12:53:32 semarie Exp $ */
+/* $OpenBSD: main.c,v 1.4 2015/10/18 12:54:25 semarie Exp $ */
/*
* Copyright (c) 2015 Sebastien Marie <semarie@openbsd.org>
*
/* tests req without PLEDGE_SELF for "permitted syscalls" */
// XXX it is a documentation bug
- start_test(&ret, "cmsg", NULL, test_allowed_syscalls);
start_test(&ret, "ioctl", NULL, test_allowed_syscalls);
start_test(&ret, "proc", NULL, test_allowed_syscalls);
start_test(&ret, "cpath", NULL, test_allowed_syscalls);
-# $OpenBSD: tests.out,v 1.4 2015/10/18 12:53:32 semarie Exp $
+# $OpenBSD: tests.out,v 1.5 2015/10/18 12:54:25 semarie Exp $
test(test_nop): pledge=("",NULL) status=0 exit=0
test(test_inet): pledge=("",NULL) status=9 signal=9 pledged_syscall=97
test(test_inet): pledge=("abort",NULL) status=134 signal=6 coredump=present pledged_syscall=97
test(test_allowed_syscalls): pledge=("unix",NULL) status=0 exit=0
test(test_allowed_syscalls): pledge=("dns",NULL) status=0 exit=0
test(test_allowed_syscalls): pledge=("getpw",NULL) status=0 exit=0
-test(test_allowed_syscalls): pledge=("cmsg",NULL) status=5632 exit=22 (errno: "Invalid argument")
test(test_allowed_syscalls): pledge=("ioctl",NULL) status=9 signal=9 pledged_syscall=89
test(test_allowed_syscalls): pledge=("proc",NULL) status=9 signal=9 pledged_syscall=89
test(test_allowed_syscalls): pledge=("cpath",NULL) status=9 signal=9 pledged_syscall=89