Attention is currently required from: Arne Schwabe, Heiko Hund.

Deri Haerudi has posted comments on this change by Heiko Hund. ( 
https://gerrit.openvpn.net/c/openvpn/+/2349?usp=email )

Change subject: dns: restrict dns var names and values in the updown runner
......................................................................


Patch Set 2: Code-Review+1

Looked through the whole stack. The temp file is gone on both sides:
no dvf file, no unlink in the runner, and the scripts no longer source
dns_vars_file. The vars now go over the pipe with a size prefix and
full read/write loops, and an oversized or truncated payload means the
script is not run. With #2349 the runner only takes dev, script_type
and dns_* names, and rejects the whole set if anything is off. Looks
good to me.

Two small things, neither of them blocking:

- dns_vars_file still passes dns_var_name_valid(). Nothing sends it
  any more, but old copies of the scripts still source it, so it might
  be worth rejecting that name explicitly.
- Maybe a line in Changes.md: with --user, --dns-updown scripts now
  get the dns_* vars in the environment as documented, and
  dns_vars_file is no longer set.

I'll abandon #2341 once this is merged.


--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2349?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I5847d602a024044d9109f521de7885d55d28a968
Gerrit-Change-Number: 2349
Gerrit-PatchSet: 2
Gerrit-Owner: Heiko Hund <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-Reviewer: Deri Haerudi <[email protected]>
Gerrit-Reviewer: Răzvan Cojocaru <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Heiko Hund <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
Gerrit-Comment-Date: Fri, 27 Nov 2026 12:02:37 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to