From: "cron2 (Code Review)" Date: Tue, 13 Jan 2026 08:46:52 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="aFtTpL8Kf3I="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: Require script-security 2 when using unix: tun List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos , flichtenheld Cc: openvpn-devel --aFtTpL8Kf3I= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#2) to the change originally created by= plaisthos. ( http://gerrit.openvpn.net/c/openvpn/+/1465?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by flichtenheld Change subject: Require script-security 2 when using unix: tun ...................................................................... Require script-security 2 when using unix: tun Since this executes an executable from an arbitrary path, it should follow the same rules as other scripts/executable. Reported-By: Petr Simecek, Pavel Kohout and Stanislav Fort from Aisle Resea= rch Change-Id: I89dcab24ba510094ce1672e382960bf15def310a Signed-off-by: Arne Schwabe Acked-by: Frank Lichtenheld Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1465 Message-Id: <20260113072750.16015-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg35= 223.html Signed-off-by: Gert Doering --- M src/openvpn/tun_afunix.c 1 file changed, 4 insertions(+), 1 deletion(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/65/1465/2 diff --git a/src/openvpn/tun_afunix.c b/src/openvpn/tun_afunix.c index c410480..a67a472 100644 --- a/src/openvpn/tun_afunix.c +++ b/src/openvpn/tun_afunix.c @@ -61,7 +61,10 @@ argv_printf(&argv, "%s", program); - tt->afunix.childprocess =3D openvpn_execve_check(&argv, env, S_NOWAITP= ID, msgprefix); + /* exit when executing fails to easier spot errors here and treat this + * command like an external script */ + int flags =3D S_NOWAITPID | S_SCRIPT | S_FATAL; + tt->afunix.childprocess =3D openvpn_execve_check(&argv, env, flags, ms= gprefix); if (!openvpn_waitpid_check(tt->afunix.childprocess, msgprefix, M_WARN)) { tt->afunix.childprocess =3D 0; -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1465?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newpatchset Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I89dcab24ba510094ce1672e382960bf15def310a Gerrit-Change-Number: 1465 Gerrit-PatchSet: 2 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel --aFtTpL8Kf3I= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 upl= oaded patch set #2 to the change originally created by plaisthos.<= /p>

Vi= ew Change

The following approvals got outdated and were removed: Code-Review+2 by flichtenheld

Require script-security 2 wh=
en using unix: tun

Since this executes an executable from an arbitra= ry path, it should follow
the same rules as other scripts/executable.
Reported-By: Petr Simecek, Pavel Kohout and Stanislav Fort from Aisle = Research
Change-Id: I89dcab24ba510094ce1672e382960bf15def310a
Signed-= off-by: Arne Schwabe <arne@...1227...>
Acked-by: Frank Lichtenheld= <frank@...2641...>
Gerrit URL: https://gerrit.openvpn.net/c/openv= pn/+/1465
Message-Id: <20260113072750.16015-1-gert@...1296...>
= URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg35= 223.html
Signed-off-by: Gert Doering <gert@...1296...>
---
M= src/openvpn/tun_afunix.c
1 file changed, 4 insertions(+), 1 deletion(-)=

git pull ssh://gerrit.openvpn.net:29418/openvpn=
 refs/changes/65/1465/2
diff --git a/src/openvpn/tun_afunix.c b/src=
/openvpn/tun_afunix.c
index c410480..a67a472 100644<= br>--- a/src/openvpn/tun_afunix.c
+++ b/src/openvpn/t= un_afunix.c
@@ -61,7 +61,10 @@

= argv_printf(&argv, "%s", program);

- tt->afunix.c= hildprocess =3D openvpn_execve_check(&argv, env, S_NOWAITPID, msgprefix= );
+ /* exit when = executing fails to easier spot errors here and treat this
+ * command like an external scrip= t */
+ int flags = =3D S_NOWAITPID | S_SCRIPT | S_FATAL;
+ tt->afunix.childprocess =3D openvpn_execve_check(&= amp;argv, env, flags, msgprefix);
if (!openvpn_waitpid= _check(tt->afunix.childprocess, msgprefix, M_WARN))
= {
tt->afunix.childprocess =3D 0;

To view, visit change 1465. To unsubscribe, or for help = writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I89dcab24ba510094ce1672e3829= 60bf15def310a
Gerrit-Change-Number: 1465
Gerrit-PatchSet: 2
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --aFtTpL8Kf3I=--