From a30d16c48a8ca2051dc4a139fbdb5dc4b3bb10a6 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 11 Sep 2015 14:25:39 +0200 Subject: [PATCH] torture: Start sshd as root Signed-off-by: Andreas Schneider --- tests/torture.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/torture.c b/tests/torture.c index 39abdbd0..dc40348a 100644 --- a/tests/torture.c +++ b/tests/torture.c @@ -933,6 +933,7 @@ void torture_setup_sshd_server(void **state) /* Set the default interface for the server */ setenv("SOCKET_WRAPPER_DEFAULT_IFACE", "10", 1); + setenv("UID_WRAPPER_ROOT", "1", 1); s = *state; @@ -942,6 +943,9 @@ void torture_setup_sshd_server(void **state) rc = system(sshd_start_cmd); assert_return_code(rc, errno); + + setenv("SOCKET_WRAPPER_DEFAULT_IFACE", "21", 1); + unsetenv("UID_WRAPPER_ROOT"); } void torture_teardown_socket_dir(void **state)