[systemd-devel] mkosi: rpm using host machine's users/groups
Colin Guthrie
gmane at colin.guthr.ie
Thu Sep 16 09:52:31 UTC 2021
Colin Guthrie wrote on 01/09/2021 14:40:
> Colin Guthrie wrote on 01/09/2021 14:30:
>> rpm -qa | xargs rpm --setugids >/dev/null 2>&1
>
> Correction: --restore is actually needed over --setugids as although
> only the latter is strictly needed, it seems without the former the
> setuid bits on e.g. /usr/bin/su etc are also reset, so --restore is the
> required option to not break things in different ways! Sadly it's even
> slower than --setugids (takes almost twice as long)
>
To get a little more exposure on this issue, I've opened
https://github.com/systemd/mkosi/issues/805
Cheers
Col
More information about the systemd-devel
mailing list