You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
systemd-resolved.service: Couldn't add UID/GID reference to unit, proceeding without: Device or resource busy #9702
DynamicUser also takes care of setting up the runtime directory. Not
sure if we can safely set that to false.
In any case, systemd should gracefully deal with the fact that a system
user has been allocated statically.
DynamicUser also takes care of setting up the runtime directory. Not sure if we can safely set that to false.
This has since been fixed by #9586, which creates the users statically and sets permissions of the runtime directories accordingly, even though DynamicUser still ships as "yes" for these units...
It's safe to turn them off now, I'm doing that on Fedora due to another issue with SELinux compatibility...
@mbiebl So, one option would be to set DynamicUser=no on the downstream package... As long as you have #9586 backported, that should be a safe setting.
@filbranden why? Using DynamicUser=yes and a statically allocated system user is documented to work. It also turns on a couple of other flags (like PrivateTmp) which we actually want
Interestingly, this only happens for resolved. timesyncd and networkd (which also have a statically allocated system user and DynamicUser=yes) don't show this error message.
There's two log lines with systemd-resolved.service: User lookup succeeded: uid=102 gid=102 and only the second one has gid=102... Maybe it's going through a separate code path that triggers it? (There's one code path that assumes numeric ids and runs parse_uid...)
Activity
filbranden commentedon Jul 23, 2018
This has since been fixed by #9586, which creates the users statically and sets permissions of the runtime directories accordingly, even though DynamicUser still ships as "yes" for these units...
It's safe to turn them off now, I'm doing that on Fedora due to another issue with SELinux compatibility...
Cheers,
Filipe
mbiebl commentedon Jul 23, 2018
No, this issue is not fixed. With a statically allocated user this error message should not show up.
filbranden commentedon Jul 24, 2018
@mbiebl So, one option would be to set
DynamicUser=noon the downstream package... As long as you have #9586 backported, that should be a safe setting.mbiebl commentedon Jul 24, 2018
@filbranden why? Using
DynamicUser=yesand a statically allocated system user is documented to work. It also turns on a couple of other flags (like PrivateTmp) which we actually wantyuwata commentedon Jul 25, 2018
BTW, I have not seen this message. Is this shown only when selinux is enabled?
yuwata commentedon Jul 25, 2018
@ryutaroh-matsumoto The message is shown even when AppArmor is disabled?
mbiebl commentedon Jul 25, 2018
@yuwata I can reproduce the problem in a pristine Debian buster qemu VM. SELinux is not enabled, disabling AppArmor makes no difference
mbiebl commentedon Jul 25, 2018
Interestingly, this only happens for resolved. timesyncd and networkd (which also have a statically allocated system user and
DynamicUser=yes) don't show this error message.5 remaining items
yuwata commentedon Jul 26, 2018
@filbranden Hmm.
But still I cannot reproduce this...
yuwata commentedon Jul 26, 2018
gid_is_valid()just checks the value in a range, and not checks whether the group exists or not.filbranden commentedon Jul 26, 2018
Maybe try
daemon-reload?There's two log lines with
systemd-resolved.service: User lookup succeeded: uid=102 gid=102and only the second one hasgid=102... Maybe it's going through a separate code path that triggers it? (There's one code path that assumes numeric ids and runsparse_uid...)yuwata commentedon Jul 26, 2018
Oh, finally, I reproduce this. Adding
ExecStartPost=causes this.yuwata commentedon Jul 26, 2018
Hmm. So, the problem is that only UID is stored in the storage socket...
yuwata commentedon Jul 26, 2018
Fix is waiting in #9720.
core: fix gid when DynamicUser=yes with static User=
core: fix gid when DynamicUser=yes with static User=