aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2015-09-11 14:25:39 +0200
committerJakub Jelen <jjelen@redhat.com>2018-10-02 16:35:08 +0200
commit73ebcb3ab88575bcc207851a8fe5d87a7d27154e (patch)
tree62156eb2a0c40dff7c8e69146abf34aacff4ccf6
parentbd7b509278a9a82976d99d324a640991439bf037 (diff)
downloadlibssh-73ebcb3ab88575bcc207851a8fe5d87a7d27154e.tar.gz
libssh-73ebcb3ab88575bcc207851a8fe5d87a7d27154e.tar.xz
libssh-73ebcb3ab88575bcc207851a8fe5d87a7d27154e.zip
torture: Start sshd as root
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry-picked from commit a30d16c4)
-rw-r--r--tests/torture.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/torture.c b/tests/torture.c
index 15eb089b..738cacc9 100644
--- a/tests/torture.c
+++ b/tests/torture.c
@@ -831,6 +831,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;
@@ -840,6 +841,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)