git: a00410fa19e9 - stable/15 - nuageinit: chmod sudoers directory instead of chmod (again) sudoers file
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 17 Sep 2025 19:34:18 UTC
The branch stable/15 has been updated by bapt:
URL: https://cgit.FreeBSD.org/src/commit/?id=a00410fa19e987a47deac1a61c115549a90b6ea5
commit a00410fa19e987a47deac1a61c115549a90b6ea5
Author: Jesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>
AuthorDate: 2025-09-11 16:49:56 +0000
Commit: Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2025-09-17 19:33:56 +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
(cherry picked from commit a5cc9b7b96dcba4d3ee98f2eb58c3f389590ddf0)
---
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