]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
sudo: fix pam-wheel sed for sudo 1.9.17p2 sudoers
authorNate Kent <nathan@otiv.ai>
Thu, 18 Jun 2026 11:50:01 +0000 (13:50 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 28 Jun 2026 09:02:08 +0000 (10:02 +0100)
[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.

Signed-off-by: Nate Kent <nathan@otiv.ai>
Tested-by: Siva Balasubramanian <sivakumar.bs@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/sudo/sudo_1.9.17p2.bb

index 7dfa0cef6c206fec2c43b888189d5381448ebaa3..489c0db09df04bb37b0f8b71183b408ecd4535a9 100644 (file)
@@ -37,7 +37,7 @@ do_install:append () {
                install -D -m 644 ${UNPACKDIR}/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