From nobody Tue May 12 08:15:21 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gF8Xq3Bb7z6dGhm; Tue, 12 May 2026 08:15:23 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gF8Xq2YSmz43bX; Tue, 12 May 2026 08:15:23 +0000 (UTC) (envelope-from bapt@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1778573723; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=yYueH2zL/CazWv42Pk0M9f1lwsJ9+yoASEVp2X3z0ec=; b=e2HZrvzHkS5+XleSJbuEMd9xODFDKEANMEP17DaZU/EjrTAzM6daeEY+i23BYVm9X5hXCZ kjQo8z5yNHQktgkMzN6kTooe+NrO1RzNC+fyf8xtKAPX9wC3pmnh3wljfcGDIDTj/ndxco J6yKCyt/SUjfWcIEqkM6ydgUjZYFppuIRr+1KbGir+e9eIcnahZPfgnhkKGRqCfO/6IAv/ seYg+lm8kbHUXnqgJbEeKCFhE92gBkzXQ8lgESiSYwPbg2Rc5iCrICa0cCkaGN/9cP37Iu aS4GhLX64xBi4SSY1Xaj0Wnob8U4JrGn827GPyQI9BZUzX+qLkxUCh7VQcmVcw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1778573723; a=rsa-sha256; cv=none; b=x8Pe9+1fvgjL+TbASw1yMJrNp6HRVybPBNvKPmaFQcoF1REbqq2hGsKNQnOMZqnJ+LDGgL UeX8n4PmuXMpCiRf0RVRd6q5+eVyIu9Xp1WUqbaq4NuxLrlhVB7/XeAbeZIKwUp6QX59YL IVasJshT+Jq5BVzIf/hXbreZzlSqg6a50rSo2zD4dtO7jH0/C1EKcu4j2iKmh4JTDDdNRw UbcsbFDD6r4dF7HpG1Wr+knryFweB4xKELSVU86r8gWIvis+Ds3yRIbXrFLtmEcybLSS2U yKDhGmSZu+Tq90hz0/0l9WftgfblVe3FymzDkgY7x0Xrau89OIaGs0T3P8DZxg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1778573723; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=yYueH2zL/CazWv42Pk0M9f1lwsJ9+yoASEVp2X3z0ec=; b=c9cd6HSeHrKdYZROFUzJChnnDz/2isi5qVXSnj/1/ov/OsW+5wKsDZ9ntMHFpLwXgEEVqc mRm+J9PKKj3/VwBZcUSwjOPLTcKz5HCcqZeyrvTkadgsVCTgh0H7tW0rPCYxuIiSsWvYrt LhaPjy/SWyfi9Ow3lUiKblXwTMcnvk3bGrsVnLpvWtqN7LDBtmV8oOF/XpuifdwJ13Agx4 nfKZHEcY4cQ0VeSjteHkcAXz1uJNvXf+Q+iTsZQiOoo0XgNa2cy8ju8EEecCGj42VSmPdf nU53h0LnVrBhHYmwoI2j42T5bvd82TSLUWOH0YZK3Ay2uMCwUNQPW3WLTWBq0w== Received: from b.nours.eu (b.nours.eu [54.38.177.57]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) (Authenticated sender: bapt) by smtp.freebsd.org (Postfix) with ESMTPSA id 4gF8Xq1LHpzZKR; Tue, 12 May 2026 08:15:23 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: by b.nours.eu (Postfix, from userid 1001) id DE0D63D576; Tue, 12 May 2026 10:15:21 +0200 (CEST) Date: Tue, 12 May 2026 10:15:21 +0200 From: Baptiste Daroussin To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: Re: git: 8b70a203be10 - main - nuageinit: fix command injection and related issues Message-ID: References: <6a02dc5c.24b1f.734d8e95@gitrepo.freebsd.org> List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6a02dc5c.24b1f.734d8e95@gitrepo.freebsd.org> On Tue 12 May 07:53, Baptiste Daroussin wrote: > The branch main has been updated by bapt: > > URL: https://cgit.FreeBSD.org/src/commit/?id=8b70a203be10411c560ed303ab25713d70b316e9 > > commit 8b70a203be10411c560ed303ab25713d70b316e9 > Author: Baptiste Daroussin > AuthorDate: 2026-05-07 18:22:14 +0000 > Commit: Baptiste Daroussin > CommitDate: 2026-05-12 07:52:32 +0000 > > nuageinit: fix command injection and related issues > > - Add shell_escape() helper to safely escape shell arguments > - Apply shell_escape to all user-controlled values in shell commands: > adduser (usershow, useradd, lock, primary_group, groups) > addgroup (groupshow, groupadd, members) > exec_change_password (usermod) > settimezone (tzsetup root and timezone) > install_package (pkg package names) > - Escape double quotes in hostname when writing rc.conf.d/hostname > - Add missing 'local' declaration for resolvconf_command in nameservers() > - Escape interface name in resolvconf -a command > - Change open_resolvconf_conf() from 'w' to 'a' mode to prevent > data loss when nameservers() is called multiple times > - Clean up stale resolvconf.conf at the start of each boot > (skip on postnet to preserve config written by first call) > > MFC After: 1 day Part of this has been reported by: Yazdan Soltani sorry I forgot to mention. Best regards, Bapt