From b8085938de6caebdf4aca7c435906f6fbfc15a7e Mon Sep 17 00:00:00 2001 From: Nate Kent Date: Thu, 2 Jul 2026 10:50:43 +0200 Subject: [PATCH] sudo: fix pam-wheel sed for sudo 1.9.17p2 sudoers [YOCTO #16321] In version 1.9.17p2, the line that the recipe uses to add the 'wheel' group to the sudoers file does not exist. This updates the sed usage to the actual line in question. (From OE-Core rev: 55f7bf8cd9516971d6d01c1c890bc4c1df62b008) Signed-off-by: Nate Kent Tested-by: Siva Balasubramanian Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Ross Burton Signed-off-by: Richard Purdie (cherry picked from commit 76231f202a437be221c2580d4fa0fc100c453e92) Signed-off-by: Yoann Congal Signed-off-by: Paul Barker --- meta/recipes-extended/sudo/sudo_1.9.17p2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-extended/sudo/sudo_1.9.17p2.bb b/meta/recipes-extended/sudo/sudo_1.9.17p2.bb index c934dfdce2..90672ed7af 100644 --- a/meta/recipes-extended/sudo/sudo_1.9.17p2.bb +++ b/meta/recipes-extended/sudo/sudo_1.9.17p2.bb @@ -34,7 +34,7 @@ do_install:append () { install -D -m 644 ${WORKDIR}/sudo.pam ${D}/${sysconfdir}/pam.d/sudo if ${@bb.utils.contains('PACKAGECONFIG', 'pam-wheel', 'true', 'false', d)} ; then echo 'auth required pam_wheel.so use_uid' >>${D}${sysconfdir}/pam.d/sudo - sed -i 's/# \(%wheel ALL=(ALL) ALL\)/\1/' ${D}${sysconfdir}/sudoers + sed -i 's/# \(%wheel ALL=(ALL:ALL) ALL\)/\1/' ${D}${sysconfdir}/sudoers fi fi