[systemd-devel] mkosi: rpm using host machine's users/groups

Colin Guthrie gmane at colin.guthr.ie
Wed Sep 1 13:40:37 UTC 2021


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)

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
   Tribalogic Limited http://www.tribalogic.net/
Open Source:
   Mageia Contributor http://www.mageia.org/
   PulseAudio Hacker http://www.pulseaudio.org/
   Trac Hacker http://trac.edgewall.org/



More information about the systemd-devel mailing list