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

2021-09-16 Thread Colin Guthrie
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.

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

2021-09-01 Thread Colin Guthrie
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

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

2021-09-01 Thread Colin Guthrie
Hi, So I didn't appreciate this before, but it seems a long standing RPM issue where, when using --root the packages will be installed with the uid/gid mappings from the host machine rather than the passwd/group files from the root. This makes for a problem using mkosi as it doesn't make