util-linux-2.35.2-r2 file ownerships are incorrect on some archs (armv7, armhf, x86) for edge release
Impact:
- Can't properly/fully boot if util-linux is in /etc/apk/world on affected archs.
- Can't mount anything unless
busybox mount
is used explicitly
Symptoms:
- It was brought to my attention some of our RPis started to fail providing some functions last week. I don't know how long this has been in effect. Package/file timestamps suggest it should've been almost 2 months now, but I can't confirm if this is some accidental rebuild glitch (I'm not aware of how edge/ is being nightly-built). Apparently modloop stopped being mounted due to mount complaining about insufficient permissions.
Reason:
- Upon closer inspection I noticed /bin/mount is 1000:1000 and since it's suid binary it would run mount() syscall as an unprivileged user.
$ parallel --lb --tag 'curl -sL http://dl-cdn.alpinelinux.org/alpine/edge/main/{1}/util-linux-2.35.2-r2.apk | tar tzvl 2>/dev/null | grep mount' ::: aarch64 armhf armv7 mips64 ppc64le s390x x86 x86_64
aarch64 -rwsr-xr-x root/root 46912 2020-06-05 18:59 bin/mount
aarch64 -rwxr-xr-x root/root 14136 2020-06-05 18:59 bin/mountpoint
aarch64 -rwsr-xr-x root/root 30520 2020-06-05 18:59 bin/umount
armv7 -rwsr-xr-x buildozer/buildozer 34120 2020-06-05 18:59 bin/mount
armv7 -rwxr-xr-x buildozer/buildozer 9488 2020-06-05 18:59 bin/mountpoint
armv7 -rwsr-xr-x buildozer/buildozer 21776 2020-06-05 18:59 bin/umount
armhf -rwsr-xr-x buildozer/buildozer 38216 2020-06-05 18:59 bin/mount
armhf -rwxr-xr-x buildozer/buildozer 9488 2020-06-05 18:59 bin/mountpoint
armhf -rwsr-xr-x buildozer/buildozer 21776 2020-06-05 18:59 bin/umount
mips64 -rwsr-xr-x root/root 54872 2020-06-05 18:59 bin/mount
mips64 -rwxr-xr-x root/root 15056 2020-06-05 18:59 bin/mountpoint
mips64 -rwsr-xr-x root/root 32560 2020-06-05 18:59 bin/umount
x86 -rwsr-xr-x buildozer/buildozer 42240 2020-06-05 18:59 bin/mount
x86 -rwxr-xr-x buildozer/buildozer 13564 2020-06-05 18:59 bin/mountpoint
x86 -rwsr-xr-x buildozer/buildozer 29948 2020-06-05 18:59 bin/umount
s390x -rwsr-xr-x root/root 51000 2020-06-05 18:59 bin/mount
s390x -rwxr-xr-x root/root 14128 2020-06-05 18:59 bin/mountpoint
s390x -rwsr-xr-x root/root 30512 2020-06-05 18:59 bin/umount
ppc64le -rwsr-xr-x root/root 67480 2020-06-05 18:59 bin/mount
ppc64le -rwxr-xr-x root/root 67376 2020-06-05 18:59 bin/mountpoint
ppc64le -rwsr-xr-x root/root 67376 2020-06-05 18:59 bin/umount
x86_64 -rwsr-xr-x root/root 42872 2020-06-05 18:59 bin/mount
x86_64 -rwxr-xr-x root/root 14200 2020-06-05 18:59 bin/mountpoint
x86_64 -rwsr-xr-x root/root 34680 2020-06-05 18:59 bin/umount
Looks like only some of the archs got a broken package. I guess these would need to be re-generated.
The -r0 package from 3.12 is fine.