Commit f03486b7 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Raise jail privs around initial socket opening.

Fixes #1699
parent b845ad09
......@@ -136,7 +136,9 @@ mac_callback(void *priv, const struct suckaddr *sa)
ls->addr = sa;
ls->proto_name = mh->proto_name;
ls->first_step = mh->first_step;
VJ_master(JAIL_MASTER_PRIVPORT);
fail = mac_opensocket(ls, NULL);
VJ_master(JAIL_MASTER_LOW);
if (ls->sock < 0) {
*(mh->err) = strerror(fail);
FREE_OBJ(ls);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment