-/* $OpenBSD: main.c,v 1.9 2015/10/06 15:24:54 semarie Exp $ */
+/* $OpenBSD: main.c,v 1.10 2015/10/06 15:45:31 semarie Exp $ */
/*
* Copyright (c) 2015 Sebastien Marie <semarie@openbsd.org>
*
start_test(&ret, "tmppath", NULL, test_allowed_syscalls);
start_test(&ret, "inet", NULL, test_allowed_syscalls);
start_test(&ret, "unix", NULL, test_allowed_syscalls);
- start_test(&ret, "cmsg", NULL, test_allowed_syscalls);
start_test(&ret, "dns", NULL, test_allowed_syscalls);
start_test(&ret, "getpw", NULL, test_allowed_syscalls);
/* tests req without TAME_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);
/* add request */
start_test(&ret, "stdio", NULL, test_tame);
/* change request */
- start_test(&ret, "cmsg", NULL, test_tame);
+ start_test(&ret, "unix", NULL, test_tame);
/* test stat(2) */
start_test1(&ret, "stdio rpath", "/usr/share/man", test_stat);
-# $OpenBSD: tests.out,v 1.8 2015/10/06 15:24:54 semarie Exp $
+# $OpenBSD: tests.out,v 1.9 2015/10/06 15:45:31 semarie Exp $
test(test_nop): tame=("",NULL) status=0 exit=0
test(test_inet): tame=("",NULL) status=9 signal=9 tamed_syscall=97
test(test_inet): tame=("abort",NULL) status=134 signal=6 coredump=present tamed_syscall=97
test(test_allowed_syscalls): tame=("tmppath",NULL) status=0 exit=0
test(test_allowed_syscalls): tame=("inet",NULL) status=0 exit=0
test(test_allowed_syscalls): tame=("unix",NULL) status=0 exit=0
-test(test_allowed_syscalls): tame=("cmsg",NULL) status=0 exit=0
test(test_allowed_syscalls): tame=("dns",NULL) status=0 exit=0
test(test_allowed_syscalls): tame=("getpw",NULL) status=0 exit=0
+test(test_allowed_syscalls): tame=("cmsg",NULL) status=9 signal=9 tamed_syscall=89
test(test_allowed_syscalls): tame=("ioctl",NULL) status=9 signal=9 tamed_syscall=89
test(test_allowed_syscalls): tame=("proc",NULL) status=9 signal=9 tamed_syscall=89
test(test_allowed_syscalls): tame=("cpath",NULL) status=9 signal=9 tamed_syscall=89
test(test_tame): tame=("stdio rpath wpath",{"/sbin",NULL}) status=256 exit=1 (errno: "Operation not permitted")
test(test_tame): tame=("stdio rpath wpath",{"/",NULL}) status=256 exit=1 (errno: "Operation not permitted")
test(test_tame): tame=("stdio",NULL) status=256 exit=1 (errno: "Operation not permitted")
-test(test_tame): tame=("cmsg",NULL) status=256 exit=1 (errno: "Operation not permitted")
+test(test_tame): tame=("unix",NULL) status=256 exit=1 (errno: "Operation not permitted")
test(test_stat): tame=("stdio rpath",{"/usr/share/man",NULL})
stat("/usr/share/man/man8/afterboot.8"): realpath=failed(2) uid=0 gid=7 mode=100444
stat("/usr/share/man/man8/"): realpath=failed(2) uid=0 gid=0 mode=40755