Discussion:
Bug#1073835: systemd: new run0 utility fails due to missing dependency
(too old to reply)
John Shaft
2024-06-19 15:00:01 UTC
Permalink
Package: systemd
Version: 256-1
Severity: normal

Dear Maintainer,

systemd 256 introduced a 'run0' utility intended to serve a similar purpose as sudo(8)

run0(1) manpage states:

'Authentication takes place via polkit[1], thus isolating the authentication prompt from the terminal (if possible).'

As of now, polkitd is only a suggestion and not yet a dependency for systemd so chances are it is not installed. Trying to use run0 thus fails, eg:

$ run0 ls /tmp
Failed to start transient service unit: Access denied

(note that run0 error message could be improved, but it is an upstream issue)

-- Package-specific info:

-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.8.12-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages systemd depends on:
ii libacl1 2.3.2-2
ii libapparmor1 3.0.13-2
ii libaudit1 1:3.1.2-4
ii libblkid1 2.40.1-8.1
ii libc6 2.38-13
ii libcap2 1:2.66-5
ii libcryptsetup12 2:2.7.2-2
ii libfdisk1 2.40.1-8.1
ii libmount1 2.40.1-8.1
ii libpam0g 1.5.3-7
ii libseccomp2 2.5.5-1
ii libselinux1 3.5-2+b2
ii libssl3t64 3.2.1-3
ii libsystemd-shared 256-1
ii libsystemd0 256-1
ii mount 2.40.1-8.1

Versions of packages systemd recommends:
ii dbus [default-dbus-system-bus] 1.14.10-4+b1
ii libzstd1 1.5.5+dfsg2-2
ii ntpsec [time-daemon] 1.2.3+dfsg1-3

Versions of packages systemd suggests:
ii libgcrypt20 1.10.3-3
ii libidn2-0 2.3.7-2
ii liblz4-1 1.9.4-2
ii liblzma5 5.6.1+really5.4.5-1
pn libtss2-rc0t64 <none>
pn libtss2-tcti-device0 <none>
pn polkitd <none>
pn systemd-boot <none>
pn systemd-container <none>
pn systemd-homed <none>
pn systemd-resolved <none>
pn systemd-userdbd <none>

Versions of packages systemd is related to:
ii dbus-user-session 1.14.10-4+b1
pn dracut <none>
ii initramfs-tools 0.142
ii libnss-systemd 256-1
ii libpam-systemd 256-1
ii udev 256-1

-- no debconf information
Luca Boccassi
2024-06-23 08:40:01 UTC
Permalink
Control: tags -1 wontfix
Control: close -1
Post by John Shaft
Package: systemd
Version: 256-1
Severity: normal
Dear Maintainer,
systemd 256 introduced a 'run0' utility intended to serve a similar purpose as sudo(8)
'Authentication takes place via polkit[1], thus isolating the
authentication prompt from the terminal (if possible).'
Post by John Shaft
As of now, polkitd is only a suggestion and not yet a dependency for
systemd so chances are it is not installed. Trying to use run0 thus
fails, eg:

Yes this is expected and intended, as we want to prioritize allowing to
build minimal images, so a lot of "extra" functionality is enabled but
won't work until recommends and suggests are installed. If you want to
make sure all features are usable, you can use apt install --install-
suggests and that will bring in everything.
Post by John Shaft
$ run0 ls /tmp
Failed to start transient service unit: Access denied
(note that run0 error message could be improved, but it is an
upstream issue)

Please file an issue upstream, or better yet, a PR.
--
Kind regards,
Luca Boccassi
Loading...