New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ABRT in dynamic_user_acquire() #14733
Comments
Please provide the following.
|
yuwata
added
bug 🐛
Programming errors, that need preferential fixing
needs-reporter-feedback ❓
There's an unanswered question, the reporter needs to answer
pid1
labels
Feb 3, 2020
# /lib/systemd/system/fwupd-refresh.service
[Unit]
Description=Refresh fwupd metadata and update motd
Documentation=man:fwupdmgr(1)
After=network.target network-online.target systemd-networkd.service NetworkManager.service connman.service
[Service]
Type=oneshot
CacheDirectory=fwupdmgr
StandardError=null
DynamicUser=yes
RestrictAddressFamilies=AF_NETLINK AF_UNIX AF_INET AF_INET6
SystemCallFilter=~@mount
ProtectKernelModules=yes
ProtectControlGroups=yes
RestrictRealtime=yes
SuccessExitStatus=2
ExecStart=@bindir@/fwupdmgr refresh --no-metadata-check |
yuwata
removed
the
needs-reporter-feedback ❓
There's an unanswered question, the reporter needs to answer
label
Feb 3, 2020
Thanks. Confirmed. Minimum reproducer is
|
yuwata
added a commit
to yuwata/systemd
that referenced
this issue
Feb 3, 2020
When unit is reloaded, and the reloaded unit has bad-setting, then unit_patch_contexts() is not called and exec_context::user and group may not be configured. A minimum reproducer for the case is: - step 1. $ sudo systemctl edit --full hoge.service [Service] oneshot ExecStart=sleep 1h - step 2. $ sudo systemctl start hoge.service - step 3. $ sudo systemctl edit --full hoge.service [Service] Type=oneshot ExecStart=@bindir@/sleep 1h DynamicUser=yes Then pid1 crashed. Fixes systemd#14733.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A Debian package (fwupd 1.3.7-1) installs a broken unit file, /lib/systemd/system/fwupd-refresh.service, that contains
ExecStart=@bindir@/fwupdmgr refresh --no-metadata-check
. When updating to this package version systemd crashed:I have the core file, here is the bt:
Unfortunately I wasn't able to reproduce this, now systemd just says "Unit configuration has fatal error, unit will not be started.", even when updating the package to this version again.
systemd from Debian, 244.1-1. Initially filed at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=950409
The text was updated successfully, but these errors were encountered: