From: "d12fk (Code Review)"
Date: Mon, 20 Jan 2025 19:19:40 +0000
In-Reply-To:
References:
Reply-To: heiko@...515..., arne-openvpn@...1227...,
openvpn-devel@lists.sourceforge.net, frank@...2641...
Message-ID: <2c8c03a7678c71688670378b18e0a104b66cc408-EmailReviewComments-HTML@...2715...>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="Jj5NilECafE="; charset=UTF-8
Subject: [Openvpn-devel] [L] Change in openvpn[master]: dns: support running
up/down script with privsep
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Cc: plaisthos , flichtenheld , openvpn-devel
--Jj5NilECafE=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: flichtenheld, plaisthos.
d12fk has posted comments on this change. ( http://gerrit.openvpn.net/c/ope=
nvpn/+/839?usp=3Demail )
Change subject: dns: support running up/down script with privsep
......................................................................
Patch Set 7:
(1 comment)
File src/openvpn/dns.c:
http://gerrit.openvpn.net/c/openvpn/+/839/comment/6e128420_528a4795 :
PS7, Line 709: ssize_t len =3D read(rfd, &status, sizeof(status=
));
> Do we need some kind of timeout handling here?
Hm, that's a good thought. I'd rather implement the timeout in the script r=
unner process, since the only source for an indefinite "hang" is the script=
itself. By handling this in the runner, we could also make sure that it is=
ready for the next request, i.e. unblocked. If we just implement the timeo=
ut here next time we need to run the script it will timeout again otherwise.
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/839?usp=3Demail
To unsubscribe, or for help writing mail filters, visit http://gerrit.openv=
pn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I6b67e3a00dd84bf348b6af28115ee11138c3a111
Gerrit-Change-Number: 839
Gerrit-PatchSet: 7
Gerrit-Owner: d12fk
Gerrit-Reviewer: flichtenheld
Gerrit-Reviewer: plaisthos
Gerrit-CC: openvpn-devel
Gerrit-Attention: plaisthos
Gerrit-Attention: flichtenheld
Gerrit-Comment-Date: Mon, 20 Jan 2025 19:19:40 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld
Gerrit-MessageType: comment
--Jj5NilECafE=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: flichtenheld, plaisthos.
View C=
hange
1 comment:
<=
li style=3D"margin: 0; padding: 0;">File src/openvpn/dns.c:
Hm, that's a good thought. I'd rath=
er implement the timeout in the script runner process, since the only sourc=
e for an indefinite "hang" is the script itself. By handling this=
in the runner, we could also make sure that it is ready for the next reque=
st, i.e. unblocked. If we just implement the timeout here next time we need=
to run the script it will timeout again otherwise.
=
To view, visit change 839. To unsubscribe, or for help writing mail filters,=
visit settings.
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I6b67e3a00dd84bf348b6af28115=
ee11138c3a111
Gerrit-Change-Number: 839
Gerrit-PatchSet: 7
Gerrit-Owner: d12fk <heiko@...515...> =
div>
Gerrit-Reviewer: flichtenheld <frank@...2716...=
1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...=
.1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...=
ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...=
..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...=
41...>
Gerrit-Comment-Date: Mon, 20 Jan 2025 19:19:40=
+0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld <frank@...1186...=
.2641...>
Gerrit-MessageType: comment
--Jj5NilECafE=--