]>
git.ipfire.org Git - thirdparty/systemd.git/log
Yu Watanabe [Sat, 18 Jan 2025 20:17:14 +0000 (05:17 +0900)]
integritysetup: use dispatch_verb()
Yu Watanabe [Sat, 18 Jan 2025 20:10:04 +0000 (05:10 +0900)]
veritysetup: use dispatch_verb()
Yu Watanabe [Sat, 18 Jan 2025 19:58:54 +0000 (04:58 +0900)]
cryptsetup: use dispatch_verb()
Yu Watanabe [Sat, 18 Jan 2025 19:42:31 +0000 (04:42 +0900)]
cryptsetup: drop doubled space
Yu Watanabe [Sat, 18 Jan 2025 19:42:20 +0000 (04:42 +0900)]
cryptsetup: use mangle_none() at one more place
Lennart Poettering [Mon, 20 Jan 2025 17:06:56 +0000 (18:06 +0100)]
udev: cleanups around sd_listen_fds() (#36030)
Fixes a bug introduced by
2f0aa9a80445ef18086260a60fad71920ad9486c .
In the offending commit, `sd_varlink_server_listen_auto()` is used. That
may add file descriptors of netlink socket for uevent and legacy control
socket varlink server. Then, udevd may fail to receive uevents.
Lennart Poettering [Mon, 20 Jan 2025 17:00:21 +0000 (18:00 +0100)]
tree-wide: several follow-ups for varlink methods (#36080)
Follow-ups for #35914.
Lennart Poettering [Mon, 20 Jan 2025 16:59:40 +0000 (17:59 +0100)]
udev-rules: introduce OPTIONS="dump" (#36069)
split out of #35968.
Daan De Meyer [Mon, 20 Jan 2025 13:02:29 +0000 (14:02 +0100)]
sbsign: Make sure output file respects umask (#36083)
Daan De Meyer [Sun, 19 Jan 2025 21:48:21 +0000 (22:48 +0100)]
sbsign: Make sure output file mode respects umask
Daan De Meyer [Mon, 20 Jan 2025 08:01:37 +0000 (09:01 +0100)]
sbsign: Make two debug logs into error logs
Yu Watanabe [Sun, 19 Jan 2025 15:08:07 +0000 (00:08 +0900)]
udev-varlink: add io.systemd.service.GetEnvironment
There is no reason to not support the method in udevd.
Follow-up for
c8127075ae22ad0f64d3072f400818f6e1a9ab48 .
Yu Watanabe [Sun, 19 Jan 2025 15:04:01 +0000 (00:04 +0900)]
tree-wide: rely on sd_varlink_dispatch() for validating zero-argument method calls, too
Follow-ups for
a7cc7038ac06d2c02cbaa5a749aa47b4f7cbe786 .
Yu Watanabe [Wed, 15 Jan 2025 20:27:34 +0000 (05:27 +0900)]
udev,network: drop unnecessary check for result of sd_listen_fds_with_names()
Yu Watanabe [Wed, 15 Jan 2025 19:47:20 +0000 (04:47 +0900)]
udev-manager: rework initialization of device monitor
Let's determine the socket for device monitor based on its name.
Yu Watanabe [Wed, 15 Jan 2025 20:13:57 +0000 (05:13 +0900)]
udev-ctrl: use -EBADF for invalid file descriptor
Yu Watanabe [Wed, 15 Jan 2025 20:07:41 +0000 (05:07 +0900)]
udev: split out legacy control socket handling to udev-manager-ctrl.c
Mostly no functional change, except for that now the socket for device
monitor is determined by its name.
Yu Watanabe [Sat, 18 Jan 2025 22:37:39 +0000 (07:37 +0900)]
capability-util: rename output argument of capability_gain_cap_setpcap()
Yu Watanabe [Sun, 19 Jan 2025 02:55:54 +0000 (11:55 +0900)]
core: use usec_add() at one more place
Follow-up for
8af1b296cb2cec8ddbb2cb47f4194269eb6cee2b .
Fixes CID#
1590317 .
Yu Watanabe [Sun, 19 Jan 2025 02:54:10 +0000 (11:54 +0900)]
Tweaks to generic "io.systemd.service" Varlink interface, and hook it up in all long-running Varlink daemons (#35914)
Yu Watanabe [Sun, 19 Jan 2025 02:51:54 +0000 (11:51 +0900)]
pid1,nspawn: enable usrquota on /tmp/ + /dev/shm/ (#36036)
Split out of #36010.
This simply enables the "usrquota" mount option on the two dirs if they
are backed by tmpfs.
#36010 contains a test that actually verifies that the mount option does
its thing.
Yu Watanabe [Sun, 19 Jan 2025 02:51:12 +0000 (11:51 +0900)]
tree-wide: coding style fixlets done by coccinelle (#36074)
Hendrik Wolff [Fri, 17 Jan 2025 16:59:08 +0000 (17:59 +0100)]
man/systemd.special: Add suspend-then-hibernate.target to sleep.target documentation
Yu Watanabe [Sat, 18 Jan 2025 23:28:14 +0000 (08:28 +0900)]
tree-wide: coding style fixlets done by coccinelle
Yu Watanabe [Sat, 18 Jan 2025 23:25:56 +0000 (08:25 +0900)]
coccinelle: add .gitignore for cache files
Lennart Poettering [Tue, 7 Jan 2025 22:44:41 +0000 (23:44 +0100)]
tree-wide: use log_level_is_valid() more
Lennart Poettering [Tue, 7 Jan 2025 22:37:31 +0000 (23:37 +0100)]
test: add superficial test for generic per-service varlink API
Lennart Poettering [Tue, 7 Jan 2025 14:21:53 +0000 (15:21 +0100)]
tree-wide: implement generic io.systemd.service Varlink interface in all long-running services
Given we have the generic interface, let's hook it up everywhere.
This doesnt bother with the Reload() call usually, since that's more
involved, but hooks up the other relevant functions where applicable.
Lennart Poettering [Tue, 7 Jan 2025 14:23:28 +0000 (15:23 +0100)]
varlink: add generic GetEnvironment() call to the Varlink "service" interface
It's just so useful being able to retrieve the current env block from
our services. Add a concept for that. It's really simple, and dumb.
In many ways it's like /proc/$PID/environ, but shows the actual
environ[] array visible to the app, not just some memory that was
originally used for the env block passed in, but might have been rearranged.
Lennart Poettering [Tue, 7 Jan 2025 13:45:06 +0000 (14:45 +0100)]
varlink: tweak introspection description for Reload()
Lennart Poettering [Tue, 7 Jan 2025 13:46:00 +0000 (14:46 +0100)]
varlink: drop redundant check
sd_varlink_dispatch() alredy validates all this, no need to check this
manually.
Lennart Poettering [Tue, 7 Jan 2025 13:48:22 +0000 (14:48 +0100)]
varlink: rely on sd_varlink_dispatch() for validating zero-argument method calls, too
Lennart Poettering [Tue, 7 Jan 2025 13:24:33 +0000 (14:24 +0100)]
json-util: fine tune json_dispatch_log_level()
Let's give the user control on how to handle JSON "null" assignments of
the log level. As one of three cases: as failure, as LOG_NULL (i.e. to
turn off logging) or as LOG_INFO (as our usual default log level).
Let's then use that in the generic SetLogLevel() call, so that callers
can use it to explicitly turn off logging in a service.
Note that this was (probably accidentally) already implemented, except
that the introspection enforcement blocked it. Let's clean this up and
make this officially a thing, since it's generally useful to turn off
logging I think.
Lennart Poettering [Tue, 14 Jan 2025 15:51:27 +0000 (16:51 +0100)]
nspawn: enable usrquota support on /tmp/ and /dev/shm/
Lennart Poettering [Tue, 14 Jan 2025 15:52:04 +0000 (16:52 +0100)]
units: enable usrquota support on /tmp/
Lennart Poettering [Tue, 14 Jan 2025 15:51:49 +0000 (16:51 +0100)]
pid1: enable usrquota support on /dev/shm
nl6720 [Sat, 18 Jan 2025 15:46:03 +0000 (17:46 +0200)]
man: replace "-" with "none" in cryptsetup commands and crypttab
`none` is more explicit and harder to overlook than `-` which in certain
contexts could be misunderstood to mean standard input.
Yu Watanabe [Sat, 18 Jan 2025 19:25:19 +0000 (04:25 +0900)]
Yu Watanabe [Sat, 18 Jan 2025 19:24:05 +0000 (04:24 +0900)]
process-util: fix typo
Also rebreak comment.
Follow-up for
03b89cf213d5d1a60601ff158a6366718461fa4b .
Yu Watanabe [Sat, 18 Jan 2025 19:22:11 +0000 (04:22 +0900)]
Yu Watanabe [Sat, 11 Jan 2025 08:00:17 +0000 (17:00 +0900)]
udev-rules: introduce OPTIONS="dump" token
Should be useful for debugging.
Yu Watanabe [Sat, 11 Jan 2025 06:56:27 +0000 (15:56 +0900)]
udev-dump: split out dump_event() from udevadm-test.c
Lennart Poettering [Tue, 14 Jan 2025 23:24:29 +0000 (00:24 +0100)]
pid1: when a password is requested during PAMName= processing, query it via the ask-password logic
Yu Watanabe [Fri, 17 Jan 2025 21:12:31 +0000 (06:12 +0900)]
udev: add --verbose option for 'udevadm test' and add more verbose logs (#36021)
split out of #35968.
Luca Boccassi [Fri, 17 Jan 2025 19:49:49 +0000 (19:49 +0000)]
tree-wide: switch various uses of mkdtemp() over to mkdtemp_malloc() (#36057)
Lennart Poettering [Mon, 18 Nov 2024 22:10:38 +0000 (23:10 +0100)]
escape: make 'bad' parameter optional
Treat a NULL bad parameter just like an empty one: do not escape any
additional characters except for the CC chars.
Mike Yuan [Thu, 16 Jan 2025 17:50:54 +0000 (18:50 +0100)]
meson: bump C std to gnu17
GCC 8.4 (our baseline) defaults to gnu17 already.
Yu Watanabe [Sun, 12 Jan 2025 20:18:25 +0000 (05:18 +0900)]
udev-rules: add trace logs for GOTO and parent conditions
Yu Watanabe [Wed, 15 Jan 2025 14:47:05 +0000 (23:47 +0900)]
udev-rules: update log messages
This also adds trace logs about token result, and skipping assignment
caused by final value already assigned.
Yu Watanabe [Wed, 15 Jan 2025 14:43:37 +0000 (23:43 +0900)]
udev-rules: ignore whole command result if it is too long and does not contain newline
Yu Watanabe [Wed, 15 Jan 2025 13:09:05 +0000 (22:09 +0900)]
udev-rules: introduce udev_replace_chars_and_log()
And logs about replacement only when trace logging is enabled.
Yu Watanabe [Sun, 12 Jan 2025 19:03:11 +0000 (04:03 +0900)]
udev-rules: add more trace logs for string match
Yu Watanabe [Sat, 11 Jan 2025 15:12:52 +0000 (00:12 +0900)]
udev-rules: logs result of format substitution
This also drops redundant token string in log message on truncation.
No functional change, but should improve debuggability.
Yu Watanabe [Sun, 12 Jan 2025 20:12:40 +0000 (05:12 +0900)]
udev-rules: show original token string in log_event_error() and friends
This also makes
- make many loggers refactored,
- log_event_error() and friends UdevEvent object,
- introduces log_event_trace().
No functional change, just refactoring and preparation for later
commits.
Yu Watanabe [Sun, 12 Jan 2025 20:09:15 +0000 (05:09 +0900)]
udevadm-test: introduce -v/--verbose option to show verbose log messages
Currently this does not show any extra log messages. In later commits,
more verbose log messages will be added.
Lennart Poettering [Mon, 18 Nov 2024 11:32:24 +0000 (12:32 +0100)]
hexdump: if size is SIZE_MAX, use strlen()
Similar how we do this as various places: if SIZE_MAX is specified as
size determine the size automatically via strlen().
Lennart Poettering [Fri, 17 Jan 2025 08:50:01 +0000 (09:50 +0100)]
nspawn: assorted coding style fixes
Lennart Poettering [Fri, 17 Jan 2025 08:49:17 +0000 (09:49 +0100)]
tree-wide: switch various uses of mkdtemp() over to mkdtemp_malloc()
Zbigniew Jędrzejewski-Szmek [Thu, 16 Jan 2025 21:26:30 +0000 (22:26 +0100)]
mkosi: update fedora commit reference
*
c7fecc18eb Skip test_sysusers_defined on upstream builds
*
f257050ddd Add a .editorconfig file
*
aa5546e9ed Add a few mkosi artifact directories to .gitignore
*
01e5bc1c93 Set SBAT in sd-boot when building on OBS
*
a7eec4d33d Run upstream integration test suite with Fedora CI
Zbigniew Jędrzejewski-Szmek [Thu, 16 Jan 2025 21:41:31 +0000 (22:41 +0100)]
Several fixlets for GCC warnings (#36051)
Replaces #36043 and #36039.
Lennart Poettering [Thu, 16 Jan 2025 21:40:07 +0000 (22:40 +0100)]
Two readme tweaks (#36053)
Zbigniew Jędrzejewski-Szmek [Thu, 16 Jan 2025 20:18:11 +0000 (21:18 +0100)]
README: add sgx to list of required groups
Follow-up for
c9c4899f4444d9586e541b5e72597a37f949433a .
Zbigniew Jędrzejewski-Szmek [Mon, 9 Dec 2024 19:24:34 +0000 (20:24 +0100)]
docs/HACKING: use 'run0' to indicate which commands require privileges
Lennart Poettering [Thu, 16 Jan 2025 20:58:30 +0000 (21:58 +0100)]
update TODO
Yu Watanabe [Thu, 16 Jan 2025 20:36:11 +0000 (05:36 +0900)]
README: update requirements
Miroslav Lichvar [Thu, 16 Jan 2025 14:34:47 +0000 (15:34 +0100)]
udev: set clock group for PTP and RTC devices
Add a new group for clock devices to enable applications like linuxptp
to open clocks without root privileges.
Yu Watanabe [Thu, 16 Jan 2025 19:27:36 +0000 (04:27 +0900)]
fundamental-macro: conditionalize several gcc warning pragmas
This fixes the following error:
In file included from ../src/basic/macro.h:13,
from ../src/basic/env-util.h:9,
from ../src/nss-systemd/nss-systemd.c:7:
../src/fundamental/macro-fundamental.h:61:9: error: option ‘-Wzero-as-null-pointer-constant’ is valid for C++/ObjC++ but not for C [-Werror=pragmas]
61 | _Pragma("GCC diagnostic ignored \"-Wzero-as-null-pointer-constant\"")
| ^~~~~~~
../src/nss-systemd/nss-systemd.c:106:1: note: in expansion of macro ‘DISABLE_WARNING_ZERO_AS_NULL_POINTER_CONSTANT’
106 | DISABLE_WARNING_ZERO_AS_NULL_POINTER_CONSTANT;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Lennart Poettering [Thu, 16 Jan 2025 12:46:18 +0000 (13:46 +0100)]
nss-systemd: work around -Werror=zero-as-null-pointer-constant issue with PTHREAD_MUTEX_INITIALIZER
This fixes builds on Fedora:
../src/nss-systemd/nss-systemd.c:105:18: error: zero as null pointer constant [-Werror=zero-as-null-pointer-constant]
105 | .mutex = PTHREAD_MUTEX_INITIALIZER,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../src/nss-systemd/nss-systemd.c:105:18: error: zero as null pointer constant [-Werror=zero-as-null-pointer-constant]
../src/nss-systemd/nss-systemd.c:109:18: error: zero as null pointer constant [-Werror=zero-as-null-pointer-constant]
109 | .mutex = PTHREAD_MUTEX_INITIALIZER,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../src/nss-systemd/nss-systemd.c:109:18: error: zero as null pointer constant [-Werror=zero-as-null-pointer-constant]
../src/nss-systemd/nss-systemd.c:113:18: error: zero as null pointer constant [-Werror=zero-as-null-pointer-constant]
113 | .mutex = PTHREAD_MUTEX_INITIALIZER,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../src/nss-systemd/nss-systemd.c:113:18: error: zero as null pointer constant [-Werror=zero-as-null-pointer-constant]
../src/nss-systemd/nss-systemd.c:117:18: error: zero as null pointer constant [-Werror=zero-as-null-pointer-constant]
117 | .mutex = PTHREAD_MUTEX_INITIALIZER,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../src/nss-systemd/nss-systemd.c:117:18: error: zero as null pointer constant [-Werror=zero-as-null-pointer-constant]
cc1: all warnings being treated as errors
Lennart Poettering [Thu, 16 Jan 2025 15:01:56 +0000 (16:01 +0100)]
fundamental: unify gcc warning pragmas at one place
This also drops HAVE_WSTRINGOP_TRUNCATION as the corresponding option
was introduced in GCC 8, and our baseline is GCC 8.4.
Luca Boccassi [Thu, 16 Jan 2025 13:47:14 +0000 (13:47 +0000)]
test: add link to Ubuntu autopkgtest status page in README
Known issues will be listed there by the team managing the infra
Lennart Poettering [Thu, 16 Jan 2025 12:48:48 +0000 (13:48 +0100)]
process-util: port pid_from_same_root_fs() to pidref + more (#35975)
Let's continue our move to PidRef.
Lennart Poettering [Wed, 15 Jan 2025 16:24:14 +0000 (17:24 +0100)]
process-util: slightly update comment in freeze()
Lennart Poettering [Mon, 13 Jan 2025 10:09:49 +0000 (11:09 +0100)]
process-util: port pid_from_same_root_fs() to pidref, and port three places over to it
Lennart Poettering [Mon, 13 Jan 2025 10:10:09 +0000 (11:10 +0100)]
test-process-util: don't run rest of test suite in forked off child
We left the test suite running in the child after forking off a
temporary child for testing. That's bad. fix it.
Lennart Poettering [Mon, 13 Jan 2025 10:04:19 +0000 (11:04 +0100)]
process-util: introduce new FORK_FREEZE flag for safe_fork()
Often we want to fork off a process that just hangs until we kill it,
let's add a simple flag to create one of this type, and use it at
various places.
Lennart Poettering [Mon, 13 Jan 2025 10:06:27 +0000 (11:06 +0100)]
pidref: various shortcuts to pidref_equal()
This adds some shortcuts to pidref_equal(), so that we don't have to
query the pidfs id if there's no need.
Lennart Poettering [Thu, 16 Jan 2025 10:37:17 +0000 (11:37 +0100)]
tree-wide: drop support for kernels without pidfd_open() and pidfd_send_signal() (#35971)
Lennart Poettering [Wed, 15 Jan 2025 22:18:39 +0000 (23:18 +0100)]
namespace-util: don't reset UID/GIDs in namespace_enter() unless we enter a userns
The reset of UID/GID only really makes sense if we enter a userns, hence
let#s restrict it to that.
Jan Macku [Wed, 15 Jan 2025 14:06:46 +0000 (15:06 +0100)]
shared/bus-util: add missing `set.h` include
```
In file included from ../src/shared/bus-get-properties.c:4:
../src/shared/bus-message-util.h:22:60: error: unknown type name ‘Set’
22 | int bus_message_append_string_set(sd_bus_message *m, const Set *s);
| ^~~
../src/shared/bus-get-properties.c: In function ‘bus_property_get_string_set’:
../src/shared/bus-get-properties.c:178:9: error: unknown type name ‘Set’
178 | Set **s = ASSERT_PTR(userdata);
| ^~~
```
follow-up to https://github.com/systemd/systemd/commit/
91080bc9733b5b2478bfc0ed58f6a7ae5da7e639
Duncan Overbruck [Thu, 16 Jan 2025 02:51:52 +0000 (03:51 +0100)]
shell-completions: add systemctl sleep
Lennart Poettering [Thu, 16 Jan 2025 06:48:21 +0000 (07:48 +0100)]
meson: enable -Wzero-as-null-pointer-constant (#36028)
Support for C added in gcc 15:
https://github.com/gcc-mirror/gcc/commit/
236c0829ee21a179c81b83f0d7f112ca23c47a4d
Lennart Poettering [Thu, 16 Jan 2025 06:47:08 +0000 (07:47 +0100)]
pid1: add GracefulOptions= setting to .mount units (#36023)
This new setting can be used to specify mount options that shall only be
added to the mount option string if the kernel supports them.
This shall be used for adding "usrquota" to tmp.mount without breaking
compat, but is generally be useful.
Mike Yuan [Wed, 15 Jan 2025 17:41:51 +0000 (18:41 +0100)]
meson: enable -Wzero-as-null-pointer-constant
Support for C added in gcc 15:
https://github.com/gcc-mirror/gcc/commit/
236c0829ee21a179c81b83f0d7f112ca23c47a4d
Mike Yuan [Wed, 15 Jan 2025 18:16:06 +0000 (19:16 +0100)]
tree-wide: remove unnecessary gcc >= 7 version check
Our baseline is gcc 8.4.
Luca Boccassi [Thu, 16 Jan 2025 00:42:23 +0000 (00:42 +0000)]
Revert "OBS: build Fedora/Debian/Ubuntu x86_64 packages on PRs"
This does not work yet, as we configure multiple git sources,
and the workflow service gets confused. We need to update one
(the actual code repo) and leave the recipe repos intact, but
this is not supported right now.
This reverts commit
01f05f0087204914e489057baf12317815325956 .
Luca Boccassi [Wed, 15 Jan 2025 23:45:32 +0000 (23:45 +0000)]
OBS: build Fedora/Debian/Ubuntu x86_64 packages on PRs
Start with a subset of what is built from main, can be expanded as
needed
hanjinpeng [Tue, 14 Jan 2025 17:10:06 +0000 (01:10 +0800)]
log: check isempty for object_field and extra_field
Lennart Poettering [Wed, 15 Jan 2025 20:05:59 +0000 (21:05 +0100)]
pty_open_peer() follow-up (#36027)
Lennart Poettering [Tue, 14 Jan 2025 15:49:52 +0000 (16:49 +0100)]
pid1: add GracefulOptions= setting to .mount units
This new setting can be used to specify mount options that shall only be
added to the mount option string if the kernel supports them.
This shall be used for adding "usrquota" to tmp.mount without breaking compat,
but is generally be useful.
Lennart Poettering [Wed, 15 Jan 2025 19:55:01 +0000 (20:55 +0100)]
pam-systemd: introduce "user-light" session type, and make "background-light" the default for system users (#35987)
This implements one idea from #34988: default to "user-light" and
"background-light" for system users, so that the service manager is only
pulled in for sessions that likely need them, i.e. not cron jobs or ftp
logins.
This is a compat break to some degree, but I think a worthy one. I
updated the NEWS file to explain this.
Yu Watanabe [Wed, 15 Jan 2025 16:29:04 +0000 (01:29 +0900)]
random-util: fix compilation error
Fixes the following error:
```
../src/basic/random-util.c: In function "fallback_random_bytes":
../src/basic/random-util.c:45:26: error: initializer-string for array of "char" is too long [-Werror=unterminated-string-initialization]
45 | .label = "systemd fallback random bytes v1",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
```
Lennart Poettering [Tue, 14 Jan 2025 17:28:27 +0000 (18:28 +0100)]
userdb: optionally parse numeric UIDs/GIDs where a username is expected
Let's move this logic from userdbctl into generic code so that we can
use it elsewhere.
Yu Watanabe [Wed, 15 Jan 2025 15:13:19 +0000 (00:13 +0900)]
analyze: fix assignment of object_field
Prompted by #36000.
jane400 [Wed, 15 Jan 2025 00:24:20 +0000 (01:24 +0100)]
curl-util: use curl_getdate instead of implementing http spec
Available since curl 7.1, which is less than the version required in
meson.build
https://curl.se/libcurl/c/curl_getdate.html
Mike Yuan [Wed, 15 Jan 2025 16:34:11 +0000 (17:34 +0100)]
terminal-util: drop unused open_terminal_in_namespace()
With our baseline including TIOCGPTPEER we now systematically
open pty peer through ioctl(), i.e. this sits unused
since
1d522f1a866f911980b5eaad87182bf58c58fa32 . Kill it!
Mike Yuan [Wed, 15 Jan 2025 16:27:25 +0000 (17:27 +0100)]
run: with TIOCGPTPEER there's no longer need to acquire pty peer through IPC
Mike Yuan [Wed, 15 Jan 2025 16:21:54 +0000 (17:21 +0100)]
run: correct log level for pty_open_peer() error
Everything around it logs loudly.
Lennart Poettering [Tue, 14 Jan 2025 11:10:49 +0000 (12:10 +0100)]
logind: improve log message we generate when a user logs in
Mention the session type and class both in the human readable string and
in the structured log.
Lennart Poettering [Tue, 14 Jan 2025 10:50:52 +0000 (11:50 +0100)]
run0: allow explicit control of service manager activation for run0 sessions
This adds a new --lightweight=yes/no switch which allows controlling
whether the invoked service will have the service manager around or not.
Moreover, this changes that if the target user is root it will now
support to the lightweight mode, i.e. run0 towards root will no longer
pull in the service manager (a real tty login via getty still will
though!).
My thinking here is that quickly raising privileges via run0 probably
shouldn't be considered a proper login but just something short lived,
temporary for a single command or similar.
Lennart Poettering [Tue, 14 Jan 2025 10:48:52 +0000 (11:48 +0100)]
run: fire sd_notify("READY=1") when in service mode and the unit is properly started
Let's make sure systemd-run itself works nicely as a service that tells
the caller when it is ready.
Note that we don't fire the same message in scope mode, since in that
case want to leave sd_notify() handling to the invoked process.