You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
os/v3/puppy: the pre-pack chown strips every setuid bit, so the D-Bus launch helper, passwd and su cannot work #956
The c20 board reported (second cycle running): Activated service 'org.freedesktop.login1' failed: The permission of the setuid helper is not correct, same line for org.freedesktop.hostname1 and fi.w1.wpa_supplicant1. pi-release scanned for setuid bits and suggested looking at /usr/lib/dbus-1.0 staging. The cause is not staging, and it is our own build patch.
unsquashfs -ll on the shipped sfs prints -rwxr-xr-x for dbus-daemon-launch-helper and for passwd; there is not one s in a mode bit anywhere in the image.
Cause.os/v3/puppy/container-build.sh patches woof-CE's 3builddistro to run chown -R 0:0 rootfs-complete immediately before mksquashfs — the cycle-16 fix for the frugalpup docs that arrived owned by uid 6975. POSIX says chown() clears S_ISUID/S_ISGID on every file it touches, and chown -R touches all of them. So the ownership fix silently disarmed every setuid helper in the image, and the two facts were never connected: nothing in the boot path needs those helpers, so the image boots and serves fine and only D-Bus activation, passwd and su notice.
Effect on the appliance: no login1/hostname1/wpa_supplicant activation (the board's three error lines), no password change, no working su, no sudo setuid path, no ssh-keysign host-based auth, no fusermount3/ntfs-3g mounts for a non-root user.
Fix:/recipe/fix-ownership.sh records every setuid/setgid entry, chowns, restores the modes, and refuses a tree whose count changed; 3builddistro calls it instead of the bare chown -R. And container-build.sh asserts it on the packed sfs — a helper that lost its bit still looks present, so the tree is the wrong place to look.
Activity
os/v3/puppy: the pre-pack chown disarmed every setuid helper in the i…