Currently, this user is hardcoded to uid 65_534 (the "default" nobody UID) in source/boulder/stages/package.d
However, this breaks on Fedora because Fedora uses uid 65_534 for the separate nfsnobody user (likely for security purposes), whereas the "normal" nobody user has uid 99.
The suggested approach is to use (a variant of) getpwent and then cache the resulting uid in a Thread Global immutable __gshared unprivilegedUser variable in the boulder main() function.
Currently, this user is hardcoded to uid 65_534 (the "default"
nobody
UID) insource/boulder/stages/package.d
However, this breaks on Fedora because Fedora uses uid 65_534 for the separate
nfsnobody
user (likely for security purposes), whereas the "normal"nobody
user has uid 99.The suggested approach is to use (a variant of)
getpwent
and then cache the resulting uid in a Thread Globalimmutable __gshared unprivilegedUser
variable in the bouldermain()
function.