aboutsummaryrefslogtreecommitdiff
path: root/src/jail.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2018-06-13 01:18:53 +0200
committerToni Uhlig <matzeton@googlemail.com>2018-06-13 01:18:53 +0200
commit436983fe412b9e764f6bec422317b8588d175a86 (patch)
treee4f3b954887d8cdf7fa107e215f339ba7e600bd3 /src/jail.c
parentaa8fb9511c8efb70952ef6b01fcd803847d6704c (diff)
POTD skeleton #103.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/jail.c')
-rw-r--r--src/jail.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jail.c b/src/jail.c
index 9ed75f8..e94d069 100644
--- a/src/jail.c
+++ b/src/jail.c
@@ -340,6 +340,7 @@ static int jail_childfn(prisoner_process *ctx)
case 0:
if (mount_proc(path_proc))
exit(EXIT_FAILURE);
+ socket_set_ifaddr(&ctx->client_psock, "lo", "127.0.0.1", "255.0.0.0");
/*
if (update_setgroups_self(0))
exit(EXIT_FAILURE);