From 1a8cef539d6cd061a8406c47865a3a6f46c7b4ab Mon Sep 17 00:00:00 2001 From: semarie Date: Tue, 6 Oct 2015 15:45:31 +0000 Subject: [PATCH] update "cmsg" tests: it lost TAME_SELF flag. --- regress/sys/kern/tame/generic/main.c | 6 +++--- regress/sys/kern/tame/generic/tests.out | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/regress/sys/kern/tame/generic/main.c b/regress/sys/kern/tame/generic/main.c index c7e7e0ee883..a916177957c 100644 --- a/regress/sys/kern/tame/generic/main.c +++ b/regress/sys/kern/tame/generic/main.c @@ -1,4 +1,4 @@ -/* $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 * @@ -279,12 +279,12 @@ main(int argc, char *argv[]) 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); @@ -325,7 +325,7 @@ main(int argc, char *argv[]) /* 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); diff --git a/regress/sys/kern/tame/generic/tests.out b/regress/sys/kern/tame/generic/tests.out index dcc6cb83ed6..69e1118ad20 100644 --- a/regress/sys/kern/tame/generic/tests.out +++ b/regress/sys/kern/tame/generic/tests.out @@ -1,4 +1,4 @@ -# $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 @@ -13,9 +13,9 @@ test(test_allowed_syscalls): tame=("wpath",NULL) status=0 exit=0 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 @@ -90,7 +90,7 @@ test(test_tame): tame=("stdio rpath wpath",NULL) status=0 exit=0 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 -- 2.20.1