From nobody Thu Sep 11 17:06:44 2025 X-Original-To: dev-commits-src-main@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 4cN3r420bPz66w2p; Thu, 11 Sep 2025 17:06:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cN3r41Jfxz3Tbv; Thu, 11 Sep 2025 17:06:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757610404; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SXoBul0ILAXCq11m/t1BKguEeQHVddvvHMhUyfMU4os=; b=Qay8p18cIc1wsTMHqEPHFAijJLtQOV8ikvgBhJ+4bbGb2zVe8i9FajzJsQxY7kGih5F9+T NDaRil0PZ66vr7tGzeNtbgB+5XFX3EbaxzF6J2Y8E3yZAMaAXBOPli3nJR/tH6hwCFM+SZ s8ehQIcew+20d92msGc3+rTgKPf6J0ojd7OZo5aHjYJALoFulFuUIFDK3u6B2F+Hi59sq9 ymsIW0i2bNquutuGE4zuqHm8N2RAyJ4VIsgM/37Mk+eK1ihD5XKNMmAlFXopKm33ZutpkO kFkarvyG5DjD+1EopgcNDd+GSLHVZpbLxtLtyslho1G+flKJtc/zA9OrTlZnOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757610404; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SXoBul0ILAXCq11m/t1BKguEeQHVddvvHMhUyfMU4os=; b=CkI7Mq2nYsOD/oZFUG6L6NvuRox2ky1gsT3ZxNrl4ViMpR2olIdt5EYXfkTg5gzL2BpQBd +0+n3bCcPwEzQllhBRWJtNPkcoMOBXjikE3xnM1wIoGipspFIV2dajP9gkZdg8AIY/9D6P vjd4hNxWEZ5Z+pBpsKFTNExhLRoInNAaASEm4CCpN/znCWVJDD4wQDJAOrL+0jIUExOJj8 dI5JLGI+5OOLhw06u0CfS5/OJ6Y6ASAYussbQTz3Q/yz3eHH/zftiFdJploklsqZPUtVOU yyZW+Wt27jlRVR0MfSveHSyIl3NqfZbqpI3Iu/XFactLfihxOssQu8CNWscLfQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1757610404; a=rsa-sha256; cv=none; b=CWNjESQ44vsXuxqsPiHrRgCs6qj/aaGsNHtTHbXsjMPyTLXPA9s8Q3JfNLFH8G2d06qiZm n74CufaAdhKO3UPeWIHCeVNUt8f3s4XwSMuiPdPvC9rr9UVBDxPJhQv0tkvWPvzAz4fwqj 4XcaH0GCHmDeqoeLSPTufkz9rwr5+aqMQb4+UTzF8xG9j+YjoMYiLV65wSVhRbnxez0bm2 M7c2jk54W0Qb1DZPBeWjd510AQ5FShXgeyukQrP9olYjzsz9MyyG4ZjdTT/v+RuZG95xPF Rh2nbwWwN3NIBIcAOv4h7Qrl9esSObYV9nVX7I1DsW5iy0TqmC89+7C56NFhZQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cN3r40tv6z1fJ; Thu, 11 Sep 2025 17:06:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 58BH6iZC097420; Thu, 11 Sep 2025 17:06:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 58BH6ila097416; Thu, 11 Sep 2025 17:06:44 GMT (envelope-from git) Date: Thu, 11 Sep 2025 17:06:44 GMT Message-Id: <202509111706.58BH6ila097416@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Jes=C3=BAs?= Daniel Colmenares Oviedo Subject: git: a5cc9b7b96dc - main - nuageinit: chmod sudoers directory instead of chmod (again) sudoers file List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dtxdf X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a5cc9b7b96dcba4d3ee98f2eb58c3f389590ddf0 Auto-Submitted: auto-generated The branch main has been updated by dtxdf: URL: https://cgit.FreeBSD.org/src/commit/?id=a5cc9b7b96dcba4d3ee98f2eb58c3f389590ddf0 commit a5cc9b7b96dcba4d3ee98f2eb58c3f389590ddf0 Author: Jesús Daniel Colmenares Oviedo AuthorDate: 2025-09-11 16:49:56 +0000 Commit: Jesús Daniel Colmenares Oviedo CommitDate: 2025-09-11 17:05:51 +0000 nuageinit: chmod sudoers directory instead of chmod (again) sudoers file * Set mode of sudoers to 0440. Reviewed by: bapt@, jlduran@ Approved by: bapt@, jlduran@ Differential Revision: https://reviews.freebsd.org/D52438 --- libexec/nuageinit/nuage.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/nuageinit/nuage.lua b/libexec/nuageinit/nuage.lua index 48f54b120615..22140dd06fe5 100644 --- a/libexec/nuageinit/nuage.lua +++ b/libexec/nuageinit/nuage.lua @@ -311,10 +311,10 @@ local function addsudo(pwd) end f:close() if chmodsudoers then - chmod(sudoers, "0640") + chmod(sudoers, "0440") end if chmodsudoersd then - chmod(sudoers, "0740") + chmod(sudoers_dir, "0750") end end