1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-05-31 16:21:13 +03:00

torture: Start sshd as root

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider 2015-09-11 14:25:39 +02:00
parent e4653b82bd
commit a30d16c48a

View File

@ -933,6 +933,7 @@ void torture_setup_sshd_server(void **state)
/* Set the default interface for the server */ /* Set the default interface for the server */
setenv("SOCKET_WRAPPER_DEFAULT_IFACE", "10", 1); setenv("SOCKET_WRAPPER_DEFAULT_IFACE", "10", 1);
setenv("UID_WRAPPER_ROOT", "1", 1);
s = *state; s = *state;
@ -942,6 +943,9 @@ void torture_setup_sshd_server(void **state)
rc = system(sshd_start_cmd); rc = system(sshd_start_cmd);
assert_return_code(rc, errno); assert_return_code(rc, errno);
setenv("SOCKET_WRAPPER_DEFAULT_IFACE", "21", 1);
unsetenv("UID_WRAPPER_ROOT");
} }
void torture_teardown_socket_dir(void **state) void torture_teardown_socket_dir(void **state)