Debian Codegraph @

NEWS

raw
1 systemd System and Service Manager
2
3 CHANGES WITH 261 in spe:
4
5 Announcements of Future Feature Removals and Incompatible Changes:
6
7 * systemd-logind's integration with the UAPI.1 Boot Loader
8 Specification (which allows the systemctl reboot --boot-loader-entry=
9 switch to work) so far has supported a special directory
10 /run/boot-loader-entries/ which allowed defining boot loader entries
11 outside of the ESP/XBOOTLDR partition for compatibility with legacy
12 systems that do not natively implement UAPI.1. However, it appears
13 that (to our knowledge) it is not actually being used by any project
14 (quite unlike UAPI.1 itself, which found adoption far beyond
15 systemd), and its implementation is incomplete. With the future 262
16 release we intend to remove support for /run/boot-loader-entries/ and
17 related interfaces, in order to simplify our codebase. Support for
18 UAPI.1 is – of course – kept in place.
19
20 * The experimental "systemd-sysupdated" D-Bus API is going to be
21 removed in the next release. The plan is that in its place
22 clients should directly talk to systemd-sysupdate (i.e. the backend
23 of "systemd-sysupdated") via Varlink IPC. The "updatectl" tool will
24 be reworked along these lines.
25
26 Feature Removals and Incompatible Changes:
27
28 * systemd-nspawn's --user= option has been renamed to --uid=. The -u
29 short option continues to work. The old --user NAME and --user=NAME
30 forms (with and without "=") are still accepted but deprecated; a
31 warning is emitted suggesting --uid=NAME. The --user option (without
32 an argument) has been repurposed as a standalone switch to select
33 the user service manager scope, matching --system.
34
35 * Several configuration fields in the io.systemd.Unit varlink interface
36 that were previously exposed as plain strings have been converted to
37 proper enum types. This adds type safety and IDL-level validation.
38 The output wire format now uses underscores instead of dashes and
39 plus signs in enum values (e.g. "tty-force" becomes "tty_force",
40 "kmsg+console" becomes "kmsg_console"). The previous use of plain
41 strings for these well-defined enumerations is considered a bug.
42 Affected enum types: ExecInputType, ExecOutputType, ProtectHome,
43 CGroupController, CollectMode, EmergencyAction, JobMode.
44
45 * It was discovered that some of the events systemd-stub measures to
46 the TPM were not also measured to the hardware CC registers (e.g.
47 Intel TDX RTMRs) via EFI_CC_MEASUREMENT_PROTOCOL. In particular,
48 devicetree, initrd, ucode addons and the UKI profile were only
49 measured to the TPM. The missing measurements for CC have now been
50 added; however, this changes the expected register values. This
51 may need to be reflected in the attestation environments which use
52 hardware CC registers (in place of TPM quotes).
53
54 * systemd-nspawn gained a new --restrict-address-families= option (and
55 corresponding RestrictAddressFamilies= setting in .nspawn files) to
56 restrict which socket address families may be used in the container.
57 This is currently opt-in. In a future version, the default will be
58 changed to restrict socket address families to AF_INET, AF_INET6 and
59 AF_UNIX.
60
61 * A new service unit "systemd-pcrosseparator.service" will now measure
62 a new separator measurement during early userspace into PCRs 0-7, 9,
63 12-14, in order to isolate firmware/pre-boot measurements from host
64 measurements. This is a safety concept to protect firmware
65 measurements on systems where the regular firmware separator
66 measurement is missing. It's also useful in environments where a
67 software TPM is used, i.e. where TPM functionality is only available
68 starting with the OS, but not before. Note that this new measurement
69 has an effect on all indicated PCRs, hence might affect relevant TPM
70 policies.
71
72 * Support for udev's old database version 0 has been removed. This
73 effectively means live upgrades from versions older than v247 are not
74 supported anymore.
75
76 * systemd-networkd gained a new sd-dhcp-relay backend for DHCP relay
77 agent support. As part of this change, the following [DHCPServer]
78 settings are deprecated:
79 - BindToInterface=
80 - RelayTarget=
81 - RelayAgentCircuitId=
82 - RelayAgentRemoteId=
83 They are replaced by DHCPRelay= in [Network], along with new
84 [DHCPRelay] section settings in .network files:
85 - AgentAddress=
86 - GatewayAddress=
87 - CircuitId=
88 - VirtualSubnetSelection=
89 - ExtraOption=
90 - InterfacePriority=
91 and in networkd.conf:
92 - ServerAddress=
93 - OverrideServerIdentifier=
94 - RemoteId=
95 - ExtraOption=
96
97 * Required version of musl (when built with -Dlibc=musl) has been raised
98 from 1.2.5 to 1.2.6.
99
100 * libsystemd is no longer guaranteed to be linked against libm. Whether
101 the dependency is recorded depends on whether the compiler chooses to
102 emit builtins for all calls to libm symbols. Consumers that rely on
103 libsystemd transitively pulling in libm should link against it
104 themselves. There is at least one known case that is still unsolved:
105 rsyslog crashes on launch due to libfastjson using libm without linking
106 to it, which was previously masked because libsystemd linked to it. If
107 forcing a link against libm is required as a workaround,
108 '-Wl,--push-state,--no-as-needed,-lm,--pop-state' can be added to the
109 link flags, or passed to systemd's meson build options via
110 '-Dc_link_args=-Wl,--push-state,--no-as-needed,-lm,--pop-state'.
111
112 Changes in the system and service manager:
113
114 * PID1 now supports the kernel's Live Update Orchestration (LUO) /
115 Kexec Handover (KHO) systems when present and enabled. System units'
116 FD Stores are now preserved through kexec, and units will get back
117 stashed (named) file descriptors after kexec, if the kernel supports
118 the FD type (at the time of writing only memfds are supported).
119 Units can also create their own LUO Sessions by talking to the kernel
120 directly, and store them in their FD Stores, and those will also be
121 preserved and passed down to the unit after kexec. Units must set
122 'FileDescriptorStorePreserve=yes' in order to enable this feature.
123
124 * User session managers now support persisting user units' FD Stores
125 by receiving FDs via the notify socket, and passing them down via
126 $LISTEN_FDS when the user session is restarted, if the
127 'FileDescriptorStorePreserve=yes' and 'FileDescriptorStoreMax='
128 options are set in the [email protected] unit. Combined with the LUO
129 support, this lets user units persist state (e.g.: memfds) across
130 not only user session restarts, but also kexec reboots.
131
132 * The manager exposes a new ReloadCount property on its D-Bus and
133 Varlink interfaces (org.freedesktop.systemd1.Manager and
134 io.systemd.Manager respectively). The counter increments after
135 each successfully completed daemon-reload, and it is reset on
136 daemon-reexec.
137
138 * A new unit setting CPUSetPartition= has been added that allows
139 configuring the cpuset cgroup partition type (e.g. "root",
140 "isolated", "member") for a service.
141
142 * A new RestrictFileSystemAccess= setting has been added that uses a
143 BPF LSM program to restrict execution to only binaries that are
144 stored on a signed and verified dm-verity-protected filesystem.
145
146 * The io.systemd.Unit.StartTransient() Varlink method has been added
147 for invoking service units transiently.
148
149 * A new set of Varlink methods has been added to the
150 io.systemd.Manager interface to request system shutdown:
151 PowerOff(), Reboot(), SoftReboot(), Halt() and Kexec(). These
152 complement the existing D-Bus interfaces.
153
154 * The io.systemd.Manager.ListUnitsByNames() Varlink method allows
155 querying multiple units in one call and supports a result limit.
156
157 * A new DefaultMemoryZSwapWriteback= manager setting has been added
158 that provides a system-wide default for the existing
159 MemoryZSwapWriteback= per-unit setting.
160
161 * A new io.systemd.Job Varlink interface exposes information about
162 pending and running manager jobs.
163
164 * The service manager knows two new global knobs
165 EventLoopRateLimitIntervalSec=/EventLoopRateLimitBurst= to configure
166 PID1's event loop ratelimit logic. This permits fine-tuning the
167 safety logic in PID 1 that slows down operation in case PID 1 starts
168 to busy loop.
169
170 * The service manager gained new per-unit settings
171 CPUPressureWatch=/CPUPressureThresholdSec=/IOPressureWatch=/IOPressureThresholdSec=
172 which enable services to get generic notifications on CPU or IO
173 pressure events.
174
175 * A new global service manager knob MinimumUptimeSec= has been added
176 that defines a minimum uptime for the system. It defaults to 15s. If
177 the system is shut down more quickly than the specified time a delay
178 is inserted in the last part of shutdown, in order to avoid tight
179 boot loops.
180
181 * The FileDescriptorStorePreserve= unit setting can now take a new option
182 'on-success', which preserves the FD Store when the unit is stopped,
183 but only if it exited successfully, and discards it otherwise.
184
185 * The service manager now implements a new Varlink interface
186 io.systemd.Job for listing/cancelling any queued jobs.
187
188 * A new knob ConditionFraction= enables scheduling of units on a
189 specified fraction of the fleet of systems only. It takes a "tag"
190 string and a percentage. The system's machine ID is hashed together
191 with the tag into a 32bit integer, and the result is compared with
192 the percentage of 2^32. If below, the condition is true, otherwise
193 false. This allows staged rollout of services: if multiple systems
194 are provisioned with the same units only roughly the specified
195 percentage of systems will run the service, the rest will not.
196
197 * A new knob ConditionMachineTag= allows conditioning a unit based on
198 per-mach "tag" strings, as configured in /etc/machine-info, see below.
199
200 New IMDS (Cloud "Instance Metadata Service") Subsystem:
201
202 * The hardware database now contains a new database hwdb.d/40-imds.hwdb
203 that recognizes various established public clouds by their SMBIOS
204 information, and provides information on how to reach local IMDS
205 functionality on the node. Currently, Amazon EC2, Microsoft Azure,
206 Google Compute Engine, Hetzner, Oracle Cloud, Scaleway, Tencent
207 Cloud, and Alibaba ECS are recognized.
208
209 * An IMDS subsystem has been added. Specifically, there's now
210 systemd-imdsd which provides a local Varlink IPC API that makes IMDS
211 services accessible to local programs. It provides both a relatively
212 low-level interface for querying arbitrary fields, and a higher-level
213 interface for querying certain well-known keys in a generic way
214 (which maps to various cloud-specific keys via the hwdb). The service
215 can be pulled into the boot transaction automatically if a supported
216 cloud is recognized via the systemd-imds-generator
217 functionality. This permits implementation of truly generic images
218 that can interact with IMDS if available, but operate without if
219 not. A tool systemd-imds acts as a client to systemd-imdsd and
220 imports various IMDS-provided fields into local system credentials,
221 which can then be consumed by later services. The acquired IMDS data
222 is measured before being imported.
223
224 * Networking to cloud IMDS services may be locked down for recognized
225 clouds. This is recommended for secure installations, but typically
226 conflicts with traditional IMDS clients such as cloud-init, which
227 require direct IMDS access. The new meson option "-Dimds-network="
228 can be used to change the default mode to "locked" at build time.
229
230 Changes in the TPM Subsystem:
231
232 * A new ConditionSecurity=measured-os unit condition has been added
233 that checks whether the system was booted with measured-boot
234 semantics (i.e. via systemd-stub or an equivalent verified-boot
235 mechanism that measured the OS to the TPM). This is very similar to
236 the pre-existing ConditionSecurity=measured-uki, but is more
237 generic, as it can also cover environments where the firmware/UKI does
238 not have a TPM but the OS has (which is for example the case if the
239 TPM is implemented purely in software).
240
241 * A new service systemd-tpm2-swtpm.service has been added that can run
242 the IBM "swtpm" as a software TPM, for use as an (optional) automatic
243 fallback for systems that lack a physical TPM but where TPM
244 functionality should be made available nonetheless. (This
245 functionality must be enabled via systemd.tpm2_software_fallback= on
246 the kernel command line.) Of course a software TPM running as part of
247 a system's userspace does not provide a security posture in any way
248 equivalent to that of a discrete hardware TPM, but in various
249 use cases it might still be preferable to having no TPM functionality
250 at all. The software TPM uses a key derived from the new "boot
251 secret" functionality for encryption, and stores its state in the
252 disk's ESP. This provides at least some protection, and reasonable
253 persistency from initrd on.
254
255 * systemd-boot and systemd-stub will now measure SMBIOS Type 1, Type 2
256 and Type 11 in PCR 1, since some firmwares do not measure them, even
257 though they are supposed to.
258
259 * systemd-tpm2-setup.service will now allocate NvPCRs in an orer
260 configurable via the "priority" field of their defining JSON object.
261 As NV index space is very constrained, it's essential to allocate them
262 in the order of relevance, so that the least relevant NvPCRs are
263 dropped, and the most relevant NvPCRs kept.
264
265 Changes in systemd-tmpfiles and systemd-sysusers:
266
267 * A new tmpfiles.d/root.conf has been added that sets permissions on
268 the root directory (/) to 0555. This is particularly useful in
269 environments where the root file system is created fresh and empty
270 with only /usr/ mounted in – but it is also useful as a general
271 safety net.
272
273 * systemd-tmpfiles gained a new --inline switch which permits passing
274 tmpfiles.d/ directives directly on the command line rather than via a
275 configuration file or STDIN. This is similar to the switch of the
276 same name to systemd-sysusers.
277
278 * New directive types 'k/K' have been added to systemd-tmpfiles for
279 setting file capabilities.
280
281 Changes in systemd-sysext/systemd-confext:
282
283 * New initrd services systemd-sysext-sysroot.service and
284 systemd-confext-sysroot.service are provided. These services are
285 used to merge system and configuration extensions for the main
286 system from the initrd. This overcomes the limitation that system
287 and configuration extensions merged from the main system itself
288 cannot be used to modify the resources which are used in the
289 early boot.
290
291 * A kernel command line kill switch that entirely disables
292 systemd-sysext and systemd-confext merging is now honoured.
293
294 Changes in systemd-networkd and networkctl:
295
296 * A new 'networkctl dhcp-lease INTERFACE' command has been added to
297 dump acquired DHCP leases. This may be useful for inspecting the
298 DHCP options provided by the server.
299
300 * systemd-networkd implements the io.systemd.service.Reload() Varlink
301 method, and exposes new io.systemd.Network.Link.Describe(),
302 Reconfigure(), Renew() and ForceRenew() methods. 'networkctl' now
303 uses these Varlink methods in preference to the legacy D-Bus API
304 where possible.
305
306 * A new IPv4SrcValidMark= setting has been added to .network files.
307
308 * The VRF.Table= setting now accepts symbolic route table names (as
309 configured via RouteTable= in networkd.conf) in addition to
310 numeric table IDs.
311
312 * New DHCPServerPoolSize= and DHCPServerPoolOffset= properties have
313 been added to the D-Bus interface, mirroring the existing
314 configuration file options.
315
316 * The DHCPv4 server gained support for serving the SIP server option
317 (RFC 3361) to clients.
318
319 * The Varlink Describe() output now reports interface bit rates.
320
321 * .link files gained knobs to control IRQ affinity.
322
323 Changes in systemd-resolved:
324
325 * systemd-resolved will now read additional DNS resource record
326 definitions to resolve locally from JSON drop-in files in
327 {/etc,/run,/usr/local/lib,/usr/lib}/systemd/resolve/static.d/. This
328 is a generalization of /etc/hosts, but is intended to be
329 more flexible (i.e. other RR types than just A/AAAA + PTR can be
330 configured, even if right now not too many are hooked up yet) and
331 follow the usual drop-in pattern that avoids ownership conflicts.
332
333 * New 'DNSCacheSize=', 'MulticastDNSCacheSize=' and 'LLMNRCacheSize='
334 settings are now supported to allow overriding the default
335 per-interface cache sizes for the respective protocols.
336
337 * Insecure DNSSEC answers using unsupported signature or digest
338 algorithms are now correctly accepted as insecure, rather than
339 being rejected outright.
340
341 * When StaleRetentionSec= is set, the resolver no longer flushes its
342 cache on server switch or re-probe, keeping potentially useful
343 stale entries available.
344
345 * /etc/hosts entries are now re-read on reload (SIGHUP / D-Bus
346 Reload() / Varlink Reload()).
347
348 Changes in systemd-udevd, hwdb and udev rules:
349
350 * The DMI ID device (/sys/class/dmi/id) is now tagged so that
351 early-boot consumers can reliably order against it.
352
353 * udev's "blkid" builtin will now set a new udev property
354 ID_PART_GPT_AUTO_ROOT_DISK_NEEDS_LOOP=1 on boot block devices where a
355 GPT partition table is detected for a sector size different from the
356 native sector size of the device. (This typically happens if a Hybrid
357 ISO9660/GPT disk image is booted as CDROM, where the native sector
358 size is 2048 but the GPT header uses a 512-byte sector size). If this
359 happens then a [email protected] instance is automatically pulled
360 in via a udev rule that generates a loopback block device from the
361 discovered block device, exposing the device with the corrected
362 sector size. Or in other words: booting a fully valid GPT disk image
363 on a block device with a non-matching sector size will now just work,
364 and automatically result in a matching loopback device popping
365 up. The new property is also set if the boot block device carries a
366 GPT header (i.e. is partitioned) but the block device has partition
367 table processing turned off.
368
369 * Persistent network interface naming has been extended to auxiliary
370 sub-function (SF) network devices (such as mlx5_core SFs), using an
371 "S<sfnum>" suffix appended to the parent PCI function's name (e.g.
372 "enp193s0f0S88").
373
374 Changes in systemd-boot, systemd-stub, bootctl, ukify:
375
376 * systemd-stub will now maintain a "boot secret" and pass it to the OS
377 in the /.extra/boot-secret file in the initrd. This boot secret is
378 derived from a persistent EFI variable that is not accessible by the
379 OS (i.e. only accessible in the UEFI environment). The EFI variable
380 is automatically initialized to a randomly generated value if not set
381 yet. It is intended to be used for certain fallback codepaths in case
382 a local TPM is not available, but a UEFI environment is. If a TPM is
383 available, it's highly recommended to use it as a better source of
384 per-system key material, but in the absence of a TPM it often might be an
385 acceptable fallback for local, persistent key material. Applications
386 should never use the key as-is, but derive their own key from it,
387 through hashing.
388
389 * systemd-stub now auto-detects the active EFI serial console device
390 and appends an appropriate "console=" parameter to the kernel command
391 line, simplifying serial-console UKI deployments: the serial console
392 output configuration of UEFI is now automatically propagated to
393 Linux.
394
395 * systemd-stub will now query the firmware's keyboard mapping and pass
396 it to the OS via the LoaderKeyboardLayout EFI variable. This variable
397 is then used by systemd-vconsole-setup as a fallback keyboard mapping
398 if no mapping is explicitly configured otherwise. On modern laptops
399 this means there's a good chance that the keyboard mapping of the
400 built-in keyboard will be automatically detected and set up without
401 requiring user intervention.
402
403 * A new "extra" Type #1 Boot Loader Specification stanza is parsed and
404 used to deliver additional resources to a UKI without modifying its
405 contents. This may be used to pass confext DDIs, sysext DDIs or
406 encrypted credentials to a UKI kernel. The generic "addon" handling
407 has been generalized so that all UKI sidecar artifacts (initrds,
408 command-line overlays, devicetree blobs, etc.) follow the same lookup
409 rules.
410
411 * systemd-boot will never auto-boot a non-default UKI profile,
412 preventing accidental boots into alternative profiles after a
413 single timeout expiry.
414
415 * systemd-stub: El Torito CDROM boot catalog partition UUIDs are now
416 discovered and exposed via the same mechanism as GPT/MBR partitions,
417 enabling unified ISO image dissection.
418
419 * systemd-stub will now incorporate any initrd already configured via
420 the LINUX_INITRD_MEDIA_GUID UEFI device into the set of initrds it
421 passes to the kernel (previously it would fail if one was already
422 set). This means systemd-stub now operates in a purely incremental
423 mode regarding initrds passed in from earlier boot steps.
424
425 * bootctl gained a new '--print-efi-architecture' option that prints
426 the EFI architecture identifier of the running system, which is
427 useful from scripts.
428
429 * bootctl gained a new 'link' verb (with a matching Varlink API) that
430 installs a Type #1 boot loader entry based on a UKI in combination
431 with confext DDIs, sysext DDIs or system credentials.
432
433 * bootctl's 'unlink' verb is now also accessible via a Varlink API.
434
435 * bootctl now stores the existing systemd-boot binary as a fallback when
436 installing a new version, and installs a fallback UEFI boot entry, to
437 allow a system to recover from a non-working version being installed.
438
439 Changes in systemd-repart:
440
441 * A new EncryptKDF= setting controls the KDF used for LUKS2
442 partitions (e.g. argon2id, argon2i, pbkdf2).
443
444 * A new VolumeName= setting allows specifying the LUKS2 volume
445 name independently of the on-disk partition label.
446
447 * A new BlockDeviceReplace= setting allows partitions to atomically
448 migrate the contents of an existing block device to a different
449 partition. This may be used for OS installers that migrate the
450 running OS as a whole from an in-memory block device onto a disk,
451 requiring no reboot as part of the installation cycle.
452
453 * systemd-repart now supports a new --grain-size= switch to explicitly
454 select the desired "grain" size (i.e. alignment granularity) when
455 placing partitions. It defaults to 4K (as before), but can now be set
456 to any other power of 2 larger than the sector size.
457
458 * A new --el-torito= command line option causes a minimal El
459 Torito boot catalog to be written for EFI boot on hybrid ISO
460 images.
461
462 * --shrink now uses mkfs.btrfs's native minimal-filesystem support
463 when available.
464
465 * A new per-partition Discard= setting may be used to control
466 the persistent "allow-discards" flag of LUKS encrypted partitions.
467
468 Changes in systemd-sysupdate:
469
470 * systemd-sysupdate now emits READY=1 via sd_notify() after the
471 install step completes, allowing for tighter integration with
472 orchestration tooling.
473
474 * systemd-sysupdate is now installed in /usr/bin/ alongside the
475 other user-facing tools, as it is no longer considered experimental.
476
477 Changes in systemd-nspawn, systemd-vmspawn, systemd-machined:
478
479 * systemd-nspawn now supports persisting the payload's system manager
480 FD Store by receiving FDs via the notify socket, and passing them
481 down via $LISTEN_FDS when the container is restarted, if the
482 'FileDescriptorStorePreserve=yes' and 'FileDescriptorStoreMax='
483 options are set in the unit inside which systemd-nspawn is running.
484 Combined with the LUO support in PID1, this lets containers persist
485 state (e.g.: memfds) across not only container restarts, but also
486 kexec reboots.
487
488 * systemd-nspawn gained new --forward-journal= and
489 --forward-journal-NAME= options to forward journal entries from
490 the payload to specified journal sockets.
491
492 * systemd-vmspawn gained a new --bind-volume= option that binds volumes
493 provided by the storage provider Varlink logic (see below) into a VM.
494
495 * systemd-vmspawn gained a new --console-transport= option that
496 controls how the VM console is presented (PTY, native, headless,
497 etc.); a PTY is now provided for the native console mode, and
498 headless console operation is supported.
499
500 * systemd-vmspawn's --console= switch gained a new value "headless" to
501 spawn a VM in truly headless mode, i.e. without a console or display.
502
503 * systemd-vmspawn gained a new switch --efi-nvram-state= for
504 controlling whether and where to persist the EFI variable NVRAM
505 between VM invocations. It's modelled after --tpm-state= in
506 behaviour. There's also a new --efi-nvram-template= knob for
507 selecting a template file to initialize the EFI NVRAM state from on
508 first boot.
509
510 * systemd-vmspawn's TPM logic will now ensure an endorsement
511 certificate is installed.
512
513 * systemd-vmspawn gained a new --firmware-features= option that
514 enables or disables individual firmware features (with a
515 "~feature" prefix for negation).
516
517 * systemd-vmspawn now searches XDG_DATA_DIRS for QEMU firmware
518 descriptors.
519
520 * systemd-vmspawn now supports direct kernel boot without UEFI
521 firmware.
522
523 * systemd-vmspawn gained support for a new --image-disk-type= switch
524 for selecting the block storage type (virtio-blk, virtio-scsi, nvme,
525 scsi-cd) for block devices exposed to the VM. The --extra-drive=
526 switch can now optionally configure this too.
527
528 * The io.systemd.MachineInstance Varlink interface gained
529 AddStorage(), RemoveStorage() and ReplaceStorage() methods for
530 runtime storage manipulation, implemented by systemd-vmspawn.
531
532 * systemd-vmspawn now pre-allocates PCIe root ports to allow PCIe
533 device hotplug, with multifunction packing where supported.
534
535 * systemd-vmspawn now uses the QEMU built-in vdagent (clipboard,
536 resolution sync) instead of spicevmc.
537
538 * systemd-vmspawn's --grow-image now detects and rejects qcow2
539 images, where the operation is not supported.
540
541 * systemd-vmspawn now propagates the host TERM environment variable
542 into the VM.
543
544 * systemd-vmspawn gained support for a new --coco= switch for enabling
545 Confidential Computing. Currently, it only supports AMD SEV-SNP.
546
547 * A new 'storagectl' command line tool and an accompanying
548 io.systemd.StorageProvider Varlink interface have been added,
549 alongside the new generic providers [email protected] and
550 [email protected]. These allow exposing storage
551 resources (filesystems, block devices) in a unified manner for use
552 as managed user storage.
553
554 * systemd-machined Machine.List/Register output now includes a
555 'controlAddress' field describing the manager's bus address,
556 where known.
557
558 * Querying metadata of registered machines is now gated behind
559 dedicated polkit actions
560 (org.freedesktop.machine1.inspect-machines and inspect-images).
561
562 * machinectl gained 'bind-volume' / 'unbind-volume' verbs to
563 manage runtime bind mounts of host paths into running machines,
564 and new verbs to control the lifecycle of VMs (pause, resume,
565 power-off, etc.) via the io.systemd.MachineInstance Varlink
566 interface.
567
568 Changes in systemd-coredump and coredumpctl:
569
570 * 'coredumpctl info' has gained JSON output (--json=).
571
572 * The crashing thread's TID and name are now captured and
573 recorded alongside the existing PID/comm metadata.
574
575 * systemd-coredump will now pick up a new field COREDUMP_CODE= for all
576 coredumps that happen. This is a field provided by kernel 7.1 that
577 contains details about the reason for the coredump, with various
578 details depending on the architecture. "coredumpctl info" has been
579 updated in order to be able to decode this new field.
580
581 Changes in systemd-creds, systemd-cryptsetup and
582 systemd-cryptenroll:
583
584 * systemd-creds only locks against the public-key TPM2 PCR when
585 booting on UEFI firmware that supports TPMs, avoiding spurious
586 errors on systems without a TPM.
587
588 * libcryptsetup is now loaded via dlopen() in the cryptsetup
589 binaries, eliminating the hard runtime dependency for systems that do
590 not actually use it.
591
592 * systemd-cryptenroll now defaults to sealing the LUKS2 key using
593 RSA-OAEP with SHA-256 (or SHA-1 if the hardware doesn't support it),
594 in order to make the setup more robust against theoretical future
595 brute force attacks. Existing PKCS#1 v1.5 enrollment remain supported
596 by systemd-cryptsetup for backward compatibility.
597
598 Changes in Dynamic Linking:
599
600 * libgnutls, libmicrohttpd, libcurl, libcrypto, libssl, libfdisk
601 and libcryptsetup are now consistently loaded via dlopen()
602 throughout the codebase, further reducing the set of mandatory
603 dependencies from all binaries.
604
605 * Individual binaries now also embed the dlopen ELF metadata note
606 (https://uapi-group.org/specifications/specs/elf_dlopen_metadata/) for
607 their dlopen() dependencies, which allows packaging tools to reliably
608 discover the set of optional dependencies of a binary, as opposed to
609 having the note only on the libsystemd-shared.so ELF object as before.
610
611 * The unused dependency on libgpg-error has been dropped.
612
613 │ This means all direct shared library linking against external │
614 │ libraries has now been replaced by dlopen()-based linking, with the │
615 │ sole exception of libc. │
616
617 Changes related to Varlink:
618
619 * sd-varlink gained a new call sd_varlink_set_sentinel() that
620 simplifies generating responses to method calls that have "more" set.
621
622 * sd-varlink gained a new call sd_varlink_call_and_upgrade() that
623 permits calling a method call with the Varlink "upgrade" feature
624 enabled, i.e. that allows switching from Varlink to a different
625 protocol. varlinkctl acquired a new --upgrade switch to expose this
626 functionality. A new call sd_varlink_reply_and_upgrade() supports
627 "upgrade" mode on the server side.
628
629 * The 'ret' argument of sd_varlink_idl_parse() is now optional.
630
631 * sd-varlink's per-UID connection limit has been reduced to 128.
632
633 * varlinkctl gained a new 'serve' verb that wraps an arbitrary
634 command as a Varlink server, and a new '--upgrade' option
635 (along with '--exec') to consume the protocol upgrade API.
636
637 Changes in libsystemd:
638
639 * A new public 'sd-dlopen' header-only API has been added that
640 provides macros (SD_ELF_NOTE_DLOPEN()) for annotating dlopen'd
641 dependencies via the UAPI.12 ELF metadata specification
642 (https://uapi-group.org/specifications/specs/elf_dlopen_metadata/).
643 This header is licensed under MIT-0 to facilitate embedding it
644 directly in other projects.
645
646 * sd_json_parse() (and related calls) now supports a pair of new flags
647 SD_JSON_PARSE_MUST_BE_OBJECT and SD_JSON_PARSE_MUST_BE_ARRAY. If
648 specified, these flags cause the parser to fail if the top-level
649 parsed JSON variant is not an object/array.
650
651 * sd-json gained a new helper sd_json_parse_fd() that parses JSON data
652 from a file referenced by a file descriptor. It works similar to
653 sd_json_parse_file(), which operates on a FILE*. Moreover, a new
654 flag SD_JSON_PARSE_SEEK0 has been added which explicitly resets the
655 file offset to 0 when parsing via sd_json_parse_file() or
656 sd_json_parse_fd().
657
658 * sd-event gained native support for CPU and IO pressure events, in
659 addition to the pre-existing support for memory pressure events. This
660 is useful for slowing down or pausing worker threads or so if CPU or
661 IO is under pressure.
662
663 * sd-path now exposes the XDG 'projects' user directory.
664
665 Changes in systemd-hostnamed:
666
667 * systemd-hostnamed now provides a D-Bus API to acquire arbitrary
668 fields from /etc/machine-info.
669
670 * systemd-hostnamed is now available in early boot too (i.e. before
671 basic.target). Note that D-Bus only becomes available later, and it
672 can hence only be contacted via Varlink that early.
673
674 * systemd-hostnamed and /etc/machine-info now support a new Tags= key,
675 which can be used to tag a machine with an arbitrary set of strings.
676 Units can match on these tags via the new ConditionMachineTag= setting,
677 and systemd-firstboot can set the tags via command line parameters or
678 credentials.
679
680 Changes in systemd-logind:
681
682 * A new [email protected] service will now measure a minimized
683 user record into the new 'login' NvPCR upon first login.
684
685 * A new io.systemd.Shutdown Varlink interface has been introduced
686 to request system shutdown. The peer connection identifier of
687 the requester is logged.
688
689 Changes related to kexec:
690
691 * 'systemctl kexec' gained a new --kernel-cmdline= argument that
692 overrides the kernel command line for kexec invocations.
693
694 * 'systemctl kexec' now prefers invoking the 'kexec_file_load()' system
695 call directly, and uses the 'kexec' binary only as a fallback if that
696 is not available, so that on most systems the dependency on
697 'kexec-tools' is no longer necessary.
698
699 Changes in systemd-firstboot:
700
701 * systemd-firstboot will now pre-fill the input prompts for keyboard
702 and local with the corresponding settings from the firmware if
703 supported. There's a good chance, this means on recent hardware you
704 can just keep hitting Enter in the prompts and will nonetheless get
705 the right keyboard mapping set up. bootctl will show this data too,
706 if available.
707
708 * systemd-firstboot will now honour a new "firstboot.hostname" system
709 credential for persistently setting the system hostname on first
710 boot. This is different from the pre-existing "system.hostname",
711 which sets the hostname only for the boot the credential is passed
712 on, and which is not made persistent.
713
714 Other changes:
715
716 * The systemd-report framework introduced in v260 has been
717 substantially extended. Basic system metrics
718 (PhysicalMemoryBytes, CPUsOnline, SMBIOS fields, /etc/machine-info
719 fields, Confidential Computing vendor info, TPM2 vendor info) are
720 now provided by a new [email protected] that is enabled
721 by default via its report-basic.socket activation unit. Per-cgroup
722 metrics (CPU time, etc.) and per-service metrics are exposed through
723 dedicated Varlink services. systemd-report gained the ability to
724 upload collected reports via a Varlink socket directory or HTTP
725 destinations, and to inject custom HTTP headers when doing so.
726
727 * JSON user database records may now optionally carry a birth date
728 field to close the gap with LDAP/OpenID/FreeIPA/etc. homectl gained
729 a new switch --birth-date= to set it.
730
731 * systemd-vconsole-setup will now gracefully handle the case where the
732 setfont/loadkeys tools are not installed, and skip operation cleanly
733 in that case.
734
735 * The _netdev pseudo mount option is now also supported for swap
736 devices, i.e. enabling correct boot time ordering to allow swapping
737 on network block devices.
738
739 * systemd-run gained a new --output= switch for controlling log output
740 formatting when using "-v" mode.
741
742 * A new component systemd-sysinstall has been added that implements a
743 simple, modern textual installer for an OS. It's a wrapper around
744 Varlink calls to systemd-repart (to set up a partition table and
745 stream in the OS partitions), bootctl link (to install kernel and
746 boot menu items for the OS), bootctl install (to install the
747 systemd-boot boot loader), systemd-creds (to configure the minimal
748 amount of system settings, such as keyboard mappings, locale for the
749 newly installed system), followed by a request to reboot. It operates
750 either interactively or command-line driven.
751
752 * systemd-oomd gained support for OOM rulesets. These allow fine-tuning
753 OOM policy handling, and may be defined in /etc/systemd/oomd/rules.d/
754 and then enabled on a service unit via the new OOMRule= option.
755
756 * systemd-socket-proxy now optionally implements the "PROXY protocol
757 v1", as defined by "haproxy". See the new --proxy-protocol= switch
758 for details.
759
760 Contributions from: A S Alam, Adam Dinwoodie, Adam Williamson,
761 Adolfo Jayme Barrientos, Adrian Wannenmacher, Aksel Azwaw,
762 Aleksa Sarai, Alexander Shopov, Alexey Rubtsov, Ali Ciloglu,
763 Alyssa Ross, Ambareesh Balaji, Américo Monteiro, Anders Jonsson,
764 Andika Triwidada, Andreas K. Hüttel, Andrei Stepanov,
765 Anselm Schueler, Antonio Alvarez Feijoo, Arif Budiman,
766 Aritra Basu, Arnout Engelen, Artem Proskurnev,
767 Asier Sarasua Garmendia, Balázs Meskó, Balázs Úr,
768 Baurzhan Muftakhidinov, Bone NI, Bret Comnes, ButterflyOfFire,
769 Charles Lee, Cheng-Chia Tseng, Chitoku, Chris Down, Chris Hofer,
770 Chris Mason, Chris Patterson, Christian Brauner,
771 Christian Goeschel Ndjomouo, Christian Hesse, Christian Kirbach,
772 Christian Wehrli, Claude Opus 4.6, Clayton Craft, Cynthia,
773 Daan De Meyer, Dan Anderson, Daniel Nylander, Daniel Rusek,
774 Dark Cronyx, David Santamaría Rogado, David Tardon, Deleted User,
775 Derek J. Clark, Diego Viola, Dimitrys Meliates, Dirga Yuza,
776 Dmitry Konishchev, Duncan Overbruck, Dylan M. Taylor,
777 Efstathios Iosifidis, Emanuele Rocca, Emilio Herrera,
778 Emilio Sepulveda, Emir SARI, Ettore Atalan,
779 Fco. Javier F. Serrador, Felix Pehla, Fran Diéguez, Franck Bui,
780 Frantisek Sumsal, Fábio Rodrigues Ribeiro, Gabriel Elyas,
781 George Tsiamasiotis, Geraldo S. Simião Kutz, Gogo Gogsi,
782 Gustavo Costa, Göran Uddeborg, Hadi Chokr, Hang Li, Hela Basa,
783 Henri Aunin, Heran Yang, Honza Hejzl, Hugo Carvalho,
784 Icenowy Zheng, Ivan Kruglov, Ivan Shapovalov, Jan Kalabza,
785 Jan Kuparinen, Jarl Gullberg, Jarne Förster, Jesse Guo,
786 Jim Spentzos, Jiri Grönroos, Jiri Pirko, Jonas Dreßler,
787 Jonas Rebmann, Jonathan Davies, Jordan Petridis, Jose Ortuno,
788 José Miguel Sarasola, João Taveira Araújo, Julian Sparber,
789 Justinas Kairys, Jörg Behrmann, Kai Lüke, Kajus Naujokaitis,
790 Kit Dallege, Kristjan Schmidt, Lennart Poettering,
791 LevitatingBusinessMan (Rein Fernhout), Liu Zhangjian, LuK1337,
792 Luan Vitor Simião Oliveira, Luan Vitor Simião oliveira,
793 Luca Boccassi, Luke Na, Luna Jernberg, Léane GRASSER, Maarten,
794 Malformed C, Marcel Leismann, Marcel Ziswiler, Marek Adamski,
795 Marin Kresic, Martin Srebotnjak, Massii Aqvayli,
796 Matheus Afonso Martins Moreira, Matteo Croce, Matthew Schwartz,
797 Max Chernoff, Michael Ferrari, Michael Vogt, Michal Rybecky,
798 Michal Sekletár, Mike Yuan, Mikhail Nogin, Milan Kyselica,
799 Milo Casagrande, Moisticules, Morten Linderud, Nandakumar Raghavan,
800 Nathan, Nick Rosbrook, Nikolas Kyx, Nita Vesa, Oblivionsage,
801 Olga Smirnova, Oğuz Ersen, Patrick Rohr, Patrick Wicki,
802 Paul Meyer, Pavel Borecki, Petru Rebeja, Philip Withnall,
803 Piotr Drąg, Pjotr Vertaalt, Poesty Li, Priit Jõerüüt,
804 Quentin Deslandes, Rafael Fontenelle, Raito Bezarius,
805 Richard E. van der Luit, Ricky Tigg, RiskoZS, Robin Ebert,
806 Rocker Zhang, Ronan Pigott, Salvatore Cocuzza, Samuel Dainard,
807 Samuel Holland, Scrambled 777, Sebastian Bernardt,
808 Sergei Trofimovich, Sergey A., Simon Lucido, Simon de Vlieger,
809 Simran Singh, Sriman Achanta, Stephane Chazelas, Takuro Onoue,
810 Temuri Doghonadze, Tiago Rocha Cunha, Tim Vangehugten,
811 Tobias Heider, Tobias Stoeckmann, Todd Zullinger, TristanInSec,
812 Valentin David, Vincent Mihalkovic, Vitaly Kuznetsov, Vlad,
813 Walter McKelvie, Whired Planck, Y T, Yaping Li, Yaron Shahrabani,
814 Yu Watanabe, Yuri Chornoivan, Zbigniew Jędrzejewski-Szmek,
815 Zmicer Turok, albertescanes, azureuser, blutch112, djantti,
816 dongshengyuan, drhydroxide, elysia090, favilances, fecet, glemco,
817 guido, hanjinpeng, hschloss, hsu zangmen, ipv6, ishwarbb, jeffhuang,
818 joo es, kakolla, kanitha chim, kostich, lumingzh, lzwind,
819 mburucuyapy, mooo, mukunda katta, naly zzwd, nikstur, noxiouz, r-vdp,
820 roib, rusty-snake, scootergrisen, seaeunlee, ssahani, sykikxo, vad,
821 vlefebvre, z z, Дамјан Георгиевски,
822 Марко Костић (Marko Kostić), наб, 我超厉害,
823 김인수
824
825 — Edinburgh, 2026/06/16
826
827 CHANGES WITH 260:
828
829 Feature Removals and Incompatible Changes:
830
831 * Support for System V service scripts has been removed. Please make
832 sure to update your software *now* to include a native systemd unit
833 file instead of a legacy System V script.
834
835 The following components have been removed:
836
837 • systemd-rc-local-generator and rc-local.service,
838 • systemd-sysv-generator,
839 • systemd-sysv-install (hook for systemctl enable/disable/is-enabled).
840
841 The corresponding meson options '-Drc-local=', '-Dsysvinit-path=',
842 and '-Dsysvrcnd-path=' are deprecated, and will be dropped in a future
843 release.
844
845 * Meson options '-Dintegration-tests=' and '-Dcryptolib=' (deprecated
846 in v258) have been removed.
847
848 * Support for libidn has been removed. IDN functionality now requires
849 libidn2. The corresponding meson option '-Dlibidn=' is deprecated
850 too and will be dropped in a future release.
851
852 * Required versions of various dependencies have been raised:
853
854 • cryptsetup 2.0.1/2.3.0 → 2.4.0,
855 • elfutils 158 → 177,
856 • libblkid 2.24 → 2.37,
857 • libseccomp 2.3.1 → 2.4.0,
858 • glibc 2.31 → 2.34,
859 • libxcrypt or libcrypt from glibc → libxcrypt 4.4.0 only,
860 • OpenSSL 1.1.0 → 3.0.0,
861 • Python 3.7.0 → 3.9.0.
862
863 * The Linux kernel version requirements have been updated too:
864 baseline 5.4 → 5.10, recommended baseline 5.7 → 5.14, 6.6 for full
865 functionality. Code for compatibility with versions older than the
866 baseline has been removed.
867
868 * The parsing of RootImageOptions= and the mount image parameters of
869 ExtensionImages= and MountImages= has been changed so that the last
870 definition for a given partition wins and is applied, rather than the
871 first, to keep these options coherent with other unit settings.
872
873 * Support for non-system users and groups in udev rules and
874 systemd-networkd configuration has been restored, but is deprecated
875 and discouraged. systemd-udevd will emits warnings if a non-system
876 user/group is specified in OWNER=/GROUP=. Similarly, systemd-networkd
877 will warn about User=/Group= settings with a non-system user/group
878 specified in .netdev files for Tun/Tap interfaces. This support will
879 be removed in a future release.
880
881 Device nodes should not be owned by a non-system user/group. It is
882 recommended to check udev rules files with 'udevadm verify' and/or
883 'udevadm test' commands.
884
885 * systemd-repart will now make use of mkfs.xfs's support for
886 populating XFS filesystems from a directory. This support was
887 added in xfsprogs 6.17.0 released 20 October 2025. As there is no
888 proper way to detect whether mkfs.xfs supports populating from a
889 directory or not, we make use of it unconditionally and have dropped
890 support for the old way using protofiles.
891
892 * The org.systemd.login1.Manager D-Bus interface has a minor API break.
893 The CanPowerOff(), CanReboot(), CanSuspend(), etc. family of methods
894 have introduced new return values which may break downstream
895 consumers such as desktop environments. The new return values more
896 precisely communicate the status of inhibitors: 'inhibited',
897 'inhibitor-blocked', and 'challenge-inhibitor-blocked'. This allows
898 desktops to differentiate between system administrator policy and
899 temporary restrictions imposed by inhibitors.
900
901 * In systemd-260-rc1, the sd_varlink_field_type_t enum was extended in
902 a way that changed the numerical values of existing fields. This was
903 reverted for -rc2. Programs using sd-varlink and compiled with the
904 headers from -rc1 must be recompiled.
905
906 New system interfaces and components:
907
908 * The os-release(5) gained a new field FANCY_NAME= that is similar to
909 PRETTY_NAME= but may contain ANSI sequences, and non-ASCII Unicode
910 glyphs. The new field is also defined to NOT contain any version
911 specification, providing better separation between the OS name and
912 version.
913
914 The systemd manager, systemd-hostnamed, and hostnamectl will now
915 show FANCY_NAME= in preference to PRETTY_NAME=.
916
917 * The "Portability and Stability" policy has been simplified and
918 updated to strengthen the promises of avoiding user-visible
919 regressions in public interfaces. See
920 https://systemd.io/PORTABILITY_AND_STABILITY/ for details.
921
922 * Services providing a public Varlink interface can be symlinked under
923 /run/varlink/registry/, allowing well-known services to be
924 enumerated. 'varlinkctl list-registry' can be used to list available
925 services. This is particularly useful in context of the Varlink HTTP
926 bridge (https://github.com/mvo5/varlink-http-bridge), which may
927 expose all services whose sockets are linked in this directory.
928
929 * A new "metrics" or "report" framework has been defined. Any system
930 component can hook into the reporting framework by providing a
931 Varlink endpoint under /run/systemd/report/.
932
933 systemd-report is a new command line tool which collects the reports
934 from all endpoints and combines them in JSON format.
935
936 The details of the structure of the reports should be considered
937 EXPERIMENTAL at this point. We reserve the right to make incompatible
938 changes to the JSON structure and/or place additional requirements.
939
940 Currently, two components provide metrics this way: systemd-networkd
941 and the system service manager.
942
943 * A new "mstack" feature has been introduced, to allowing defining an
944 overlayfs and bind mount arrangement by structuring the content of an
945 ".mstack/" directory that follows this specification. MStacks are
946 useful to invoke services and containers from a directory that fully
947 self describes its intended way of use.
948
949 * A new 'verity' TPM NvPCR has been added. Various components measure
950 dm-verity images to it upon loading. This includes
951 systemd-veritysetup (controllable via the new 'tpm2-measure-nvpcr='
952 /etc/veritytab setting), and the DDI dissection logic.
953
954 * A canonical set of hwid files for automated DeviceTree mapping in
955 UKIs is now shipped under /usr/lib/systemd/boot/hwids/<efi-arch>/.
956 Users and developers are welcome to contribute definitions for
957 their specific devices, so that UKIs can automatically find and load
958 the appropriate DTB on boot, without requiring per-devices and
959 per-kernel images. ukify now uses these definition automatically if
960 present on the system at build time. A first set of hwid files for
961 arm64 Snapdragon devices has been imported.
962
963 Changes in the system and service manager:
964
965 * A new unit setting RootMStack= has been introduced, to support the
966 new "mstack" feature for services (see above).
967
968 * The unit setting PrivateUsers= gained a new possible value "managed",
969 which automatically assigns a dynamic and transient range of 65536
970 UIDs/GIDs to the unit, acquired via systemd-nsresourced.
971
972 * The implementation for PrivateUsers=full has been updated to map the
973 full range of IDs. The workaround to allow nested systemd older than
974 257 to correctly detect that it is under such a mapping has been
975 dropped.
976
977 * systemd now uses the CSI 18 terminal sequence to query terminal
978 size. This allows the query to be made without changing the position
979 of the cursor. Terminal emulators which do not yet support the
980 sequence are encouraged to do so.
981
982 * Service units gained a RefreshOnReload= setting that configures
983 whether extensions and credentials are to be refreshed when the unit
984 is reloaded.
985
986 * A new unit setting BindNetworkInterface= has been introduced that
987 automatically binds all sockets created by the unit to a specific
988 network interface. This is generally useful, but in particular for
989 VRF setups.
990
991 * Two new unit settings ConditionPathIsSocket= and AssertPathIsSocket=
992 can be used to skip or fail the unit if the given path is not a
993 socket.
994
995 * For units which specify PrivateTmp=yes and DefaultDependencies=no
996 without an explicit requirement for /tmp/, a disconnected /tmp/ will
997 be used, as if PrivateTmp=disconnected was specified. Also, if there
998 is no explicit ordering for /var/, the private mount for /var/tmp/
999 will not be created. Those changes avoid race conditions with
1000 creation of those private directories during early boot and may
1001 result in changes to unit ordering.
1002
1003 * EnqueueMarkedJobs() D-Bus method now has a Varlink counterpart.
1004
1005 * systemctl gained a new 'enqueue-marked' verb, which calls the
1006 EnqueueMarkedJobs() D-Bus method. The '--marked' parameter, which was
1007 previously used for the same purpose, is now deprecated.
1008
1009 * SetProperties() D-Bus method now has a Varlink counterpart. For now,
1010 it only supports setting the Markers= property.
1011
1012 * New 'needs-start' and 'needs-stop' settings are now supported for the
1013 Markers= property.
1014
1015 * The CPUSchedulingPolicy= service setting now supports the new value
1016 "ext" for enabling the SCHED_EXT scheduler recently added to the
1017 Linux kernel.
1018
1019 * A new MemoryTHP= service setting has been added that controls
1020 per-service Transparent Huge Pages (THP) support.
1021
1022 Changes in systemd-udevd:
1023
1024 * Permissions for /dev/ptp* are now set to 0664 (previously 0660),
1025 allowing unprivileged read-only access. This relies on the kernel fix
1026 "ptp: Add PHC file mode checks. Allow RO adjtime() without
1027 FMODE_WRITE." (commit b4e53b15c04e3852949003752f48f7a14ae39e86 in
1028 v6.15, backported to LTS releases in v6.12.68, v6.6.122, v6.1.162,
1029 v5.15.199, and v5.10.249), which adds missing PTP ioctl permission
1030 checks and keeps clock-modifying operations write-restricted. Systems
1031 running stable kernel branches should ensure they are updated to patch
1032 levels that include the fix.
1033
1034 * Persistent network interface naming has bee extended to MCTP devices
1035 with the "mc" prefix.
1036
1037 * The minimum backlight brightness value used when restoring backlight
1038 levels at boot has been lowered from 5% to 1%. This lower value
1039 should be sufficient to avoid blacked-out displays, but allows user
1040 environments to use a wider range of values (without lower values
1041 being reset during reboot). Note that environments may still set very
1042 low brightness values at runtime independently of the systemd clamp
1043 which only applies during boot.
1044
1045 * A new udev property ID_INTEGRATION= is now exposed on devices that
1046 have ID_BUS= defined. This variable can be set to 'internal' when the
1047 device is integral part of the system or 'external' otherwise.
1048 Internal buses like PCI, I2C, SPI... imply 'internal' and external
1049 buses like bluetooth imply 'external'. For USB the 'removable'
1050 attribute of the port the device is connected to determines the
1051 result: 'fixed' implies 'internal' and 'removable' or 'unknown'
1052 implies 'external'.
1053
1054 * ID_INPUT_JOYSTICK_INTEGRATION= property has been dropped in favour of
1055 ID_INTEGRATION= because it was never used and the new variable covers
1056 the idea that variable was intended for better.
1057
1058 * A new udev builtin "tpm2_id" is now available which will extract
1059 vendor/model identification from connected TPM2 devices as they are
1060 probed. This is then used to import data from the udev database,
1061 possibly containing quirk and other information about specific TPMs.
1062
1063 Changes in systemd-networkd:
1064
1065 * MultiPathRoute= option now supports interface-bound ECMP routes.
1066
1067 * systemd-networkd gained integration with ModemManager via the "simple
1068 connect" protocol. A new [MobileNetwork] section has been added with
1069 APN=, AllowedAuthenticationMechanisms=, User=, Password=, IPFamily=,
1070 AllowRoaming=, PIN=, OperatorId=, RouteMetric=, and UseGateway=
1071 settings. This allows systemd-networkd to establish a cellular modem
1072 connection to a broadband network.
1073
1074 * systemd-networkd gained a pair of varlink methods
1075 io.systemd.Network.Link.Up()/Down(). 'networkctl up/down' now
1076 utilizes those varlink interfaces in place of direct RTNL messages
1077 for better interaction with networkd.
1078
1079 * .link files gained new ScatterGather=, ScatterGatherFragmentList=,
1080 TCPECNSegmentationOffload=, TCPMangleIdSegmentationOffload=,
1081 GenericReceiveOffloadList=, GenericReceiveOffloadUDPForwarding=
1082 options for configuring various details of Ethernet devices.
1083
1084 * systemd-networkd's Varlink and JSON interfaces will now report IP
1085 addresses both as integer array (as before) and as human readable
1086 string (new addition).
1087
1088 Changes in systemd-boot and the stub:
1089
1090 * The timeout in the boot menu can be configured with the
1091 io.systemd.boot.timeout= SMBIOS type 11 string.
1092
1093 * A new LoaderEntryPreferred setting has been added to systemd-boot that
1094 is similar to LoaderEntryDefault, but that takes into the account boot
1095 assessment logic, and will skip entries that have the tries-left counter
1096 set to zero.
1097
1098 * bootctl's Varlink interface gained a new Install() method for performing
1099 systemd-boot installation/upgrade via IPC calls.
1100
1101 * bootctl gained a new --efi-boot-option-description-with-device=yes
1102 switch which augments the EFI boot option description registered with
1103 the firmware to include information about the disk used for
1104 booting. This is useful when installing multiple OSes on the same
1105 system, but on different disks. (Example: install a main OS on the
1106 SSD of a laptop, plus another one on an USB stick.)
1107
1108 Changes in sd-varlink:
1109
1110 * The Varlink implementation now supports SD_VARLINK_ANY as a wildcard
1111 type. This is useful to declare generic interfaces which need to
1112 support multiple types.
1113
1114 * When sd_varlink_connect_url() is invoked with an unrecognized URL
1115 scheme, but an executable named after the scheme exists under
1116 /usr/lib/systemd/varlink-bridges/, it is invoked and receives an
1117 AF_UNIX socktpair() via the usual $LISTEN_FDS socket activation
1118 protocol. The aforementioned Varlink HTTP bridge project makes use of
1119 this to allow any local Varlink client (including varlinkctl) to
1120 contact remote Varlink services via HTTP. The concept is entirely
1121 generic however, and can be used to plug in arbitrary other transport
1122 protocols, proxies, or connection setup mechanisms.
1123
1124 Changes in systemd-resolved:
1125
1126 * systemd-resolved's .delegate files learnt a new setting FirewallMark=
1127 to set the Linux network stack's "firewall mark" value for all DNS
1128 traffic generated by the delegation.
1129
1130 * resolvectl now uses Varlink to connect to systemd-resolved.
1131
1132 * Queries done through nss-resolve can be limited to a specific
1133 interface with the $SYSTEMD_NSS_RESOLVE_INTERFACE environment
1134 variable.
1135
1136 * systemd-resolved now supports ifindex=0 in the BrowseServices IPC API,
1137 to allow browsing all mDNS interfaces in one call.
1138
1139 Changes in systemd-sysupdate/systemd-sysupdated:
1140
1141 * systemd-sysupdate gained a new 'acquire' verb, allowing the download
1142 and installation or update steps to be done separately.
1143
1144 * systemd-sysupdate will now refuse processing SHA256SUMS manifests if
1145 they list a file BEST-BEFORE- suffixed by a date that is already in
1146 the past, as a simple mechanism to detect freshness.
1147
1148 * systemd-sysupdate now can mark partitions as partially downloaded.
1149
1150 Changes in systemd-vmspawn:
1151
1152 * systemd-vmspawn gained support for registering with systemd-machined
1153 in the user session. New options --user/--system control which
1154 instance is used.
1155
1156 * systemd-vmspawn gained support for ephemeral machines via a new
1157 --ephemeral option. This is similar to the functionality provided via
1158 the same switch in systemd-nspawn.
1159
1160 * systemd-vmspawn gained a new switch --image-format= for selecting the
1161 image format (i.e. support qcow2 in additin to raw) to boot from.
1162 Also --extra-drive= now takes the image format as a colon separated
1163 parameter.
1164
1165 Changes in systemd-nsresourced/systemd-mountfsd:
1166
1167 * The MakeDirectory() Varlink IPC call provided by systemd-mountfsd now
1168 accepts a "mode" parameter for configuring the access mode of the
1169 newly created directory. The MountImage() call gained a new
1170 "mountOptions" parameter for configuring mount options for the
1171 various partitions of a DDI explicitly. The call will now also report
1172 via a new "singleFileSystem" field in the response whether it is
1173 processing a DDI lacking a GPT envelope, and consisting of a raw file
1174 system only. A new input parameter "relaxExtensionReleaseChecks"
1175 controls whether to enforce extension release checks.
1176
1177 * systemd-nsresourced's BPF-LSM based security policy on user
1178 namespaces it delegates UID ranges too is relaxed: processes in such
1179 namespaces may now freely access to inodes owned by UIDs/GIDs outside
1180 of the transient UID range. This reflects the fact that the security
1181 policy exists to ensure ownership of inodes by transient UIDs is
1182 never persisted on disk.
1183
1184 * systemd-nsresourced can now delegate multiples of additional 64K
1185 ranges of UIDs/GIDs to user namespaces, on request. This permits
1186 nesting of user namespace enabled containers with transient UID
1187 ranges.
1188
1189 * systemd-nsresourced now supports a new type user namespace UID
1190 delegation: only the client's UID is mapped. This is very similar to
1191 what the kernel allows anyway as unprivileged delegation without
1192 systemd-nsresourced involvement, however, can be combined with
1193 multiple additional 64K ranges (see above).
1194
1195 * systemd-nsresourced may now optionally map the "foreign" UID/GID
1196 range to itself for user namespaces it delegates transient UIDs/GIDs
1197 to. This opens up the concept for nested containers.
1198
1199 * systemd-nsresourced's and systemd-mountfsd's Varlink sockets may now
1200 be mounted into container trees, to permit nested use of their
1201 functionality. This can be used automatically in systemd-nspawn's
1202 --private-users-delegate= option.
1203
1204 Changes in systemd-logind:
1205
1206 * systemd-logind/systemd-udevd gained support for a new "xaccess"
1207 concept for delegating access to specific devices to users with
1208 specially marked sessions. The augments the "uaccess" logic that
1209 provides device access to users with foreground sessions. The primary
1210 usecase for this is to give access to GPU render devices to local
1211 graphical sessions for remote users, i.e. which are not attached to
1212 any local seat. Sessions are configured via the PAM environment
1213 variable XDG_SESSION_EXTRA_DEVICE_ACCESS= for this logic.
1214
1215 * systemd-inhibit --list option gained support for JSON output
1216 and filtering with --what= , --who=, --why=, and --mode=.
1217
1218 Changes in systemd-portabled:
1219
1220 * systemd-portabled now also runs as a user service. Unprivileged users
1221 can run portable services (on sufficiently fresh
1222 kernels). portablectl gained a pair of switches --user/--system to
1223 explicitly select which service instance to talk to.
1224
1225 * systemd-portabled will now generate a policy and pin the image for a
1226 portable service, so that the image cannot be changed later without a
1227 reattach.
1228
1229 Changes in other components:
1230
1231 * systemd-repart gained basic support for dm-integrity protection of
1232 encrypted volumes. Two new options Integrity= and IntegrityAlgorithm=
1233 can be used to configure integrity checks for LUKS volumes.
1234
1235 * Image dissection policies have been extended to allow restricting
1236 file system types and requiring integrity checks for encrypted
1237 volumes with a new 'encryptedwithintegrity' policy.
1238
1239 * systemd-dissect gained a --copy-ownership= switch to configure
1240 ownership of copied files.
1241
1242 * systemd-keyutil gained an 'extract-certificate' verb to print the
1243 X.509 certificate. The existing 'public' verb has been renamed to
1244 'extract-public' as it works analogously. (The old name remains
1245 available for compatibility.)
1246
1247 * Support for interactive polkit authorization has been added to
1248 systemd-sysext and varlinkctl.
1249
1250 * A polkit policy was added for systemd-ask-password, allowing it to be
1251 used by unprivileged callers.
1252
1253 * journalctl now implements a Varlink interface that exposes a
1254 GetEntries() method, which allows retrieving journal entries.
1255
1256 * systemd-importd gained support for downloading OCI images ("importctl
1257 pull-oci"). They will be stored locally as "mstack" images, which
1258 then can be used by various components, for example be run as system
1259 services via RootMStack= in unit files, or as systemd-nspawn
1260 containers via --mstack= (see below).
1261
1262 * systemd-nspawn gained a new --mstack= parameter to support the new
1263 "mstack" feature for containers.
1264
1265 * A new systemd-mstack command line tool has been introduced to support
1266 the new "mstack" feature interactively.
1267
1268 * New options SYSTEMD_COLORS=auto-16, SYSTEMD_COLORS=auto-256, and
1269 SYSTEMD_COLORS=auto-24bit have been added. They are like
1270 SYSTEMD_COLORS=16, SYSTEMD_COLORS=256, and SYSTEMD_COLORS=24bit
1271 respectively when output is to a non-dumb TTY, and degrade to
1272 SYSTEMD_COLORS=no otherwise.
1273
1274 * Standalone versions of the systemd-sysusers and systemd-tmpfiles
1275 binaries now support full functionality. (Previously, those tools
1276 were compiled without features which would require libmount and pull
1277 in a lot of dependencies. After the conversion to dlopen the option
1278 whether to support features requiring libmount is made by providing
1279 libmount or not, at install time.)
1280
1281 * Internal code dealing with processes has been updated to use pidfds
1282 in many places.
1283
1284 * busctl's 'wait' verb now honours --limit-messages= too.
1285
1286 * systemd-cryptsetup gained support for a new fixate-volume-key=
1287 option, that can be used to pin a specific encrypted volume to an
1288 /etc/crypttab entry via its volume key (more precisely a hash derived
1289 from it). systemd-repart will assist generating this information.
1290
1291 * systemd-sysext/systemd-confext's "refresh" will now by default try to
1292 suppress any operation in case no images where added, removed or
1293 changed. To force a umount/mount operation in this case (i.e. get
1294 back to the status quo ante) a new --always-refresh= option has been
1295 added. Note that the change detection identifies extensions by
1296 identity (verity hash, or else by file handle/inode, mount ID,
1297 creation time and modification time), and does not look at their
1298 contents. In particular, for directory-based extensions, adding,
1299 removing or modifying files inside the directory (or touching the
1300 directory itself) is not detected, and such a refresh is suppressed
1301 by default. Use --always-refresh=yes to force a refresh in these
1302 cases.
1303
1304 * systemd-oomd acquired "prekill hook" functionality, permitting other
1305 system components to synchronously hook into the OOM killing logic,
1306 by registering a Varlink socket in a special directory.
1307
1308 * systemd-analyze learnt a new verb "identify-tpm2" which shows
1309 vendor/model information extracted from the system's TPM.
1310
1311 Changes in units:
1312
1313 * runlevel[0-6].target units that were removed in v258 have been
1314 restored and can be enabled with the new -Dcompat-sysv-interfaces=yes
1315 meson option. The installation of legacy.conf for tmpfiles is now
1316 also conditionalized under the same option.
1317
1318 * [email protected] gained an [Install] and must now be explicitly enabled
1319 to be active.
1320
1321 Contributions from: A S Alam, Adam Williamson, Adrian Vovk,
1322 Alessandro Astone, Alexis-Emmanuel Haeringer, Allison Karlitskaya,
1323 Américo Monteiro, Andrii Zora, André Paiusco, Anton Tiurin,
1324 Antonio Alvarez Feijoo, Arjun-C-S, Artur Kowalski,
1325 AshishKumar Mishra, Baurzhan Muftakhidinov, Ben Boeckel,
1326 Betacentury, Bouke van der Bijl, Carlos Peón Costa,
1327 Carolina Jubran, Cathy Hu, Chris Down, Chris Lindee,
1328 Christian Brauner, Christian Glombek, Christian Hesse,
1329 Christopher Cooper, Christopher Head,
1330 Copilot Autofix powered by AI, Cyrus Xi, Daan De Meyer,
1331 Dan McGregor, Daniel Foster, Daniel Nylander, Daniel Rusek,
1332 David Santamaría Rogado, David Tardon, Derek J. Clark, Dirk Su,
1333 Dmitry V. Levin, Dmytro Bagrii, Dylan M. Taylor,
1334 Efstathios Iosifidis, Eisuke Kawashima, Ettore Atalan, Fergus Dall,
1335 Florian Klink, Franck Bui, Frantisek Sumsal, Govind Venugopal,
1336 Graham Reed, Guiorgy, Han Sol Jin, Hans de Goede, Heran Yang,
1337 IntenseWiggling, Ivan Kruglov, Ivan Shapovalov, James Le Cuirot,
1338 Jan Kuparinen, Jeff Layton, Jeremy Kerr, Jesse Guo, Jian Wen,
1339 Jim Spentzos, Julian Sparber, Jörg Behrmann, Kai Lüke,
1340 Lennart Poettering, Louis Stagg, Luca Boccassi, Lucas Werkmeister,
1341 Luiz Amaral, Léane GRASSER, Malcolm Frazier, Marc Pervaz Boocha,
1342 Marcel Leismann, Mario Limonciello, Mario Limonciello (AMD),
1343 Martin Srebotnjak, Matt Fleming, Matteo Croce, Matthijs Kooijman,
1344 Max Gautier, Maximilian Bosch, Miao Wang, Michael Vogt,
1345 Michal Sekletár, Mike Gilbert, Mike Yuan, Mikhail Novosyolov,
1346 Nandakumar Raghavan, Nick Rosbrook, Nicolas Dorier, Oblivionsage,
1347 Oleksandr Andrushchenko, Oğuz Ersen, Pablo Fraile Alonso,
1348 Peter Oliver, Philip Withnall, Pontus Lundkvist, Popax21,
1349 Rito Rhymes, Rodrigo Campos, Ronan Pigott, Ryan Zeigler,
1350 Salvatore Cocuzza, Sergey A., Skye Soss, Sriman Achanta,
1351 Tabis Kabis, Temuri Doghonadze, The-An0nym, Thomas Weißschuh,
1352 Thorsten Kukuk, Tobias Heider, Tobias Stoeckmann, Ulrich Ölmann,
1353 Usama Arif, Val Markovic, Vitaly Kuznetsov, Vunny Sodhi,
1354 Weixie Cui, Yaping Li, Yaron Shahrabani, Yu Watanabe,
1355 Yuri Chornoivan, ZauberNerd, Zbigniew Jędrzejewski-Szmek,
1356 Zongyuan He, andre4ik3, calm329, cdown, cyclopentane, davidak,
1357 dongshengyuan, francescoza6, gvenugo3, joo es, kiamvdd, lumingzh,
1358 naly zzwd, nikstur, novenary, noxiouz, patrick, ppkramer-hub, r-vdp,
1359 safforddr, scarlet-storm, sd416, seidlerv, smosia, tuhaowen, zefr0x
1360
1361 — Edinburgh, 2026/03/17
1362
1363 CHANGES WITH 259:
1364
1365 Announcements of Future Feature Removals and Incompatible Changes:
1366
1367 * Support for System V service scripts is deprecated and will be
1368 removed in v260. Please make sure to update your software *now* to
1369 include a native systemd unit file instead of a legacy System V
1370 script to retain compatibility with future systemd releases.
1371 Following components will be removed:
1372
1373 * systemd-rc-local-generator,
1374 * systemd-sysv-generator,
1375 * systemd-sysv-install (hook for systemctl enable/disable/is-enabled).
1376
1377 * Required minimum versions of following components are planned to be
1378 raised in v260:
1379
1380 * Linux kernel >= 5.10 (recommended >= 5.14),
1381 * glibc >= 2.34,
1382 * libxcrypt >= 4.4.0 (libcrypt in glibc will be no longer supported),
1383 * util-linux >= 2.37,
1384 * elfutils >= 0.177,
1385 * openssl >= 3.0.0,
1386 * cryptsetup >= 2.4.0,
1387 * libseccomp >= 2.4.0,
1388 * python >= 3.9.0.
1389
1390 * The parsing of RootImageOptions= and the mount image parameters of
1391 ExtensionImages= and MountImages= will be changed in the next version
1392 so that the last duplicated definition for a given partition wins and
1393 is applied, rather than the first, to keep these options coherent with
1394 other unit settings.
1395
1396 Feature Removals and Incompatible Changes:
1397
1398 * The cgroup2 file system is now mounted with the
1399 "memory_hugetlb_accounting" mount option, supported since kernel 6.6.
1400 This means that HugeTLB memory usage is now counted towards the
1401 cgroup’s overall memory usage for the memory controller.
1402
1403 * The default storage mode for the journal is now 'persistent'.
1404 Previously, the default was 'auto', so the presence or lack of
1405 /var/log/journal determined the default storage mode, if no
1406 overriding configuration was provided. The default can be changed
1407 with -Djournal-storage-default=.
1408
1409 * systemd-networkd and systemd-nspawn no longer support creating NAT
1410 rules via iptables/libiptc APIs; only nftables is now supported.
1411 The corresponding meson option '-Dlibiptc=' is deprecated and will be
1412 dropped in a future release.
1413
1414 * systemd-boot's and systemd-stub's support for TPM 1.2 has been
1415 removed (only TPM 2.0 supported is retained). The security value of
1416 TPM 1.2 support is questionable in 2025, and because we never
1417 supported it in userspace, it was always quite incomplete to the
1418 point of uselessness.
1419
1420 * The image dissection logic will now enforce the VFAT file system type
1421 for XBOOTLDR partitions, similar to how it already does this for the
1422 ESP. This is done for security, since both the ESP and XBOOTLDR must
1423 be directly firmware-accessible and thus cannot by protected by
1424 cryptographic means. Thus it is essential to not mount arbitrarily
1425 complex file systems on them. This restriction only applies if
1426 automatic dissection is used. If other file system types shall be
1427 used for XBOOTLDR (not recommended) this can be achieved via explicit
1428 /etc/fstab entries.
1429
1430 * systemd-machined will now expose "hidden" disk images as read-only by
1431 default (hidden images are those whose name begins with a dot). They
1432 were already used to retain a pristine copy of the downloaded image,
1433 while modifications were made to a 2nd, local writable copy of the
1434 image. Hence, effectively they were read-only already, and this is
1435 now official.
1436
1437 * The LUKS volume label string set by systemd-repart no longer defaults
1438 to the literal same as the partition and file system label, but is
1439 prefixed with "luks-". This is done so that on LUKS enabled images a
1440 conflict between /dev/disk/by-label/ symlinks is removed, as this
1441 symlink is generated both for file system and LUKS superblock
1442 labels. There's a new VolumeLabel= setting for partitions that can be
1443 used to explicitly choose a LUKS superblock label, which can be used
1444 to explicitly revert to the old naming, if required.
1445
1446 Service manager/PID1:
1447
1448 * The service manager's Varlink IPC has been extended considerably. It
1449 now exposes service execution settings and more. Its Unit.List() call
1450 now can filter by cgroup or invocation ID.
1451
1452 * The service manager now exposes Reload() and Reexecute() Varlink IPC
1453 calls, mirroring the calls of the same name accessible via D-Bus.
1454
1455 * The $LISTEN_FDS protocol has been extended to support pidfd inode
1456 IDs. The $LISTEN_PID environment variable is now augmented with a new
1457 $LISTEN_PIDFDID environment variable which contains the inode ID of
1458 the pidfd of the indicated process. This removes any ambiguity
1459 regarding PID recycling: a process which verified that $LISTEN_PID
1460 points to its own PID can now also verify the pidfd inode ID, which
1461 does not recycle IDs.
1462
1463 * The log message made when a service exits will now show the
1464 wallclock time the service took in addition to the previously shown
1465 CPU time.
1466
1467 * A new pair of properties OOMKills and ManagedOOMKills are now exposed
1468 on service units (and other unit types that spawn processes) that
1469 count the number of process kills made by the kernel or systemd-oomd.
1470
1471 * The service manager gained support for a new
1472 RootDirectoryFileDescriptor= property when creating transient service
1473 units. It is similar to RootDirectory= but takes a file descriptor
1474 rather than a path to the new root directory to use.
1475
1476 * The service manager now supports a new UserNamespacePath= setting
1477 which mirrors the existing IPCNamespacePath= and
1478 NetworkNamespacePath= options, but applies to Linux user namespaces.
1479
1480 * The service manager gained a new ExecReloadPost= setting to configure
1481 commands to execute after reloading of the configuration of the
1482 service has completed.
1483
1484 * Service manager job activation transactions now get a per-system
1485 unique 64-bit numeric ID assigned. This ID is logged as an additional
1486 log field for in messages related to the transaction.
1487
1488 * The service manager now keeps track of transactions with ordering
1489 cycles and exposes them in the TransactionsWithOrderingCycle D-Bus
1490 property.
1491
1492 systemd-sysext/systemd-confext:
1493
1494 * systemd-sysext and systemd-confext now support configuration files
1495 /etc/systemd/sysext.conf and /etc/systemd/confext.conf, which can be
1496 used to configure mutability or the image policy to apply to DDI
1497 images.
1498
1499 * systemd-sysext's and systemd-confext's --mutable= switch now accepts
1500 a new value "help" for listing available mutability modes.
1501
1502 * systemd-sysext now supports configuring additional overlayfs mount
1503 settings via the $SYSTEMD_SYSEXT_OVERLAYFS_MOUNT_OPTIONS environment
1504 variable. Similarly systemd-confext now supports
1505 $SYSTEMD_CONFEXT_OVERLAYFS_MOUNT_OPTIONS.
1506
1507 systemd-vmspawn/systemd-nspawn:
1508
1509 * systemd-vmspawn will now initialize the "serial" fields of block
1510 devices attached to VMs to the filename of the file backing them on
1511 the host. This makes it very easy to reference the right media in
1512 case many block devices from files are attached to the same VM via
1513 the /dev/disk/by-id/… links in the VM.
1514
1515 * systemd-nspawn's .nspawn file gained support for a new NamespacePath=
1516 setting in the [Network] section which takes a path to a network
1517 namespace inode, and which ensures the container is run inside that
1518 when booted. (This was previously only available via a command line
1519 switch.)
1520
1521 * systemd-vmspawn gained two new switches
1522 --bind-user=/--bind-user-shell= which mirror the switches of the same
1523 name in systemd-nspawn, and allow sharing a user account from the host
1524 inside the VM in a simple one-step operation.
1525
1526 * systemd-vmspawn and systemd-nspawn gained a new --bind-user-group=
1527 switch to add a user bound via --bind-user= to the specified group
1528 (useful in particular for the 'wheel' or 'empower' groups).
1529
1530 * systemd-vmspawn now configures RSA4096 support in the vTPM, if swtpm
1531 supports it.
1532
1533 * systemd-vmspawn now enables qemu guest agent via the
1534 org.qemu.guest_agent.0 protocol when started with --console=gui.
1535
1536 systemd-repart:
1537
1538 * repart.d/ drop-ins gained support for a new TPM2PCRs= setting, which
1539 can be used to configure the set of TPM2 PCRs to bind disk encryption
1540 to, in case TPM2-bound encryption is used. This was previously only
1541 settable via the systemd-repart command line. Similarly, KeyFile= has
1542 been added to configure a binary LUKS key file to use.
1543
1544 * systemd-repart's functionality is now accessible via Varlink IPC.
1545
1546 * systemd-repart may now be invoked with a device node path specified
1547 as "-". Instead of operating on a block device this will just
1548 determine the minimum block device size required to apply the defined
1549 partitions and exit.
1550
1551 * systemd-repart gained two new switches --defer-partitions-empty=yes
1552 and --defer-partitions-factory-reset=yes which are similar to
1553 --defer-partitions= but instead of expecting a list of partitions to
1554 defer will defer all partitions marked via Format=empty or
1555 FactoryReset=yes. This functionality is useful for installers, as
1556 partitions marked empty or marked for factory reset should typically
1557 be left out at install time, but not on first boot.
1558
1559 * The Subvolumes= values in repart.d/ drop-ins may now be suffixed with
1560 :nodatacow, in order to create subvolumes with data Copy-on-Write
1561 disabled.
1562
1563 systemd-udevd:
1564
1565 * systemd-udevd rules gained support for OPTIONS="dump-json" to dump
1566 the current event status in JSON format. This generates output
1567 similar to "udevadm test --json=short".
1568
1569 * The net_id builtin for systemd-udevd now can generate predictable
1570 interface names for Wifi devices on DeviceTree systems.
1571
1572 * systemd-udevd and systemd-repart will now reread partition tables on
1573 block devices in a more graceful, incremental fashion. Specifically,
1574 they no longer use the kernel BLKRRPART ioctl() which removes all
1575 in-memory partition objects loaded into the kernel and then recreates
1576 them as new objects. Instead they will use the BLKPG ioctl() to make
1577 minimal changes, and individually add, remove, or grow modified
1578 partitions, avoiding removal/re-adding where the partitions were left
1579 unmodified on disk. This should greatly improve behaviour on systems
1580 that make modifications to partition tables on disk while using them.
1581
1582 * A new udev property ID_BLOCK_SUBSYSTEM is now exposed on block devices
1583 reporting a short identifier for the subsystem a block device belongs
1584 to. This only applies to block devices not connected to a regular bus,
1585 i.e. virtual block devices such as loopback, DM, MD, or zram.
1586
1587 * systemd-udevd will now generate /dev/gpio/by-id/… symlinks for GPIO
1588 devices.
1589
1590 systemd-homed/homectl:
1591
1592 * homectl's --recovery-key= option may now be used with the "update"
1593 command to add recovery keys to existing user accounts. Previously,
1594 recovery keys could only be configured during initial user creation.
1595
1596 * Two new --prompt-shell= and --prompt-groups= options have been added
1597 to homectl to control whether to query the user interactively for a
1598 login shell and supplementary groups memberships when interactive
1599 firstboot operation is requested. The invocation in
1600 systemd-homed-firstboot.service now turns both off by default.
1601
1602 * systemd-homed's fscrypt backend gained a new key sealing format that
1603 aims to be more future-proof and robust against advances in brute
1604 forcing techniques. Compatibiilty with the existing format is maintained,
1605 but new enrollments will happen with the new format. Users enrolling
1606 new systems must thus take care in not downgrading to an older version.
1607
1608 systemd-boot/systemd-stub:
1609
1610 * systemd-boot now supports log levels. The level may be set via
1611 log-level= in loader.conf and via the SMBIOS Type 11 field
1612 'io.systemd.boot.loglevel='.
1613
1614 * systemd-boot's loader.conf file gained support for configuring the
1615 SecureBoot key enrollment time-out via
1616 secure-boot-enroll-timeout-sec=.
1617
1618 * Boot Loader Specification Type #1 entries now support a "profile"
1619 field which may be used to explicitly select a profile in
1620 multi-profile UKIs invoked via the "uki" field.
1621
1622 sd-varlink/varlinkctl:
1623
1624 * sd-varlink's sd_varlink_set_relative_timeout() call will now reset
1625 the timeout to the default if 0 is passed.
1626
1627 * sd-varlink's sd_varlink_server_new() call learned two new flags
1628 SD_VARLINK_SERVER_HANDLE_SIGTERM + SD_VARLINK_SERVER_HANDLE_SIGINT,
1629 which are honoured by sd_varlink_server_loop_auto() and will cause it
1630 to exit processing cleanly once SIGTERM/SIGINT are received.
1631
1632 * varlinkctl in --more mode will now send a READY=1 sd_notify() message
1633 once it receives the first reply. This is useful for tools or scripts
1634 that wrap it (and implement the $NOTIFY_SOCKET protocol) to know when
1635 a first confirmation of success is received.
1636
1637 * sd-varlink gained a new sd_varlink_is_connected() call which reports
1638 whether a Varlink connection is currently connected.
1639
1640 Shared library dependencies:
1641
1642 * Linux audit support is now implemented via dlopen() rather than
1643 regular dynamic library linking. This means the dependency is now
1644 weak, which is useful to reduce footprint inside of containers and
1645 such, where Linux audit doesn't really work anyway.
1646
1647 * Similarly PAM support is now implemented via dlopen() too (except for
1648 the PAM modules pam_systemd + pam_systemd_home + pam_systemd_loadkey,
1649 which are loaded by PAM and hence need PAM anyway to operate).
1650
1651 * Similarly, libacl support is now implemented via dlopen().
1652
1653 * Similarly, libblkid support is now implemented via dlopen().
1654
1655 * Similarly, libseccomp support is now implemented via dlopen().
1656
1657 * Similarly, libselinux support is now implemented via dlopen().
1658
1659 * Similarly, libmount support is now implemented via dlopen(). Note,
1660 that libmount still must be installed in order to invoke the service
1661 manager itself. However, libsystemd.so no longer requires it, and
1662 neither do various ways to invoke the systemd service manager binary
1663 short of using it to manage a system.
1664
1665 * systemd no longer links against libcap at all. The simple system call
1666 wrappers and other APIs it provides have been reimplemented directly
1667 in systemd, which reduced the codebase and the dependency tree.
1668
1669 → In summary: all direct shared library linking is gone now from
1670 systemd, with the one exception of libc.
1671
1672 systemd-machined/systemd-importd:
1673
1674 * systemd-machined gained support for RegisterMachineEx() +
1675 CreateMachineEx() method calls which operate like their counterparts
1676 without "Ex", but take a number of additional parameters, similar to
1677 what is already supported via the equivalent functionality in the
1678 Varlink APIs of systemd-machined. Most importantly, they support
1679 PIDFDs instead of PIDs.
1680
1681 * systemd-machined may now also run in a per-user instance, in addition
1682 to the per-system instance. systemd-vmspawn and systemd-nspawn have
1683 been updated to register their invocations with both the calling
1684 user's instance of systemd-machined and the system one, if
1685 permissions allow it. machinectl now accepts --user and --system
1686 switches that control which daemon instance to operate on.
1687 systemd-ssh-proxy now will query both instances for the AF_VSOCK CID.
1688
1689 * systemd-machined implements a resolve hook now, so that the names of
1690 local containers and VMs can be resolved locally to their respective
1691 IP addresses.
1692
1693 * systemd-importd's tar extraction logic has been reimplemented based
1694 on libarchive, replacing the previous implementation calling GNU tar.
1695 This completes work begun earlier which already ported
1696 systemd-importd's tar generation.
1697
1698 * systemd-importd now may also be run as a per-user service, in
1699 addition to the existing per-system instance. It will place the
1700 downloaded images in ~/.local/state/machines/ and similar
1701 directories. importctl gained --user/--system switches to control
1702 which instance to talk to.
1703
1704 systemd-firstboot:
1705
1706 * systemd-firstboot's and homectl's interactive boot-time interface
1707 have been updated to show a colored bar at the top and bottom of the
1708 screen, whose color can be configured via /etc/os-release. The bar
1709 can be disabled via the new --chrome= switches to both tools.
1710
1711 * systemd-firstboot's and homectl's interactive boot-time interface
1712 will now temporarily mute the kernel's and PID1's own console output
1713 while running, in order to not mix the tool's own output with the
1714 other sources. This logic can be controlled via the new
1715 --mute-console= switches to both tools. This is implemented via a new
1716 systemd-mute-console component (which provides a simple Varlink
1717 interface).
1718
1719 * systemd-firstboot gained a new switch --prompt-keymap-auto. When
1720 specified, the tool will interactively query the user for a keymap
1721 when running on a real local VT console (i.e. on a user device where
1722 the keymap would actually be respected), but not if invoked on other
1723 TTYs (such as a serial port, hypervisor console, SSH, …), where the
1724 keymap setting would have no effect anyway. The invocation in
1725 systemd-firstboot.service now uses this.
1726
1727 systemd-creds:
1728
1729 * systemd-creds's Varlink IPC API now supports a new "withKey"
1730 parameter on the Encrypt() method call, for selecting what to bind
1731 the encryption to precisely, matching the --with-key= switch on the
1732 command line.
1733
1734 * systemd-creds now allow explicit control of whether to accept
1735 encryption with a NULL key when decrypting, via the --allow-null and
1736 --refuse-null switches. Previously only the former existed, but null
1737 keys were also accepted if UEFI SecureBoot was reported off. This
1738 automatism is retained, but only if neither of the two switches are
1739 specified. The systemd-creds Varlink IPC API learned similar
1740 parameters on the Decrypt() call.
1741
1742 systemd-networkd:
1743
1744 * systemd-networkd's DHCP sever support gained two settings EmitDomain=
1745 and Domain= for controlling whether leases handed out should report a
1746 domain, and which. It also gained a per-static lease Hostname=
1747 setting for the hostname of the client.
1748
1749 * systemd-networkd now exposes a Describe() method call to show network
1750 interface properties.
1751
1752 * systemd-networkd now implements a resolve hook for its internal DHCP
1753 server, so that the hostnames tracked in DHCP leases can be resolved
1754 locally. This is now enabled by default for the DHCP server running
1755 on the host side of local systemd-nspawn or systemd-vmspawn networks.
1756
1757 systemd-resolved:
1758
1759 * systemd-resolved gained a new Varlink IPC method call
1760 DumpDNSConfiguration() which returns the full DNS configuration in
1761 one reply. This is exposed by resolvectl --json=.
1762
1763 * systemd-resolved now allows local, privileged services to hook into
1764 local name resolution requests. For that a new directory
1765 /run/systemd/resolve.hook/ has been introduced. Any privileged local
1766 service can bind an AF_UNIX Varlink socket there, and implement the
1767 simple io.systemd.Resolve.Hook Varlink API on it. If so it will
1768 receive a method call on it for each name resolution request, which
1769 it can then reply to. It can reply positively, deny the request or
1770 let the regular request handling take place.
1771
1772 * DNS0 has been removed from the default fallback DNS server list of
1773 systemd-resolved, since it ceased operations.
1774
1775 TPM2 infrastructure:
1776
1777 * systemd-pcrlock no longer locks to PCR 12 by default, since its own
1778 policy description typically ends up in there, as it is passed into a
1779 UKI via a credential, and such credentials are measured into PCR 12.
1780
1781 * The TPM2 infrastructure gained support for additional PCRs
1782 implemented via TPM2 NV Indexes in TPM2_NT_EXTEND mode. These
1783 additional PCRs are called "NvPCRs" in our documentation (even though
1784 they are very much volatile, much like the value of TPM2_NT_EXTEND NV
1785 indexes, from which we inherit the confusing nomenclature). By
1786 introducing NvPCRs the scarcity of PCRs is addressed, which allows us
1787 to measure more resources later without affecting the definition and
1788 current use of the scarce regular PCRs. Note that NvPCRs have
1789 different semantics than PCRs: they are not available pre-userspace
1790 (i.e. initrd userspace creates them and initializes them), including
1791 in the pre-kernel firmware world; moreover, they require an explicit
1792 "anchor" initialization of a privileged per-system secret (in order
1793 to prevent attackers from removing/recreating the backing NV indexes
1794 to reset them). This makes them predictable only if the result of the
1795 anchor measurement is known ahead of time, which will differ on each
1796 installed system. Initialization of defined NvPCRs is done in
1797 systemd-tpm2-setup.service in the initrd. Information about the
1798 initialization of NvPCRs is measured into PCR 9, and finalized by a
1799 separator measurement. The NV index base handle is configurable at
1800 build time via the "tpm2-nvpcr-base" meson setting. It currently
1801 defaults to a value the TCG has shown intent to assign to Linux, but
1802 this has not officially been done yet. systemd-pcrextend and its
1803 Varlink APIs have been extended to optionally measure into an NvPCR
1804 instead of a classic PCR.
1805
1806 * A new service systemd-pcrproduct.service is added which is similar to
1807 systemd-pcrmachine.service but instead of the machine ID
1808 (i.e. /etc/machined-id) measures the product ID (as reported by SMBIOS
1809 or Devicetree). It uses a new NvPCR called "hardware" for this.
1810
1811 * systemd-pcrlock has been updated to generate CEL event log data
1812 covering NvPCRs too.
1813
1814 systemd-analyze:
1815
1816 * systemd-analyze gained a new verb "dlopen-metadata" which can show
1817 the dlopen() weak dependency metadata of an ELF binary that declares
1818 that.
1819
1820 * A new verb "nvpcrs" has been added to systemd-analyze, which lists
1821 NvPCRs with their names and values, similar to the existing "pcrs"
1822 operation which does the same for classic PCRs.
1823
1824 systemd-run/run0:
1825
1826 * run0 gained a new --empower switch. It will invoke a new session with
1827 elevated privileges – without switching to the root user.
1828 Specifically, it sets the full ambient capabilities mask (including
1829 CAP_SYS_ADMIN), which ensures that privileged system calls will
1830 typically be permitted. Moreover, it adds the session processes to
1831 the new "empower" system group, which is respected by polkit and
1832 allows privileged access to most polkit actions. This provides a much
1833 less invasive way to acquire privileges, as it will not change $HOME
1834 or the UID and hence risk creation of files owned by the wrong UID in
1835 the user's home. (Note that --empower might not work in all cases, as
1836 many programs still do access checks purely based on the UID, without
1837 Linux process capabilities or polkit policies having any effect on
1838 them.)
1839
1840 * systemd-run gained support for --root-directory= to invoke the service
1841 in the specified root directory. It also gained --same-root-dir (with
1842 a short switch -R) for invoking the new service in the same root
1843 directory as the caller's. --same-root-dir has also been added to run0.
1844
1845 sd-event:
1846
1847 * sd-event's sd_event_add_child() and sd_event_add_child_pidfd() calls
1848 now support the WNOWAIT flag which tells sd-event to not reap the
1849 child process.
1850
1851 * sd-event gained two new calls sd_event_set_exit_on_idle() and
1852 sd_event_get_exit_on_idle(), which enable automatic exit from the
1853 event loop if no enabled (non-exit) event sources remain.
1854
1855 Other:
1856
1857 * User records gained a new UUID field, and the userdbctl tool gained
1858 the ability to search for user records by UUID, via the new --uuid=
1859 switch. The userdb Varlink API has been extended to allow server-side
1860 searches for UUIDs.
1861
1862 * systemd-sysctl gained a new --inline switch, similar to the switch of
1863 the same name systemd-sysusers already supports.
1864
1865 * systemd-cryptsetup has been updated to understand a new
1866 tpm2-measure-keyslot-nvpcr= option which takes an NvPCR name to
1867 measure information about the used LUKS keyslot into.
1868 systemd-gpt-auto-generator now uses this for a new "cryptsetup"
1869 NvPCR.
1870
1871 * systemd will now ignore configuration file drop-ins suffixed with
1872 ".ignore" in most places, similar to how it already ignores files
1873 with suffixes such as ".rpmsave". Unlike those suffixes, ".ignore" is
1874 package manager agnostic.
1875
1876 * systemd-modules-load will now load configured kernel modules in
1877 parallel.
1878
1879 * systemd-integrity-setup now supports HMAC-SHA256, PHMAC-SHA256,
1880 PHMAC-SHA512.
1881
1882 * systemd-stdio-bridge gained a new --quiet option.
1883
1884 * systemd-mountfsd's MountImage() call gained support for explicitly
1885 controlling whether to share dm-verity volumes between images that
1886 have the same root hashes. It also learned support for setting up
1887 bare file system images with separate Verity data files and
1888 signatures.
1889
1890 * journalctl learned a new short switch "-W" for the existing long
1891 switch "--no-hostname".
1892
1893 * system-alloc-{uid,gid}-min are now exported in systemd.pc.
1894
1895 * Incomplete support for musl libc is now available by setting the
1896 "libc" meson option to "musl". Note that systemd compiled with musl
1897 has various limitations: since NSS or equivalent functionality is not
1898 available, nss-systemd, nss-resolve, DynamicUser=, systemd-homed,
1899 systemd-userdbd, the foreign UID ID, unprivileged systemd-nspawn,
1900 systemd-nsresourced, and so on will not work. Also, the usual memory
1901 pressure behaviour of long-running systemd services has no effect on
1902 musl. We also implemented a bunch of shims and workarounds to
1903 support compiling and running with musl. Caveat emptor.
1904
1905 This support for musl is provided without a promise of continued
1906 support in future releases. We'll make the decision based on the
1907 amount of work required to maintain the compatibility layer in
1908 systemd, how many musl-specific bugs are reported, and feedback on
1909 the desirability of this effort provided by users and distributions.
1910
1911 Contributions from: 0x06, Abílio Costa, Alan Brady, Alberto Planas,
1912 Aleksandr Mezin, Alexandru Tocar, Alexis-Emmanuel Haeringer,
1913 Allison Karlitskaya, Andreas Schneider, Andrew Halaney,
1914 Anton Tiurin, Antonio Alvarez Feijoo, Antonio Álvarez Feijoo,
1915 Arian van Putten, Armin Brauns, Armin Wolf, Bastian Almendras,
1916 Charlie Le, Chen Qi, Chris Down, Christian Hesse,
1917 Christoph Anton Mitterer, Colin Walters, Craig McLure,
1918 Daan De Meyer, Daniel Brackenbury, Daniel Foster, Daniel Hast,
1919 Daniel Rusek, Danilo Spinella, David Santamaría Rogado,
1920 David Tardon, Dimitri John Ledkov, Dr. David Alan Gilbert,
1921 Duy Nguyen Van, Emanuele Giuseppe Esposito, Emil Renner Berthing,
1922 Eric Curtin, Erin Shepherd, Evgeny Vereshchagin,
1923 Fco. Javier F. Serrador, Felix Pehla, Fletcher Woodruff, Florian,
1924 Francesco Valla, Franck Bui, Frantisek Sumsal, Gero Schwäricke,
1925 Goffredo Baroncelli, Govind Venugopal, Guido Günther, Haiyue Wang,
1926 Hans de Goede, Henri Aunin, Igor Opaniuk, Ingo Franzki, Itxaka,
1927 Ivan Kruglov, Jelle van der Waa, Jeremy Kerr, Jesse Guo,
1928 Jim Spentzos, Joshua Krusell, João Rodrigues, Justin Kromlinger,
1929 Jörg Behrmann, Kai Lueke, Kai Wohlfahrt, Le_Futuriste,
1930 Lennart Poettering, Luca Boccassi, Lucas Adriano Salles,
1931 Lukáš Nykrýn, Lukáš Zaoral, Managor, Mantas Mikulėnas,
1932 Marc-Antoine Riou, Marcel Leismann, Marcos Alano, Marien Zwart,
1933 Markus Boehme, Martin Hundebøll, Martin Srebotnjak, Masanari Iida,
1934 Matteo Croce, Maximilian Bosch, Michal Sekletár, Mike Gilbert,
1935 Mike Yuan, Miroslav Lichvar, Moisticules, Morgan, Natalie Vock,
1936 Nick Labich, Nick Rosbrook, Nils K, Osama Abdelkader, Oğuz Ersen,
1937 Pascal Bachor, Pasquale van Heumen, Pavel Borecki, Peter Hutterer,
1938 Philip Withnall, Pranay Pawar, Priit Jõerüüt, Quentin Deslandes,
1939 QuickSwift315490, Rafael Fontenelle, Rebecca Cran, Ricardo Salveti,
1940 Ronan Pigott, Ryan Brue, Sebastian Gross, Septatrix, Simon Barth,
1941 Stephanie Wilde-Hobbs, Taylan Kammer, Temuri Doghonadze,
1942 Thomas Blume, Thomas Mühlbacher, Tobias Heider, Vivian Wang,
1943 Xarblu, Yu Watanabe, Zbigniew Jędrzejewski-Szmek, anthisfan, cvlc12,
1944 dgengtek, dramforever, gvenugo3, helpvisa, huyubiao, jouyouyun, jsks,
1945 kanitha chim, lumingzh, n0099, ners, nkraetzschmar, nl6720, q66,
1946 theSillywhat, val4oss, 雪叶
1947
1948 — Edinburgh, 2025/12/17
1949
1950 CHANGES WITH 258:
1951
1952 Incompatible changes:
1953
1954 * Support for cgroup v1 ('legacy' and 'hybrid' hierarchies) has been
1955 removed. cgroup v2 ('unified' hierarchy) will always be mounted
1956 during system bootup and systemd-nspawn container initialization.
1957
1958 * The minimum kernel baseline version has been bumped to v5.4 (released
1959 in 2019), with the recommended version now going up to v5.7. Consult
1960 the README file for a list of required kernel APIs.
1961
1962 * The default access mode of tty/pts device nodes has been changed to
1963 0600, which was 0620 in the older releases, due to general security
1964 concerns about terminals being written to by other users. To restore
1965 the old default access mode, use the '-Dtty-mode=0620' meson build
1966 option. (This effectively means "mesg n" is now the default, rather
1967 than "mesg y", see mesg(1) man page for help.)
1968
1969 * ACLs for device nodes requested by "uaccess" udev tag are now always
1970 applied/updated by systemd-udevd through "uaccess" udev builtin, and
1971 systemd-logind no longer applies/updates ACLs but triggers "change"
1972 uevents to make systemd-udevd apply/update ACLs. Hence, the "uaccess"
1973 udev tag should be set not only on "add" action but also on "change"
1974 action, and it is highly recommended that the rule is applied all
1975 actions except for "remove" action.
1976 Recommended example:
1977 ACTION!="remove", SUBSYSTEM=="hidraw", TAG+="uaccess"
1978 The following example does not work since v258:
1979 ACTION=="add", SUBSYSTEM=="hidraw", TAG+="uaccess"
1980 Udev rules files setting the "uaccess" tag need to have a file name
1981 starting with a number smaller than 73 to be applied.
1982
1983 * systemd-run's --expand-environment= switch, which was disabled
1984 by default when combined with --scope, has been changed to be
1985 enabled by default. This brings cmdline expansion of transient
1986 scopes on par with services.
1987
1988 * systemd-logind PAM sessions that previously were automatically
1989 determined to be of class "background", and which are owned by root
1990 or system accounts, will now automatically be set to class
1991 "background-light" instead. PAM sessions that previously were
1992 automatically determined to be of class "user", and which are owned
1993 by non-root system users, will now automatically be set to class
1994 "user-light" instead. This effectively means that cron jobs or FTP
1995 sessions (i.e. all PAM sessions that have no TTY assigned and neither
1996 are graphical) for system users no longer pull in a service manager
1997 by default. This behaviour can be changed by explicitly setting the
1998 session class (for example via the class= parameter to
1999 pam_systemd.so, or by setting the XDG_SESSION_CLASS environment
2000 variable as input for the service's PAM stack). This change does not
2001 affect graphical sessions, nor does it affect regular users. This is
2002 an incompatible change of sorts, since per-user services will
2003 typically not be available for such PAM sessions of system users.
2004
2005 * systemd-udevd ignores OWNER=/GROUP= settings with a non-system
2006 user/group specified in udev rules files, to avoid device nodes being
2007 owned by a non-system user/group. It is recommended to check udev
2008 rules files with 'udevadm verify' and/or 'udevadm test' commands if
2009 the specified user/group in OWNER=/GROUP= are valid.
2010 Similarly, systemd-networkd refuses User=/Group= settings with a
2011 non-system user/group specified in .netdev files for Tun/Tap
2012 interfaces.
2013
2014 NOTE: this change was partially reverted in v260 and the patch may be
2015 backported to the v259-stable branch.
2016
2017 * systemd-cryptenroll, systemd-repart and systemd-creds no longer
2018 default to locking TPM2 enrollments to the current, literal value of
2019 PCR 7, i.e. the PCR the SecureBoot policy is measured into by the
2020 firmware. This change reflects the fact that nowadays SecureBoot
2021 policies are updated (at least) as frequently as firmware code
2022 (simply because SecureBoot policy updates are typically managed by
2023 fwupd these days). The new default PCR mask for new TPM2 enrollments
2024 is thus empty by default. It is recommended to use managed
2025 systemd-pcrlock policies for binding to PCR 7 instead (as well as
2026 combining such policies with signed policies for PCR 11). Or in other
2027 words, it's recommended to make more use of the logic behind the
2028 --tpm2-public-key=, --tpm2-public-key-pcrs= and --tpm2-pcrlock=
2029 switches of the mentioned tools in place of --tpm2-pcrs=.
2030
2031 * Support for the SystemdOptions EFI variable has been removed.
2032
2033 * Meson options '-Dsplit-usr=', '-Drootlibdir=', '-Drootprefix='
2034 (deprecated in v255), '-Ddefault-hierarchy=' (deprecated in v256),
2035 and '-Dnscd=' (deprecated in v257) have been removed.
2036
2037 * OpenSSL is now the only supported cryptography backend for
2038 systemd-resolved and systemd-importd, and support for gnutls and
2039 gcrypt has been removed. Hence, 'gnutls' setting for the
2040 '-Ddns-over-tls=' meson option has been deprecated. Also, the
2041 '-Dcryptolib=' meson option has been deprecated. They will be removed
2042 in a future release.
2043
2044 * systemd-logind's session tracking, which used to be performed via a
2045 FIFO installed in the client, now uses PIDFDs. The file descriptor
2046 returned by CreateSession() and related calls is therefore unused.
2047 Moreover, the exit of the session leader process will immediately
2048 cause the session to be stopped.
2049
2050 * To work around limitations of X11's keyboard handling systemd's
2051 keyboard mapping hardware database (hwdb.d/60-keyboard.hwdb) so far
2052 mapped the microphone mute and touchpad on/off/toggle keys to the
2053 function keys F20, F21, F22, F23 instead of their correct key codes.
2054 This key code mangling has been removed from udev.
2055
2056 To maintain compatibility with X11 applications that rely on the old
2057 function key code mappings, this mangling has now been added to the
2058 relevant X11 keyboard driver modules. In order to ensure these keys
2059 continue to work, update to xf86-input-evdev >= 2.11.0 and
2060 xf86-input-libinput >= 1.5.0 before updating to systemd >= 258.
2061
2062 * The D-Bus method org.freedesktop.systemd1.StartAuxiliaryScope() has
2063 been removed, which was deprecated since v257.
2064
2065 * systemd-networkd previously emitted the machine ID as chassis ID
2066 through LLDP protocol, but now emits a deterministic ID,
2067 cryptographically derived from the machine ID as chassis ID. If you
2068 want to use the previous behavior, please set
2069 SYSTEMD_LLDP_SEND_MACHINE_ID=1 environment variable for
2070 systemd-networkd.
2071
2072 * Support for the !! command line prefix on ExecStart= lines (and
2073 related) has been removed, and if specified will be ignored. The
2074 concept was supposed to provide compatibility with kernels that
2075 predated the introduction of "ambient" process capabilities. However,
2076 the kernel baseline of the systemd project is now far beyond any
2077 kernels that lacked support for it, hence the prefix serves no
2078 purpose anymore.
2079
2080 * The default keyring for systemd-importd and related tools, shipped
2081 in /usr/lib/systemd/, has been renamed from import-pubring.gpg to
2082 import-pubring.pgp, as it is supported by other PGP tools as well as
2083 GPG. The local keyring /etc/systemd/import-pubring.gpg is still parsed
2084 if present, to preserve backward compatibility.
2085
2086 * Normally, per-user encrypted credentials are decrypted via the the
2087 systemd-creds.socket Varlink service, while the per-system ones are
2088 directly encrypted within the execution context of the intended
2089 service (which hence typically required access to /dev/tpmrm0). This
2090 has been changed: units that enable either PrivateDevices= or use
2091 DeviceAllow=/DevicePolicy= (and thus restrict access to device nodes)
2092 will now also make use of the systemd-creds.socket Varlink
2093 functionality, and will not attempt to decrypt the credentials
2094 in-process (and attempt to try to talk to the TPM for that).
2095 Previously, encrypted credentials for per-system services were
2096 incompatible with PrivateDevices= and resulted in automatic extension
2097 of the DeviceAllow= list. The latter behaviour has been removed.
2098
2099 * The command 'journalctl --follow' now exits with success on
2100 SIGTERM/SIGINT and when the pipe it is writing to is disconnected.
2101
2102 * Support for System V style system state control has been removed:
2103 - The /dev/initctl device node has been removed.
2104 - The initctl, runlevel, and telinit commands have been removed.
2105 - Support for system state control via the init command (e.g.
2106 'init 3') has been removed.
2107 - The units runlevel[0-6].target have been removed.
2108 - The concept of runlevels has been removed, so runlevel transitions
2109 are no longer recorded in the utmp/wtmp databases.
2110
2111 * Support for traditional /forcefsck and /fastboot files to control
2112 execution mode of fsck on boot has been removed from systemd-fsck. To
2113 control the mode, please use the fsck.mode= kernel command line option
2114 or newly introduced fsck.mode credential.
2115
2116 * Support for traditional /forcequotacheck file to control execution
2117 mode of quotacheck on boot has been removed from systemd-quotacheck.
2118 To control the mode, please use the quotacheck.mode= kernel command
2119 line option of newly introduced quotacheck.mode credential.
2120
2121 * systemd-stub v258 requires ukify v257.9 or v258 or newer when
2122 building a UKI. Due to an incompatible change necessary in order to
2123 fix a bug related to embedding a .sbat section larger than 512 bytes,
2124 ukify v257.8 or older will not be able to use systemd-stub v258 or
2125 newer.
2126
2127 Announcements of Future Feature Removals:
2128
2129 * (postponed to v260) Support for System V service scripts is deprecated
2130 and will be removed in v259. Please make sure to update your software
2131 *now* to include a native systemd unit file instead of a legacy System
2132 V script to retain compatibility with future systemd releases.
2133
2134 * Support for the legacy /run/lock/ directory is deprecated and will be
2135 removed in v259. Any software that still needs access to this legacy
2136 directory is encouraged to ship their own tmpfiles.d configuration to
2137 set it up according to their needs. In general, services should store
2138 their lock files in RuntimeDirectory=/$RUNTIME_DIRECTORY, and software
2139 directly executed by users should use $XDG_RUNTIME_DIR. Software
2140 working with specific devices (e.g. serial port devices) should flock
2141 the device directly rather than creating a separate lock file.
2142
2143 * Support for systemd-repart's FactoryReset EFI variable has been
2144 deprecated and support for it will be removed in v260. Use the newer,
2145 more generic FactoryResetRequest variable instead, which can be
2146 managed by "systemd-factory-reset request" and "systemd-factory-reset
2147 complete".
2148
2149 * The meson option '-Dintegration-tests=' has been deprecated, and will
2150 be removed in a future release.
2151
2152 * The legacy iptables support through libiptc will be removed in v259.
2153 Only nftables backend will be supported by systemd-networkd and
2154 systemd-nspawn since v259.
2155
2156 * (postponed to v260) Required minimum versions of following components
2157 are planned to be raised in the next release:
2158
2159 * Linux kernel >= 5.10 (recommended >= 5.14),
2160 * glibc >= 2.34,
2161 * libxcrypt >= 4.4.0 (libcrypt in glibc will be no longer supported),
2162 * util-linux >= 2.37,
2163 * elfutils >= 0.177,
2164 * openssl >= 3.0.0,
2165 * cryptsetup >= 2.4.0,
2166 * libfido2 >= 1.5.0,
2167 * libseccomp >= 2.4.0,
2168 * python >= 3.9.0.
2169
2170 Please provide feedback on systemd-devel if this would cause problems.
2171
2172 Service manager/PID1:
2173
2174 * The PrivateUsers= unit setting now accepts a new value "full", which
2175 is similar to "identity", but maps the whole 32bit UID range instead
2176 of just the first 2¹⁶.
2177
2178 * The ProtectHostname= unit setting now accepts a new value "private",
2179 which is similar to "yes", but allows the unit's processes to
2180 modify the hostname. Since a UTC namespace is allocated for the unit
2181 this hostname change remains local to the unit, and does not affect
2182 the system as a whole. Optionally, the "private" string may be
2183 suffixed by a colon and a literal hostname specification, which is
2184 then used to initialize the hostname of the namespace to.
2185
2186 * .mount units now also support systemd credentials
2187 (i.e. SetCredential=/LoadCredential=/ImportCredential= and related
2188 settings). Previously this was available for service units only.
2189
2190 * A new unit file condition ConditionKernelModuleLoaded= has been added
2191 that may be used to check if a certain kernel module is already
2192 loaded (or built into the kernel). This is used to shortcut
2193 [email protected] instances, reducing redundant explicit modprobe
2194 invocations at boot to cover for kernels that have various subsystems
2195 built-in, while still providing support for kernels that have those
2196 subsystems built as loadable modules.
2197
2198 * Encrypted systemd service credentials are now available for user
2199 services too, including if locked to TPM. Previously, they could only
2200 be used for system services.
2201
2202 * Services instantiated for Accept=yes socket units will now include
2203 the Linux socket cookie (SO_COOKIE) in the instance name, as well as
2204 the PIDFD inode ID for the peer (the latter is only available for
2205 AF_UNIX sockets). This should make it easier to match specific
2206 service instances to the connections and peers they are associated
2207 with.
2208
2209 * The security rules enforced by the per-unit AttachProcesses() bus API
2210 call have been relaxed a bit: unprivileged clients may now use the
2211 call on arbitrary processes which run in any user namespace owned by
2212 the client's UID. Previously, a stricter rule applied that required
2213 the UIDs of the process to move and of the client to match exactly.
2214
2215 * A new per-unit RemoveSubgroup() D-Bus API call has been added that
2216 makes the service manager attempt to remove a sub-cgroup of units
2217 with cgroup delegation enabled. This is useful for unprivileged user
2218 namespace operation, where subgroups might be owned by user IDs that
2219 do not match the user ID the unit was delegated to, as is typical in
2220 user namespace scenarios. Per-user service managers will use this new
2221 call provided by the per-system service manager to clean up user
2222 units that contain cgroups owned by user namespace UIDs.
2223
2224 * .mount units gained support for a special x-systemd.graceful-option=
2225 pseudo-mount option, which may be used to list additional mount
2226 options that shall be used for the mount when it is established,
2227 under the condition the local kernel supports them. If the local
2228 kernel does not, they are automatically removed from the option
2229 string. This only works for kernel-level mount options, not for those
2230 implemented in userspace. This is useful for various purposes, for
2231 example to include "usrquota" for tmpfs mount options where that's
2232 supported.
2233
2234 * Per-user quota is now enabled on /dev/shm/ and /tmp/ (the latter only
2235 if backed by tmpfs).
2236
2237 * If PAMName= is used for a service and the PAM session prompts for a
2238 password, it will now be queried via the systemd-ask-password
2239 logic. Previously the prompt would simply be denied, typically causing
2240 the PAM session (and thus service activation) to fail. One effect of
2241 this change is that when lingering is enabled for a systemd-homed
2242 user the user's password will now be prompted at boot to unlock the
2243 user's home directory in order to be able to start the per-user
2244 service manager early, as requested.
2245
2246 * The $MAINPID and $MANAGERPID environment variables we pass to
2247 processes executed for service units are now paired with new
2248 environment variables $MAINPIDFDID and $MANAGERPIDFDID. These new
2249 environment variables contain the numeric inode ID of the pidfd for
2250 the relevant process. As these 64bit IDs are unique for all processes
2251 of a specific Linux boot they can be used to race-freely reference a
2252 process, unlike the PID which is subject to races by recycling.
2253
2254 * So far the ConditionHost= condition matched against the local host
2255 name and machine UUID. It now also matches against the local product
2256 ID of the system (as provided by SMBIOS/DMI) and the boot ID.
2257
2258 * A new setting DelegateNamespaces= for units has been added, which
2259 controls which type of Linux namespaces to delegate to the invoked
2260 unit processes. This primarily controls if the listed namespace types
2261 shall be owned by the host user namespace, or by the private user
2262 namespace of the unit. In the former case services cannot modify the
2263 relevant namespaces since they don't own it, in the latter case they
2264 can.
2265
2266 * If the service manager receives a RESTART_RESET=1 sd_notify() message
2267 from a service, it will now reset the automatic restart counter it
2268 maintains for the service. This is useful to give services control
2269 over RestartMaxDelaySec=/RestartSteps= progress.
2270
2271 * The /etc/hostname file may now include question mark characters
2272 ("?"), which when read will be initialized by hexadecimal digits
2273 hashed from the machine ID. This is useful when managing a fleet of
2274 devices that each shall have a valid and distinct hostname, generated
2275 in a predictable fashion. Example: if /etc/hostname contains
2276 "foobar-????-????" each booted system will end up with a hostname
2277 such as "foobar-7aaf-846c" or similar.
2278
2279 * ConditionKernelVersion= has been replaced by a more generic
2280 ConditionVersion= setting, that can check the versions of more key
2281 components of the OS, besides the kernel. Initially, that's systemd's
2282 and glibc's versions. The older setting remains supported for
2283 compatibility.
2284
2285 * Slice units gained new ConcurrencySoftMax= and ConcurrencyHardMax=
2286 settings which control how many concurrent units may be active and
2287 queued for the slice at the same time. If more services are queued
2288 for a slice than the soft limit, they won't be dispatched until the
2289 concurrency falls below the limit again, but they remain in the job
2290 queue. If more services are queued than the hard limit the jobs will
2291 fail. This introduces a powerful job execution mechanism to systemd,
2292 with strong resource management, and support for hierarchial job
2293 pools (by means of slices).
2294
2295 * ExecStart= lines (and the other ExecXYZ= lines) now support a new '|'
2296 prefix that causes the command line to be invoked via a shell.
2297
2298 * A basic Varlink API is now implemented in the service manager that
2299 can be used to determine its current state, and list units and their
2300 states.
2301
2302 * Processes invoked via the .socket Accept=yes logic will now get an
2303 environment variable $SO_COOKIE that contains the Linux socket
2304 cookie (which otherwise can be acquired via getsockopt()) of the
2305 connection socket, formatted in decimal.
2306
2307 * When a service's configuration is reloaded (via "systemctl reload" or
2308 an equivalent operation), any confext images for the services are
2309 also reloaded.
2310
2311 * A new RandomizedOffsetSec= setting has been added to .timer units
2312 which allows configured of a randomized but stable time offset for
2313 when the timer shall elapse.
2314
2315 * Whenever a TTY is initialized by the service manager, an attempt is
2316 made to read the terminfo identifier from it via DCS sequences, as
2317 part of the regular ANSI sequence initialization scheme. The
2318 identifier is used to initialize $TERM. This is not done if $TERM is
2319 already set from some other sources. Note that the DCS sequence for
2320 this is widely supported, but not universal (at this point VTE-based
2321 terminal emulators lack the necessary support). This functionality
2322 should be particularly useful on serial TTYs as $TERM information
2323 will likely be initialized to a useful value instead of a badly
2324 guessed default of vt220.
2325
2326 * .socket units gained a new PassPIDFD= setting that controls the new
2327 SO_PASSPIDFD socket option for AF_UNIX socket. There's also a new
2328 setting AcceptFileDescriptors= that controls the new SO_PASSRIGHTS.
2329
2330 * A new job type "lenient" has been added, that is similar to the
2331 existing "fail" job mode, and which will fail the submitted
2332 transaction immediately if it would stop any currently running unit.
2333
2334 * .socket units gained a new pair of settings DeferTrigger= and
2335 DeferTriggerMaxSec= which modify triggering behaviour of the
2336 socket. When used this will cause the triggered unit to be enqueued
2337 with the new "lenient" job mode, and if the submission of the
2338 transaction fails it is later retried to be submitted (up to a
2339 configurable timeout), whenever a unit is stopped.
2340
2341 * The "preset" logic has been extended so that there are now three
2342 preset directories: one that declares the default enablement state
2343 for per-system services run on the host, one for per-user services,
2344 and – now new – one for per-system services that are run in the
2345 initrd. This reflects the fact that in many cases services that shall
2346 be enabled by default on the host should not be enabled by default in
2347 the initrd, or vice versa. Note that while the regular per-system
2348 preset policy defaults to enabled, the one for the initrd defaults to
2349 disabled.
2350
2351 * There are now new per-service settings
2352 StateDirectoryQuota=/StateDirectoryAccounting=,
2353 CacheDirectoryQuota=/CacheDirectoryAccounting=,
2354 LogsDirectoryQuota=/LogsDirectoryAccounting= which allow doing
2355 per-unit quota of the indicated per-unit directories. This is
2356 implemented via project quota, as supported by xfs and ext4. This
2357 does not support btrfs, currently. If quota accounting is enabled
2358 this information is shown in the usual "systemctl status" output.
2359
2360 * The service manager gained a new KillUnitSubgroup() syscall which may
2361 be used to send a signal to a sub-control group of the unit's control
2362 group. systemctl kill gained a new --kill-subgroup= switch to make
2363 this available from the shell.
2364
2365 * A new PrivateBPF= switch has been added for unit files, which may be
2366 used to mount a private bpffs instance for the unit's processes.
2367
2368 * Four new options added to mount the bpffs with the delegate options:
2369 BPFDelegateCommands= BPFDelegateMaps=
2370 BPFDelegatePrograms= BPFDelegateAttachments=
2371 These allow an unprivileged container to use some BPF functionalities.
2372 See also https://lwn.net/Articles/947173/
2373
2374 * New user manager services [email protected] and
2375 [email protected] and a machines.target unit to manage them
2376 have been added.
2377
2378 systemd-journald & journal-remote:
2379
2380 * journalctl's --setup-keys command now supports JSON output.
2381
2382 * HTTP compression negotiation has been added to journal-upload and
2383 journal-remote.
2384
2385 * journal-remote/journal-upload now support inserting additional HTTP
2386 fields into their requests, via the Header= configuration file setting.
2387
2388 * journalctl gained a new --synchronize-on-exit=yes switch. If
2389 specified in combination with --follow and the journalctl process
2390 receives SIGINT (for example because the user hits Ctrl-C), a
2391 synchronization request is enqueued to systemd-journald, and log
2392 output continues until it completes. Or in other words, when this
2393 option is used any log output submitted before the SIGINT is
2394 guaranteed to be shown before journactl exits.
2395
2396 * systemd-journald's Synchronize() Varlink call has been reworked so
2397 that it no longer returns only once the logging subsystem has become
2398 completely idle, but already when all messages queued before the call
2399 was initiated are definitely written to disk. Effectively this means
2400 that the call is now guaranteed to complete in bounded time, even
2401 though it's slightly weaker in effect.
2402
2403 * Many of systemd-journald's Varlink calls (such as the aforementioned
2404 Synchronize()) are now available to unprivileged clients.
2405
2406 systemd-udevd & systemd-hwdb:
2407
2408 * A new udev property ID_NET_BRING_UP_BEFORE_JOINING_BRIDGE= is now
2409 supported that may be set on network interface devices (via hwdb),
2410 and tells systemd-networkd to bring the interface up before joining
2411 it to a bridge device.
2412
2413 * A new udev property ID_NET_NAME_INCLUDE_DOMAIN= is now supported that
2414 may be set on network interface devices (via hwdb), that indicates
2415 that the automatic network device naming logic should suppress
2416 inclusion of the PCI domain in the naming scheme. This is used for
2417 Azure MANA devices.
2418
2419 * A new udev property ID_AV_LIGHTS= has been defined that may be set on
2420 USB controlled A/V lights. Devices marked like this (via hwdb) will
2421 have the uaccess logic enabled, i.e. they will be associated with a
2422 seat and unprivileged users will get access to them.
2423
2424 * udevadm's trigger command gained a switch --include-parents. If
2425 specified udevadm will not just trigger all devices matching whatever
2426 is specified otherwise on the command line, but also all parent
2427 devices of these devices.
2428
2429 * systemd-udevd now provides a Varlink interface with various runtime
2430 and lifecycle operations. It mostly replaces the previous private,
2431 undocumented "control" IPC API spoken between udevadm and
2432 systemd-udevd.
2433
2434 * .link files gained two new knobs ReceiveFCS= (which controls whether
2435 to pass the Frame Check Sequence value up the stack) and ReceiveAll=
2436 (which controls whether to accept damaged Ethernet frames). It also
2437 gained a knob PartialGenericSegmentationOffload= for controlling
2438 Partial GSO support.
2439
2440 * 'udevadm info/trigger/test/test-builtin' commands now also take device
2441 IDs to specify devices.
2442
2443 * udevadm test gained a new "--verbose" switch for generating
2444 additional debug output for the test.
2445
2446 * The OPTIONS= udev expression now supports the new "dump" value, which
2447 will result in the current event's status to be logged at the moment
2448 the expression is processed. This is useful for debugging udev rules.
2449
2450 * A new kernel command line option udev.trace= has been added that
2451 allows enabling udev's tracing logic while booting an OS. udevadm
2452 control gained a new --trace= switch to change the same setting at
2453 runtime.
2454
2455 * udevadm test gained a new --extra-rules-dir= switch which may be
2456 used to look for udev rules in additional directories for testing
2457 purposes.
2458
2459 * udevadm gained a new "cat" command for showing the contents of
2460 installed rules files.
2461
2462 * udev will now create /dev/input/by-{id,path}/* style symlinks for
2463 hidraw devices too. (Previously these would be created for other
2464 input device types only.)
2465
2466 * *.link files gained support for configuring various Energy Efficient
2467 Ethernet (EEE) settings in a new [EnergyEfficientEthernet] section.
2468
2469 * udevadm test gained a new --json= switch for generating JSON output.
2470
2471 * A new udev builtin "factory_reset" has been added that simply reports
2472 if the system is currently booted in factory reset mode. This can be
2473 used by udev rules that determine the location of the root file
2474 system, in order to decide whether to expect that a root file already
2475 exists or still needs to be created/formatted/encrypted.
2476
2477 * The "blkid" builtin of udev has been changed to determine the host
2478 root file system by looking for the used ESP/XBOOTLDR only while
2479 running in the initrd. When running after the initrd→host transition
2480 it now just uses the root file system already mounted to /. Of
2481 course, usually this should have the same results, but there are
2482 situations thinkable where the ESP is on one disk and the root fs on
2483 another, and we better not second guess this once we transitioned
2484 onto the root file system.
2485
2486 * A new udev builtin "dissect_image" has been added that uses the usual
2487 DDI image dissection code to identify partitions and their use and
2488 relationships. This is used by new udev rules to generate a set of
2489 symlinks in /dev/disk/by-designator/ that point to the various
2490 discovered partitions by their designator.
2491
2492 * Android debug USB interfaces (ADB DbC, ADB, Fastboot) are now
2493 automatically marked for unprivileged access, generically via a new
2494 ID_DEBUG_APPLIANCE= udev property. Or in other words, running "adb"
2495 again your Android phone connected via USB, set to debug mode should
2496 just work without any additional rules.
2497
2498 * A new standard group "clock" has been introduced that is now used by
2499 default for PTP and RTC device nodes in /dev/.
2500
2501 systemd-networkd:
2502
2503 * systemd-networkd now supports configuring the timeout for IPv4
2504 Duplicate Address Detection via a new setting
2505 IPv4DuplicateAddressDetectionTimeoutSec=. The default timeout value
2506 has been changed from 7 seconds to 200 milliseconds.
2507
2508 * systemd-networkd gained support for IPv6 SIP, i.e. DHCPv6 options
2509 SD_DHCP6_OPTION_SIP_SERVER_DOMAIN_NAME (21) and
2510 SD_DHCP6_OPTION_SIP_SERVER_ADDRESS (22), controlled by a new UseSIP=
2511 option in the [DHCPv6] section.
2512
2513 * A new MPLSRouting= setting in the [Network] section in .network files
2514 can be used to control whether Multi-Protocol Label Switching is
2515 enabled on an interface.
2516
2517 * A system-wide default for ClientIdentifier= may now be set in
2518 networkd.conf. (Previously this had to be configured individually in
2519 each .network file.)
2520
2521 * PersistLeases= setting in [DHCPServer] section now also accepts
2522 "runtime", to make the DHCP server saves and loads bound leases on
2523 the runtime storage.
2524
2525 * A new Preference= setting has been added to the [IPv6RoutePrefix]
2526 section to configure the route preference field.
2527
2528 * New LinkLocalLearning=, Locked=, MACAuthenticationBypass=,
2529 VLANTunnel= settings have been added the [Bridge] section of .network
2530 files.
2531
2532 * .netdev files gained new External=/VNIFilter= settings in [VXLAN]
2533 section.
2534
2535 * .netdev files can now configure HSR/SRP network devices too, via a
2536 new [HSR] section.
2537
2538 * The LLDP client will now pick up the VLAN Id from LLDP data. The LLDP
2539 sender will now send this field on VLAN devices.
2540
2541 * The DHCPv4 client in systemd-networkd now also supports BOOTP (via a
2542 new BOOTP= setting).
2543
2544 * The Local= setting in [Tunnel] section gained a new "dhcp_pd" value
2545 to allow setting the local address based on dhcp-pd addresses.
2546
2547 sd-varlink & sd-json:
2548
2549 * An API call sd_varlink_reset_fds() has been added that undoes the
2550 effect of sd_varlink_push_fd() (the API for submitting file
2551 descriptors to send along with a method call), without actually
2552 sending a Varlink message.
2553
2554 * An API call sd_varlink_server_listen_name() has been added that is
2555 just like sd_varlink_server_listen_auto() but takes one additional
2556 parameter: the file descriptor name (in the sense of $LISTEN_FDNAMES)
2557 to look for, instead of "varlink". This is useful for services that
2558 implement multiple Varlink services on distinct sockets and shall be
2559 activatable through either.
2560
2561 * A pair of API calls sd_json_variant_type_from_string() and
2562 sd_json_variant_type_to_string() have been added that may be used to
2563 convert the JSON variant type identifier into a string representation
2564 and back.
2565
2566 * A pair of API calls sd_varlink_get_input_fd() and
2567 sd_varlink_get_output_fd() have been added that allow querying the
2568 connection file descriptors individually for each direction, in case
2569 two distinct file descriptors are used (for example in stdin/stdout
2570 scenarios).
2571
2572 * A new API call sd_varlink_get_current_method() has been added which
2573 reports the method call name currently being processed.
2574
2575 * Two new flags SD_VARLINK_SERVER_ALLOW_FD_PASSING_INPUT and
2576 SD_VARLINK_SERVER_ALLOW_FD_PASSING_OUTPUT have been defined, which
2577 may be passed to sd_varlink_server_new(), and ensure that any
2578 connections associated with the server instance are automatically
2579 created with file descriptor passing enabled for input or output.
2580
2581 * The "io.systemd.System" fallback Varlink errors that sd-varlink
2582 generates for Linux 'errno' style error numbers now carry both the
2583 numeric value (as before) and the symbolic name (i.e. "ENOENT"),
2584 ensuring that the error remains somewhat portable (as the numeric
2585 values are Linux and possibly architecture-specific).
2586
2587 * The generic "io.systemd.service" Varlink service that various of our
2588 long-running services implement, gained a new GetEnvironment() call
2589 that returns the current environment block of the service's main
2590 process. In addition, this service interface has been implemented in
2591 many more long-running services.
2592
2593 * A new sd-varlink call sd_varlink_get_description() has been added
2594 that returns the string previously set via
2595 sd_varlink_set_description().
2596
2597 * A new sd-varlink API call sd_varlink_get_n_fds() has been added that
2598 returns the number of pending incoming file descriptors on the
2599 current message.
2600
2601 * A new flag SD_VARLINK_SERVER_MODE_MKDIR_0755 may now be ORed into the
2602 mode parameter of sd_varlink_server_listen_address(). If specified
2603 then any leading directories in the provided AF_UNIX socket path are
2604 automatically created with an 0755 access mode, should they be
2605 missing.
2606
2607 * sd_varlink_idl_parse() and sd_varlink_interface_free() have been
2608 added to sd-varlink, which can be used to parse Varlink IDL data.
2609
2610 varlinkctl:
2611
2612 * varlinkctl gained a new --exec switch. When used a command line of a
2613 command to execute once a Varlink method call reply has been received
2614 may be specified. The command will receive the method call reply on
2615 standard input in JSON format, and any passed file descriptors via
2616 the $LISTEN_FDS protocol. This is useful for invoking method calls
2617 that return file descriptors from shell scripts.
2618
2619 * varlinkctl gained a new --push-fd= switch which may be used to issue
2620 a Varlink method call and send along one or more file descriptors on
2621 transports that support it (i.e. AF_UNIX).
2622
2623 sd-device:
2624
2625 * A new API call sd_device_enumerator_add_all_parents() has been added
2626 that may be used to include all parent devices of otherwise matching
2627 devices in the enumeration.
2628
2629 * A new API call sd_device_get_sysattr_value_with_size() has been added
2630 that returns a sysfs attribute file in binary form along with its
2631 size.
2632
2633 systemd-logind:
2634
2635 * A new configuration knob WallMessages= has been added to logind.conf,
2636 which may be used to control whether wall(1) style messages shall be
2637 sent to all consoles when the system goes down.
2638
2639 * A new pseudo session class "none" has been defined. This may be used
2640 with the class= parameter of pam_systemd.so (and some other places)
2641 to disable allocation of a systemd-logind session for a specific
2642 session. Note that this is not a recommended mode of operation, as
2643 such "ghost" sessions will not be properly accounted for, and are
2644 excluded from the per-user/per-session resource accounting.
2645
2646 * Two new session classes "user-light"/"user-early-light" have been
2647 added, that are just like the regular "user"/"user-early" session
2648 classes, but differ in one way: they do not cause activation of the
2649 per-user service manager. These new session classes are now used for
2650 logins of non-regular users which are used in a non-interactive way.
2651
2652 * The pidfd inode ID of a session's leader process is now exposed as
2653 D-Bus property for session objects, in addition to the PID. The inode
2654 ID is a 64bit unique identifier for a process that is not vulnerable
2655 to recycling issues.
2656
2657 systemd-resolved:
2658
2659 * When issuing parallel A and AAAA lookups for the same domain name,
2660 and one succeeds quickly, we'll now shorten the timeout for the
2661 other. This should improve behaviour with DNS servers whose IPv6
2662 support is flaky and reply to A quickly but not at all to AAAA.
2663
2664 * The "Monitor" Varlink IPC API of systemd-resolved now gained support
2665 for a new SubscribeDNSConfiguration() call that enables subscription
2666 to any DNS configuration changes, as they happen.
2667
2668 * systemd-networkd-wait-online gained a new --dns switch that ensures
2669 that not only network connectivity is available, but also DNS
2670 configuration is established in systemd-resolved, making use of the
2671 new, aforementioned Varlink interface.
2672
2673 * resolved.conf gained a new setting RefuseRecordTypes= which takes a
2674 list of RR types for which to refuse lookup attempts. This may be
2675 used to for example block A or AAAA lookups on IPv4- or IPv6-only
2676 hosts.
2677
2678 * A new DNS "delegate zone" concept has been introduced, which are
2679 additional lookup scopes (on top of the existing per-interface and
2680 the one global scope so far supported in resolved), which carry one
2681 or more DNS server addresses and a DNS search/routing domain. It
2682 allows routing requests to specific domains to specific servers.
2683 Delegate zones can be configured via drop-ins below
2684 /etc/systemd/dns-delegate.d/*.dns-delegate.
2685
2686 * "resolvectl query -t sshfp" will now decode the returned RR
2687 information, and show the cryptographic algorithms by name instead of
2688 number.
2689
2690 * The search domains hard cap has been bumped from 256 to 1024, in order
2691 to accommodate complex network setups.
2692
2693 systemd-hostnamed:
2694
2695 * The system hardware's serial number may now be read from DeviceTree
2696 too, in addition to the existing SMBIOS/DMI based logic.
2697
2698 * New properties for the Chassis Asset Tag, the hardware SKU, and the
2699 hardware version are now provided (backed by SMBIOS/DMI).
2700
2701 * hostnamed also exposes properties now for the image ID and image
2702 version (this is very useful on image-based systems).
2703
2704 systemd-stub, systemd-boot & bootctl:
2705
2706 * UEFI firmware images may now be embedded in UKIs (in an ".efifw" PE
2707 section), for use in bring-your-own-firmware scenarios in
2708 Confidential Computing. The firmware is matched via CHIDs to the
2709 local invoking VM, in a fashion conceptually close to the DeviceTree
2710 selection already available since v257. If a suitable firmware image
2711 is found at boot, and the system's firmware version does not match it,
2712 the update is applied and the system is rebooted. If the firmware
2713 matches, boot proceeds as usual.
2714
2715 * When systemd-stub is invoked through a network boot provided UKI, it
2716 will now query the source URL and write it to the LoaderDeviceURL EFI
2717 variable. This may then be used by Linux userspace to look for
2718 further resources (such as a root disk image) at the same location.
2719
2720 * systemd-boot now understands two new Boot Loader Specification Type #1
2721 stanzas: "uki" and "uki-url", which is very similar to "efi" and
2722 "linux", and references an UKI, the latter on a remote HTTP/HTTPS
2723 server. The latter is particularly relevant for implementing a fully
2724 UKI based boot process, but with network provided UKI images.
2725
2726 * systemd-boot now looks for the special SMBIOS Type #11 vendor strings
2727 io.systemd.boot.entries-extra=, and synthesizes additional boot menu
2728 entries from the provided data. This is useful with systemd-vmspawn's
2729 --smbios11= switch, see below.
2730
2731 * systemd-stub now defaults to a minimum of 120 available PE sections,
2732 instead of the previous default of 30. This reflects the fact that
2733 multi-profile UKI typically require a lot more sections than
2734 traditional single-profile UKIs. Note that this is just a
2735 compile-time default, downstream distributions might choose to raise
2736 this further – in particular on ARM systems where many Devicetree
2737 blobs shall be embedded into an UKI.
2738
2739 * systemd-boot's loader.conf configuration file gained a new
2740 "reboot-on-error" setting which controls what to do if booting a
2741 selected entry fails, i.e. whether to reboot or just show the menu
2742 again.
2743
2744 * bootctl's --no-variables switch has been replaced by
2745 --variables=yes/no. By setting --variables=yes modification of EFI
2746 variables can be forced now in environments where we'd previously
2747 automatically turn this off (e.g. in choot() contexts).
2748
2749 * bootctl's --graceful is now implicitly enabled when running in a
2750 chroot, to ease integration in packaging scriptlets.
2751
2752 * systemd-stub gained support for a couple of "extension" CHIDs, that
2753 are not part of the Microsoft's original spec, and which include EDID
2754 display identification information in the hash. This may be used to
2755 match Devicetree blobs in UKIs. "systemd-analyze chid" has been
2756 updated to support these extension CHIDs, too. (They are clearly
2757 marked as extensions CHIDs, to emphasize they are systemd's own
2758 invention, and not based on the Windows CHID spec.)
2759
2760 * systemd-boot's loader.conf configuration file gained a new
2761 secure-boot-enroll-action setting which controls the action to take
2762 once automatic Secure Boot keys have been enrolled, i.e. whether to
2763 reboot or whether to shut down the system.
2764
2765 * Userspace may set a new LoaderSysFail EFI variable. It is used by
2766 systemd-boot: when set and the system firmware reports some kind of
2767 system failure (for now this is pretty much only about failed
2768 firmware updates), systemd-boot will use the specified entry instead
2769 of following the usual fallback entry selection logic. bootctl gained
2770 a new "set-sysfail" verb to set this variable.
2771
2772 * systemd-boot will now set LoaderTpm2ActivePcrBanks EFI variable to
2773 let the userspace know which TPM2 PCR banks are available. This is
2774 more reliable then trying to figure this out through sysfs.
2775
2776 * systemd-stub will now also load global sysexts and confexts from
2777 ESP/loader/extensions/*.{sysext,confext}.raw.
2778
2779 systemd-nsresourced & systemd-mountfsd:
2780
2781 * When a new user namespace is registered and a name for it must be
2782 supplied, this name may now optionally be mangled automatically so
2783 that it follows the naming rules for namespaces employed. This makes
2784 it easier to provide suitable identifiers to the service, without any
2785 client-side preparations or clean-ups, and thus ensures allocation of
2786 a userns can ultimately "just work".
2787
2788 * A special, fixed UID/GID range has been defined called the "foreign"
2789 UID/GID range. It's intended to be used to persistently own
2790 bootable OS/container images on disk (i.e. OS trees that use a
2791 UID/GID assignments not local to the host, but "foreign", i.e. they
2792 have their own /etc/passwd + /etc/group table or similar database),
2793 so that they can be mapped to other user namespace UID/GID ranges at
2794 runtime through ID-mapped mounts.
2795
2796 * systemd-mountfsd gained a new IPC call accessible to unprivileged
2797 clients for acquiring an ID-mapped mount for any OS/container
2798 directory tree which is itself owned by the foreign UID/GID range,
2799 and has a parent directory owned by the caller's UID. This means the
2800 systemd-nsresourced/systemd-mountfsd combination is now suitable for
2801 running unprivileged containers both from a disk image and from a
2802 directory tree.
2803
2804 * When activating a DDI via mountfsd's MountImage() call the returned
2805 data will now include the literal path to attach each returned path
2806 to, to simplify implementation of clients.
2807
2808 * systemd-nsresourced gained an API for allocating a network TAP device
2809 to associate with a user namespaces. This can be used by unprivileged
2810 VMMs, to acquire IP networking. The network interface associated with
2811 the TAP device comes with a matching .link and .network file, so that
2812 systemd-networkd will set up IP routing (with masquerading) on it
2813 automatically.
2814
2815 * systemd-nsresourced will now always ask polkit for authorization of
2816 its operations, even if they are supposed to be accessible to
2817 unprivileged clients, so that the PK policy has the last word.
2818
2819 * systemd-nsresourced gained a new API call MakeDirectory(), which
2820 creates a new directory, owned by the foreign UID range. It's
2821 supposed to be used in conjunction with MountDirectory() for creating
2822 and populating new container trees within user/$HOME context.
2823
2824 systemd-nspawn:
2825
2826 * Support for unprivileged invocation of container images stored in
2827 plain directories has been added, using the new IPC APIs provided by
2828 "systemd-mountfsd", see above.
2829
2830 * systemd-nspawn's --private-users= switch now supports a new value
2831 "managed", which will ensure allocation of a userns via
2832 systemd-nsresourced, even if run privileged.
2833
2834 * If systemd-nspawn is used interactively, two new special key
2835 sequences can be used to trigger an immediate clean shutdown or
2836 reboot of the container with systemd running as PID 1: '^]^]p' for
2837 shutdown and '^]^]r' for reboot. This is in addition to the
2838 previously supported '^]^]^]' which triggers immediate shutdown
2839 without going through the usual shutdown logic.
2840
2841 * systemd-nspawn will now invoke the TTY password agent if invoked
2842 interactively and without privileges. This makes sure unprivileged
2843 containers start to work even when no other polkit agent is currently
2844 running for the user. The usual --no-ask-password switch is now also
2845 available in systemd-nspawn to disable this.
2846
2847 * systemd-nspawn gained a new --bind-user-shell= switch which allows to
2848 tweak the shell field of users bound into a container with
2849 --bind-user=….
2850
2851 systemd-vmspawn:
2852
2853 * A new --smbios11= switch may be used to pass an SMBIOS Type #11
2854 vendor string easily into the booted process. This has various uses,
2855 one of them is to add additional menu entries to systemd-boot for a
2856 specific invocation. Example:
2857
2858 --smbios11=io.systemd.boot.entries-extra:particleos-current.conf=$'title ParticleOS Current\nuki-url http://example.com/somedir/uki.efi'
2859
2860 * A new switch --grow-image= has been added taking a size in bytes. If
2861 specified, the image booted into is grown to the specified size if
2862 found to be smaller.
2863
2864 * systemd-vmspawn supports unprivileged networking now, using
2865 systemd-nsresourced's new API to acquire a TAP network device
2866 unprivileged.
2867
2868 * systemd-vmspawn now supports --slice and --property= settings,
2869 matching systemd-nspawn.
2870
2871 * A new --tpm-state= setting allows precise control of TPM state
2872 persistency.
2873
2874 * A new --notify-ready= setting can be used to specify whether to
2875 expect a READY=1 notification from the guest.
2876
2877 systemd-machined:
2878
2879 * systemd-machined now provides a comprehensive Varlink IPC API.
2880
2881 * The pidfd inode ID of a machine's leader process is now exposed as
2882 D-Bus property for machine objects, in addition to the PID. The inode
2883 ID is a 64bit unique identifier for a process that is not vulnerable
2884 to recycling issues.
2885
2886 * A new "org.freedesktop.machine1.register-machine" polkit action is
2887 used when checking for privileges to register a machine. Previously,
2888 "org.freedesktop.machine1.create-machine" was used for creation and
2889 registration operations.
2890
2891 * systemd-machined now also tracks the "supervisor" process of a
2892 machine, i.e. the host process that manages the payload. This
2893 information is exposed through the Supervisor/SupervisorPIDFDId D-Bus
2894 properties and "supervisor"/supervisorProcessId" varlink properties.
2895
2896 systemd-measure, ukify, systemd-keyutil, systemd-sbsign:
2897
2898 * systemd-measure gained a new "policy-digest" verb. It's a lot like
2899 "sign" but instead of calculating the right TPM policy digest for a
2900 specific UKI to sign and then signing it, it leaves the latter step
2901 out. This is useful to implement offline signing of the policy digest
2902 of UKIS. ukify gained a --policy-digest option that exposes this
2903 logic.
2904
2905 * ukify gained a new --sign-profile= switch for signing a specific UKI
2906 profile (to support multi-profile UKIs).
2907
2908 * ukify gained a pair of --join-pcrsig= and --pcrsig= options which is
2909 useful for offline signing TPM PCR policies, as it allows inserting
2910 pre-prepared PCR signature blobs into a UKI.
2911
2912 * ukify gained a new --pcr-certificate= switch that takes the path to
2913 an X.509 certificate to use in place of a PEM public key, as provided
2914 via the existing --pcr-public=.
2915
2916 * systemd-keyutil gained a new verb "pkcs7" which can be used to
2917 convert between PKCS#1 and PKCS#7 signatures. The --content= switch
2918 may be used to generate inline signatures (as opposed to the default
2919 of detached signatures). It also gained a new --hash-algorithm=
2920 switch to select the hash algorithm for signatures.
2921
2922 * systemd-sbsign learnt support for offline SecureBoot signing via
2923 --prepare-offline-signing, --signed-data=, --signed-data-signature=.
2924
2925 TPM2:
2926
2927 * A new PCR phase string is now measured into PCR 11 when storage
2928 target mode is entered, ensuring that access to TPM key material can
2929 be taken away, once storage target mode is activated.
2930
2931 * Similarly, a new string is measured when booting into factory reset
2932 mode.
2933
2934 * A new service systemd-tpm2-clear.service has been introduced that can
2935 be used to request clearing of the local TPM on next reboot. It comes
2936 with a kernel command line option systemd.tpm2_allow_clear= that
2937 controls its effect. The unit is hooked into the generic
2938 factory-reset.target unit, so that it can do its thing when a factory
2939 reset is requested.
2940
2941 * If systemd-pcrextend (i.e. the tool making the various userspace TPM
2942 PCR measurements) fails to do its thing, an immediate reboot is now
2943 triggered, ensuring that somehow making PCR extensions fails cannot
2944 be used to gain access to TPM objects to which access should have
2945 been blocked already via PCR measurements.
2946
2947 * systemd-pcrlock gained a new "is-supported" verb that determines
2948 whether local TPM and system provide all necessary functionality for
2949 systemd-pcrlock to work. It does a superset of the checks
2950 "systemd-analyze has-tpm2" does, and additionally ensures that the
2951 TPM supports PolicyAuthorizeNV and SHA-256.
2952
2953 systemd-userdbd & systemd-homed:
2954
2955 * User records now support a new field "aliases" that may list
2956 additional names the user record shall be accessible under. Any
2957 string listed in the "aliases" array may be used wherever and
2958 whenever the primary name may be used too, for example when logging
2959 in. systemd-homed and in particular homectl have been updated to
2960 support configuration of such alias names.
2961
2962 * If a user record has an initialized "realm" field, then the record
2963 may now be referenced via the primary user name or any alias name,
2964 suffixed with "@" and the realm, too.
2965
2966 * User records gained new fields tmpLimit, tmpLimitScale, devShmLimit,
2967 devShmLimitScale which enforce quota on /tmp/ and /dev/shm/ at login
2968 time, either in absolute or in relative values. These values default
2969 to 80% for regular users, ensuring that a single user cannot easily
2970 DoS a local system by taking away all disk space in /tmp/. The
2971 homectl tool has been updated to make these new fields configurable.
2972
2973 * The userdb Varlink interface has been extended to support server-side
2974 filtering by UID/GID min/max, fuzzy name matching and user
2975 disposition. Previously this was supported by the userdbctl
2976 client-side only. With this, userdb providers may now optionally
2977 implement this server-side too in order to optimize the lookups.
2978
2979 * User records now support a concept of home "areas",
2980 i.e. subdirectories of the primary $HOME directory that a user can
2981 log into. This is useful to maintain separate development
2982 environments or configuration contexts, but within the ownership of
2983 the same user. Support for this is implemented in systemd-homed, but
2984 is conceptually open to other backends, too.
2985
2986 New home areas can be created via "mkdir -p ~/Areas/ && cp /etc/skel
2987 ~/Areas/foo", or removed by "rm -rf ~/Areas/foo". Whenever prompted
2988 for login and a user name is requested, it is possible to enter a
2989 username suffixed by "%" and the area name in order to log into the
2990 specified area of the user. (e.g. "bar%foo"). Effectively this
2991 ensures that $HOME and $XDG_RUNTIME_DIR include the area choice after
2992 login. Note that at this moment it's not possible to log into a full
2993 graphical session with this, since we'd have to start a per-area user
2994 service manager for that, and we currently do not do this. But we
2995 hope to provide this in one of the next releases. In order to
2996 implement all this user records gained a new "defaultArea" field,
2997 which is configurable with homectl's --default-area= switch.
2998
2999 * An explicit MIME type application/x.systemd-home is now used for all
3000 LUKS *.home files managed by systemd.
3001
3002 * userdbctl gained a new switch --from-file=. If used the tool will not
3003 look up a user or group record from the system's user database but
3004 instead read it from the specified JSON file, and then present it in
3005 the usual, human-readable fashion.
3006
3007 * systemd-homed gained D-Bus API calls for listing, adding, removing and
3008 showing use record signing keys.
3009
3010 * homectl gained the verbs "list-signing-keys", "get-signing-key",
3011 "add-signing-key", "remove-signing-key" and a switch
3012 --key-name=. These may be used to easily make a single home directory
3013 usable on multiple systems. A system credential
3014 home.add-signing-key.* has been added that allows provisioning such
3015 user record signing keys at boot.
3016
3017 * homectl gained a new switch "--dry-run" which can be used when
3018 registering/creating users, and which will show the user record data
3019 before it's submitted to systemd-homed. The tool will then terminate
3020 before the submission.
3021
3022 * User/group records' perMachine section now support negative matches
3023 too (i.e. for settings that apply to all systems but some selected
3024 few).
3025
3026 * systemd-homed gained a bus API call AdoptHome() for "adopting" a
3027 .home file or .homedir directory from a foreign system
3028 locally. homectl added a verb "adopt" exposing the new call. Together
3029 with the signing key management functionality described above it
3030 makes it very easy to migrate homes between systems.
3031
3032 * systemd-homed gained two new bus API calls RegisterHome() and
3033 UnregisterHome() for registering a home locally by providing just the
3034 user record, without any logic to actually create the home directory.
3035 homectl gained "register" and "unregister" verbs exposing this. This
3036 is useful for registering network user accounts locally, i.e. where
3037 some foreign user record and home directory already exists on some
3038 server, and just need to be registered locally. This can be used to
3039 make a local systemd-homed home directory securely accessible from
3040 some other system:
3041
3042 $ homectl update lennart --ssh-authorized-keys=… -N \
3043 --storage=cifs --cifs-service="//$HOSTNAME/lennart"
3044 $ homectl get-signing-key |
3045 ssh targetsystem homectl add-signing-key --key-name="$HOSTNAME".public
3046 $ homectl inspect -E lennart |
3047 ssh targetsystem homectl register -
3048 $ ssh lennart@targetsystem
3049
3050 There's also a new system credential 'home.register.*' that causes
3051 registration for the provided user record automatically at boot.
3052
3053 * homectl gained a new switch --seize= taking a boolean argument. If
3054 true when used together with the "create" or "register" verbs any
3055 cryptographic signature information is stripped from the user record,
3056 taking over the user record for local ownership. This switch is
3057 useful when migrating a home directory to a different host, without
3058 retaining the relationship to the originating host.
3059
3060 * homectl gained a new --match= switch which allows to generate
3061 accounts with perMachine matching sections.
3062
3063 * userdbctl gained a new verb "load-credentials", with a service unit
3064 systemd-userdb-load-credentials.service which invokes it. When
3065 invoked this command will look for any passed credentials named
3066 userdb.user.* or userdb.group.*. These credentials may contain
3067 user/group records in JSON format. They will be copied into
3068 /run/userdb/ (where static userdb JSON records can be placed), with
3069 the appropriate symlink from the UID/GID added in, as any membership
3070 relationships between user/groups replicated as .membership files. Or
3071 in other words: it's very easy to provision a complete user/group
3072 record in an invoked system, by providing the user/group JSON record
3073 as system credential. Note that these credentials are unrelated to
3074 similar credentials supported by systemd-homed. "userdb
3075 load-credentials" creates "static" user records via drop-in files in
3076 /run/userdb/ (and thus covers system users and suchlike) while
3077 systemd-homed creates only systemd-homed managed use (i.e. only
3078 regular users).
3079
3080 * User/group records gained a new "uuid" field that may be used to
3081 place an identifying UUID in the record.
3082
3083 systemd-run and run0:
3084
3085 * run0 gained a new --lightweight= switch which controls whether to
3086 pull in a service manager for the target session (i.e. this
3087 ultimately chooses between the "user"/"user-early" session class on
3088 one hand or the "user-light"/"user-early-light" session class on the
3089 other, see above).
3090
3091 * systemd-run gained a new --job-mode= switch for controlling the job
3092 mode when enqueuing the start job for the transient unit. This is
3093 similar to the switch of the same name of "systemctl start".
3094
3095 * run0 gained a new --area= switch for directly entering a specific
3096 home area (see above).
3097
3098 * systemd-run/run0 gained a new --pty-late switch that is just like
3099 --pty but sets up TTY forwarding only once the unit is fully
3100 activated. This is relevant for avoiding TTY ownership collisions between
3101 the TTY forwarding and potential password queries using the
3102 systemd-ask-password infrastructure. run0 now defaults to this mode for
3103 interactive operations.
3104
3105 * The --chdir= switch now accepts the special value '~' to force
3106 changing into the target user's home directory.
3107
3108 * run0 gained a new --via-shell switch that ensures any specified
3109 command is invoked via the target user's shell instead of directly.
3110
3111 DDI support & systemd-dissect:
3112
3113 * systemd-dissect gained a new --loop-ref-auto switch which initializes
3114 the --look-ref= field from a suitable string derived from the DDI
3115 filename.
3116
3117 * systemd-dissect's --attach command now supports a new --quiet switch
3118 that suppressed output of the loopback device node path that is
3119 usually shown.
3120
3121 * A generic service template [email protected] has been added that
3122 wraps "systemd-dissect --attach", and attaches a disk image whose
3123 path is encoded in the instance identifier of the unit to a new
3124 loopback block device. This may be used to attach arbitrary disk
3125 images to loopback devices at boot.
3126
3127 * There's now a per-user counterpart of /var/lib/machines/ defined as
3128 ~/.local/state/machines/. Various tools such as systemd-nspawn +
3129 systemd-vmspawn now will search this directory when looking for a
3130 disk image, when invoked in unprivileged user context.
3131 systemd-dissect's --discover command may now be combined with --user
3132 or --system to choose in which of the directory scopes to look for
3133 images.
3134
3135 * systemd-dissect gained a new --all switch. If specified the tool will
3136 not just discover DDIs (i.e. disk images) but also images stored in
3137 regular directories.
3138
3139 * systemd-dissect gained a new "--shift" switch for recursively
3140 re-chown()ing a directory tree from one set of UID/GIDs to another.
3141 This may be used to shift a tree from the base-0-UID range to the
3142 foreign UID range or back.
3143
3144 * systemd-dissect gained new --usr-hash= and --usr-hash-sig= options,
3145 that are similar to the existing --root-hash=/--root-hash-sig=
3146 options, but for the /usr/ partition. This allows the root hash of
3147 the /usr/ Verity volume and its signature to be specified.
3148
3149 * When dissecting/mounting a DDI disk image, and no Verity root hash or
3150 signature is provided, suitable values are now automatically
3151 discovered from the image itself.
3152
3153 * systemd-gpt-auto-generator now understands root=dissect and
3154 mount.usr=dissect as kernel command line options that explicitly
3155 request the full blown DDI dissector to be used to discover the root
3156 and /usr/ file system, including automatic Verity root hash and
3157 signature discovery, automatic handling of versioning, image policy
3158 enforcement and filtering and so on.
3159
3160 * The DDI dissection logic now understands a concept of partition
3161 "filtering". A partition filter is simply a per-designator globbing
3162 pattern to match the partition labels against. This may be used
3163 support parallel installations of multiple operating systems on the
3164 same disk, where each OS names its partitions with a specific prefix
3165 or similar. systemd-dissect gained a new --image-filter= switch to
3166 configure this filter. The new "dissect_image" udev plugin and
3167 systemd-gpt-auto-generator now understand the new
3168 systemd.image_filter= kernel command line switch configuring this
3169 filter for the system.
3170
3171 systemd-importd & importctl:
3172
3173 * systemd-pull/importctl now supports ASCII armored (*.asc) GPG signatures.
3174
3175 * The systemd.pull= and rd.systemd.pull= kernel command line switches
3176 (which may be used to automatically download a VM, container, confext,
3177 or sysext at boot) now understand a new flag "blockdev". When
3178 specified the downloaded image is attached to a loopback block device
3179 after download. This may be used to boot directly into a disk image
3180 downloaded via HTTP via a kernel command line like this:
3181
3182 rd.systemd.pull=raw,machine,verify=no,blockdev:image:https://192.168.100.1:8081/image.raw \
3183 root=/dev/disk/by-loop-ref/image.raw-part2
3184
3185 * systemd.pull=/rd.systemd.pull= also gained support for a new flag
3186 "bootorigin". If specified and if the system was network booted
3187 through systemd-stub (which now sets the LoaderDeviceURL EFI
3188 variable, see above), the URL to boot from is now automatically
3189 formed from the UKI network boot URL with a new suffix. Example:
3190
3191 rd.systemd.pull=raw,machine,verify=no,blockdev,bootorigin:rootdisk:image.raw.xz \
3192 root=/dev/disk/by-loop-ref/rootdisk.raw-part2
3193
3194 * The systemd.pull=/rd.systemd.pull= switches now also support a new
3195 flag "runtime=", taking a boolean argument. If true the downloaded
3196 image is placed below the /run/ hierarchy instead of /var/. It
3197 defaults to true for rd.systemd.pull= (i.e. for downloads made in the
3198 initrd), and false for systemd.pull= (i.e. for those made after the
3199 initrd→host transition).
3200
3201 * New generic target units imports-pre.target and imports.target have
3202 been introduced that are ordered before and after all downloads.
3203
3204 * systemd-importd gained support for downloading images compressed with
3205 zstd now, too. (In addition to .xz, .gz and .bz2.)
3206
3207 Factory Reset:
3208
3209 * A new tool systemd-factory-reset has been added that may be used to
3210 request or cancel a factory reset request for the next reboot. It is
3211 also accessible via its own Varlink API.
3212
3213 * A new target unit factory-reset-now.target has been added that
3214 executes an immediate factory reset. (Previously factory-reset.target
3215 existed already that requested it for next reboot).
3216
3217 * A new kernel command line option systemd.factory_reset= has been
3218 added for explicitly requesting a factory reset. (Implemented via a
3219 new systemd-factory-reset-generator)
3220
3221 * A new document explaining the factory reset logic in detail has been
3222 added. It is available online here:
3223
3224 https://systemd.io/FACTORY_RESET
3225
3226 systemd-repart:
3227
3228 * systemd-repart gained a new switch --join-signature= for supporting
3229 offline Verity signing.
3230
3231 * systemd-repart gained a new switch --append-fstab= for controlling
3232 how to write or append automatically generated /etc/fstab entries.
3233
3234 * CopyFiles= lines can now contain an "fsverity=copy" flag to preserve
3235 the fs-verity status of the source files when populating the
3236 filesystem.
3237
3238 * systemd-repart has been updated to automatically generate the
3239 extended attributes [email protected] understands (see
3240 below), for all partitions it recognizes. Controllable via the
3241 AddValidateFS= partition setting (which defaults to true).
3242
3243 * repart.d/ drop-ins gained a new setting FileSystemSectorSize= which
3244 allows configuring the sector size that file systems for newly
3245 formatted file systems explicitly.
3246
3247 * systemd-repart will now enforce a minimum size for ESP/XBOOTLDR
3248 partitions of 100M (on 512b sector drives) or 260M (on 4K sector
3249 drives), in accordance to the requirements for these kind of
3250 partitions.
3251
3252 * The Format= setting in repart.d/ files gained support for a special
3253 value "empty". This is a shortcut to set up an empty partition and
3254 set the partition label to "_empty", and set the "NoAuto" GPT
3255 flag. The former is useful as systemd-sysupdate recognizes empty
3256 partitions that way, the latter is useful to ensure that the
3257 partition is not automatically made used of as is, on any OS that
3258 supports GPT.
3259
3260 systemd-analyze:
3261
3262 * systemd-analyze gained a new "chid" verb, which shows the "Computer
3263 Hardware IDs" (CHIDs) of the local system. This is useful for
3264 preparing CHID-to-DeviceTree mappings when building UKIs.
3265
3266 * systemd-analyze gained a new "transient-settings" verb, which shows
3267 all unit settings one can configure dynamically via the
3268 "--property="/"-p" switch when invoking transient units.
3269
3270 * systemd-analyze gained a new "unit-shell" verb that invokes an
3271 interactive shell inside the namespaces of the main process
3272 of a specified unit. This is useful for debugging unit sandboxes, and
3273 getting an idea how things look like from the "inside" of a service.
3274
3275 * systemd-analyze gained a new "unit-gdb" verb to attach a debugger
3276 to a unit.
3277
3278 Other:
3279
3280 * systemd-ask-password now provides a small Varlink API to
3281 interactively query the user for a password using the usual agent
3282 logic. This makes it easier for external programs (for example
3283 daemons) to query for boot-time passwords and similar, using
3284 systemd's infrastructure.
3285
3286 * The logging logic in systemd's codebase now implements the
3287 DEBUG_INVOCATION= interface added to service management in v257. Or
3288 in other words: the RestartMode=debug setting may now be added for
3289 any of systemd's own service and has the intended effect of enabling
3290 debug logging if it gets automatically restarted.
3291
3292 * The "package note" specification ELF binaries has been extended to
3293 cover PE binaries (i.e. UEFI binaries), too.
3294
3295 * New kernel command line parameters systemd.break= and
3296 rd.systemd.break= have been introduced that insert interactive (as
3297 in: shell prompt) "breakpoints" into the boot process at various
3298 locations, in order to simplify debugging. For now four breakpoints
3299 are defined: "pre-udev", "pre-basic", "pre-mount",
3300 "pre-switch-root". Similar functionality has previously existed in
3301 the Dracut initrd generator, but is generalized with this new
3302 concept, and extended to the post-switch-root boot phases.
3303
3304 * The systemd-path tool now learnt new paths for the per-system and
3305 per-user credential store.
3306
3307 * A new tool systemd-pty-forward has been added that allocates a pseudo
3308 TTY ("PTY") and invokes a process on it, forwarding any output to the
3309 TTY it is invoked on. It can optionally apply background coloring and
3310 suchlike, and is mostly just a separate tool that makes the PTY
3311 forwarding logic used in systemd-nspawn, systemd-vmspawn, run0
3312 available separately.
3313
3314 * systemd-oomd can now reload its configuration at runtime, following
3315 the usual protocols.
3316
3317 * systemd-detect & ConditionVirtualization= now recognize the "Arm
3318 Confidential Compute Architecture" (cca) confidential virtualization.
3319
3320 * systemd-detect-virt now correctly distinguishes between bare-metal
3321 and virtualized machines in Google Compute Engine, and will not
3322 report the former as virtualized.
3323
3324 * systemd-sysusers now generates Linux audit records when it adds
3325 system users.
3326
3327 * systemd-firstboot's interactive prompts for locale or keymaps now
3328 support tab completion.
3329
3330 * systemd-mount gained support for a new --canonicalize= switch that
3331 may be used to turn off client-side path canonicalization before
3332 trying to unmount some path.
3333
3334 * systemd-notify gained a new --fork switch which inverts the role that
3335 systemd-notify plays in the sd_notify() protocol: instead of sending
3336 out notification messages, it will listen for them, forking off a
3337 command that is expected to send them. Once READY=1 is received
3338 systemd-notify will exit, leaving the child running. This is useful
3339 for correctly forking off processes that implement the sd_notify()
3340 protocol from shell scripts.
3341
3342 * systemd-fstab-generator now supports a root=bind:… syntax for
3343 creating bind mounts for the root file system. This is useful for
3344 booting into tarballs downloaded at boot. As an example, consider a
3345 kernel command line like this:
3346
3347 rd.systemd.pull=tar,machine,verify=no:root:http://192.168.100.1:8081/image.tar root=bind:/run/machines/root ip=any
3348
3349 * libapparmor is now loaded via dlopen() instead of using direct shared
3350 library linking. This allows downstream distributions to provide AA
3351 support as a runtime option instead of making the AA userspace a
3352 mandatory dependency.
3353
3354 * A new generic remote-integritysetup.target unit has been added that
3355 matches remote-veritysetup.target and remote-cryptsetup.target's role
3356 for remote block devices, but for dm-integrity devices.
3357
3358 * A new document about finding boot components and the root disk of the
3359 OS has been added. It's available online here:
3360
3361 https://systemd.io/ROOTFS_DISCOVERY
3362
3363 * Whenever any systemd tool begins or ends a new TTY context (i.e. takes
3364 over a TTY for some time) a new OSC sequence is now emitted, with
3365 various details about the context. This new OSC sequence can be
3366 interpreted by terminal emulators to visualize the context/source TTY
3367 output originates from or to show various kinds of metadata for
3368 it. The OSC sequence is specified in this document:
3369
3370 https://systemd.io/OSC_CONTEXT
3371
3372 Contexts are generated for systemd-nspawn/systemd-vmspawn boots, for
3373 run0 or systemd-run sessions, whenever PAM TTY sessions start or end,
3374 and when shell command executions start and end. Metadata sent along
3375 contains hostname, machine ID, boot ID, exit status, unit information
3376 and more.
3377
3378 * If PID 1 makes up a suitable $TERM for a TTY it activates a service
3379 on (in case there are no other hints on how to choose it) it will now
3380 also set $COLORTERM=truecolor. Moreover, if $COLORTERM or $NO_COLOR
3381 are set on the kernel cmdline we'll now import them into PID1's
3382 environment block, just like $TERM itself. Moreover, systemd-nspawn
3383 and run0 will now propagate $COLORTERM and $NO_COLOR from the calling
3384 to the target environment, if set, just like $TERM is already
3385 handled. Or to say this with different words: the triplet of $TERM,
3386 $COLORTERM, $NO_COLOR is now processed jointly and in similar ways,
3387 wherever appropriate.
3388
3389 * systemd-update-done gained a new --root= switch to operate in
3390 "offline" mode on a specific file system tree.
3391
3392 * A new template service [email protected] has been added
3393 that can validate usage of file systems. Specifically, it will look
3394 for certain extended attributes stored on the top-level directory
3395 inode of the mount, which may encode various constraints on use of
3396 the file system. For example, it may encode a directory path the file
3397 system must be mounted to, a GPT type UUID that must be used for the
3398 partition the file system is located in and more. This provides
3399 protection in case GPT auto-discovery is used to discover the mounts,
3400 but essential metadata outside of the file system itself has been
3401 tampered with. This operates under the assumption that the extended
3402 attributes on the root inode of the file system are protected by
3403 dm-verity or dm-crypt/dm-integrity, even if the GPT metadata has no
3404 equivalent cryptographic protection. If a file system carries these
3405 extended attributes but they do not match the current use and
3406 location of the file system an immediate reboot is triggered.
3407
3408 * systemd-gpt-auto-generator now understands a new mount option
3409 x-systemd.validatefs for /etc/fstab entries. If specified an instance
3410 of [email protected] is automatically pulled in by the
3411 relevant mount.
3412
3413 * systemd-fstab-auto-generator and systemd-gpt-auto-generator now
3414 understand root=off on the kernel command line which may be used to
3415 turn off any automatic or non-automatic mounting of the root file
3416 system. This is useful in scenarios where a boot process shall never
3417 transition from initrd context into host context.
3418
3419 * systemd-ssh-proxy now supports an alternative syntax for connecting
3420 to SSH-over-AF_VSOCK, in order to support scp and rsync better: "scp
3421 foo.txt vsock%4711:" should work now. (The pre-existing syntax used
3422 "/" instead of "%" as separator, which is ambiguous in scp/rsync
3423 context even if not for ssh itself.)
3424
3425 * "systemctl start" and related verbs now support a new --verbose
3426 mode. If specified the live log output of the units operated on is
3427 shown as long as the operation lasts.
3428
3429 * sd-bus: a new API call sd_bus_message_dump_json() returns a JSON
3430 representation of a D-Bus message.
3431
3432 * sd-daemon: a new call sd_pidfd_get_inode_id() has been added
3433 for acquiring the unique inode ID of a pidfd, coupling the
3434 $MAINPIDFDID/$MANAGERPIDFDID and session/machine leader pidfd IDs
3435 exposed as described above.
3436
3437 * systemd-coredump will now attach a new COREDUMP_DUMPABLE= journal
3438 field to all coredumps indicating the "dumpable" per-process flag (as
3439 settable via PR_SET_DUMPABLE) at the moment the coredump took
3440 place. It will also add a new journal field COREDUMP_BY_PIDFD= that
3441 indicates whether the coredump was acquired via a stable pidfd to the
3442 process.
3443
3444 * systemd-sysext (and portable services with sysexts applied) will now
3445 take the os-release "ID_LIKE=" field into account when validating that
3446 a sysext images is compatible with the underlying image. Previously
3447 it would only check "ID=".
3448
3449 * A new UID range has been defined for "greeters", i.e. graphical login
3450 prompt UIs that shall be security isolated from each other. This is
3451 supposed to be used by graphical display managers (specifically:
3452 gdm), to ensure that it is harder to exploit the UI sessions used to
3453 prompt the user for login credentials, in order to gain access to the
3454 prompts of other users.
3455
3456 * systemd-socket-activate gained a new --now switch which ensures the
3457 specified binary is immediately invoked, and not delayed until a
3458 connection comes in.
3459
3460 * systemd-ssh-generator will now generate the AF_VSOCK ssh listener
3461 .socket unit, so that a tiny new helper "systemd-ssh-issue" is
3462 invoked when the socket is bound, that generates a drop-in file
3463 /run/issue.d/50-ssh-vsock.issue that is shown by "login" and other
3464 subsystems at login time. The file reports the AF_VSOCK CID of the
3465 system, along with very brief information how to connect to the
3466 system via ssh-over-AF_VSOCK. Or in other words: if the system is
3467 booted up in an AF_VSOCK capable VM the console login screen shown
3468 once boot-up is complete will tell you how to connect to the system
3469 via SSH, if that's available.
3470
3471 * systemd-fsck gained fsck.mode and fsck.repair credentials support to
3472 control the execution mode of fsck.
3473
3474 * systemd-quotacheck gained quotacheck.mode credential support to
3475 control the execution mode of quotacheck.
3476
3477 Contributions from: 16mc1r, A. Wilcox, Aaron Rogers,
3478 Abderrahim Kitouni, Adam Williamson, Adrian Vovk, Ahmad Fatoum,
3479 Alberto Planas, Alex, Alex Xu (Hello71), Alexander Bruy,
3480 Alexander Krabler, Alexander Kurtz, Alexander Shopov,
3481 Alexander Stepchenko, Allison Karlitskaya, Aman Verma,
3482 Américo Monteiro, Andika Triwidada, AndreFerreiraMsc,
3483 Andreas Henriksson, Andreas Schneider, Andreas Stührk, Andres Beltran,
3484 Andrew Sayers, Andrii Chubatiuk, André Monteiro, Andy Shevchenko,
3485 Ani Sinha, Anthony Avina, Anthony Messina, Anton Ryzhov, Anton Tiurin,
3486 Antonio Alvarez Feijoo, Arian van Putten, Arkadiusz Bokowy, Arnaudv6,
3487 AsciiWolf, Avram Dorfman, Bastien Nocera, Beniamino Galvani,
3488 Brett Holman, Busayo Dada, ButterflyOfFire, Carlo Teubner, Chris Grant,
3489 Chris Hofstaedtler, Chris Mayo, Christian Glombek, Christian Hesse,
3490 Christopher Head, Colin Foster, Cosima Neidahl, Craig McLure,
3491 Daan De Meyer, Dai MIKURUBE, Dan McGregor, Dan Streetman,
3492 Daniel Foster, Daniel Rusek, Daniil, David C. Manuelda, David Härdeman,
3493 David Rheinsberg, David Tardon, DeKoile, Debarshi Ray, Deli Zhang,
3494 Devilish Spirits, Dimitri John Ledkov, Duncan Overbruck, Dusty Mabe,
3495 Eaterminer, Eisuke Kawashima, Emilio Sepulveda, Emir SARI,
3496 Emmanuel Ferdman, Enrico Tagliavini, Erik Larsson, Erin Shepherd,
3497 Ettore Atalan, Fabian Möller, Fabian Vogt, Fco. Javier F. Serrador,
3498 Federico Giovanardi, Felix Pehla, Fleuria, Florian Schmaus, Franck Bui,
3499 Frantisek Sumsal, Frede Braendstrup, Gabríel Arthúr Pétursson,
3500 Gavin Li, George Tsiamasiotis, Graham Clinch, Grimmauld, H A, Hang Li,
3501 Harrison Vanderbyl, Hendrik Wolff, Henri Aunin, Igor Opaniuk, Itxaka,
3502 Ivan Kruglov, Ivan Trubach, Jack Wu, Jacob McNamee, James Hilliard,
3503 Jan Engelhardt, Jan Fooken, Jan Kalabza, Jan Macku, Jan Vaclav,
3504 Jan Čermák, Jared Baur, Jaroslav Škarvada, Jasmine Andrever-Wright,
3505 Javier Francisco, Jelle van der Waa, Jeremy Linton, Jesper Nilsson,
3506 Jesse Guo, Jim Spentzos, Joaquim Monteiro, Joey Holtzman,
3507 John Rinehart, Jonas Gorski, Jordan Petridis, Jose Ortuno,
3508 Josh Triplett, Jules Lamur, Justinas Kairys, Jörg Behrmann,
3509 Kamil Páral, Katariina Lounento, Kevin P. Fleming, Khem Raj, KidGrimes,
3510 Kurt Borja, Lennart Poettering, Li Tian, Lin Jian, Linus Heckemann,
3511 Lorenzo Arena, Louis Sautier, LuK1337, Luca Boccassi,
3512 Lucas Adriano Salles, Luke Yeager, Lukáš Nykrýn, Luna Jernberg,
3513 Léane GRASSER, Marco Trevisan (Treviño), Marcos Alano,
3514 Mario Limonciello, Markus Kurz, Martin Homuth-Rosemann,
3515 Martin Hundebøll, Martin Srebotnjak, Martin Wilck, Mate Kukri,
3516 Matteo Croce, Matthew Schwartz, Matthias Gerstner, Matthias Lisin,
3517 Matthieu Baerts (NGI0), Matthieu LAURENT, MaxHearnden,
3518 Michael Catanzaro, Michael Ferrari, Michael Limiero, Michael Olbrich,
3519 Michal Koutný, Michal Sekletár, Michał Moczulski, Mike Yuan,
3520 Miroslav Lichvar, Morten Hauke Solvang,
3521 Muhammad Nuzaihan Bin Kamal Luddin, Myrrh Periwinkle, Nathan,
3522 NetSysFire, Nick Labich, Nick Owens, Nick Rosbrook, Nils K,
3523 Noel Georgi, Nuno Sá, Oliver Schramm, Paul Fertser, Pavithra Barithaya,
3524 Philip Freeman, Philip Withnall, Piotr Drąg, Pontus Lundkvist, Raura,
3525 Ricky Tigg, RocketDev, Ronan Pigott, Rostislav Lastochkin,
3526 Rudi Heitbaum, Ryan Blue, Ryan Thompson, Ryan Wilson, Salim B,
3527 Salvatore Cocuzza, Sam James, Sam Leonard, Samuel Dionne-Riel,
3528 Sea-Eun Lee, Septatrix, Sergey A, Shubhendra Kushwaha, Silvio Knizek,
3529 Solar Designer, SoloSaravanan, Sonia Zorba, Soumyadeep Ghosh,
3530 Stefan Hansson, Stefan Herbrechtsmeier, Steve Ramage,
3531 Temuri Doghonadze, TheHillBright, Thomas Hebb, Thorsten Kukuk,
3532 Tim Crawford, Tim Small, Tim Vangehugten, Tobias Heider,
3533 Tobias Klauser, Todd C. Miller, Tommi Rantala, Tommy Unger, Trollimpo,
3534 Ubuntu, Valentin David, Valentin Hăloiu, Vasiliy Kovalev,
3535 Vishal Chillara Srinivas, Vishwanath Chandapur, Vitaly Kuznetsov,
3536 Volodymyr Shkriabets, Vyacheslav Yurkov, Werner Sembach, Y T,
3537 Yaping Li, Yu Watanabe, ZIHCO, Zbigniew Jędrzejewski-Szmek,
3538 andrejpodzimek, anonymix007, anthisfan, cvlc12, damnkiwi6120, davjav,
3539 fishears, hanjinpeng, haxibami, herbrechtsmeier, honjow, hsu zangmen,
3540 igo95862, jane400, jinyaoguo, joo es, kanitha chim, keentux, kmeaw,
3541 luc-salles, madroach, maia x., msizanoen, naly zzwd, nkraetzschmar,
3542 nl6720, novenary, peelz, persmule, richfifeg, ssoss, tim tom, tuxmainy,
3543 tytan652, val4oss, ver4a, victor-ok, vlefebvre, wrvsrx, wtmpx,
3544 xinpeng wang, z z, Дамјан Георгиевски, наб, 铝箔, 김인수
3545
3546 — Edinburgh, 2025/09/17
3547
3548 CHANGES WITH 257:
3549
3550 Incompatible changes:
3551
3552 * The --purge switch of systemd-tmpfiles (which was added in v256) has
3553 been reworked: it will now only apply to tmpfiles.d/ lines marked
3554 with the new "$" flag. This is an incompatible change, and means any
3555 tmpfiles.d/ files which shall be used together with --purge need to
3556 be updated accordingly. This change has been made to make it harder
3557 to accidentally delete too many files when using --purge incorrectly.
3558
3559 * The systemd-creds 'cat' verb now expects base64-encoded encrypted
3560 credentials as input, for consistency with the 'decrypt' verb and the
3561 LoadCredentialEncrypted= service setting. Previously it could only
3562 read raw, unencoded binary data.
3563
3564 * Support for automatic flushing of the nscd user/group database caches
3565 has been dropped.
3566
3567 * The FileDescriptorName= setting for socket units is now honored by
3568 Accept=yes sockets too, where it was previously silently ignored and
3569 "connection" was used unconditionally.
3570
3571 * systemd-logind now always obeys block inhibitor locks, where previously
3572 it ignored locks taken by the caller or when the caller was root. A
3573 privileged caller can always close the other sessions, remove the
3574 inhibitor locks, or use --force or --check-inhibitors=no to ignore the
3575 inhibitors. This change thus doesn't affect security, since everything
3576 that was possible before at a given privilege level is still possible,
3577 but it should make the inhibitor logic easier to use and understand,
3578 and also help avoiding accidental reboots and shutdowns. New 'block-weak'
3579 inhibitor modes were added, if taken they will make the inhibitor lock
3580 work as in the previous versions. Inhibitor locks can also be taken by
3581 remote users (subject to polkit policy).
3582
3583 * systemd-nspawn will now mount the unified cgroup hierarchy into a
3584 container if no systemd installation is found in a container's root
3585 filesystem. $SYSTEMD_NSPAWN_UNIFIED_HIERARCHY=0 can be used to override
3586 this behavior.
3587
3588 * /dev/disk/by-id/nvme-* block device symlinks without an NVMe
3589 namespace identifier are now fixed to namespace 1 of the device. If
3590 no namespace 1 exists for a device no such symlink is
3591 created. Previously, these symlinks would point to an unspecified
3592 namespace, and thus not be strictly stable references to
3593 multi-namespace NVMe devices. These un-namespaced symlinks are mostly
3594 obsolete, users and applications should always use the ones with
3595 encoded namespace information instead. This change should not affect
3596 too many systems, because most NVMe devices only know a namespace 1
3597 by default.
3598
3599 * Support for cgroup v1 ('legacy' and 'hybrid' hierarchies) is now
3600 considered obsolete and systemd by default will ignore configuration
3601 that enables them. To forcibly reenable cgroup v1 support,
3602 SYSTEMD_CGROUP_ENABLE_LEGACY_FORCE=1 must additionally be set on the
3603 kernel command line.
3604
3605 Announcements of Future Feature Removals:
3606
3607 * The D-Bus method org.freedesktop.systemd1.StartAuxiliaryScope() is
3608 deprecated because accounting data and such cannot be reasonably
3609 migrated between cgroups. It is likely to be fully removed in a
3610 future release (reach out if you have use cases).
3611
3612 * The recommended kernel baseline version has been bumped to v5.4
3613 (released in 2019). Expect limited testing on older kernel versions,
3614 where "old-kernel" taint flag would also be set. Support for them
3615 will be phased out in a future release in 2025, i.e. we expect to bump
3616 the minimum baseline to v5.4 then too.
3617
3618 * The complete removal of support for cgroup v1 ('legacy' and 'hybrid'
3619 hierarchies) is scheduled for v258.
3620
3621 * Support for System V service scripts is deprecated and will be
3622 removed in v258. Please make sure to update your software
3623 *now* to include a native systemd unit file instead of a legacy
3624 System V script to retain compatibility with future systemd releases.
3625
3626 * To work around limitations of X11's keyboard handling systemd's
3627 keyboard mapping hardware database (hwdb.d/60-keyboard.hwdb) so far
3628 mapped the microphone mute and touchpad on/off/toggle keys to the
3629 function keys F20, F21, F22, F23 instead of their correct key codes.
3630 This key code mangling will be removed in the next systemd release.
3631 To maintain compatibility with X11 applications that rely on the old
3632 function key code mappings, this mangling has now been moved to the
3633 relevant X11 keyboard driver modules. In order to ensure these keys
3634 continue to work, update to xf86-input-evdev >= 2.11.0 and
3635 xf86-input-libinput >= 1.5.0 before updating to systemd >= 258.
3636
3637 * Support for the SystemdOptions EFI variable is deprecated.
3638 'bootctl systemd-efi-options' will emit a warning when used. It seems
3639 that this feature is little-used and it is better to use alternative
3640 approaches like credentials and confexts. The plan is to drop support
3641 altogether at a later point, but this might be revisited based on
3642 user feedback.
3643
3644 * systemd-run's switch --expand-environment= which currently is disabled
3645 by default when combined with --scope, will be changed in a future
3646 release to be enabled by default.
3647
3648 libsystemd:
3649
3650 * systemd's JSON API is now available as public interface of
3651 libsystemd, under the name "sd-json". The purpose of the library is
3652 to allow structures to be conveniently created in C code and
3653 serialized to JSON, and for JSON to be conveniently deserialized into
3654 in-memory structures, using callbacks to handle specific
3655 keys. Various data types like integers, floats, booleans, strings,
3656 UUIDs, base64-encoded and hex-encoded binary data, and arrays are
3657 supported natively. The library has been part of systemd for a while
3658 as internal component, and is now made publicly available. One major
3659 user of sd-json is sd-varlink (see below). Note that the
3660 documentation of sd-json is very much incomplete for now, but the
3661 systemd codebase provides plenty real-life code examples.
3662
3663 * systemd's Varlink IPC API is now available as part of libsystemd,
3664 under the name "sd-varlink". This library is a C implementation of
3665 the Varlink IPC system (https://varlink.org/) that has been adopted
3666 by systemd for various interfaces. It relies on the sd-json JSON
3667 component, see above. Note that the documentation of sd-varlink is
3668 very much incomplete for now, but the systemd codebase provides
3669 plenty real-life code examples.
3670
3671 * sd-bus gained a new call sd_bus_pending_method_calls() which returns
3672 the number of currently open asynchronous method calls initiated on
3673 this connection towards peers.
3674
3675 * sd-device gained a new call sd_device_monitor_is_running() that
3676 returns whether the specified monitor object is already running. It
3677 also gained sd_device_monitor_get_fd(),
3678 sd_device_monitor_get_events(), sd_device_monitor_get_timeout() and
3679 sd_device_monitor_receive() to permit sd-device to run on top of a
3680 foreign event loop implementation. It also gained
3681 sd_device_get_driver_subsystem() which returns the subsystem of
3682 driver objects. The new sd_device_get_device_id() call returns a
3683 short string identifying the device record.
3684
3685 System and Service Management:
3686
3687 * The environment variable $REMOTE_ADDR is now set when using
3688 per-connection socket activation for AF_UNIX stream sockets. It
3689 contains the AF_UNIX peer address of the connection. (Previously the
3690 environment variable was only set for IP sockets.)
3691
3692 * Multipath TCP (MPTCP) is now supported as a socket protocol for
3693 .socket units.
3694
3695 * A new /etc/fstab option x-systemd.wants= creates "Wants="
3696 dependencies. (This is similar to the previously available
3697 x-systemd.requires=.)
3698
3699 * The initialization of the system clock during boot and updates has
3700 been simplified: both PID 1 or systemd-timesyncd will pick the latest
3701 minimum time as indicated by the compiled-in epoch,
3702 /usr/lib/clock-epoch, and /var/lib/systemd/timesync/clock. See
3703 systemd(1) for an detailed updated description.
3704
3705 * The kernel's Ctrl-Alt-Delete handling is re-enabled during late
3706 shutdown, so that the user may use it to initiate a reboot if the
3707 system freezes otherwise.
3708
3709 * The new value "identity" for the unit setting PrivateUsers= may be
3710 used to request a user namespace with an identity mapping for the
3711 first 65536 UIDs/GIDs. This is analogous to the systemd-nspawn's
3712 --private-users=identity.
3713
3714 * The new value "disconnected" for the unit setting PrivateTmp= may be
3715 used to specify that a separate tmpfs instance should be used for
3716 /tmp/ and /var/tmp/ for the unit.
3717
3718 * The server manager (and various other tools too) use pidfds in more
3719 places to refer to processes.
3720
3721 * A build option -D link-executor-shared=false can be used to build
3722 the systemd-executor binary (added in a previous release) in a way
3723 where it does not link to shared libsystemd-shared-….so library.
3724 PID1 holds a reference to the executor binary that was on disk when
3725 the manager was started or restarted, but the shared libraries it is
3726 linked to are not loaded until the executor binary needs to be used.
3727 This partial static linking is a workaround for the issue where,
3728 during upgrades, the old libsystemd-shared-….so may have already
3729 been removed and the pinned executor binary will just fail to
3730 execute.
3731
3732 * The systemd.machine_id= kernel command line parameter interpreted by
3733 PID 1 now supports an additional special value: if set to "firmware"
3734 the machine ID is initialized from the SMBIOS/DeviceTree system
3735 UUID. (Previously this was already done automatically in VM
3736 environments, this extends the concept to any system, but only on
3737 explicit request via this option.)
3738
3739 * The ImportCredential= setting in service unit files now permits
3740 renaming of credentials as they are imported.
3741
3742 * The RestartMode= setting gained a new "debug" value. If specified and
3743 the service fails so that it shall be restarted it is invoked in
3744 "debugging mode". Debugging mode means that the $DEBUG_INVOCATION
3745 environment variable will be set to "1" for the new
3746 invocation. Moreover, any setting LogLevelMax= will be temporarily
3747 changed to "debug" for the next invocation. This mode is useful to
3748 automatically repeat invocation of tools in case they fail – but with
3749 additional logging or testing routines enabled.
3750
3751 * A new service setting BindLogSockets= has been added that
3752 controls whether the AF_UNIX sockets required for logging shall be
3753 bind mounted to the mount sandbox allocated for the service.
3754
3755 * At early boot, PID 1 will now optionally load a policy for the new
3756 Linux IPE LSM.
3757
3758 * Transient services (as invoked by the StartTransientUnit() D-Bus
3759 method) may now receive additional, arbitrary file descriptors to
3760 pass to executed service processes during activation using the new
3761 ExtraFileDescriptor= unit property.
3762
3763 * Calendar .timer units gained a new boolean DeferReactivation=
3764 option. If enabled and the repetitive calendar timer elapses again
3765 while the service the timer activates is still running, immediate
3766 reactivation of the service once it finishes is skipped, and the
3767 timer has to elapse again before the service is reactivated.
3768
3769 * Generator processes invoked by the service manager will now receive a
3770 new environment variable $SYSTEMD_SOFT_REBOOTS_COUNT that indicates
3771 how many times the system has been soft-rebooted since the kernel
3772 initialized.
3773
3774 * A new service property ManagedOOMMemoryPressureDurationSec= has been
3775 added that complements the existing
3776 ManagedOOMMemoryPressureDurationLimit= and specifies the PSI
3777 measurement interval for the specific unit.
3778
3779 * The sd_notify() protocol has been extended to allow changing the main
3780 PID of a process by providing a pidfd of the new main process, or by
3781 specifying the pidfd inode number. Previously this was only supported
3782 by specifying the classic UNIX PID, which of course is racy.
3783
3784 * The SocketUser=/SocketGroup= settings of .socket units are now also
3785 applied to POSIX message queues.
3786
3787 * The ProtectControlGroups= unit file setting now supports two
3788 additional values: if set to "private" a new cgroup namespace is
3789 allocated for the service and cgroupfs mounted accordingly; if set to
3790 "strict" a new cgroup namespace is allocated for the service, and
3791 cgroupfs is mounted read-only for the service.
3792
3793 * The StateDirectory=, RuntimeDirectory=, CacheDirectory=,
3794 LogsDirectory=, and ConfigurationDirectory= settings gained support
3795 for configuring the respective directories as read-only, via a ':ro'
3796 flag that can be appended to each setting's value.
3797
3798 * When DynamicUser= is combined with
3799 StateDirectory=/RuntimeDirectory=/CacheDirectory=/LogsDirectory= and
3800 ID mapped mounts are available on the referenced path, the data in
3801 there is now preferably made available by establishing ID mapped from
3802 the "nobody" user to the dynamic user, rather than via recursive
3803 chown()ing.
3804
3805 * A new service property PrivatePIDs= has been added that runs executed
3806 processes as PID 1 - the init process - within their own PID
3807 namespace. PrivatePIDs= also mounts /proc/ so only processes within
3808 the new PID namespace are visible.
3809
3810 systemd-udevd:
3811
3812 * udev rules now set 'uaccess' for /dev/udmabuf, giving locally
3813 logged-in users access to the hardware. This is useful in order to
3814 support IPMI cameras with libcamera.
3815
3816 * Serial port devices will no longer show up as systemd units, unless
3817 they have an IO port or memory assigned to them. This means that only
3818 serial ports that actually exist should show up as .device units now.
3819
3820 * mtd devices (i.e. certain kinds of flash memory devices) will now
3821 show up as .device units in systemd.
3822
3823 * The firmware_node/sun sysfs attribute will now be used (if available)
3824 for naming slot-based network interfaces, i.e. ID_NET_NAME_SLOT.
3825 Moreover the interface aliases specified in DeviceTree are now
3826 searched for both on the interface's parent device (as before) and
3827 the device itself (new).
3828
3829 * Various USB hardware wallets are now recognized by udev via a .hwdb
3830 file, and get the ID_HARDWARE_WALLET= property set, which enables
3831 "uaccess" for them, i.e. direct unprivileged access.
3832
3833 * udevadm info will now output the device ID string in lines prefixed
3834 with "J:", and the driver subsystem in lines prefixed with "B:".
3835
3836 * udev rules files now support case-insensitive attribute matching
3837 (e.g. ATTR{foo}==i"abcd")
3838
3839 systemd-logind:
3840
3841 * New DesignatedMaintenanceTime= configuration option allows shutdowns
3842 to be automatically scheduled at the specified time.
3843
3844 * logind now reacts to Ctrl-Alt-Shift-Esc being pressed. It will send
3845 out a org.freedesktop.login1.SecureAttentionKey signal, indicating a
3846 request by the user for the system to display a secure login dialog.
3847 The handling of SAK can be suppressed in logind configuration.
3848
3849 * logind now supports handing off session-managed access to hidraw
3850 devices via its D-Bus APIs, the same way it already supports that for
3851 DRM and evdev input devices. This permits unprivileged clients to get
3852 hidraw fds for a device, that are automatically suspended when the
3853 session switches away.
3854
3855 * systemd-logind now exposes two D-Bus properties CanLock and CanIdle
3856 for all sessions. These properties indicate whether the session's
3857 class supports screen locking and idleness detection.
3858
3859 * systemd-inhibit now allows interactive polkit authorization. It
3860 gained a --no-ask-password option to suppress it.
3861
3862 systemd-machined:
3863
3864 * Unprivileged clients are now allowed to register VMs and containers.
3865 Machines started via the [email protected] unit will now be
3866 registered with systemd-machined.
3867
3868 * systemd-machined gained a pretty complete set of Varlink APIs
3869 exposing its functionality. This is an alternative to the
3870 pre-existing D-Bus interface.
3871
3872 systemd-resolved and resolvectl:
3873
3874 * The resolvconf command now supports '-p' switch. If specified, the
3875 interface will not be used as the default route for domain name
3876 lookups.
3877
3878 * resolvectl now enables interactive polkit authorization. It gained a
3879 --no-ask-password option to suppress it.
3880
3881 * systemd-resolved now implements continuous mDNS querying as per
3882 RFC6762 §5.2. Clients can subscribe to the notification stream using
3883 varlink.
3884
3885 systemd-networkd and networkctl:
3886
3887 * IPv6 address labels can be also configured in a new [IPv6AddressLabel]
3888 section with Prefix= and Label= settings in networkd.conf. Please see
3889 networkd.conf(5) for more details.
3890
3891 * 'networkctl edit' can now read the new file contents from standard
3892 input with the new --stdin option.
3893
3894 * 'networkctl edit' and 'cat' now support editing/showing .netdev files
3895 by link. 'networkctl cat' can also list all configuration files
3896 associated with an interface at once with ':all'.
3897
3898 * networkctl gained a --no-ask-password option to suppress interactive
3899 polkit authorization.
3900
3901 * "mac" has been added to the default AlternativeNamesPolicy= setting
3902 for network links (via 99-default.link). This means "enx*" interface
3903 names will now be added to the list of alternative interface names by
3904 default, for all interfaces that have a MAC address assigned
3905 by hardware.
3906
3907 * networkd .netdev bridge devices gained a new setting FDBMaxLearned=
3908 for setting a limit on the number of dynamically learned FDB entries.
3909
3910 * networkd .network files for bridge devices now support Layer 2 (in
3911 addition to the pre-existing Layer 3) MDB entries, via
3912 MulticastGroupAddress=.
3913
3914 * systemd-networkd will now log when per-network sysctls belonging to
3915 network interfaces managed by it are changed outside of networkd,
3916 thus highlighting conflict of ownership/management of these knobs.
3917
3918 * systemd-networkd will now make RFC9463 DNR fields available to
3919 systemd-resolved, for automatic DNS DoT configuration, and similar.
3920
3921 * The "dhcp" and "dhcp-on-stop" values for KeepConfiguration= setting in
3922 .network file are replaced with "dynamic" and "dynamic-on-stop",
3923 respectively. When specified, systemd-networkd will preserve all
3924 dynamic configurations via DHCPv4, DHCPv6, NDISC, and IPv4LL with
3925 ACD, while previously only DHCPv4 configurations were kept. Also,
3926 when systemd-networkd is restarted, regardless of the setting, these
3927 dynamic configurations are unconditionally kept. So, systemd-networkd
3928 can be restarted without disturbing ongoing connections.
3929
3930 * systemd-networkd now updates traffic control configuration without
3931 clearing existing settings. Thus, those settings can be updated by
3932 editing relevant .network files and triggering 'networkctl reload'.
3933
3934 * systemd-networkd now gracefully updates netdev settings specified in
3935 .netdev files when 'networkctl reload' is called. Previously, if the
3936 relevant interfaces existed, new settings would not be applied. Now,
3937 new settings will be applied if possible. Some settings cannot be
3938 updated after a netdev is configured, e.g. VLAN ID can be only
3939 specified on creation. To change such settings, user needs to remove
3940 existing interfaces, and invoke 'networkctl reload' or restart
3941 systemd-networkd.
3942
3943 systemd-boot, systemd-stub, and related tools:
3944
3945 * The EFI stub now supports loading of .ucode sections with microcode
3946 from PE add-on files. It also now supports loading .initrd sections
3947 from PE add-on files.
3948
3949 * A new .profile PE section type is now documented and supported in
3950 systemd-measure, ukify, systemd-stub and systemd-boot. These new
3951 sections allow multiple "profiles" to be stored together in the UKI,
3952 where each .profile section creates groupings of sections in the UKI,
3953 allowing some sections to be shared and other sections like .cmdline
3954 or .initrd unique to the profile. This may be used to provide a
3955 single UKI that synthesizes multiple menu items in the boot menu (for
3956 example, a regular one to boot, plus a debugging one, or a factory
3957 reset one, and so on – which only differ in kernel command line, but
3958 nothing else).
3959
3960 * New .dtbauto and .hwids sections are now documented and supported in
3961 systemd-measure, ukify, systemd-stub, and systemd-boot. A single UKI
3962 can contain multiple .dtbauto sections, and the 'compatible' string
3963 therein will be compared with the equivalent field in the DTB
3964 provided by the firmware, if present. If absent, SMBIOS will be used
3965 to calculate hardware IDs (CHIDs) and look them up in the content of
3966 .hwids, hopefully revealing an fallback 'compatible' string. This
3967 allows including multiple DTBs in a single UKI, with systemd-stub
3968 automatically loading the correct one for the current hardware.
3969
3970 * ukify gained an --extend switch to import an existing UKI to
3971 be extended, and a --measure-base= switch to support measurement
3972 of multi-profile UKIs.
3973
3974 * ukify gained a --certificate-provider switch to use an OpenSSL
3975 provider to load the certificate used to sign artifacts, instead of
3976 having to provide the path to a file on disk.
3977
3978 * bootctl, systemd-keyutil, systemd-measure, systemd-repart, and
3979 systemd-sbsign gained a new --certificate-source switch that allows
3980 loading the X.509 certificate from an OpenSSL provider instead of a
3981 file system path.
3982
3983 * systemd-boot's menu will now react to volume up/down rocker presses
3984 the same way as to arrow up/down presses: they move the menu item up
3985 or down. This is useful on device form factors that have only a
3986 volume rocker but no arrow keys (e.g. phones).
3987
3988 * systemd-stub will report the partition UUID and image identifier its
3989 UKI executable is placed on separately from the data systemd-boot
3990 provides about where to find its own executable, via EFI
3991 variables. This is useful when systemd-boot and UKIs are placed on
3992 distinct partitions (i.e. ESP and XBOOTLDR).
3993
3994 * bootctl gained new switches --print-loader-path and --print-stub-path
3995 that output the path to the boot loader or UKI used for the current
3996 boot.
3997
3998 * bootctl kernel-identify now recognizes EFI add-ons.
3999
4000 * bootctl gained a --random-seed=yes|no option to control provisioning
4001 of the random seed file in the ESP. (This is useful when producing an
4002 image that will be used in multiple instances.)
4003
4004 * bootctl now optionally supports installing UEFI Secure Boot databases
4005 (i.e. db/dbx/… databases in ESL format) for systemd-boot to pick up
4006 and automatically enroll if the system is booted in Setup Mode. This
4007 is controlled via bootctl's new --secure-boot-auto-enroll=yes switch
4008 (and some auxiliary ones). A certificate can be provided in DER
4009 format, and is automatically converted into an ESL, as needed.
4010
4011 * bootctl, systemd-measure, systemd-repart when referencing signing
4012 keys on OpenSSL engines may now query for PINs and similar via
4013 systemd's native systemd-ask-password logic (and take benefit of its
4014 caching and UI).
4015
4016 * A new systemd-sbsign tool has been added, that can be used to sign
4017 EFI binaries (PE) for Secure Boot. This tool supports OpenSSL engines
4018 and providers, with pin caching support for PKCS11. ukify supports it
4019 as an alternative to sbsigntool and pesign.
4020
4021 * A new systemd-keyutil tool has been added, that can be used to perform
4022 various operations on private keys and X.509 certificates.
4023
4024 The journal:
4025
4026 * journalctl can now list invocations of a unit with the
4027 --list-invocation options and show logs for a specific invocation
4028 with the new --invocation/-I option. (This is analogous to the
4029 --list-boots/--boot/-b options.)
4030
4031 systemd-sysupdate and related tools:
4032
4033 * systemd-sysupdated has been added as system service, allowing
4034 unprivileged clients to update the system via D-Bus calls. Note that
4035 for now the systemd-sysupdated API is considered experimental, and is
4036 not considered stable yet.
4037
4038 A new updatectl command-line tool can be used to control the
4039 service.
4040
4041 * systemd-sysupdate gained a new --offline option to force it to
4042 operate locally. This is useful when listing locally installed
4043 versions.
4044
4045 * systemd-sysupdate gained a new --transfer-source= option to set the
4046 directory to which transfer sources configured with
4047 PathRelativeTo=explicit will be interpreted.
4048
4049 * systemd-sysupdate now reports download progress via sd_notify().
4050
4051 * systemd-sysupdate now supports output in JSON mode for all commands.
4052
4053 * systemd-sysupdate definitions may now carry references to ChangeLog
4054 and AppStream metadata.
4055
4056 * Transfer definitions for systemd-sysupdate are supposed to carry the
4057 ".transfer" suffix now, changing from ".conf". The latter remains
4058 supported for compatibility, but it's recommended to rename all files
4059 reflecting this suffix change.
4060
4061 * systemd-sysupdate now supports new ".feature" files that may be
4062 used in conjunction with ".transfer" files to group them together, and
4063 allow them to be turned off or on, individually per group.
4064
4065 TPM & systemd-cryptsetup:
4066
4067 * The 'has-tpm2' verb which reports whether TPM2 functionality is
4068 available has been moved from systemd-creds to systemd-analyze.
4069
4070 * systemd-tpm2-setup will gracefully handle TPMs that have a PIN set on
4071 the TPM, and not attempt to automatically set up a Storage Root Key
4072 (SRK) in that case.
4073
4074 * New crypttab option password-cache=yes|no|read-only can be used to
4075 customize password caching.
4076
4077 * New crypttab options fido2-pin=, fido2-up=, fido2-uv= can be used to
4078 enable/disable the PIN query, User Presence check, and User
4079 Verification.
4080
4081 * systemd-cryptenroll gained new options --fido2-salt-file= and
4082 --fido2-parameters-in-header= to simplify manual enrollment of FIDO2
4083 tokens.
4084
4085 * systemd-cryptenroll, systemd-repart, and systemd-storagetm gained a
4086 new --list-devices option to list appropriate candidate block
4087 devices.
4088
4089 * systemd-cryptenroll/systemd-cryptsetup now support combined signed
4090 PCR policies and local systemd-pcrlock policies for unlocking a
4091 disk. Or in other words, it's now possible to bind unlocking of a
4092 local disk to a specific OS vendor *and* a locally managed set of
4093 measurements describing the local system.
4094
4095 varlinkctl:
4096
4097 * varlinkctl gained a new verb 'list-methods' to show a list of
4098 methods implemented by a service.
4099
4100 * varlinkctl gained a --quiet/-q option to suppress method call
4101 replies.
4102
4103 * varlinkctl gained a --graceful= option to suppress specific Varlink
4104 errors, and treat them as success.
4105
4106 * varlinkctl gained a --timeout= option to limit how long the
4107 invocation can take.
4108
4109 * varlinkctl allows remote invocations over ssh, via the new
4110 "ssh-exec:" address specification. It'll make an ssh connection,
4111 start the specified executable on the remote side, and communicate
4112 with the remote process using the Varlink protocol.
4113
4114 The "ssh:" address specification has been renamed to "ssh-unix:"
4115 (reflecting the fact it is used to connect to a remote AF_UNIX socket
4116 via SSH). The old syntax is still supported for backwards
4117 compatibility.
4118
4119 * varlinkctl's 'introspect' verb no longer requires specification of an
4120 interface name. If none is specified all interfaces exposed by the
4121 service are shown. Moreover, more than one interface name may be
4122 specified now, in which case all specified ones are displayed.
4123
4124 systemd-repart:
4125
4126 * systemd-repart's CopyBlocks= directive can now use a character device
4127 as source (in addition to previously supported regular files and
4128 block devices). This is useful for initializing a partition from
4129 /dev/urandom or similar.
4130
4131 * systemd-repart gained new Compression= and CompressionLevel= settings
4132 to enable internal compression in filesystems created offline.
4133
4134 * systemd-repart understands a new MakeSymlinks= option to create one
4135 or more symlinks (each specified as a symlink name and target) within
4136 a newly formatted file system.
4137
4138 * systemd-repart gained a new SupplementFor= setting that allows
4139 allocating a partition only if some other existing partition cannot
4140 be adjusted to match the constraints defined for it. This is useful
4141 to generate an XBOOTLDR partition if and only if an ESP already
4142 exists that is too small for the required constraints.
4143
4144 * The default size of verity hash partitions is now automatically
4145 derived from SizeMaxBytes= of the data partition it is protecting.
4146
4147 systemd-ssh-proxy:
4148
4149 * systemd-ssh-proxy now also supports the AF_UNIX-based "VSOCK MUX"
4150 protocol used by CloudHypervisor/Firecracker to expose AF_VSOCK
4151 sockets of the VM on the host. Or in other words: it's now possible
4152 to directly connect to ssh via AF_VSOCK from hosts to VMs of these
4153 two hypervisors (previously this was only supported for hypervisors
4154 which expose AF_VSOCK on the host as AF_VSOCK, such as qemu).
4155
4156 * systemd-ssh-proxy can now reference local VMs by their name: connect
4157 to any local VM "foobar" registered with systemd-machined via "ssh
4158 machine/foobar" using the AF_VSOCK protocol.
4159
4160 systemd-analyze:
4161
4162 * systemd-analyze will now show the SMBIOS #11 vendor strings set for
4163 the machine with a new 'smbios11' verb.
4164
4165 * systemd-analyze gained a new --instance= option that can be used to
4166 provide an instance name to analyze multiple templates instantiated
4167 with the same instance name.
4168
4169 * systemd-analyze's "capability" verb now gained a new --mask
4170 parameter. If specified a numeric capbality mask can be specified
4171 which is decoded for its contained capabilities.
4172
4173 * systemd-analyze's "plot" verb gained two new settings: --scale-svg=
4174 allows the X axis of the split to be stritched by a factor. If
4175 --detailed is specified activation timestamps are shown in the plot.
4176
4177 busctl:
4178
4179 * 'busctl monitor' gained new options --limit-messages= and --timeout=
4180 to set the number of matches or limit the runtime of the command.
4181
4182 * busctl now supports doing method calls with embedded unix file
4183 descriptors.
4184
4185 * busctl acquired a new "wait" command to wait for a specific signal to
4186 arrive.
4187
4188 systemd-nspawn:
4189
4190 * systemd-nspawn --bind-user= will now propagate the bound user's SSH
4191 public key (if included in the user record) into the container,
4192 ensuring that any such bound user is directly accessible via ssh.
4193
4194 * systemd-nspawn now supports unprivileged FUSE inside containers.
4195
4196 systemd-importd:
4197
4198 * A new generator systemd-import-generator has been added to synthesize
4199 image download jobs. This provides functionality similar to
4200 importctl, but is configured via the kernel command line and system
4201 credentials. It may be used to automatically download sysext,
4202 confext, portable service, nspawn container or vmspawn VM images at
4203 boot.
4204
4205 * systemd-importd now provides a Varlink IPC interface, in addition to
4206 its existing D-Bus IPC interface.
4207
4208 * The individual import/export tools will now display a nice progress
4209 bar when downloading files.
4210
4211 systemd-userdb & systemd-homed:
4212
4213 * userdbctl gained a pair of switches --uid-min= and --uid-max= to
4214 filter the UID/GID range of the listed users or groups. It also
4215 gained a new switch --disposition= to filter them by disposition
4216 (i.e. show only system users or only regular users, and so on). It
4217 also gained a new switch --fuzzy that permits a "fuzzy" search for a
4218 user, i.e. doing a substring and string distance search, and looking
4219 into the real name field of the user and other similar fields. It
4220 gained a new switch --boundaries=no for disabling display of the
4221 UID/GID range boundaries in its output.
4222
4223 * User records learnt a new set of fields that may list field names
4224 that may be changed by the user themselves without requiring
4225 administrator authentication. This new field is honoured by
4226 systemd-homed to allow users to change selected properties of their
4227 own user records.
4228
4229 systemd-run & run0:
4230
4231 * run0 gained a new pair of settings --pty and --pipe that control
4232 whether to invoke the specified binary on a freshly allocated pseudo
4233 TTY, or whether to pass the client's STDIN/STDOUT/STDERR through
4234 directly.
4235
4236 * run0 gained a new switch --shell-prompt-prefix= that permits passing
4237 in a string to display on each shell prompt as prefix. If not
4238 specified otherwise this will show a superhero emoji (🦸), in order
4239 to visually communicate the temporarily elevated privileges a run0
4240 session provides. This makes use of the $SHELL_PROMPT_PREFIX
4241 environment variables mentioned below.
4242
4243 * systemd-run can output some of its runtime data in JSON format via
4244 the new --json= option.
4245
4246 systemd-tmpfiles:
4247
4248 * systemd-tmpfiles --purge switch now requires specification of at
4249 least one tmpfiles.d/ drop-in file.
4250
4251 * tmpfiles.d/ files gained a new '?' specifier for the 'L' line type to
4252 create a symlink only if the source exists, and gracefully skip the
4253 line otherwise.
4254
4255 Miscellaneous:
4256
4257 * systemctl now supports the --now option with the 'reenable' verb.
4258
4259 * systemd-mount can now output JSON with a new --json= switch, for use
4260 with --list-devices. It also shows the "diskseq" property in the
4261 block device list.
4262
4263 * systemd-id128 gained a new 'var-partition-uuid' verb to calculate
4264 the DPS UUID for /var/ keyed by the local machine-id.
4265
4266 * localectl gained a -l/--full option to show output without
4267 ellipsization.
4268
4269 * timedatectl now supports interactive polkit authorization.
4270
4271 * The new Linux mseal(), listmount(), statmount() syscalls have been
4272 added to relevant system call groups.
4273
4274 * The systemd-ask-password logic has been extended with a per-user
4275 scope, i.e. user programs may now ask for passwords via the same
4276 mechanism and the previously system-wide only mechanism.
4277
4278 * A new set of system/service credentials are added:
4279 shell.prompt.prefix, shell.prompt.suffix and shell.welcome. At login
4280 time these are propagated into the $SHELL_PROMPT_PREFIX,
4281 $SHELL_PROMPT_SUFFIX, $SHELL_PROMPT_WELCOME environment
4282 variables. These in turn are included in the shell prompt of
4283 interactive shells and shown at login time, via
4284 /etc/profile.d/70-systemd-shell-extra.sh. This functionality is
4285 useful to visually highlight the fact a specific shell prompt
4286 originates from a specific system, execution context or tool. These
4287 credentials and environment variables are supposed to be generically
4288 useful within and outside of the immediate systemd context. It is
4289 also used by 'run0', see above.
4290
4291 * New RELEASE_TYPE=, EXPERIMENT=, EXPERIMENT_URL= fields have been
4292 defined for the /etc/os-release file. For example,
4293 "RELEASE_TYPE=development|stable|lts" can be used to indicate various
4294 stages of the release life cycle, and "RELEASE_TYPE=experimental" can
4295 indicate experimental builds, with the EXPERIMENT= field providing a
4296 human-readable description of the nature of the experiment.
4297
4298 * A new sleep.conf HibernateOnACPower= option has been added, which
4299 when disabled will suppress hibernation in suspend-then-hibernate
4300 mode until the system is disconnected from a power source.
4301
4302 * A bunch of patches to ease building against musl have been merged.
4303
4304 * The various components that display progress bars
4305 (i.e. systemd-repart, systemd-sysupdate/updatectl, importctl), will
4306 now also issue the ANSI sequences for progress reports that Windows
4307 Terminal understands. Most Linux terminals currently do not support
4308 this sequence (and ignore it), but hopefully this will change one
4309 day. The progress information is used to display a nice progress
4310 animation in the terminal tab and icon. For details about the ANSI
4311 sequence and its effects, see:
4312
4313 https://github.com/microsoft/terminal/pull/8055
4314 https://conemu.github.io/en/AnsiEscapeCodes.html#ConEmu_specific_OSC
4315
4316 * systemd-sysusers is now able to create fully locked user
4317 accounts. For compatibility it so far created accounts with a locked
4318 (i.e. invalid) password, but not marked locked as a whole. With the
4319 new "!" modifier for "u" lines, it is now possible to create fully
4320 locked accounts. The distinction between accounts with a locked
4321 password and fully locked accounts is relevant when considering
4322 non-password forms of authentication, i.e. SSH and such. It is
4323 strongly recommended to make use of this new feature for almost all
4324 system accounts, since they usually do not require (and should not
4325 permit) interactive logins. All of systemd's own system users have
4326 been changed to be marked as fully locked.
4327
4328 * systemd-coredump now supports a new EnterNamespace= option, which
4329 defaults to off. If enabled systemd-coredump will access the mount
4330 namespace of any crashed process to acquire debug symbol information,
4331 in order to be able to symbolize backtraces. This option is useful to
4332 improve backtraces of processes of containerized applications. (Note
4333 that the host systemd-coredump preferably dispatches coredump
4334 processing to the container itself, if it supports that. Only full-OS
4335 containers which run systemd inside will support this however, in
4336 other cases EnterNamespace= might be an suitable approach to acquire
4337 symbolized backtraces.)
4338
4339 Special thanks to Nick Owens for bringing attention to and testing
4340 fixes for issue #34516.
4341
4342 Contributions from: 12paper, A. Wilcox, Abderrahim Kitouni,
4343 Adrian Vovk, Alain Greppin, Allison Karlitskaya, Alyssa Ross,
4344 Anders Jonsson, Andika Triwidada, Andreas Schwab, Andres Beltran,
4345 Ani Sinha, Anouk Ceyssens, Anselm Schueler, Anton Golubev,
4346 Antonio Alvarez Feijoo, Arian van Putten, Arnaud Patard,
4347 Arthur Shau, Bastien Nocera, Benjamin ROBIN, Brenton Simpson,
4348 Bryan Gurney, ButterflyOfFire, Carlo Teubner, Celeste Liu,
4349 Chen Guanqiao, Chen Qi, Chengen Du, Christian Hesse,
4350 Christoph Anton Mitterer, Colin Foster, Collin L,
4351 Cristian Rodríguez, Daan De Meyer, Dan Nicholson, Daniel Dawson,
4352 Daniel Martinez, Daniel P. Berrangé, Daniel Rusek,
4353 Darsey Litzenberger, David Joaquín Shourabi Porcel,
4354 David Michael, David Rheinsberg, David Tardon, Davide Cavalca,
4355 Derek J. Clark, Diego Viola, Dimitrys Meliates, Diogo Ivo,
4356 Dmytro Markevych, DocNITE, Dominique Martinet,
4357 Dr. David Alan Gilbert, Edson Juliano Drosdeck, Erik Sjölund,
4358 Etienne Champetier, Etienne Cordonnier, Ettore Atalan,
4359 Eugeny Shcheglov, Excited-bore, Fabian Vogt, Federico Giovanardi,
4360 Filip Lewiński, Florian Schmaus, Franck Bui, Frantisek Sumsal,
4361 Fábio Rodrigues Ribeiro, Gabriel Elyas, Gaël PORTAY,
4362 Geraldo S. Simião Kutz, Giovanni Baratta, Greg Heartsfield,
4363 Gregor Herburger, Gregory Arenius, GwynBleidD, Göran Uddeborg,
4364 Hans de Goede, Helmut Grohne, Henry Chen, Ian Abbott, Integral,
4365 Ivan Kruglov, Ivan Shapovalov, James Coglan, James Hilliard,
4366 James Muir, Jason Yundt, Jeffrey Bosboom, Jian Zhang,
4367 Jiri Grönroos, Johannes Schneider, John A. Leuenhagen,
4368 Jose Ignacio Tornos Martinez, JoseskVolpe, Joshua Grisham,
4369 Jörg Behrmann, Kai-Chuan Hsieh, Kamil Szczęk, Karel Zak,
4370 Kornilios Kourtis, Kuntal Majumder, Lennart Poettering,
4371 Lidong Zhong, Luca Boccassi, Lucas Adriano Salles,
4372 Lucas Werkmeister, Ludwig Nussel, Luke T. Shumaker,
4373 Lukáš Nykrýn, Luna Jernberg, Léane GRASSER, Maanya Goenka,
4374 Mantas Mikulėnas, Marc Reisner, Marcel Hellwig, Marco Tomaschett,
4375 Marin Kresic, Marius Hoch, Martin Srebotnjak, Martin Wilck,
4376 Mary Strodl, Matteo Croce, Matthias Lisin, Matthias Schiffer,
4377 Matthieu Baerts (NGI0), Matthieu CHARETTE,
4378 Mauri de Souza Meneguzzo, Maximilian Wilhelm, Merlin Jehli,
4379 Michael Ferrari, Michal Koutný, Michal Sekletár, Michał Górny,
4380 Michele Dionisio, Michiel, Mickaël Salaün, Mike Gilbert,
4381 Mike Yuan, MkKvcs, Nick Cao, Nick Rosbrook, Nils K, Nova840,
4382 Oğuz Ersen, Pavel Borecki, PavlNekrasov, Peter Hutterer,
4383 Peter Rajnoha, Piotr Drąg, Raphaël Mélotte, Renan Guilherme,
4384 Renjaya Raga Zenta, Ricky Tigg, Riku, Robin Lee, Ronan Pigott,
4385 Ryan Wilson, Sam James, Sascha Mester, Sean Rhodes,
4386 Sebastian Gross, Septatrix, Sergey A, ShreyasMahangade,
4387 Simon Pilkington, Skye Chappelle, Steve Traylen, Stuart Hayhurst,
4388 SuhailAhmedVelorum, Susant Sahani, Takeo Kondo, Temuri Doghonadze,
4389 Thomas Blume, Thorsten Kukuk, Thorsten Scherer, Tobias Fleig,
4390 Tobias Zimmermann, Tom Coldrick, Tom Yan, Tomas Bzatek,
4391 Topi Miettinen, Tristan F.-R., Uday Shankar, Valentin David,
4392 Vasiliy Kovalev, Vitaly Kuznetsov, Vito Caputo, Vladimir Panteleev,
4393 Vursc, Will Fancher, WilliButz, Winterhuman, Xeonacid, Xuanjun Wen,
4394 Yanqing Jing, Yaron Shahrabani, Yu Watanabe, Yuri Chornoivan,
4395 ZHANG Yuntian, Zbigniew Jędrzejewski-Szmek, Zhou Qiankang,
4396 andre4ik3, anonymix007, bryango, chayleaf, chenjiayi, csp5me, cvlc12,
4397 fwfy, gerblesh, hugo303, [email protected], jauge-technica,
4398 lumingzh, maia x., marginaldev, migleeson, nerdopolis, oldherl,
4399 pyfisch, q66, rajmohan r, reDBo0n, rhellstrom, rindeal, samuelvw01,
4400 sinus-x, tfg13, vdovhanych, xujing, Łukasz Stelmach,
4401 Štěpán Němec, Дамјан Георгиевски, 白一百
4402
4403 — Edinburgh, 2024-12-10
4404
4405 CHANGES WITH 256:
4406
4407 Announcements of Future Feature Removals and Incompatible Changes:
4408
4409 * Support for automatic flushing of the nscd user/group database caches
4410 will be dropped in a future release.
4411
4412 * Support for cgroup v1 ('legacy' and 'hybrid' hierarchies) is now
4413 considered obsolete and systemd by default will refuse to boot under
4414 it. To forcibly reenable cgroup v1 support,
4415 SYSTEMD_CGROUP_ENABLE_LEGACY_FORCE=1 must be set on kernel command
4416 line. The meson option '-Ddefault-hierarchy=' is also deprecated, and
4417 only cgroup v2 ('unified' hierarchy) can be selected as the build-time
4418 default.
4419
4420 * Support for System V service scripts is deprecated and will be
4421 removed in a future release. Please make sure to update your software
4422 *now* to include a native systemd unit file instead of a legacy
4423 System V script to retain compatibility with future systemd releases.
4424
4425 * Support for the SystemdOptions EFI variable is deprecated.
4426 'bootctl systemd-efi-options' will emit a warning when used. It seems
4427 that this feature is little-used and it is better to use alternative
4428 approaches like credentials and confexts. The plan is to drop support
4429 altogether at a later point, but this might be revisited based on
4430 user feedback.
4431
4432 * systemd-run's switch --expand-environment= which currently is disabled
4433 by default when combined with --scope, will be changed in a future
4434 release to be enabled by default.
4435
4436 * Previously, systemd-networkd did not explicitly remove any bridge
4437 VLAN IDs assigned on bridge master and ports. Since version 256, if a
4438 .network file for an interface has at least one valid setting in the
4439 [BridgeVLAN] section, then all assigned VLAN IDs on the interface
4440 that are not configured in the .network file are removed.
4441
4442 * IPForward= setting in .network file is deprecated and replaced with
4443 IPv4Forwarding= and IPv6Forwarding= settings. These new settings are
4444 supported both in .network file and networkd.conf. If specified in a
4445 .network file, they control corresponding per-link settings. If
4446 specified in networkd.conf, they control corresponding global
4447 settings. Note, previously IPv6SendRA= and IPMasquerade= implied
4448 IPForward=, but now they imply the new per-link settings. One of the
4449 simplest ways to migrate configurations, that worked as a router with
4450 the previous version, is enabling both IPv4Forwarding= and
4451 IPv6Forwarding= in networkd.conf. See systemd.network(5) and
4452 networkd.conf(5) for more details.
4453
4454 * systemd-gpt-auto-generator will stop generating units for ESP or
4455 XBOOTLDR partitions if it finds mount entries for or below the /boot/
4456 or /efi/ hierarchies in /etc/fstab. This is to prevent the generator
4457 from interfering with systems where the ESP is explicitly configured
4458 to be mounted at some path, for example /boot/efi/ (this type of
4459 setup is obsolete, but still commonly found).
4460
4461 * The behavior of systemd-sleep and systemd-homed has been updated to
4462 freeze user sessions when entering the various sleep modes or when
4463 locking a homed-managed home area. This is known to cause issues with
4464 the proprietary NVIDIA drivers. Packagers of the NVIDIA proprietary
4465 drivers may want to add drop-in configuration files that set
4466 SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=false for systemd-suspend.service
4467 and related services, and SYSTEMD_HOME_LOCK_FREEZE_SESSION=false for
4468 systemd-homed.service.
4469
4470 * systemd-tmpfiles and systemd-sysusers, when given a relative
4471 configuration file path (with at least one directory separator '/'),
4472 will open the file directly, instead of searching for the given
4473 partial path in the standard locations. The old mode wasn't useful
4474 because tmpfiles.d/ and sysusers.d/ configuration has a flat
4475 structure with no subdirectories under the standard locations and
4476 this change makes it easier to work with local files with those
4477 tools.
4478
4479 * systemd-tmpfiles now properly applies nested configuration to 'R' and
4480 'D' stanzas. For example, with the combination of 'R /foo' and 'x
4481 /foo/bar', /foo/bar will now be excluded from removal.
4482
4483 * systemd.crash_reboot and related settings are deprecated in favor of
4484 systemd.crash_action=.
4485
4486 * Stable releases for version v256 and newer will now be pushed in the
4487 main repository. The systemd-stable repository will be used for existing
4488 stable branches (v255-stable and lower), and when they reach EOL it will
4489 be archived.
4490
4491 General Changes and New Features:
4492
4493 * Various programs will now attempt to load the main configuration file
4494 from locations below /usr/lib/, /usr/local/lib/, and /run/, not just
4495 below /etc/. For example, systemd-logind will look for
4496 /etc/systemd/logind.conf, /run/systemd/logind.conf,
4497 /usr/local/lib/systemd/logind.conf, and /usr/lib/systemd/logind.conf,
4498 and use the first file that is found. This means that the search
4499 logic for the main config file and for drop-ins is now the same.
4500
4501 Similarly, kernel-install will look for the config files in
4502 /usr/lib/kernel/ and the other search locations, and now also
4503 supports drop-ins.
4504
4505 systemd-udevd now supports drop-ins for udev.conf.
4506
4507 * A new 'systemd-vpick' binary has been added. It implements the new
4508 vpick protocol, where a "*.v/" directory may contain multiple files
4509 which have versions (following the UAPI version format specification)
4510 embedded in the file name. The files are ordered by version and
4511 the newest one is selected.
4512
4513 systemd-nspawn --image=/--directory=, systemd-dissect,
4514 systemd-portabled, and the RootDirectory=, RootImage=,
4515 ExtensionImages=, and ExtensionDirectories= settings for units now
4516 support the vpick protocol and allow the latest version to be
4517 selected automatically if a "*.v/" directory is specified as the
4518 source.
4519
4520 * Encrypted service credentials can now be made accessible to
4521 unprivileged users. systemd-creds gained new options --user/--uid=
4522 for encrypting/decrypting a credential for a specific user.
4523
4524 * New command-line tool 'importctl' to download, import, and export
4525 disk images via systemd-importd is added with the following verbs:
4526 pull-tar, pull-raw, import-tar, import-raw, import-fs, export-tar,
4527 export-raw, list-transfers, and cancel-transfer. This functionality
4528 was previously available in "machinectl", where it was used
4529 exclusively for machine images. The new "importctl" generalizes this
4530 for sysext, confext, and portable service images.
4531
4532 * The systemd sources may now be compiled cleanly with all OpenSSL 3.0
4533 deprecations removed, including the OpenSSL engine logic turned off.
4534
4535 Service Management:
4536
4537 * New system manager setting ProtectSystem= has been added. It is
4538 analogous to the unit setting, but applies to the whole system. It is
4539 enabled by default in the initrd.
4540
4541 Note that this means that code executed in the initrd cannot naively
4542 expect to be able to write to /usr/ during boot. This affects
4543 dracut <= 101, which wrote "hooks" to /lib/dracut/hooks/. See
4544 https://github.com/dracut-ng/dracut-ng/commit/a45048b80c27ee5a45a380.
4545
4546 * New unit setting WantsMountsFor= has been added. It is analogous to
4547 RequiresMountsFor=, but creates a Wants= dependency instead of
4548 Requires=. This new logic is now used in various places where mounts
4549 were added as dependencies for other settings (WorkingDirectory=-…,
4550 PrivateTmp=yes, cryptsetup lines with 'nofail').
4551
4552 * New unit setting MemoryZSwapWriteback= can be used to control the new
4553 memory.zswap.writeback cgroup knob added in kernel 6.8.
4554
4555 * The manager gained a org.freedesktop.systemd1.StartAuxiliaryScope()
4556 D-Bus method to devolve some processes from a service into a new
4557 scope. This new scope will remain running, even when the original
4558 service unit is restarted or stopped. This allows a service unit to
4559 split out some worker processes which need to continue running.
4560 Control group properties of the new scope are copied from the
4561 originating unit, so various limits are retained.
4562
4563 * Units now expose properties EffectiveMemoryMax=,
4564 EffectiveMemoryHigh=, and EffectiveTasksMax=, which report the
4565 most stringent limit systemd is aware of for the given unit.
4566
4567 * A new unit file specifier %D expands to $XDG_DATA_HOME (for user
4568 services) or /usr/share/ (for system services).
4569
4570 * AllowedCPUs= now supports specifier expansion.
4571
4572 * What= setting in .mount and .swap units now accepts fstab-style
4573 identifiers, for example UUID=… or LABEL=….
4574
4575 * RestrictNetworkInterfaces= now supports alternative network interface
4576 names.
4577
4578 * PAMName= now implies SetLoginEnvironment=yes.
4579
4580 * systemd.firstboot=no can be used on the kernel command-line to
4581 disable interactive queries, but allow other first boot configuration
4582 to happen based on credentials.
4583
4584 * The system's hostname can be configured via the systemd.hostname
4585 system credential.
4586
4587 * The systemd binary will no longer chainload sysvinit's "telinit"
4588 binary when called under the init/telinit name on a system that isn't
4589 booted with systemd. This previously has been supported to make sure
4590 a distribution that has both init systems installed can reasonably
4591 switch from one to the other via a simple reboot. Distributions
4592 apparently have lost interest in this, and the functionality has not
4593 been supported on the primary distribution this was still intended
4594 for a long time, and hence has been removed now.
4595
4596 * A new concept called "capsules" has been introduced. "Capsules" wrap
4597 additional per-user service managers, whose users are transient and
4598 are only defined as long as the service manager is running. (This is
4599 implemented via DynamicUser=1), allowing a user manager to be used to
4600 manage a group of processes without needing to create an actual user
4601 account. These service managers run with home directories of
4602 /var/lib/capsules/<capsule-name> and can contain regular services and
4603 other units. A capsule is started via a simple "systemctl start
4604 capsule@<name>.service". See the [email protected](5) man page for
4605 further details.
4606
4607 Various systemd tools (including, and most importantly, systemctl and
4608 systemd-run) have been updated to interact with capsules via the new
4609 "--capsule="/"-C" switch.
4610
4611 * .socket units gained a new setting PassFileDescriptorsToExec=, taking
4612 a boolean value. If set to true the file descriptors the socket unit
4613 encapsulates are passed to the ExecStartPost=, ExecStopPre=,
4614 ExecStopPost= using the usual $LISTEN_FDS interface. This may be used
4615 for doing additional initializations on the sockets once they are
4616 allocated. (For example, to install an additional eBPF program on
4617 them).
4618
4619 * The .socket setting MaxConnectionsPerSource= (which so far put a
4620 limit on concurrent connections per IP in Accept=yes socket units),
4621 now also has an effect on AF_UNIX sockets: it will put a limit on the
4622 number of simultaneous connections from the same source UID (as
4623 determined via SO_PEERCRED). This is useful for implementing IPC
4624 services in a simple Accept=yes mode.
4625
4626 * The service manager will now maintain a counter of soft reboot cycles
4627 the system went through. It may be queried via the D-Bus APIs.
4628
4629 * systemd's execution logic now supports the new pidfd_spawn() API
4630 introduced by glibc 2.39, which allows us to invoke a subprocess in a
4631 target cgroup and get a pidfd back in a single operation.
4632
4633 * systemd/PID 1 will now send an additional sd_notify() message to its
4634 supervising VMM or container manager reporting the selected hostname
4635 ("X_SYSTEMD_HOSTNAME=") and machine ID ("X_SYSTEMD_MACHINE_ID=") at
4636 boot. Moreover, the service manager will send additional sd_notify()
4637 messages ("X_SYSTEMD_UNIT_ACTIVE=") whenever a target unit is
4638 reached. This can be used by VMMs/container managers to schedule
4639 access to the system precisely. For example, the moment a system
4640 reports "ssh-access.target" being reached a VMM/container manager
4641 knows it can now connect to the system via SSH. Finally, a new
4642 sd_notify() message ("X_SYSTEMD_SIGNALS_LEVEL=2") is sent the moment
4643 PID 1 has successfully completed installation of its various UNIX
4644 process signal handlers (i.e. the moment where SIGRTMIN+4 sent to
4645 PID 1 will start to have the effect of shutting down the system
4646 cleanly). X_SYSTEMD_SHUTDOWN= is sent shortly before the system shuts
4647 down, and carries a string identifying the type of shutdown,
4648 i.e. "poweroff", "halt", "reboot". X_SYSTEMD_REBOOT_PARAMETER= is
4649 sent at the same time and carries the string passed to "systemctl
4650 --reboot-argument=" if there was one.
4651
4652 * New D-Bus properties ExecMainHandoffTimestamp and
4653 ExecMainHandoffTimestampMonotonic are now published by services
4654 units. This timestamp is taken as the very last operation before
4655 handing off control to invoked binaries. This information is
4656 available for other unit types that fork off processes (i.e. mount,
4657 swap, socket units), but currently only via "systemd-analyze dump".
4658
4659 * An additional timestamp is now taken by the service manager when a
4660 system shutdown operation is initiated. It can be queried via D-Bus
4661 during the shutdown phase. It's passed to the following service
4662 manager invocation on soft reboots, which will then use it to log the
4663 overall "grey-out" time of the soft reboot operation, i.e. the time
4664 when the shutdown began until the system is fully up again.
4665
4666 * "systemctl status" will now display the invocation ID in its usual
4667 output, i.e. the 128bit ID uniquely assigned to the current runtime
4668 cycle of the unit. The ID has been supported for a long time, but is
4669 now more prominently displayed, as it is a very useful handle to a
4670 specific invocation of a service.
4671
4672 * systemd now generates a new "taint" string "unmerged-bin" for systems
4673 that have /usr/bin/ and /usr/sbin/ separate. It's generally
4674 recommended to make the latter a symlink to the former these days.
4675
4676 * A new systemd.crash_action= kernel command line option has been added
4677 that configures what to do after the system manager (PID 1) crashes.
4678 This can also be configured through CrashAction= in systemd.conf.
4679
4680 * "systemctl kill" now supports --wait which will make the command wait
4681 until the signalled services terminate.
4682
4683 Journal:
4684
4685 * systemd-journald can now forward journal entries to a socket
4686 (AF_INET, AF_INET6, AF_UNIX, or AF_VSOCK). The socket can be
4687 specified in journald.conf via a new option ForwardToSocket= or via
4688 the 'journald.forward_to_socket' credential. Log records are sent in
4689 the Journal Export Format. A related setting MaxLevelSocket= has been
4690 added to control the maximum log levels for the messages sent to this
4691 socket.
4692
4693 * systemd-journald now also reads the journal.storage credential when
4694 determining where to store journal files.
4695
4696 * systemd-vmspawn gained a new --forward-journal= option to forward the
4697 virtual machine's journal entries to the host. This is done over a
4698 AF_VSOCK socket, i.e. it does not require networking in the guest.
4699
4700 * journalctl gained option '-i' as a shortcut for --file=.
4701
4702 * journalctl gained a new -T/--exclude-identifier= option to filter
4703 out certain syslog identifiers.
4704
4705 * journalctl gained a new --list-namespaces option.
4706
4707 * systemd-journal-remote now also accepts AF_VSOCK and AF_UNIX sockets
4708 (so it can be used to receive entries forwarded by systemd-journald).
4709
4710 * systemd-journal-gatewayd allows restricting the time range of
4711 retrieved entries with a new "realtime=[<since>]:[<until>]" URL
4712 parameter.
4713
4714 * systemd-cat gained a new option --namespace= to specify the target
4715 journal namespace to which the output shall be connected.
4716
4717 * systemd-bsod gained a new option --tty= to specify the output TTY
4718
4719 Device Management:
4720
4721 * /dev/ now contains symlinks that combine by-path and by-{label,uuid}
4722 information:
4723
4724 /dev/disk/by-path/<path>/by-<label|uuid|…>/<label|uuid|…>
4725
4726 This allows distinguishing partitions with identical contents on
4727 multiple storage devices. This is useful, for example, when copying
4728 raw disk contents between devices.
4729
4730 * systemd-udevd now creates persistent /dev/media/by-path/ symlinks for
4731 media controllers. For example, the uvcvideo driver may create
4732 /dev/media0 which will be linked as
4733 /dev/media/by-path/pci-0000:04:00.3-usb-0:1:1.0-media-controller.
4734
4735 * A new unit systemd-udev-load-credentials.service has been added
4736 to pick up udev.conf drop-ins and udev rules from credentials.
4737
4738 * 'udevadm test' and 'udevadm test-builtin' commands now do not change
4739 any settings; sysfs attributes, sysctls, udev database and so on.
4740 E.g. 'udevadm test-builtin net_setup_link /sys/class/net/INTERFACE'
4741 does not change any interface settings, but only prints which .link
4742 file matches the interface. So, even privileged users can safely
4743 invoke the commands.
4744
4745 * An allowlist/denylist may be specified to filter which sysfs
4746 attributes are used when crafting network interface names. Those
4747 lists are stored as hwdb entries
4748 ID_NET_NAME_ALLOW_<sysfsattr>=0|1
4749 and
4750 ID_NET_NAME_ALLOW=0|1.
4751
4752 The goal is to avoid unexpected changes to interface names when the
4753 kernel is updated and new sysfs attributes become visible.
4754
4755 * A new unit tpm2.target has been added to provide a synchronization
4756 point for units which expect the TPM hardware to be available. A new
4757 generator "systemd-tpm2-generator" has been added that will insert
4758 this target whenever it detects that the firmware has initialized a
4759 TPM, but Linux hasn't loaded a driver for it yet.
4760
4761 * systemd-backlight now properly supports numbered devices which the
4762 kernel creates to avoid collisions in the leds subsystem.
4763
4764 * systemd-hwdb update operation can be disabled with a new environment
4765 variable SYSTEMD_HWDB_UPDATE_BYPASS=1.
4766
4767 systemd-hostnamed:
4768
4769 * systemd-hostnamed now exposes the machine ID and boot ID via
4770 D-Bus. It also exposes the hosts AF_VSOCK CID, if available.
4771
4772 * systemd-hostnamed now provides a basic Varlink interface.
4773
4774 * systemd-hostnamed exports the full data in os-release(5) and
4775 machine-info(5) via D-Bus and Varlink.
4776
4777 * hostnamectl now shows the system's product UUID and hardware serial
4778 number if known.
4779
4780 Network Management:
4781
4782 * systemd-networkd now provides a basic Varlink interface.
4783
4784 * systemd-networkd's ARP proxy support gained a new option to configure
4785 a private VLAN variant of the proxy ARP supported by the kernel under
4786 the name IPv4ProxyARPPrivateVLAN=.
4787
4788 * systemd-networkd now exports the NamespaceId and NamespaceNSID
4789 properties via D-Bus and Varlink. (which expose the inode and NSID of
4790 the network namespace the networkd instance manages)
4791
4792 * systemd-networkd now supports IPv6RetransmissionTimeSec= and
4793 UseRetransmissionTime= settings in .network files to configure
4794 retransmission time for IPv6 neighbor solicitation messages.
4795
4796 * networkctl gained new verbs 'mask' and 'unmask' for masking networkd
4797 configuration files such as .network files.
4798
4799 * 'networkctl edit --runtime' allows editing volatile configuration
4800 under /run/systemd/network/.
4801
4802 * The implementation behind TTLPropagate= network setting has been
4803 removed and the setting is now ignored.
4804
4805 * systemd-network-generator will now pick up .netdev/.link/.network/
4806 networkd.conf configuration from system credentials.
4807
4808 * systemd-networkd will now pick up wireguard secrets from
4809 credentials.
4810
4811 * systemd-networkd's Varlink API now supports enumerating LLDP peers.
4812
4813 * .link files now support new Property=, ImportProperty=,
4814 UnsetProperty= fields for setting udev properties on a link.
4815
4816 * The various .link files that systemd ships for interfaces that are
4817 supposed to be managed by systemd-networkd only now carry a
4818 ID_NET_MANAGED_BY=io.systemd.Network udev property ensuring that
4819 other network management solutions honouring this udev property do
4820 not come into conflict with networkd, trying to manage these
4821 interfaces.
4822
4823 * .link files now support a new ReceivePacketSteeringCPUMask= setting
4824 for configuring which CPUs to steer incoming packets to.
4825
4826 * The [Network] section in .network files gained a new setting
4827 UseDomains=, which is a single generic knob for controlling the
4828 settings of the same name in the [DHCPv4], [DHCPv6] and
4829 [IPv6AcceptRA].
4830
4831 * The 99-default.link file we ship by default (that defines the policy
4832 for all network devices to which no other .link file applies) now
4833 lists "mac" among AlternativeNamesPolicy=. This means that network
4834 interfaces will now by default gain an additional MAC-address based
4835 alternative device name. (i.e. enx…)
4836
4837 systemd-nspawn:
4838
4839 * systemd-nspawn now provides a /run/systemd/nspawn/unix-export/
4840 directory where the container payload can expose AF_UNIX sockets to
4841 allow them to be accessed from outside.
4842
4843 * systemd-nspawn will tint the terminal background for containers in a
4844 blueish color. This can be controller with the new --background=
4845 switch or the new $SYSTEMD_TINT_BACKGROUND environment variable.
4846
4847 * systemd-nspawn gained support for the 'owneridmap' option for --bind=
4848 mounts to map the target directory owner from inside the container to
4849 the owner of the directory bound from the host filesystem.
4850
4851 * systemd-nspawn now supports moving Wi-Fi network devices into a
4852 container, just like other network interfaces.
4853
4854 systemd-resolved:
4855
4856 * systemd-resolved now reads RFC 8914 EDE error codes provided by
4857 upstream DNS services.
4858
4859 * systemd-resolved and resolvectl now support RFC 9460 SVCB and HTTPS
4860 records, as well as RFC 2915 NAPTR records.
4861
4862 * resolvectl gained a new option --relax-single-label= to allow
4863 querying single-label hostnames via unicast DNS on a per-query basis.
4864
4865 * systemd-resolved's Varlink IPC interface now supports resolving
4866 DNS-SD services as well as an API for resolving raw DNS RRs.
4867
4868 * systemd-resolved's .dnssd DNS_SD service description files now
4869 support DNS-SD "subtypes" via the new SubType= setting.
4870
4871 * systemd-resolved's configuration may now be reloaded without
4872 restarting the service. (i.e. "systemctl reload systemd-resolved" is
4873 now supported)
4874
4875 SSH Integration:
4876
4877 * An sshd_config drop-in to allow ssh keys acquired via userdbctl (for
4878 example expose by homed accounts) to be used for authorization of
4879 incoming SSH connections. This uses the AuthorizedKeysCommand stanza
4880 of sshd_config. Note that sshd only allows a single command to be
4881 configured this way, hence this drop-in might conflict with other
4882 uses of the logic. It is possible to chainload another, similar tool
4883 of another subsystem via the --chain switch of userdbctl, to support
4884 both in parallel. See the "INTEGRATION WITH SSH" section in
4885 userdbctl(1) for details on this. Our recommendation how to combine
4886 other subsystem's use of the SSH authorized keys logic with systemd's
4887 userbctl functionality however is to implement the APIs described
4888 here: https://systemd.io/USER_GROUP_API – in that case this newly
4889 added sshd_config integration would just work and do the right thing
4890 for all backends.
4891
4892 * A small new unit generator "systemd-ssh-generator" has been added. It
4893 checks if the sshd binary is installed. If so, it binds it via
4894 per-connection socket activation to various sockets depending on the
4895 execution context:
4896
4897 • If the system is run in a VM providing AF_VSOCK support, it
4898 automatically binds sshd to AF_VSOCK port 22.
4899
4900 • If the system is invoked as a full-OS container and the container
4901 manager pre-mounts a directory /run/host/unix-export/, it will
4902 bind sshd to an AF_UNIX socket /run/host/unix-export/ssh. The
4903 idea is the container manager bind mounts the directory to an
4904 appropriate place on the host as well, so that the AF_UNIX socket
4905 may be used to easily connect from the host to the container.
4906
4907 • sshd is also bound to an AF_UNIX socket
4908 /run/ssh-unix-local/socket, which may be to use ssh/sftp in a
4909 "sudo"-like fashion to access resources of other local users.
4910
4911 • Via the kernel command line option "systemd.ssh_listen=" and the
4912 system credential "ssh.listen" sshd may be bound to additional,
4913 explicitly configured options, including AF_INET/AF_INET6 ports.
4914
4915 In particular the first two mechanisms should make dealing with local
4916 VMs and full OS containers a lot easier, as SSH connections will
4917 *just* *work* from the host – even if no networking is available
4918 whatsoever.
4919
4920 systemd-ssh-generator optionally generates a per-connection
4921 socket activation service file wrapping sshd. This is only done if
4922 the distribution does not provide one on its own under the name
4923 "[email protected]". The generated unit only works correctly if the SSH
4924 privilege separation ("privsep") directory exists. Unfortunately
4925 distributions vary wildly where they place this directory. An
4926 incomprehensive list:
4927
4928 • /usr/share/empty.sshd/ (new fedora)
4929 • /var/empty/
4930 • /var/empty/sshd/
4931 • /run/sshd/ (debian/ubuntu?)
4932
4933 If the SSH privsep directory is placed below /var/ or /run/ care
4934 needs to be taken that the directory is created automatically at boot
4935 if needed, since these directories possibly or always come up
4936 empty. This can be done via a tmpfiles.d/ drop-in. You may use the
4937 "sshdprivsepdir" meson option provided by systemd to configure the
4938 directory, in case you want systemd to create the directory as needed
4939 automatically, if your distribution does not cover this natively.
4940
4941 Recommendations to distributions, in order to make things just work:
4942
4943 • Please provide a per-connection SSH service file under the name
4944 "[email protected]".
4945
4946 • Please move the SSH privsep dir into /usr/ (so that it is truly
4947 immutable on image-based operating systems, is strictly under
4948 package manager control, and never requires recreation if the
4949 system boots up with an empty /run/ or /var/).
4950
4951 • As an extension of this: please consider following Fedora's lead
4952 here, and use /usr/share/empty.sshd/ to minimize needless
4953 differences between distributions.
4954
4955 • If your distribution insists on placing the directory in /var/ or
4956 /run/ then please at least provide a tmpfiles.d/ drop-in to
4957 recreate it automatically at boot, so that the sshd binary just
4958 works, regardless in which context it is called.
4959
4960 * A small tool "systemd-ssh-proxy" has been added, which is supposed to
4961 act as counterpart to "systemd-ssh-generator". It's a small plug-in
4962 for the SSH client (via ProxyCommand/ProxyUseFdpass) to allow it to
4963 connect to AF_VSOCK or AF_UNIX sockets. Example: "ssh vsock/4711"
4964 connects to a local VM with cid 4711, or "ssh
4965 unix/run/ssh-unix-local/socket" to connect to the local host via the
4966 AF_UNIX socket /run/ssh-unix-local/socket.
4967
4968 systemd-boot and systemd-stub and Related Tools:
4969
4970 * TPM 1.2 PCR measurement support has been removed from systemd-stub.
4971 TPM 1.2 is obsolete and – due to the (by today's standards) weak
4972 cryptographic algorithms it only supports – does not actually provide
4973 the security benefits it's supposed to provide. Given that the rest
4974 of systemd's codebase never supported TPM 1.2, the support has now
4975 been removed from systemd-stub as well.
4976
4977 * systemd-stub will now measure its payload via the new EFI
4978 Confidential Computing APIs (CC), in addition to the pre-existing
4979 measurements to TPM.
4980
4981 * confexts are loaded by systemd-stub from the ESP as well.
4982
4983 * kernel-install gained support for --root= for the 'list' verb.
4984
4985 * bootctl now provides a basic Varlink interface and can be run as a
4986 daemon via a template unit.
4987
4988 * systemd-measure gained new options --certificate=, --private-key=,
4989 and --private-key-source= to allow using OpenSSL's "engines" or
4990 "providers" as the signing mechanism to use when creating signed
4991 TPM2 PCR measurement values.
4992
4993 * ukify gained support for signing of PCR signatures via OpenSSL's
4994 engines and providers.
4995
4996 * ukify now supports zboot kernels.
4997
4998 * systemd-boot now supports passing additional kernel command line
4999 switches to invoked kernels via an SMBIOS Type #11 string
5000 "io.systemd.boot.kernel-cmdline-extra". This is similar to the
5001 pre-existing support for this in systemd-stub, but also applies to
5002 Type #1 Boot Loader Specification Entries.
5003
5004 * systemd-boot's automatic SecureBoot enrollment support gained support
5005 for enrolling "dbx" too (Previously, only db/KEK/PK enrollment was
5006 supported). It also now supports UEFI "Custom" and "Audit" modes.
5007
5008 * The pcrlock policy is saved in an unencrypted credential file
5009 "pcrlock.<entry-token>.cred" under XBOOTLDR/ESP in the
5010 /loader/credentials/ directory. It will be picked up at boot by
5011 systemd-stub and passed to the initrd, where it can be used to unlock
5012 the root file system.
5013
5014 * systemd-pcrlock gained an --entry-token= option to configure the
5015 entry-token.
5016
5017 * systemd-pcrlock now provides a basic Varlink interface and can be run
5018 as a daemon via a template unit.
5019
5020 * systemd-pcrlock's TPM nvindex access policy has been modified, this
5021 means that previous pcrlock policies stored in nvindexes are
5022 invalidated. They must be removed (systemd-pcrlock remove-policy) and
5023 recreated (systemd-pcrlock make-policy). For the time being
5024 systemd-pcrlock remains an experimental feature, but it is expected
5025 to become stable in the next release, i.e. v257.
5026
5027 * systemd-pcrlock's --recovery-pin= switch now takes three values:
5028 "hide", "show", "query". If "show" is selected the automatically
5029 generated recovery PIN is shown to the user. If "query" is selected
5030 then the PIN is queried from the user.
5031
5032 * sd-stub gained support for the new ".ucode" PE section in UKIs, that
5033 may contain CPU microcode data. When control is handed over to the
5034 Linux kernel this data is prepended to the set of initrds passed.
5035
5036 systemd-run/run0:
5037
5038 * systemd-run is now a multi-call binary. When invoked as 'run0', it
5039 provides as interface similar to 'sudo', with all arguments starting
5040 at the first non-option parameter being treated the command to invoke
5041 as root. Unlike 'sudo' and similar tools, it does not make use of
5042 setuid binaries or other privilege escalation methods, but instead
5043 runs the specified command as a transient unit, which is started by
5044 the system service manager, so privileges are dropped, rather than
5045 gained, thus implementing a much more robust and safe security
5046 model. As usual, authorization is managed via Polkit.
5047
5048 * systemd-run/run0 will now tint the terminal background on supported
5049 terminals: in a reddish tone when invoking a root service, in a
5050 yellowish tone otherwise. This may be controlled and turned off via
5051 the new --background= switch or the new $SYSTEMD_TINT_BACKGROUND
5052 environment variable.
5053
5054 * systemd-run gained a new option '--ignore-failure' to suppress
5055 command failures.
5056
5057 Command-line tools:
5058
5059 * 'systemctl edit --stdin' allows creation of unit files and drop-ins
5060 with contents supplied via standard input. This is useful when creating
5061 configuration programmatically; the tool takes care of figuring out
5062 the file name, creating any directories, and reloading the manager
5063 afterwards.
5064
5065 * 'systemctl disable --now' and 'systemctl mask --now' now work
5066 correctly with template units.
5067
5068 * 'systemd-analyze architectures' lists known CPU architectures.
5069
5070 * 'systemd-analyze --json=…' is supported for 'architectures',
5071 'capability', 'exit-status'.
5072
5073 * 'systemd-tmpfiles --purge' will purge (remove) all files and
5074 directories created via tmpfiles.d configuration.
5075
5076 * systemd-id128 gained new options --no-pager, --no-legend, and
5077 -j/--json=.
5078
5079 * hostnamectl gained '-j' as shortcut for '--json=pretty' or
5080 '--json=short'.
5081
5082 * loginctl now supports -j/--json=.
5083
5084 * resolvectl now supports -j/--json= for --type=.
5085
5086 * systemd-tmpfiles gained a new option --dry-run to print what would be
5087 done without actually taking action.
5088
5089 * varlinkctl gained a new --collect switch to collect all responses of
5090 a method call that supports multiple replies and turns it into a
5091 single JSON array.
5092
5093 * systemd-dissect gained a new --make-archive option to generate an
5094 archive file (tar.gz and similar) from a disk image.
5095
5096 systemd-vmspawn:
5097
5098 * systemd-vmspawn gained a new --firmware= option to configure or list
5099 firmware definitions for Qemu, a new --tpm= option to enable or
5100 disable the use of a software TPM, a new --linux= option to specify a
5101 kernel binary for direct kernel boot, a new --initrd= option to
5102 specify an initrd for direct kernel boot, a new -D/--directory option
5103 to use a plain directory as the root file system, a new
5104 --private-users option similar to the one in systemd-nspawn, new
5105 options --bind= and --bind-ro= to bind part of the host's file system
5106 hierarchy into the guest, a new --extra-drive= option to attach
5107 additional storage, and -n/--network-tap/--network-user-mode to
5108 configure networking.
5109
5110 * A new [email protected] can be used to launch systemd-vmspawn
5111 as a service.
5112
5113 * systemd-vmspawn gained the new --console= and --background= switches
5114 that control how to interact with the VM. As before, by default an
5115 interactive terminal interface is provided, but now with a background
5116 tinted with a greenish hue.
5117
5118 * systemd-vmspawn can now register its VMs with systemd-machined,
5119 controlled via the --register= switch.
5120
5121 * machinectl's start command (and related) can now invoke images either
5122 as containers via systemd-nspawn (specified as '--runner=nspawn', the
5123 default) or as VMs via systemd-vmspawn (specified as
5124 '--runner=vmspawn' or '-V').
5125
5126 * systemd-vmspawn now supports two switches --pass-ssh-key= and
5127 --ssh-key-type= to optionally set up transient SSH keys to pass to the
5128 invoked VMs in order to be able to SSH into them once booted.
5129
5130 * systemd-vmspawn will now enable various "HyperV enlightenments" and
5131 the "VM Generation ID" on the VMs.
5132
5133 * A new environment variable $SYSTEMD_VMSPAWN_QEMU_EXTRA may carry
5134 additional qemu command line options to pass to qemu.
5135
5136 * systemd-machined gained a new GetMachineSSHInfo() D-Bus method that is
5137 used by systemd-vmspawn to fetch the information needed to ssh into the
5138 machine.
5139
5140 * systemd-machined gained a new Varlink interface that is used by
5141 systemd-vmspawn to register machines with additional information and
5142 metadata.
5143
5144 systemd-repart:
5145
5146 * systemd-repart gained new options --generate-fstab= and
5147 --generate-crypttab= to write out fstab and crypttab files matching the
5148 generated partitions.
5149
5150 * systemd-repart gained a new option --private-key-source= to allow
5151 using OpenSSL's "engines" or "providers" as the signing mechanism to
5152 use when creating verity signature partitions.
5153
5154 * systemd-repart gained a new DefaultSubvolume= setting in repart.d/
5155 drop-ins that allow configuring the default btrfs subvolume for newly
5156 formatted btrfs file systems.
5157
5158 Libraries:
5159
5160 * libsystemd gained new call sd_bus_creds_new_from_pidfd() to get a
5161 credentials object for a pidfd and sd_bus_creds_get_pidfd_dup() to
5162 retrieve the pidfd from a credentials object.
5163
5164 * sd-bus' credentials logic will now also acquire peer's UNIX group
5165 lists and peer's pidfd if supported and requested.
5166
5167 * RPM macro %_kernel_install_dir has been added with the path
5168 to the directory for kernel-install plugins.
5169
5170 * The liblz4, libzstd, liblzma, libkmod, libgcrypt dependencies have
5171 been changed from regular shared library dependencies into dlopen()
5172 based ones.
5173
5174 Note that this means that those libraries might not be automatically
5175 pulled in when ELF dependencies are resolved. In particular lack of
5176 libkmod might cause problems with boot. This affects dracut <= 101,
5177 see https://github.com/dracut-ng/dracut-ng/commit/04b362d713235459cf.
5178
5179 * systemd ELF binaries that use libraries via dlopen() are now built with
5180 a new ELF header note section, following a new specification defined at
5181 docs/ELF_DLOPEN_METADATA.md, that provides information about which
5182 sonames are loaded and used if found at runtime. This allows tools and
5183 packagers to programmatically discover the list of optional
5184 dependencies used by all systemd ELF binaries. A parser with packaging
5185 integration tools is available at
5186 https://github.com/systemd/package-notes
5187
5188 * The sd-journal API gained a new call
5189 sd_journal_stream_fd_with_namespace() which is just like
5190 sd_journal_stream_fd() but creates a log stream targeted at a
5191 specific log namespace.
5192
5193 * The sd-id128 API gained a new API call
5194 sd_id128_get_invocation_app_specific() for acquiring an app-specific
5195 ID that is derived from the service invocation ID.
5196
5197 * The sd-event API gained a new API call
5198 sd_event_source_get_inotify_path() that returns the file system path
5199 an inotify event source was created for.
5200
5201 systemd-cryptsetup/systemd-cryptenroll:
5202
5203 * The device node argument to systemd-cryptenroll is now optional. If
5204 omitted it will be derived automatically from the backing block
5205 device of /var/ (which quite likely is the same as the root file
5206 system, hence effectively means if you don't specify things otherwise
5207 the tool will now default to enrolling a key into the root file
5208 system's LUKS device).
5209
5210 * systemd-cryptenroll can now enroll directly with a PKCS11 public key
5211 (instead of a certificate).
5212
5213 * systemd-cryptsetup/systemd-cryptenroll now may lock a disk against a
5214 PKCS#11 provided EC key (before it only supported RSA).
5215
5216 * systemd-cryptsetup gained support for crypttab option
5217 link-volume-key= to link the volume key into the kernel keyring when
5218 the volume is opened.
5219
5220 * systemd-cryptenroll will no longer enable Dictionary Attack
5221 Protection (i.e. turn on NO_DA) for TPM enrollments that do not
5222 involve a PIN. DA should not be necessary in that case (since key
5223 entropy is high enough to make this unnecessary), but risks
5224 accidental lock-out in case of unexpected PCR changes.
5225
5226 * systemd-cryptenroll now supports enrolling a new slot while unlocking
5227 the old slot via TPM2 (previously unlocking only worked via password
5228 or FIDO2).
5229
5230 Documentation:
5231
5232 * The remaining documentation that was on
5233 https://freedesktop.org/wiki/Software/systemd/ has been moved to
5234 https://systemd.io/.
5235
5236 * A new text describing the VM integration interfaces of systemd has
5237 been added:
5238
5239 https://systemd.io/VM_INTERFACE
5240
5241 * The sd_notify() man page has gained examples with C and Python code
5242 that shows how to implement the interface in those languages without
5243 involving libsystemd.
5244
5245 systemd-homed, systemd-logind, systemd-userdbd:
5246
5247 * systemd-homed now supports unlocking of home directories when logging
5248 in via SSH. Previously home directories needed to be unlocked before
5249 an SSH login is attempted.
5250
5251 * JSON User Records have been extended with a separate public storage
5252 area called "User Record Blob Directories". This is intended to store
5253 the user's background image, avatar picture, and other similar items
5254 which are too large to fit into the User Record itself.
5255
5256 systemd-homed, userdbctl, and homectl gained support for blob
5257 directories. homectl gained --avatar= and --login-background= to
5258 control two specific items of the blob directories.
5259
5260 * A new "additionalLanguages" field has been added to JSON user records
5261 (as supported by systemd-homed and systemd-userdbd), which is closely
5262 related to the pre-existing "preferredLanguage", and allows
5263 specifying multiple additional languages for the user account. It is
5264 used to initialize the $LANGUAGES environment variable when used.
5265
5266 * A new pair of "preferredSessionType" and "preferredSessionLauncher"
5267 fields have been added to JSON user records, that may be used to
5268 control which kind of desktop session to preferable activate on
5269 logins of the user.
5270
5271 * homectl gained a new verb 'firstboot', and a new
5272 systemd-homed-firstboot.service unit uses this verb to create users
5273 in a first boot environment, either from system credentials or by
5274 querying interactively.
5275
5276 * systemd-logind now supports a new "background-light" session class
5277 which does not pull in the [email protected] unit. This is intended in
5278 particular for lighter weight per-user cron jobs which do require any
5279 per-user service manager to be around.
5280
5281 * The per-user service manager will now be tracked as a distinct "manager"
5282 session type among logind sessions of each user.
5283
5284 * homectl now supports an --offline mode, by which certain account
5285 properties can be changed without unlocking the home directory.
5286
5287 * systemd-logind gained a new
5288 org.freedesktop.login1.Manager.ListSessionsEx() method that provides
5289 additional metadata compared to ListSessions(). loginctl makes use of
5290 this to list additional fields in list-sessions.
5291
5292 * systemd-logind gained a new org.freedesktop.login1.Manager.Sleep()
5293 method that automatically redirects to SuspendThenHibernate(),
5294 Suspend(), HybridSleep(), or Hibernate(), depending on what is
5295 supported and configured, a new configuration setting SleepOperation=,
5296 and an accompanying helper method
5297 org.freedesktop.login1.Manager.CanSleep() and property
5298 org.freedesktop.login1.Manager.SleepOperation.
5299
5300 'systemctl sleep' calls the new method to automatically put the
5301 machine to sleep in the most appropriate way.
5302
5303 Credential Management:
5304
5305 * systemd-creds now provides a Varlink IPC API for encrypting and
5306 decrypting credentials.
5307
5308 * systemd-creds' "tpm2-absent" key selection has been renamed to
5309 "null", since that's what it actually does: "encrypt" and "sign"
5310 with a fixed null key. --with-key=null should only be used in very
5311 specific cases, as it provides zero integrity or confidentiality
5312 protections. (i.e. it's only safe to use as fallback in environments
5313 lacking both a TPM and access to the root fs to use the host
5314 encryption key, or when integrity is provided some other way.)
5315
5316 * systemd-creds gained a new switch --allow-null. If specified, the
5317 "decrypt" verb will decode encrypted credentials that use the "null"
5318 key (by default this is refused, since using the "null" key defeats
5319 the authenticated encryption normally done).
5320
5321 Suspend & Hibernate:
5322
5323 * The sleep.conf configuration file gained a new MemorySleepMode=
5324 setting for configuring the sleep mode in more detail.
5325
5326 * A tiny new service systemd-hibernate-clear.service has been added
5327 which clears hibernation information from the HibernateLocation EFI
5328 variable, in case the resume device is gone. Normally, this variable
5329 is supposed to be cleaned up by the code that initiates the resume
5330 from hibernation image. But when the device is missing and that code
5331 doesn't run, this service will now do the necessary work, ensuring
5332 that no outdated hibernation image information remains on subsequent
5333 boots.
5334
5335 Unprivileged User Namespaces & Mounts:
5336
5337 * A small new service systemd-nsresourced.service has been added. It
5338 provides a Varlink IPC API that assigns a free, transiently allocated
5339 64K UID/GID range to an uninitialized user namespace a client
5340 provides. It may be used to implement unprivileged container managers
5341 and other programs that need dynamic user ID ranges. It also provides
5342 interfaces to then delegate mount file descriptors, control groups
5343 and network interfaces to user namespaces set up this way.
5344
5345 * A small new service systemd-mountfsd.service has been added. It
5346 provides a Varlink IPC API for mounting DDI images, and returning a set
5347 of mount file descriptors for it. If a user namespace fd is provided
5348 as input, then the mounts are registered with the user namespace. To
5349 ensure trust in the image it must provide Verity information (or
5350 alternatively interactive polkit authentication is required).
5351
5352 * The systemd-dissect tool now can access DDIs fully unprivileged by
5353 using systemd-nsresourced/systemd-mountfsd.
5354
5355 * If the service manager runs unprivileged (i.e. systemd --user) it now
5356 supports RootImage= for accessing DDI images, also implemented via
5357 the systemd-nsresourced/systemd-mountfsd.
5358
5359 * systemd-nspawn may now operate without privileges, if a suitable DDI
5360 is provided via --image=, again implemented via
5361 systemd-nsresourced/systemd-mountfsd.
5362
5363 Other:
5364
5365 * timedatectl and machinectl gained option '-P', an alias for
5366 '--value --property=…'.
5367
5368 * Various tools that pretty-print config files will now highlight
5369 configuration directives.
5370
5371 * varlinkctl gained support for the "ssh:" transport. This requires
5372 OpenSSH 9.4 or newer.
5373
5374 * systemd-sysext gained support for enabling system extensions in
5375 mutable fashion, where a writable upperdir is stored under
5376 /var/lib/extensions.mutable/, and a new --mutable= option to
5377 configure this behaviour. An "ephemeral" mode is not also supported
5378 where the mutable layer is configured to be a tmpfs that is
5379 automatically released when the system extensions are reattached.
5380
5381 * Coredumps are now retained for two weeks by default (instead of three
5382 days, as before).
5383
5384 * portablectl --copy= parameter gained a new 'mixed' argument, that will
5385 result in resources owned by the OS (e.g.: portable profiles) to be linked
5386 but resources owned by the portable image (e.g.: the unit files and the
5387 images themselves) to be copied.
5388
5389 * systemd will now register MIME types for various of its file types
5390 (e.g. journal files, DDIs, encrypted credentials …) via the XDG
5391 shared-mime-info infrastructure. (Files of these types will thus be
5392 recognized as their own thing in desktop file managers such as GNOME
5393 Files.)
5394
5395 * systemd-dissect will now show the detected sector size of a given DDI
5396 in its default output.
5397
5398 * systemd-portabled now generates recognizable structured log messages
5399 whenever a portable service is attached or detached.
5400
5401 * Verity signature checking in userspace (i.e. checking against
5402 /etc/verity.d/ keys) when activating DDIs can now be turned on/off
5403 via a kernel command line option systemd.allow_userspace_verity= and
5404 an environment variable SYSTEMD_ALLOW_USERSPACE_VERITY=.
5405
5406 * ext4/xfs file system quota handling has been reworked, so that
5407 quotacheck and quotaon are now invoked as per-file-system templated
5408 services (as opposed to single system-wide singletons), similar in
5409 style to the fsck, growfs, pcrfs logic. This means file systems with
5410 quota enabled can now be reasonably enabled at runtime of the system,
5411 not just at boot.
5412
5413 * "systemd-analyze dot" will now also show BindsTo= dependencies.
5414
5415 * systemd-debug-generator gained the ability add in arbitrary units
5416 based on them being passed in via system credentials.
5417
5418 * A new kernel command-line option systemd.default_debug_tty= can be
5419 used to specify the TTY for the debug shell, independently of
5420 enabling or disabling it.
5421
5422 * portablectl gained a new --clean switch that clears a portable
5423 service's data (cache, logs, state, runtime, fdstore) when detaching
5424 it.
5425
5426 Contributions from: A S Alam, AKHIL KUMAR,
5427 Abraham Samuel Adekunle, Adrian Vovk, Adrian Wannenmacher,
5428 Alan Liang, Alberto Planas, Alexander Zavyalov, Anders Jonsson,
5429 Andika Triwidada, Andres Beltran, Andrew Sayers,
5430 Antonio Alvarez Feijoo, Arian van Putten, Arthur Zamarin,
5431 Artur Pak, AtariDreams, Benjamin Franzke, Bernhard M. Wiedemann,
5432 Black-Hole1, Bryan Jacobs, Burak Gerz, Carlos Garnacho,
5433 Chandra Pratap, Chris Hofstaedtler, Chris Packham, Chris Simons,
5434 Christian Göttsche, Christian Wesselhoeft, Clayton Craft,
5435 Colin Geniet, Colin Walters, Colin Watson, Costa Tsaousis,
5436 Cristian Rodríguez, Daan De Meyer, Damien Challet, Dan Streetman,
5437 Daniel Winzen, Daniele Medri, David Seifert, David Tardon,
5438 David Venhoek, Diego Viola, Dionna Amalie Glaze,
5439 Dmitry Konishchev, Dmitry V. Levin, Edson Juliano Drosdeck,
5440 Eisuke Kawashima, Eli Schwartz, Emanuele Giuseppe Esposito,
5441 Eric Daigle, Evgeny Vereshchagin, Felix Riemann,
5442 Fernando Fernandez Mancera, Florian Fainelli, Florian Schmaus,
5443 Franck Bui, Frantisek Sumsal, Friedrich Altheide,
5444 Gabríel Arthúr Pétursson, Gaël Donval, Georges Basile Stavracas Neto,
5445 Gerd Hoffmann, GNOME Foundation, Guido Leenders,
5446 Guilhem Lettron, Göran Uddeborg, Hans de Goede, Harald Brinkmann,
5447 Heinrich Schuchardt, Helmut Grohne, Henry Li, Heran Yang,
5448 Holger Assmann, Ivan Kruglov, Ivan Shapovalov, Jakub Sitnicki,
5449 James Muir, Jan Engelhardt, Jan Macku, Jarne Förster, Jeff King,
5450 Jian-Hong Pan, JmbFountain, Joakim Nohlgård, Jonathan Conder,
5451 Julius Alexandre, Jörg Behrmann, Kai Lueke, Kamil Szczęk,
5452 KayJay7, Keian, Kirk, Kristian Klausen, Krzesimir Nowak,
5453 Lain "Fearyncess" Yang, Lars Ellenberg, Lennart Poettering,
5454 Leonard, Luca Boccassi, Lucas Salles, Ludwig Nussel,
5455 Lukáš Nykrýn, Luna Jernberg, Luxiter, Maanya Goenka,
5456 Maciej S. Szmigiero, Mariano Giménez, Markus Merklinger,
5457 Martin Ivicic, Martin Srebotnjak, Martin Trigaux, Martin Wilck,
5458 Mathias Lang, Matt Layher, Matt Muggeridge, Matteo Croce,
5459 Matthias Lisin, Max Gautier, Max Staudt, MaxHearnden,
5460 Michael Biebl, Michal Koutný, Michal Sekletár, Michał Kopeć,
5461 Mike Gilbert, Mike Yuan, Mikko Ylinen, MkfsSion, Moritz Sanft,
5462 MrSmör, Nandakumar Raghavan, Nicholas Little, Nick Cao,
5463 Nick Rosbrook, Nicolas Bouchinet, Norbert Lange,
5464 Ole Peder Brandtzæg, Ondrej Kozina, Oğuz Ersen,
5465 Pablo Méndez Hernández, Pierre GRASSER, Piotr Drąg, QuonXF,
5466 Radoslav Kolev, Rafaël Kooi, Raito Bezarius, Rasmus Villemoes,
5467 Reid Wahl, Renjaya Raga Zenta, Richard Maw, Roland Hieber,
5468 Ronan Pigott, Rose, Ross Burton, Saliba-san, Sam Leonard,
5469 Samuel BF, Sarvajith Adyanthaya, Scrambled 777,
5470 Sebastian Pucilowski, Sergei Zhmylev, Sergey A, Shulhan,
5471 SidhuRupinder, Simon Fowler, Skia, Sludge, Stuart Hayhurst,
5472 Susant Sahani, Takashi Sakamoto, Temuri Doghonadze, Thayne McCombs,
5473 Thilo Fromm, Thomas Blume, Tiago Rocha Cunha, Timo Rothenpieler,
5474 TobiPeterG, Tobias Fleig, Tomáš Pecka, Topi Miettinen,
5475 Tycho Andersen, Unique-Usman, Usman Akinyemi, Vasiliy Kovalev,
5476 Vasiliy Stelmachenok, Victor Berchet, Vishal Chillara Srinivas,
5477 Vitaly Kuznetsov, Vito Caputo, Vladimir Stoiakin, Werner Sembach,
5478 Will Springer, Winterhuman, Xiaotian Wu, Yu Watanabe,
5479 Yuri Chornoivan, Zbigniew Jędrzejewski-Szmek, Zmyeir, anphir,
5480 aslepykh, chenjiayi, cpackham-atlnz, cunshunxia, djantti, drewbug,
5481 hanjinpeng, hfavisado, hulkoba, hydrargyrum, ksaleem, mburucuyapy,
5482 medusalix, mille-feuille, mkubiak, mooo, msizanoen, networkException,
5483 nl6720, r-vdp, runiq, sam-leonard-ct, samuelvw01, sharad3001, spdfnet,
5484 sushmbha, wangyuhang, zeroskyx, zzywysm, İ. Ensar Gülşen,
5485 Łukasz Stelmach, Štěpán Němec, 我超厉害, 김인수
5486
5487 — Edinburgh, 2024-06-11
5488
5489 CHANGES WITH 255:
5490
5491 Announcements of Future Feature Removals and Incompatible Changes:
5492
5493 * Support for split-usr (/usr/ mounted separately during late boot,
5494 instead of being mounted by the initrd before switching to the rootfs)
5495 and unmerged-usr (parallel directories /bin/ and /usr/bin/, /lib/ and
5496 /usr/lib/, …) has been removed. For more details, see:
5497 https://lists.freedesktop.org/archives/systemd-devel/2022-September/048352.html
5498
5499 * We intend to remove cgroup v1 support from a systemd release after
5500 the end of 2023. If you run services that make explicit use of
5501 cgroup v1 features (i.e. the "legacy hierarchy" with separate
5502 hierarchies for each controller), please implement compatibility with
5503 cgroup v2 (i.e. the "unified hierarchy") sooner rather than later.
5504 Most of Linux userspace has been ported over already.
5505
5506 * Support for System V service scripts is now deprecated and will be
5507 removed in a future release. Please make sure to update your software
5508 *now* to include a native systemd unit file instead of a legacy
5509 System V script to retain compatibility with future systemd releases.
5510
5511 * Support for the SystemdOptions EFI variable is deprecated.
5512 'bootctl systemd-efi-options' will emit a warning when used. It seems
5513 that this feature is little-used and it is better to use alternative
5514 approaches like credentials and confexts. The plan is to drop support
5515 altogether at a later point, but this might be revisited based on
5516 user feedback.
5517
5518 * systemd-run's switch --expand-environment= which currently is disabled
5519 by default when combined with --scope, will be changed in a future
5520 release to be enabled by default.
5521
5522 * "systemctl switch-root" is now restricted to initrd transitions only.
5523
5524 Transitions between real systems should be done with
5525 "systemctl soft-reboot" instead.
5526
5527 * The "ip=off" and "ip=none" kernel command line options interpreted by
5528 systemd-network-generator will now result in IPv6RA + link-local
5529 addressing being disabled, too. Previously DHCP was turned off, but
5530 IPv6RA and IPv6 link-local addressing was left enabled.
5531
5532 * The NAMING_BRIDGE_MULTIFUNCTION_SLOT naming scheme has been deprecated
5533 and is now disabled.
5534
5535 * SuspendMode=, HibernateState= and HybridSleepState= in the [Sleep]
5536 section of systemd-sleep.conf are now deprecated and have no effect.
5537 They did not (and could not) take any value other than the respective
5538 default. HybridSleepMode= is also deprecated, and will now always use
5539 the 'suspend' disk mode.
5540
5541 Service Manager:
5542
5543 * The way services are spawned has been overhauled. Previously, a
5544 process was forked that shared all of the manager's memory (via
5545 copy-on-write) while doing all the required setup (e.g.: mount
5546 namespaces, CGroup configuration, etc.) before exec'ing the target
5547 executable. This was problematic for various reasons: several glibc
5548 APIs were called that are not supposed to be used after a fork but
5549 before an exec, copy-on-write meant that if either process (the
5550 manager or the child) touched a memory page a copy was triggered, and
5551 also the memory footprint of the child process was that of the
5552 manager, but with the memory limits of the service. From this version
5553 onward, the new process is spawned using CLONE_VM and CLONE_VFORK
5554 semantics via posix_spawn(3), and it immediately execs a new internal
5555 binary, systemd-executor, that receives the configuration to apply
5556 via memfd, and sets up the process before exec'ing the target
5557 executable. The systemd-executor binary is pinned by file descriptor
5558 by each manager instance (system and users), and the reference is
5559 updated on daemon-reexec - it is thus important to reexec all running
5560 manager instances when the systemd-executor and/or libsystemd*
5561 libraries are updated on the filesystem.
5562
5563 * Most of the internal process tracking is being changed to use PIDFDs
5564 instead of PIDs when the kernel supports it, to improve robustness
5565 and reliability.
5566
5567 * A new option SurviveFinalKillSignal= can be used to configure the
5568 unit to be skipped in the final SIGTERM/SIGKILL spree on shutdown.
5569 This is part of the required configuration to let a unit's processes
5570 survive a soft-reboot operation.
5571
5572 * System extension images (sysext) can now set
5573 EXTENSION_RELOAD_MANAGER=1 in their extension-release files to
5574 automatically reload the service manager (PID 1) when
5575 merging/refreshing/unmerging on boot. Generally, while this can be
5576 used to ship services in system extension images it's recommended to
5577 do that via portable services instead.
5578
5579 * The ExtensionImages= and ExtensionDirectories= options now support
5580 confexts images/directories.
5581
5582 * A new option CoredumpReceive= can be set for service and scope units,
5583 together with Delegate=yes, to make systemd-coredump on the host
5584 forward core files from processes crashing inside the delegated
5585 CGroup subtree to systemd-coredump running in the container. This new
5586 option is by default used by systemd-nspawn containers that use the
5587 "--boot" switch.
5588
5589 * A new ConditionSecurity=measured-uki option is now available, to ensure
5590 a unit can only run when the system has been booted from a measured UKI.
5591
5592 * MemoryAvailable= now considers physical memory if there are no CGroup
5593 memory limits set anywhere in the tree.
5594
5595 * The $USER environment variable is now always set for services, while
5596 previously it was only set if User= was specified. A new option
5597 SetLoginEnvironment= is now supported to determine whether to also set
5598 $HOME, $LOGNAME, and $SHELL.
5599
5600 * Socket units now support a new pair of
5601 PollLimitBurst=/PollLimitInterval= options to configure a limit on
5602 how often polling events on the file descriptors backing this unit
5603 will be considered within a time window.
5604
5605 * Scope units can now be created using PIDFDs instead of PIDs to select
5606 the processes they should include.
5607
5608 * Sending SIGRTMIN+18 with 0x500 as sigqueue() value will now cause the
5609 manager to dump the list of currently pending jobs.
5610
5611 * If the kernel supports MOVE_MOUNT_BENEATH, the systemctl and
5612 machinectl bind and mount-image verbs will now cause the new mount to
5613 replace the old mount (if any), instead of overmounting it.
5614
5615 * Units now have MemoryPeak, MemorySwapPeak, MemorySwapCurrent and
5616 MemoryZSwapCurrent properties, which respectively contain the values
5617 of the cgroup v2's memory.peak, memory.swap.peak, memory.swap.current
5618 and memory.zswap.current properties. This information is also shown in
5619 "systemctl status" output, if available.
5620
5621 TPM2 Support + Disk Encryption & Authentication:
5622
5623 * systemd-cryptenroll now allows specifying a PCR bank and explicit hash
5624 value in the --tpm2-pcrs= option.
5625
5626 * systemd-cryptenroll now allows specifying a TPM2 key handle (nv
5627 index) to be used instead of the default SRK via the new
5628 --tpm2-seal-key-handle= option.
5629
5630 * systemd-cryptenroll now allows TPM2 enrollment using only a TPM2
5631 public key (in TPM2B_PUBLIC format) – without access to the TPM2
5632 device itself – which enables offline sealing of LUKS images for a
5633 specific TPM2 chip, as long as the SRK public key is known. Pass the
5634 public to the tool via the new --tpm2-device-key= switch.
5635
5636 * systemd-cryptsetup is now installed in /usr/bin/ and is no longer an
5637 internal-only executable.
5638
5639 * The TPM2 Storage Root Key will now be set up, if not already present,
5640 by a new systemd-tpm2-setup.service early boot service. The SRK will
5641 be stored in PEM format and TPM2_PUBLIC format (the latter is useful
5642 for systemd-cryptenroll --tpm2-device-key=, as mentioned above) for
5643 easier access. A new "srk" verb has been added to systemd-analyze to
5644 allow extracting it on demand if it is already set up.
5645
5646 * The internal systemd-pcrphase executable has been renamed to
5647 systemd-pcrextend.
5648
5649 * The systemd-pcrextend tool gained a new --pcr= switch to override
5650 which PCR to measure into.
5651
5652 * systemd-pcrextend now exposes a Varlink interface at
5653 io.systemd.PCRExtend that can be used to do measurements and event
5654 logging on demand.
5655
5656 * TPM measurements are now also written to an event log at
5657 /run/log/systemd/tpm2-measure.log, using a derivative of the TCG
5658 Canonical Event Log format. Previously we'd only log them to the
5659 journal, where they however were subject to rotation and similar.
5660
5661 * A new component "systemd-pcrlock" has been added that allows managing
5662 local TPM2 PCR policies for PCRs 0-7 and similar, which are hard to
5663 predict by the OS vendor because of the inherently local nature of
5664 what measurements they contain, such as firmware versions of the
5665 system and extension cards and suchlike. pcrlock can predict PCR
5666 measurements ahead of time based on various inputs, such as the local
5667 TPM2 event log, GPT partition tables, PE binaries, UKI kernels, and
5668 various other things. It can then pre-calculate a TPM2 policy from
5669 this, which it stores in an TPM2 NV index. TPM2 objects (such as disk
5670 encryption keys) can be locked against this NV index, so that they
5671 are locked against a specific combination of system firmware and
5672 state. Alternatives for each component are supported to allowlist
5673 multiple kernel versions or boot loader version simultaneously
5674 without losing access to the disk encryption keys. The tool can also
5675 be used to analyze and validate the local TPM2 event log.
5676 systemd-cryptsetup, systemd-cryptenroll, systemd-repart have all been
5677 updated to support such policies. There's currently no support for
5678 locking the system's root disk against a pcrlock policy, this will be
5679 added soon. Moreover, it is currently not possible to combine a
5680 pcrlock policy with a signed PCR policy. This component is
5681 experimental and its public interface is subject to change.
5682
5683 systemd-boot, systemd-stub, ukify, bootctl, kernel-install:
5684
5685 * bootctl will now show whether the system was booted from a UKI in its
5686 status output.
5687
5688 * systemd-boot and systemd-stub now use different project keys in their
5689 respective SBAT sections, so that they can be revoked individually if
5690 needed.
5691
5692 * systemd-boot will no longer load unverified DeviceTree blobs when UEFI
5693 SecureBoot is enabled. For more details see:
5694 https://github.com/systemd/systemd/security/advisories/GHSA-6m6p-rjcq-334c
5695
5696 * systemd-boot gained new hotkeys to reboot and power off the system
5697 from the boot menu ("B" and "O"). If the "auto-poweroff" and
5698 "auto-reboot" options in loader.conf are set these entries are also
5699 shown as menu items (which is useful on devices lacking a regular
5700 keyboard).
5701
5702 * systemd-boot gained a new configuration value "menu-disabled" for the
5703 set-timeout option, to allow completely disabling the boot menu,
5704 including the hotkey.
5705
5706 * systemd-boot will now measure the content of loader.conf in TPM2
5707 PCR 5.
5708
5709 * systemd-stub will now concatenate the content of all kernel
5710 command-line addons before measuring them in TPM2 PCR 12, in a single
5711 measurement, instead of measuring them individually.
5712
5713 * systemd-stub will now measure and load DeviceTree Blob addons, which
5714 are searched and loaded following the same model as the existing
5715 kernel command-line addons.
5716
5717 * systemd-stub will now ignore unauthenticated kernel command line options
5718 passed from systemd-boot when running inside Confidential VMs with UEFI
5719 SecureBoot enabled.
5720
5721 * systemd-stub will now load a DeviceTree blob even if the firmware did
5722 not load any beforehand (e.g.: for ACPI systems).
5723
5724 * ukify is no longer considered experimental, and now ships in /usr/bin/.
5725
5726 * ukify gained a new verb inspect to describe the sections of a UKI and
5727 print the contents of the well-known sections.
5728
5729 * ukify gained a new verb genkey to generate a set of key pairs for
5730 signing UKIs and their PCR data.
5731
5732 * The 90-loaderentry kernel-install hook now supports installing device
5733 trees.
5734
5735 * kernel-install now supports the --json=, --root=, --image=, and
5736 --image-policy= options for the inspect verb.
5737
5738 * kernel-install now supports new list and add-all verbs. The former
5739 lists all installed kernel images (if those are available in
5740 /usr/lib/modules/). The latter will install all the kernels it can
5741 find to the ESP.
5742
5743 systemd-repart:
5744
5745 * A new option --copy-from= has been added that synthesizes partition
5746 definitions from the given image, which are then applied by the
5747 systemd-repart algorithm.
5748
5749 * A new option --copy-source= has been added, which can be used to specify
5750 a directory to which CopyFiles= is considered relative to.
5751
5752 * New --make-ddi=confext, --make-ddi=sysext, and --make-ddi=portable
5753 options have been added to make it easier to generate these types of
5754 DDIs, without having to provide repart.d definitions for them.
5755
5756 * The dm-verity salt and UUID will now be derived from the specified
5757 seed value.
5758
5759 * New VerityDataBlockSizeBytes= and VerityHashBlockSizeBytes= can now be
5760 configured in repart.d/ configuration files.
5761
5762 * A new Subvolumes= setting is now supported in repart.d/ configuration
5763 files, to indicate which directories in the target partition should be
5764 btrfs subvolumes.
5765
5766 * A new --tpm2-device-key= option can be used to lock a disk against a
5767 specific TPM2 public key. This matches the same switch the
5768 systemd-cryptenroll tool now supports (see above).
5769
5770 Journal:
5771
5772 * The journalctl --lines= parameter now accepts +N to show the oldest N
5773 entries instead of the newest.
5774
5775 * journald now ensures that sealing happens once per epoch, and sets a
5776 new compatibility flag to distinguish old journal files that were
5777 created before this change, for backward compatibility.
5778
5779 Device Management:
5780
5781 * udev will now create symlinks to loopback block devices in the
5782 /dev/disk/by-loop-ref/ directory that are based on the .lo_file_name
5783 string field selected during allocation. The systemd-dissect tool and
5784 the util-linux losetup command now supports a complementing new switch
5785 --loop-ref= for selecting the string. This means a loopback block
5786 device may now be allocated under a caller-chosen reference and can
5787 subsequently be referenced without first having to look up the block
5788 device name the caller ended up with.
5789
5790 * udev also creates symlinks to loopback block devices in the
5791 /dev/disk/by-loop-inode/ directory based on the .st_dev/st_ino fields
5792 of the inode attached to the loopback block device. This means that
5793 attaching a file to a loopback device will implicitly make a handle
5794 available to be found via that file's inode information.
5795
5796 * udevadm info gained support for JSON output via a new --json= flag, and
5797 for filtering output using the same mechanism that udevadm trigger
5798 already implements.
5799
5800 * The predictable network interface naming logic is extended to include
5801 the SR-IOV-R "representor" information in network interface names.
5802 This feature was intended for v254, but even though the code was
5803 merged, the part that actually enabled the feature was forgotten.
5804 It is now enabled by default and is part of the new "v255" naming
5805 scheme.
5806
5807 * A new hwdb/rules file has been added that sets the
5808 ID_NET_AUTO_LINK_LOCAL_ONLY=1 udev property on all network interfaces
5809 that should usually only be configured with link-local addressing
5810 (IPv4LL + IPv6LL), i.e. for PC-to-PC cables ("laplink") or
5811 Thunderbolt networking. systemd-networkd and NetworkManager (soon)
5812 will make use of this information to apply an appropriate network
5813 configuration by default.
5814
5815 * The ID_NET_DRIVER property on network interfaces is now set
5816 relatively early in the udev rule set so that other rules may rely on
5817 its use. This is implemented in a new "net-driver" udev built-in.
5818
5819 Network Management:
5820
5821 * The "duid-only" option for DHCPv4 client's ClientIdentifier= setting
5822 is now dropped, as it never worked, hence it should not be used by
5823 anyone.
5824
5825 * The 'prefixstable' ipv6 address generation mode now considers the SSID
5826 when generating stable addresses, so that a different stable address
5827 is used when roaming between wireless networks. If you already use
5828 'prefixstable' addresses with wireless networks, the stable address
5829 will be changed by the update.
5830
5831 * The DHCPv4 client gained a RapidCommit option, true by default, which
5832 enables RFC4039 Rapid Commit behavior to obtain a lease in a
5833 simplified 2-message exchange instead of the typical 4-message
5834 exchange, if also supported by the DHCP server.
5835
5836 * The DHCPv4 client gained new InitialCongestionWindow= and
5837 InitialAdvertisedReceiveWindow= options for route configurations.
5838
5839 * The DHCPv4 client gained a new RequestAddress= option that allows
5840 to send a preferred IP address in the initial DHCPDISCOVER message.
5841
5842 * The DHCPv4 server and client gained support for IPv6-only mode
5843 (RFC8925).
5844
5845 * The SendHostname= and Hostname= options are now available for the
5846 DHCPv6 client, independently of the DHCPv4= option, so that these
5847 configuration values can be set independently for each client.
5848
5849 * The DHCPv4 and DHCPv6 client state can now be queried via D-Bus,
5850 including lease information.
5851
5852 * The DHCPv6 client can now be configured to use a custom DUID type.
5853
5854 * .network files gained a new IPv4ReversePathFilter= setting in the
5855 [Network] section, to control sysctl's rp_filter setting.
5856
5857 * .network files gaiend a new HopLimit= setting in the [Route] section,
5858 to configure a per-route hop limit.
5859
5860 * .network files gained a new TCPRetransmissionTimeoutSec= setting in
5861 the [Route] section, to configure a per-route TCP retransmission
5862 timeout.
5863
5864 * A new directive NFTSet= provides a method for integrating network
5865 configuration into firewall rules with NFT sets. The benefit of using
5866 this setting is that static network configuration or dynamically
5867 obtained network addresses can be used in firewall rules with the
5868 indirection of NFT set types.
5869
5870 * The [IPv6AcceptRA] section supports the following new options:
5871 UsePREF64=, UseHopLimit=, UseICMP6RateLimit=, and NFTSet=.
5872
5873 * The [IPv6SendRA] section supports the following new options:
5874 RetransmitSec=, HopLimit=, HomeAgent=, HomeAgentLifetimeSec=, and
5875 HomeAgentPreference=.
5876
5877 * A new [IPv6PREF64Prefix] set of options, containing Prefix= and
5878 LifetimeSec=, has been introduced to append pref64 options in router
5879 advertisements (RFC8781).
5880
5881 * The network generator now configures the interfaces with only
5882 link-local addressing if "ip=link-local" is specified on the kernel
5883 command line.
5884
5885 * The prefix of the configuration files generated by the network
5886 generator from the kernel command line is now prefixed with '70-',
5887 to make them have higher precedence over the default configuration
5888 files.
5889
5890 * Added a new -Ddefault-network=BOOL meson option, that causes more
5891 .network files to be installed as enabled by default. These configuration
5892 files will which match generic setups, e.g. 89-ethernet.network matches
5893 all Ethernet interfaces and enables both DHCPv4 and DHCPv6 clients.
5894
5895 * If a ID_NET_MANAGED_BY= udev property is set on a network device and
5896 it is any other string than "io.systemd.Network" then networkd will
5897 not manage this device. This may be used to allow multiple network
5898 management services to run in parallel and assign ownership of
5899 specific devices explicitly. NetworkManager will soon implement a
5900 similar logic.
5901
5902 * .network files gained a new MulticastIGMPVersion= setting in the
5903 [Network] section, to control sysctl's
5904 /proc/sys/net/ipv4/conf/INTERFACE/force_igmp_version setting.
5905
5906 systemctl:
5907
5908 * systemctl is-failed now checks the system state if no unit is
5909 specified.
5910
5911 * systemctl will now automatically soft-reboot if a new root file system
5912 is found under /run/nextroot/ when a reboot operation is invoked.
5913
5914 Login management:
5915
5916 * Wall messages now work even when utmp support is disabled, using
5917 systemd-logind to query the necessary information.
5918
5919 * systemd-logind now sends a new PrepareForShutdownWithMetadata D-Bus
5920 signal before shutdown/reboot/soft-reboot that includes additional
5921 information compared to the PrepareForShutdown signal. Currently the
5922 additional information is the type of operation that is about to be
5923 executed.
5924
5925 Hibernation & Suspend:
5926
5927 * The kernel and OS versions will no longer be checked on resume from
5928 hibernation.
5929
5930 * Hibernation into swap files backed by btrfs is now supported.
5931 (Previously this was supported only for other file systems.)
5932
5933 Other:
5934
5935 * A new systemd-vmspawn tool has been added, that aims to provide for VMs
5936 the same interfaces and functionality that systemd-nspawn provides for
5937 containers. For now it supports QEMU as a backend, and exposes some of
5938 its options to the user. This component is experimental and its public
5939 interface is subject to change.
5940
5941 * "systemd-analyze plot" has gained tooltips on each unit name with
5942 related-unit information in its svg output, such as Before=,
5943 Requires=, and similar properties.
5944
5945 * A new varlinkctl tool has been added to allow interfacing with
5946 Varlink services, and introspection has been added to all such
5947 services. This component is experimental and its public interface is
5948 subject to change.
5949
5950 * systemd-sysext and systemd-confext now expose a Varlink service
5951 at io.systemd.sysext.
5952
5953 * portable services now accept confexts as extensions.
5954
5955 * systemd-sysupdate now accepts directories in the MatchPattern= option.
5956
5957 * systemd-run will now output the invocation ID of the launched
5958 transient unit and its peak memory usage.
5959
5960 * systemd-analyze, systemd-tmpfiles, systemd-sysusers, systemd-sysctl,
5961 and systemd-binfmt gained a new --tldr option that can be used instead
5962 of --cat-config to suppress uninteresting configuration lines, such as
5963 comments and whitespace.
5964
5965 * resolvectl gained a new "show-server-state" command that shows
5966 current statistics of the resolver. This is backed by a new
5967 DumpStatistics() Varlink method provided by systemd-resolved.
5968
5969 * systemd-timesyncd will now emit a D-Bus signal when the LinkNTPServers
5970 property changes.
5971
5972 * vconsole now supports KEYMAP=@kernel for preserving the kernel keymap
5973 as-is.
5974
5975 * seccomp now supports the LoongArch64 architecture.
5976
5977 * seccomp may now be enabled for services running as a non-root User=
5978 without NoNewPrivileges=yes.
5979
5980 * systemd-id128 now supports a new -P option to show only values. The
5981 combination of -P and --app options is also supported.
5982
5983 * A new pam_systemd_loadkey.so PAM module is now available, which will
5984 automatically fetch the passphrase used by cryptsetup to unlock the
5985 root file system and set it as the PAM authtok. This enables, among
5986 other things, configuring auto-unlock of the GNOME Keyring / KDE
5987 Wallet when autologin is configured.
5988
5989 * Many meson options now use the 'feature' type, which means they
5990 take enabled/disabled/auto as values.
5991
5992 * A new meson option -Dconfigfiledir= can be used to change where
5993 configuration files with default values are installed to.
5994
5995 * Options and verbs in man pages are now tagged with the version they
5996 were first introduced in.
5997
5998 * A new component "systemd-storagetm" has been added, which exposes all
5999 local block devices as NVMe-TCP devices, fully automatically. It's
6000 hooked into a new target unit storage-target-mode.target that is
6001 supposed to be booted into via
6002 rd.systemd.unit=storage-target-mode.target on the kernel command
6003 line. This is intended to be used for installers and debugging to
6004 quickly get access to the local disk. It's inspired by MacOS "target
6005 disk mode". This component is experimental and its public interface is
6006 subject to change.
6007
6008 * A new component "systemd-bsod" has been added, which can show logged
6009 error messages full screen, if they have a log level of LOG_EMERG log
6010 level. This component is experimental and its public interface is
6011 subject to change.
6012
6013 * The systemd-dissect tool's --with command will now set the
6014 $SYSTEMD_DISSECT_DEVICE environment variable to the block device it
6015 operates on for the invoked process.
6016
6017 * The systemd-mount tool gained a new --tmpfs switch for mounting a new
6018 'tmpfs' instance. This is useful since it does so via .mount units
6019 and thus can be executed remotely or in containers.
6020
6021 * The various tools in systemd that take "verbs" (such as systemctl,
6022 loginctl, machinectl, …) now will suggest a close verb name in case
6023 the user specified an unrecognized one.
6024
6025 * libsystemd now exports a new function sd_id128_get_app_specific()
6026 that generates "app-specific" 128bit IDs from any ID. It's similar to
6027 sd_id128_get_machine_app_specific() and
6028 sd_id128_get_boot_app_specific() but takes the ID to base calculation
6029 on as input. This new functionality is also exposed in the
6030 systemd-id128 tool where you can now combine --app= with 'show'.
6031
6032 * All tools that parse timestamps now can also parse RFC3339 style
6033 timestamps that include the "T" and Z" characters.
6034
6035 * New documentation has been added:
6036
6037 https://systemd.io/FILE_DESCRIPTOR_STORE
6038 https://systemd.io/TPM2_PCR_MEASUREMENTS
6039 https://systemd.io/MOUNT_REQUIREMENTS
6040
6041 * The codebase now recognizes the suffix .confext.raw and .sysext.raw
6042 as alternative to the .raw suffix generally accepted for DDIs. It is
6043 recommended to name configuration extensions and system extensions
6044 with such suffixes, to indicate their purpose in the name.
6045
6046 * The sd-device API gained a new function
6047 sd_device_enumerator_add_match_property_required() which allows
6048 configuring matches on properties that are strictly required. This is
6049 different from the existing sd_device_enumerator_add_match_property()
6050 matches of which one needs to apply.
6051
6052 * The MAC address the veth side of an nspawn container shall get
6053 assigned may now be controlled via the $SYSTEMD_NSPAWN_NETWORK_MAC
6054 environment variable.
6055
6056 * The libiptc dependency is now implemented via dlopen(), so that tools
6057 such as networkd and nspawn no longer have a hard dependency on the
6058 shared library when compiled with support for libiptc.
6059
6060 * New rpm macros have been added: %systemd_user_daemon_reexec does
6061 daemon-reexec for all user managers, and %systemd_postun_with_reload
6062 and %systemd_user_postun_with_reload do a reload for system and user
6063 units on upgrades.
6064
6065 * coredumpctl now propagates SIGTERM to the debugger process.
6066
6067 Contributions from: 김인수, Abderrahim Kitouni, Adam Goldman,
6068 Adam Williamson, Alexandre Peixoto Ferreira, Alex Hudspith,
6069 Alvin Alvarado, André Paiusco, Antonio Alvarez Feijoo,
6070 Anton Lundin, Arian van Putten, Arseny Maslennikov, Arthur Shau,
6071 Balázs Úr, beh_10257, Benjamin Peterson, Bertrand Jacquin,
6072 Brian Norris, Charles Lee, Cheng-Chia Tseng, Chris Patterson,
6073 Christian Hergert, Christian Hesse, Christian Kirbach,
6074 Clayton Craft, commondservice, cunshunxia, Curtis Klein, cvlc12,
6075 Daan De Meyer, Daniele Medri, Daniel P. Berrangé, Daniel Rusek,
6076 Daniel Thompson, Dan Nicholson, Dan Streetman, David Rheinsberg,
6077 David Santamaría Rogado, David Tardon, dependabot[bot],
6078 Diego Viola, Dmitry V. Levin, Emanuele Giuseppe Esposito,
6079 Emil Renner Berthing, Emil Velikov, Etienne Dechamps, Fabian Vogt,
6080 felixdoerre, Felix Dörre, Florian Schmaus, Franck Bui,
6081 Frantisek Sumsal, G2-Games, Gioele Barabucci, Hugo Carvalho,
6082 huyubiao, Iago López Galeiras, IllusionMan1212, Jade Lovelace,
6083 janana, Jan Janssen, Jan Kuparinen, Jan Macku, Jeremy Fleischman,
6084 Jin Liu, jjimbo137, Joerg Behrmann, Johannes Segitz, Jordan Rome,
6085 Jordan Williams, Julien Malka, Juno Computers, Khem Raj, khm,
6086 Kingbom Dou, Kiran Vemula, Krzesimir Nowak, Laszlo Gombos,
6087 Lennart Poettering, linuxlion, Luca Boccassi, Lucas Adriano Salles,
6088 Lukas, Lukáš Nykrýn, Maanya Goenka, Maarten, Malte Poll,
6089 Marc Pervaz Boocha, Martin Beneš, Martin Joerg, Martin Wilck,
6090 Mathieu Tortuyaux, Matthias Schiffer, Maxim Mikityanskiy,
6091 Max Kellermann, Michael A Cassaniti, Michael Biebl, Michael Kuhn,
6092 Michael Vasseur, Michal Koutný, Michal Sekletár, Mike Yuan,
6093 Milton D. Miller II, mordner, msizanoen, NAHO, Nandakumar Raghavan,
6094 Neil Wilson, Nick Rosbrook, Nils K, NRK, Oğuz Ersen,
6095 Omojola Joshua, onenowy, Paul Meyer, Paymon MARANDI, pelaufer,
6096 Peter Hutterer, PhylLu, Pierre GRASSER, Piotr Drąg, Priit Laes,
6097 Rahil Bhimjiani, Raito Bezarius, Raul Cheleguini, Reto Schneider,
6098 Richard Maw, Robby Red, RoepLuke, Roland Hieber, Roland Singer,
6099 Ronan Pigott, Sam James, Sam Leonard, Sergey A, Susant Sahani,
6100 Sven Joachim, Tad Fisher, Takashi Sakamoto, Thorsten Kukuk, Tj,
6101 Tomasz Świątek, Topi Miettinen, Valentin David,
6102 Valentin Lefebvre, Victor Westerhuis, Vincent Haupert,
6103 Vishal Chillara Srinivas, Vito Caputo, Warren, Weblate,
6104 Xiaotian Wu, xinpeng wang, Yaron Shahrabani, Yo-Jung Lin,
6105 Yu Watanabe, Zbigniew Jędrzejewski-Szmek, zeroskyx,
6106 Дамјан Георгиевски, наб
6107
6108 — Edinburgh, 2023-12-06
6109
6110 CHANGES WITH 254:
6111
6112 Announcements of Future Feature Removals and Incompatible Changes:
6113
6114 * The next release (v255) will remove support for split-usr (/usr/
6115 mounted separately during late boot, instead of being mounted by the
6116 initrd before switching to the rootfs) and unmerged-usr (parallel
6117 directories /bin/ and /usr/bin/, /lib/ and /usr/lib/, …). For more
6118 details, see:
6119 https://lists.freedesktop.org/archives/systemd-devel/2022-September/048352.html
6120
6121 * We intend to remove cgroup v1 support from a systemd release after
6122 the end of 2023. If you run services that make explicit use of
6123 cgroup v1 features (i.e. the "legacy hierarchy" with separate
6124 hierarchies for each controller), please implement compatibility with
6125 cgroup v2 (i.e. the "unified hierarchy") sooner rather than later.
6126 Most of Linux userspace has been ported over already.
6127
6128 * Support for System V service scripts is now deprecated and will be
6129 removed in a future release. Please make sure to update your software
6130 *now* to include a native systemd unit file instead of a legacy
6131 System V script to retain compatibility with future systemd releases.
6132
6133 * Support for the SystemdOptions EFI variable is deprecated.
6134 'bootctl systemd-efi-options' will emit a warning when used. It seems
6135 that this feature is little-used and it is better to use alternative
6136 approaches like credentials and confexts. The plan is to drop support
6137 altogether at a later point, but this might be revisited based on
6138 user feedback.
6139
6140 * EnvironmentFile= now treats the line following a comment line
6141 trailing with escape as a non comment line. For details, see:
6142 https://github.com/systemd/systemd/issues/27975
6143
6144 * PrivateNetwork=yes and NetworkNamespacePath= now imply
6145 PrivateMounts=yes unless PrivateMounts=no is explicitly specified.
6146
6147 * Behaviour of sandboxing options for the per-user service manager
6148 units has changed. They now imply PrivateUsers=yes, which means user
6149 namespaces will be implicitly enabled when a sandboxing option is
6150 enabled in a user unit. Enabling user namespaces has the drawback
6151 that system users will no longer be visible (and processes/files will
6152 appear as owned by 'nobody') in the user unit.
6153
6154 By definition a sandboxed user unit should run with reduced
6155 privileges, so impact should be small. This will remove a great
6156 source of confusion that has been reported by users over the years,
6157 due to how these options require an extra setting to be manually
6158 enabled when used in the per-user service manager, which is not
6159 needed in the system service manager. For more details, see:
6160 https://lists.freedesktop.org/archives/systemd-devel/2022-December/048682.html
6161
6162 * systemd-run's switch --expand-environment= which currently is disabled
6163 by default when combined with --scope, will be changed in a future
6164 release to be enabled by default.
6165
6166 Security Relevant Changes:
6167
6168 * pam_systemd will now by default pass the CAP_WAKE_ALARM ambient
6169 process capability to invoked session processes of regular users on
6170 local seats (as well as to systemd --user), unless configured
6171 otherwise via data from JSON user records, or via the PAM module's
6172 parameter list. This is useful in order allow desktop tools such as
6173 GNOME's Alarm Clock application to set a timer for
6174 CLOCK_REALTIME_ALARM that wakes up the system when it elapses. A
6175 per-user service unit file may thus use AmbientCapability= to pass
6176 the capability to invoked processes. Note that this capability is
6177 relatively narrow in focus (in particular compared to other process
6178 capabilities such as CAP_SYS_ADMIN) and we already — by default —
6179 permit more impactful operations such as system suspend to local
6180 users.
6181
6182 Service Manager:
6183
6184 * Memory limits that apply while the unit is activating are now
6185 supported. Previously IO and CPU settings were already supported via
6186 StartupCPUWeight= and similar. The same logic has been added for the
6187 various manager and unit memory settings (DefaultStartupMemoryLow=,
6188 StartupMemoryLow=, StartupMemoryHigh=, StartupMemoryMax=,
6189 StartupMemorySwapMax=, StartupMemoryZSwapMax=).
6190
6191 * The service manager gained support for enqueuing POSIX signals to
6192 services that carry an additional integer value, exposing the
6193 sigqueue() system call. This is accessible via new D-Bus calls
6194 org.freedesktop.systemd1.Manager.QueueSignalUnit() and
6195 org.freedesktop.systemd1.Unit.QueueSignal(), as well as in systemctl
6196 via the new --kill-value= option.
6197
6198 * systemctl gained a new "list-paths" verb, which shows all currently
6199 active .path units, similarly to how "systemctl list-timers" shows
6200 active timers, and "systemctl list-sockets" shows active sockets.
6201
6202 * systemctl gained a new --when= switch which is honoured by the various
6203 forms of shutdown (i.e. reboot, kexec, poweroff, halt) and allows
6204 scheduling these operations by time, similar in fashion to how this
6205 has been supported by SysV shutdown.
6206
6207 * If MemoryDenyWriteExecute= is enabled for a service and the kernel
6208 supports the new PR_SET_MDWE prctl() call, it is used instead of the
6209 seccomp()-based system call filter to achieve the same effect.
6210
6211 * A new set of kernel command line options is now understood:
6212 systemd.tty.term.<name>=, systemd.tty.rows.<name>=,
6213 systemd.tty.columns.<name>= allow configuring the TTY type and
6214 dimensions for the tty specified via <name>. When systemd invokes a
6215 service on a tty (via TTYName=) it will look for these and configure
6216 the TTY accordingly. This is particularly useful in VM environments
6217 to propagate host terminal settings into the appropriate TTYs of the
6218 guest.
6219
6220 * A new RootEphemeral= setting is now understood in service units. It
6221 takes a boolean argument. If enabled for services that use RootImage=
6222 or RootDirectory= an ephemeral copy of the disk image or directory
6223 tree is made when the service is started. It is removed automatically
6224 when the service is stopped. That ephemeral copy is made using
6225 btrfs/xfs reflinks or btrfs snapshots, if available.
6226
6227 * The service activation logic gained new settings RestartSteps= and
6228 RestartMaxDelaySec= which allow exponentially-growing restart
6229 intervals for Restart=.
6230
6231 * The service activation logic gained a new setting RestartMode= which
6232 can be set to 'direct' to skip the inactive/failed states when
6233 restarting, so that dependent units are not notified until the service
6234 converges to a final (successful or failed) state. For example, this
6235 means that OnSuccess=/OnFailure= units will not be triggered until the
6236 service state has converged.
6237
6238 * PID 1 will now automatically load the virtio_console kernel module
6239 during early initialization if running in a suitable VM. This is done
6240 so that early-boot logging can be written to the console if available.
6241
6242 * Similarly, virtio-vsock support is loaded early in suitable VM
6243 environments. PID 1 will send sd_notify() notifications via AF_VSOCK
6244 to the VMM if configured, thus loading this early is beneficial.
6245
6246 * A new verb "fdstore" has been added to systemd-analyze to show the
6247 current contents of the file descriptor store of a unit. This is
6248 backed by a new D-Bus call DumpUnitFileDescriptorStore() provided by
6249 the service manager.
6250
6251 * The service manager will now set a new $FDSTORE environment variable
6252 when invoking processes for services that have the file descriptor
6253 store enabled.
6254
6255 * A new service option FileDescriptorStorePreserve= has been added that
6256 allows tuning the lifecycle of the per-service file descriptor store.
6257 If set to "yes", the entries in the fd store are retained even after
6258 the service has been fully stopped.
6259
6260 * The "systemctl clean" command may now be used to clear the fdstore of
6261 a service.
6262
6263 * Unit *.preset files gained a new directive "ignore", in addition to
6264 the existing "enable" and "disable". As the name suggests, matching
6265 units are left unchanged, i.e. neither enabled nor disabled.
6266
6267 * Service units gained a new setting DelegateSubgroup=. It takes the
6268 name of a sub-cgroup to place any processes the service manager forks
6269 off in. Previously, the service manager would place all service
6270 processes directly in the top-level cgroup it created for the
6271 service. This usually meant that main process in a service with
6272 delegation enabled would first have to create a subgroup and move
6273 itself down into it, in order to not conflict with the "no processes
6274 in inner cgroups" rule of cgroup v2. With this option, this step is
6275 now handled by PID 1.
6276
6277 * The service manager will now look for .upholds/ directories,
6278 similarly to the existing support for .wants/ and .requires/
6279 directories. Symlinks in this directory result in Upholds=
6280 dependencies.
6281
6282 The [Install] section of unit files gained support for a new
6283 UpheldBy= directive to generate .upholds/ symlinks automatically when
6284 a unit is enabled.
6285
6286 * The service manager now supports a new kernel command line option
6287 systemd.default_device_timeout_sec=, which may be used to override
6288 the default timeout for .device units.
6289
6290 * A new "soft-reboot" mechanism has been added to the service manager.
6291 A "soft reboot" is similar to a regular reboot, except that it
6292 affects userspace only: the service manager shuts down any running
6293 services and other units, then optionally switches into a new root
6294 file system (mounted to /run/nextroot/), and then passes control to a
6295 systemd instance in the new file system which then starts the system
6296 up again. The kernel is not rebooted and neither is the hardware,
6297 firmware or boot loader. This provides a fast, lightweight mechanism
6298 to quickly reset or update userspace, without the latency that a full
6299 system reset involves. Moreover, open file descriptors may be passed
6300 across the soft reboot into the new system where they will be passed
6301 back to the originating services. This allows pinning resources
6302 across the reboot, thus minimizing grey-out time further. This new
6303 reboot mechanism is accessible via the new "systemctl soft-reboot"
6304 command.
6305
6306 * Services using RootDirectory= or RootImage= will now have read-only
6307 access to a copy of the host's os-release file under
6308 /run/host/os-release, which will be kept up-to-date on 'soft-reboot'.
6309 This was already the case for Portable Services, and the feature has
6310 now been extended to all services that do not run off the host's
6311 root filesystem.
6312
6313 * A new service setting MemoryKSM= has been added to enable kernel
6314 same-page merging individually for services.
6315
6316 * A new service setting ImportCredentials= has been added that augments
6317 LoadCredential= and LoadCredentialEncrypted= and searches for
6318 credentials to import from the system, and supports globbing.
6319
6320 * A new job mode "restart-dependencies" has been added to the service
6321 manager (exposed via systemctl --job-mode=). It is only valid when
6322 used with "start" jobs, and has the effect that the "start" job will
6323 be propagated as "restart" jobs to currently running units that have
6324 a BindsTo= or Requires= dependency on the started unit.
6325
6326 * A new verb "whoami" has been added to "systemctl" which determines as
6327 part of which unit the command is being invoked. It writes the unit
6328 name to standard output. If one or more PIDs are specified reports
6329 the unit names the processes referenced by the PIDs belong to.
6330
6331 * The system and service credential logic has been improved: there's
6332 now a clearly defined place where system provisioning tools running
6333 in the initrd can place credentials that will be imported into the
6334 system's set of credentials during the initrd → host transition: the
6335 /run/credentials/@initrd/ directory. Once the credentials placed
6336 there are imported into the system credential set they are deleted
6337 from this directory, and the directory itself is deleted afterwards
6338 too.
6339
6340 * A new kernel command line option systemd.set_credential_binary= has
6341 been added, that is similar to the pre-existing
6342 systemd.set_credential= but accepts arbitrary binary credential data,
6343 encoded in Base64. Note that the kernel command line is not a
6344 recommend way to transfer credentials into a system, since it is
6345 world-readable from userspace.
6346
6347 * The default machine ID to use may now be configured via the
6348 system.machine_id system credential. It will only be used if no
6349 machine ID was set yet on the host.
6350
6351 * On Linux kernel 6.4 and newer system and service credentials will now
6352 be placed in a tmpfs instance that has the "noswap" mount option
6353 set. Previously, a "ramfs" instance was used. By switching to tmpfs
6354 ACL support and overall size limits can now be enforced, without
6355 compromising on security, as the memory is never paged out either
6356 way.
6357
6358 * The service manager now can detect when it is running in a
6359 'Confidential Virtual Machine', and a corresponding 'cvm' value is now
6360 accepted by ConditionSecurity= for units that want to conditionalize
6361 themselves on this. systemd-detect-virt gained new 'cvm' and
6362 '--list-cvm' switches to respectively perform the detection or list
6363 all known flavours of confidential VM, depending on the vendor. The
6364 manager will publish a 'ConfidentialVirtualization' D-Bus property,
6365 and will also set a SYSTEMD_CONFIDENTIAL_VIRTUALIZATION= environment
6366 variable for unit generators. Finally, udev rules can match on a new
6367 'cvm' key that will be set when in a confidential VM.
6368 Additionally, when running in a 'Confidential Virtual Machine', SMBIOS
6369 strings and QEMU's fw_cfg protocol will not be used to import
6370 credentials and kernel command line parameters by the system manager,
6371 systemd-boot and systemd-stub, because the hypervisor is considered
6372 untrusted in this particular setting.
6373
6374 Journal:
6375
6376 * The sd-journal API gained a new call sd_journal_get_seqnum() to
6377 retrieve the current log record's sequence number and sequence number
6378 ID, which allows applications to order records the same way as
6379 journal does internally. The sequence number is now also exported in
6380 the JSON and "export" output of the journal.
6381
6382 * journalctl gained a new switch --truncate-newline. If specified
6383 multi-line log records will be truncated at the first newline,
6384 i.e. only the first line of each log message will be shown.
6385
6386 * systemd-journal-upload gained support for --namespace=, similar to
6387 the switch of the same name of journalctl.
6388
6389 systemd-repart:
6390
6391 * systemd-repart's drop-in files gained a new ExcludeFiles= option which
6392 may be used to exclude certain files from the effect of CopyFiles=.
6393
6394 * systemd-repart's Verity support now implements the Minimize= setting
6395 to minimize the size of the resulting partition.
6396
6397 * systemd-repart gained a new --offline= switch, which may be used to
6398 control whether images shall be built "online" or "offline",
6399 i.e. whether to make use of kernel facilities such as loopback block
6400 devices and device mapper or not.
6401
6402 * If systemd-repart is told to populate a newly created ESP or XBOOTLDR
6403 partition with some files, it will now default to VFAT rather than
6404 ext4.
6405
6406 * systemd-repart gained a new --architecture= switch. If specified, the
6407 per-architecture GPT partition types (i.e. the root and /usr/
6408 partitions) configured in the partition drop-in files are
6409 automatically adjusted to match the specified CPU architecture, in
6410 order to simplify cross-architecture DDI building.
6411
6412 * systemd-repart will now default to a minimum size of 300MB for XFS
6413 filesystems if no size parameter is specified. This matches what the
6414 XFS tools (xfsprogs) can support.
6415
6416 systemd-boot, systemd-stub, ukify, bootctl, kernel-install:
6417
6418 * gnu-efi is no longer required to build systemd-boot and systemd-stub.
6419 Instead, pyelftools is now needed, and it will be used to perform the
6420 ELF -> PE relocations at build time.
6421
6422 * bootctl gained a new switch --print-root-device/-R that prints the
6423 block device the root file system is backed by. If specified twice,
6424 it returns the whole disk block device (as opposed to partition block
6425 device) the root file system is on. It's useful for invocations such
6426 as "cfdisk $(bootctl -RR)" to quickly show the partition table of the
6427 running OS.
6428
6429 * systemd-stub will now look for the SMBIOS Type 1 field
6430 "io.systemd.stub.kernel-cmdline-extra" and append its value to the
6431 kernel command line it invokes. This is useful for VMMs such as qemu
6432 to pass additional kernel command lines into the system even when
6433 booting via full UEFI. The contents of the field are measured into
6434 TPM PCR 12.
6435
6436 * The KERNEL_INSTALL_LAYOUT= setting for kernel-install gained a new
6437 value "auto". With this value, a kernel will be automatically
6438 analyzed, and if it qualifies as UKI, it will be installed as if the
6439 setting was to set to "uki", otherwise as "bls".
6440
6441 * systemd-stub can now optionally load UEFI PE "add-on" images that may
6442 contain additional kernel command line information. These "add-ons"
6443 superficially look like a regular UEFI executable, and are expected
6444 to be signed via SecureBoot/shim. However, they do not actually
6445 contain code, but instead a subset of the PE sections that UKIs
6446 support. They are supposed to provide a way to extend UKIs with
6447 additional resources in a secure and authenticated way. Currently,
6448 only the .cmdline PE section may be used in add-ons, in which case
6449 any specified string is appended to the command line embedded into
6450 the UKI itself. A new 'addon<EFI-ARCH>.efi.stub' is now provided that
6451 can be used to trivially create addons, via 'ukify' or 'objcopy'. In
6452 the future we expect other sections to be made extensible like this as
6453 well.
6454
6455 * ukify has been updated to allow building these UEFI PE "add-on"
6456 images, using the new 'addon<EFI-ARCH>.efi.stub'.
6457
6458 * ukify now accepts SBAT information to place in the .sbat PE section
6459 of UKIs and addons. If a UKI is built the SBAT information from the
6460 inner kernel is merged with any SBAT information associated with
6461 systemd-stub and the SBAT data specified on the ukify command line.
6462
6463 * The kernel-install script has been rewritten in C, and reuses much of
6464 the infrastructure of existing tools such as bootctl. It also gained
6465 --esp-path= and --boot-path= options to override the path to the ESP,
6466 and the $BOOT partition. Options --make-entry-directory= and
6467 --entry-token= have been added as well, similar to bootctl's options
6468 of the same name.
6469
6470 * A new kernel-install plugin 60-ukify has been added which will
6471 combine kernel/initrd locally into a UKI and optionally sign them
6472 with a local key. This may be used to switch to UKI mode even on
6473 systems where a local kernel or initrd is used. (Typically UKIs are
6474 built and signed by the vendor.)
6475
6476 * The ukify tool now supports "pesign" in addition to the pre-existing
6477 "sbsign" for signing UKIs.
6478
6479 * systemd-measure and systemd-stub now look for the .uname PE section
6480 that should contain the kernel's "uname -r" string.
6481
6482 * systemd-measure and ukify now calculate expected PCR hashes for a UKI
6483 "offline", i.e. without access to a TPM (physical or
6484 software-emulated).
6485
6486 Memory Pressure & Control:
6487
6488 * The sd-event API gained new calls sd_event_add_memory_pressure(),
6489 sd_event_source_set_memory_pressure_type(),
6490 sd_event_source_set_memory_pressure_period() to create and configure
6491 an event source that is called whenever the OS signals memory
6492 pressure. Another call sd_event_trim_memory() is provided that
6493 compacts the process' memory use by releasing allocated but unused
6494 malloc() memory back to the kernel. Services can also provide their
6495 own custom callback to do memory trimming. This should improve system
6496 behaviour under memory pressure, as on Linux traditionally provided
6497 no mechanism to return process memory back to the kernel if the
6498 kernel was under memory pressure. This makes use of the kernel's PSI
6499 interface. Most long-running services in systemd have been hooked up
6500 with this, and in particular systems with low memory should benefit
6501 from this.
6502
6503 * Service units gained new settings MemoryPressureWatch= and
6504 MemoryPressureThresholdSec= to configure the PSI memory pressure
6505 logic individually. If these options are used, the
6506 $MEMORY_PRESSURE_WATCH and $MEMORY_PRESSURE_WRITE environment
6507 variables will be set for the invoked processes to inform them about
6508 the requested memory pressure behaviour. (This is used by the
6509 aforementioned sd-events API additions, if set.)
6510
6511 * systemd-analyze gained a new "malloc" verb that shows the output
6512 generated by glibc's malloc_info() on services that support it. Right
6513 now, only the service manager has been updated accordingly. This
6514 call requires privileges.
6515
6516 User & Session Management:
6517
6518 * The sd-login API gained a new call sd_session_get_username() to
6519 return the user name of the owner of a login session. It also gained
6520 a new call sd_session_get_start_time() to retrieve the time the login
6521 session started. A new call sd_session_get_leader() has been added to
6522 return the PID of the "leader" process of a session. A new call
6523 sd_uid_get_login_time() returns the time since the specified user has
6524 most recently been continuously logged in with at least one session.
6525
6526 * JSON user records gained a new set of fields capabilityAmbientSet and
6527 capabilityBoundingSet which contain a list of POSIX capabilities to
6528 set for the logged in users in the ambient and bounding sets,
6529 respectively. homectl gained the ability to configure these two sets
6530 for users via --capability-bounding-set=/--capability-ambient-set=.
6531
6532 * pam_systemd learnt two new module options
6533 default-capability-bounding-set= and default-capability-ambient-set=,
6534 which configure the default bounding sets for users as they are
6535 logging in, if the JSON user record doesn't specify this explicitly
6536 (see above). The built-in default for the ambient set now contains
6537 the CAP_WAKE_ALARM, thus allowing regular users who may log in
6538 locally to resume from a system suspend via a timer.
6539
6540 * The Session D-Bus objects systemd-logind gained a new SetTTY() method
6541 call to update the TTY of a session after it has been allocated. This
6542 is useful for SSH sessions which are typically allocated first, and
6543 for which a TTY is added later.
6544
6545 * The sd-login API gained a new call sd_pid_notifyf_with_fds() which
6546 combines the various other sd_pid_notify() flavours into one: takes a
6547 format string, an overriding PID, and a set of file descriptors to
6548 send. It also gained a new call sd_pid_notify_barrier() call which is
6549 equivalent to sd_notify_barrier() but allows the originating PID to
6550 be specified.
6551
6552 * "loginctl list-users" and "loginctl list-sessions" will now show the
6553 state of each logged in user/session in their tabular output. It will
6554 also show the current idle state of sessions.
6555
6556 DDIs:
6557
6558 * systemd-dissect will now show the intended CPU architecture of an
6559 inspected DDI.
6560
6561 * systemd-dissect will now install itself as mount helper for the "ddi"
6562 pseudo-file system type. This means you may now mount DDIs directly
6563 via /bin/mount or /etc/fstab, making full use of embedded Verity
6564 information and all other DDI features.
6565
6566 Example: mount -t ddi myimage.raw /some/where
6567
6568 * The systemd-dissect tool gained the new switches --attach/--detach to
6569 attach/detach a DDI to a loopback block device without mounting it.
6570 It will automatically derive the right sector size from the image
6571 and set up Verity and similar, but not mount the file systems in it.
6572
6573 * When systemd-gpt-auto-generator or the DDI mounting logic mount an
6574 ESP or XBOOTLDR partition the MS_NOSYMFOLLOW mount option is now
6575 implied. Given that these file systems are typically untrusted, this
6576 should make mounting them automatically have less of a security
6577 impact.
6578
6579 * All tools that parse DDIs (such as systemd-nspawn, systemd-dissect,
6580 systemd-tmpfiles, …) now understand a new switch --image-policy= which
6581 takes a string encoding image dissection policy. With this mechanism
6582 automatic discovery and use of specific partition types and the
6583 cryptographic requirements on the partitions (Verity, LUKS, …) can be
6584 restricted, permitting better control of the exposed attack surfaces
6585 when mounting disk images. systemd-gpt-auto-generator will honour such
6586 an image policy too, configurable via the systemd.image_policy= kernel
6587 command line option. Unit files gained the RootImagePolicy=,
6588 MountImagePolicy= and ExtensionImagePolicy= to configure the same for
6589 disk images a service runs off.
6590
6591 * systemd-analyze gained a new verb "image-policy" to validate and
6592 parse image policy strings.
6593
6594 * systemd-dissect gained support for a new --validate switch to
6595 superficially validate DDI structure, and check whether a specific
6596 image policy allows the DDI.
6597
6598 * systemd-dissect gained support for a new --mtree-hash switch to
6599 optionally disable calculating mtree hashes, which can be slow on
6600 large images.
6601
6602 * systemd-dissect --copy-to, --copy-from, --list and --mtree switches
6603 are now able to operate on directories too, other than images.
6604
6605 Network Management:
6606
6607 * networkd's GENEVE support as gained a new .network option
6608 InheritInnerProtocol=.
6609
6610 * The [Tunnel] section in .netdev files has gained a new setting
6611 IgnoreDontFragment for controlling the IPv4 "DF" flag of datagrams.
6612
6613 * A new global IPv6PrivacyExtensions= setting has been added that
6614 selects the default value of the per-network setting of the same
6615 name.
6616
6617 * The predictable network interface naming logic was extended to
6618 include SR-IOV-R "representor" information in network interface
6619 names. Unfortunately, this feature was not enabled by default and can
6620 only be enabled at compilation time by setting
6621 -Ddefault-net-naming-scheme=v254.
6622
6623 * The DHCPv4 + DHCPv6 + IPv6 RA logic in networkd gained support for
6624 the RFC8910 captive portal option.
6625
6626 Device Management:
6627
6628 * udevadm gained the new "verify" verb for validating udev rules files
6629 offline.
6630
6631 * udev gained a new tool "iocost" that can be used to configure QoS IO
6632 cost data based on hwdb information onto suitable block devices. Also
6633 see https://github.com/iocost-benchmark/iocost-benchmarks.
6634
6635 TPM2 Support + Disk Encryption & Authentication:
6636
6637 * systemd-cryptenroll/systemd-cryptsetup will now install a TPM2 SRK
6638 ("Storage Root Key") as first step in the TPM2, and then use that
6639 for binding FDE to, if TPM2 support is used. This matches
6640 recommendations of TCG (see
6641 https://trustedcomputinggroup.org/wp-content/uploads/TCG-TPM-v2.0-Provisioning-Guidance-Published-v1r1.pdf)
6642
6643 * systemd-cryptenroll and other tools that take TPM2 PCR parameters now
6644 understand textual identifiers for these PCRs.
6645
6646 * systemd-veritysetup + /etc/veritytab gained support for a series of
6647 new options: hash-offset=, superblock=, format=, data-block-size=,
6648 hash-block-size=, data-blocks=, salt=, uuid=, hash=, fec-device=,
6649 fec-offset=, fec-roots= to configure various aspects of a Verity
6650 volume.
6651
6652 * systemd-cryptsetup + /etc/crypttab gained support for a new
6653 veracrypt-pim= option for setting the Personal Iteration Multiplier
6654 of veracrypt volumes.
6655
6656 * systemd-integritysetup + /etc/integritytab gained support for a new
6657 mode= setting for controlling the dm-integrity mode (journal, bitmap,
6658 direct) for the volume.
6659
6660 * systemd-analyze gained a new verb "pcrs" that shows the known TPM PCR
6661 registers, their symbolic names and current values.
6662
6663 systemd-tmpfiles:
6664
6665 * The ACL support in tmpfiles.d/ has been updated: if an uppercase "X"
6666 access right is specified this is equivalent to "x" but only if the
6667 inode in question already has the executable bit set for at least
6668 some user/group. Otherwise the "x" bit will be turned off.
6669
6670 * tmpfiles.d/'s C line type now understands a new modifier "+": a line
6671 with C+ will result in a "merge" copy, i.e. all files of the source
6672 tree are copied into the target tree, even if that tree already
6673 exists, resulting in a combined tree of files already present in the
6674 target tree and those copied in.
6675
6676 * systemd-tmpfiles gained a new --graceful switch. If specified lines
6677 with unknown users/groups will silently be skipped.
6678
6679 systemd-notify:
6680
6681 * systemd-notify gained two new options --fd= and --fdname= for sending
6682 arbitrary file descriptors to the service manager (while specifying an
6683 explicit name for it).
6684
6685 * systemd-notify gained a new --exec switch, which makes it execute the
6686 specified command line after sending the requested messages. This is
6687 useful for sending out READY=1 first, and then continuing invocation
6688 without changing process ID, so that the tool can be nicely used
6689 within an ExecStart= line of a unit file that uses Type=notify.
6690
6691 sd-event + sd-bus APIs:
6692
6693 * The sd-event API gained a new call sd_event_source_leave_ratelimit()
6694 which may be used to explicitly end a rate-limit state an event
6695 source might be in, resetting all rate limiting counters.
6696
6697 * When the sd-bus library is used to make connections to AF_UNIX D-Bus
6698 sockets, it will now encode the "description" set via
6699 sd_bus_set_description() into the source socket address. It will also
6700 look for this information when accepting a connection. This is useful
6701 to track individual D-Bus connections on a D-Bus broker for debug
6702 purposes.
6703
6704 systemd-resolved:
6705
6706 * systemd-resolved gained a new resolved.conf setting
6707 StateRetentionSec= which may be used to retain cached DNS records
6708 even after their nominal TTL, and use them in case upstream DNS
6709 servers cannot be reached. This can be used to make name resolution
6710 more resilient in case of network problems.
6711
6712 * resolvectl gained a new verb "show-cache" to show the current cache
6713 contents of systemd-resolved. This verb communicates with the
6714 systemd-resolved daemon and requires privileges.
6715
6716 Other:
6717
6718 * Meson >= 0.60.0 is now required to build systemd.
6719
6720 * The default keymap to apply may now be chosen at build-time via the
6721 new -Ddefault-keymap= meson option.
6722
6723 * Most of systemd's long-running services now have a generic handler of
6724 the SIGRTMIN+18 signal handler which executes various operations
6725 depending on the sigqueue() parameter sent along. For example, values
6726 0x100…0x107 allow changing the maximum log level of such
6727 services. 0x200…0x203 allow changing the log target of such
6728 services. 0x300 make the services trim their memory similarly to the
6729 automatic PSI-triggered action, see above. 0x301 make the services
6730 output their malloc_info() data to the logs.
6731
6732 * machinectl gained new "edit" and "cat" verbs for editing .nspawn
6733 files, inspired by systemctl's verbs of the same name which edit unit
6734 files. Similarly, networkctl gained the same verbs for editing
6735 .network, .netdev, .link files.
6736
6737 * A new syscall filter group "@sandbox" has been added that contains
6738 syscalls for sandboxing system calls such as those for seccomp and
6739 Landlock.
6740
6741 * New documentation has been added:
6742
6743 https://systemd.io/COREDUMP
6744 https://systemd.io/MEMORY_PRESSURE
6745 smbios-type-11(7)
6746
6747 * systemd-firstboot gained a new --reset option. If specified, the
6748 settings in /etc/ it knows how to initialize are reset.
6749
6750 * systemd-sysext is now a multi-call binary and is also installed under
6751 the systemd-confext alias name (via a symlink). When invoked that way
6752 it will operate on /etc/ instead of /usr/ + /opt/. It thus becomes a
6753 powerful, atomic, secure configuration management of sorts, that
6754 locally can merge configuration from multiple confext configuration
6755 images into a single immutable tree.
6756
6757 * The --network-macvlan=, --network-ipvlan=, --network-interface=
6758 switches of systemd-nspawn may now optionally take the intended
6759 network interface inside the container.
6760
6761 * All our programs will now send an sd_notify() message with their exit
6762 status in the EXIT_STATUS= field when exiting, using the usual
6763 protocol, including PID 1. This is useful for VMMs and container
6764 managers to collect an exit status from a system as it shuts down, as
6765 set via "systemctl exit …". This is particularly useful in test cases
6766 and similar, as invocations via a VM can now nicely propagate an exit
6767 status to the host, similar to local processes.
6768
6769 * systemd-run gained a new switch --expand-environment=no to disable
6770 server-side environment variable expansion in specified command
6771 lines. Expansion defaults to enabled for all execution types except
6772 --scope, where it defaults to off (and prints a warning) for backward
6773 compatibility reasons. --scope will be flipped to enabled by default
6774 too in a future release. If you are using --scope and passing a '$'
6775 character in the payload you should start explicitly using
6776 --expand-environment=yes/no according to the use case.
6777
6778 * The systemd-system-update-generator has been updated to also look for
6779 the special flag file /etc/system-update in addition to the existing
6780 support for /system-update to decide whether to enter system update
6781 mode.
6782
6783 * The /dev/hugepages/ file system is now mounted with nosuid + nodev
6784 mount options by default.
6785
6786 * systemd-fstab-generator now understands two new kernel command line
6787 options systemd.mount-extra= and systemd.swap-extra=, which configure
6788 additional mounts or swaps in a format similar to /etc/fstab. 'fsck'
6789 will be ran on these block devices, like it already happens for
6790 'root='. It also now supports the new fstab.extra and
6791 fstab.extra.initrd credentials that may contain additional /etc/fstab
6792 lines to apply at boot.
6793
6794 * systemd-getty-generator now understands two new credentials
6795 getty.ttys.container and getty.ttys.serial. These credentials may
6796 contain a list of TTY devices – one per line – to instantiate
6797 [email protected] and [email protected] on.
6798
6799 * The getty/serial-getty/container-getty units now import the 'agetty.*'
6800 and 'login.*' credentials, which are consumed by the 'login' and
6801 'agetty' programs starting from util-linux v2.40.
6802
6803 * systemd-sysupdate's sysupdate.d/ drop-ins gained a new setting
6804 PathRelativeTo=, which can be set to "esp", "xbootldr", "boot", in
6805 which case the Path= setting is taken relative to the ESP or XBOOTLDR
6806 partitions, rather than the system's root directory /. The relevant
6807 directories are automatically discovered.
6808
6809 * The systemd-ac-power tool gained a new switch --low, which reports
6810 whether the battery charge is considered "low", similar to how the
6811 s2h suspend logic checks this state to decide whether to enter system
6812 suspend or hibernation.
6813
6814 * The /etc/os-release file can now have two new optional fields
6815 VENDOR_NAME= and VENDOR_URL= to carry information about the vendor of
6816 the OS.
6817
6818 * When the system hibernates, information about the device and offset
6819 used is now written to a non-volatile EFI variable. On next boot the
6820 system will attempt to resume from the location indicated in this EFI
6821 variable. This should make hibernation a lot more robust, while
6822 requiring no manual configuration of the resume location.
6823
6824 * The $XDG_STATE_HOME environment variable (added in more recent
6825 versions of the XDG basedir specification) is now honoured to
6826 implement the StateDirectory= setting in user services.
6827
6828 * A new component "systemd-battery-check" has been added. It may run
6829 during early boot (usually in the initrd), and checks the battery
6830 charge level of the system. In case the charge level is very low the
6831 user is notified (graphically via Plymouth – if available – as well
6832 as in text form on the console), and the system is turned off after a
6833 10s delay. The feature can be disabled by passing
6834 systemd.battery_check=0 through the kernel command line.
6835
6836 * The 'passwdqc' library is now supported as an alternative to the
6837 'pwquality' library and can be selected at build time.
6838
6839 Contributions from: 김인수, 07416, Addison Snelling, Adrian Vovk,
6840 Aidan Dang, Alexander Krabler, Alfred Klomp, Anatoli Babenia,
6841 Andrei Stepanov, Andrew Baxter, Antonio Alvarez Feijoo,
6842 Arian van Putten, Arthur Shau, A S Alam,
6843 Asier Sarasua Garmendia, Balló György, Bastien Nocera,
6844 Benjamin Herrenschmidt, Benjamin Raison, Bill Peterson,
6845 Brad Fitzpatrick, Brett Holman, bri, Chen Qi, Chitoku,
6846 Christian Hesse, Christoph Anton Mitterer, Christopher Gurnee,
6847 Colin Walters, Cornelius Hoffmann, Cristian Rodríguez, cunshunxia,
6848 cvlc12, Cyril Roelandt, Daan De Meyer, Daniele Medri,
6849 Daniel P. Berrangé, Daniel Rusek, Dan Streetman, David Edmundson,
6850 David Schroeder, David Tardon, dependabot[bot],
6851 Dimitri John Ledkov, Dmitrii Fomchenkov, Dmitry V. Levin, dmkUK,
6852 Dominique Martinet, don bright, drosdeck, Edson Juliano Drosdeck,
6853 Egor Ignatov, EinBaum, Emanuele Giuseppe Esposito, Eric Curtin,
6854 Erik Sjölund, Evgeny Vereshchagin, Florian Klink, Franck Bui,
6855 François Rigault, Fran Diéguez, Franklin Yu, Frantisek Sumsal,
6856 Fuminobu TAKEYAMA, Gaël PORTAY, Gerd Hoffmann, Gertalitec,
6857 Gibeom Gwon, Gustavo Noronha Silva, Hannu Lounento,
6858 Hans de Goede, Haochen Tong, HATAYAMA Daisuke, Henrik Holst,
6859 Hoe Hao Cheng, Igor Tsiglyar, Ivan Vecera, James Hilliard,
6860 Jan Engelhardt, Jan Janssen, Jan Luebbe, Jan Macku, Janne Sirén,
6861 jcg, Jeidnx, Joan Bruguera, Joerg Behrmann, jonathanmetzman,
6862 Jordan Rome, Josef Miegl, Joshua Goins, Joyce, Joyce Brum,
6863 Juno Computers, Kai Lueke, Kevin P. Fleming, Kiran Vemula, Klaus,
6864 Klaus Zipfel, Lawrence Thorpe, Lennart Poettering, licunlong,
6865 Lily Foster, Luca Boccassi, Ludwig Nussel, Luna Jernberg,
6866 maanyagoenka, Maanya Goenka, Maksim Kliazovich, Malte Poll,
6867 Marko Korhonen, Masatake YAMATO, Mateusz Poliwczak, Matt Johnston,
6868 Miao Wang, Micah Abbott, Michael A Cassaniti, Michal Koutný,
6869 Michal Sekletár, Mike Yuan, mooo, Morten Linderud, msizanoen,
6870 Nick Rosbrook, nikstur, Olivier Gayot, Omojola Joshua,
6871 Paolo Velati, Paul Barker, Pavel Borecki, Petr Menšík,
6872 Philipp Kern, Philip Withnall, Piotr Drąg, Quintin Hill,
6873 Rene Hollander, Richard Phibel, Robert Meijers, Robert Scheck,
6874 Roger Gammans, Romain Geissler, Ronan Pigott, Russell Harmon,
6875 saikat0511, Samanta Navarro, Sam James, Sam Morris,
6876 Simon Braunschmidt, Sjoerd Simons, Sorah Fukumori,
6877 Stanislaw Gruszka, Stefan Roesch, Steven Luo, Steve Ramage,
6878 Susant Sahani, taniishkaaa, Tanishka, Temuri Doghonadze,
6879 Thierry Martin, Thomas Blume, Thomas Genty, Thomas Weißschuh,
6880 Thorsten Kukuk, Times-Z, Tobias Powalowski, tofylion,
6881 Topi Miettinen, Uwe Kleine-König, Velislav Ivanov,
6882 Vitaly Kuznetsov, Vít Zikmund, Weblate, Will Fancher,
6883 William Roberts, Winterhuman, Wolfgang Müller, Xeonacid,
6884 Xiaotian Wu, Xi Ruoyao, Yuri Chornoivan, Yu Watanabe, Yuxiang Zhu,
6885 Zbigniew Jędrzejewski-Szmek, zhmylove, ZjYwMj,
6886 Дамјан Георгиевски, наб
6887
6888 — Edinburgh, 2023-07-28
6889
6890 CHANGES WITH 253:
6891
6892 Announcements of Future Feature Removals and Incompatible Changes:
6893
6894 * We intend to remove cgroup v1 support from systemd release after the
6895 end of 2023. If you run services that make explicit use of cgroup v1
6896 features (i.e. the "legacy hierarchy" with separate hierarchies for
6897 each controller), please implement compatibility with cgroup v2 (i.e.
6898 the "unified hierarchy") sooner rather than later. Most of Linux
6899 userspace has been ported over already.
6900
6901 * We intend to remove support for split-usr (/usr mounted separately
6902 during boot) and unmerged-usr (parallel directories /bin and
6903 /usr/bin, /lib and /usr/lib, etc). This will happen in the second
6904 half of 2023, in the first release that falls into that time window.
6905 For more details, see:
6906 https://lists.freedesktop.org/archives/systemd-devel/2022-September/048352.html
6907
6908 * We intend to change behaviour w.r.t. units of the per-user service
6909 manager and sandboxing options, so that they work without having to
6910 manually enable PrivateUsers= as well, which is not required for
6911 system units. To make this work, we will implicitly enable user
6912 namespaces (PrivateUsers=yes) when a sandboxing option is enabled in a
6913 user unit. The drawback is that system users will no longer be visible
6914 (and appear as 'nobody') to the user unit when a sandboxing option is
6915 enabled. By definition a sandboxed user unit should run with reduced
6916 privileges, so impact should be small. This will remove a great source
6917 of confusion that has been reported by users over the years, due to
6918 how these options require an extra setting to be manually enabled when
6919 used in the per-user service manager, as opposed as to the system
6920 service manager. We plan to enable this change in the next release
6921 later this year. For more details, see:
6922 https://lists.freedesktop.org/archives/systemd-devel/2022-December/048682.html
6923
6924 Deprecations and incompatible changes:
6925
6926 * systemctl will now warn when invoked without /proc/ mounted
6927 (e.g. when invoked after chroot() into an directory tree without the
6928 API mount points like /proc/ being set up.) Operation in such an
6929 environment is not fully supported.
6930
6931 * The return value of 'systemctl is-active|is-enabled|is-failed' for
6932 unknown units is changed: previously 1 or 3 were returned, but now 4
6933 (EXIT_PROGRAM_OR_SERVICES_STATUS_UNKNOWN) is used as documented.
6934
6935 * 'udevadm hwdb' subcommand is deprecated and will emit a warning.
6936 systemd-hwdb (added in 2014) should be used instead.
6937
6938 * 'bootctl --json' now outputs a single JSON array, instead of a stream
6939 of newline-separated JSON objects.
6940
6941 * Udev rules in 60-evdev.rules have been changed to load hwdb
6942 properties for all modalias patterns. Previously only the first
6943 matching pattern was used. This could change what properties are
6944 assigned if the user has more and less specific patterns that could
6945 match the same device, but it is expected that the change will have
6946 no effect for most users.
6947
6948 * systemd-networkd-wait-online exits successfully when all interfaces
6949 are ready or unmanaged. Previously, if neither '--any' nor
6950 '--interface=' options were used, at least one interface had to be in
6951 configured state. This change allows the case where systemd-networkd
6952 is enabled, but no interfaces are configured, to be handled
6953 gracefully. It may occur in particular when a different network
6954 manager is also enabled and used.
6955
6956 * Some compatibility helpers were dropped: EmergencyAction= in the user
6957 manager, as well as measuring kernel command line into PCR 8 in
6958 systemd-stub, along with the -Defi-tpm-pcr-compat compile-time
6959 option.
6960
6961 * The '-Dupdate-helper-user-timeout=' build-time option has been
6962 renamed to '-Dupdate-helper-user-timeout-sec=', and now takes an
6963 integer as parameter instead of a string.
6964
6965 * The DDI image dissection logic (which backs RootImage= in service
6966 unit files, the --image= switch in various tools such as
6967 systemd-nspawn, as well as systemd-dissect) will now only mount file
6968 systems of types btrfs, ext4, xfs, erofs, squashfs, vfat. This list
6969 can be overridden via the $SYSTEMD_DISSECT_FILE_SYSTEMS environment
6970 variable. These file systems are fairly well supported and maintained
6971 in current kernels, while others are usually more niche, exotic or
6972 legacy and thus typically do not receive the same level of security
6973 support and fixes.
6974
6975 * The default per-link multicast DNS mode is changed to "yes"
6976 (that was previously "no"). As the default global multicast DNS mode
6977 has been "yes" (but can be changed by the build option), now the
6978 multicast DNS is enabled on all links by default. You can disable the
6979 multicast DNS on all links by setting MulticastDNS= in resolved.conf,
6980 or on an interface by calling "resolvectl mdns INTERFACE no".
6981
6982 New components:
6983
6984 * A tool 'ukify' tool to build, measure, and sign Unified Kernel Images
6985 (UKIs) has been added. This replaces functionality provided by
6986 'dracut --uefi' and extends it with automatic calculation of PE file
6987 offsets, insertion of signed PCR policies generated by
6988 systemd-measure, support for initrd concatenation, signing of the
6989 embedded Linux image and the combined image with sbsign, and
6990 heuristics to autodetect the kernel uname and verify the splash
6991 image.
6992
6993 Changes in systemd and units:
6994
6995 * A new service type Type=notify-reload is defined. When such a unit is
6996 reloaded a UNIX process signal (typically SIGHUP) is sent to the main
6997 service process. The manager will then wait until it receives a
6998 "RELOADING=1" followed by a "READY=1" notification from the unit as
6999 response (via sd_notify()). Otherwise, this type is the same as
7000 Type=notify. A new setting ReloadSignal= may be used to change the
7001 signal to send from the default of SIGHUP.
7002
7003 [email protected], systemd-networkd.service, systemd-udevd.service, and
7004 systemd-logind have been updated to this type.
7005
7006 * Initrd environments which are not on a pure memory file system (e.g.
7007 overlayfs combination as opposed to tmpfs) are now supported. With
7008 this change, during the initrd → host transition ("switch root")
7009 systemd will erase all files of the initrd only when the initrd is
7010 backed by a memory file system such as tmpfs.
7011
7012 * New per-unit MemoryZSwapMax= option has been added to configure
7013 memory.zswap.max cgroup properties (the maximum amount of zswap
7014 used).
7015
7016 * A new LogFilterPatterns= option has been added for units. It may be
7017 used to specify accept/deny regular expressions for log messages
7018 generated by the unit, that shall be enforced by systemd-journald.
7019 Rejected messages are neither stored in the journal nor forwarded.
7020 This option may be used to suppress noisy or uninteresting messages
7021 from units.
7022
7023 * The manager has a new
7024 org.freedesktop.systemd1.Manager.GetUnitByPIDFD() D-Bus method to
7025 query process ownership via a PIDFD, which is more resilient against
7026 PID recycling issues.
7027
7028 * Scope units now support OOMPolicy=. Login session scopes default to
7029 OOMPolicy=continue, allowing login scopes to survive the OOM killer
7030 terminating some processes in the scope.
7031
7032 * systemd-fstab-generator now supports x-systemd.makefs option for
7033 /sysroot/ (in the initrd).
7034
7035 * The maximum rate at which daemon reloads are executed can now be
7036 limited with the new ReloadLimitIntervalSec=/ReloadLimitBurst=
7037 options. (Or the equivalent on the kernel command line:
7038 systemd.reload_limit_interval_sec=/systemd.reload_limit_burst=). In
7039 addition, systemd now logs the originating unit and PID when a reload
7040 request is received over D-Bus.
7041
7042 * When enabling a swap device systemd will now reinitialize the device
7043 when the page size of the swap space does not match the page size of
7044 the running kernel. Note that this requires the 'swapon' utility to
7045 provide the '--fixpgsz' option, as implemented by util-linux, and it
7046 is not supported by busybox at the time of writing.
7047
7048 * systemd now executes generator programs in a mount namespace
7049 "sandbox" with most of the file system read-only and write access
7050 restricted to the output directories, and with a temporary /tmp/
7051 mount provided. This provides a safeguard against programming errors
7052 in the generators, but also fixes here-docs in shells, which
7053 previously didn't work in early boot when /tmp/ wasn't available
7054 yet. (This feature has no security implications, because the code is
7055 still privileged and can trivially exit the sandbox.)
7056
7057 * The system manager will now parse a new "vmm.notify_socket"
7058 system credential, which may be supplied to a VM via SMBIOS. If
7059 found, the manager will send a "READY=1" notification on the
7060 specified socket after boot is complete. This allows readiness
7061 notification to be sent from a VM guest to the VM host over a VSOCK
7062 socket.
7063
7064 * The sample PAM configuration file for [email protected] now
7065 includes a call to pam_namespace. This puts children of [email protected]
7066 in the expected namespace. (Many distributions replace their file
7067 with something custom, so this change has limited effect.)
7068
7069 * A new environment variable $SYSTEMD_DEFAULT_MOUNT_RATE_LIMIT_BURST
7070 can be used to override the mount units burst late limit for
7071 parsing '/proc/self/mountinfo', which was introduced in v249.
7072 Defaults to 5.
7073
7074 * Drop-ins for init.scope changing control group resource limits are
7075 now applied, while they were previously ignored.
7076
7077 * New build-time configuration options '-Ddefault-timeout-sec=' and
7078 '-Ddefault-user-timeout-sec=' have been added, to let distributions
7079 choose the default timeout for starting/stopping/aborting system and
7080 user units respectively.
7081
7082 * Service units gained a new setting OpenFile= which may be used to
7083 open arbitrary files in the file system (or connect to arbitrary
7084 AF_UNIX sockets in the file system), and pass the open file
7085 descriptor to the invoked process via the usual file descriptor
7086 passing protocol. This is useful to give unprivileged services access
7087 to select files which have restrictive access modes that would
7088 normally not allow this. It's also useful in case RootDirectory= or
7089 RootImage= is used to allow access to files from the host environment
7090 (which is after all not visible from the service if these two options
7091 are used.)
7092
7093 Changes in udev:
7094
7095 * The new net naming scheme "v253" has been introduced. In the new
7096 scheme, ID_NET_NAME_PATH is also set for USB devices not connected via
7097 a PCI bus. This extends the coverage of predictable interface names
7098 in some embedded systems.
7099
7100 The "amba" bus path is now included in ID_NET_NAME_PATH, resulting in
7101 a more informative path on some embedded systems.
7102
7103 * Partition block devices will now also get symlinks in
7104 /dev/disk/by-diskseq/<seq>-part<n>, which may be used to reference
7105 block device nodes via the kernel's "diskseq" value. Previously those
7106 symlinks were only created for the main block device.
7107
7108 * A new operator '-=' is supported for SYMLINK variables. This allows
7109 symlinks to be unconfigured even if an earlier rule added them.
7110
7111 * 'udevadm --trigger --settle' now also works for network devices
7112 that are being renamed.
7113
7114 Changes in sd-boot, bootctl, and the Boot Loader Specification:
7115
7116 * systemd-boot now passes its random seed directly to the kernel's RNG
7117 via the LINUX_EFI_RANDOM_SEED_TABLE_GUID configuration table, which
7118 means the RNG gets seeded very early in boot before userspace has
7119 started.
7120
7121 * systemd-boot will pass a disk-backed random seed – even when secure
7122 boot is enabled – if it can additionally get a random seed from EFI
7123 itself (via EFI's RNG protocol), or a prior seed in
7124 LINUX_EFI_RANDOM_SEED_TABLE_GUID from a preceding bootloader.
7125
7126 * systemd-boot-system-token.service was renamed to
7127 systemd-boot-random-seed.service and extended to always save a random
7128 seed to ESP on every boot when a compatible boot loader is used. This
7129 allows a refreshed random seed to be used in the boot loader.
7130
7131 * systemd-boot handles various seed inputs using a domain- and
7132 field-separated hashing scheme.
7133
7134 * systemd-boot's 'random-seed-mode' option has been removed. A system
7135 token is now always required to be present for random seeds to be
7136 used.
7137
7138 * systemd-boot now supports being loaded from other locations than the
7139 ESP, for example for direct kernel boot under QEMU or when embedded
7140 into the firmware.
7141
7142 * systemd-boot now parses SMBIOS information to detect
7143 virtualization. This information is used to skip some warnings which
7144 are not useful in a VM and to conditionalize other aspects of
7145 behaviour.
7146
7147 * systemd-boot now supports a new 'if-safe' mode that will perform UEFI
7148 Secure Boot automated certificate enrollment from the ESP only if it
7149 is considered 'safe' to do so. At the moment 'safe' means running in
7150 a virtual machine.
7151
7152 * systemd-stub now processes random seeds in the same way as
7153 systemd-boot already does, in case a unified kernel image is being
7154 used from a different bootloader than systemd-boot, or without any
7155 boot load at all.
7156
7157 * bootctl will now generate a system token on all EFI systems, even
7158 virtualized ones, and is activated in the case that the system token
7159 is missing from either sd-boot and sd-stub booted systems.
7160
7161 * bootctl now implements two new verbs: 'kernel-identify' prints the
7162 type of a kernel image file, and 'kernel-inspect' provides
7163 information about the embedded command line and kernel version of
7164 UKIs.
7165
7166 * bootctl now honours $KERNEL_INSTALL_CONF_ROOT with the same meaning
7167 as for kernel-install.
7168
7169 * The JSON output of "bootctl list" will now contain two more fields:
7170 isDefault and isSelected are boolean fields set to true on the
7171 default and currently booted boot menu entries.
7172
7173 * bootctl gained a new verb "unlink" for removing a boot loader entry
7174 type #1 file from disk in a safe and robust way.
7175
7176 * bootctl also gained a new verb "cleanup" that automatically removes
7177 all files from the ESP's and XBOOTLDR's "entry-token" directory, that
7178 is not referenced anymore by any installed Type #1 boot loader
7179 specification entry. This is particularly useful in environments where
7180 a large number of entries reference the same or partly the same
7181 resources (for example, for snapshot-based setups).
7182
7183 Changes in kernel-install:
7184
7185 * A new "installation layout" can be configured as layout=uki. With
7186 this setting, a Boot Loader Specification Type#1 entry will not be
7187 created. Instead, a new kernel-install plugin 90-uki-copy.install
7188 will copy any .efi files from the staging area into the boot
7189 partition. A plugin to generate the UKI .efi file must be provided
7190 separately.
7191
7192 Changes in systemctl:
7193
7194 * 'systemctl reboot' has dropped support for accepting a positional
7195 argument as the argument to the reboot(2) syscall. Please use the
7196 --reboot-argument= option instead.
7197
7198 * 'systemctl disable' will now warn when called on units without
7199 install information. A new --no-warn option has been added that
7200 silences this warning.
7201
7202 * New option '--drop-in=' can be used to tell 'systemctl edit' the name
7203 of the drop-in to edit. (Previously, 'override.conf' was always
7204 used.)
7205
7206 * 'systemctl list-dependencies' now respects --type= and --state=.
7207
7208 * 'systemctl kexec' now supports XEN VMM environments.
7209
7210 * 'systemctl edit' will now tell the invoked editor to jump into the
7211 first line with actual unit file data, skipping over synthesized
7212 comments.
7213
7214 Changes in systemd-networkd and related tools:
7215
7216 * The [DHCPv4] section in .network file gained new SocketPriority=
7217 setting that assigns the Linux socket priority used by the DHCPv4 raw
7218 socket. This may be used in conjunction with the
7219 EgressQOSMaps=setting in [VLAN] section of .netdev file to send the
7220 desired ethernet 802.1Q frame priority for DHCPv4 initial
7221 packets. This cannot be achieved with netfilter mangle tables because
7222 of the raw socket bypass.
7223
7224 * The [DHCPv4] and [IPv6AcceptRA] sections in .network file gained a
7225 new QuickAck= boolean setting that enables the TCP quick ACK mode for
7226 the routes configured by the acquired DHCPv4 lease or received router
7227 advertisements (RAs).
7228
7229 * The RouteMetric= option (for DHCPv4, DHCPv6, and IPv6 advertised
7230 routes) now accepts three values, for high, medium, and low preference
7231 of the router (which can be set with the RouterPreference=) setting.
7232
7233 * systemd-networkd-wait-online now supports matching via alternative
7234 interface names.
7235
7236 * The [DHCPv6] section in .network file gained new SendRelease=
7237 setting which enables the DHCPv6 client to send release when
7238 it stops. This is the analog of the [DHCPv4] SendRelease= setting.
7239 It is enabled by default.
7240
7241 * If the Address= setting in [Network] or [Address] sections in .network
7242 specified without its prefix length, then now systemd-networkd assumes
7243 /32 for IPv4 or /128 for IPv6 addresses.
7244
7245 * networkctl shows network and link file dropins in status output.
7246
7247 Changes in systemd-dissect:
7248
7249 * systemd-dissect gained a new option --list, to print the paths of
7250 all files and directories in a DDI.
7251
7252 * systemd-dissect gained a new option --mtree, to generate a file
7253 manifest compatible with BSD mtree(5) of a DDI
7254
7255 * systemd-dissect gained a new option --with, to execute a command with
7256 the specified DDI temporarily mounted and used as working
7257 directory. This is for example useful to convert a DDI to "tar"
7258 simply by running it within a "systemd-dissect --with" invocation.
7259
7260 * systemd-dissect gained a new option --discover, to search for
7261 Discoverable Disk Images (DDIs) in well-known directories of the
7262 system. This will list machine, portable service and system extension
7263 disk images.
7264
7265 * systemd-dissect now understands 2nd stage initrd images stored as a
7266 Discoverable Disk Image (DDI).
7267
7268 * systemd-dissect will now display the main UUID of GPT DDIs (i.e. the
7269 disk UUID stored in the GPT header) among the other data it can show.
7270
7271 * systemd-dissect gained a new --in-memory switch to operate on an
7272 in-memory copy of the specified DDI file. This is useful to access a
7273 DDI with write access without persisting any changes. It's also
7274 useful for accessing a DDI without keeping the originating file
7275 system busy.
7276
7277 * The DDI dissection logic will now automatically detect the intended
7278 sector size of disk images stored in files, based on the GPT
7279 partition table arrangement. Loopback block devices for such DDIs
7280 will then be configured automatically for the right sector size. This
7281 is useful to make dealing with modern 4K sector size DDIs fully
7282 automatic. The systemd-dissect tool will now show the detected sector
7283 size among the other DDI information in its output.
7284
7285 Changes in systemd-repart:
7286
7287 * systemd-repart gained new options --include-partitions= and
7288 --exclude-partitions= to filter operation on partitions by type UUID.
7289 This allows systemd-repart to be used to build images in which the
7290 type of one partition is set based on the contents of another
7291 partition (for example when the boot partition shall include a verity
7292 hash of the root partition).
7293
7294 * systemd-repart also gained a --defer-partitions= option that is
7295 similar to --exclude-partitions=, but the size of the partition is
7296 still taken into account when sizing partitions, but without
7297 populating it.
7298
7299 * systemd-repart gained a new --sector-size= option to specify what
7300 sector size should be used when an image is created.
7301
7302 * systemd-repart now supports generating erofs file systems via
7303 CopyFiles= (a read-only file system similar to squashfs).
7304
7305 * The Minimize= option was extended to accept "best" (which means the
7306 most minimal image possible, but may require multiple attempts) and
7307 "guess" (which means a reasonably small image).
7308
7309 * The systemd-growfs binary now comes with a regular unit file template
7310 [email protected] which can be instantiated directly for any
7311 desired file system. (Previously, the unit was generated dynamically
7312 by various generators, but no regular unit file template was
7313 available.)
7314
7315 Changes in journal tools:
7316
7317 * Various systemd tools will append extra fields to log messages when
7318 in debug mode, or when SYSTEMD_ENABLE_LOG_CONTEXT=1 is set. Currently
7319 this includes information about D-Bus messages when sd-bus is used,
7320 e.g. DBUS_SENDER=, DBUS_DESTINATION=, and DBUS_PATH=, and information
7321 about devices when sd-device is used, e.g. DEVNAME= and DRIVER=.
7322 Details of what is logged and when are subject to change.
7323
7324 * The systemd-journald-audit.socket can now be disabled via the usual
7325 "systemctl disable" mechanism to stop collection of audit
7326 messages. Please note that it is not enabled statically anymore and
7327 must be handled by the preset/enablement logic in package
7328 installation scripts.
7329
7330 * New options MaxUse=, KeepFree=, MaxFileSize=, and MaxFiles= can
7331 be used to curtail disk use by systemd-journal-remote. This is
7332 similar to the options supported by systemd-journald.
7333
7334 Changes in systemd-cryptenroll, systemd-cryptsetup, and related
7335 components:
7336
7337 * When enrolling new keys systemd-cryptenroll now supports unlocking
7338 via FIDO2 tokens (option --unlock-fido2-device=). Previously, a
7339 password was strictly required to be specified.
7340
7341 * systemd-cryptsetup now supports pre-flight requests for FIDO2 tokens
7342 (except for tokens with user verification, UV) to identify tokens
7343 before authentication. Multiple FIDO2 tokens can now be enrolled at
7344 the same time, and systemd-cryptsetup will automatically select one
7345 that corresponds to one of the available LUKS key slots.
7346
7347 * systemd-cryptsetup now supports new options tpm2-measure-bank= and
7348 tpm2-measure-pcr= in crypttab(5). These allow specifying the TPM2 PCR
7349 bank and number into which the volume key should be measured. This is
7350 automatically enabled for the encrypted root volume discovered and
7351 activated by systemd-gpt-auto-generator.
7352
7353 * systemd-gpt-auto-generator mounts the ESP and XBOOTLDR partitions with
7354 "noexec,nosuid,nodev".
7355
7356 * systemd-gpt-auto-generator will now honour the rootfstype= and
7357 rootflags= kernel command line switches for root file systems it
7358 discovers, to match behaviour in case an explicit root fs is
7359 specified via root=.
7360
7361 * systemd-pcrphase gained new options --machine-id and --file-system=
7362 to measure the machine-id and mount point information into PCR 15.
7363 New service unit files systemd-pcrmachine.service and
7364 [email protected] have been added that invoke the tool with
7365 these switches during early boot.
7366
7367 * systemd-pcrphase gained a --graceful switch will make it exit cleanly
7368 with a success exit code even if no TPM device is detected.
7369
7370 * systemd-cryptenroll now stores the user-supplied PIN with a salt,
7371 making it harder to brute-force.
7372
7373 Changes in other tools:
7374
7375 * systemd-homed gained support for luksPbkdfForceIterations (the
7376 intended number of iterations for the PBKDF operation on LUKS).
7377
7378 * Environment variables $SYSTEMD_HOME_MKFS_OPTIONS_BTRFS,
7379 $SYSTEMD_HOME_MKFS_OPTIONS_EXT4, and $SYSTEMD_HOME_MKFS_OPTIONS_XFS
7380 may now be used to specify additional arguments for mkfs when
7381 systemd-homed formats a file system.
7382
7383 * systemd-hostnamed now exports the contents of
7384 /sys/class/dmi/id/bios_vendor and /sys/class/dmi/id/bios_date via two
7385 new D-Bus properties: FirmwareVendor and FirmwareDate. This allows
7386 unprivileged code to access those values.
7387
7388 systemd-hostnamed also exports the SUPPORT_END= field from
7389 os-release(5) as OperatingSystemSupportEnd. hostnamectl make uses of
7390 this to show the status of the installed system.
7391
7392 * systemd-measure gained an --append= option to sign multiple phase
7393 paths with different signing keys. This allows secrets to be
7394 accessible only in certain parts of the boot sequence. Note that
7395 'ukify' provides similar functionality in a more accessible form.
7396
7397 * systemd-timesyncd will now write a structured log message with
7398 MESSAGE_ID set to SD_MESSAGE_TIME_BUMP when it bumps the clock based
7399 on a on-disk timestamp, similarly to what it did when reaching
7400 synchronization via NTP.
7401
7402 * systemd-timesyncd will now update the on-disk timestamp file on each
7403 boot at least once, making it more likely that the system time
7404 increases in subsequent boots.
7405
7406 * systemd-vconsole-setup gained support for system/service credentials:
7407 vconsole.keymap/vconsole.keymap_toggle and
7408 vconsole.font/vconsole.font_map/vconsole.font_unimap are analogous
7409 the similarly-named options in vconsole.conf.
7410
7411 * systemd-localed will now save the XKB keyboard configuration to
7412 /etc/vconsole.conf, and also read it from there with a higher
7413 preference than the /etc/X11/xorg.conf.d/00-keyboard.conf config
7414 file. Previously, this information was stored in the former file in
7415 converted form, and only in latter file in the original form. Tools
7416 which want to access keyboard configuration can now do so from a
7417 standard location.
7418
7419 * systemd-resolved gained support for configuring the nameservers and
7420 search domains via kernel command line (nameserver=, domain=) and
7421 credentials (network.dns, network.search_domains).
7422
7423 * systemd-resolved will now synthesize host names for the DNS stub
7424 addresses it supports. Specifically when "_localdnsstub" is resolved,
7425 127.0.0.53 is returned, and if "_localdnsproxy" is resolved
7426 127.0.0.54 is returned.
7427
7428 * systemd-notify will now send a "RELOADING=1" notification when called
7429 with --reloading, and "STOPPING=1" when called with --stopping. This
7430 can be used to implement notifications from units where it's easier
7431 to call a program than to use the sd-daemon library.
7432
7433 * systemd-analyze's 'plot' command can now output its information in
7434 JSON, controlled via the --json= switch. Also, new --table, and
7435 --no-legend options have been added.
7436
7437 * 'machinectl enable' will now automatically enable machines.target
7438 unit in addition to adding the machine unit to the target.
7439
7440 Similarly, 'machinectl start|stop' gained a --now option to enable or
7441 disable the machine unit when starting or stopping it.
7442
7443 * systemd-sysusers will now create /etc/ if it is missing.
7444
7445 * systemd-sleep 'HibernateDelaySec=' setting is changed back to
7446 pre-v252's behaviour, and a new 'SuspendEstimationSec=' setting is
7447 added to provide the new initial value for the new automated battery
7448 estimation functionality. If 'HibernateDelaySec=' is set to any value,
7449 the automated estimate (and thus the automated hibernation on low
7450 battery to avoid data loss) functionality will be disabled.
7451
7452 * Default tmpfiles.d/ configuration will now automatically create
7453 credentials storage directory '/etc/credstore/' with the appropriate,
7454 secure permissions. If '/run/credstore/' exists, its permissions will
7455 be fixed too in case they are not correct.
7456
7457 Changes in libsystemd and shared code:
7458
7459 * sd-bus gained new convenience functions sd_bus_emit_signal_to(),
7460 sd_bus_emit_signal_tov(), and sd_bus_message_new_signal_to().
7461
7462 * sd-id128 functions now return -EUCLEAN (instead of -EIO) when the
7463 128-bit ID in files such as /etc/machine-id has an invalid
7464 format. They also accept NULL as output parameter in more places,
7465 which is useful when the caller only wants to validate the inputs and
7466 does not need the output value.
7467
7468 * sd-login gained new functions sd_pidfd_get_session(),
7469 sd_pidfd_get_owner_uid(), sd_pidfd_get_unit(),
7470 sd_pidfd_get_user_unit(), sd_pidfd_get_slice(),
7471 sd_pidfd_get_user_slice(), sd_pidfd_get_machine_name(), and
7472 sd_pidfd_get_cgroup(), that are analogous to sd_pid_get_*(),
7473 but accept a PIDFD instead of a PID.
7474
7475 * sd-path (and systemd-path) now export four new paths:
7476 SD_PATH_SYSTEMD_SYSTEM_ENVIRONMENT_GENERATOR,
7477 SD_PATH_SYSTEMD_USER_ENVIRONMENT_GENERATOR,
7478 SD_PATH_SYSTEMD_SEARCH_SYSTEM_ENVIRONMENT_GENERATOR, and
7479 SD_PATH_SYSTEMD_SEARCH_USER_ENVIRONMENT_GENERATOR,
7480
7481 * sd_notify() now supports AF_VSOCK as transport for notification
7482 messages (in addition to the existing AF_UNIX support). This is
7483 enabled if $NOTIFY_SOCKET is set in a "vsock:CID:port" format.
7484
7485 * Detection of chroot() environments now works if /proc/ is not
7486 mounted. This affects systemd-detect-virt --chroot, but also means
7487 that systemd tools will silently skip various operations in such an
7488 environment.
7489
7490 * "Lockheed Martin Hardened Security for Intel Processors" (HS SRE)
7491 virtualization is now detected.
7492
7493 Changes in the build system:
7494
7495 * Standalone variants of systemd-repart and systemd-shutdown may now be
7496 built (if -Dstandalone=true).
7497
7498 * systemd-ac-power has been moved from /usr/lib/ to /usr/bin/, to, for
7499 example, allow scripts to conditionalize execution on AC power
7500 supply.
7501
7502 * The libp11kit library is now loaded through dlopen(3).
7503
7504 Changes in the documentation:
7505
7506 * Specifications that are not closely tied to systemd have moved to
7507 https://uapi-group.org/specifications/: the Boot Loader Specification
7508 and the Discoverable Partitions Specification.
7509
7510 Contributions from: 김인수, 13r0ck, Aidan Dang, Alberto Planas,
7511 Alvin Šipraga, Andika Triwidada, AndyChi, angus-p, Anita Zhang,
7512 Antonio Alvarez Feijoo, Arsen Arsenović, asavah, Benjamin Fogle,
7513 Benjamin Tissoires, berenddeschouwer, BerndAdameit,
7514 Bernd Steinhauser, blutch112, cake03, Callum Farmer, Carlo Teubner,
7515 Charles Hardin, chris, Christian Brauner, Christian Göttsche,
7516 Cristian Rodríguez, Daan De Meyer, Dan Streetman, DaPigGuy,
7517 Darrell Kavanagh, David Tardon, dependabot[bot], Dirk Su,
7518 Dmitry V. Levin, drosdeck, Edson Juliano Drosdeck, edupont,
7519 Eric DeVolder, Erik Moqvist, Evgeny Vereshchagin, Fabian Gurtner,
7520 Felix Riemann, Franck Bui, Frantisek Sumsal, Geert Lorang,
7521 Gerd Hoffmann, Gio, Hannoskaj, Hans de Goede, Hugo Carvalho,
7522 igo95862, Ilya Leoshkevich, Ivan Shapovalov, Jacek Migacz,
7523 Jade Lovelace, Jan Engelhardt, Jan Janssen, Jan Macku, January,
7524 Jason A. Donenfeld, jcg, Jean-Tiare Le Bigot, Jelle van der Waa,
7525 Jeremy Linton, Jian Zhang, Jiayi Chen, Jia Zhang, Joerg Behrmann,
7526 Jörg Thalheim, Joshua Goins, joshuazivkovic, Joshua Zivkovic,
7527 Kai-Chuan Hsieh, Khem Raj, Koba Ko, Lennart Poettering, lichao,
7528 Li kunyu, Luca Boccassi, Luca BRUNO, Ludwig Nussel,
7529 Łukasz Stelmach, Lycowolf, marcel151, Marcus Schäfer, Marek Vasut,
7530 Mark Laws, Michael Biebl, Michał Kotyla, Michal Koutný,
7531 Michal Sekletár, Mike Gilbert, Mike Yuan, MkfsSion, ml,
7532 msizanoen1, mvzlb, MVZ Ludwigsburg, Neil Moore, Nick Rosbrook,
7533 noodlejetski, Pasha Vorobyev, Peter Cai, p-fpv, Phaedrus Leeds,
7534 Philipp Jungkamp, Quentin Deslandes, Raul Tambre, Ray Strode,
7535 reuben olinsky, Richard E. van der Luit, Richard Phibel,
7536 Ricky Tigg, Robin Humble, rogg, Rudi Heitbaum, Sam James,
7537 Samuel Cabrero, Samuel Thibault, Siddhesh Poyarekar, Simon Brand,
7538 Space Meyer, Spindle Security, Steve Ramage, Takashi Sakamoto,
7539 Thomas Haller, Tonći Galić, Topi Miettinen, Torsten Hilbrich,
7540 Tuetuopay, uerdogan, Ulrich Ölmann, Valentin David,
7541 Vitaly Kuznetsov, Vito Caputo, Waltibaba, Will Fancher,
7542 William Roberts, wouter bolsterlee, Youfu Zhang, Yu Watanabe,
7543 Zbigniew Jędrzejewski-Szmek, Дамјан Георгиевски,
7544 наб
7545
7546 — Warsaw, 2023-02-15
7547
7548 CHANGES WITH 252 🎃:
7549
7550 Announcements of Future Feature Removals:
7551
7552 * We intend to remove cgroup v1 support from systemd release after the
7553 end of 2023. If you run services that make explicit use of cgroup v1
7554 features (i.e. the "legacy hierarchy" with separate hierarchies for
7555 each controller), please implement compatibility with cgroup v2 (i.e.
7556 the "unified hierarchy") sooner rather than later. Most of Linux
7557 userspace has been ported over already.
7558
7559 * We intend to remove support for split-usr (/usr mounted separately
7560 during boot) and unmerged-usr (parallel directories /bin and
7561 /usr/bin, /lib and /usr/lib, etc). This will happen in the second
7562 half of 2023, in the first release that falls into that time window.
7563 For more details, see:
7564 https://lists.freedesktop.org/archives/systemd-devel/2022-September/048352.html
7565
7566 Compatibility Breaks:
7567
7568 * ConditionKernelVersion= checks that use the '=' or '!=' operators
7569 will now do simple string comparisons (instead of version comparisons
7570 à la stverscmp()). Version comparisons are still done for the
7571 ordering operators '<', '>', '<=', '>='. Moreover, if no operator is
7572 specified, a shell-style glob match is now done. This creates a minor
7573 incompatibility compared to older systemd versions when the '*', '?',
7574 '[', ']' characters are used, as these will now match as shell globs
7575 instead of literally. Given that kernel version strings typically do
7576 not include these characters we expect little breakage through this
7577 change.
7578
7579 * The service manager will now read the SELinux label used for SELinux
7580 access checks from the unit file at the time it loads the file.
7581 Previously, the label would be read at the moment of the access
7582 check, which was problematic since at that time the unit file might
7583 already have been updated or removed.
7584
7585 New Features:
7586
7587 * systemd-measure is a new tool for calculating and signing expected
7588 TPM2 PCR values for a given unified kernel image (UKI) booted via
7589 sd-stub. The public key used for the signature and the signed
7590 expected PCR information can be embedded inside the UKI. This
7591 information can be extracted from the UKI by external tools and code
7592 in the image itself and is made available to userspace in the booted
7593 kernel.
7594
7595 systemd-cryptsetup, systemd-cryptenroll, and systemd-creds have been
7596 updated to make use of this information if available in the booted
7597 kernel: when locking an encrypted volume/credential to the TPM
7598 systemd-cryptenroll/systemd-creds will use the public key to bind the
7599 volume/credential to any kernel that carries PCR information signed
7600 by the same key pair. When unlocking such volumes/credentials
7601 systemd-cryptsetup/systemd-creds will use the signature embedded in
7602 the booted UKI to gain access.
7603
7604 Binding TPM-based disk encryption to public keys/signatures of PCR
7605 values — instead of literal PCR values — addresses the inherent
7606 "brittleness" of traditional PCR-bound TPM disk encryption schemes:
7607 disks remain accessible even if the UKI is updated, without any TPM
7608 specific preparation during the OS update — as long as each UKI
7609 carries the necessary PCR signature information.
7610
7611 Net effect: if you boot a properly prepared kernel, TPM-bound disk
7612 encryption now defaults to be locked to kernels which carry PCR
7613 signatures from the same key pair. Example: if a hypothetical distro
7614 FooOS prepares its UKIs like this, TPM-based disk encryption is now –
7615 by default – bound to only FooOS kernels, and encrypted volumes bound
7616 to the TPM cannot be unlocked on kernels from other sources. (But do
7617 note this behaviour requires preparation/enabling in the UKI, and of
7618 course users can always enroll non-TPM ways to unlock the volume.)
7619
7620 * systemd-pcrphase is a new tool that is invoked at six places during
7621 system runtime, and measures additional words into TPM2 PCR 11, to
7622 mark milestones of the boot process. This allows binding access to
7623 specific TPM2-encrypted secrets to specific phases of the boot
7624 process. (Example: LUKS2 disk encryption key only accessible in the
7625 initrd, but not later.)
7626
7627 Changes in systemd itself, i.e. the manager and units
7628
7629 * The cpu controller is delegated to user manager units by default, and
7630 CPUWeight= settings are applied to the top-level user slice units
7631 (app.slice, background.slice, session.slice). This provides a degree
7632 of resource isolation between different user services competing for
7633 the CPU.
7634
7635 * Systemd can optionally do a full preset in the "first boot" condition
7636 (instead of just enable-only). This behaviour is controlled by the
7637 compile-time option -Dfirst-boot-full-preset. Right now it defaults
7638 to 'false', but the plan is to switch it to 'true' for the subsequent
7639 release.
7640
7641 * Drop-ins are now allowed for transient units too.
7642
7643 * Systemd will set the taint flag 'support-ended' if it detects that
7644 the OS image is past its end-of-support date. This date is declared
7645 in a new /etc/os-release field SUPPORT_END= described below.
7646
7647 * Two new settings ConditionCredential= and AssertCredential= can be
7648 used to skip or fail units if a certain system credential is not
7649 provided.
7650
7651 * ConditionMemory= accepts size suffixes (K, M, G, T, …).
7652
7653 * DefaultSmackProcessLabel= can be used in system.conf and user.conf to
7654 specify the SMACK security label to use when not specified in a unit
7655 file.
7656
7657 * DefaultDeviceTimeoutSec= can be used in system.conf and user.conf to
7658 specify the default timeout when waiting for device units to
7659 activate.
7660
7661 * C.UTF-8 is used as the default locale if nothing else has been
7662 configured.
7663
7664 * [Condition|Assert]Firmware= have been extended to support certain
7665 SMBIOS fields. For example
7666
7667 ConditionFirmware=smbios-field(board_name = "Custom Board")
7668
7669 conditionalizes the unit to run only when
7670 /sys/class/dmi/id/board_name contains "Custom Board" (without the
7671 quotes).
7672
7673 * ConditionFirstBoot= now correctly evaluates as true only during the
7674 boot phase of the first boot. A unit executed later, after booting
7675 has completed, will no longer evaluate this condition as true.
7676
7677 * Socket units will now create sockets in the SELinuxContext= of the
7678 associated service unit, if any.
7679
7680 * Boot phase transitions (start initrd → exit initrd → boot complete →
7681 shutdown) will be measured into TPM2 PCR 11, so that secrets can be
7682 bound to a specific runtime phase. E.g.: a LUKS encryption key can be
7683 unsealed only in the initrd.
7684
7685 * Service credentials (i.e. SetCredential=/LoadCredential=/…) will now
7686 also be provided to ExecStartPre= processes.
7687
7688 * Various units are now correctly ordered against
7689 initrd-switch-root.target where previously a conflict without
7690 ordering was configured. A stop job for those units would be queued,
7691 but without the ordering it could be executed only after
7692 initrd-switch-root.service, leading to units not being restarted in
7693 the host system as expected.
7694
7695 * In order to fully support the IPMI watchdog driver, which has not yet
7696 been ported to the new common watchdog device interface,
7697 /dev/watchdog0 will be tried first and systemd will silently fallback
7698 to /dev/watchdog if it is not found.
7699
7700 * New watchdog-related D-Bus properties are now published by systemd:
7701 WatchdogDevice, WatchdogLastPingTimestamp,
7702 WatchdogLastPingTimestampMonotonic.
7703
7704 * At shutdown, API virtual files systems (proc, sys, etc.) will be
7705 unmounted lazily.
7706
7707 * At shutdown, systemd will now log about processes blocking unmounting
7708 of file systems.
7709
7710 * A new meson build option 'clock-valid-range-usec-max' was added to
7711 allow disabling system time correction if RTC returns a timestamp far
7712 in the future.
7713
7714 * Propagated restart jobs will no longer be discarded while a unit is
7715 activating.
7716
7717 * PID 1 will now import system credentials from SMBIOS Type 11 fields
7718 ("OEM vendor strings"), in addition to qemu_fwcfg. This provides a
7719 simple, fast and generic path for supplying credentials to a VM,
7720 without involving external tools such as cloud-init/ignition.
7721
7722 * The CPUWeight= setting of unit files now accepts a new special value
7723 "idle", which configures "idle" level scheduling for the unit.
7724
7725 * Service processes that are activated due to a .timer or .path unit
7726 triggering will now receive information about this via environment
7727 variables. Note that this is information is lossy, as activation
7728 might be coalesced and only one of the activating triggers will be
7729 reported. This is hence more suited for debugging or tracing rather
7730 than for behaviour decisions.
7731
7732 * The riscv_flush_icache(2) system call has been added to the list of
7733 system calls allowed by default when SystemCallFilter= is used.
7734
7735 * The selinux context derived from the target executable, instead of
7736 'init_t' used for the manager itself, is now used when creating
7737 listening sockets for units that specify SELinuxContextFromNet=yes.
7738
7739 Changes in sd-boot, bootctl, and the Boot Loader Specification:
7740
7741 * The Boot Loader Specification has been cleaned up and clarified.
7742 Various corner cases in version string comparisons have been fixed
7743 (e.g. comparisons for empty strings). Boot counting is now part of
7744 the main specification.
7745
7746 * New PCRs measurements are performed during boot: PCR 11 for the
7747 kernel+initrd combo, PCR 13 for any sysext images. If a measurement
7748 took place this is now reported to userspace via the new
7749 StubPcrKernelImage and StubPcrInitRDSysExts EFI variables.
7750
7751 * As before, systemd-stub will measure kernel parameters and system
7752 credentials into PCR 12. It will now report this fact via the
7753 StubPcrKernelParameters EFI variable to userspace.
7754
7755 * The UEFI monotonic boot counter is now included in the updated random
7756 seed file maintained by sd-boot, providing some additional entropy.
7757
7758 * sd-stub will use LoadImage/StartImage to execute the kernel, instead
7759 of arranging the image manually and jumping to the kernel entry
7760 point. sd-stub also installs a temporary UEFI SecurityOverride to
7761 allow the (unsigned) nested image to be booted. This is safe because
7762 the outer (signed) stub+kernel binary must have been verified before
7763 the stub was executed.
7764
7765 * Booting in EFI mixed mode (a 64-bit kernel over 32-bit UEFI firmware)
7766 is now supported by sd-boot.
7767
7768 * bootctl gained a bunch of new options: --all-architectures to install
7769 binaries for all supported EFI architectures, --root= and --image=
7770 options to operate on a directory or disk image, and
7771 --install-source= to specify the source for binaries to install,
7772 --efi-boot-option-description= to control the name of the boot entry.
7773
7774 * The sd-boot stub exports a StubFeatures flag, which is used by
7775 bootctl to show features supported by the stub that was used to boot.
7776
7777 * The PE section offsets that are used by tools that assemble unified
7778 kernel images have historically been hard-coded. This may lead to
7779 overlapping PE sections which may break on boot. The UKI will now try
7780 to detect and warn about this.
7781
7782 Any tools that assemble UKIs must update to calculate these offsets
7783 dynamically. Future sd-stub versions may use offsets that will not
7784 work with the currently used set of hard-coded offsets!
7785
7786 * sd-stub now accepts (and passes to the initrd and then to the full
7787 OS) new PE sections '.pcrsig' and '.pcrkey' that can be used to embed
7788 signatures of expected PCR values, to allow sealing secrets via the
7789 TPM2 against pre-calculated PCR measurements.
7790
7791 Changes in the hardware database:
7792
7793 * 'systemd-hwdb query' now supports the --root= option.
7794
7795 Changes in systemctl:
7796
7797 * systemctl now supports --state= and --type= options for the 'show'
7798 and 'status' verbs.
7799
7800 * systemctl gained a new verb 'list-automounts' to list automount
7801 points.
7802
7803 * systemctl gained support for a new --image= switch to be able to
7804 operate on the specified disk image (similar to the existing --root=
7805 which operates relative to some directory).
7806
7807 Changes in systemd-networkd:
7808
7809 * networkd can set Linux NetLabel labels for integration with the
7810 network control in security modules via a new NetLabel= option.
7811
7812 * The RapidCommit= is (re-)introduced to enable faster configuration
7813 via DHCPv6 (RFC 3315).
7814
7815 * networkd gained a new option TCPCongestionControlAlgorithm= that
7816 allows setting a per-route TCP algorithm.
7817
7818 * networkd gained a new option KeepFileDescriptor= to allow keeping a
7819 reference (file descriptor) open on TUN/TAP interfaces, which is
7820 useful to avoid link flaps while the underlying service providing the
7821 interface is being serviced.
7822
7823 * RouteTable= now also accepts route table names.
7824
7825 Changes in systemd-nspawn:
7826
7827 * The --bind= and --overlay= options now support relative paths.
7828
7829 * The --bind= option now supports a 'rootidmap' value, which will
7830 use id-mapped mounts to map the root user inside the container to the
7831 owner of the mounted directory on the host.
7832
7833 Changes in systemd-resolved:
7834
7835 * systemd-resolved now persists DNSOverTLS in its state file too. This
7836 fixes a problem when used in combination with NetworkManager, which
7837 sends the setting only once, causing it to be lost if resolved was
7838 restarted at any point.
7839
7840 * systemd-resolved now exposes a Varlink socket at
7841 /run/systemd/resolve/io.systemd.Resolve.Monitor, accessible only for
7842 root. Processed DNS requests in a JSON format will be published to
7843 any clients connected to this socket.
7844
7845 resolvectl gained a 'monitor' verb to make use of this.
7846
7847 * systemd-resolved now treats unsupported DNSSEC algorithms as INSECURE
7848 instead of returning SERVFAIL, as per RFC:
7849 https://datatracker.ietf.org/doc/html/rfc6840#section-5.2
7850
7851 * OpenSSL is the default crypto backend for systemd-resolved. (gnutls
7852 is still supported.)
7853
7854 Changes in libsystemd and other libraries:
7855
7856 * libsystemd now exports sd_bus_error_setfv() (a convenience function
7857 for setting bus errors), sd_id128_string_equal (a convenience
7858 function for 128-bit ID string comparisons), and
7859 sd_bus_message_read_strv_extend() (a function to incrementally read
7860 string arrays).
7861
7862 * libsystemd now exports sd_device_get_child_first()/_next() as a
7863 high-level interface for enumerating child devices. It also supports
7864 sd_device_new_child() for opening a child device given a device
7865 object.
7866
7867 * libsystemd now exports sd_device_monitor_set()/get_description()
7868 which allow setting a custom description that will be used in log
7869 messages by sd_device_monitor*.
7870
7871 * Private shared libraries (libsystemd-shared-nnn.so,
7872 libsystemd-core-nnn.so) are now installed into arch-specific
7873 directories to allow multi-arch installs.
7874
7875 * A new sd-gpt.h header is now published, listing GUIDs from the
7876 Discoverable Partitions specification. For more details see:
7877 https://systemd.io/DISCOVERABLE_PARTITIONS/
7878
7879 * A new function sd_hwdb_new_from_path() has been added to open a hwdb
7880 database given an explicit path to the file.
7881
7882 * The signal number argument to sd_event_add_signal() now can now be
7883 ORed with the SD_EVENT_SIGNAL_PROCMASK flag, causing sigprocmask() to
7884 be automatically invoked to block the specified signal. This is
7885 useful to simplify invocations as the caller doesn't have to do this
7886 manually.
7887
7888 * A new convenience call sd_event_set_signal_exit() has been added to
7889 sd-event to set up signal handling so that the event loop
7890 automatically terminates cleanly on SIGTERM/SIGINT.
7891
7892 Changes in other components:
7893
7894 * systemd-sysusers, systemd-tmpfiles, and systemd-sysctl configuration
7895 can now be provided via the credential mechanism.
7896
7897 * systemd-analyze gained a new verb 'compare-versions' that implements
7898 comparisons for versions strings (similarly to 'rpmdev-vercmp' and
7899 'dpkg --compare-versions').
7900
7901 * 'systemd-analyze dump' is extended to accept glob patterns for unit
7902 names to limit the output to matching units.
7903
7904 * tmpfiles.d/ lines can read file contents to write from a credential.
7905 The new modifier char '^' is used to specify that the argument is a
7906 credential name. This mechanism is used to automatically populate
7907 /etc/motd, /etc/issue, and /etc/hosts from credentials.
7908
7909 * tmpfiles.d/ may now be configured to avoid changing uid/gid/mode of
7910 an inode if the specification is prefixed with ':' and the inode
7911 already exists.
7912
7913 * Default tmpfiles.d/ configuration now carries a line to automatically
7914 use an 'ssh.authorized_keys.root' credential if provided to set up
7915 the SSH authorized_keys file for the root user.
7916
7917 * systemd-tmpfiles will now gracefully handle absent source of "C" copy
7918 lines.
7919
7920 * tmpfiles.d/ F/w lines now optionally permit encoding of the payload
7921 in base64. This is useful to write arbitrary binary data into files.
7922
7923 * The pkgconfig and rpm macros files now export the directory for user
7924 units as 'user_tmpfiles_dir' and '%_user_tmpfilesdir'.
7925
7926 * Detection of Apple Virtualization and detection of Parallels and
7927 KubeVirt virtualization on non-x86 archs have been added.
7928
7929 * os-release gained a new field SUPPORT_END=YYYY-MM-DD to inform the
7930 user when their system will become unsupported.
7931
7932 * When performing suspend-then-hibernate, the system will estimate the
7933 discharge rate and use that to set the delay until hibernation and
7934 hibernate immediately instead of suspending when running from a
7935 battery and the capacity is below 5%.
7936
7937 * systemd-sysctl gained a --strict option to fail when a sysctl
7938 setting is unknown to the kernel.
7939
7940 * machinectl supports --force for the 'copy-to' and 'copy-from'
7941 verbs.
7942
7943 * coredumpctl gained the --root and --image options to look for journal
7944 files under the specified root directory, image, or block device.
7945
7946 * 'journalctl -o' and similar commands now implement a new output mode
7947 "short-delta". It is similar to "short-monotonic", but also shows the
7948 time delta between subsequent messages.
7949
7950 * journalctl now respects the --quiet flag when verifying consistency
7951 of journal files.
7952
7953 * Journal log messages gained a new implicit field _RUNTIME_SCOPE= that
7954 will indicate whether a message was logged in the 'initrd' phase or
7955 in the 'system' phase of the boot process.
7956
7957 * Journal files gained a new compatibility flag
7958 'HEADER_INCOMPATIBLE_COMPACT'. Files with this flag implement changes
7959 to the storage format that allow reducing size on disk. As with other
7960 compatibility flags, older journalctl versions will not be able to
7961 read journal files using this new format. The environment variable
7962 'SYSTEMD_JOURNAL_COMPACT=0' can be passed to systemd-journald to
7963 disable this functionality. It is enabled by default.
7964
7965 * systemd-run's --working-directory= switch now works when used in
7966 combination with --scope.
7967
7968 * portablectl gained a --force flag to skip certain sanity checks. This
7969 is implemented using new flags accepted by systemd-portabled for the
7970 *WithExtensions() D-Bus methods: SD_SYSTEMD_PORTABLE_FORCE_ATTACH
7971 flag now means that the attach/detach checks whether the units are
7972 already present and running will be skipped. Similarly,
7973 SD_SYSTEMD_PORTABLE_FORCE_SYSEXT flag means that the check whether
7974 image name matches the name declared inside of the image will be
7975 skipped. Callers must be sure to do those checks themselves if
7976 appropriate.
7977
7978 * systemd-portabled will now use the original filename to check
7979 extension-release.NAME for correctness, in case it is passed a
7980 symlink.
7981
7982 * systemd-portabled now uses PrivateTmp=yes in the 'trusted' profile
7983 too.
7984
7985 * sysext's extension-release files now support '_any' as a special
7986 value for the ID= field, to allow distribution-independent extensions
7987 (e.g.: fully statically compiled binaries, scripts). It also gained
7988 support for a new ARCHITECTURE= field that may be used to explicitly
7989 restrict an image to hosts of a specific architecture.
7990
7991 * systemd-repart now supports creating squashfs partitions. This
7992 requires mksquashfs from squashfs-tools.
7993
7994 * systemd-repart gained a --split flag to also generate split
7995 artifacts, i.e. a separate file for each partition. This is useful in
7996 conjunction with systemd-sysupdate or other tools, or to generate
7997 split dm-verity artifacts.
7998
7999 * systemd-repart is now able to generate dm-verity partitions, including
8000 signatures.
8001
8002 * systemd-repart can now set a partition UUID to zero, allowing it to
8003 be filled in later, such as when using verity partitions.
8004
8005 * systemd-repart now supports drop-ins for its configuration files.
8006
8007 * Package metadata logged by systemd-coredump in the system journal is
8008 now more compact.
8009
8010 * xdg-autostart-service now expands 'tilde' characters in Exec lines.
8011
8012 * systemd-oomd now automatically links against libatomic, if available.
8013
8014 * systemd-oomd now sends out a 'Killed' D-Bus signal when a cgroup is
8015 killed.
8016
8017 * scope units now also provide oom-kill status.
8018
8019 * systemd-pstore will now try to load only the efi_pstore kernel module
8020 before running, ensuring that pstore can be used.
8021
8022 * systemd-logind gained a new StopIdleSessionSec= option to stop an idle
8023 session after a preconfigure timeout.
8024
8025 * systemd-homed will now wait up to 30 seconds for workers to terminate,
8026 rather than indefinitely.
8027
8028 * homectl gained a new '--luks-sector-size=' flag that allows users to
8029 select the preferred LUKS sector size. Must be a power of 2 between 512
8030 and 4096. systemd-userdbd records gained a corresponding field.
8031
8032 * systemd-sysusers will now respect the 'SOURCE_DATE_EPOCH' environment
8033 variable when generating the 'sp_lstchg' field, to ensure an image
8034 build can be reproducible.
8035
8036 * 'udevadm wait' will now listen to kernel uevents too when called with
8037 --initialized=no.
8038
8039 * When naming network devices udev will now consult the DeviceTree
8040 "alias" fields for the device.
8041
8042 * systemd-udev will now create infiniband/by-path and
8043 infiniband/by-ibdev links for Infiniband verbs devices.
8044
8045 * systemd-udev-trigger.service will now also prioritize input devices.
8046
8047 * ConditionACPower= and systemd-ac-power will now assume the system is
8048 running on AC power if no battery can be found.
8049
8050 * All features and tools using the TPM2 will now communicate with it
8051 using a bind key. Beforehand, the tpm2 support used encrypted sessions
8052 by creating a primary key that was used to encrypt traffic. This
8053 creates a problem as the key created for encrypting the traffic could
8054 be faked by an active interposer on the bus. In cases when a pin is
8055 used, a bind key will be used. The pin is used as the auth value for
8056 the seal key, aka the disk encryption key, and that auth value will be
8057 used in the session establishment. An attacker would need the pin
8058 value to create the secure session and thus an active interposer
8059 without the pin cannot interpose on TPM2 traffic.
8060
8061 * systemd-growfs no longer requires udev to run.
8062
8063 * systemd-backlight now will better support systems with multiple
8064 graphic cards.
8065
8066 * systemd-cryptsetup's keyfile-timeout= option now also works when a
8067 device is used as a keyfile.
8068
8069 * systemd-cryptenroll gained a new --unlock-key-file= option to get the
8070 unlocking key from a key file (instead of prompting the user). Note
8071 that this is the key for unlocking the volume in order to be able to
8072 enroll a new key, but it is not the key that is enrolled.
8073
8074 * systemd-dissect gained a new --umount switch that will safely and
8075 synchronously unmount all partitions of an image previously mounted
8076 with 'systemd-dissect --mount'.
8077
8078 * When using gcrypt, all systemd tools and services will now configure
8079 it to prefer the OS random number generator if present.
8080
8081 * All example code shipped with documentation has been relicensed from CC0
8082 to MIT-0.
8083
8084 * Unit tests will no longer fail when running on a system without
8085 /etc/machine-id.
8086
8087 Experimental features:
8088
8089 * BPF programs can now be compiled with bpf-gcc (requires libbpf >= 1.0
8090 and bpftool >= 7.0).
8091
8092 * sd-boot can automatically enroll SecureBoot keys from files found on
8093 the ESP. This enrollment can be either automatic ('force' mode) or
8094 controlled by the user ('manual' mode). It is sufficient to place the
8095 SecureBoot keys in the right place in the ESP and they will be picked
8096 up by sd-boot and shown in the boot menu.
8097
8098 * The mkosi config in systemd gained support for automatically
8099 compiling a kernel with the configuration appropriate for testing
8100 systemd. This may be useful when developing or testing systemd in
8101 tandem with the kernel.
8102
8103 Contributions from: 김인수, Adam Williamson, adrian5, Aidan Dang,
8104 Akihiko Odaki, Alban Bedel, Albert Mikaelyan, Aleksey Vasenev,
8105 Alexander Graf, Alexander Shopov, Alexander Wilson,
8106 Alper Nebi Yasak, anarcat, Anders Jonsson, Andre Kalb,
8107 Andrew Stone, Andrey Albershteyn, Anita Zhang, Ansgar Burchardt,
8108 Antonio Alvarez Feijoo, Arnaud Ferraris, Aryan singh, asavah,
8109 Avamander, Avram Lubkin, Balázs Meskó, Bastien Nocera,
8110 Benjamin Franzke, BerndAdameit, bin456789, Celeste Liu,
8111 Chih-Hsuan Yen, Christian Brauner, Christian Göttsche,
8112 Christian Hesse, Clyde Byrd III, codefiles, Colin Walters,
8113 Cristian Rodríguez, Daan De Meyer, Daniel Braunwarth,
8114 Daniel Rusek, Dan Streetman, Darsey Litzenberger, David Edmundson,
8115 David Jaša, David Rheinsberg, David Seifert, David Tardon,
8116 dependabot[bot], Devendra Tewari, Dominique Martinet, drosdeck,
8117 Edson Juliano Drosdeck, Eduard Tolosa, eggfly, Einsler Lee,
8118 Elias Probst, Eli Schwartz, Evgeny Vereshchagin, exploide, Fei Li,
8119 Foster Snowhill, Franck Bui, Frank Dana, Frantisek Sumsal,
8120 Gerd Hoffmann, Gio, Goffredo Baroncelli, gtwang01,
8121 Guillaume W. Bres, H A, Hans de Goede, Heinrich Schuchardt,
8122 Hugo Carvalho, i-do-cpp, igo95862, j00512545, Jacek Migacz,
8123 Jade Bilkey, James Hilliard, Jan B, Janis Goldschmidt,
8124 Jan Janssen, Jan Kuparinen, Jan Luebbe, Jan Macku,
8125 Jason A. Donenfeld, Javkhlanbayar Khongorzul, Jeremy Soller,
8126 JeroenHD, jiangchuangang, João Loureiro,
8127 Joaquín Ignacio Aramendía, Jochen Sprickerhof,
8128 Johannes Schauer Marin Rodrigues, Jonas Kümmerlin,
8129 Jonas Witschel, Jonathan Kang, Jonathan Lebon, Joost Heitbrink,
8130 Jörg Thalheim, josh-gordon-fb, Joyce, Kai Lueke, lastkrick,
8131 Lennart Poettering, Leon M. George, licunlong, Li kunyu,
8132 LockBlock-dev, Loïc Collignon, Lubomir Rintel, Luca Boccassi,
8133 Luca BRUNO, Ludwig Nussel, Łukasz Stelmach, Maccraft123,
8134 Marc Kleine-Budde, Marius Vollmer, Martin Wilck, matoro,
8135 Matthias Lisin, Max Gautier, Maxim Mikityanskiy, Michael Biebl,
8136 Michal Koutný, Michal Sekletár, Michal Stanke, Mike Gilbert,
8137 Mitchell Freiderich, msizanoen1, Nick Rosbrook, nl6720, Oğuz Ersen,
8138 Oleg Solovyov, Olga Smirnova, Pablo Ceballos, Pavel Zhukov,
8139 Phaedrus Leeds, Philipp Gortan, Piotr Drąg, Pyfisch,
8140 Quentin Deslandes, Rahil Bhimjiani, Rene Hollander, Richard Huang,
8141 Richard Phibel, Rudi Heitbaum, Sam James, Sarah Brofeldt,
8142 Sean Anderson, Sebastian Scheibner, Shreenidhi Shedi,
8143 Sonali Srivastava, Steve Ramage, Suraj Krishnan, Swapnil Devesh,
8144 Takashi Sakamoto, Ted X. Toth, Temuri Doghonadze, Thomas Blume,
8145 Thomas Haller, Thomas Hebb, Tomáš Hnyk, Tomasz Paweł Gajc,
8146 Topi Miettinen, Ulrich Ölmann, undef, Uriel Corfa,
8147 Victor Westerhuis, Vincent Dagonneau, Vishal Chillara Srinivas,
8148 Vito Caputo, Weblate, Wenchao Hao, William Roberts, williamsumendap,
8149 wineway, xiaoyang, Yuri Chornoivan, Yu Watanabe,
8150 Zbigniew Jędrzejewski-Szmek, Zhaofeng Li, наб
8151
8152 – The Great Beyond, 2022-10-31 👻
8153
8154 CHANGES WITH 251:
8155
8156 Backwards-incompatible changes:
8157
8158 * The minimum kernel version required has been bumped from 3.13 to 4.15,
8159 and CLOCK_BOOTTIME is now assumed to always exist.
8160
8161 * C11 with GNU extensions (aka "gnu11") is now used to build our
8162 components. Public API headers are still restricted to ISO C89.
8163
8164 * In v250, a systemd-networkd feature that automatically configures
8165 routes to addresses specified in AllowedIPs= was added and enabled by
8166 default. However, this causes network connectivity issues in many
8167 existing setups. Hence, it has been disabled by default since
8168 systemd-stable 250.3. The feature can still be used by explicitly
8169 configuring RouteTable= setting in .netdev files.
8170
8171 * Jobs started via StartUnitWithFlags() will no longer return 'skipped'
8172 when a Condition*= check does not succeed, restoring the JobRemoved
8173 signal to the behaviour it had before v250.
8174
8175 * The org.freedesktop.portable1 methods GetMetadataWithExtensions() and
8176 GetImageMetadataWithExtensions() have been fixed to provide an extra
8177 return parameter, containing the actual extension release metadata.
8178 The current implementation was judged to be broken and unusable, and
8179 thus the usual procedure of adding a new set of methods was skipped,
8180 and backward compatibility broken instead on the assumption that
8181 nobody can be affected given the current state of this interface.
8182
8183 * All kernels supported by systemd mix bytes returned by RDRAND (or
8184 similar) into the entropy pool at early boot. This means that on
8185 those systems, even if /dev/urandom is not yet initialized, it still
8186 returns bytes that are of at least RDRAND quality. For that reason,
8187 we no longer have reason to invoke RDRAND from systemd itself, which
8188 has historically been a source of bugs. Furthermore, kernels ≥5.6
8189 provide the getrandom(GRND_INSECURE) interface for returning random
8190 bytes before the entropy pool is initialized without warning into
8191 kmsg, which is what we attempt to use if available. systemd's direct
8192 usage of RDRAND has been removed. x86 systems ≥Broadwell that are
8193 running an older kernel may experience kmsg warnings that were not
8194 seen with 250. For newer kernels, non-x86 systems, or older x86
8195 systems, there should be no visible changes.
8196
8197 * sd-boot will now measure the kernel command line into TPM PCR 12
8198 rather than PCR 8. This improves usefulness of the measurements on
8199 systems where sd-boot is chainloaded from Grub. Grub measures all
8200 commands its executes into PCR 8, which makes it very hard to use
8201 reasonably, hence separate ourselves from that and use PCR 12
8202 instead, which is what certain Ubuntu editions already do. To retain
8203 compatibility with systems running older systemd systems a new meson
8204 option 'efi-tpm-pcr-compat' has been added (which defaults to false).
8205 If enabled, the measurement is done twice: into the new-style PCR 12
8206 *and* the old-style PCR 8. It's strongly advised to migrate all users
8207 to PCR 12 for this purpose in the long run, as we intend to remove
8208 this compatibility feature in two years' time.
8209
8210 * busctl capture now writes output in the newer pcapng format instead
8211 of pcap.
8212
8213 * A udev rule that imported hwdb matches for USB devices with lowercase
8214 hexadecimal vendor/product ID digits was added in systemd 250. This
8215 has been reverted, since uppercase hexadecimal digits are supposed to
8216 be used, and we already had a rule with the appropriate match.
8217
8218 Users might need to adjust their local hwdb entries.
8219
8220 * arch_prctl(2) has been moved to the @default set in the syscall filters
8221 (as exposed via the SystemCallFilter= setting in service unit files).
8222 It is apparently used by the linker now.
8223
8224 * The tmpfiles entries that create the /run/systemd/netif directory and
8225 its subdirectories were moved from tmpfiles.d/systemd.conf to
8226 tmpfiles.d/systemd-network.conf.
8227
8228 Users might need to adjust their files that override tmpfiles.d/systemd.conf
8229 to account for this change.
8230
8231 * The requirement for Portable Services images to contain a well-formed
8232 os-release file (i.e.: contain at least an ID field) is now enforced.
8233 This applies to base images and extensions, and also to systemd-sysext.
8234
8235 Changes in the Boot Loader Specification, kernel-install and sd-boot:
8236
8237 * kernel-install's and bootctl's Boot Loader Specification Type #1
8238 entry generation logic has been reworked. The user may now pick
8239 explicitly by which "token" string to name the installation's boot
8240 entries, via the new /etc/kernel/entry-token file or the new
8241 --entry-token= switch to bootctl. By default — as before — the
8242 entries are named after the local machine ID. However, in "golden
8243 image" environments, where the machine ID shall be initialized on
8244 first boot (as opposed to at installation time before first boot) the
8245 machine ID will not be available at build time. In this case the
8246 --entry-token= switch to bootctl (or the /etc/kernel/entry-token
8247 file) may be used to override the "token" for the entries, for
8248 example the IMAGE_ID= or ID= fields from /etc/os-release. This will
8249 make the OS images independent of any machine ID, and ensure that the
8250 images will not carry any identifiable information before first boot,
8251 but on the other hand means that multiple parallel installations of
8252 the very same image on the same disk cannot be supported.
8253
8254 Summary: if you are building golden images that shall acquire
8255 identity information exclusively on first boot, make sure to both
8256 remove /etc/machine-id *and* to write /etc/kernel/entry-token to the
8257 value of the IMAGE_ID= or ID= field of /etc/os-release or another
8258 suitable identifier before deploying the image.
8259
8260 * The Boot Loader Specification has been extended with
8261 /loader/entries.srel file located in the EFI System Partition (ESP)
8262 that disambiguates the format of the entries in the /loader/entries/
8263 directory (in order to discern them from incompatible uses of this
8264 directory by other projects). For entries that follow the
8265 Specification, the string "type1" is stored in this file.
8266
8267 bootctl will now write this file automatically when installing the
8268 systemd-boot boot loader.
8269
8270 * kernel-install supports a new initrd_generator= setting in
8271 /etc/kernel/install.conf, that is exported as
8272 $KERNEL_INSTALL_INITRD_GENERATOR to kernel-install plugins. This
8273 allows choosing different initrd generators.
8274
8275 * kernel-install will now create a "staging area" (an initially-empty
8276 directory to gather files for a Boot Loader Specification Type #1
8277 entry). The path to this directory is exported as
8278 $KERNEL_INSTALL_STAGING_AREA to kernel-install plugins, which should
8279 drop files there instead of writing them directly to the final
8280 location. kernel-install will move them when all files have been
8281 prepared successfully.
8282
8283 * New option sort-key= has been added to the Boot Loader Specification
8284 to override the sorting order of the entries in the boot menu. It is
8285 read by sd-boot and bootctl, and will be written by kernel-install,
8286 with the default value of IMAGE_ID= or ID= fields from
8287 os-release. Together, this means that on multiboot installations,
8288 entries should be grouped and sorted in a predictable way.
8289
8290 * The sort order of boot entries has been updated: entries which have
8291 the new field sort-key= are sorted by it first, and all entries
8292 without it are ordered later. After that, entries are sorted by
8293 version so that newest entries are towards the beginning of the list.
8294
8295 * The kernel-install tool gained a new 'inspect' verb which shows the
8296 paths and other settings used.
8297
8298 * sd-boot can now optionally beep when the menu is shown and menu
8299 entries are selected, which can be useful on machines without a
8300 working display. (Controllable via a loader.conf setting.)
8301
8302 * The --make-machine-id-directory= switch to bootctl has been replaced
8303 by --make-entry-directory=, given that the entry directory is not
8304 necessarily named after the machine ID, but after some other suitable
8305 ID as selected via --entry-token= described above. The old name of
8306 the option is still understood to maximize compatibility.
8307
8308 * 'bootctl list' gained support for a new --json= switch to output boot
8309 menu entries in JSON format.
8310
8311 * 'bootctl is-installed' now supports the --graceful, and various verbs
8312 omit output with the new option --quiet.
8313
8314 Changes in systemd-homed:
8315
8316 * Starting with v250 systemd-homed uses UID/GID mapping on the mounts
8317 of activated home directories it manages (if the kernel and selected
8318 file systems support it). So far it mapped three UID ranges: the
8319 range from 0…60000, the user's own UID, and the range 60514…65534,
8320 leaving everything else unmapped (in other words, the 16-bit UID range
8321 is mapped almost fully, with the exception of the UID subrange used
8322 for systemd-homed users, with one exception: the user's own UID).
8323 Unmapped UIDs may not be used for file ownership in the home
8324 directory — any chown() attempts with them will fail. With this
8325 release a fourth range is added to these mappings:
8326 524288…1879048191. This range is the UID range intended for container
8327 uses, see:
8328
8329 https://systemd.io/UIDS-GIDS
8330
8331 This range may be used for container managers that place container OS
8332 trees in the home directory (which is a questionable approach, for
8333 quota, permission, SUID handling and network file system
8334 compatibility reasons, but nonetheless apparently commonplace). Note
8335 that this mapping is mapped 1:1 in a pass-through fashion, i.e. the
8336 UID assignments from the range are not managed or mapped by
8337 systemd-homed, and must be managed with other mechanisms, in the
8338 context of the local system.
8339
8340 Typically, a better approach to user namespacing in relevant
8341 container managers would be to leave container OS trees on disk at
8342 UID offset 0, but then map them to a dynamically allocated runtime
8343 UID range via another UID mount map at container invocation
8344 time. That way user namespace UID ranges become strictly a runtime
8345 concept, and do not leak into persistent file systems, persistent
8346 user databases or persistent configuration, thus greatly simplifying
8347 handling, and improving compatibility with home directories intended
8348 to be portable like the ones managed by systemd-homed.
8349
8350 Changes in shared libraries:
8351
8352 * A new libsystemd-core-<version>.so private shared library is
8353 installed under /usr/lib/systemd/system, mirroring the existing
8354 libsystemd-shared-<version>.so library. This allows the total
8355 installation size to be reduced by binary code reuse.
8356
8357 * The <version> tag used in the name of libsystemd-shared.so and
8358 libsystemd-core.so can be configured via the meson option
8359 'shared-lib-tag'. Distributions may build subsequent versions of the
8360 systemd package with unique tags (e.g. the full package version),
8361 thus allowing multiple installations of those shared libraries to be
8362 available at the same time. This is intended to fix an issue where
8363 programs that link to those libraries would fail to execute because
8364 they were installed earlier or later than the appropriate version of
8365 the library.
8366
8367 * The sd-id128 API gained a new call sd_id128_to_uuid_string() that is
8368 similar to sd_id128_to_string() but formats the ID in RFC 4122 UUID
8369 format instead of as a simple series of hex characters.
8370
8371 * The sd-device API gained two new calls sd_device_new_from_devname()
8372 and sd_device_new_from_path() which permit allocating an sd_device
8373 object from a device node name or file system path.
8374
8375 * sd-device also gained a new call sd_device_open() which will open the
8376 device node associated with a device for which an sd_device object
8377 has been allocated. The call is supposed to address races around
8378 device nodes being removed/recycled due to hotplug events, or media
8379 change events: the call checks internally whether the major/minor of
8380 the device node and the "diskseq" (in case of block devices) match
8381 with the metadata loaded in the sd_device object, thus ensuring that
8382 the device once opened really matches the provided sd_device object.
8383
8384 Changes in PID1, systemctl, and systemd-oomd:
8385
8386 * A new set of service monitor environment variables will be passed to
8387 OnFailure=/OnSuccess= handlers, but only if exactly one unit lists the
8388 handler unit as OnFailure=/OnSuccess=. The variables are:
8389 $MONITOR_SERVICE_RESULT, $MONITOR_EXIT_CODE, $MONITOR_EXIT_STATUS,
8390 $MONITOR_INVOCATION_ID and $MONITOR_UNIT. For cases when a single
8391 handler needs to watch multiple units, use a templated handler.
8392
8393 * A new ExtensionDirectories= setting in service unit files allows
8394 system extensions to be loaded from a directory. (It is similar to
8395 ExtensionImages=, but takes paths to directories, instead of
8396 disk image files.)
8397
8398 'portablectl attach --extension=' now also accepts directory paths.
8399
8400 * The user.delegate and user.invocation_id extended attributes on
8401 cgroups are used in addition to trusted.delegate and
8402 trusted.invocation_id. The latter pair requires privileges to set,
8403 but the former doesn't and can be also set by the unprivileged user
8404 manager.
8405
8406 (Only supported on kernels ≥5.6.)
8407
8408 * Units that were killed by systemd-oomd will now have a service result
8409 of 'oom-kill'. The number of times a service was killed is tallied
8410 in the 'user.oomd_ooms' extended attribute.
8411
8412 The OOMPolicy= unit file setting is now also honoured by
8413 systemd-oomd.
8414
8415 * In unit files the new %y/%Y specifiers can be used to refer to
8416 normalized unit file path, which is particularly useful for symlinked
8417 unit files.
8418
8419 The new %q specifier resolves to the pretty hostname
8420 (i.e. PRETTY_HOSTNAME= from /etc/machine-info).
8421
8422 The new %d specifier resolves to the credentials directory of a
8423 service (same as $CREDENTIALS_DIRECTORY).
8424
8425 * The RootDirectory=, MountAPIVFS=, ExtensionDirectories=,
8426 *Capabilities*=, ProtectHome=, *Directory=, TemporaryFileSystem=,
8427 PrivateTmp=, PrivateDevices=, PrivateNetwork=, NetworkNamespacePath=,
8428 PrivateIPC=, IPCNamespacePath=, PrivateUsers=, ProtectClock=,
8429 ProtectKernelTunables=, ProtectKernelModules=, ProtectKernelLogs=,
8430 MountFlags= service settings now also work in unprivileged user
8431 services, i.e. those run by the user's --user service manager, as long
8432 as user namespaces are enabled on the system.
8433
8434 * Services with Restart=always and a failing ExecCondition= will no
8435 longer be restarted, to bring ExecCondition= behaviour in line with
8436 Condition*= settings.
8437
8438 * LoadCredential= now accepts a directory as the argument; all files
8439 from the directory will be loaded as credentials.
8440
8441 * A new D-Bus property ControlGroupId is now exposed on service units,
8442 that encapsulates the service's numeric cgroup ID that newer kernels
8443 assign to each cgroup.
8444
8445 * PID 1 gained support for configuring the "pre-timeout" of watchdog
8446 devices and the associated governor, via the new
8447 RuntimeWatchdogPreSec= and RuntimeWatchdogPreGovernor= configuration
8448 options in /etc/systemd/system.conf.
8449
8450 * systemctl's --timestamp= option gained a new choice "unix", to show
8451 timestamp as unix times, i.e. seconds since 1970, Jan 1st.
8452
8453 * A new "taint" flag named "old-kernel" is introduced which is set when
8454 the kernel systemd runs on is older then the current baseline version
8455 (see above). The flag is shown in "systemctl status" output.
8456
8457 * Two additional taint flags "short-uid-range" and "short-gid-range"
8458 have been added as well, which are set when systemd notices it is run
8459 within a userns namespace that does not define the full 0…65535 UID
8460 range
8461
8462 * A new "unmerged-usr" taint flag has been added that is set whenever
8463 running on systems where /bin/ + /sbin/ are *not* symlinks to their
8464 counterparts in /usr/, i.e. on systems where the /usr/-merge has not
8465 been completed.
8466
8467 * Generators invoked by PID 1 will now have a couple of useful
8468 environment variables set describing the execution context a
8469 bit. $SYSTEMD_SCOPE encodes whether the generator is called from the
8470 system service manager, or from the per-user service
8471 manager. $SYSTEMD_IN_INITRD encodes whether the generator is invoked
8472 in initrd context or on the host. $SYSTEMD_FIRST_BOOT encodes whether
8473 systemd considers the current boot to be a "first"
8474 boot. $SYSTEMD_VIRTUALIZATION encode whether virtualization is
8475 detected and which type of hypervisor/container
8476 manager. $SYSTEMD_ARCHITECTURE indicates which architecture the
8477 kernel is built for.
8478
8479 * PID 1 will now automatically pick up system credentials from qemu's
8480 fw_cfg interface, thus allowing passing arbitrary data into VM
8481 systems similar to how this is already supported for passing them
8482 into systemd-nspawn containers. Credentials may now also be passed in
8483 via the new kernel command line option "systemd.set_credential="
8484 (note that kernel command line options are world-readable during
8485 runtime, and only useful for credentials that require no
8486 confidentiality). The credentials that can be passed to unified
8487 kernels that use the systemd-stub UEFI stub are now similarly
8488 picked up automatically. Automatic importing of system credentials
8489 this way can be turned off via the new
8490 "systemd.import_credentials=no" kernel command line option.
8491
8492 * LoadCredential= will now automatically look for credentials in the
8493 /etc/credstore/, /run/credstore/, /usr/lib/credstore/ directories if
8494 the argument is not an absolute path. Similarly,
8495 LoadCredentialEncrypted= will check the same directories plus
8496 /etc/credstore.encrypted/, /run/credstore.encrypted/ and
8497 /usr/lib/credstore.encrypted/. The idea is to use those directories
8498 as the system-wide location for credentials that services should pick
8499 up automatically.
8500
8501 * System and service credentials are described in great detail in a new
8502 document:
8503
8504 https://systemd.io/CREDENTIALS
8505
8506 Changes in systemd-journald:
8507
8508 * The journal JSON export format has been added to listed of stable
8509 interfaces (https://systemd.io/PORTABILITY_AND_STABILITY/).
8510
8511 * journalctl --list-boots now supports JSON output and the --reverse option.
8512
8513 * Under docs/: JOURNAL_EXPORT_FORMATS was imported from the wiki and
8514 updated, BUILDING_IMAGES is new:
8515
8516 https://systemd.io/JOURNAL_EXPORT_FORMATS
8517 https://systemd.io/BUILDING_IMAGES
8518
8519 Changes in udev:
8520
8521 * Two new hwdb files have been added. One lists "handhelds" (PDAs,
8522 calculators, etc.), the other AV production devices (DJ tables,
8523 keypads, etc.) that should accessible to the seat owner user by
8524 default.
8525
8526 * udevadm trigger gained a new --prioritized-subsystem= option to
8527 process certain subsystems (and all their parent devices) earlier.
8528
8529 systemd-udev-trigger.service now uses this new option to trigger
8530 block and TPM devices first, hopefully making the boot a bit faster.
8531
8532 * udevadm trigger now implements --type=all, --initialized-match,
8533 --initialized-nomatch to trigger both subsystems and devices, only
8534 already-initialized devices, and only devices which haven't been
8535 initialized yet, respectively.
8536
8537 * udevadm gained a new "wait" command for safely waiting for a specific
8538 device to show up in the udev device database. This is useful in
8539 scripts that asynchronously allocate a block device (e.g. through
8540 repartitioning, or allocating a loopback device or similar) and need
8541 to synchronize on the creation to complete.
8542
8543 * udevadm gained a new "lock" command for locking one or more block
8544 devices while formatting it or writing a partition table to it. It is
8545 an implementation of https://systemd.io/BLOCK_DEVICE_LOCKING and
8546 usable in scripts dealing with block devices.
8547
8548 * udevadm info will show a couple of additional device fields in its
8549 output, and will not apply a limited set of coloring to line types.
8550
8551 * udevadm info --tree will now show a tree of objects (i.e. devices and
8552 suchlike) in the /sys/ hierarchy.
8553
8554 * Block devices will now get a new set of device symlinks in
8555 /dev/disk/by-diskseq/<nr>, which may be used to reference block
8556 device nodes via the kernel's "diskseq" value. Note that this does
8557 not guarantee that opening a device by a symlink like this will
8558 guarantee that the opened device actually matches the specified
8559 diskseq value. To be safe against races, the actual diskseq value of
8560 the opened device (BLKGETDISKSEQ ioctl()) must still be compred with
8561 the one in the symlink path.
8562
8563 * .link files gained support for setting MDI/MID-X on a link.
8564
8565 * .link files gained support for [Match] Firmware= setting to match on
8566 the device firmware description string. By mistake, it was previously
8567 only supported in .network files.
8568
8569 * .link files gained support for [Link] SR-IOVVirtualFunctions= setting
8570 and [SR-IOV] section to configure SR-IOV virtual functions.
8571
8572 Changes in systemd-networkd:
8573
8574 * The default scope for unicast routes configured through [Route]
8575 section is changed to "link", to make the behavior consistent with
8576 "ip route" command. The manual configuration of [Route] Scope= is
8577 still honored.
8578
8579 * A new unit systemd-networkd-wait-online@<interface>.service has been
8580 added that can be used to wait for a specific network interface to be
8581 up.
8582
8583 * systemd-networkd gained a new [Bridge] Isolated=true|false setting
8584 that configures the eponymous kernel attribute on the bridge.
8585
8586 * .netdev files now can be used to create virtual WLAN devices, and
8587 configure various settings on them, via the [WLAN] section.
8588
8589 * .link/.network files gained support for [Match] Kind= setting to match
8590 on device kind ("bond", "bridge", "gre", "tun", "veth", etc.)
8591
8592 This value is also shown by 'networkctl status'.
8593
8594 * The Local= setting in .netdev files for various virtual network
8595 devices gained support for specifying, in addition to the network
8596 address, the name of a local interface which must have the specified
8597 address.
8598
8599 * systemd-networkd gained a new [Tunnel] External= setting in .netdev
8600 files, to configure tunnels in external mode (a.k.a. collect metadata
8601 mode).
8602
8603 * [Network] L2TP= setting was removed. Please use interface specifier in
8604 Local= setting in .netdev files of corresponding L2TP interface.
8605
8606 * New [DHCPServer] BootServerName=, BootServerAddress=, and
8607 BootFilename= settings can be used to configure the server address,
8608 server name, and file name sent in the DHCP packet (e.g. to configure
8609 PXE boot).
8610
8611 Changes in systemd-resolved:
8612
8613 * systemd-resolved is started earlier (in sysinit.target), so it
8614 available earlier and will also be started in the initrd if installed
8615 there.
8616
8617 Changes in disk encryption:
8618
8619 * systemd-cryptenroll can now control whether to require the user to
8620 enter a PIN when using TPM-based unlocking of a volume via the new
8621 --tpm2-with-pin= option.
8622
8623 Option tpm2-pin= can be used in /etc/crypttab.
8624
8625 * When unlocking devices via TPM, TPM2 parameter encryption is now
8626 used, to ensure that communication between CPU and discrete TPM chips
8627 cannot be eavesdropped to acquire disk encryption keys.
8628
8629 * A new switch --fido2-credential-algorithm= has been added to
8630 systemd-cryptenroll allowing selection of the credential algorithm to
8631 use when binding encryption to FIDO2 tokens.
8632
8633 Changes in systemd-hostnamed:
8634
8635 * HARDWARE_VENDOR= and HARDWARE_MODEL= can be set in /etc/machine-info
8636 to override the values gleaned from the hwdb.
8637
8638 * A ID_CHASSIS property can be set in the hwdb (for the DMI device
8639 /sys/class/dmi/id) to override the chassis that is reported by
8640 hostnamed.
8641
8642 * hostnamed's D-Bus interface gained a new method GetHardwareSerial()
8643 for reading the hardware serial number, as reported by DMI. It also
8644 exposes a new method D-Bus property FirmwareVersion that encode the
8645 firmware version of the system.
8646
8647 Changes in other components:
8648
8649 * /etc/locale.conf is now populated through tmpfiles.d factory /etc/
8650 handling with the values that were configured during systemd build
8651 (if /etc/locale.conf has not been created through some other
8652 mechanism). This means that /etc/locale.conf should always have
8653 reasonable contents and we avoid a potential mismatch in defaults.
8654
8655 * The userdbctl tool will now show UID range information as part of the
8656 list of known users.
8657
8658 * A new build-time configuration setting default-user-shell= can be
8659 used to set the default shell for user records and nspawn shell
8660 invocations (instead of the default /bin/bash).
8661
8662 * systemd-timesyncd now provides a D-Bus API for receiving NTP server
8663 information dynamically at runtime via IPC.
8664
8665 * The systemd-creds tool gained a new "has-tpm2" verb, which reports
8666 whether a functioning TPM2 infrastructure is available, i.e. if
8667 firmware, kernel driver and systemd all have TPM2 support enabled and
8668 a device found.
8669
8670 * The systemd-creds tool gained support for generating encrypted
8671 credentials that are using an empty encryption key. While this
8672 provides no integrity nor confidentiality it's useful to implement
8673 codeflows that work the same on TPM-ful and TPM2-less systems. The
8674 service manager will only accept credentials "encrypted" that way if
8675 a TPM2 device cannot be detected, to ensure that credentials
8676 "encrypted" like that cannot be used to trick TPM2 systems.
8677
8678 * When deciding whether to colorize output, all systemd programs now
8679 also check $COLORTERM (in addition to $NO_COLOR, $SYSTEMD_COLORS, and
8680 $TERM).
8681
8682 * Meson's new install_tag feature is now in use for several components,
8683 allowing to build and install select binaries only: pam, nss, devel
8684 (pkg-config files), systemd-boot, libsystemd, libudev. Example:
8685 $ meson build systemd-boot
8686 $ meson install --tags systemd-boot --no-rebuild
8687 https://mesonbuild.com/Installing.html#installation-tags
8688
8689 * A new build configuration option has been added, to allow selecting the
8690 default compression algorithm used by systemd-journald and systemd-coredump.
8691 This allows to build-in support for decompressing all supported formats,
8692 but choose a specific one for compression. E.g.:
8693 $ meson -Ddefault-compression=xz
8694
8695 Experimental features:
8696
8697 * sd-boot gained a new *experimental* setting "reboot-for-bitlocker" in
8698 loader.conf that implements booting Microsoft Windows from the
8699 sd-boot in a way that first reboots the system, to reset the TPM
8700 PCRs. This improves compatibility with BitLocker's TPM use, as the
8701 PCRs will only record the Windows boot process, and not sd-boot
8702 itself, thus retaining the PCR measurements not involving sd-boot.
8703 Note that this feature is experimental for now, and is likely going
8704 to be generalized and renamed in a future release, without retaining
8705 compatibility with the current implementation.
8706
8707 * A new systemd-sysupdate component has been added that automatically
8708 discovers, downloads, and installs A/B-style updates for the host
8709 installation itself, or container images, portable service images,
8710 and other assets. See the new systemd-sysupdate man page for updates.
8711
8712 Contributions from: 4piu, Adam Williamson, adrian5, Albert Brox,
8713 AlexCatze, Alex Henrie, Alfonso Sánchez-Beato, Alice S,
8714 Alvin Šipraga, amarjargal, Amarjargal, Andrea Pappacoda,
8715 Andreas Rammhold, Andy Chi, Anita Zhang, Antonio Alvarez Feijoo,
8716 Arfrever Frehtes Taifersar Arahesis, ash, Bastien Nocera, Be,
8717 bearhoney, Ben Efros, Benjamin Berg, Benjamin Franzke,
8718 Brett Holman, Christian Brauner, Clyde Byrd III, Curtis Klein,
8719 Daan De Meyer, Daniele Medri, Daniel Mack, Danilo Krummrich,
8720 David, David Bond, Davide Cavalca, David Tardon, davijosw,
8721 dependabot[bot], Donald Chan, Dorian Clay, Eduard Tolosa,
8722 Elias Probst, Eli Schwartz, Erik Sjölund, Evgeny Vereshchagin,
8723 Federico Ceratto, Franck Bui, Frantisek Sumsal, Gaël PORTAY,
8724 Georges Basile Stavracas Neto, Gibeom Gwon, Goffredo Baroncelli,
8725 Grigori Goronzy, Hans de Goede, Heiko Becker, Hugo Carvalho,
8726 Jakob Lell, James Hilliard, Jan Janssen, Jason A. Donenfeld,
8727 Joan Bruguera, Joerie de Gram, Josh Triplett, Julia Kartseva,
8728 Kazuo Moriwaka, Khem Raj, ksa678491784, Lance, Lan Tian,
8729 Laura Barcziova, Lennart Poettering, Leviticoh, licunlong,
8730 Lidong Zhong, lincoln auster, Lubomir Rintel, Luca Boccassi,
8731 Luca BRUNO, lucagoc, Ludwig Nussel, Marcel Hellwig, march1993,
8732 Marco Scardovi, Mario Limonciello, Mariusz Tkaczyk,
8733 Markus Weippert, Martin, Martin Liska, Martin Wilck, Matija Skala,
8734 Matthew Blythe, Matthias Lisin, Matthijs van Duin, Matt Walton,
8735 Max Gautier, Michael Biebl, Michael Olbrich, Michal Koutný,
8736 Michal Sekletár, Mike Gilbert, MkfsSion, Morten Linderud,
8737 Nick Rosbrook, Nikolai Grigoriev, Nikolai Kostrigin,
8738 Nishal Kulkarni, Noel Kuntze, Pablo Ceballos, Peter Hutterer,
8739 Peter Morrow, Pigmy-penguin, Piotr Drąg, prumian, Richard Neill,
8740 Rike-Benjamin Schuppner, rodin-ia, Romain Naour, Ruben Kerkhof,
8741 Ryan Hendrickson, Santa Wiryaman, Sebastian Pucilowski, Seth Falco,
8742 Simon Ellmann, Sonali Srivastava, Stefan Seering,
8743 Stephen Hemminger, tawefogo, techtino, Temuri Doghonadze,
8744 Thomas Batten, Thomas Haller, Thomas Weißschuh, Tobias Stoeckmann,
8745 Tomasz Pala, Tyson Whitehead, Vishal Chillara Srinivas,
8746 Vivien Didelot, w30023233, wangyuhang, Weblate, Xiaotian Wu,
8747 yangmingtai, YmrDtnJu, Yonathan Randolph, Yutsuten, Yu Watanabe,
8748 Zbigniew Jędrzejewski-Szmek, наб
8749
8750 — Edinburgh, 2022-05-21
8751
8752 CHANGES WITH 250:
8753
8754 * Support for encrypted and authenticated credentials has been added.
8755 This extends the credential logic introduced with v247 to support
8756 non-interactive symmetric encryption and authentication, based on a
8757 key that is stored on the /var/ file system or in the TPM2 chip (if
8758 available), or the combination of both (by default if a TPM2 chip
8759 exists the combination is used, otherwise the /var/ key only). The
8760 credentials are automatically decrypted at the moment a service is
8761 started, and are made accessible to the service itself in unencrypted
8762 form. A new tool 'systemd-creds' encrypts credentials for this
8763 purpose, and two new service file settings LoadCredentialEncrypted=
8764 and SetCredentialEncrypted= configure such credentials.
8765
8766 This feature is useful to store sensitive material such as SSL
8767 certificates, passwords and similar securely at rest and only decrypt
8768 them when needed, and in a way that is tied to the local OS
8769 installation or hardware.
8770
8771 * systemd-gpt-auto-generator can now automatically set up discoverable
8772 LUKS2 encrypted swap partitions.
8773
8774 * The GPT Discoverable Partitions Specification has been substantially
8775 extended with support for root and /usr/ partitions for the majority
8776 of architectures systemd supports. This includes platforms that do
8777 not natively support UEFI, because even though GPT is specified under
8778 UEFI umbrella, it is useful on other systems too. Specifically,
8779 systemd-nspawn, systemd-sysext, systemd-gpt-auto-generator and
8780 Portable Services use the concept without requiring UEFI.
8781
8782 * The GPT Discoverable Partitions Specifications has been extended with
8783 a new set of partitions that may carry PKCS#7 signatures for Verity
8784 partitions, encoded in a simple JSON format. This implements a simple
8785 mechanism for building disk images that are fully authenticated and
8786 can be tested against a set of cryptographic certificates. This is
8787 now implemented for the various systemd tools that can operate with
8788 disk images, such as systemd-nspawn, systemd-sysext, systemd-dissect,
8789 Portable services/RootImage=, systemd-tmpfiles, and systemd-sysusers.
8790 The PKCS#7 signatures are passed to the kernel (where they are
8791 checked against certificates from the kernel keyring), or can be
8792 verified against certificates provided in userspace (via a simple
8793 drop-in file mechanism).
8794
8795 * systemd-dissect's inspection logic will now report for which uses a
8796 disk image is intended. Specifically, it will display whether an
8797 image is suitable for booting on UEFI or in a container (using
8798 systemd-nspawn's --image= switch), whether it can be used as portable
8799 service, or attached as system extension.
8800
8801 * The system-extension.d/ drop-in files now support a new field
8802 SYSEXT_SCOPE= that may encode which purpose a system extension image
8803 is for: one of "initrd", "system" or "portable". This is useful to
8804 make images more self-descriptive, and to ensure system extensions
8805 cannot be attached in the wrong contexts.
8806
8807 * The os-release file learnt a new PORTABLE_PREFIXES= field which may
8808 be used in portable service images to indicate which unit prefixes
8809 are supported.
8810
8811 * The GPT image dissection logic in systemd-nspawn/systemd-dissect/…
8812 now is able to decode images for non-native architectures as well.
8813 This allows systemd-nspawn to boot images of non-native architectures
8814 if the corresponding user mode emulator is installed and
8815 systemd-binfmtd is running.
8816
8817 * systemd-logind gained new settings HandlePowerKeyLongPress=,
8818 HandleRebootKeyLongPress=, HandleSuspendKeyLongPress= and
8819 HandleHibernateKeyLongPress= which may be used to configure actions
8820 when the relevant keys are pressed for more than 5s. This is useful
8821 on devices that only have hardware for a subset of these keys. By
8822 default, if the reboot key is pressed long the poweroff operation is
8823 now triggered, and when the suspend key is pressed long the hibernate
8824 operation is triggered. Long pressing the other two keys currently
8825 does not trigger any operation by default.
8826
8827 * When showing unit status updates on the console during boot and
8828 shutdown, and a service is slow to start so that the cylon animation
8829 is shown, the most recent sd_notify() STATUS= text is now shown as
8830 well. Services may use this to make the boot/shutdown output easier
8831 to understand, and to indicate what precisely a service that is slow
8832 to start or stop is waiting for. In particular, the per-user service
8833 manager instance now reports what it is doing and which service it is
8834 waiting for this way to the system service manager.
8835
8836 * The service manager will now re-execute on reception of the
8837 SIGRTMIN+25 signal. It previously already did that on SIGTERM — but
8838 only when running as PID 1. There was no signal to request this when
8839 running as per-user service manager, i.e. as any other PID than 1.
8840 SIGRTMIN+25 works for both system and user managers.
8841
8842 * The hardware watchdog logic in PID 1 gained support for operating
8843 with the default timeout configured in the hardware, instead of
8844 insisting on re-configuring it. Set RuntimeWatchdogSec=default to
8845 request this behavior.
8846
8847 * A new kernel command line option systemd.watchdog_sec= is now
8848 understood which may be used to override the hardware watchdog
8849 timeout for the boot.
8850
8851 * A new setting DefaultOOMScoreAdjust= is now supported in
8852 /etc/systemd/system.conf and /etc/systemd/user.conf. It may be used
8853 to set the default process OOM score adjustment value for processes
8854 started by the service manager. For per-user service managers this
8855 now defaults to 100, but for per-system service managers is left as
8856 is. This means that by default now services forked off the user
8857 service manager are more likely to be killed by the OOM killer than
8858 system services or the managers themselves.
8859
8860 * A new per-service setting RestrictFileSystems= as been added that
8861 restricts the file systems a service has access to by their type.
8862 This is based on the new BPF LSM of the Linux kernel. It provides an
8863 effective way to make certain API file systems unavailable to
8864 services (and thus minimizing attack surface). A new command
8865 "systemd-analyze filesystems" has been added that lists all known
8866 file system types (and how they are grouped together under useful
8867 group handles).
8868
8869 * Services now support a new setting RestrictNetworkInterfaces= for
8870 restricting access to specific network interfaces.
8871
8872 * Service unit files gained new settings StartupAllowedCPUs= and
8873 StartupAllowedMemoryNodes=. These are similar to their counterparts
8874 without the "Startup" prefix and apply during the boot process
8875 only. This is useful to improve boot-time behavior of the system and
8876 assign resources differently during boot than during regular
8877 runtime. This is similar to the preexisting StartupCPUWeight=
8878 vs. CPUWeight.
8879
8880 * Related to this: the various StartupXYZ= settings
8881 (i.e. StartupCPUWeight=, StartupAllowedCPUs=, …) are now also applied
8882 during shutdown. The settings not prefixed with "Startup" hence apply
8883 during regular runtime, and those that are prefixed like that apply
8884 during boot and shutdown.
8885
8886 * A new per-unit set of conditions/asserts
8887 [Condition|Assert][Memory|CPU|IO]Pressure= have been added to make a
8888 unit skip/fail activation if the system's (or a slice's) memory/cpu/io
8889 pressure is above the configured threshold, using the kernel PSI
8890 feature. For more details see systemd.unit(5) and
8891 https://docs.kernel.org/accounting/psi.html
8892
8893 * The combination of ProcSubset=pid and ProtectKernelTunables=yes and/or
8894 ProtectKernelLogs=yes can now be used.
8895
8896 * The default maximum numbers of inodes have been raised from 64k to 1M
8897 for /dev/, and from 400k to 1M for /tmp/.
8898
8899 * The per-user service manager learnt support for communicating with
8900 systemd-oomd to acquire OOM kill information.
8901
8902 * A new service setting ExecSearchPath= has been added that allows
8903 changing the search path for executables for services. It affects
8904 where we look for the binaries specified in ExecStart= and similar,
8905 and the specified directories are also added the $PATH environment
8906 variable passed to invoked processes.
8907
8908 * A new setting RuntimeRandomizedExtraSec= has been added for service
8909 and scope units that allows extending the runtime timeout as
8910 configured by RuntimeMaxSec= with a randomized amount.
8911
8912 * The syntax of the service unit settings RuntimeDirectory=,
8913 StateDirectory=, CacheDirectory=, LogsDirectory= has been extended:
8914 if the specified value is now suffixed with a colon, followed by
8915 another filename, the latter will be created as symbolic link to the
8916 specified directory. This allows creating these service directories
8917 together with alias symlinks to make them available under multiple
8918 names.
8919
8920 * Service unit files gained two new settings TTYRows=/TTYColumns= for
8921 configuring rows/columns of the TTY device passed to
8922 stdin/stdout/stderr of the service. This is useful to propagate TTY
8923 dimensions to a virtual machine.
8924
8925 * A new service unit file setting ExitType= has been added that
8926 specifies when to assume a service has exited. By default systemd
8927 only watches the main process of a service. By setting
8928 ExitType=cgroup it can be told to wait for the last process in a
8929 cgroup instead.
8930
8931 * Automount unit files gained a new setting ExtraOptions= that can be
8932 used to configure additional mount options to pass to the kernel when
8933 mounting the autofs instance.
8934
8935 * "Urlification" (generation of ESC sequences that generate clickable
8936 hyperlinks in modern terminals) may now be turned off altogether
8937 during build-time.
8938
8939 * Path units gained new TriggerLimitBurst= and TriggerLimitIntervalSec=
8940 settings that default to 200 and 2 s respectively. The ratelimit
8941 ensures that a path unit cannot cause PID1 to busy-loop when it is
8942 trying to trigger a service that is skipped because of a Condition*=
8943 not being satisfied. This matches the configuration and behaviour of
8944 socket units.
8945
8946 * The TPM2/FIDO2/PKCS11 support in systemd-cryptsetup is now also built
8947 as a plug-in for cryptsetup. This means the plain cryptsetup command
8948 may now be used to unlock volumes set up this way.
8949
8950 * The TPM2 logic in cryptsetup will now automatically detect systems
8951 where the TPM2 chip advertises SHA256 PCR banks but the firmware only
8952 updates the SHA1 banks. In such a case PCR policies will be
8953 automatically bound to the latter, not the former. This makes the PCR
8954 policies reliable, but of course do not provide the same level of
8955 trust as SHA256 banks.
8956
8957 * The TPM2 logic in systemd-cryptsetup/systemd-cryptsetup now supports
8958 RSA primary keys in addition to ECC, improving compatibility with
8959 TPM2 chips that do not support ECC. RSA keys are much slower to use
8960 than ECC, and hence are only used if ECC is not available.
8961
8962 * /etc/crypttab gained support for a new token-timeout= setting for
8963 encrypted volumes that allows configuration of the maximum time to
8964 wait for PKCS#11/FIDO2 tokens to be plugged in. If the time elapses
8965 the logic will query the user for a regular passphrase/recovery key
8966 instead.
8967
8968 * Support for activating dm-integrity volumes at boot via a new file
8969 /etc/integritytab and the tool systemd-integritysetup have been
8970 added. This is similar to /etc/crypttab and /etc/veritytab, but deals
8971 with dm-integrity instead of dm-crypt/dm-verity.
8972
8973 * The systemd-veritysetup-generator now understands a new usrhash=
8974 kernel command line option for specifying the Verity root hash for
8975 the partition backing the /usr/ file system. A matching set of
8976 systemd.verity_usr_* kernel command line options has been added as
8977 well. These all work similar to the corresponding options for the
8978 root partition.
8979
8980 * The sd-device API gained a new API call sd_device_get_diskseq() to
8981 return the DISKSEQ property of a device structure. The "disk
8982 sequence" concept is a new feature recently introduced to the Linux
8983 kernel that allows detecting reuse cycles of block devices, i.e. can
8984 be used to recognize when loopback block devices are reused for a
8985 different purpose or CD-ROM drives get their media changed.
8986
8987 * A new unit systemd-boot-update.service has been added. If enabled
8988 (the default) and the sd-boot loader is detected to be installed, it
8989 is automatically updated to the newest version when out of date. This
8990 is useful to ensure the boot loader remains up-to-date, and updates
8991 automatically propagate from the OS tree in /usr/.
8992
8993 * sd-boot will now build with SBAT by default in order to facilitate
8994 working with recent versions of Shim that require it to be present.
8995
8996 * sd-boot can now parse Microsoft Windows' Boot Configuration Data.
8997 This is used to robustly generate boot entry titles for Windows.
8998
8999 * A new generic target unit factory-reset.target has been added. It is
9000 hooked into systemd-logind similar in fashion to
9001 reboot/poweroff/suspend/hibernate, and is supposed to be used to
9002 initiate a factory reset operation. What precisely this operation
9003 entails is up for the implementer to decide, the primary goal of the
9004 new unit is provide a framework where to plug in the implementation
9005 and how to trigger it.
9006
9007 * A new meson build-time option 'clock-valid-range-usec-max' has been
9008 added which takes a time in µs and defaults to 15 years. If the RTC
9009 time is noticed to be more than the specified time ahead of the
9010 built-in epoch of systemd (which by default is the release timestamp
9011 of systemd) it is assumed that the RTC is not working correctly, and
9012 the RTC is reset to the epoch. (It already is reset to the epoch when
9013 noticed to be before it.) This should increase the chance that time
9014 doesn't accidentally jump too far ahead due to faulty hardware or
9015 batteries.
9016
9017 * A new setting SaveIntervalSec= has been added to systemd-timesyncd,
9018 which may be used to automatically save the current system time to
9019 disk in regular intervals. This is useful to maintain a roughly
9020 monotonic clock even without RTC hardware and with some robustness
9021 against abnormal system shutdown.
9022
9023 * systemd-analyze verify gained support for a pair of new --image= +
9024 --root= switches for verifying units below a specific root
9025 directory/image instead of on the host.
9026
9027 * systemd-analyze verify gained support for verifying unit files under
9028 an explicitly specified unit name, independently of what the filename
9029 actually is.
9030
9031 * systemd-analyze verify gained a new switch --recursive-errors= which
9032 controls whether to only fail on errors found in the specified units
9033 or recursively any dependent units.
9034
9035 * systemd-analyze security now supports a new --offline mode for
9036 analyzing unit files stored on disk instead of loaded units. It may
9037 be combined with --root=/--image to analyze unit files under a root
9038 directory or disk image. It also learnt a new --threshold= parameter
9039 for specifying an exposure level threshold: if the exposure level
9040 exceeds the specified value the call will fail. It also gained a new
9041 --security-policy= switch for configuring security policies to
9042 enforce on the units. A policy is a JSON file that lists which tests
9043 shall be weighted how much to determine the overall exposure
9044 level. Altogether these new features are useful for fully automatic
9045 analysis and enforcement of security policies on unit files.
9046
9047 * systemd-analyze security gain a new --json= switch for JSON output.
9048
9049 * systemd-analyze learnt a new --quiet switch for reducing
9050 non-essential output. It's honored by the "dot", "syscall-filter",
9051 "filesystems" commands.
9052
9053 * systemd-analyze security gained a --profile= option that can be used
9054 to take into account a portable profile when analyzing portable
9055 services, since a lot of the security-related settings are enabled
9056 through them.
9057
9058 * systemd-analyze learnt a new inspect-elf verb that parses ELF core
9059 files, binaries and executables and prints metadata information,
9060 including the build-id and other info described on:
9061 https://systemd.io/COREDUMP_PACKAGE_METADATA/
9062
9063 * .network files gained a new UplinkInterface= in the [IPv6SendRA]
9064 section, for automatically propagating DNS settings from other
9065 interfaces.
9066
9067 * The static lease DHCP server logic in systemd-networkd may now serve
9068 IP addresses outside of the configured IP pool range for the server.
9069
9070 * CAN support in systemd-networkd gained four new settings Loopback=,
9071 OneShot=, PresumeACK=, ClassicDataLengthCode= for tweaking CAN
9072 control modes. It gained a number of further settings for tweaking
9073 CAN timing quanta.
9074
9075 * The [CAN] section in .network file gained new TimeQuantaNSec=,
9076 PropagationSegment=, PhaseBufferSegment1=, PhaseBufferSegment2=,
9077 SyncJumpWidth=, DataTimeQuantaNSec=, DataPropagationSegment=,
9078 DataPhaseBufferSegment1=, DataPhaseBufferSegment2=, and
9079 DataSyncJumpWidth= settings to control bit-timing processed by the
9080 CAN interface.
9081
9082 * DHCPv4 client support in systemd-networkd learnt a new Label= option
9083 for configuring the address label to apply to configure IPv4
9084 addresses.
9085
9086 * The [IPv6AcceptRA] section of .network files gained support for a new
9087 UseMTU= setting that may be used to control whether to apply the
9088 announced MTU settings to the local interface.
9089
9090 * The [DHCPv4] section in .network file gained a new Use6RD= boolean
9091 setting to control whether the DHCPv4 client request and process the
9092 DHCP 6RD option.
9093
9094 * The [DHCPv6PrefixDelegation] section in .network file is renamed to
9095 [DHCPPrefixDelegation], as now the prefix delegation is also supported
9096 with DHCPv4 protocol by enabling the Use6RD= setting.
9097
9098 * The [DHCPPrefixDelegation] section in .network file gained a new
9099 setting UplinkInterface= to specify the upstream interface.
9100
9101 * The [DHCPv6] section in .network file gained a new setting
9102 UseDelegatedPrefix= to control whether the delegated prefixes will be
9103 propagated to the downstream interfaces.
9104
9105 * The [IPv6AcceptRA] section of .network files now understands two new
9106 settings UseGateway=/UseRoutePrefix= for explicitly configuring
9107 whether to use the relevant fields from the IPv6 Router Advertisement
9108 records.
9109
9110 * The ForceDHCPv6PDOtherInformation= setting in the [DHCPv6] section
9111 has been removed. Please use the WithoutRA= and UseDelegatedPrefix=
9112 settings in the [DHCPv6] section and the DHCPv6Client= setting in the
9113 [IPv6AcceptRA] section to control when the DHCPv6 client is started
9114 and how the delegated prefixes are handled by the DHCPv6 client.
9115
9116 * The IPv6Token= section in the [Network] section is deprecated, and
9117 the [IPv6AcceptRA] section gained the Token= setting for its
9118 replacement. The [IPv6Prefix] section also gained the Token= setting.
9119 The Token= setting gained 'eui64' mode to explicitly configure an
9120 address with the EUI64 algorithm based on the interface MAC address.
9121 The 'prefixstable' mode can now optionally take a secret key. The
9122 Token= setting in the [DHCPPrefixDelegation] section now supports all
9123 algorithms supported by the same settings in the other sections.
9124
9125 * The [RoutingPolicyRule] section of .network file gained a new
9126 SuppressInterfaceGroup= setting.
9127
9128 * The IgnoreCarrierLoss= setting in the [Network] section of .network
9129 files now allows a duration to be specified, controlling how long to
9130 wait before reacting to carrier loss.
9131
9132 * The [DHCPServer] section of .network file gained a new Router=
9133 setting to specify the router address.
9134
9135 * The [CAKE] section of .network files gained various new settings
9136 AutoRateIngress=, CompensationMode=, FlowIsolationMode=, NAT=,
9137 MPUBytes=, PriorityQueueingPreset=, FirewallMark=, Wash=, SplitGSO=,
9138 and UseRawPacketSize= for configuring CAKE.
9139
9140 * systemd-networkd now ships with new default .network files:
9141 80-container-vb.network which matches host-side network bridge device
9142 created by systemd-nspawn's --network-bridge or --network-zone
9143 switch, and 80-6rd-tunnel.network which matches automatically created
9144 sit tunnel with 6rd prefix when the DHCP 6RD option is received.
9145
9146 * systemd-networkd's handling of Endpoint= resolution for WireGuard
9147 interfaces has been improved.
9148
9149 * systemd-networkd will now automatically configure routes to addresses
9150 specified in AllowedIPs=. This feature can be controlled via
9151 RouteTable= and RouteMetric= settings in [WireGuard] or
9152 [WireGuardPeer] sections.
9153
9154 * systemd-networkd will now once again automatically generate persistent
9155 MAC addresses for batadv and bridge interfaces. Users can disable this
9156 by using MACAddress=none in .netdev files.
9157
9158 * systemd-networkd and systemd-udevd now support IP over InfiniBand
9159 interfaces. The Kind= setting in .netdev file accepts "ipoib". And
9160 systemd.netdev files gained the [IPoIB] section.
9161
9162 * systemd-networkd and systemd-udevd now support net.ifname_policy=
9163 option on the kernel command-line. This is implemented through the
9164 systemd-network-generator service that automatically generates
9165 appropriate .link, .network, and .netdev files.
9166
9167 * The various systemd-udevd "ethtool" buffer settings now understand
9168 the special value "max" to configure the buffers to the maximum the
9169 hardware supports.
9170
9171 * systemd-udevd's .link files may now configure a large variety of
9172 NIC coalescing settings, plus more hardware offload settings.
9173
9174 * .link files gained a new WakeOnLanPassword= setting in the [Link]
9175 section that allows to specify a WoL "SecureOn" password on hardware
9176 that supports this.
9177
9178 * systemd-nspawn's --setenv= switch now supports an additional syntax:
9179 if only a variable name is specified (i.e. without being suffixed by
9180 a '=' character and a value) the current value of the environment
9181 variable is propagated to the container. e.g. --setenv=FOO will
9182 lookup the current value of $FOO in the environment, and pass it down
9183 to the container. Similar behavior has been added to homectl's,
9184 machinectl's and systemd-run's --setenv= switch.
9185
9186 * systemd-nspawn gained a new switch --suppress-sync= which may be used
9187 to optionally suppress the effect of the sync()/fsync()/fdatasync()
9188 system calls for the container payload. This is useful for build
9189 system environments where safety against abnormal system shutdown is
9190 not essential as all build artifacts can be regenerated any time, but
9191 the performance win is beneficial.
9192
9193 * systemd-nspawn will now raise the RLIMIT_NOFILE hard limit to the
9194 same value that PID 1 uses for most forked off processes.
9195
9196 * systemd-nspawn's --bind=/--bind-ro= switches now optionally take
9197 uidmap/nouidmap options as last parameter. If "uidmap" is used the
9198 bind mounts are created with UID mapping taking place that ensures
9199 the host's file ownerships are mapped 1:1 to container file
9200 ownerships, even if user namespacing is used. This way
9201 files/directories bound into containers will no longer show up as
9202 owned by the nobody user as they typically did if no special care was
9203 taken to shift them manually.
9204
9205 * When discovering Windows installations sd-boot will now attempt to
9206 show the Windows version.
9207
9208 * The color scheme to use in sd-boot may now be configured at
9209 build-time.
9210
9211 * sd-boot gained the ability to change screen resolution during
9212 boot-time, by hitting the "r" key. This will cycle through available
9213 resolutions and save the last selection.
9214
9215 * sd-boot learnt a new hotkey "f". When pressed the system will enter
9216 firmware setup. This is useful in environments where it is difficult
9217 to hit the right keys early enough to enter the firmware, and works
9218 on any firmware regardless which key it natively uses.
9219
9220 * sd-boot gained support for automatically booting into the menu item
9221 selected on the last boot (using the "@saved" identifier for menu
9222 items).
9223
9224 * sd-boot gained support for automatically loading all EFI drivers
9225 placed in the /EFI/systemd/drivers/ subdirectory of the EFI System
9226 Partition (ESP). These drivers are loaded before the menu entries are
9227 loaded. This is useful e.g. to load additional file system drivers
9228 for the XBOOTLDR partition.
9229
9230 * systemd-boot will now paint the input cursor on its own instead of
9231 relying on the firmware to do so, increasing compatibility with broken
9232 firmware that doesn't make the cursor reasonably visible.
9233
9234 * sd-boot now embeds a .osrel PE section like we expect from Boot
9235 Loader Specification Type #2 Unified Kernels. This means sd-boot
9236 itself may be used in place of a Type #2 Unified Kernel. This is
9237 useful for debugging purposes as it allows chain-loading one a
9238 (development) sd-boot instance from another.
9239
9240 * sd-boot now supports a new "devicetree" field in Boot Loader
9241 Specification Type #1 entries: if configured the specified device
9242 tree file is installed before the kernel is invoked. This is useful
9243 for installing/applying new devicetree files without updating the
9244 kernel image.
9245
9246 * Similarly, sd-stub now can read devicetree data from a PE section
9247 ".dtb" and apply it before invoking the kernel.
9248
9249 * sd-stub (the EFI stub that can be glued in front of a Linux kernel)
9250 gained the ability to pick up credentials and sysext files, wrap them
9251 in a cpio archive, and pass as an additional initrd to the invoked
9252 Linux kernel, in effect placing those files in the /.extra/ directory
9253 of the initrd environment. This is useful to implement trusted initrd
9254 environments which are fully authenticated but still can be extended
9255 (via sysexts) and parameterized (via encrypted/authenticated
9256 credentials, see above).
9257
9258 Credentials can be located next to the kernel image file (credentials
9259 specific to a single boot entry), or in one of the shared directories
9260 (credentials applicable to multiple boot entries).
9261
9262 * sd-stub now comes with a full man page, that explains its feature set
9263 and how to combine a kernel image, an initrd and the stub to build a
9264 complete EFI unified kernel image, implementing Boot Loader
9265 Specification Type #2.
9266
9267 * sd-stub may now provide the initrd to the executed kernel via the
9268 LINUX_EFI_INITRD_MEDIA_GUID EFI protocol, adding compatibility for
9269 non-x86 architectures.
9270
9271 * bootctl learnt new set-timeout and set-timeout-oneshot commands that
9272 may be used to set the boot menu timeout of the boot loader (for all
9273 or just the subsequent boot).
9274
9275 * bootctl and kernel-install will now read variables
9276 KERNEL_INSTALL_LAYOUT= from /etc/machine-info and layout= from
9277 /etc/kernel/install.conf. When set, it specifies the layout to use
9278 for installation directories on the boot partition, so that tools
9279 don't need to guess it based on the already-existing directories. The
9280 only value that is defined natively is "bls", corresponding to the
9281 layout specified in
9282 https://systemd.io/BOOT_LOADER_SPECIFICATION/. Plugins for
9283 kernel-install that implement a different layout can declare other
9284 values for this variable.
9285
9286 'bootctl install' will now write KERNEL_INSTALL_LAYOUT=bls, on the
9287 assumption that if the user installed sd-boot to the ESP, they intend
9288 to use the entry layout understood by sd-boot. It'll also write
9289 KERNEL_INSTALL_MACHINE_ID= if it creates any directories using the ID
9290 (and it wasn't specified in the config file yet). Similarly,
9291 kernel-install will now write KERNEL_INSTALL_MACHINE_ID= (if it
9292 wasn't specified in the config file yet). Effectively, those changes
9293 mean that the machine-id used for boot loader entry installation is
9294 "frozen" upon first use and becomes independent of the actual
9295 machine-id.
9296
9297 Configuring KERNEL_INSTALL_MACHINE_ID fixes the following problem:
9298 images created for distribution ("golden images") are built with no
9299 machine-id, so that a unique machine-id can be created on the first
9300 boot. But those images may contain boot loader entries with the
9301 machine-id used during build included in paths. Using a "frozen"
9302 value allows unambiguously identifying entries that match the
9303 specific installation, while still permitting parallel installations
9304 without conflict.
9305
9306 Configuring KERNEL_INSTALL_LAYOUT obviates the need for
9307 kernel-install to guess the installation layout. This fixes the
9308 problem where a (possibly empty) directory in the boot partition is
9309 created from a different layout causing kernel-install plugins to
9310 assume the wrong layout. A particular example of how this may happen
9311 is the grub2 package in Fedora which includes directories under /boot
9312 directly in its file list. Various other packages pull in grub2 as a
9313 dependency, so it may be installed even if unused, breaking
9314 installations that use the bls layout.
9315
9316 * bootctl and systemd-bless-boot can now be linked statically.
9317
9318 * systemd-sysext now optionally doesn't insist on extension-release.d/
9319 files being placed in the image under the image's file name. If the
9320 file system xattr user.extension-release.strict is set on the
9321 extension release file, it is accepted regardless of its name. This
9322 relaxes security restrictions a bit, as system extension may be
9323 attached under a wrong name this way.
9324
9325 * udevadm's test-builtin command learnt a new --action= switch for
9326 testing the built-in with the specified action (in place of the
9327 default 'add').
9328
9329 * udevadm info gained new switches --property=/--value for showing only
9330 specific udev properties/values instead of all.
9331
9332 * A new hwdb database has been added that contains matches for various
9333 types of signal analyzers (protocol analyzers, logic analyzers,
9334 oscilloscopes, multimeters, bench power supplies, etc.) that should
9335 be accessible to regular users.
9336
9337 * A new hwdb database entry has been added that carries information
9338 about types of cameras (regular or infrared), and in which direction
9339 they point (front or back).
9340
9341 * A new rule to allow console users access to rfkill by default has been
9342 added to hwdb.
9343
9344 * Device nodes for the Software Guard eXtension enclaves (sgx_vepc) are
9345 now also owned by the system group "sgx".
9346
9347 * A new build-time meson option "extra-net-naming-schemes=" has been
9348 added to define additional naming schemes for udev's network
9349 interface naming logic. This is useful for enterprise distributions
9350 and similar which want to pin the schemes of certain distribution
9351 releases under a specific name and previously had to patch the
9352 sources to introduce new named schemes.
9353
9354 * The predictable naming logic for network interfaces has been extended
9355 to generate stable names from Xen netfront device information.
9356
9357 * hostnamed's chassis property can now be sourced from chassis-type
9358 field encoded in devicetree (in addition to the existing DMI
9359 support).
9360
9361 * systemd-cgls now optionally displays cgroup IDs and extended
9362 attributes for each cgroup. (Controllable via the new --xattr= +
9363 --cgroup-id= switches.)
9364
9365 * coredumpctl gained a new --all switch for operating on all
9366 Journal files instead of just the local ones.
9367
9368 * systemd-coredump will now use libdw/libelf via dlopen() rather than
9369 directly linking, allowing users to easily opt-out of backtrace/metadata
9370 analysis of core files, and reduce image sizes when this is not needed.
9371
9372 * systemd-coredump will now analyze core files with libdw/libelf in a
9373 forked, sandboxed process.
9374
9375 * systemd-homed will now try to unmount an activate home area in
9376 regular intervals once the user logged out fully. Previously this was
9377 attempted exactly once but if the home directory was busy for some
9378 reason it was not tried again.
9379
9380 * systemd-homed's LUKS2 home area backend will now create a BSD file
9381 system lock on the image file while the home area is active
9382 (i.e. mounted). If a home area is found to be locked, logins are
9383 politely refused. This should improve behavior when using home areas
9384 images that are accessible via the network from multiple clients, and
9385 reduce the chance of accidental file system corruption in that case.
9386
9387 * Optionally, systemd-homed will now drop the kernel buffer cache once
9388 a user has fully logged out, configurable via the new --drop-caches=
9389 homectl switch.
9390
9391 * systemd-homed now makes use of UID mapped mounts for the home areas.
9392 If the kernel and used file system support it, files are now
9393 internally owned by the "nobody" user (i.e. the user typically used
9394 for indicating "this ownership is not mapped"), and dynamically
9395 mapped to the UID used locally on the system via the UID mapping
9396 mount logic of recent kernels. This makes migrating home areas
9397 between different systems cheaper because recursively chown()ing file
9398 system trees is no longer necessary.
9399
9400 * systemd-homed's CIFS backend now optionally supports CIFS service
9401 names with a directory suffix, in order to place home directories in
9402 a subdirectory of a CIFS share, instead of the top-level directory.
9403
9404 * systemd-homed's CIFS backend gained support for specifying additional
9405 mount options in the JSON user record (cifsExtraMountOptions field,
9406 and --cifs-extra-mount-options= homectl switch). This is for example
9407 useful for configuring mount options such as "noserverino" that some
9408 SMB3 services require (use that to run a homed home directory from a
9409 FritzBox SMB3 share this way).
9410
9411 * systemd-homed will now default to btrfs' zstd compression for home
9412 areas. This is inspired by Fedora's recent decision to switch to zstd
9413 by default.
9414
9415 * Additional mount options to use when mounting the file system of
9416 LUKS2 volumes in systemd-homed has been added. Via the
9417 $SYSTEMD_HOME_MOUNT_OPTIONS_BTRFS, $SYSTEMD_HOME_MOUNT_OPTIONS_EXT4,
9418 $SYSTEMD_HOME_MOUNT_OPTIONS_XFS environment variables to
9419 systemd-homed or via the luksExtraMountOptions user record JSON
9420 property. (Exposed via homectl --luks-extra-mount-options)
9421
9422 * homectl's resize command now takes the special size specifications
9423 "min" and "max" to shrink/grow the home area to the minimum/maximum
9424 size possible, taking disk usage/space constraints and file system
9425 limitations into account. Resizing is now generally graceful: the
9426 logic will try to get as close to the specified size as possible, but
9427 not consider it a failure if the request couldn't be fulfilled
9428 precisely.
9429
9430 * systemd-homed gained the ability to automatically shrink home areas
9431 on logout to their minimal size and grow them again on next
9432 login. This ensures that while inactive, a home area only takes up
9433 the minimal space necessary, but once activated, it provides
9434 sufficient space for the user's needs. This behavior is only
9435 supported if btrfs is used as file system inside the home area
9436 (because only for btrfs online growing/shrinking is implemented in
9437 the kernel). This behavior is now enabled by default, but may be
9438 controlled via the new --auto-resize-mode= setting of homectl.
9439
9440 * systemd-homed gained support for automatically re-balancing free disk
9441 space among active home areas, in case the LUKS2 backends are used,
9442 and no explicit disk size was requested. This way disk space is
9443 automatically managed and home areas resized in regular intervals and
9444 manual resizing when disk space becomes scarce should not be
9445 necessary anymore. This behavior is only supported if btrfs is used
9446 within the home areas (as only then online shrinking and growing is
9447 supported), and may be configured via the new rebalanceWeight JSON
9448 user record field (as exposed via the new --rebalance-weight= homectl
9449 setting). Re-balancing is mostly automatic, but can also be requested
9450 explicitly via "homectl rebalance", which is synchronous, and thus
9451 may be used to wait until the rebalance run is complete.
9452
9453 * userdbctl gained a --json= switch for configured the JSON formatting
9454 to use when outputting user or group records.
9455
9456 * userdbctl gained a new --multiplexer= switch for explicitly
9457 configuring whether to use the systemd-userdbd server side user
9458 record resolution logic.
9459
9460 * userdbctl's ssh-authorized-keys command learnt a new --chain switch,
9461 for chaining up another command to execute after completing the
9462 look-up. Since the OpenSSH's AuthorizedKeysCommand only allows
9463 configuration of a single command to invoke, this maybe used to
9464 invoke multiple: first userdbctl's own implementation, and then any
9465 other also configured in the command line.
9466
9467 * The sd-event API gained a new function sd_event_add_inotify_fd() that
9468 is similar to sd_event_add_inotify() but accepts a file descriptor
9469 instead of a path in the file system for referencing the inode to
9470 watch.
9471
9472 * The sd-event API gained a new function
9473 sd_event_source_set_ratelimit_expire_callback() that may be used to
9474 define a callback function that is called whenever an event source
9475 leaves the rate limiting phase.
9476
9477 * New documentation has been added explaining which steps are necessary
9478 to port systemd to a new architecture:
9479
9480 https://systemd.io/PORTING_TO_NEW_ARCHITECTURES
9481
9482 * The x-systemd.makefs option in /etc/fstab now explicitly supports
9483 ext2, ext3, and f2fs file systems.
9484
9485 * Mount units and units generated from /etc/fstab entries with 'noauto'
9486 are now ordered the same as other units. Effectively, they will be
9487 started earlier (if something actually pulled them in) and stopped
9488 later, similarly to normal mount units that are part of
9489 fs-local.target. This change should be invisible to users, but
9490 should prevent those units from being stopped too early during
9491 shutdown.
9492
9493 * The systemd-getty-generator now honors a new kernel command line
9494 argument systemd.getty_auto= and a new environment variable
9495 $SYSTEMD_GETTY_AUTO that allows turning it off at boot. This is for
9496 example useful to turn off gettys inside of containers or similar
9497 environments.
9498
9499 * systemd-resolved now listens on a second DNS stub address: 127.0.0.54
9500 (in addition to 127.0.0.53, as before). If DNS requests are sent to
9501 this address they are propagated in "bypass" mode only, i.e. are
9502 almost not processed locally, but mostly forwarded as-is to the
9503 current upstream DNS servers. This provides a stable DNS server
9504 address that proxies all requests dynamically to the right upstream
9505 DNS servers even if these dynamically change. This stub does not do
9506 mDNS/LLMNR resolution. However, it will translate look-ups to
9507 DNS-over-TLS if necessary. This new stub is particularly useful in
9508 container/VM environments, or for tethering setups: use DNAT to
9509 redirect traffic to any IP address to this stub.
9510
9511 * systemd-importd now honors new environment variables
9512 $SYSTEMD_IMPORT_BTRFS_SUBVOL, $SYSTEMD_IMPORT_BTRFS_QUOTA,
9513 $SYSTEMD_IMPORT_SYNC, which may be used disable btrfs subvolume
9514 generation, btrfs quota setup and disk synchronization.
9515
9516 * systemd-importd and systemd-resolved can now be optionally built with
9517 OpenSSL instead of libgcrypt.
9518
9519 * systemd-repart no longer requires OpenSSL.
9520
9521 * systemd-sysusers will no longer create the redundant 'nobody' group
9522 by default, as the 'nobody' user is already created with an
9523 appropriate primary group.
9524
9525 * If a unit uses RuntimeMaxSec, systemctl show will now display it.
9526
9527 * systemctl show-environment gained support for --output=json.
9528
9529 * pam_systemd will now first try to use the X11 abstract socket, and
9530 fallback to the socket file in /tmp/.X11-unix/ only if that does not
9531 work.
9532
9533 * systemd-journald will no longer go back to volatile storage
9534 regardless of configuration when its unit is restarted.
9535
9536 * Initial support for the LoongArch architecture has been added (system
9537 call lists, GPT partition table UUIDs, etc).
9538
9539 * systemd-journald's own logging messages are now also logged to the
9540 journal itself when systemd-journald logs to /dev/kmsg.
9541
9542 * systemd-journald now re-enables COW for archived journal files on
9543 filesystems that support COW. One benefit of this change is that
9544 archived journal files will now get compressed on btrfs filesystems
9545 that have compression enabled.
9546
9547 * systemd-journald now deduplicates fields in a single log message
9548 before adding it to the journal. In archived journal files, it will
9549 also punch holes for unused parts and truncate the file as
9550 appropriate, leading to reductions in disk usage.
9551
9552 * journalctl --verify was extended with more informative error
9553 messages.
9554
9555 * More of sd-journal's functions are now resistant against journal file
9556 corruption.
9557
9558 * The shutdown command learnt a new option --show, to display the
9559 scheduled shutdown.
9560
9561 * A LICENSES/ directory is now included in the git tree. It contains a
9562 README.md file that explains the licenses used by source files in
9563 this repository. It also contains the text of all applicable
9564 licenses as they appear on spdx.org.
9565
9566 Contributions from: Aakash Singh, acsfer, Adolfo Jayme Barrientos,
9567 Adrian Vovk, Albert Brox, Alberto Mardegan, Alexander Kanavin,
9568 alexlzhu, Alfonso Sánchez-Beato, Alvin Šipraga, Alyssa Ross,
9569 Amir Omidi, Anatol Pomozov, Andika Triwidada, Andreas Rammhold,
9570 Andreas Valder, Andrej Lajovic, Andrew Soutar, Andrew Stone, Andy Chi,
9571 Anita Zhang, Anssi Hannula, Antonio Alvarez Feijoo,
9572 Antony Deepak Thomas, Arnaud Ferraris, Arvid E. Picciani,
9573 Bastien Nocera, Benjamin Berg, Benjamin Herrenschmidt, Ben Stockett,
9574 Bogdan Seniuc, Boqun Feng, Carl Lei, chlorophyll-zz, Chris Packham,
9575 Christian Brauner, Christian Göttsche, Christian Wehrli,
9576 Christoph Anton Mitterer, Cristian Rodríguez, Daan De Meyer,
9577 Daniel Maixner, Dann Frazier, Dan Streetman, Davide Cavalca,
9578 David Seifert, David Tardon, dependabot[bot], Dimitri John Ledkov,
9579 Dimitri Papadopoulos, Dimitry Ishenko, Dmitry Khlebnikov,
9580 Dominique Martinet, duament, Egor, Egor Ignatov, Emil Renner Berthing,
9581 Emily Gonyer, Ettore Atalan, Evgeny Vereshchagin, Florian Klink,
9582 Franck Bui, Frantisek Sumsal, Geass-LL, Gibeom Gwon, GnunuX,
9583 Gogo Gogsi, gregzuro, Greg Zuro, Gustavo Costa, Hans de Goede,
9584 Hela Basa, Henri Chain, hikigaya58, Hugo Carvalho,
9585 Hugo Osvaldo Barrera, Iago Lopez Galeiras, Iago López Galeiras,
9586 I-dont-need-name, igo95862, Jack Dähn, James Hilliard, Jan Janssen,
9587 Jan Kuparinen, Jan Macku, Jan Palus, Jarkko Sakkinen, Jayce Fayne,
9588 jiangchuangang, jlempen, John Lindgren, Jonas Dreßler, Jonas Jelten,
9589 Jonas Witschel, Joris Hartog, José Expósito, Julia Kartseva,
9590 Kai-Heng Feng, Kai Wohlfahrt, Kay Siver Bø, KennthStailey,
9591 Kevin Kuehler, Kevin Orr, Khem Raj, Kristian Klausen, Kyle Laker,
9592 lainahai, LaserEyess, Lennart Poettering, Lia Lenckowski, longpanda,
9593 Luca Boccassi, Luca BRUNO, Ludwig Nussel, Lukas Senionis,
9594 Maanya Goenka, Maciek Borzecki, Marcel Menzel, Marco Scardovi,
9595 Marcus Harrison, Mark Boudreau, Matthijs van Duin, Mauricio Vásquez,
9596 Maxime de Roucy, Max Resch, MertsA, Michael Biebl, Michael Catanzaro,
9597 Michal Koutný, Michal Sekletár, Miika Karanki, Mike Gilbert,
9598 Milo Turner, ml, monosans, Nacho Barrientos, nassir90, Nishal Kulkarni,
9599 nl6720, Ondrej Kozina, Paulo Neves, Pavel Březina, pedro martelletto,
9600 Peter Hutterer, Peter Morrow, Piotr Drąg, Rasmus Villemoes, ratijas,
9601 Raul Tambre, rene, Riccardo Schirone, Robert-L-Turner, Robert Scheck,
9602 Ross Jennings, saikat0511, Scott Lamb, Scott Worley,
9603 Sergei Trofimovich, Sho Iizuka, Slava Bacherikov, Slimane Selyan Amiri,
9604 StefanBruens, Steven Siloti, svonohr, Taiki Sugawara, Takashi Sakamoto,
9605 Takuro Onoue, Thomas Blume, Thomas Haller, Thomas Mühlbacher,
9606 Tianlu Shao, Toke Høiland-Jørgensen, Tom Yan, Tony Asleson,
9607 Topi Miettinen, Ulrich Ölmann, Urs Ritzmann, Vincent Bernat,
9608 Vito Caputo, Vladimir Panteleev, WANG Xuerui, Wind/owZ, Wu Xiaotian,
9609 xdavidwu, Xiaotian Wu, xujing, yangmingtai, Yao Wei, Yao Wei (魏銘廷),
9610 Yegor Alexeyev, Yu Watanabe, Zbigniew Jędrzejewski-Szmek,
9611 Дамјан Георгиевски, наб
9612
9613 — Warsaw, 2021-12-23
9614
9615 CHANGES WITH 249:
9616
9617 * When operating on disk images via the --image= switch of various
9618 tools (such as systemd-nspawn or systemd-dissect), or when udev finds
9619 no 'root=' parameter on the kernel command line, and multiple
9620 suitable root or /usr/ partitions exist in the image, then a simple
9621 comparison inspired by strverscmp() is done on the GPT partition
9622 label, and the newest partition is picked. This permits a simple and
9623 generic whole-file-system A/B update logic where new operating system
9624 versions are dropped into partitions whose label is then updated with
9625 a matching version identifier.
9626
9627 * systemd-sysusers now supports querying the passwords to set for the
9628 users it creates via the "credentials" logic introduced in v247: the
9629 passwd.hashed-password.<user> and passwd.plaintext-password.<user>
9630 credentials are consulted for the password to use (either in UNIX
9631 hashed form, or literally). By default these credentials are inherited
9632 down from PID1 (which in turn imports it from a container manager if
9633 there is one). This permits easy configuration of user passwords
9634 during first boot. Example:
9635
9636 # systemd-nspawn -i foo.raw --volatile=yes --set-credential=passwd.plaintext-password.root:foo
9637
9638 Note that systemd-sysusers operates in purely additive mode: it
9639 executes no operation if the declared users already exist, and hence
9640 doesn't set any passwords as effect of the command line above if the
9641 specified root user exists already in the image. (Note that
9642 --volatile=yes ensures it doesn't, though.)
9643
9644 * systemd-firstboot now also supports querying various system
9645 parameters via the credential subsystems. Thus, as above this may be
9646 used to initialize important system parameters on first boot of
9647 previously unprovisioned images (i.e. images with a mostly empty
9648 /etc/).
9649
9650 * PID 1 may now show both the unit name and the unit description
9651 strings in its status output during boot. This may be configured with
9652 StatusUnitFormat=combined in system.conf or
9653 systemd.status-unit-format=combined on the kernel command line.
9654
9655 * The systemd-machine-id-setup tool now supports a --image= switch for
9656 provisioning a machine ID file into an OS disk image, similar to how
9657 --root= operates on an OS file tree. This matches the existing switch
9658 of the same name for systemd-tmpfiles, systemd-firstboot, and
9659 systemd-sysusers tools.
9660
9661 * Similarly, systemd-repart gained support for the --image= switch too.
9662 In combination with the existing --size= option, this makes the tool
9663 particularly useful for easily growing disk images in a single
9664 invocation, following the declarative rules included in the image
9665 itself.
9666
9667 * systemd-repart's partition configuration files gained support for a
9668 new switch MakeDirectories= which may be used to create arbitrary
9669 directories inside file systems that are created, before registering
9670 them in the partition table. This is useful in particular for root
9671 partitions to create mount point directories for other partitions
9672 included in the image. For example, a disk image that contains a
9673 root, /home/, and /var/ partitions, may set MakeDirectories=yes to
9674 create /home/ and /var/ as empty directories in the root file system
9675 on its creation, so that the resulting image can be mounted
9676 immediately, even in read-only mode.
9677
9678 * systemd-repart's CopyBlocks= setting gained support for the special
9679 value "auto". If used, a suitable matching partition on the booted OS
9680 is found as source to copy blocks from. This is useful when
9681 implementing replicating installers, that are booted from one medium
9682 and then stream their own root partition onto the target medium.
9683
9684 * systemd-repart's partition configuration files gained support for a
9685 Flags=, a ReadOnly= and a NoAuto= setting, allowing control of these
9686 GPT partition flags for the created partitions: this is useful for
9687 marking newly created partitions as read-only, or as not being
9688 subject for automatic mounting from creation on.
9689
9690 * The /etc/os-release file has been extended with two new (optional)
9691 variables IMAGE_VERSION= and IMAGE_ID=, carrying identity and version
9692 information for OS images that are updated comprehensively and
9693 atomically as one image. Two new specifiers %M, %A now resolve to
9694 these two fields in the various configuration options that resolve
9695 specifiers.
9696
9697 * portablectl gained a new switch --extension= for enabling portable
9698 service images with extensions that follow the extension image
9699 concept introduced with v248, and thus allows layering multiple
9700 images when setting up the root filesystem of the service.
9701
9702 * systemd-coredump will now extract ELF build-id information from
9703 processes dumping core and include it in the coredump report.
9704 Moreover, it will look for ELF .note.package sections with
9705 distribution packaging meta-information about the crashing process.
9706 This is useful to directly embed the rpm or deb (or any other)
9707 package name and version in ELF files, making it easy to match
9708 coredump reports with the specific package for which the software was
9709 compiled. This is particularly useful on environments with ELF files
9710 from multiple vendors, different distributions and versions, as is
9711 common today in our containerized and sand-boxed world. For further
9712 information, see:
9713
9714 https://systemd.io/COREDUMP_PACKAGE_METADATA
9715
9716 * A new udev hardware database has been added for FireWire devices
9717 (IEEE 1394).
9718
9719 * The "net_id" built-in of udev has been updated with three
9720 backwards-incompatible changes:
9721
9722 - PCI hotplug slot names on s390 systems are now parsed as
9723 hexadecimal numbers. They were incorrectly parsed as decimal
9724 previously, or ignored if the name was not a valid decimal
9725 number.
9726
9727 - PCI onboard indices up to 65535 are allowed. Previously, numbers
9728 above 16383 were rejected. This primarily impacts s390 systems,
9729 where values up to 65535 are used.
9730
9731 - Invalid characters in interface names are replaced with "_".
9732
9733 The new version of the net naming scheme is "v249". The previous
9734 scheme can be selected via the "net.naming_scheme=v247" kernel
9735 command line parameter.
9736
9737 * sd-bus' sd_bus_is_ready() and sd_bus_is_open() calls now accept a
9738 NULL bus object, for which they will return false. Or in other words,
9739 an unallocated bus connection is neither ready nor open.
9740
9741 * The sd-device API acquired a new API function
9742 sd_device_get_usec_initialized() that returns the monotonic time when
9743 the udev device first appeared in the database.
9744
9745 * sd-device gained a new APIs sd_device_trigger_with_uuid() and
9746 sd_device_get_trigger_uuid(). The former is similar to
9747 sd_device_trigger() but returns a randomly generated UUID that is
9748 associated with the synthetic uevent generated by the call. This UUID
9749 may be read from the sd_device object a monitor eventually receives,
9750 via the sd_device_get_trigger_uuid(). This interface requires kernel
9751 4.13 or above to work, and allows tracking a synthetic uevent through
9752 the entire device management stack. The "udevadm trigger --settle"
9753 logic has been updated to make use of this concept if available to
9754 wait precisely for the uevents it generates. "udevadm trigger" also
9755 gained a new parameter --uuid that prints the UUID for each generated
9756 uevent.
9757
9758 * sd-device also gained new APIs sd_device_new_from_ifname() and
9759 sd_device_new_from_ifindex() for allocating an sd-device object for
9760 the specified network interface. The former accepts an interface name
9761 (either a primary or an alternative name), the latter an interface
9762 index.
9763
9764 * The native Journal protocol has been documented. Clients may talk
9765 this as alternative to the classic BSD syslog protocol for locally
9766 delivering log records to the Journal. The protocol has been stable
9767 for a long time and in fact been implemented already in a variety
9768 of alternative client libraries. This documentation makes the support
9769 for that official:
9770
9771 https://systemd.io/JOURNAL_NATIVE_PROTOCOL
9772
9773 * A new BPFProgram= setting has been added to service files. It may be
9774 set to a path to a loaded kernel BPF program, i.e. a path to a bpffs
9775 file, or a bind mount or symlink to one. This may be used to upload
9776 and manage BPF programs externally and then hook arbitrary systemd
9777 services into them.
9778
9779 * The "home.arpa" domain that has been officially declared as the
9780 choice for domain for local home networks per RFC 8375 has been added
9781 to the default NTA list of resolved, since DNSSEC is generally not
9782 available on private domains.
9783
9784 * The CPUAffinity= setting of unit files now resolves "%" specifiers.
9785
9786 * A new ManageForeignRoutingPolicyRules= setting has been added to
9787 .network files which may be used to exclude foreign-created routing
9788 policy rules from systemd-networkd management.
9789
9790 * systemd-network-wait-online gained two new switches -4 and -6 that
9791 may be used to tweak whether to wait for only IPv4 or only IPv6
9792 connectivity.
9793
9794 * .network files gained a new RequiredFamilyForOnline= setting to
9795 fine-tune whether to require an IPv4 or IPv6 address in order to
9796 consider an interface "online".
9797
9798 * networkctl will now show an over-all "online" state in the per-link
9799 information.
9800
9801 * In .network files a new OutgoingInterface= setting has been added to
9802 specify the output interface in bridge FDB setups.
9803
9804 * In .network files the Multipath group ID may now be configured for
9805 [NextHop] entries, via the new Group= setting.
9806
9807 * The DHCP server logic configured in .network files gained a new
9808 setting RelayTarget= that turns the server into a DHCP server relay.
9809 The RelayAgentCircuitId= and RelayAgentRemoteId= settings may be used
9810 to further tweak the DHCP relay behaviour.
9811
9812 * The DHCP server logic also gained a new ServerAddress= setting in
9813 .network files that explicitly specifies the server IP address to
9814 use. If not specified, the address is determined automatically, as
9815 before.
9816
9817 * The DHCP server logic in systemd-networkd gained support for static
9818 DHCP leases, configurable via the [DHCPServerStaticLease]
9819 section. This allows explicitly mapping specific MAC addresses to
9820 fixed IP addresses and vice versa.
9821
9822 * The RestrictAddressFamilies= setting in service files now supports a
9823 new special value "none". If specified sockets of all address
9824 families will be made unavailable to services configured that way.
9825
9826 * systemd-fstab-generator and systemd-repart have been updated to
9827 support booting from disks that carry only a /usr/ partition but no
9828 root partition yet, and where systemd-repart can add it in on the
9829 first boot. This is useful for implementing systems that ship with a
9830 single /usr/ file system, and whose root file system shall be set up
9831 and formatted on a LUKS-encrypted volume whose key is generated
9832 locally (and possibly enrolled in the TPM) during the first boot.
9833
9834 * The [Address] section of .network files now accepts a new
9835 RouteMetric= setting that configures the routing metric to use for
9836 the prefix route created as effect of the address configuration.
9837 Similarly, the [DHCPv6PrefixDelegation] and [IPv6Prefix] sections
9838 gained matching settings for their prefix routes. (The option of the
9839 same name in the [DHCPv6] section is moved to [IPv6AcceptRA], since
9840 it conceptually belongs there; the old option is still understood for
9841 compatibility.)
9842
9843 * The DHCPv6 IAID and DUID are now explicitly configurable in .network
9844 files.
9845
9846 * A new udev property ID_NET_DHCP_BROADCAST on network interface
9847 devices is now honoured by systemd-networkd, controlling whether to
9848 issue DHCP offers via broadcasting. This is used to ensure that s390
9849 layer 3 network interfaces work out-of-the-box with systemd-networkd.
9850
9851 * nss-myhostname and systemd-resolved will now synthesize address
9852 records for a new special hostname "_outbound". The name will always
9853 resolve to the local IP addresses most likely used for outbound
9854 connections towards the default routes. On multi-homed hosts this is
9855 useful to have a stable handle referring to "the" local IP address
9856 that matters most, to the point where this is defined.
9857
9858 * The Discoverable Partition Specification has been updated with a new
9859 GPT partition flag "grow-file-system" defined for its partition
9860 types. Whenever partitions with this flag set are automatically
9861 mounted (i.e. via systemd-gpt-auto-generator or the --image= switch
9862 of systemd-nspawn or other tools; and as opposed to explicit mounting
9863 via /etc/fstab), the file system within the partition is
9864 automatically grown to the full size of the partition. If the file
9865 system size already matches the partition size this flag has no
9866 effect. Previously, this functionality has been available via the
9867 explicit x-systemd.growfs mount option, and this new flag extends
9868 this to automatically discovered mounts. A new GrowFileSystem=
9869 setting has been added to systemd-repart drop-in files that allows
9870 configuring this partition flag. This new flag defaults to on for
9871 partitions automatically created by systemd-repart, except if they
9872 are marked read-only. See the specification for further details:
9873
9874 https://systemd.io/DISCOVERABLE_PARTITIONS
9875
9876 * .network files gained a new setting RoutesToNTP= in the [DHCPv4]
9877 section. If enabled (which is the default), and an NTP server address
9878 is acquired through a DHCP lease on this interface an explicit route
9879 to this address is created on this interface to ensure that NTP
9880 traffic to the NTP server acquired on an interface is also routed
9881 through that interface. The pre-existing RoutesToDNS= setting that
9882 implements the same for DNS servers is now enabled by default.
9883
9884 * A pair of service settings SocketBindAllow= + SocketBindDeny= have
9885 been added that may be used to restrict the network interfaces
9886 sockets created by the service may be bound to. This is implemented
9887 via BPF.
9888
9889 * A new ConditionFirmware= setting has been added to unit files to
9890 conditionalize on certain firmware features. At the moment it may
9891 check whether running on a UEFI system, a device.tree system, or if
9892 the system is compatible with some specified device-tree feature.
9893
9894 * A new ConditionOSRelease= setting has been added to unit files to
9895 check os-release(5) fields. The "=", "!=", "<", "<=", ">=", ">"
9896 operators may be used to check if some field has some specific value
9897 or do an alphanumerical comparison. Equality comparisons are useful
9898 for fields like ID, but relative comparisons for fields like
9899 VERSION_ID or IMAGE_VERSION.
9900
9901 * hostnamed gained a new Describe() D-Bus method that returns a JSON
9902 serialization of the host data it exposes. This is exposed via
9903 "hostnamectl --json=" to acquire a host identity description in JSON.
9904 It's our intention to add a similar features to most services and
9905 objects systemd manages, in order to simplify integration with
9906 program code that can consume JSON.
9907
9908 * Similarly, networkd gained a Describe() method on its Manager and
9909 Link bus objects. This is exposed via "networkctl --json=".
9910
9911 * hostnamectl's various "get-xyz"/"set-xyz" verb pairs
9912 (e.g. "hostnamectl get-hostname", "hostnamectl "set-hostname") have
9913 been replaced by a single "xyz" verb (e.g. "hostnamectl hostname")
9914 that is used both to get the value (when no argument is given), and
9915 to set the value (when an argument is specified). The old names
9916 continue to be supported for compatibility.
9917
9918 * systemd-detect-virt and ConditionVirtualization= are now able to
9919 correctly identify Amazon EC2 environments.
9920
9921 * The LogLevelMax= setting of unit files now applies not only to log
9922 messages generated *by* the service, but also to log messages
9923 generated *about* the service by PID 1. To suppress logs concerning a
9924 specific service comprehensively, set this option to a high log
9925 level.
9926
9927 * bootctl gained support for a new --make-machine-id-directory= switch
9928 that allows precise control on whether to create the top-level
9929 per-machine directory in the boot partition that typically contains
9930 Type 1 boot loader entries.
9931
9932 * During build SBAT data to include in the systemd-boot EFI PE binaries
9933 may be specified now.
9934
9935 * /etc/crypttab learnt a new option "headless". If specified any
9936 requests to query the user interactively for passwords or PINs will
9937 be skipped. This is useful on systems that are headless, i.e. where
9938 an interactive user is generally not present.
9939
9940 * /etc/crypttab also learnt a new option "password-echo=" that allows
9941 configuring whether the encryption password prompt shall echo the
9942 typed password and if so, do so literally or via asterisks. (The
9943 default is the same behaviour as before: provide echo feedback via
9944 asterisks.)
9945
9946 * FIDO2 support in systemd-cryptenroll/systemd-cryptsetup and
9947 systemd-homed has been updated to allow explicit configuration of the
9948 "user presence" and "user verification" checks, as well as whether a
9949 PIN is required for authentication, via the new switches
9950 --fido2-with-user-presence=, --fido2-with-user-verification=,
9951 --fido2-with-client-pin= to systemd-cryptenroll and homectl. Which
9952 features are available, and may be enabled or disabled depends on the
9953 used FIDO2 token.
9954
9955 * systemd-nspawn's --private-user= switch now accepts the special value
9956 "identity" which configures a user namespacing environment with an
9957 identity mapping of 65535 UIDs. This means the container UID 0 is
9958 mapped to the host UID 0, and the UID 1 to host UID 1. On first look
9959 this doesn't appear to be useful, however it does reduce the attack
9960 surface a bit, since the resulting container will possess process
9961 capabilities only within its namespace and not on the host.
9962
9963 * systemd-nspawn's --private-user-chown switch has been replaced by a
9964 more generic --private-user-ownership= switch that accepts one of
9965 three values: "chown" is equivalent to the old --private-user-chown,
9966 and "off" is equivalent to the absence of the old switch. The value
9967 "map" uses the new UID mapping mounts of Linux 5.12 to map ownership
9968 of files and directories of the underlying image to the chosen UID
9969 range for the container. "auto" is equivalent to "map" if UID mapping
9970 mount are supported, otherwise it is equivalent to "chown". The short
9971 -U switch systemd-nspawn now implies --private-user-ownership=auto
9972 instead of the old --private-user-chown. Effectively this means: if
9973 the backing file system supports UID mapping mounts the feature is
9974 now used by default if -U is used. Generally, it's a good idea to use
9975 UID mapping mounts instead of recursive chown()ing, since it allows
9976 running containers off immutable images (since no modifications of
9977 the images need to take place), and share images between multiple
9978 instances. Moreover, the recursive chown()ing operation is slow and
9979 can be avoided. Conceptually it's also a good thing if transient UID
9980 range uses do not leak into persistent file ownership anymore. TLDR:
9981 finally, the last major drawback of user namespacing has been
9982 removed, and -U should always be used (unless you use btrfs, where
9983 UID mapped mounts do not exist; or your container actually needs
9984 privileges on the host).
9985
9986 * nss-systemd now synthesizes user and group shadow records in addition
9987 to the main user and group records. Thus, hashed passwords managed by
9988 systemd-homed are now accessible via the shadow database.
9989
9990 * The userdb logic (and thus nss-systemd, and so on) now read
9991 additional user/group definitions in JSON format from the drop-in
9992 directories /etc/userdb/, /run/userdb/, /run/host/userdb/ and
9993 /usr/lib/userdb/. This is a simple and powerful mechanism for making
9994 additional users available to the system, with full integration into
9995 NSS including the shadow databases. Since the full JSON user/group
9996 record format is supported this may also be used to define users with
9997 resource management settings and other runtime settings that
9998 pam_systemd and systemd-logind enforce at login.
9999
10000 * The userdbctl tool gained two new switches --with-dropin= and
10001 --with-varlink= which can be used to fine-tune the sources used for
10002 user database lookups.
10003
10004 * systemd-nspawn gained a new switch --bind-user= for binding a host
10005 user account into the container. This does three things: the user's
10006 home directory is bind mounted from the host into the container,
10007 below the /run/userdb/home/ hierarchy. A free UID is picked in the
10008 container, and a user namespacing UID mapping to the host user's UID
10009 installed. And finally, a minimal JSON user and group record (along
10010 with its hashed password) is dropped into /run/host/userdb/. These
10011 records are picked up automatically by the userdb drop-in logic
10012 describe above, and allow the user to login with the same password as
10013 on the host. Effectively this means: if host and container run new
10014 enough systemd versions making a host user available to the container
10015 is trivially simple.
10016
10017 * systemd-journal-gatewayd now supports the switches --user, --system,
10018 --merge, --file= that are equivalent to the same switches of
10019 journalctl, and permit exposing only the specified subset of the
10020 Journal records.
10021
10022 * The OnFailure= dependency between units is now augmented with a
10023 implicit reverse dependency OnFailureOf= (this new dependency cannot
10024 be configured directly it's only created as effect of an OnFailure=
10025 dependency in the reverse order — it's visible in "systemctl show"
10026 however). Similar, Slice= now has an reverse dependency SliceOf=,
10027 that is also not configurable directly, but useful to determine all
10028 units that are members of a slice.
10029
10030 * A pair of new dependency types between units PropagatesStopTo= +
10031 StopPropagatedFrom= has been added, that allows propagation of unit
10032 stop events between two units. It operates similar to the existing
10033 PropagatesReloadTo= + ReloadPropagatedFrom= dependencies.
10034
10035 * A new dependency type OnSuccess= has been added (plus the reverse
10036 dependency OnSuccessOf=, which cannot be configured directly, but
10037 exists only as effect of the reverse OnSuccess=). It is similar to
10038 OnFailure=, but triggers in the opposite case: when a service exits
10039 cleanly. This allows "chaining up" of services where one or more
10040 services are started once another service has successfully completed.
10041
10042 * A new dependency type Upholds= has been added (plus the reverse
10043 dependency UpheldBy=, which cannot be configured directly, but exists
10044 only as effect of Upholds=). This dependency type is a stronger form
10045 of Wants=: if a unit has an UpHolds= dependency on some other unit
10046 and the former is active then the latter is started whenever it is
10047 found inactive (and no job is queued for it). This is an alternative
10048 to Restart= inside service units, but less configurable, and the
10049 request to uphold a unit is not encoded in the unit itself but in
10050 another unit that intends to uphold it.
10051
10052 * The systemd-ask-password tool now also supports reading passwords
10053 from the credentials subsystem, via the new --credential= switch.
10054
10055 * The systemd-ask-password tool learnt a new switch --emoji= which may
10056 be used to explicit control whether the lock and key emoji (🔐) is
10057 shown in the password prompt on suitable TTYs.
10058
10059 * The --echo switch of systemd-ask-password now optionally takes a
10060 parameter that controls character echo. It may either show asterisks
10061 (default, as before), turn echo off entirely, or echo the typed
10062 characters literally.
10063
10064 * The systemd-ask-password tool also gained a new -n switch for
10065 suppressing output of a trailing newline character when writing the
10066 acquired password to standard output, similar to /bin/echo's -n
10067 switch.
10068
10069 * New documentation has been added that describes the organization of
10070 the systemd source code tree:
10071
10072 https://systemd.io/ARCHITECTURE
10073
10074 * Units using ConditionNeedsUpdate= will no longer be activated in
10075 the initrd.
10076
10077 * It is now possible to list a template unit in the WantedBy= or
10078 RequiredBy= settings of the [Install] section of another template
10079 unit, which will be instantiated using the same instance name.
10080
10081 * A new MemoryAvailable property is available for units. If the unit,
10082 or the slices it is part of, have a memory limit set via MemoryMax=/
10083 MemoryHigh=, MemoryAvailable will indicate how much more memory the
10084 unit can claim before hitting the limits.
10085
10086 * systemd-coredump will now try to stay below the cgroup memory limit
10087 placed on itself or one of the slices it runs under, if the storage
10088 area for core files (/var/lib/systemd/coredump/) is placed on a tmpfs,
10089 since files written on such filesystems count toward the cgroup memory
10090 limit. If there is not enough available memory in such cases to store
10091 the core file uncompressed, systemd-coredump will skip to compressed
10092 storage directly (if enabled) and it will avoid analyzing the core file
10093 to print backtrace and metadata in the journal.
10094
10095 * tmpfiles.d/ drop-ins gained a new '=' modifier to check if the type
10096 of a path matches the configured expectations, and remove it if not.
10097
10098 * tmpfiles.d/'s 'Age' now accepts an 'age-by' argument, which allows to
10099 specify which of the several available filesystem timestamps (access
10100 time, birth time, change time, modification time) to look at when
10101 deciding whether a path has aged enough to be cleaned.
10102
10103 * A new IPv6StableSecretAddress= setting has been added to .network
10104 files, which takes an IPv6 address to use as secret for IPv6 address
10105 generation.
10106
10107 * The [DHCPServer] logic in .network files gained support for a new
10108 UplinkInterface= setting that permits configuration of the uplink
10109 interface name to propagate DHCP lease information from.
10110
10111 * The WakeOnLan= setting in .link files now accepts a list of flags
10112 instead of a single one, to configure multiple wake-on-LAN policies.
10113
10114 * User-space defined tracepoints (USDT) have been added to udev at
10115 strategic locations. This is useful for tracing udev behaviour and
10116 performance with bpftrace and similar tools.
10117
10118 * systemd-journald-upload gained a new NetworkTimeoutSec= option for
10119 setting a network timeout time.
10120
10121 * If a system service is running in a new mount namespace (RootDirectory=
10122 and friends), all file systems will be mounted with MS_NOSUID by
10123 default, unless the system is running with SELinux enabled.
10124
10125 * When enumerating time zones the timedatectl tool will now consult the
10126 'tzdata.zi' file shipped by the IANA time zone database package, in
10127 addition to 'zone1970.tab', as before. This makes sure time zone
10128 aliases are now correctly supported. Some distributions so far did
10129 not install this additional file, most do however. If you
10130 distribution does not install it yet, it might make sense to change
10131 that.
10132
10133 * Intel HID rfkill event is no longer masked, since it's the only
10134 source of rfkill event on newer HP laptops. To have both backward and
10135 forward compatibility, userspace daemon needs to debounce duplicated
10136 events in a short time window.
10137
10138 Contributions from: Aakash Singh, adrian5, Albert Brox,
10139 Alexander Sverdlin, Alexander Tsoy, Alexey Rubtsov, alexlzhu,
10140 Allen Webb, Alvin Šipraga, Alyssa Ross, Anders Wenhaug,
10141 Andrea Pappacoda, Anita Zhang, asavah, Balint Reczey, Bertrand Jacquin,
10142 borna-blazevic, caoxia2008cxx, Carlo Teubner, Christian Göttsche,
10143 Christian Hesse, Daniel Schaefer, Dan Streetman,
10144 David Santamaría Rogado, David Tardon, Deepak Rawat, dgcampea,
10145 Dimitri John Ledkov, ei-ke, Emilio Herrera, Emil Renner Berthing,
10146 Eric Cook, Flos Lonicerae, Franck Bui, Francois Gervais,
10147 Frantisek Sumsal, Gibeom Gwon, gitm0, Hamish Moffatt, Hans de Goede,
10148 Harsh Barsaiyan, Henri Chain, Hristo Venev, Icenowy Zheng, Igor Zhbanov,
10149 imayoda, Jakub Warczarek, James Buren, Jan Janssen, Jan Macku,
10150 Jan Synacek, Jason Francis, Jayanth Ananthapadmanaban, Jeremy Szu,
10151 Jérôme Carretero, Jesse Stricker, jiangchuangang, Joerg Behrmann,
10152 Jóhann B. Guðmundsson, Jörg Deckert, Jörg Thalheim, Juergen Hoetzel,
10153 Julia Kartseva, Kai-Heng Feng, Khem Raj, KoyamaSohei, laineantti,
10154 Lennart Poettering, LetzteInstanz, Luca Adrian L, Luca Boccassi,
10155 Lucas Magasweran, Mantas Mikulėnas, Marco Antonio Mauro, Mark Wielaard,
10156 Masahiro Matsuya, Matt Johnston, Michael Catanzaro, Michal Koutný,
10157 Michal Sekletár, Mike Crowe, Mike Kazantsev, Milan, milaq,
10158 Miroslav Suchý, Morten Linderud, nerdopolis, nl6720, Noah Meyerhans,
10159 Oleg Popov, Olle Lundberg, Ondrej Kozina, Paweł Marciniak, Perry.Yuan,
10160 Peter Hutterer, Peter Kjellerstedt, Peter Morrow, Phaedrus Leeds,
10161 plattrap, qhill, Raul Tambre, Roman Beranek, Roshan Shariff,
10162 Ryan Hendrickson, Samuel BF, scootergrisen, Sebastian Blunt,
10163 Seong-ho Cho, Sergey Bugaev, Sevan Janiyan, Sibo Dong, simmon,
10164 Simon Watts, Srinidhi Kaushik, Štěpán Němec, Steve Bonds, Susant Sahani,
10165 sverdlin, syyhao1994, Takashi Sakamoto, Topi Miettinen, tramsay,
10166 Trent Piepho, Uwe Kleine-König, Viktor Mihajlovski, Vincent Dechenaux,
10167 Vito Caputo, William A. Kennington III, Yangyang Shen, Yegor Alexeyev,
10168 Yi Gao, Yu Watanabe, Zbigniew Jędrzejewski-Szmek, zsien, наб
10169
10170 — Edinburgh, 2021-07-07
10171
10172 CHANGES WITH 248:
10173
10174 * A concept of system extension images is introduced. Such images may
10175 be used to extend the /usr/ and /opt/ directory hierarchies at
10176 runtime with additional files (even if the file system is read-only).
10177 When a system extension image is activated, its /usr/ and /opt/
10178 hierarchies and os-release information are combined via overlayfs
10179 with the file system hierarchy of the host OS.
10180
10181 A new systemd-sysext tool can be used to merge, unmerge, list, and
10182 refresh system extension hierarchies. See
10183 https://www.freedesktop.org/software/systemd/man/systemd-sysext.html.
10184
10185 The systemd-sysext.service automatically merges installed system
10186 extensions during boot (before basic.target, but not in very early
10187 boot, since various file systems have to be mounted first).
10188
10189 The SYSEXT_LEVEL= field in os-release(5) may be used to specify the
10190 supported system extension level.
10191
10192 * A new ExtensionImages= unit setting can be used to apply the same
10193 system extension image concept from systemd-sysext to the namespaced
10194 file hierarchy of specific services, following the same rules and
10195 constraints.
10196
10197 * Support for a new special "root=tmpfs" kernel command-line option has
10198 been added. When specified, a tmpfs is mounted on /, and mount.usr=
10199 should be used to point to the operating system implementation.
10200
10201 * A new configuration file /etc/veritytab may be used to configure
10202 dm-verity integrity protection for block devices. Each line is in the
10203 format "volume-name data-device hash-device roothash options",
10204 similar to /etc/crypttab.
10205
10206 * A new kernel command-line option systemd.verity.root_options= may be
10207 used to configure dm-verity behaviour for the root device.
10208
10209 * The key file specified in /etc/crypttab (the third field) may now
10210 refer to an AF_UNIX/SOCK_STREAM socket in the file system. The key is
10211 acquired by connecting to that socket and reading from it. This
10212 allows the implementation of a service to provide key information
10213 dynamically, at the moment when it is needed.
10214
10215 * When the hostname is set explicitly to "localhost", systemd-hostnamed
10216 will respect this. Previously such a setting would be mostly silently
10217 ignored. The goal is to honour configuration as specified by the
10218 user.
10219
10220 * The fallback hostname that will be used by the system manager and
10221 systemd-hostnamed can now be configured in two new ways: by setting
10222 DEFAULT_HOSTNAME= in os-release(5), or by setting
10223 $SYSTEMD_DEFAULT_HOSTNAME in the environment block. As before, it can
10224 also be configured during compilation. The environment variable is
10225 intended for testing and local overrides, the os-release(5) field is
10226 intended to allow customization by different variants of a
10227 distribution that share the same compiled packages.
10228
10229 * The environment block of the manager itself may be configured through
10230 a new ManagerEnvironment= setting in system.conf or user.conf. This
10231 complements existing ways to set the environment block (the kernel
10232 command line for the system manager, the inherited environment and
10233 [email protected] unit file settings for the user manager).
10234
10235 * systemd-hostnamed now exports the default hostname and the source of
10236 the configured hostname ("static", "transient", or "default") as
10237 D-Bus properties.
10238
10239 * systemd-hostnamed now exports the "HardwareVendor" and
10240 "HardwareModel" D-Bus properties, which are supposed to contain a
10241 pair of cleaned up, human-readable strings describing the system's
10242 vendor and model. It's typically sourced from the firmware's DMI
10243 tables, but may be augmented from a new hwdb database. hostnamectl
10244 shows this in the status output.
10245
10246 * Support has been added to systemd-cryptsetup for extracting the
10247 PKCS#11 token URI and encrypted key from the LUKS2 JSON embedded
10248 metadata header. This allows the information how to open the
10249 encrypted device to be embedded directly in the device and obviates
10250 the need for configuration in an external file.
10251
10252 * systemd-cryptsetup gained support for unlocking LUKS2 volumes using
10253 TPM2 hardware, as well as FIDO2 security tokens (in addition to the
10254 pre-existing support for PKCS#11 security tokens).
10255
10256 * systemd-repart may enroll encrypted partitions using TPM2
10257 hardware. This may be useful for example to create an encrypted /var
10258 partition bound to the machine on first boot.
10259
10260 * A new systemd-cryptenroll tool has been added to enroll TPM2, FIDO2
10261 and PKCS#11 security tokens to LUKS volumes, list and destroy
10262 them. See:
10263
10264 https://0pointer.net/blog/unlocking-luks2-volumes-with-tpm2-fido2-pkcs11-security-hardware-on-systemd-248.html
10265
10266 It also supports enrolling "recovery keys" and regular passphrases.
10267
10268 * The libfido2 dependency is now based on dlopen(), so that the library
10269 is used at runtime when installed, but is not a hard runtime
10270 dependency.
10271
10272 * systemd-cryptsetup gained support for two new options in
10273 /etc/crypttab: "no-write-workqueue" and "no-read-workqueue" which
10274 request synchronous processing of encryption/decryption IO.
10275
10276 * The manager may be configured at compile time to use the fexecve()
10277 instead of the execve() system call when spawning processes. Using
10278 fexecve() closes a window between checking the security context of an
10279 executable and spawning it, but unfortunately the kernel displays
10280 stale information in the process' "comm" field, which impacts ps
10281 output and such.
10282
10283 * The configuration option -Dcompat-gateway-hostname has been dropped.
10284 "_gateway" is now the only supported name.
10285
10286 * The ConditionSecurity=tpm2 unit file setting may be used to check if
10287 the system has at least one TPM2 (tpmrm class) device.
10288
10289 * A new ConditionCPUFeature= has been added that may be used to
10290 conditionalize units based on CPU features. For example,
10291 ConditionCPUFeature=rdrand will condition a unit so that it is only
10292 run when the system CPU supports the RDRAND opcode.
10293
10294 * The existing ConditionControlGroupController= setting has been
10295 extended with two new values "v1" and "v2". "v2" means that the
10296 unified v2 cgroup hierarchy is used, and "v1" means that legacy v1
10297 hierarchy or the hybrid hierarchy are used.
10298
10299 * A new PrivateIPC= setting on a unit file allows executed processes to
10300 be moved into a private IPC namespace, with separate System V IPC
10301 identifiers and POSIX message queues.
10302
10303 A new IPCNamespacePath= allows the unit to be joined to an existing
10304 IPC namespace.
10305
10306 * The tables of system calls in seccomp filters are now automatically
10307 generated from kernel lists exported on
10308 https://fedora.juszkiewicz.com.pl/syscalls.html.
10309
10310 The following architectures should now have complete lists:
10311 alpha, arc, arm64, arm, i386, ia64, m68k, mips64n32, mips64, mipso32,
10312 powerpc, powerpc64, s390, s390x, tilegx, sparc, x86_64, x32.
10313
10314 * The MountAPIVFS= service file setting now additionally mounts a tmpfs
10315 on /run/ if it is not already a mount point. A writable /run/ has
10316 always been a requirement for a functioning system, but this was not
10317 guaranteed when using a read-only image.
10318
10319 Users can always specify BindPaths= or InaccessiblePaths= as
10320 overrides, and they will take precedence. If the host's root mount
10321 point is used, there is no change in behaviour.
10322
10323 * New bind mounts and file system image mounts may be injected into the
10324 mount namespace of a service (without restarting it). This is exposed
10325 respectively as 'systemctl bind <unit> <path>…' and
10326 'systemctl mount-image <unit> <image>…'.
10327
10328 * The StandardOutput= and StandardError= settings can now specify files
10329 to be truncated for output (as "truncate:<path>").
10330
10331 * The ExecPaths= and NoExecPaths= settings may be used to specify
10332 noexec for parts of the file system.
10333
10334 * sd-bus has a new function sd_bus_open_user_machine() to open a
10335 connection to the session bus of a specific user in a local container
10336 or on the local host. This is exposed in the existing -M switch to
10337 systemctl and similar tools:
10338
10339 systemctl --user -M lennart@foobar start foo
10340
10341 This will connect to the user bus of a user "lennart" in container
10342 "foobar". If no container name is specified, the specified user on
10343 the host itself is connected to
10344
10345 systemctl --user -M lennart@ start quux
10346
10347 * sd-bus also gained a convenience function sd_bus_message_send() to
10348 simplify invocations of sd_bus_send(), taking only a single
10349 parameter: the message to send.
10350
10351 * sd-event allows rate limits to be set on event sources, for dealing
10352 with high-priority event sources that might starve out others. See
10353 the new man page sd_event_source_set_ratelimit(3) for details.
10354
10355 * systemd.link files gained a [Link] Promiscuous= switch, which allows
10356 the device to be raised in promiscuous mode.
10357
10358 New [Link] TransmitQueues= and ReceiveQueues= settings allow the
10359 number of TX and RX queues to be configured.
10360
10361 New [Link] TransmitQueueLength= setting allows the size of the TX
10362 queue to be configured.
10363
10364 New [Link] GenericSegmentOffloadMaxBytes= and
10365 GenericSegmentOffloadMaxSegments= allow capping the packet size and
10366 the number of segments accepted in Generic Segment Offload.
10367
10368 * systemd-networkd gained support for the "B.A.T.M.A.N. advanced"
10369 wireless routing protocol that operates on ISO/OSI Layer 2 only and
10370 uses ethernet frames to route/bridge packets. This encompasses a new
10371 "batadv" netdev Type=, a new [BatmanAdvanced] section with a bunch of
10372 new settings in .netdev files, and a new BatmanAdvanced= setting in
10373 .network files.
10374
10375 * systemd.network files gained a [Network] RouteTable= configuration
10376 switch to select the routing policy table.
10377
10378 systemd.network files gained a [RoutingPolicyRule] Type=
10379 configuration switch (one of "blackhole, "unreachable", "prohibit").
10380
10381 systemd.network files gained a [IPv6AcceptRA] RouteDenyList= and
10382 RouteAllowList= settings to ignore/accept route advertisements from
10383 routers matching specified prefixes. The DenyList= setting has been
10384 renamed to PrefixDenyList= and a new PrefixAllowList= option has been
10385 added.
10386
10387 systemd.network files gained a [DHCPv6] UseAddress= setting to
10388 optionally ignore the address provided in the lease.
10389
10390 systemd.network files gained a [DHCPv6PrefixDelegation]
10391 ManageTemporaryAddress= switch.
10392
10393 systemd.network files gained a new ActivationPolicy= setting which
10394 allows configuring how the UP state of an interface shall be managed,
10395 i.e. whether the interface is always upped, always downed, or may be
10396 upped/downed by the user using "ip link set dev".
10397
10398 * The default for the Broadcast= setting in .network files has slightly
10399 changed: the broadcast address will not be configured for wireguard
10400 devices.
10401
10402 * systemd.netdev files gained a [VLAN] Protocol=, IngressQOSMaps=,
10403 EgressQOSMaps=, and [MACVLAN] BroadcastMulticastQueueLength=
10404 configuration options for VLAN packet handling.
10405
10406 * udev rules may now set log_level= option. This allows debug logs to
10407 be enabled for select events, e.g. just for a specific subsystem or
10408 even a single device.
10409
10410 * udev now exports the VOLUME_ID, LOGICAL_VOLUME_ID, VOLUME_SET_ID, and
10411 DATA_PREPARED_ID properties for block devices with ISO9660 file
10412 systems.
10413
10414 * udev now exports decoded DMI information about installed memory slots
10415 as device properties under the /sys/class/dmi/id/ pseudo device.
10416
10417 * /dev/ is not mounted noexec anymore. This didn't provide any
10418 significant security benefits and would conflict with the executable
10419 mappings used with /dev/sgx device nodes. The previous behaviour can
10420 be restored for individual services with NoExecPaths=/dev (or by allow-
10421 listing and excluding /dev from ExecPaths=).
10422
10423 * Permissions for /dev/vsock are now set to 0o666, and /dev/vhost-vsock
10424 and /dev/vhost-net are owned by the kvm group.
10425
10426 * The hardware database has been extended with a list of fingerprint
10427 readers that correctly support USB auto-suspend using data from
10428 libfprint.
10429
10430 * systemd-resolved can now answer DNSSEC questions through the stub
10431 resolver interface in a way that allows local clients to do DNSSEC
10432 validation themselves. For a question with DO+CD set, it'll proxy the
10433 DNS query and respond with a mostly unmodified packet received from
10434 the upstream server.
10435
10436 * systemd-resolved learnt a new boolean option CacheFromLocalhost= in
10437 resolved.conf. If true the service will provide caching even for DNS
10438 lookups made to an upstream DNS server on the 127.0.0.1/::1
10439 addresses. By default (and when the option is false) systemd-resolved
10440 will not cache such lookups, in order to avoid duplicate local
10441 caching, under the assumption the local upstream server caches
10442 anyway.
10443
10444 * systemd-resolved now implements RFC5001 NSID in its local DNS
10445 stub. This may be used by local clients to determine whether they are
10446 talking to the DNS resolver stub or a different DNS server.
10447
10448 * When resolving host names and other records resolvectl will now
10449 report where the data was acquired from (i.e. the local cache, the
10450 network, locally synthesized, …) and whether the network traffic it
10451 affected was encrypted or not. Moreover the tool acquired a number of
10452 new options --cache=, --synthesize=, --network=, --zone=,
10453 --trust-anchor=, --validate= that take booleans and may be used to
10454 tweak a lookup, i.e. whether it may be answered from cached
10455 information, locally synthesized information, information acquired
10456 through the network, the local mDNS/LLMNR zone, the DNSSEC trust
10457 anchor, and whether DNSSEC validation shall be executed for the
10458 lookup.
10459
10460 * systemd-nspawn gained a new --ambient-capability= setting
10461 (AmbientCapability= in .nspawn files) to configure ambient
10462 capabilities passed to the container payload.
10463
10464 * systemd-nspawn gained the ability to configure the firewall using the
10465 nftables subsystem (in addition to the existing iptables support).
10466 Similarly, systemd-networkd's IPMasquerade= option now supports
10467 nftables as back-end, too. In both cases NAT on IPv6 is now supported
10468 too, in addition to IPv4 (the iptables back-end still is IPv4-only).
10469
10470 "IPMasquerade=yes", which was the same as "IPMasquerade=ipv4" before,
10471 retains its meaning, but has been deprecated. Please switch to either
10472 "ivp4" or "both" (if covering IPv6 is desired).
10473
10474 * systemd-importd will now download .verity and .roothash.p7s files
10475 along with the machine image (as exposed via machinectl pull-raw).
10476
10477 * systemd-oomd now gained a new DefaultMemoryPressureDurationSec=
10478 setting to configure the time a unit's cgroup needs to exceed memory
10479 pressure limits before action will be taken, and a new
10480 ManagedOOMPreference=none|avoid|omit setting to avoid killing certain
10481 units.
10482
10483 systemd-oomd is now considered fully supported (the usual
10484 backwards-compatibility promises apply). Swap is not required for
10485 operation, but it is still recommended.
10486
10487 * systemd-timesyncd gained a new ConnectionRetrySec= setting which
10488 configures the retry delay when trying to contact servers.
10489
10490 * systemd-stdio-bridge gained --system/--user options to connect to the
10491 system bus (previous default) or the user session bus.
10492
10493 * systemd-localed may now call locale-gen to generate missing locales
10494 on-demand (UTF-8-only). This improves integration with Debian-based
10495 distributions (Debian/Ubuntu/PureOS/Tanglu/...) and Arch Linux.
10496
10497 * systemctl --check-inhibitors=true may now be used to obey inhibitors
10498 even when invoked non-interactively. The old --ignore-inhibitors
10499 switch is now deprecated and replaced by --check-inhibitors=false.
10500
10501 * systemctl import-environment will now emit a warning when called
10502 without any arguments (i.e. to import the full environment block of
10503 the called program). This command will usually be invoked from a
10504 shell, which means that it'll inherit a bunch of variables which are
10505 specific to that shell, and usually to the TTY the shell is connected
10506 to, and don't have any meaning in the global context of the system or
10507 user service manager. Instead, only specific variables should be
10508 imported into the manager environment block.
10509
10510 Similarly, programs which update the manager environment block by
10511 directly calling the D-Bus API of the manager, should also push
10512 specific variables, and not the full inherited environment.
10513
10514 * systemctl's status output now shows unit state with a more careful
10515 choice of Unicode characters: units in maintenance show a "○" symbol
10516 instead of the usual "●", failed units show "×", and services being
10517 reloaded "↻".
10518
10519 * coredumpctl gained a --debugger-arguments= switch to pass arguments
10520 to the debugger. It also gained support for showing coredump info in
10521 a simple JSON format.
10522
10523 * systemctl/loginctl/machinectl's --signal= option now accept a special
10524 value "list", which may be used to show a brief table with known
10525 process signals and their numbers.
10526
10527 * networkctl now shows the link activation policy in status.
10528
10529 * Various tools gained --pager/--no-pager/--json= switches to
10530 enable/disable the pager and provide JSON output.
10531
10532 * Various tools now accept two new values for the SYSTEMD_COLORS
10533 environment variable: "16" and "256", to configure how many terminal
10534 colors are used in output.
10535
10536 * less 568 or newer is now required for the auto-paging logic of the
10537 various tools. Hyperlink ANSI sequences in terminal output are now
10538 used even if a pager is used, and older versions of less are not able
10539 to display these sequences correctly. SYSTEMD_URLIFY=0 may be used to
10540 disable this output again.
10541
10542 * Builds with support for separate / and /usr/ hierarchies ("split-usr"
10543 builds, non-merged-usr builds) are now officially deprecated. A
10544 warning is emitted during build. Support is slated to be removed in
10545 about a year (when the Debian Bookworm release development starts).
10546
10547 * Systems with the legacy cgroup v1 hierarchy are now marked as
10548 "tainted", to make it clearer that using the legacy hierarchy is not
10549 recommended.
10550
10551 * systemd-localed will now refuse to configure a keymap which is not
10552 installed in the file system. This is intended as a bug fix, but
10553 could break cases where systemd-localed was used to configure the
10554 keymap in advanced of it being installed. It is necessary to install
10555 the keymap file first.
10556
10557 * The main git development branch has been renamed to 'main'.
10558
10559 * mmcblk[0-9]boot[0-9] devices will no longer be probed automatically
10560 for partitions, as in the vast majority of cases they contain none
10561 and are used internally by the bootloader (eg: uboot).
10562
10563 * systemd will now set the $SYSTEMD_EXEC_PID environment variable for
10564 spawned processes to the PID of the process itself. This may be used
10565 by programs for detecting whether they were forked off by the service
10566 manager itself or are a process forked off further down the tree.
10567
10568 * The sd-device API gained four new calls: sd_device_get_action() to
10569 determine the uevent add/remove/change/… action the device object has
10570 been seen for, sd_device_get_seqno() to determine the uevent sequence
10571 number, sd_device_new_from_stat_rdev() to allocate a new sd_device
10572 object from stat(2) data of a device node, and sd_device_trigger() to
10573 write to the 'uevent' attribute of a device.
10574
10575 * For most tools the --no-legend= switch has been replaced by
10576 --legend=no and --legend=yes, to force whether tables are shown with
10577 headers/legends.
10578
10579 * Units acquired a new property "Markers" that takes a list of zero,
10580 one or two of the following strings: "needs-reload" and
10581 "needs-restart". These markers may be set via "systemctl
10582 set-property". Once a marker is set, "systemctl reload-or-restart
10583 --marked" may be invoked to execute the operation the units are
10584 marked for. This is useful for package managers that want to mark
10585 units for restart/reload while updating, but affect the actual
10586 operations at a later step at once.
10587
10588 * The sd_bus_message_read_strv() API call of sd-bus may now also be
10589 used to parse arrays of D-Bus signatures and D-Bus paths, in addition
10590 to regular strings.
10591
10592 * bootctl will now report whether the UEFI firmware used a TPM2 device
10593 and measured the boot process into it.
10594
10595 * systemd-tmpfiles learnt support for a new environment variable
10596 $SYSTEMD_TMPFILES_FORCE_SUBVOL which takes a boolean value. If true
10597 the v/q/Q lines in tmpfiles.d/ snippets will create btrfs subvolumes
10598 even if the root fs of the system is not itself a btrfs volume.
10599
10600 * systemd-detect-virt/ConditionVirtualization= will now explicitly
10601 detect Docker/Podman environments where possible. Moreover, they
10602 should be able to generically detect any container manager as long as
10603 it assigns the container a cgroup.
10604
10605 * portablectl gained a new "reattach" verb for detaching/reattaching a
10606 portable service image, useful for updating images on-the-fly.
10607
10608 * Intel SGX enclave device nodes (which expose a security feature of
10609 newer Intel CPUs) will now be owned by a new system group "sgx".
10610
10611 Contributions from: Adam Nielsen, Adrian Vovk, AJ Jordan, Alan Perry,
10612 Alastair Pharo, Alexander Batischev, Ali Abdallah, Andrew Balmos,
10613 Anita Zhang, Annika Wickert, Ansgar Burchardt, Antonio Terceiro,
10614 Antonius Frie, Ardy, Arian van Putten, Ariel Fermani, Arnaud T,
10615 A S Alam, Bastien Nocera, Benjamin Berg, Benjamin Robin, Björn Daase,
10616 caoxia, Carlo Wood, Charles Lee, ChopperRob, chri2, Christian Ehrhardt,
10617 Christian Hesse, Christopher Obbard, clayton craft, corvusnix, cprn,
10618 Daan De Meyer, Daniele Medri, Daniel Rusek, Dan Sanders, Dan Streetman,
10619 Darren Ng, David Edmundson, David Tardon, Deepak Rawat, Devon Pringle,
10620 Dmitry Borodaenko, dropsignal, Einsler Lee, Endre Szabo,
10621 Evgeny Vereshchagin, Fabian Affolter, Fangrui Song, Felipe Borges,
10622 feliperodriguesfr, Felix Stupp, Florian Hülsmann, Florian Klink,
10623 Florian Westphal, Franck Bui, Frantisek Sumsal, Gablegritule,
10624 Gaël PORTAY, Gaurav, Giedrius Statkevičius, Greg Depoire-Ferrer,
10625 Gustavo Costa, Hans de Goede, Hela Basa, heretoenhance, hide,
10626 Iago López Galeiras, igo95862, Ilya Dmitrichenko, Jameer Pathan,
10627 Jan Tojnar, Jiehong, Jinyuan Si, Joerg Behrmann, John Slade,
10628 Jonathan G. Underwood, Jonathan McDowell, Josh Triplett, Joshua Watt,
10629 Julia Cartwright, Julien Humbert, Kairui Song, Karel Zak,
10630 Kevin Backhouse, Kevin P. Fleming, Khem Raj, Konomi, krissgjeng,
10631 l4gfcm, Lajos Veres, Lennart Poettering, Lincoln Ramsay, Luca Boccassi,
10632 Luca BRUNO, Lucas Werkmeister, Luka Kudra, Luna Jernberg,
10633 Marc-André Lureau, Martin Wilck, Matthias Klumpp, Matt Turner,
10634 Michael Gisbers, Michael Marley, Michael Trapp, Michal Fabik,
10635 Michał Kopeć, Michal Koutný, Michal Sekletár, Michele Guerini Rocco,
10636 Mike Gilbert, milovlad, moson-mo, Nick, nihilix-melix, Oğuz Ersen,
10637 Ondrej Mosnacek, pali, Pavel Hrdina, Pavel Sapezhko, Perry Yuan,
10638 Peter Hutterer, Pierre Dubouilh, Piotr Drąg, Pjotr Vertaalt,
10639 Richard Laager, RussianNeuroMancer, Sam Lunt, Sebastiaan van Stijn,
10640 Sergey Bugaev, shenyangyang4, simmon, Simonas Kazlauskas,
10641 Slimane Selyan Amiri, Stefan Agner, Steve Ramage, Susant Sahani,
10642 Sven Mueller, Tad Fisher, Takashi Iwai, Thomas Haller, Tom Shield,
10643 Topi Miettinen, Torsten Hilbrich, tpgxyz, Tyler Hicks, ulf-f,
10644 Ulrich Ölmann, Vincent Pelletier, Vinnie Magro, Vito Caputo, Vlad,
10645 walbit-de, Whired Planck, wouter bolsterlee, Xℹ Ruoyao, Yangyang Shen,
10646 Yuri Chornoivan, Yu Watanabe, Zach Smith, Zbigniew Jędrzejewski-Szmek,
10647 Zmicer Turok, Дамјан Георгиевски
10648
10649 — Berlin, 2021-03-30
10650
10651 CHANGES WITH 247:
10652
10653 * KERNEL API INCOMPATIBILITY: Linux 4.14 introduced two new uevents
10654 "bind" and "unbind" to the Linux device model. When this kernel
10655 change was made, systemd-udevd was only minimally updated to handle
10656 and propagate these new event types. The introduction of these new
10657 uevents (which are typically generated for USB devices and devices
10658 needing a firmware upload before being functional) resulted in a
10659 number of issues which we so far didn't address. We hoped the kernel
10660 maintainers would themselves address these issues in some form, but
10661 that did not happen. To handle them properly, many (if not most) udev
10662 rules files shipped in various packages need updating, and so do many
10663 programs that monitor or enumerate devices with libudev or sd-device,
10664 or otherwise process uevents. Please note that this incompatibility
10665 is not fault of systemd or udev, but caused by an incompatible kernel
10666 change that happened back in Linux 4.14, but is becoming more and
10667 more visible as the new uevents are generated by more kernel drivers.
10668
10669 To minimize issues resulting from this kernel change (but not avoid
10670 them entirely) starting with systemd-udevd 247 the udev "tags"
10671 concept (which is a concept for marking and filtering devices during
10672 enumeration and monitoring) has been reworked: udev tags are now
10673 "sticky", meaning that once a tag is assigned to a device it will not
10674 be removed from the device again until the device itself is removed
10675 (i.e. unplugged). This makes sure that any application monitoring
10676 devices that match a specific tag is guaranteed to both see uevents
10677 where the device starts being relevant, and those where it stops
10678 being relevant (the latter now regularly happening due to the new
10679 "unbind" uevent type). The udev tags concept is hence now a concept
10680 tied to a *device* instead of a device *event* — unlike for example
10681 udev properties whose lifecycle (as before) is generally tied to a
10682 device event, meaning that the previously determined properties are
10683 forgotten whenever a new uevent is processed.
10684
10685 With the newly redefined udev tags concept, sometimes it's necessary
10686 to determine which tags are the ones applied by the most recent
10687 uevent/database update, in order to discern them from those
10688 originating from earlier uevents/database updates of the same
10689 device. To accommodate for this a new automatic property CURRENT_TAGS
10690 has been added that works similar to the existing TAGS property but
10691 only lists tags set by the most recent uevent/database
10692 update. Similarly, the libudev/sd-device API has been updated with
10693 new functions to enumerate these 'current' tags, in addition to the
10694 existing APIs that now enumerate the 'sticky' ones.
10695
10696 To properly handle "bind"/"unbind" on Linux 4.14 and newer it is
10697 essential that all udev rules files and applications are updated to
10698 handle the new events. Specifically:
10699
10700 • All rule files that currently use a header guard similar to
10701 ACTION!="add|change",GOTO="xyz_end" should be updated to use
10702 ACTION=="remove",GOTO="xyz_end" instead, so that the
10703 properties/tags they add are also applied whenever "bind" (or
10704 "unbind") is seen. (This is most important for all physical device
10705 types — those for which "bind" and "unbind" are currently
10706 generated, for all other device types this change is still
10707 recommended but not as important — but certainly prepares for
10708 future kernel uevent type additions).
10709
10710 • Similarly, all code monitoring devices that contains an 'if' branch
10711 discerning the "add" + "change" uevent actions from all other
10712 uevents actions (i.e. considering devices only relevant after "add"
10713 or "change", and irrelevant on all other events) should be reworked
10714 to instead negatively check for "remove" only (i.e. considering
10715 devices relevant after all event types, except for "remove", which
10716 invalidates the device). Note that this also means that devices
10717 should be considered relevant on "unbind", even though conceptually
10718 this — in some form — invalidates the device. Since the precise
10719 effect of "unbind" is not generically defined, devices should be
10720 considered relevant even after "unbind", however I/O errors
10721 accessing the device should then be handled gracefully.
10722
10723 • Any code that uses device tags for deciding whether a device is
10724 relevant or not most likely needs to be updated to use the new
10725 udev_device_has_current_tag() API (or sd_device_has_current_tag()
10726 in case sd-device is used), to check whether the tag is set at the
10727 moment an uevent is seen (as opposed to the existing
10728 udev_device_has_tag() API which checks if the tag ever existed on
10729 the device, following the API concept redefinition explained
10730 above).
10731
10732 We are very sorry for this breakage and the requirement to update
10733 packages using these interfaces. We'd again like to underline that
10734 this is not caused by systemd/udev changes, but result of a kernel
10735 behaviour change.
10736
10737 * UPCOMING INCOMPATIBILITY: So far most downstream distribution
10738 packages have not retriggered devices once the udev package (or any
10739 auxiliary package installing additional udev rules) is updated. We
10740 intend to work with major distributions to change this, so that
10741 "udevadm trigger -c change" is issued on such upgrades, ensuring that
10742 the updated ruleset is applied to the devices already discovered, so
10743 that (asynchronously) after the upgrade completed the udev database
10744 is consistent with the updated rule set. This means udev rules must
10745 be ready to be retriggered with a "change" action any time, and
10746 result in correct and complete udev database entries. While the
10747 majority of udev rule files known to us currently get this right,
10748 some don't. Specifically, there are udev rules files included in
10749 various packages that only set udev properties on the "add" action,
10750 but do not handle the "change" action. If a device matching those
10751 rules is retriggered with the "change" action (as is intended here)
10752 it would suddenly lose the relevant properties. This always has been
10753 problematic, but as soon as all udev devices are triggered on relevant
10754 package upgrades this will become particularly so. It is strongly
10755 recommended to fix offending rules so that they can handle a "change"
10756 action at any time, and acquire all necessary udev properties even
10757 then. Or in other words: the header guard mentioned above
10758 (ACTION=="remove",GOTO="xyz_end") is the correct approach to handle
10759 this, as it makes sure rules are rerun on "change" correctly, and
10760 accumulate the correct and complete set of udev properties. udev rule
10761 definitions that cannot handle "change" events being triggered at
10762 arbitrary times should be considered buggy.
10763
10764 * The MountAPIVFS= service file setting now defaults to on if
10765 RootImage= and RootDirectory= are used, which means that with those
10766 two settings /proc/, /sys/ and /dev/ are automatically properly set
10767 up for services. Previous behaviour may be restored by explicitly
10768 setting MountAPIVFS=off.
10769
10770 * Since PAM 1.2.0 (2015) configuration snippets may be placed in
10771 /usr/lib/pam.d/ in addition to /etc/pam.d/. If a file exists in the
10772 latter it takes precedence over the former, similar to how most of
10773 systemd's own configuration is handled. Given that PAM stack
10774 definitions are primarily put together by OS vendors/distributions
10775 (though possibly overridden by users), this systemd release moves its
10776 own PAM stack configuration for the "systemd-user" PAM service (i.e.
10777 for the PAM session invoked by the per-user [email protected] instance)
10778 from /etc/pam.d/ to /usr/lib/pam.d/. We recommend moving all
10779 packages' vendor versions of their PAM stack definitions from
10780 /etc/pam.d/ to /usr/lib/pam.d/, but if such OS-wide migration is not
10781 desired the location to which systemd installs its PAM stack
10782 configuration may be changed via the -Dpamconfdir Meson option.
10783
10784 * The runtime dependencies on libqrencode, libpcre2, libidn/libidn2,
10785 libpwquality and libcryptsetup have been changed to be based on
10786 dlopen(): instead of regular dynamic library dependencies declared in
10787 the binary ELF headers, these libraries are now loaded on demand
10788 only, if they are available. If the libraries cannot be found the
10789 relevant operations will fail gracefully, or a suitable fallback
10790 logic is chosen. This is supposed to be useful for general purpose
10791 distributions, as it allows minimizing the list of dependencies the
10792 systemd packages pull in, permitting building of more minimal OS
10793 images, while still making use of these "weak" dependencies should
10794 they be installed. Since many package managers automatically
10795 synthesize package dependencies from ELF shared library dependencies,
10796 some additional manual packaging work has to be done now to replace
10797 those (slightly downgraded from "required" to "recommended" or
10798 whatever is conceptually suitable for the package manager). Note that
10799 this change does not alter build-time behaviour: as before the
10800 build-time dependencies have to be installed during build, even if
10801 they now are optional during runtime.
10802
10803 * sd-event.h gained a new call sd_event_add_time_relative() for
10804 installing timers relative to the current time. This is mostly a
10805 convenience wrapper around the pre-existing sd_event_add_time() call
10806 which installs absolute timers.
10807
10808 * sd-event event sources may now be placed in a new "exit-on-failure"
10809 mode, which may be controlled via the new
10810 sd_event_source_get_exit_on_failure() and
10811 sd_event_source_set_exit_on_failure() functions. If enabled, any
10812 failure returned by the event source handler functions will result in
10813 exiting the event loop (unlike the default behaviour of just
10814 disabling the event source but continuing with the event loop). This
10815 feature is useful to set for all event sources that define "primary"
10816 program behaviour (where failure should be fatal) in contrast to
10817 "auxiliary" behaviour (where failure should remain local).
10818
10819 * Most event source types sd-event supports now accept a NULL handler
10820 function, in which case the event loop is exited once the event
10821 source is to be dispatched, using the userdata pointer — converted to
10822 a signed integer — as exit code of the event loop. Previously this
10823 was supported for IO and signal event sources already. Exit event
10824 sources still do not support this (simply because it makes little
10825 sense there, as the event loop is already exiting when they are
10826 dispatched).
10827
10828 * A new per-unit setting RootImageOptions= has been added which allows
10829 tweaking the mount options for any file system mounted as effect of
10830 the RootImage= setting.
10831
10832 * Another new per-unit setting MountImages= has been added, that allows
10833 mounting additional disk images into the file system tree accessible
10834 to the service.
10835
10836 * Timer units gained a new FixedRandomDelay= boolean setting. If
10837 enabled, the random delay configured with RandomizedDelaySec= is
10838 selected in a way that is stable on a given system (though still
10839 different for different units).
10840
10841 * Socket units gained a new setting Timestamping= that takes "us", "ns"
10842 or "off". This controls the SO_TIMESTAMP/SO_TIMESTAMPNS socket
10843 options.
10844
10845 * systemd-repart now generates JSON output when requested with the new
10846 --json= switch.
10847
10848 * systemd-machined's OpenMachineShell() bus call will now pass
10849 additional policy metadata data fields to the PolicyKit
10850 authentication request.
10851
10852 * systemd-tmpfiles gained a new -E switch, which is equivalent to
10853 --exclude-prefix=/dev --exclude-prefix=/proc --exclude=/run
10854 --exclude=/sys. It's particularly useful in combination with --root=,
10855 when operating on OS trees that do not have any of these four runtime
10856 directories mounted, as this means no files below these subtrees are
10857 created or modified, since those mount points should probably remain
10858 empty.
10859
10860 * systemd-tmpfiles gained a new --image= switch which is like --root=,
10861 but takes a disk image instead of a directory as argument. The
10862 specified disk image is mounted inside a temporary mount namespace
10863 and the tmpfiles.d/ drop-ins stored in the image are executed and
10864 applied to the image. systemd-sysusers similarly gained a new
10865 --image= switch, that allows the sysusers.d/ drop-ins stored in the
10866 image to be applied onto the image.
10867
10868 * Similarly, the journalctl command also gained an --image= switch,
10869 which is a quick one-step solution to look at the log data included
10870 in OS disk images.
10871
10872 * journalctl's --output=cat option (which outputs the log content
10873 without any metadata, just the pure text messages) will now make use
10874 of terminal colors when run on a suitable terminal, similarly to the
10875 other output modes.
10876
10877 * JSON group records now support a "description" string that may be
10878 used to add a human-readable textual description to such groups. This
10879 is supposed to match the user's GECOS field which traditionally
10880 didn't have a counterpart for group records.
10881
10882 * The "systemd-dissect" tool that may be used to inspect OS disk images
10883 and that was previously installed to /usr/lib/systemd/ has now been
10884 moved to /usr/bin/, reflecting its updated status of an officially
10885 supported tool with a stable interface. It gained support for a new
10886 --mkdir switch which when combined with --mount has the effect of
10887 creating the directory to mount the image to if it is missing
10888 first. It also gained two new commands --copy-from and --copy-to for
10889 copying files and directories in and out of an OS image without the
10890 need to manually mount it. It also acquired support for a new option
10891 --json= to generate JSON output when inspecting an OS image.
10892
10893 * The cgroup2 file system is now mounted with the
10894 "memory_recursiveprot" mount option, supported since kernel 5.7. This
10895 means that the MemoryLow= and MemoryMin= unit file settings now apply
10896 recursively to whole subtrees.
10897
10898 * systemd-homed now defaults to using the btrfs file system — if
10899 available — when creating home directories in LUKS volumes. This may
10900 be changed with the DefaultFileSystemType= setting in homed.conf.
10901 It's now the default file system in various major distributions and
10902 has the major benefit for homed that it can be grown and shrunk while
10903 mounted, unlike the other contenders ext4 and xfs, which can both be
10904 grown online, but not shrunk (in fact xfs is the technically most
10905 limited option here, as it cannot be shrunk at all).
10906
10907 * JSON user records managed by systemd-homed gained support for
10908 "recovery keys". These are basically secondary passphrases that can
10909 unlock user accounts/home directories. They are computer-generated
10910 rather than user-chosen, and typically have greater entropy.
10911 homectl's --recovery-key= option may be used to add a recovery key to
10912 a user account. The generated recovery key is displayed as a QR code,
10913 so that it can be scanned to be kept in a safe place. This feature is
10914 particularly useful in combination with systemd-homed's support for
10915 FIDO2 or PKCS#11 authentication, as a secure fallback in case the
10916 security tokens are lost. Recovery keys may be entered wherever the
10917 system asks for a password.
10918
10919 * systemd-homed now maintains a "dirty" flag for each LUKS encrypted
10920 home directory which indicates that a home directory has not been
10921 deactivated cleanly when offline. This flag is useful to identify
10922 home directories for which the offline discard logic did not run when
10923 offlining, and where it would be a good idea to log in again to catch
10924 up.
10925
10926 * systemctl gained a new parameter --timestamp= which may be used to
10927 change the style in which timestamps are output, i.e. whether to show
10928 them in local timezone or UTC, or whether to show µs granularity.
10929
10930 * Alibaba's "pouch" container manager is now detected by
10931 systemd-detect-virt, ConditionVirtualization= and similar
10932 constructs. Similar, they now also recognize IBM PowerVM machine
10933 virtualization.
10934
10935 * systemd-nspawn has been reworked to use the /run/host/incoming/ as
10936 place to use for propagating external mounts into the
10937 container. Similarly /run/host/notify is now used as the socket path
10938 for container payloads to communicate with the container manager
10939 using sd_notify(). The container manager now uses the
10940 /run/host/inaccessible/ directory to place "inaccessible" file nodes
10941 of all relevant types which may be used by the container payload as
10942 bind mount source to over-mount inodes to make them inaccessible.
10943 /run/host/container-manager will now be initialized with the same
10944 string as the $container environment variable passed to the
10945 container's PID 1. /run/host/container-uuid will be initialized with
10946 the same string as $container_uuid. This means the /run/host/
10947 hierarchy is now the primary way to make host resources available to
10948 the container. The Container Interface documents these new files and
10949 directories:
10950
10951 https://systemd.io/CONTAINER_INTERFACE
10952
10953 * Support for the "ConditionNull=" unit file condition has been
10954 deprecated and undocumented for 6 years. systemd started to warn
10955 about its use 1.5 years ago. It has now been removed entirely.
10956
10957 * sd-bus.h gained a new API call sd_bus_error_has_names(), which takes
10958 a sd_bus_error struct and a list of error names, and checks if the
10959 error matches one of these names. It's a convenience wrapper that is
10960 useful in cases where multiple errors shall be handled the same way.
10961
10962 * A new system call filter list "@known" has been added, that contains
10963 all system calls known at the time systemd was built.
10964
10965 * Behaviour of system call filter allow lists has changed slightly:
10966 system calls that are contained in @known will result in EPERM by
10967 default, while those not contained in it result in ENOSYS. This
10968 should improve compatibility because known system calls will thus be
10969 communicated as prohibited, while unknown (and thus newer ones) will
10970 be communicated as not implemented, which hopefully has the greatest
10971 chance of triggering the right fallback code paths in client
10972 applications.
10973
10974 * "systemd-analyze syscall-filter" will now show two separate sections
10975 at the bottom of the output: system calls known during systemd build
10976 time but not included in any of the filter groups shown above, and
10977 system calls defined on the local kernel but known during systemd
10978 build time.
10979
10980 * If the $SYSTEMD_LOG_SECCOMP=1 environment variable is set for
10981 systemd-nspawn all system call filter violations will be logged by
10982 the kernel (audit). This is useful for tracking down system calls
10983 invoked by container payloads that are prohibited by the container's
10984 system call filter policy.
10985
10986 * If the $SYSTEMD_SECCOMP=0 environment variable is set for
10987 systemd-nspawn (and other programs that use seccomp) all seccomp
10988 filtering is turned off.
10989
10990 * Two new unit file settings ProtectProc= and ProcSubset= have been
10991 added that expose the hidepid= and subset= mount options of procfs.
10992 All processes of the unit will only see processes in /proc that are
10993 are owned by the unit's user. This is an important new sandboxing
10994 option that is recommended to be set on all system services. All
10995 long-running system services that are included in systemd itself set
10996 this option now. This option is only supported on kernel 5.8 and
10997 above, since the hidepid= option supported on older kernels was not a
10998 per-mount option but actually applied to the whole PID namespace.
10999
11000 * Socket units gained a new boolean setting FlushPending=. If enabled
11001 all pending socket data/connections are flushed whenever the socket
11002 unit enters the "listening" state, i.e. after the associated service
11003 exited.
11004
11005 * The unit file setting NUMAMask= gained a new "all" value: when used,
11006 all existing NUMA nodes are added to the NUMA mask.
11007
11008 * A new "credentials" logic has been added to system services. This is
11009 a simple mechanism to pass privileged data to services in a safe and
11010 secure way. It's supposed to be used to pass per-service secret data
11011 such as passwords or cryptographic keys but also associated less
11012 private information such as user names, certificates, and similar to
11013 system services. Each credential is identified by a short user-chosen
11014 name and may contain arbitrary binary data. Two new unit file
11015 settings have been added: SetCredential= and LoadCredential=. The
11016 former allows setting a credential to a literal string, the latter
11017 sets a credential to the contents of a file (or data read from a
11018 user-chosen AF_UNIX stream socket). Credentials are passed to the
11019 service via a special credentials directory, one file for each
11020 credential. The path to the credentials directory is passed in a new
11021 $CREDENTIALS_DIRECTORY environment variable. Since the credentials
11022 are passed in the file system they may be easily referenced in
11023 ExecStart= command lines too, thus no explicit support for the
11024 credentials logic in daemons is required (though ideally daemons
11025 would look for the bits they need in $CREDENTIALS_DIRECTORY
11026 themselves automatically, if set). The $CREDENTIALS_DIRECTORY is
11027 backed by unswappable memory if privileges allow it, immutable if
11028 privileges allow it, is accessible only to the service's UID, and is
11029 automatically destroyed when the service stops.
11030
11031 * systemd-nspawn supports the same credentials logic. It can both
11032 consume credentials passed to it via the aforementioned
11033 $CREDENTIALS_DIRECTORY protocol as well as pass these credentials on
11034 to its payload. The service manager/PID 1 has been updated to match
11035 this: it can also accept credentials from the container manager that
11036 invokes it (in fact: any process that invokes it), and passes them on
11037 to its services. Thus, credentials can be propagated recursively down
11038 the tree: from a system's service manager to a systemd-nspawn
11039 service, to the service manager that runs as container payload and to
11040 the service it runs below. Credentials may also be added on the
11041 systemd-nspawn command line, using new --set-credential= and
11042 --load-credential= command line switches that match the
11043 aforementioned service settings.
11044
11045 * systemd-repart gained new settings Format=, Encrypt=, CopyFiles= in
11046 the partition drop-ins which may be used to format/LUKS
11047 encrypt/populate any created partitions. The partitions are
11048 encrypted/formatted/populated before they are registered in the
11049 partition table, so that they appear atomically: either the
11050 partitions do not exist yet or they exist fully encrypted, formatted,
11051 and populated — there is no time window where they are
11052 "half-initialized". Thus the system is robust to abrupt shutdown: if
11053 the tool is terminated half-way during its operations on next boot it
11054 will start from the beginning.
11055
11056 * systemd-repart's --size= operation gained a new "auto" value. If
11057 specified, and operating on a loopback file it is automatically sized
11058 to the minimal size the size constraints permit. This is useful to
11059 use "systemd-repart" as an image builder for minimally sized images.
11060
11061 * systemd-resolved now gained a third IPC interface for requesting name
11062 resolution: besides D-Bus and local DNS to 127.0.0.53 a Varlink
11063 interface is now supported. The nss-resolve NSS module has been
11064 modified to use this new interface instead of D-Bus. Using Varlink
11065 has a major benefit over D-Bus: it works without a broker service,
11066 and thus already during earliest boot, before the dbus daemon has
11067 been started. This means name resolution via systemd-resolved now
11068 works at the same time systemd-networkd operates: from earliest boot
11069 on, including in the initrd.
11070
11071 * systemd-resolved gained support for a new DNSStubListenerExtra=
11072 configuration file setting which may be used to specify additional IP
11073 addresses the built-in DNS stub shall listen on, in addition to the
11074 main one on 127.0.0.53:53.
11075
11076 * Name lookups issued via systemd-resolved's D-Bus and Varlink
11077 interfaces (and thus also via glibc NSS if nss-resolve is used) will
11078 now honour a trailing dot in the hostname: if specified the search
11079 path logic is turned off. Thus "resolvectl query foo." is now
11080 equivalent to "resolvectl query --search=off foo.".
11081
11082 * systemd-resolved gained a new D-Bus property "ResolvConfMode" that
11083 exposes how /etc/resolv.conf is currently managed: by resolved (and
11084 in which mode if so) or another subsystem. "resolvctl" will display
11085 this property in its status output.
11086
11087 * The resolv.conf snippets systemd-resolved provides will now set "."
11088 as the search domain if no other search domain is known. This turns
11089 off the derivation of an implicit search domain by nss-dns for the
11090 hostname, when the hostname is set to an FQDN. This change is done to
11091 make nss-dns using resolv.conf provided by systemd-resolved behave
11092 more similarly to nss-resolve.
11093
11094 * systemd-tmpfiles' file "aging" logic (i.e. the automatic clean-up of
11095 /tmp/ and /var/tmp/ based on file timestamps) now looks at the
11096 "birth" time (btime) of a file in addition to the atime, mtime, and
11097 ctime.
11098
11099 * systemd-analyze gained a new verb "capability" that lists all known
11100 capabilities by the systemd build and by the kernel.
11101
11102 * If a file /usr/lib/clock-epoch exists, PID 1 will read its mtime and
11103 advance the system clock to it at boot if it is noticed to be before
11104 that time. Previously, PID 1 would only advance the time to an epoch
11105 time that is set during build-time. With this new file OS builders
11106 can change this epoch timestamp on individual OS images without
11107 having to rebuild systemd.
11108
11109 * systemd-logind will now listen to the KEY_RESTART key from the Linux
11110 input layer and reboot the system if it is pressed, similarly to how
11111 it already handles KEY_POWER, KEY_SUSPEND or KEY_SLEEP. KEY_RESTART
11112 was originally defined in the Multimedia context (to restart playback
11113 of a song or film), but is now primarily used in various embedded
11114 devices for "Reboot" buttons. Accordingly, systemd-logind will now
11115 honour it as such. This may configured in more detail via the new
11116 HandleRebootKey= and RebootKeyIgnoreInhibited=.
11117
11118 * systemd-nspawn/systemd-machined will now reconstruct hardlinks when
11119 copying OS trees, for example in "systemd-nspawn --ephemeral",
11120 "systemd-nspawn --template=", "machinectl clone" and similar. This is
11121 useful when operating with OSTree images, which use hardlinks heavily
11122 throughout, and where such copies previously resulting in "exploding"
11123 hardlinks.
11124
11125 * systemd-nspawn's --console= setting gained support for a new
11126 "autopipe" value, which is identical to "interactive" when invoked on
11127 a TTY, and "pipe" otherwise.
11128
11129 * systemd-networkd's .network files gained support for explicitly
11130 configuring the multicast membership entries of bridge devices in the
11131 [BridgeMDB] section. It also gained support for the PIE queuing
11132 discipline in the [FlowQueuePIE] sections.
11133
11134 * systemd-networkd's .netdev files may now be used to create "BareUDP"
11135 tunnels, configured in the new [BareUDP] setting.
11136
11137 * systemd-networkd's Gateway= setting in .network files now accepts the
11138 special values "_dhcp4" and "_ipv6ra" to configure additional,
11139 locally defined, explicit routes to the gateway acquired via DHCP or
11140 IPv6 Router Advertisements. The old setting "_dhcp" is deprecated,
11141 but still accepted for backwards compatibility.
11142
11143 * systemd-networkd's [IPv6PrefixDelegation] section and
11144 IPv6PrefixDelegation= options have been renamed as [IPv6SendRA] and
11145 IPv6SendRA= (the old names are still accepted for backwards
11146 compatibility).
11147
11148 * systemd-networkd's .network files gained the DHCPv6PrefixDelegation=
11149 boolean setting in [Network] section. If enabled, the delegated prefix
11150 gained by another link will be configured, and an address within the
11151 prefix will be assigned.
11152
11153 * systemd-networkd's .network files gained the Announce= boolean setting
11154 in [DHCPv6PrefixDelegation] section. When enabled, the delegated
11155 prefix will be announced through IPv6 router advertisement (IPv6 RA).
11156 The setting is enabled by default.
11157
11158 * VXLAN tunnels may now be marked as independent of any underlying
11159 network interface via the new Independent= boolean setting.
11160
11161 * systemctl gained support for two new verbs: "service-log-level" and
11162 "service-log-target" may be used on services that implement the
11163 generic org.freedesktop.LogControl1 D-Bus interface to dynamically
11164 adjust the log level and target. All of systemd's long-running
11165 services support this now, but ideally all system services would
11166 implement this interface to make the system more uniformly
11167 debuggable.
11168
11169 * The SystemCallErrorNumber= unit file setting now accepts the new
11170 "kill" and "log" actions, in addition to arbitrary error number
11171 specifications as before. If "kill" the processes are killed on the
11172 event, if "log" the offending system call is audit logged.
11173
11174 * A new SystemCallLog= unit file setting has been added that accepts a
11175 list of system calls that shall be logged about (audit).
11176
11177 * The OS image dissection logic (as used by RootImage= in unit files or
11178 systemd-nspawn's --image= switch) has gained support for identifying
11179 and mounting explicit /usr/ partitions, which are now defined in the
11180 discoverable partition specification. This should be useful for
11181 environments where the root file system is
11182 generated/formatted/populated dynamically on first boot and combined
11183 with an immutable /usr/ tree that is supplied by the vendor.
11184
11185 * In the final phase of shutdown, within the systemd-shutdown binary
11186 we'll now try to detach MD devices (i.e software RAID) in addition to
11187 loopback block devices and DM devices as before. This is supposed to
11188 be a safety net only, in order to increase robustness if things go
11189 wrong. Storage subsystems are expected to properly detach their
11190 storage volumes during regular shutdown already (or in case of
11191 storage backing the root file system: in the initrd hook we return to
11192 later).
11193
11194 * If the SYSTEMD_LOG_TID environment variable is set all systemd tools
11195 will now log the thread ID in their log output. This is useful when
11196 working with heavily threaded programs.
11197
11198 * If the SYSTEMD_RDRAND environment variable is set to "0", systemd will
11199 not use the RDRAND CPU instruction. This is useful in environments
11200 such as replay debuggers where non-deterministic behaviour is not
11201 desirable.
11202
11203 * The autopaging logic in systemd's various tools (such as systemctl)
11204 has been updated to turn on "secure" mode in "less"
11205 (i.e. $LESSECURE=1) if execution in a "sudo" environment is
11206 detected. This disables invoking external programs from the pager,
11207 via the pipe logic. This behaviour may be overridden via the new
11208 $SYSTEMD_PAGERSECURE environment variable.
11209
11210 * Units which have resource limits (.service, .mount, .swap, .slice,
11211 .socket, and .slice) gained new configuration settings
11212 ManagedOOMSwap=, ManagedOOMMemoryPressure=, and
11213 ManagedOOMMemoryPressureLimitPercent= that specify resource pressure
11214 limits and optional action taken by systemd-oomd.
11215
11216 * A new service systemd-oomd has been added. It monitors resource
11217 contention for selected parts of the unit hierarchy using the PSI
11218 information reported by the kernel, and kills processes when memory
11219 or swap pressure is above configured limits. This service is only
11220 enabled by default in developer mode (see below) and should be
11221 considered a preview in this release. Behaviour details and option
11222 names are subject to change without the usual backwards-compatibility
11223 promises.
11224
11225 * A new helper oomctl has been added to introspect systemd-oomd state.
11226 It is only enabled by default in developer mode and should be
11227 considered a preview without the usual backwards-compatibility
11228 promises.
11229
11230 * New meson option -Dcompat-mutable-uid-boundaries= has been added. If
11231 enabled, systemd reads the system UID boundaries from /etc/login.defs
11232 at runtime, instead of using the built-in values selected during
11233 build. This is an option to improve compatibility for upgrades from
11234 old systems. It's strongly recommended not to make use of this
11235 functionality on new systems (or even enable it during build), as it
11236 makes something runtime-configurable that is mostly an implementation
11237 detail of the OS, and permits avoidable differences in deployments
11238 that create all kinds of problems in the long run.
11239
11240 * New meson option '-Dmode=developer|release' has been added. When
11241 'developer', additional checks and features are enabled that are
11242 relevant during upstream development, e.g. verification that
11243 semi-automatically-generated documentation has been properly updated
11244 following API changes. Those checks are considered hints for
11245 developers and are not actionable in downstream builds. In addition,
11246 extra features that are not ready for general consumption may be
11247 enabled in developer mode. It is thus recommended to set
11248 '-Dmode=release' in end-user and distro builds.
11249
11250 * systemd-cryptsetup gained support for processing detached LUKS
11251 headers specified on the kernel command line via the header=
11252 parameter of the luks.options= kernel command line option. The same
11253 device/path syntax as for key files is supported for header files
11254 like this.
11255
11256 * The "net_id" built-in of udev has been updated to ignore ACPI _SUN
11257 slot index data for devices that are connected through a PCI bridge
11258 where the _SUN index is associated with the bridge instead of the
11259 network device itself. Previously this would create ambiguous device
11260 naming if multiple network interfaces were connected to the same PCI
11261 bridge. Since this is a naming scheme incompatibility on systems that
11262 possess hardware like this it has been introduced as new naming
11263 scheme "v247". The previous scheme can be selected via the
11264 "net.naming_scheme=v245" kernel command line parameter.
11265
11266 * ConditionFirstBoot= semantics have been modified to be safe towards
11267 abnormal system power-off during first boot. Specifically, the
11268 "systemd-machine-id-commit.service" service now acts as boot
11269 milestone indicating when the first boot process is sufficiently
11270 complete in order to not consider the next following boot also a
11271 first boot. If the system is reset before this unit is reached the
11272 first time, the next boot will still be considered a first boot; once
11273 it has been reached, no further boots will be considered a first
11274 boot. The "first-boot-complete.target" unit now acts as official hook
11275 point to order against this. If a service shall be run on every boot
11276 until the first boot fully succeeds it may thus be ordered before
11277 this target unit (and pull it in) and carry ConditionFirstBoot=
11278 appropriately.
11279
11280 * bootctl's set-default and set-oneshot commands now accept the three
11281 special strings "@default", "@oneshot", "@current" in place of a boot
11282 entry id. These strings are resolved to the current default and
11283 oneshot boot loader entry, as well as the currently booted one. Thus
11284 a command "bootctl set-default @current" may be used to make the
11285 currently boot menu item the new default for all subsequent boots.
11286
11287 * "systemctl edit" has been updated to show the original effective unit
11288 contents in commented form in the text editor.
11289
11290 * Units in user mode are now segregated into three new slices:
11291 session.slice (units that form the core of graphical session),
11292 app.slice ("normal" user applications), and background.slice
11293 (low-priority tasks). Unless otherwise configured, user units are
11294 placed in app.slice. The plan is to add resource limits and
11295 protections for the different slices in the future.
11296
11297 * New GPT partition types for RISCV32/64 for the root and /usr
11298 partitions, and their associated Verity partitions have been defined,
11299 and are now understood by systemd-gpt-auto-generator, and the OS
11300 image dissection logic.
11301
11302 Contributions from: Adolfo Jayme Barrientos, afg, Alec Moskvin, Alyssa
11303 Ross, Amitanand Chikorde, Andrew Hangsleben, Anita Zhang, Ansgar
11304 Burchardt, Arian van Putten, Aurelien Jarno, Axel Rasmussen, bauen1,
11305 Beniamino Galvani, Benjamin Berg, Bjørn Mork, brainrom, Chandradeep
11306 Dey, Charles Lee, Chris Down, Christian Göttsche, Christof Efkemann,
11307 Christoph Ruegge, Clemens Gruber, Daan De Meyer, Daniele Medri, Daniel
11308 Mack, Daniel Rusek, Dan Streetman, David Tardon, Dimitri John Ledkov,
11309 Dmitry Borodaenko, Elias Probst, Elisei Roca, ErrantSpore, Etienne
11310 Doms, Fabrice Fontaine, fangxiuning, Felix Riemann, Florian Klink,
11311 Franck Bui, Frantisek Sumsal, fwSmit, George Rawlinson, germanztz,
11312 Gibeom Gwon, Glen Whitney, Gogo Gogsi, Göran Uddeborg, Grant Mathews,
11313 Hans de Goede, Hans Ulrich Niedermann, Haochen Tong, Harald Seiler,
11314 huangyong, Hubert Kario, igo95862, Ikey Doherty, Insun Pyo, Jan Chren,
11315 Jan Schlüter, Jérémy Nouhaud, Jian-Hong Pan, Joerg Behrmann, Jonathan
11316 Lebon, Jörg Thalheim, Josh Brobst, Juergen Hoetzel, Julien Humbert,
11317 Kai-Chuan Hsieh, Kairui Song, Kamil Dudka, Kir Kolyshkin, Kristijan
11318 Gjoshev, Kyle Huey, Kyle Russell, Lee Whalen, Lennart Poettering,
11319 lichangze, Luca Boccassi, Lucas Werkmeister, Luca Weiss, Marc
11320 Kleine-Budde, Marco Wang, Martin Wilck, Marti Raudsepp, masmullin2000,
11321 Máté Pozsgay, Matt Fenwick, Michael Biebl, Michael Scherer, Michal
11322 Koutný, Michal Sekletár, Michal Suchanek, Mikael Szreder, Milo
11323 Casagrande, mirabilos, Mitsuha_QuQ, mog422, Muhammet Kara, Nazar
11324 Vinnichuk, Nicholas Narsing, Nicolas Fella, Njibhu, nl6720, Oğuz Ersen,
11325 Olivier Le Moal, Ondrej Kozina, onlybugreports, Pass Automated Testing
11326 Suite, Pat Coulthard, Pavel Sapezhko, Pedro Ruiz, perry_yuan, Peter
11327 Hutterer, Phaedrus Leeds, PhoenixDiscord, Piotr Drąg, Plan C,
11328 Purushottam choudhary, Rasmus Villemoes, Renaud Métrich, Robert Marko,
11329 Roman Beranek, Ronan Pigott, Roy Chen (陳彥廷), RussianNeuroMancer,
11330 Samanta Navarro, Samuel BF, scootergrisen, Sorin Ionescu, Steve Dodd,
11331 Susant Sahani, Timo Rothenpieler, Tobias Hunger, Tobias Kaufmann, Topi
11332 Miettinen, vanou, Vito Caputo, Weblate, Wen Yang, Whired Planck,
11333 williamvds, Yu, Li-Yu, Yuri Chornoivan, Yu Watanabe, Zbigniew
11334 Jędrzejewski-Szmek, Zmicer Turok, Дамјан Георгиевски
11335
11336 – Warsaw, 2020-11-26
11337
11338 CHANGES WITH 246:
11339
11340 * The service manager gained basic support for cgroup v2 freezer. Units
11341 can now be suspended or resumed either using new systemctl verbs,
11342 freeze and thaw respectively, or via D-Bus.
11343
11344 * PID 1 may now automatically load pre-compiled AppArmor policies from
11345 /etc/apparmor/earlypolicy during early boot.
11346
11347 * The CPUAffinity= setting in service unit files now supports a new
11348 special value "numa" that causes the CPU affinity masked to be set
11349 based on the NUMA mask.
11350
11351 * systemd will now log about all left-over processes remaining in a
11352 unit when the unit is stopped. It will now warn about services using
11353 KillMode=none, as this is generally an unsafe thing to make use of.
11354
11355 * Two new unit file settings
11356 ConditionPathIsEncrypted=/AssertPathIsEncrypted= have been
11357 added. They may be used to check whether a specific file system path
11358 resides on a block device that is encrypted on the block level
11359 (i.e. using dm-crypt/LUKS).
11360
11361 * Another pair of new settings ConditionEnvironment=/AssertEnvironment=
11362 has been added that may be used for simple environment checks. This
11363 is particularly useful when passing in environment variables from a
11364 container manager (or from PAM in case of the systemd --user
11365 instance).
11366
11367 * .service unit files now accept a new setting CoredumpFilter= which
11368 allows configuration of the memory sections coredumps of the
11369 service's processes shall include.
11370
11371 * .mount units gained a new ReadWriteOnly= boolean option. If set
11372 it will not be attempted to mount a file system read-only if mounting
11373 in read-write mode doesn't succeed. An option x-systemd.rw-only is
11374 available in /etc/fstab to control the same.
11375
11376 * .socket units gained a new boolean setting PassPacketInfo=. If
11377 enabled, the kernel will attach additional per-packet metadata to all
11378 packets read from the socket, as an ancillary message. This controls
11379 the IP_PKTINFO, IPV6_RECVPKTINFO, NETLINK_PKTINFO socket options,
11380 depending on socket type.
11381
11382 * .service units gained a new setting RootHash= which may be used to
11383 specify the root hash for verity enabled disk images which are
11384 specified in RootImage=. RootVerity= may be used to specify a path to
11385 the Verity data matching a RootImage= file system. (The latter is
11386 only useful for images that do not contain the Verity data embedded
11387 into the same image that carries a GPT partition table following the
11388 Discoverable Partition Specification). Similarly, systemd-nspawn
11389 gained a new switch --verity-data= that takes a path to a file with
11390 the verity data of the disk image supplied in --image=, if the image
11391 doesn't contain the verity data itself.
11392
11393 * .service units gained a new setting RootHashSignature= which takes
11394 either a base64 encoded PKCS#7 signature of the root hash specified
11395 with RootHash=, or a path to a file to read the signature from. This
11396 allows validation of the root hash against public keys available in
11397 the kernel keyring, and is only supported on recent kernels
11398 (>= 5.4)/libcryptsetup (>= 2.30). A similar switch has been added to
11399 systemd-nspawn and systemd-dissect (--root-hash-sig=). Support for
11400 this mechanism has also been added to systemd-veritysetup.
11401
11402 * .service unit files gained two new options
11403 TimeoutStartFailureMode=/TimeoutStopFailureMode= that may be used to
11404 tune behaviour if a start or stop timeout is hit, i.e. whether to
11405 terminate the service with SIGTERM, SIGABRT or SIGKILL.
11406
11407 * Most options in systemd that accept hexadecimal values prefixed with
11408 0x in additional to the usual decimal notation now also support octal
11409 notation when the 0o prefix is used and binary notation if the 0b
11410 prefix is used.
11411
11412 * Various command line parameters and configuration file settings that
11413 configure key or certificate files now optionally take paths to
11414 AF_UNIX sockets in the file system. If configured that way a stream
11415 connection is made to the socket and the required data read from
11416 it. This is a simple and natural extension to the existing regular
11417 file logic, and permits other software to provide keys or
11418 certificates via simple IPC services, for example when unencrypted
11419 storage on disk is not desired. Specifically, systemd-networkd's
11420 Wireguard and MACSEC key file settings as well as
11421 systemd-journal-gatewayd's and systemd-journal-remote's PEM
11422 key/certificate parameters support this now.
11423
11424 * Unit files, tmpfiles.d/ snippets, sysusers.d/ snippets and other
11425 configuration files that support specifier expansion learnt six new
11426 specifiers: %a resolves to the current architecture, %o/%w/%B/%W
11427 resolve to the various ID fields from /etc/os-release, %l resolves to
11428 the "short" hostname of the system, i.e. the hostname configured in
11429 the kernel truncated at the first dot.
11430
11431 * Support for the .include syntax in unit files has been removed. The
11432 concept has been obsolete for 6 years and we started warning about
11433 its pending removal 2 years ago (also see NEWS file below). It's
11434 finally gone now.
11435
11436 * StandardError= and StandardOutput= in unit files no longer support
11437 the "syslog" and "syslog-console" switches. They were long removed
11438 from the documentation, but will now result in warnings when used,
11439 and be converted to "journal" and "journal+console" automatically.
11440
11441 * If the service setting User= is set to the "nobody" user, a warning
11442 message is now written to the logs (but the value is nonetheless
11443 accepted). Setting User=nobody is unsafe, since the primary purpose
11444 of the "nobody" user is to own all files whose owner cannot be mapped
11445 locally. It's in particular used by the NFS subsystem and in user
11446 namespacing. By running a service under this user's UID it might get
11447 read and even write access to all these otherwise unmappable files,
11448 which is quite likely a major security problem.
11449
11450 * tmpfs mounts automatically created by systemd (/tmp, /run, /dev/shm,
11451 and others) now have a size and inode limits applied (50% of RAM for
11452 /tmp and /dev/shm, 10% of RAM for other mounts, etc.). Please note
11453 that the implicit kernel default is 50% too, so there is no change
11454 in the size limit for /tmp and /dev/shm.
11455
11456 * nss-mymachines lost support for resolution of users and groups, and
11457 now only does resolution of hostnames. This functionality is now
11458 provided by nss-systemd. Thus, the 'mymachines' entry should be
11459 removed from the 'passwd:' and 'group:' lines in /etc/nsswitch.conf
11460 (and 'systemd' added if it is not already there).
11461
11462 * A new kernel command line option systemd.hostname= has been added
11463 that allows controlling the hostname that is initialized early during
11464 boot.
11465
11466 * A kernel command line option "udev.blockdev_read_only" has been
11467 added. If specified all hardware block devices that show up are
11468 immediately marked as read-only by udev. This option is useful for
11469 making sure that a specific boot under no circumstances modifies data
11470 on disk. Use "blockdev --setrw" to undo the effect of this, per
11471 device.
11472
11473 * A new boolean kernel command line option systemd.swap= has been
11474 added, which may be used to turn off automatic activation of swap
11475 devices listed in /etc/fstab.
11476
11477 * New kernel command line options systemd.condition_needs_update= and
11478 systemd.condition_first_boot= have been added, which override the
11479 result of the ConditionNeedsUpdate= and ConditionFirstBoot=
11480 conditions.
11481
11482 * A new kernel command line option systemd.clock_usec= has been added
11483 that allows setting the system clock to the specified time in µs
11484 since Jan 1st, 1970 early during boot. This is in particular useful
11485 in order to make test cases more reliable.
11486
11487 * The fs.suid_dumpable sysctl is set to 2 / "suidsafe". This allows
11488 systemd-coredump to save core files for suid processes. When saving
11489 the core file, systemd-coredump will use the effective uid and gid of
11490 the process that faulted.
11491
11492 * The /sys/module/kernel/parameters/crash_kexec_post_notifiers file is
11493 now automatically set to "Y" at boot, in order to enable pstore
11494 generation for collection with systemd-pstore.
11495
11496 * We provide a set of udev rules to enable auto-suspend on PCI and USB
11497 devices that were tested to correctly support it. Previously, this
11498 was distributed as a set of udev rules, but has now been replaced by
11499 by a set of hwdb entries (and a much shorter udev rule to take action
11500 if the device modalias matches one of the new hwdb entries).
11501
11502 As before, entries are periodically imported from the database
11503 maintained by the ChromiumOS project. If you have a device that
11504 supports auto-suspend correctly and where it should be enabled by
11505 default, please submit a patch that adds it to the database (see
11506 /usr/lib/udev/hwdb.d/60-autosuspend.hwdb).
11507
11508 * systemd-udevd gained the new configuration option timeout_signal= as well
11509 as a corresponding kernel command line option udev.timeout_signal=.
11510 The option can be used to configure the UNIX signal that the main
11511 daemon sends to the worker processes on timeout. Setting the signal
11512 to SIGABRT is useful for debugging.
11513
11514 * .link files managed by systemd-udevd gained options RxFlowControl=,
11515 TxFlowControl=, AutoNegotiationFlowControl= in the [Link] section, in
11516 order to configure various flow control parameters. They also gained
11517 RxMiniBufferSize= and RxJumboBufferSize= in order to configure jumbo
11518 frame ring buffer sizes.
11519
11520 * networkd.conf gained a new boolean setting ManageForeignRoutes=. If
11521 enabled systemd-networkd manages all routes configured by other tools.
11522
11523 * .network files managed by systemd-networkd gained a new section
11524 [SR-IOV], in order to configure SR-IOV capable network devices.
11525
11526 * systemd-networkd's [IPv6Prefix] section in .network files gained a
11527 new boolean setting Assign=. If enabled an address from the prefix is
11528 automatically assigned to the interface.
11529
11530 * systemd-networkd gained a new section [DHCPv6PrefixDelegation] which
11531 controls delegated prefixes assigned by DHCPv6 client. The section
11532 has three settings: SubnetID=, Assign=, and Token=. The setting
11533 SubnetID= allows explicit configuration of the preferred subnet that
11534 systemd-networkd's Prefix Delegation logic assigns to interfaces. If
11535 Assign= is enabled (which is the default) an address from any acquired
11536 delegated prefix is automatically chosen and assigned to the
11537 interface. The setting Token= specifies an optional address generation
11538 mode for Assign=.
11539
11540 * systemd-networkd's [Network] section gained a new setting
11541 IPv4AcceptLocal=. If enabled the interface accepts packets with local
11542 source addresses.
11543
11544 * systemd-networkd gained support for configuring the HTB queuing
11545 discipline in the [HierarchyTokenBucket] and
11546 [HierarchyTokenBucketClass] sections. Similar the "pfifo" qdisc may
11547 be configured in the [PFIFO] section, "GRED" in
11548 [GenericRandomEarlyDetection], "SFB" in [StochasticFairBlue], "cake"
11549 in [CAKE], "PIE" in [PIE], "DRR" in [DeficitRoundRobinScheduler] and
11550 [DeficitRoundRobinSchedulerClass], "BFIFO" in [BFIFO],
11551 "PFIFOHeadDrop" in [PFIFOHeadDrop], "PFIFOFast" in [PFIFOFast], "HHF"
11552 in [HeavyHitterFilter], "ETS" in [EnhancedTransmissionSelection] and
11553 "QFQ" in [QuickFairQueueing] and [QuickFairQueueingClass].
11554
11555 * systemd-networkd gained support for a new Termination= setting in the
11556 [CAN] section for configuring the termination resistor. It also
11557 gained a new ListenOnly= setting for controlling whether to only
11558 listen on CAN interfaces, without interfering with traffic otherwise
11559 (which is useful for debugging/monitoring CAN network
11560 traffic). DataBitRate=, DataSamplePoint=, FDMode=, FDNonISO= have
11561 been added to configure various CAN-FD aspects.
11562
11563 * systemd-networkd's [DHCPv6] section gained a new option WithoutRA=.
11564 When enabled, DHCPv6 will be attempted right-away without requiring an
11565 Router Advertisement packet suggesting it first (i.e. without the 'M'
11566 or 'O' flags set). The [IPv6AcceptRA] section gained a boolean option
11567 DHCPv6Client= that may be used to turn off the DHCPv6 client even if
11568 the RA packets suggest it.
11569
11570 * systemd-networkd's [DHCPv4] section gained a new setting UseGateway=
11571 which may be used to turn off use of the gateway information provided
11572 by the DHCP lease. A new FallbackLeaseLifetimeSec= setting may be
11573 used to configure how to process leases that lack a lifetime option.
11574
11575 * systemd-networkd's [DHCPv4] and [DHCPServer] sections gained a new
11576 setting SendVendorOption= allowing configuration of additional vendor
11577 options to send in the DHCP requests/responses. The [DHCPv6] section
11578 gained a new SendOption= setting for sending arbitrary DHCP
11579 options. RequestOptions= has been added to request arbitrary options
11580 from the server. UserClass= has been added to set the DHCP user class
11581 field.
11582
11583 * systemd-networkd's [DHCPServer] section gained a new set of options
11584 EmitPOP3=/POP3=, EmitSMTP=/SMTP=, EmitLPR=/LPR= for including server
11585 information about these three protocols in the DHCP lease. It also
11586 gained support for including "MUD" URLs ("Manufacturer Usage
11587 Description"). Support for "MUD" URLs was also added to the LLDP
11588 stack, configurable in the [LLDP] section in .network files.
11589
11590 * The Mode= settings in [MACVLAN] and [MACVTAP] now support 'source'
11591 mode. Also, the sections now support a new setting SourceMACAddress=.
11592
11593 * systemd-networkd's .netdev files now support a new setting
11594 VLANProtocol= in the [Bridge] section that allows configuration of
11595 the VLAN protocol to use.
11596
11597 * systemd-networkd supports a new Group= setting in the [Link] section
11598 of the .network files, to control the link group.
11599
11600 * systemd-networkd's [Network] section gained a new
11601 IPv6LinkLocalAddressGenerationMode= setting, which specifies how IPv6
11602 link local address is generated.
11603
11604 * A new default .network file is now shipped that matches TUN/TAP
11605 devices that begin with "vt-" in their name. Such interfaces will
11606 have IP routing onto the host links set up automatically. This is
11607 supposed to be used by VM managers to trivially acquire a network
11608 interface which is fully set up for host communication, simply by
11609 carefully picking an interface name to use.
11610
11611 * systemd-networkd's [DHCPv6] section gained a new setting RouteMetric=
11612 which sets the route priority for routes specified by the DHCP server.
11613
11614 * systemd-networkd's [DHCPv6] section gained a new setting VendorClass=
11615 which configures the vendor class information sent to DHCP server.
11616
11617 * The BlackList= settings in .network files' [DHCPv4] and
11618 [IPv6AcceptRA] sections have been renamed DenyList=. The old names
11619 are still understood to provide compatibility.
11620
11621 * networkctl gained the new "forcerenew" command for forcing all DHCP
11622 server clients to renew their lease. The interface "status" output
11623 will now show numerous additional fields of information about an
11624 interface. There are new "up" and "down" commands to bring specific
11625 interfaces up or down.
11626
11627 * systemd-resolved's DNS= configuration option now optionally accepts a
11628 port number (after ":") and a host name (after "#"). When the host
11629 name is specified, the DNS-over-TLS certificate is validated to match
11630 the specified hostname. Additionally, in case of IPv6 addresses, an
11631 interface may be specified (after "%").
11632
11633 * systemd-resolved may be configured to forward single-label DNS names.
11634 This is not standard-conformant, but may make sense in setups where
11635 public DNS servers are not used.
11636
11637 * systemd-resolved's DNS-over-TLS support gained SNI validation.
11638
11639 * systemd-nspawn's --resolv-conf= switch gained a number of new
11640 supported values. Specifically, options starting with "replace-" are
11641 like those prefixed "copy-" but replace any existing resolv.conf
11642 file. And options ending in "-uplink" and "-stub" can now be used to
11643 propagate other flavours of resolv.conf into the container (as
11644 defined by systemd-resolved).
11645
11646 * The various programs included in systemd can now optionally output
11647 their log messages on stderr prefixed with a timestamp, controlled by
11648 the $SYSTEMD_LOG_TIME environment variable.
11649
11650 * systemctl gained a new "-P" switch that is a shortcut for "--value
11651 --property=…".
11652
11653 * "systemctl list-units" and "systemctl list-machines" no longer hide
11654 their first output column with --no-legend. To hide the first column,
11655 use --plain.
11656
11657 * "systemctl reboot" takes the option "--reboot-argument=".
11658 The optional positional argument to "systemctl reboot" is now
11659 being deprecated in favor of this option.
11660
11661 * systemd-run gained a new switch --slice-inherit. If specified the
11662 unit it generates is placed in the same slice as the systemd-run
11663 process itself.
11664
11665 * systemd-journald gained support for zstd compression of large fields
11666 in journal files. The hash tables in journal files have been hardened
11667 against hash collisions. This is an incompatible change and means
11668 that journal files created with new systemd versions are not readable
11669 with old versions. If the $SYSTEMD_JOURNAL_KEYED_HASH boolean
11670 environment variable for systemd-journald.service is set to 0 this
11671 new hardening functionality may be turned off, so that generated
11672 journal files remain compatible with older journalctl
11673 implementations.
11674
11675 * journalctl will now include a clickable link in the default output for
11676 each log message for which a URL with further documentation is
11677 known. This is only supported on terminal emulators that support
11678 clickable hyperlinks, and is turned off if a pager is used (since
11679 "less" still doesn't support hyperlinks,
11680 unfortunately). Documentation URLs may be included in log messages
11681 either by including a DOCUMENTATION= journal field in it, or by
11682 associating a journal message catalog entry with the log message's
11683 MESSAGE_ID, which then carries a "Documentation:" tag.
11684
11685 * journald.conf gained a new boolean setting Audit= that may be used to
11686 control whether systemd-journald will enable audit during
11687 initialization.
11688
11689 * when systemd-journald's log stream is broken up into multiple lines
11690 because the PID of the sender changed this is indicated in the
11691 generated log records via the _LINE_BREAK=pid-change field.
11692
11693 * journalctl's "-o cat" output mode will now show one or more journal
11694 fields specified with --output-fields= instead of unconditionally
11695 MESSAGE=. This is useful to retrieve a very specific set of fields
11696 without any decoration.
11697
11698 * The sd-journal.h API gained two new functions:
11699 sd_journal_enumerate_available_unique() and
11700 sd_journal_enumerate_available_data() that operate like their
11701 counterparts that lack the _available_ in the name, but skip items
11702 that cannot be read and processed by the local implementation
11703 (i.e. are compressed in an unsupported format or such),
11704
11705 * coredumpctl gained a new --file= switch, matching the same one in
11706 journalctl: a specific journal file may be specified to read the
11707 coredump data from.
11708
11709 * coredumps collected by systemd-coredump may now be compressed using
11710 the zstd algorithm.
11711
11712 * systemd-binfmt gained a new switch --unregister for unregistering all
11713 registered entries at once. This is now invoked automatically at
11714 shutdown, so that binary formats registered with the "F" flag will
11715 not block clean file system unmounting.
11716
11717 * systemd-notify's --pid= switch gained new values: "parent", "self",
11718 "auto" for controlling which PID to send to the service manager: the
11719 systemd-notify process' PID, or the one of the process invoking it.
11720
11721 * systemd-logind's Session bus object learnt a new method call
11722 SetType() for temporarily updating the session type of an already
11723 allocated session. This is useful for upgrading tty sessions to
11724 graphical ones once a compositor is invoked.
11725
11726 * systemd-socket-proxy gained a new switch --exit-idle-time= for
11727 configuring an exit-on-idle time.
11728
11729 * systemd-repart's --empty= setting gained a new value "create". If
11730 specified a new empty regular disk image file is created under the
11731 specified name. Its size may be specified with the new --size=
11732 option. The latter is also supported without the "create" mode, in
11733 order to grow existing disk image files to the specified size. These
11734 two new options are useful when creating or manipulating disk images
11735 instead of operating on actual block devices.
11736
11737 * systemd-repart drop-ins now support a new UUID= setting to control
11738 the UUID to assign to a newly created partition.
11739
11740 * systemd-repart's SizeMin= per-partition parameter now defaults to 10M
11741 instead of 0.
11742
11743 * systemd-repart's Label= setting now support the usual, simple
11744 specifier expansion.
11745
11746 * systemd-homed's LUKS backend gained the ability to discard empty file
11747 system blocks automatically when the user logs out. This is enabled
11748 by default to ensure that home directories take minimal space when
11749 logged out but get full size guarantees when logged in. This may be
11750 controlled with the new --luks-offline-discard= switch to homectl.
11751
11752 * If systemd-homed detects that /home/ is encrypted as a whole it will
11753 now default to the directory or subvolume backends instead of the
11754 LUKS backend, in order to avoid double encryption. The default
11755 storage and file system may now be configured explicitly, too, via
11756 the new /etc/systemd/homed.conf configuration file.
11757
11758 * systemd-homed now supports unlocking home directories with FIDO2
11759 security tokens that support the 'hmac-secret' extension, in addition
11760 to the existing support for PKCS#11 security token unlocking
11761 support. Note that many recent hardware security tokens support both
11762 interfaces. The FIDO2 support is accessible via homectl's
11763 --fido2-device= option.
11764
11765 * homectl's --pkcs11-uri= setting now accepts two special parameters:
11766 if "auto" is specified and only one suitable PKCS#11 security token
11767 is plugged in, its URL is automatically determined and enrolled for
11768 unlocking the home directory. If "list" is specified a brief table of
11769 suitable PKCS#11 security tokens is shown. Similar, the new
11770 --fido2-device= option also supports these two special values, for
11771 automatically selecting and listing suitable FIDO2 devices.
11772
11773 * The /etc/crypttab tmp option now optionally takes an argument
11774 selecting the file system to use. Moreover, the default is now
11775 changed from ext2 to ext4.
11776
11777 * There's a new /etc/crypttab option "keyfile-erase". If specified the
11778 key file listed in the same line is removed after use, regardless if
11779 volume activation was successful or not. This is useful if the key
11780 file is only acquired transiently at runtime and shall be erased
11781 before the system continues to boot.
11782
11783 * There's also a new /etc/crypttab option "try-empty-password". If
11784 specified, before asking the user for a password it is attempted to
11785 unlock the volume with an empty password. This is useful for
11786 installing encrypted images whose password shall be set on first boot
11787 instead of at installation time.
11788
11789 * systemd-cryptsetup will now attempt to load the keys to unlock
11790 volumes with automatically from files in
11791 /etc/cryptsetup-keys.d/<volume>.key and
11792 /run/cryptsetup-keys.d/<volume>.key, if any of these files exist.
11793
11794 * systemd-cryptsetup may now activate Microsoft BitLocker volumes via
11795 /etc/crypttab, during boot.
11796
11797 * logind.conf gained a new RuntimeDirectoryInodesMax= setting to
11798 control the inode limit for the per-user $XDG_RUNTIME_DIR tmpfs
11799 instance.
11800
11801 * A new generator systemd-xdg-autostart-generator has been added. It
11802 generates systemd unit files from XDG autostart .desktop files, and
11803 may be used to let the systemd user instance manage services that are
11804 started automatically as part of the desktop session.
11805
11806 * "bootctl" gained a new verb "reboot-to-firmware" that may be used
11807 to query and change the firmware's 'Reboot Into Firmware Interface'
11808 setup flag.
11809
11810 * systemd-firstboot gained a new switch --kernel-command-line= that may
11811 be used to initialize the /etc/kernel/cmdline file of the image. It
11812 also gained a new switch --root-password-hashed= which is like
11813 --root-password= but accepts a pre-hashed UNIX password as
11814 argument. The new option --delete-root-password may be used to unset
11815 any password for the root user (dangerous!). The --root-shell= switch
11816 may be used to control the shell to use for the root account. A new
11817 --force option may be used to override any already set settings with
11818 the parameters specified on the command line (by default, the tool
11819 will not override what has already been set before, i.e. is purely
11820 incremental).
11821
11822 * systemd-firstboot gained support for a new --image= switch, which is
11823 similar to --root= but accepts the path to a disk image file, on
11824 which it then operates.
11825
11826 * A new sd-path.h API has been added to libsystemd. It provides a
11827 simple API for retrieving various search paths and primary
11828 directories for various resources.
11829
11830 * A new call sd_notify_barrier() has been added to the sd-daemon.h
11831 API. The call will block until all previously sent sd_notify()
11832 messages have been processed by the service manager. This is useful
11833 to remove races caused by a process already having disappeared at the
11834 time a notification message is processed by the service manager,
11835 making correct attribution impossible. The systemd-notify tool will
11836 now make use of this call implicitly, but this can be turned off again
11837 via the new --no-block switch.
11838
11839 * When sending a file descriptor (fd) to the service manager to keep
11840 track of, using the sd_notify() mechanism, a new parameter FDPOLL=0
11841 may be specified. If passed the service manager will refrain from
11842 poll()ing on the file descriptor. Traditionally (and when the
11843 parameter is not specified), the service manager will poll it for
11844 POLLHUP or POLLERR events, and immediately close the fds in that
11845 case.
11846
11847 * The service manager (PID1) gained a new D-Bus method call
11848 SetShowStatus() which may be used to control whether it shall show
11849 boot-time status output on the console. This method has a similar
11850 effect to sending SIGRTMIN+20/SIGRTMIN+21 to PID 1.
11851
11852 * The sd-bus API gained a number of convenience functions that take
11853 va_list arguments rather than "...". For example, there's now
11854 sd_bus_call_methodv() to match sd_bus_call_method(). Those calls make
11855 it easier to build wrappers that accept variadic arguments and want
11856 to pass a ready va_list structure to sd-bus.
11857
11858 * sd-bus vtable entries can have a new SD_BUS_VTABLE_ABSOLUTE_OFFSET
11859 flag which alters how the userdata pointer to pass to the callbacks
11860 is determined. When the flag is set, the offset field is converted
11861 as-is into a pointer, without adding it to the object pointer the
11862 vtable is associated with.
11863
11864 * sd-bus now exposes four new functions:
11865 sd_bus_interface_name_is_valid() + sd_bus_service_name_is_valid() +
11866 sd_bus_member_name_is_valid() + sd_bus_object_path_is_valid() will
11867 validate strings to check if they qualify as various D-Bus concepts.
11868
11869 * The sd-bus API gained the SD_BUS_METHOD_WITH_ARGS(),
11870 SD_BUS_METHOD_WITH_ARGS_OFFSET() and SD_BUS_SIGNAL_WITH_ARGS() macros
11871 that simplify adding argument names to D-Bus methods and signals.
11872
11873 * The man pages for the sd-bus and sd-hwdb APIs have been completed.
11874
11875 * Various D-Bus APIs of systemd daemons now have man pages that
11876 document the methods, signals and properties.
11877
11878 * The expectations on user/group name syntax are now documented in
11879 detail; documentation on how classic home directories may be
11880 converted into home directories managed by homed has been added;
11881 documentation regarding integration of homed/userdb functionality in
11882 desktops has been added:
11883
11884 https://systemd.io/USER_NAMES
11885 https://systemd.io/CONVERTING_TO_HOMED
11886 https://systemd.io/USERDB_AND_DESKTOPS
11887
11888 * Documentation for the on-disk Journal file format has been updated
11889 and has now moved to:
11890
11891 https://systemd.io/JOURNAL_FILE_FORMAT
11892
11893 * The interface for containers (https://systemd.io/CONTAINER_INTERFACE)
11894 has been extended by a set of environment variables that expose
11895 select fields from the host's os-release file to the container
11896 payload. Similarly, host's os-release files can be mounted into the
11897 container underneath /run/host. Together, those mechanisms provide a
11898 standardized way to expose information about the host to the
11899 container payload. Both interfaces are implemented in systemd-nspawn.
11900
11901 * All D-Bus services shipped in systemd now implement the generic
11902 LogControl1 D-Bus API which allows clients to change log level +
11903 target of the service during runtime.
11904
11905 * Only relevant for developers: the mkosi.default symlink has been
11906 dropped from version control. Please create a symlink to one of the
11907 distribution-specific defaults in .mkosi/ based on your preference.
11908
11909 Contributions from: 24bisquitz, Adam Nielsen, Alan Perry, Alexander
11910 Malafeev, Amitanand.Chikorde, Alin Popa, Alvin Šipraga, Amos Bird,
11911 Andreas Rammhold, AndreRH, Andrew Doran, Anita Zhang, Ankit Jain,
11912 antznin, Arnaud Ferraris, Arthur Moraes do Lago, Arusekk, Balaji
11913 Punnuru, Balint Reczey, Bastien Nocera, bemarek, Benjamin Berg,
11914 Benjamin Dahlhoff, Benjamin Robin, Chris Down, Chris Kerr, Christian
11915 Göttsche, Christian Hesse, Christian Oder, Ciprian Hacman, Clinton Roy,
11916 codicodi, Corey Hinshaw, Daan De Meyer, Dana Olson, Dan Callaghan,
11917 Daniel Fullmer, Daniel Rusek, Dan Streetman, Dave Reisner, David
11918 Edmundson, David Wood, Denis Pronin, Diego Escalante Urrelo, Dimitri
11919 John Ledkov, dolphrundgren, duguxy, Einsler Lee, Elisei Roca, Emmanuel
11920 Garette, Eric Anderson, Eric DeVolder, Evgeny Vereshchagin,
11921 ExtinctFire, fangxiuning, Ferran Pallarès Roca, Filipe Brandenburger,
11922 Filippo Falezza, Finn, Florian Klink, Florian Mayer, Franck Bui,
11923 Frantisek Sumsal, gaurav, Georg Müller, Gergely Polonkai, Giedrius
11924 Statkevičius, Gigadoc2, gogogogi, Gaurav Singh, gzjsgdsb, Hans de
11925 Goede, Haochen Tong, ianhi, ignapk, Jakov Smolic, James T. Lee, Jan
11926 Janssen, Jan Klötzke, Jan Palus, Jay Burger, Jeremy Cline, Jérémy
11927 Rosen, Jian-Hong Pan, Jiri Slaby, Joel Shapiro, Joerg Behrmann, Jörg
11928 Thalheim, Jouke Witteveen, Kai-Heng Feng, Kenny Levinsen, Kevin
11929 Kuehler, Kumar Kartikeya Dwivedi, layderv, laydervus, Lénaïc Huard,
11930 Lennart Poettering, Lidong Zhong, Luca Boccassi, Luca BRUNO, Lucas
11931 Werkmeister, Lukas Klingsbo, Lukáš Nykrýn, Łukasz Stelmach, Maciej
11932 S. Szmigiero, MadMcCrow, Marc-André Lureau, Marcel Holtmann, Marc
11933 Kleine-Budde, Martin Hundebøll, Matthew Leeds, Matt Ranostay, Maxim
11934 Fomin, MaxVerevkin, Michael Biebl, Michael Chapman, Michael Gubbels,
11935 Michael Marley, Michał Bartoszkiewicz, Michal Koutný, Michal Sekletár,
11936 Mike Gilbert, Mike Kazantsev, Mikhail Novosyolov, ml, Motiejus Jakštys,
11937 nabijaczleweli, nerdopolis, Niccolò Maggioni, Niklas Hambüchen, Norbert
11938 Lange, Paul Cercueil, pelzvieh, Peter Hutterer, Piero La Terza, Pieter
11939 Lexis, Piotr Drąg, Rafael Fontenelle, Richard Petri, Ronan Pigott, Ross
11940 Lagerwall, Rubens Figueiredo, satmandu, Sean-StarLabs, Sebastian
11941 Jennen, sterlinghughes, Surhud More, Susant Sahani, szb512, Thomas
11942 Haller, Tobias Hunger, Tom, Tomáš Pospíšek, Tomer Shechner, Tom Hughes,
11943 Topi Miettinen, Tudor Roman, Uwe Kleine-König, Valery0xff, Vito Caputo,
11944 Vladimir Panteleev, Vladyslav Tronko, Wen Yang, Yegor Vialov, Yigal
11945 Korman, Yi Gao, YmrDtnJu, Yuri Chornoivan, Yu Watanabe, Zbigniew
11946 Jędrzejewski-Szmek, Zhu Li, Дамјан Георгиевски, наб
11947
11948 – Warsaw, 2020-07-30
11949
11950 CHANGES WITH 245:
11951
11952 * A new tool "systemd-repart" has been added, that operates as an
11953 idempotent declarative repartitioner for GPT partition tables.
11954 Specifically, a set of partitions that must or may exist can be
11955 configured via drop-in files, and during every boot the partition
11956 table on disk is compared with these files, creating missing
11957 partitions or growing existing ones based on configurable relative
11958 and absolute size constraints. The tool is strictly incremental,
11959 i.e. does not delete, shrink or move partitions, but only adds and
11960 grows them. The primary use-case is OS images that ship in minimized
11961 form, that on first boot are grown to the size of the underlying
11962 block device or augmented with additional partitions. For example,
11963 the root partition could be extended to cover the whole disk, or a
11964 swap or /home partitions could be added on first boot. It can also be
11965 used for systems that use an A/B update scheme but ship images with
11966 just the A partition, with B added on first boot. The tool is
11967 primarily intended to be run in the initrd, shortly before
11968 transitioning into the host OS, but can also be run after the
11969 transition took place. It automatically discovers the disk backing
11970 the root file system, and should hence not require any additional
11971 configuration besides the partition definition drop-ins. If no
11972 configuration drop-ins are present, no action is taken.
11973
11974 * A new component "userdb" has been added, along with a small daemon
11975 "systemd-userdbd.service" and a client tool "userdbctl". The framework
11976 allows defining rich user and group records in a JSON format,
11977 extending on the classic "struct passwd" and "struct group"
11978 structures. Various components in systemd have been updated to
11979 process records in this format, including systemd-logind and
11980 pam-systemd. The user records are intended to be extensible, and
11981 allow setting various resource management, security and runtime
11982 parameters that shall be applied to processes and sessions of the
11983 user as they log in. This facility is intended to allow associating
11984 such metadata directly with user/group records so that they can be
11985 produced, extended and consumed in unified form. We hope that
11986 eventually frameworks such as sssd will generate records this way, so
11987 that for the first time resource management and various other
11988 per-user settings can be configured in LDAP directories and then
11989 provided to systemd (specifically to systemd-logind and pam-system)
11990 to apply on login. For further details see:
11991
11992 https://systemd.io/USER_RECORD
11993 https://systemd.io/GROUP_RECORD
11994 https://systemd.io/USER_GROUP_API
11995
11996 * A small new service systemd-homed.service has been added, that may be
11997 used to securely manage home directories with built-in encryption.
11998 The complete user record data is unified with the home directory,
11999 thus making home directories naturally migratable. Its primary
12000 back-end is based on LUKS volumes, but fscrypt, plain directories,
12001 and other storage schemes are also supported. This solves a couple of
12002 problems we saw with traditional ways to manage home directories, in
12003 particular when it comes to encryption. For further discussion of
12004 this, see the video of Lennart's talk at AllSystemsGo! 2019:
12005
12006 https://media.ccc.de/v/ASG2019-164-reinventing-home-directories
12007
12008 For further details about the format and expectations on home
12009 directories this new daemon makes, see:
12010
12011 https://systemd.io/HOME_DIRECTORY
12012
12013 * systemd-journald is now multi-instantiable. In addition to the main
12014 instance systemd-journald.service there's now a template unit
12015 [email protected], with each instance defining a new named
12016 log 'namespace' (whose name is specified via the instance part of the
12017 unit name). A new unit file setting LogNamespace= has been added,
12018 taking such a namespace name, that assigns services to the specified
12019 log namespaces. As each log namespace is serviced by its own
12020 independent journal daemon, this functionality may be used to improve
12021 performance and increase isolation of applications, at the price of
12022 losing global message ordering. Each instance of journald has a
12023 separate set of configuration files, with possibly different disk
12024 usage limitations and other settings.
12025
12026 journalctl now takes a new option --namespace= to show logs from a
12027 specific log namespace. The sd-journal.h API gained
12028 sd_journal_open_namespace() for opening the log stream of a specific
12029 log namespace. systemd-journald also gained the ability to exit on
12030 idle, which is useful in the context of log namespaces, as this means
12031 log daemons for log namespaces can be activated automatically on
12032 demand and will stop automatically when no longer used, minimizing
12033 resource usage.
12034
12035 * When systemd-tmpfiles copies a file tree using the 'C' line type it
12036 will now label every copied file according to the SELinux database.
12037
12038 * When systemd/PID 1 detects it is used in the initrd it will now boot
12039 into initrd.target rather than default.target by default. This should
12040 make it simpler to build initrds with systemd as for many cases the
12041 only difference between a host OS image and an initrd image now is
12042 the presence of the /etc/initrd-release file.
12043
12044 * A new kernel command line option systemd.cpu_affinity= is now
12045 understood. It's equivalent to the CPUAffinity= option in
12046 /etc/systemd/system.conf and allows setting the CPU mask for PID 1
12047 itself and the default for all other processes.
12048
12049 * When systemd/PID 1 is reloaded (with systemctl daemon-reload or
12050 equivalent), the SELinux database is now reloaded, ensuring that
12051 sockets and other file system objects are generated taking the new
12052 database into account.
12053
12054 * systemd/PID 1 accepts a new "systemd.show-status=error" setting, and
12055 "quiet" has been changed to imply that instead of
12056 "systemd.show-status=auto". In this mode, only messages about errors
12057 and significant delays in boot are shown on the console.
12058
12059 * The sd-event.h API gained native support for the new Linux "pidfd"
12060 concept. This permits watching processes using file descriptors
12061 instead of PID numbers, which fixes a number of races and makes
12062 process supervision more robust and efficient. All of systemd's
12063 components will now use pidfds if the kernel supports it for process
12064 watching, with the exception of PID 1 itself, unfortunately. We hope
12065 to move PID 1 to exclusively using pidfds too eventually, but this
12066 requires some more kernel work first. (Background: PID 1 watches
12067 processes using waitid() with the P_ALL flag, and that does not play
12068 together nicely with pidfds yet.)
12069
12070 * Closely related to this, the sd-event.h API gained two new calls
12071 sd_event_source_send_child_signal() (for sending a signal to a
12072 watched process) and sd_event_source_get_child_process_own() (for
12073 marking a process so that it is killed automatically whenever the
12074 event source watching it is freed).
12075
12076 * systemd-networkd gained support for configuring Token Bucket Filter
12077 (TBF) parameters in its qdisc configuration support. Similarly,
12078 support for Stochastic Fairness Queuing (SFQ), Controlled-Delay
12079 Active Queue Management (CoDel), and Fair Queue (FQ) has been added.
12080
12081 * systemd-networkd gained support for Intermediate Functional Block
12082 (IFB) network devices.
12083
12084 * systemd-networkd gained support for configuring multi-path IP routes,
12085 using the new MultiPathRoute= setting in the [Route] section.
12086
12087 * systemd-networkd's DHCPv4 client has been updated to support a new
12088 SendDecline= option. If enabled, duplicate address detection is done
12089 after a DHCP offer is received from the server. If a conflict is
12090 detected, the address is declined. The DHCPv4 client also gained
12091 support for a new RouteMTUBytes= setting that allows to configure the
12092 MTU size to be used for routes generated from DHCPv4 leases.
12093
12094 * The PrefixRoute= setting in systemd-networkd's [Address] section of
12095 .network files has been deprecated, and replaced by AddPrefixRoute=,
12096 with its sense inverted.
12097
12098 * The Gateway= setting of [Route] sections of .network files gained
12099 support for a special new value "_dhcp". If set, the configured
12100 static route uses the gateway host configured via DHCP.
12101
12102 * New User= and SuppressPrefixLength= settings have been implemented
12103 for the [RoutingPolicyRule] section of .network files to configure
12104 source routing based on UID ranges and prefix length, respectively.
12105
12106 * The Type= match property of .link files has been generalized to
12107 always match the device type shown by 'networkctl status', even for
12108 devices where udev does not set DEVTYPE=. This allows e.g. Type=ether
12109 to be used.
12110
12111 * sd-bus gained a new API call sd_bus_message_sensitive() that marks a
12112 D-Bus message object as "sensitive". Those objects are erased from
12113 memory when they are freed. This concept is intended to be used for
12114 messages that contain security sensitive data. A new flag
12115 SD_BUS_VTABLE_SENSITIVE has been introduced as well to mark methods
12116 in sd-bus vtables, causing any incoming and outgoing messages of
12117 those methods to be implicitly marked as "sensitive".
12118
12119 * sd-bus gained a new API call sd_bus_message_dump() for dumping the
12120 contents of a message (or parts thereof) to standard output for
12121 debugging purposes.
12122
12123 * systemd-sysusers gained support for creating users with the primary
12124 group named differently than the user.
12125
12126 * systemd-growfs (i.e. the x-systemd.growfs mount option in /etc/fstab)
12127 gained support for growing XFS partitions. Previously it supported
12128 only ext4 and btrfs partitions.
12129
12130 * The support for /etc/crypttab gained a new x-initrd.attach option. If
12131 set, the specified encrypted volume is unlocked already in the
12132 initrd. This concept corresponds to the x-initrd.mount option in
12133 /etc/fstab.
12134
12135 * systemd-cryptsetup gained native support for unlocking encrypted
12136 volumes utilizing PKCS#11 smartcards, i.e. for example to bind
12137 encryption of volumes to YubiKeys. This is exposed in the new
12138 pkcs11-uri= option in /etc/crypttab.
12139
12140 * The /etc/fstab support in systemd now supports two new mount options
12141 x-systemd.{required,wanted}-by=, for explicitly configuring the units
12142 that the specified mount shall be pulled in by, in place of
12143 the usual local-fs.target/remote-fs.target.
12144
12145 * The https://systemd.io/ web site has been relaunched, directly
12146 populated with most of the documentation included in the systemd
12147 repository. systemd also acquired a new logo, thanks to Tobias
12148 Bernard.
12149
12150 * systemd-udevd gained support for managing "alternative" network
12151 interface names, as supported by new Linux kernels. For the first
12152 time this permits assigning multiple (and longer!) names to a network
12153 interface. systemd-udevd will now by default assign the names
12154 generated via all supported naming schemes to each interface. This
12155 may be further tweaked with .link files and the AlternativeName= and
12156 AlternativeNamesPolicy= settings. Other components of systemd have
12157 been updated to support the new alternative names wherever
12158 appropriate. For example, systemd-nspawn will now generate
12159 alternative interface names for the host-facing side of container
12160 veth links based on the full container name without truncation.
12161
12162 * systemd-nspawn interface naming logic has been updated in another way
12163 too: if the main interface name (i.e. as opposed to new-style
12164 "alternative" names) based on the container name is truncated, a
12165 simple hashing scheme is used to give different interface names to
12166 multiple containers whose names all begin with the same prefix. Since
12167 this changes the primary interface names pointing to containers if
12168 truncation happens, the old scheme may still be requested by
12169 selecting an older naming scheme, via the net.naming_scheme= kernel
12170 command line option.
12171
12172 * PrivateUsers= in service files now works in services run by the
12173 systemd --user per-user instance of the service manager.
12174
12175 * A new per-service sandboxing option ProtectClock= has been added that
12176 locks down write access to the system clock. It takes away device
12177 node access to /dev/rtc as well as the system calls that set the
12178 system clock and the CAP_SYS_TIME and CAP_WAKE_ALARM capabilities.
12179 Note that this option does not affect access to auxiliary services
12180 that allow changing the clock, for example access to
12181 systemd-timedated.
12182
12183 * The systemd-id128 tool gained a new "show" verb for listing or
12184 resolving a number of well-known UUIDs/128-bit IDs, currently mostly
12185 GPT partition table types.
12186
12187 * The Discoverable Partitions Specification has been updated to support
12188 /var and /var/tmp partition discovery. Support for this has been
12189 added to systemd-gpt-auto-generator. For details see:
12190
12191 https://systemd.io/DISCOVERABLE_PARTITIONS
12192
12193 * "systemctl list-unit-files" has been updated to show a new column
12194 with the suggested enablement state based on the vendor preset files
12195 for the respective units.
12196
12197 * "systemctl" gained a new option "--with-dependencies". If specified
12198 commands such as "systemctl status" or "systemctl cat" will now show
12199 all specified units along with all units they depend on.
12200
12201 * networkctl gained support for showing per-interface logs in its
12202 "status" output.
12203
12204 * systemd-networkd-wait-online gained support for specifying the maximum
12205 operational state to wait for, and to wait for interfaces to
12206 disappear.
12207
12208 * The [Match] section of .link and .network files now supports a new
12209 option PermanentMACAddress= which may be used to check against the
12210 permanent MAC address of a network device even if a randomized MAC
12211 address is used.
12212
12213 * The [TrafficControlQueueingDiscipline] section in .network files has
12214 been renamed to [NetworkEmulator] with the "NetworkEmulator" prefix
12215 dropped from the individual setting names.
12216
12217 * Any .link and .network files that have an empty [Match] section (this
12218 also includes empty and commented-out files) will now be
12219 rejected. systemd-udev and systemd-networkd started warning about
12220 such files in version 243.
12221
12222 * systemd-logind will now validate access to the operation of changing
12223 the virtual terminal via a polkit action. By default, only users
12224 with at least one session on a local VT are granted permission.
12225
12226 * When systemd sets up PAM sessions that invoked service processes
12227 shall run in, the pam_setcred() API is now invoked, thus permitting
12228 PAM modules to set additional credentials for the processes.
12229
12230 * portablectl attach/detach verbs now accept --now and --enable options
12231 to combine attachment with enablement and invocation, or detachment
12232 with stopping and disablement.
12233
12234 * UPGRADE ISSUE: a bug where some jobs were trimmed as redundant was
12235 fixed, which in turn exposed bugs in unit configuration of services
12236 which have Type=oneshot and should only run once, but do not have
12237 RemainAfterExit=yes set. Without RemainAfterExit=yes, a one-shot
12238 service may be started again after exiting successfully, for example
12239 as a dependency in another transaction. Affected services included
12240 some internal systemd services (most notably
12241 systemd-vconsole-setup.service, which was updated to have
12242 RemainAfterExit=yes), and plymouth-start.service. Please ensure that
12243 plymouth has been suitably updated or patched before upgrading to
12244 this systemd release. See
12245 https://bugzilla.redhat.com/show_bug.cgi?id=1807771 for some
12246 additional discussion.
12247
12248 Contributions from: AJ Bagwell, Alin Popa, Andreas Rammhold, Anita
12249 Zhang, Ansgar Burchardt, Antonio Russo, Arian van Putten, Ashley Davis,
12250 Balint Reczey, Bart Willems, Bastien Nocera, Benjamin Dahlhoff, Charles
12251 (Chas) Williams, cheese1, Chris Down, Chris Murphy, Christian Ehrhardt,
12252 Christian Göttsche, cvoinf, Daan De Meyer, Daniele Medri, Daniel Rusek,
12253 Daniel Shahaf, Dann Frazier, Dan Streetman, Dariusz Gadomski, David
12254 Michael, Dimitri John Ledkov, Emmanuel Bourg, Evgeny Vereshchagin,
12255 ezst036, Felipe Sateler, Filipe Brandenburger, Florian Klink, Franck
12256 Bui, Fran Dieguez, Frantisek Sumsal, Greg "GothAck" Miell, Guilhem
12257 Lettron, Guillaume Douézan-Grard, Hans de Goede, HATAYAMA Daisuke, Iain
12258 Lane, James Buren, Jan Alexander Steffens (heftig), Jérémy Rosen, Jin
12259 Park, Jun'ichi Nomura, Kai Krakow, Kevin Kuehler, Kevin P. Fleming,
12260 Lennart Poettering, Leonid Bloch, Leonid Evdokimov, lothrond, Luca
12261 Boccassi, Lukas K, Lynn Kirby, Mario Limonciello, Mark Deneen, Matthew
12262 Leeds, Michael Biebl, Michal Koutný, Michal Sekletár, Mike Auty, Mike
12263 Gilbert, mtron, nabijaczleweli, Naïm Favier, Nate Jones, Norbert Lange,
12264 Oliver Giles, Paul Davey, Paul Menzel, Peter Hutterer, Piotr Drąg, Rafa
12265 Couto, Raphael, rhn, Robert Scheck, Rocka, Romain Naour, Ryan Attard,
12266 Sascha Dewald, Shengjing Zhu, Slava Kardakov, Spencer Michaels, Sylvain
12267 Plantefeve, Stanislav Angelovič, Susant Sahani, Thomas Haller, Thomas
12268 Schmitt, Timo Schlüßler, Timo Wilken, Tobias Bernard, Tobias Klauser,
12269 Tobias Stoeckmann, Topi Miettinen, tsia, WataruMatsuoka, Wieland
12270 Hoffmann, Wilhelm Schuster, Will Fleming, xduugu, Yong Cong Sin, Yuri
12271 Chornoivan, Yu Watanabe, Zach Smith, Zbigniew Jędrzejewski-Szmek, Zeyu
12272 DONG
12273
12274 – Warsaw, 2020-03-06
12275
12276 CHANGES WITH 244:
12277
12278 * Support for the cpuset cgroups v2 controller has been added.
12279 Processes may be restricted to specific CPUs using the new
12280 AllowedCPUs= setting, and to specific memory NUMA nodes using the new
12281 AllowedMemoryNodes= setting.
12282
12283 * The signal used in restart jobs (as opposed to e.g. stop jobs) may
12284 now be configured using a new RestartKillSignal= setting. This
12285 allows units which signals to request termination to implement
12286 different behaviour when stopping in preparation for a restart.
12287
12288 * "systemctl clean" may now be used also for socket, mount, and swap
12289 units.
12290
12291 * systemd will also read configuration options from the EFI variable
12292 SystemdOptions. This may be used to configure systemd behaviour when
12293 modifying the kernel command line is inconvenient, but configuration
12294 on disk is read too late, for example for the options related to
12295 cgroup hierarchy setup. 'bootctl systemd-efi-options' may be used to
12296 set the EFI variable.
12297
12298 * systemd will now disable printk ratelimits in early boot. This should
12299 allow us to capture more logs from the early boot phase where normal
12300 storage is not available and the kernel ring buffer is used for
12301 logging. Configuration on the kernel command line has higher priority
12302 and overrides the systemd setting.
12303
12304 systemd programs which log to /dev/kmsg directly use internal
12305 ratelimits to prevent runaway logging. (Normally this is only used
12306 during early boot, so in practice this change has very little
12307 effect.)
12308
12309 * Unit files now support top level dropin directories of the form
12310 <unit_type>.d/ (e.g. service.d/) that may be used to add configuration
12311 that affects all corresponding unit files.
12312
12313 * systemctl gained support for 'stop --job-mode=triggering' which will
12314 stop the specified unit and any units which could trigger it.
12315
12316 * Unit status display now includes units triggering and triggered by
12317 the unit being shown.
12318
12319 * The RuntimeMaxSec= setting is now supported by scopes, not just
12320 .service units. This is particularly useful for PAM sessions which
12321 create a scope unit for the user login. systemd.runtime_max_sec=
12322 setting may used with the pam_systemd module to limit the duration
12323 of the PAM session, for example for time-limited logins.
12324
12325 * A new @pkey system call group is now defined to make it easier to
12326 allow-list memory protection syscalls for containers and services
12327 which need to use them.
12328
12329 * systemd-udevd: removed the 30s timeout for killing stale workers on
12330 exit. systemd-udevd now waits for workers to finish. The hard-coded
12331 exit timeout of 30s was too short for some large installations, where
12332 driver initialization could be prematurely interrupted during initrd
12333 processing if the root file system had been mounted and init was
12334 preparing to switch root. If udevd is run without systemd and workers
12335 are hanging while udevd receives an exit signal, udevd will now exit
12336 when udev.event_timeout is reached for the last hanging worker. With
12337 systemd, the exit timeout can additionally be configured using
12338 TimeoutStopSec= in systemd-udevd.service.
12339
12340 * udev now provides a program (fido_id) that identifies FIDO CTAP1
12341 ("U2F")/CTAP2 security tokens based on the usage declared in their
12342 report and descriptor and outputs suitable environment variables.
12343 This replaces the externally maintained allow lists of all known
12344 security tokens that were used previously.
12345
12346 * Automatically generated autosuspend udev rules for allow-listed
12347 devices have been imported from the Chromium OS project. This should
12348 improve power saving with many more devices.
12349
12350 * udev gained a new "CONST{key}=value" setting that allows matching
12351 against system-wide constants without forking a helper binary.
12352 Currently "arch" and "virt" keys are supported.
12353
12354 * udev now opens CDROMs in non-exclusive mode when querying their
12355 capabilities. This should fix issues where other programs trying to
12356 use the CDROM cannot gain access to it, but carries a risk of
12357 interfering with programs writing to the disk, if they did not open
12358 the device in exclusive mode as they should.
12359
12360 * systemd-networkd does not create a default route for IPv4 link local
12361 addressing anymore. The creation of the route was unexpected and was
12362 breaking routing in various cases, but people who rely on it being
12363 created implicitly will need to adjust. Such a route may be requested
12364 with DefaultRouteOnDevice=yes.
12365
12366 Similarly, systemd-networkd will not assign a link-local IPv6 address
12367 when IPv6 link-local routing is not enabled.
12368
12369 * Receive and transmit buffers may now be configured on links with
12370 the new RxBufferSize= and TxBufferSize= settings.
12371
12372 * systemd-networkd may now advertise additional IPv6 routes. A new
12373 [IPv6RoutePrefix] section with Route= and LifetimeSec= options is
12374 now supported.
12375
12376 * systemd-networkd may now configure "next hop" routes using the
12377 [NextHop] section and Gateway= and Id= settings.
12378
12379 * systemd-networkd will now retain DHCP config on restarts by default
12380 (but this may be overridden using the KeepConfiguration= setting).
12381 The default for SendRelease= has been changed to true.
12382
12383 * The DHCPv4 client now uses the OPTION_INFORMATION_REFRESH_TIME option
12384 received from the server.
12385
12386 The client will use the received SIP server list if UseSIP=yes is
12387 set.
12388
12389 The client may be configured to request specific options from the
12390 server using a new RequestOptions= setting.
12391
12392 The client may be configured to send arbitrary options to the server
12393 using a new SendOption= setting.
12394
12395 A new IPServiceType= setting has been added to configure the "IP
12396 service type" value used by the client.
12397
12398 * The DHCPv6 client learnt a new PrefixDelegationHint= option to
12399 request prefix hints in the DHCPv6 solicitation.
12400
12401 * The DHCPv4 server may be configured to send arbitrary options using
12402 a new SendOption= setting.
12403
12404 * The DHCPv4 server may now be configured to emit SIP server list using
12405 the new EmitSIP= and SIP= settings.
12406
12407 * systemd-networkd and networkctl may now renew DHCP leases on demand.
12408 networkctl has a new 'networkctl renew' verb.
12409
12410 * systemd-networkd may now reconfigure links on demand. networkctl
12411 gained two new verbs: "reload" will reload the configuration, and
12412 "reconfigure DEVICE…" will reconfigure one or more devices.
12413
12414 * .network files may now match on SSID and BSSID of a wireless network,
12415 i.e. the access point name and hardware address using the new SSID=
12416 and BSSID= options. networkctl will display the current SSID and
12417 BSSID for wireless links.
12418
12419 .network files may also match on the wireless network type using the
12420 new WLANInterfaceType= option.
12421
12422 * systemd-networkd now includes default configuration that enables
12423 link-local addressing when connected to an ad-hoc wireless network.
12424
12425 * systemd-networkd may configure the Traffic Control queueing
12426 disciplines in the kernel using the new
12427 [TrafficControlQueueingDiscipline] section and Parent=,
12428 NetworkEmulatorDelaySec=, NetworkEmulatorDelayJitterSec=,
12429 NetworkEmulatorPacketLimit=, NetworkEmulatorLossRate=,
12430 NetworkEmulatorDuplicateRate= settings.
12431
12432 * systemd-tmpfiles gained a new w+ setting to append to files.
12433
12434 * systemd-analyze dump will now report when the memory configuration in
12435 the kernel does not match what systemd has configured (usually,
12436 because some external program has modified the kernel configuration
12437 on its own).
12438
12439 * systemd-analyze gained a new --base-time= switch instructs the
12440 'calendar' verb to resolve times relative to that timestamp instead
12441 of the present time.
12442
12443 * journalctl --update-catalog now produces deterministic output (making
12444 reproducible image builds easier).
12445
12446 * A new devicetree-overlay setting is now documented in the Boot Loader
12447 Specification.
12448
12449 * The default value of the WatchdogSec= setting used in systemd
12450 services (the ones bundled with the project itself) may be set at
12451 configuration time using the -Dservice-watchdog= setting. If set to
12452 empty, the watchdogs will be disabled.
12453
12454 * systemd-resolved validates IP addresses in certificates now when GnuTLS
12455 is being used.
12456
12457 * libcryptsetup >= 2.0.1 is now required.
12458
12459 * A configuration option -Duser-path= may be used to override the $PATH
12460 used by the user service manager. The default is again to use the same
12461 path as the system manager.
12462
12463 * The systemd-id128 tool gained a new switch "-u" (or "--uuid") for
12464 outputting the 128-bit IDs in UUID format (i.e. in the "canonical
12465 representation").
12466
12467 * Service units gained a new sandboxing option ProtectKernelLogs= which
12468 makes sure the program cannot get direct access to the kernel log
12469 buffer anymore, i.e. the syslog() system call (not to be confused
12470 with the API of the same name in libc, which is not affected), the
12471 /proc/kmsg and /dev/kmsg nodes and the CAP_SYSLOG capability are made
12472 inaccessible to the service. It's recommended to enable this setting
12473 for all services that should not be able to read from or write to the
12474 kernel log buffer, which are probably almost all.
12475
12476 Contributions from: Aaron Plattner, Alcaro, Anita Zhang, Balint Reczey,
12477 Bastien Nocera, Baybal Ni, Benjamin Bouvier, Benjamin Gilbert, Carlo
12478 Teubner, cbzxt, Chen Qi, Chris Down, Christian Rebischke, Claudio
12479 Zumbo, ClydeByrdIII, crashfistfight, Cyprien Laplace, Daniel Edgecumbe,
12480 Daniel Gorbea, Daniel Rusek, Daniel Stuart, Dan Streetman, David
12481 Pedersen, David Tardon, Dimitri John Ledkov, Dominique Martinet, Donald
12482 A. Cupp Jr, Evgeny Vereshchagin, Fabian Henneke, Filipe Brandenburger,
12483 Franck Bui, Frantisek Sumsal, Georg Müller, Hans de Goede, Haochen
12484 Tong, HATAYAMA Daisuke, Iwan Timmer, Jan Janssen, Jan Kundrát, Jan
12485 Synacek, Jan Tojnar, Jay Strict, Jérémy Rosen, Jóhann B. Guðmundsson,
12486 Jonas Jelten, Jonas Thelemann, Justin Trudell, J. Xing, Kai-Heng Feng,
12487 Kenneth D'souza, Kevin Becker, Kevin Kuehler, Lennart Poettering,
12488 Léonard Gérard, Lorenz Bauer, Luca Boccassi, Maciej Stanczew, Mario
12489 Limonciello, Marko Myllynen, Mark Stosberg, Martin Wilck, matthiasroos,
12490 Michael Biebl, Michael Olbrich, Michael Tretter, Michal Sekletar,
12491 Michal Sekletár, Michal Suchanek, Mike Gilbert, Mike Kazantsev, Nicolas
12492 Douma, nikolas, Norbert Lange, pan93412, Pascal de Bruijn, Paul Menzel,
12493 Pavel Hrdina, Peter Wu, Philip Withnall, Piotr Drąg, Rafael Fontenelle,
12494 Renaud Métrich, Riccardo Schirone, RoadrunnerWMC, Ronan Pigott, Ryan
12495 Attard, Sebastian Wick, Serge, Siddharth Chandrasekara, Steve Ramage,
12496 Steve Traylen, Susant Sahani, Thibault Nélis, Tim Teichmann, Tom
12497 Fitzhenry, Tommy J, Torsten Hilbrich, Vito Caputo, ypf791, Yu Watanabe,
12498 Zach Smith, Zbigniew Jędrzejewski-Szmek
12499
12500 – Warsaw, 2019-11-29
12501
12502 CHANGES WITH 243:
12503
12504 * This release enables unprivileged programs (i.e. requiring neither
12505 setuid nor file capabilities) to send ICMP Echo (i.e. ping) requests
12506 by turning on the "net.ipv4.ping_group_range" sysctl of the Linux
12507 kernel for the whole UNIX group range, i.e. all processes. This
12508 change should be reasonably safe, as the kernel support for it was
12509 specifically implemented to allow safe access to ICMP Echo for
12510 processes lacking any privileges. If this is not desirable, it can be
12511 disabled again by setting the parameter to "1 0".
12512
12513 * Previously, filters defined with SystemCallFilter= would have the
12514 effect that any calling of an offending system call would terminate
12515 the calling thread. This behaviour never made much sense, since
12516 killing individual threads of unsuspecting processes is likely to
12517 create more problems than it solves. With this release the default
12518 action changed from killing the thread to killing the whole
12519 process. For this to work correctly both a kernel version (>= 4.14)
12520 and a libseccomp version (>= 2.4.0) supporting this new seccomp
12521 action is required. If an older kernel or libseccomp is used the old
12522 behaviour continues to be used. This change does not affect any
12523 services that have no system call filters defined, or that use
12524 SystemCallErrorNumber= (and thus see EPERM or another error instead
12525 of being killed when calling an offending system call). Note that
12526 systemd documentation always claimed that the whole process is
12527 killed. With this change behaviour is thus adjusted to match the
12528 documentation.
12529
12530 * On 64 bit systems, the "kernel.pid_max" sysctl is now bumped to
12531 4194304 by default, i.e. the full 22bit range the kernel allows, up
12532 from the old 16-bit range. This should improve security and
12533 robustness, as PID collisions are made less likely (though certainly
12534 still possible). There are rumours this might create compatibility
12535 problems, though at this moment no practical ones are known to
12536 us. Downstream distributions are hence advised to undo this change in
12537 their builds if they are concerned about maximum compatibility, but
12538 for everybody else we recommend leaving the value bumped. Besides
12539 improving security and robustness this should also simplify things as
12540 the maximum number of allowed concurrent tasks was previously bounded
12541 by both "kernel.pid_max" and "kernel.threads-max" and now effectively
12542 only a single knob is left ("kernel.threads-max"). There have been
12543 concerns that usability is affected by this change because larger PID
12544 numbers are harder to type, but we believe the change from 5 digits
12545 to 7 digits doesn't hamper usability.
12546
12547 * MemoryLow= and MemoryMin= gained hierarchy-aware counterparts,
12548 DefaultMemoryLow= and DefaultMemoryMin=, which can be used to
12549 hierarchically set default memory protection values for a particular
12550 subtree of the unit hierarchy.
12551
12552 * Memory protection directives can now take a value of zero, allowing
12553 explicit opting out of a default value propagated by an ancestor.
12554
12555 * systemd now defaults to the "unified" cgroup hierarchy setup during
12556 build-time, i.e. -Ddefault-hierarchy=unified is now the build-time
12557 default. Previously, -Ddefault-hierarchy=hybrid was the default. This
12558 change reflects the fact that cgroupsv2 support has matured
12559 substantially in both systemd and in the kernel, and is clearly the
12560 way forward. Downstream production distributions might want to
12561 continue to use -Ddefault-hierarchy=hybrid (or even =legacy) for
12562 their builds as unfortunately the popular container managers have not
12563 caught up with the kernel API changes.
12564
12565 * Man pages are not built by default anymore (html pages were already
12566 disabled by default), to make development builds quicker. When
12567 building systemd for a full installation with documentation, meson
12568 should be called with -Dman=true and/or -Dhtml=true as appropriate.
12569 The default was changed based on the assumption that quick one-off or
12570 repeated development builds are much more common than full optimized
12571 builds for installation, and people need to pass various other
12572 options to when doing "proper" builds anyway, so the gain from making
12573 development builds quicker is bigger than the one time disruption for
12574 packagers.
12575
12576 Two scripts are created in the *build* directory to generate and
12577 preview man and html pages on demand, e.g.:
12578
12579 build/man/man systemctl
12580 build/man/html systemd.index
12581
12582 * libidn2 is used by default if both libidn2 and libidn are installed.
12583 Please use -Dlibidn=true if libidn is preferred.
12584
12585 * The D-Bus "wire format" of the CPUAffinity= attribute is changed on
12586 big-endian machines. Before, bytes were written and read in native
12587 machine order as exposed by the native libc __cpu_mask interface.
12588 Now, little-endian order is always used (CPUs 0–7 are described by
12589 bits 0–7 in byte 0, CPUs 8–15 are described by byte 1, and so on).
12590 This change fixes D-Bus calls that cross endianness boundary.
12591
12592 The presentation format used for CPUAffinity= by "systemctl show" and
12593 "systemd-analyze dump" is changed to present CPU indices instead of
12594 the raw __cpu_mask bitmask. For example, CPUAffinity=0-1 would be
12595 shown as CPUAffinity=03000000000000000000000000000… (on
12596 little-endian) or CPUAffinity=00000000000000300000000000000… (on
12597 64-bit big-endian), and is now shown as CPUAffinity=0-1, matching the
12598 input format. The maximum integer that will be printed in the new
12599 format is 8191 (four digits), while the old format always used a very
12600 long number (with the length varying by architecture), so they can be
12601 unambiguously distinguished.
12602
12603 * /usr/sbin/halt.local is no longer supported. Implementation in
12604 distributions was inconsistent and it seems this functionality was
12605 very rarely used.
12606
12607 To replace this functionality, users should:
12608 - either define a new unit and make it a dependency of final.target
12609 (systemctl add-wants final.target my-halt-local.service)
12610 - or move the shutdown script to /usr/lib/systemd/system-shutdown/
12611 and ensure that it accepts "halt", "poweroff", "reboot", and
12612 "kexec" as an argument, see the description in systemd-shutdown(8).
12613
12614 * When a [Match] section in .link or .network file is empty (contains
12615 no match patterns), a warning will be emitted. Please add any "match
12616 all" pattern instead, e.g. OriginalName=* or Name=* in case all
12617 interfaces should really be matched.
12618
12619 * A new setting NUMAPolicy= may be used to set process memory
12620 allocation policy. This setting can be specified in
12621 /etc/systemd/system.conf and hence will set the default policy for
12622 PID1. The default policy can be overridden on a per-service
12623 basis. The related setting NUMAMask= is used to specify NUMA node
12624 mask that should be associated with the selected policy.
12625
12626 * PID 1 will now listen to Out-Of-Memory (OOM) events the kernel
12627 generates when processes it manages are reaching their memory limits,
12628 and will place their units in a special state, and optionally kill or
12629 stop the whole unit.
12630
12631 * The service manager will now expose bus properties for the IO
12632 resources used by units. This information is also shown in "systemctl
12633 status" now (for services that have IOAccounting=yes set). Moreover,
12634 the IO accounting data is included in the resource log message
12635 generated whenever a unit stops.
12636
12637 * Units may now configure an explicit timeout to wait for when killed
12638 with SIGABRT, for example when a service watchdog is hit. Previously,
12639 the regular TimeoutStopSec= timeout was applied in this case too —
12640 now a separate timeout may be set using TimeoutAbortSec=.
12641
12642 * Services may now send a special WATCHDOG=trigger message with
12643 sd_notify() to trigger an immediate "watchdog missed" event, and thus
12644 trigger service termination. This is useful both for testing watchdog
12645 handling, but also for defining error paths in services, that shall
12646 be handled the same way as watchdog events.
12647
12648 * There are two new per-unit settings IPIngressFilterPath= and
12649 IPEgressFilterPath= which allow configuration of a BPF program
12650 (usually by specifying a path to a program uploaded to /sys/fs/bpf/)
12651 to apply to the IP packet ingress/egress path of all processes of a
12652 unit. This is useful to allow running systemd services with BPF
12653 programs set up externally.
12654
12655 * systemctl gained a new "clean" verb for removing the state, cache,
12656 runtime or logs directories of a service while it is terminated. The
12657 new verb may also be used to remove the state maintained on disk for
12658 timer units that have Persistent= configured.
12659
12660 * During the last phase of shutdown systemd will now automatically
12661 increase the log level configured in the "kernel.printk" sysctl so
12662 that any relevant loggable events happening during late shutdown are
12663 made visible. Previously, loggable events happening so late during
12664 shutdown were generally lost if the "kernel.printk" sysctl was set to
12665 high thresholds, as regular logging daemons are terminated at that
12666 time and thus nothing is written to disk.
12667
12668 * If processes terminated during the last phase of shutdown do not exit
12669 quickly systemd will now show their names after a short time, to make
12670 debugging easier. After a longer timeout they are forcibly killed,
12671 as before.
12672
12673 * journalctl (and the other tools that display logs) will now highlight
12674 warnings in yellow (previously, both LOG_NOTICE and LOG_WARNING where
12675 shown in bright bold, now only LOG_NOTICE is). Moreover, audit logs
12676 are now shown in blue color, to separate them visually from regular
12677 logs. References to configuration files are now turned into clickable
12678 links on terminals that support that.
12679
12680 * systemd-journald will now stop logging to /var/log/journal during
12681 shutdown when /var/ is on a separate mount, so that it can be
12682 unmounted safely during shutdown.
12683
12684 * systemd-resolved gained support for a new 'strict' DNS-over-TLS mode.
12685
12686 * systemd-resolved "Cache=" configuration option in resolved.conf has
12687 been extended to also accept the 'no-negative' value. Previously,
12688 only a boolean option was allowed (yes/no), having yes as the
12689 default. If this option is set to 'no-negative', negative answers are
12690 not cached while the old cache heuristics are used positive answers.
12691 The default remains unchanged.
12692
12693 * The predictable naming scheme for network devices now supports
12694 generating predictable names for "netdevsim" devices.
12695
12696 Moreover, the "en" prefix was dropped from the ID_NET_NAME_ONBOARD
12697 udev property.
12698
12699 Those two changes form a new net.naming_scheme= entry. Distributions
12700 which want to preserve naming stability may want to set the
12701 -Ddefault-net-naming-scheme= configuration option.
12702
12703 * systemd-networkd now supports MACsec, nlmon, IPVTAP and Xfrm
12704 interfaces natively.
12705
12706 * systemd-networkd's bridge FDB support now allows configuration of a
12707 destination address for each entry (Destination=), as well as the
12708 VXLAN VNI (VNI=), as well as an option to declare what an entry is
12709 associated with (AssociatedWith=).
12710
12711 * systemd-networkd's DHCPv4 support now understands a new MaxAttempts=
12712 option for configuring the maximum number of DHCP lease requests. It
12713 also learnt a new BlackList= option for deny-listing DHCP servers (a
12714 similar setting has also been added to the IPv6 RA client), as well
12715 as a SendRelease= option for configuring whether to send a DHCP
12716 RELEASE message when terminating.
12717
12718 * systemd-networkd's DHCPv4 and DHCPv6 stacks can now be configured
12719 separately in the [DHCPv4] and [DHCPv6] sections.
12720
12721 * systemd-networkd's DHCP support will now optionally create an
12722 implicit host route to the DNS server specified in the DHCP lease, in
12723 addition to the routes listed explicitly in the lease. This should
12724 ensure that in multi-homed systems DNS traffic leaves the systems on
12725 the interface that acquired the DNS server information even if other
12726 routes such as default routes exist. This behaviour may be turned on
12727 with the new RoutesToDNS= option.
12728
12729 * systemd-networkd's VXLAN support gained a new option
12730 GenericProtocolExtension= for enabling VXLAN Generic Protocol
12731 Extension support, as well as IPDoNotFragment= for setting the IP
12732 "Don't fragment" bit on outgoing packets. A similar option has been
12733 added to the GENEVE support.
12734
12735 * In systemd-networkd's [Route] section you may now configure
12736 FastOpenNoCookie= for configuring per-route TCP fast-open support, as
12737 well as TTLPropagate= for configuring Label Switched Path (LSP) TTL
12738 propagation. The Type= setting now supports local, broadcast,
12739 anycast, multicast, any, xresolve routes, too.
12740
12741 * systemd-networkd's [Network] section learnt a new option
12742 DefaultRouteOnDevice= for automatically configuring a default route
12743 onto the network device.
12744
12745 * systemd-networkd's bridging support gained two new options ProxyARP=
12746 and ProxyARPWifi= for configuring proxy ARP behaviour as well as
12747 MulticastRouter= for configuring multicast routing behaviour. A new
12748 option MulticastIGMPVersion= may be used to change bridge's multicast
12749 Internet Group Management Protocol (IGMP) version.
12750
12751 * systemd-networkd's FooOverUDP support gained the ability to configure
12752 local and peer IP addresses via Local= and Peer=. A new option
12753 PeerPort= may be used to configure the peer's IP port.
12754
12755 * systemd-networkd's TUN support gained a new setting VnetHeader= for
12756 tweaking Generic Segment Offload support.
12757
12758 * The address family for policy rules may be specified using the new
12759 Family= option in the [RoutingPolicyRule] section.
12760
12761 * networkctl gained a new "delete" command for removing virtual network
12762 devices, as well as a new "--stats" switch for showing device
12763 statistics.
12764
12765 * networkd.conf gained a new setting SpeedMeter= and
12766 SpeedMeterIntervalSec=, to measure bitrate of network interfaces. The
12767 measured speed may be shown by 'networkctl status'.
12768
12769 * "networkctl status" now displays MTU and queue lengths, and more
12770 detailed information about VXLAN and bridge devices.
12771
12772 * systemd-networkd's .network and .link files gained a new Property=
12773 setting in the [Match] section, to match against devices with
12774 specific udev properties.
12775
12776 * systemd-networkd's tunnel support gained a new option
12777 AssignToLoopback= for selecting whether to use the loopback device
12778 "lo" as underlying device.
12779
12780 * systemd-networkd's MACAddress= setting in the [Neighbor] section has
12781 been renamed to LinkLayerAddress=, and it now allows configuration of
12782 IP addresses, too.
12783
12784 * systemd-networkd's handling of the kernel's disable_ipv6 sysctl is
12785 simplified: systemd-networkd will disable the sysctl (enable IPv6) if
12786 IPv6 configuration (static or DHCPv6) was found for a given
12787 interface. It will not touch the sysctl otherwise.
12788
12789 * The order of entries is $PATH used by the user manager instance was
12790 changed to put bin/ entries before the corresponding sbin/ entries.
12791 It is recommended to not rely on this order, and only ever have one
12792 binary with a given name in the system paths under /usr.
12793
12794 * A new tool systemd-network-generator has been added that may generate
12795 .network, .netdev and .link files from IP configuration specified on
12796 the kernel command line in the format used by Dracut.
12797
12798 * The CriticalConnection= setting in .network files is now deprecated,
12799 and replaced by a new KeepConfiguration= setting which allows more
12800 detailed configuration of the IP configuration to keep in place.
12801
12802 * systemd-analyze gained a few new verbs:
12803
12804 - "systemd-analyze timestamp" parses and converts timestamps. This is
12805 similar to the existing "systemd-analyze calendar" command which
12806 does the same for recurring calendar events.
12807
12808 - "systemd-analyze timespan" parses and converts timespans (i.e.
12809 durations as opposed to points in time).
12810
12811 - "systemd-analyze condition" will parse and test ConditionXYZ=
12812 expressions.
12813
12814 - "systemd-analyze exit-status" will parse and convert exit status
12815 codes to their names and back.
12816
12817 - "systemd-analyze unit-files" will print a list of all unit
12818 file paths and unit aliases.
12819
12820 * SuccessExitStatus=, RestartPreventExitStatus=, and
12821 RestartForceExitStatus= now accept exit status names (e.g. "DATAERR"
12822 is equivalent to "65"). Those exit status name mappings may be
12823 displayed with the systemd-analyze exit-status verb describe above.
12824
12825 * systemd-logind now exposes a per-session SetBrightness() bus call,
12826 which may be used to securely change the brightness of a kernel
12827 brightness device, if it belongs to the session's seat. By using this
12828 call unprivileged clients can make changes to "backlight" and "leds"
12829 devices securely with strict requirements on session membership.
12830 Desktop environments may use this to generically make brightness
12831 changes to such devices without shipping private SUID binaries or
12832 udev rules for that purpose.
12833
12834 * "udevadm info" gained a --wait-for-initialization switch to wait for
12835 a device to be initialized.
12836
12837 * systemd-hibernate-resume-generator will now look for resumeflags= on
12838 the kernel command line, which is similar to rootflags= and may be
12839 used to configure device timeout for the hibernation device.
12840
12841 * sd-event learnt a new API call sd_event_source_disable_unref() for
12842 disabling and unref'ing an event source in a single function. A
12843 related call sd_event_source_disable_unrefp() has been added for use
12844 with gcc's cleanup extension.
12845
12846 * The sd-id128.h public API gained a new definition
12847 SD_ID128_UUID_FORMAT_STR for formatting a 128-bit ID in UUID format
12848 with printf().
12849
12850 * "busctl introspect" gained a new switch --xml-interface for dumping
12851 XML introspection data unmodified.
12852
12853 * PID 1 may now show the unit name instead of the unit description
12854 string in its status output during boot. This may be configured in
12855 the StatusUnitFormat= setting in /etc/systemd/system.conf or the
12856 kernel command line option systemd.status_unit_format=.
12857
12858 * PID 1 now understands a new option KExecWatchdogSec= in
12859 /etc/systemd/system.conf to set a watchdog timeout for kexec reboots.
12860 Previously watchdog functionality was only available for regular
12861 reboots. The new setting defaults to off, because we don't know in
12862 the general case if the watchdog will be reset after kexec (some
12863 drivers do reset it, but not all), and the new userspace might not be
12864 configured to handle the watchdog.
12865
12866 Moreover, the old ShutdownWatchdogSec= setting has been renamed to
12867 RebootWatchdogSec= to more clearly communicate what it is about. The
12868 old name is still accepted for compatibility.
12869
12870 * The systemd.debug_shell kernel command line option now optionally
12871 takes a tty name to spawn the debug shell on, which allows a
12872 different tty to be selected than the built-in default.
12873
12874 * Service units gained a new ExecCondition= setting which will run
12875 before ExecStartPre= and either continue execution of the unit (for
12876 clean exit codes), stop execution without marking the unit failed
12877 (for exit codes 1 through 254), or stop execution and fail the unit
12878 (for exit code 255 or abnormal termination).
12879
12880 * A new service systemd-pstore.service has been added that pulls data
12881 from /sys/fs/pstore/ and saves it to /var/lib/pstore for later
12882 review.
12883
12884 * timedatectl gained new verbs for configuring per-interface NTP
12885 service configuration for systemd-timesyncd.
12886
12887 * "localectl list-locales" won't list non-UTF-8 locales anymore. It's
12888 2019. (You can set non-UTF-8 locales though, if you know their name.)
12889
12890 * If variable assignments in sysctl.d/ files are prefixed with "-" any
12891 failures to apply them are now ignored.
12892
12893 * systemd-random-seed.service now optionally credits entropy when
12894 applying the seed to the system. Set $SYSTEMD_RANDOM_SEED_CREDIT to
12895 true for the service to enable this behaviour, but please consult the
12896 documentation first, since this comes with a couple of caveats.
12897
12898 * systemd-random-seed.service is now a synchronization point for full
12899 initialization of the kernel's entropy pool. Services that require
12900 /dev/urandom to be correctly initialized should be ordered after this
12901 service.
12902
12903 * The systemd-boot boot loader has been updated to optionally maintain
12904 a random seed file in the EFI System Partition (ESP). During the boot
12905 phase, this random seed is read and updated with a new seed
12906 cryptographically derived from it. Another derived seed is passed to
12907 the OS. The latter seed is then credited to the kernel's entropy pool
12908 very early during userspace initialization (from PID 1). This allows
12909 systems to boot up with a fully initialized kernel entropy pool from
12910 earliest boot on, and thus entirely removes all entropy pool
12911 initialization delays from systems using systemd-boot. Special care
12912 is taken to ensure different seeds are derived on system images
12913 replicated to multiple systems. "bootctl status" will show whether
12914 a seed was received from the boot loader.
12915
12916 * bootctl gained two new verbs:
12917
12918 - "bootctl random-seed" will generate the file in ESP and an EFI
12919 variable to allow a random seed to be passed to the OS as described
12920 above.
12921
12922 - "bootctl is-installed" checks whether systemd-boot is currently
12923 installed.
12924
12925 * bootctl will warn if it detects that boot entries are misconfigured
12926 (for example if the kernel image was removed without purging the
12927 bootloader entry).
12928
12929 * A new document has been added describing systemd's use and support
12930 for the kernel's entropy pool subsystem:
12931
12932 https://systemd.io/RANDOM_SEEDS
12933
12934 * When the system is hibernated the swap device to write the
12935 hibernation image to is now automatically picked from all available
12936 swap devices, preferring the swap device with the highest configured
12937 priority over all others, and picking the device with the most free
12938 space if there are multiple devices with the highest priority.
12939
12940 * /etc/crypttab support has learnt a new keyfile-timeout= per-device
12941 option that permits selecting the timeout how long to wait for a
12942 device with an encryption key before asking for the password.
12943
12944 * IOWeight= has learnt to properly set the IO weight when using the
12945 BFQ scheduler officially found in kernels 5.0+.
12946
12947 * A new mailing list has been created for reporting of security issues:
12948 [email protected]. For mode details, see
12949 https://systemd.io/CONTRIBUTING#security-vulnerability-reports.
12950
12951 Contributions from: Aaron Barany, Adrian Bunk, Alan Jenkins, Albrecht
12952 Lohofener, Andrej Valek, Anita Zhang, Arian van Putten, Balint Reczey,
12953 Bastien Nocera, Ben Boeckel, Benjamin Robin, camoz, Chen Qi, Chris
12954 Chiu, Chris Down, Christian Göttsche, Christian Kellner, Clinton Roy,
12955 Connor Reeder, Daniel Black, Daniel Lublin, Daniele Medri, Dan
12956 Streetman, Dave Reisner, Dave Ross, David Art, David Tardon, Debarshi
12957 Ray, Dimitri John Ledkov, Dominick Grift, Donald Buczek, Douglas
12958 Christman, Eric DeVolder, EtherGraf, Evgeny Vereshchagin, Feldwor,
12959 Felix Riemann, Florian Dollinger, Francesco Pennica, Franck Bui,
12960 Frantisek Sumsal, Franz Pletz, frederik, Hans de Goede, Iago López
12961 Galeiras, Insun Pyo, Ivan Shapovalov, Iwan Timmer, Jack, Jakob
12962 Unterwurzacher, Jan Chren, Jan Klötzke, Jan Losinski, Jan Pokorný, Jan
12963 Synacek, Jan-Michael Brummer, Jeka Pats, Jeremy Soller, Jérémy Rosen,
12964 Jiri Pirko, Joe Lin, Joerg Behrmann, Joe Richey, Jóhann B. Guðmundsson,
12965 Johannes Christ, Johannes Schmitz, Jonathan Rouleau, Jorge Niedbalski,
12966 Jörg Thalheim, Kai Krakow, Kai Lüke, Karel Zak, Kashyap Chamarthy,
12967 Krayushkin Konstantin, Lennart Poettering, Lubomir Rintel, Luca
12968 Boccassi, Luís Ferreira, Marc-André Lureau, Markus Felten, Martin Pitt,
12969 Matthew Leeds, Mattias Jernberg, Michael Biebl, Michael Olbrich,
12970 Michael Prokop, Michael Stapelberg, Michael Zhivich, Michal Koutný,
12971 Michal Sekletar, Mike Gilbert, Milan Broz, Miroslav Lichvar, mpe85,
12972 Mr-Foo, Network Silence, Oliver Harley, pan93412, Paul Menzel, pEJipE,
12973 Peter A. Bigot, Philip Withnall, Piotr Drąg, Rafael Fontenelle, Robert
12974 Scheck, Roberto Santalla, Ronan Pigott, root, RussianNeuroMancer,
12975 Sebastian Jennen, shinygold, Shreyas Behera, Simon Schricker, Susant
12976 Sahani, Thadeu Lima de Souza Cascardo, Theo Ouzhinski, Thiebaud
12977 Weksteen, Thomas Haller, Thomas Weißschuh, Tomas Mraz, Tommi Rantala,
12978 Topi Miettinen, VD-Lycos, ven, Vladimir Yerilov, Wieland Hoffmann,
12979 William A. Kennington III, William Wold, Xi Ruoyao, Yuri Chornoivan,
12980 Yu Watanabe, Zach Smith, Zbigniew Jędrzejewski-Szmek, Zhang Xianwei
12981
12982 – Camerino, 2019-09-03
12983
12984 CHANGES WITH 242:
12985
12986 * In .link files, MACAddressPolicy=persistent (the default) is changed
12987 to cover more devices. For devices like bridges, tun, tap, bond, and
12988 similar interfaces that do not have other identifying information,
12989 the interface name is used as the basis for persistent seed for MAC
12990 and IPv4LL addresses. The way that devices that were handled
12991 previously is not changed, and this change is about covering more
12992 devices then previously by the "persistent" policy.
12993
12994 MACAddressPolicy=random may be used to force randomized MACs and
12995 IPv4LL addresses for a device if desired.
12996
12997 Hint: the log output from udev (at debug level) was enhanced to
12998 clarify what policy is followed and which attributes are used.
12999 'SYSTEMD_LOG_LEVEL=debug udevadm test-builtin net_setup_link /sys/class/net/<name>'
13000 may be used to view this.
13001
13002 Hint: if a bridge interface is created without any slaves, and gains
13003 a slave later, then now the bridge does not inherit slave's MAC.
13004 To inherit slave's MAC, for example, create the following file:
13005 ```
13006 # /etc/systemd/network/98-bridge-inherit-mac.link
13007 [Match]
13008 Type=bridge
13009
13010 [Link]
13011 MACAddressPolicy=none
13012 ```
13013
13014 * The .device units generated by systemd-fstab-generator and other
13015 generators do not automatically pull in the corresponding .mount unit
13016 as a Wants= dependency. This means that simply plugging in the device
13017 will not cause the mount unit to be started automatically. But please
13018 note that the mount unit may be started for other reasons, in
13019 particular if it is part of local-fs.target, and any unit which
13020 (transitively) depends on local-fs.target is started.
13021
13022 * networkctl list/status/lldp now accept globbing wildcards for network
13023 interface names to match against all existing interfaces.
13024
13025 * The $PIDFILE environment variable is set to point the absolute path
13026 configured with PIDFile= for processes of that service.
13027
13028 * The fallback DNS server list was augmented with Cloudflare public DNS
13029 servers. Use '-Ddns-servers=' to set a different fallback.
13030
13031 * A new special target usb-gadget.target will be started automatically
13032 when a USB Device Controller is detected (which means that the system
13033 is a USB peripheral).
13034
13035 * A new unit setting CPUQuotaPeriodSec= assigns the time period
13036 relatively to which the CPU time quota specified by CPUQuota= is
13037 measured.
13038
13039 * A new unit setting ProtectHostname= may be used to prevent services
13040 from modifying hostname information (even if they otherwise would
13041 have privileges to do so).
13042
13043 * A new unit setting NetworkNamespacePath= may be used to specify a
13044 namespace for service or socket units through a path referring to a
13045 Linux network namespace pseudo-file.
13046
13047 * The PrivateNetwork= setting and JoinsNamespaceOf= dependencies now
13048 have an effect on .socket units: when used the listening socket is
13049 created within the configured network namespace instead of the host
13050 namespace.
13051
13052 * ExecStart= command lines in unit files may now be prefixed with ':'
13053 in which case environment variable substitution is
13054 disabled. (Supported for the other ExecXYZ= settings, too.)
13055
13056 * .timer units gained two new boolean settings OnClockChange= and
13057 OnTimezoneChange= which may be used to also trigger a unit when the
13058 system clock is changed or the local timezone is
13059 modified. systemd-run has been updated to make these options easily
13060 accessible from the command line for transient timers.
13061
13062 * Two new conditions for units have been added: ConditionMemory= may be
13063 used to conditionalize a unit based on installed system
13064 RAM. ConditionCPUs= may be used to conditionalize a unit based on
13065 installed CPU cores.
13066
13067 * The @default system call filter group understood by SystemCallFilter=
13068 has been updated to include the new rseq() system call introduced in
13069 kernel 4.15.
13070
13071 * A new time-set.target has been added that indicates that the system
13072 time has been set from a local source (possibly imprecise). The
13073 existing time-sync.target is stronger and indicates that the time has
13074 been synchronized with a precise external source. Services where
13075 approximate time is sufficient should use the new target.
13076
13077 * "systemctl start" (and related commands) learnt a new
13078 --show-transaction option. If specified brief information about all
13079 jobs queued because of the requested operation is shown.
13080
13081 * systemd-networkd recognizes a new operation state 'enslaved', used
13082 (instead of 'degraded' or 'carrier') for interfaces which form a
13083 bridge, bond, or similar, and an new 'degraded-carrier' operational
13084 state used for the bond or bridge master interface when one of the
13085 enslaved devices is not operational.
13086
13087 * .network files learnt the new IgnoreCarrierLoss= option for leaving
13088 networks configured even if the carrier is lost.
13089
13090 * The RequiredForOnline= setting in .network files may now specify a
13091 minimum operational state required for the interface to be considered
13092 "online" by systemd-networkd-wait-online. Related to this
13093 systemd-networkd-wait-online gained a new option --operational-state=
13094 to configure the same, and its --interface= option was updated to
13095 optionally also take an operational state specific for an interface.
13096
13097 * systemd-networkd-wait-online gained a new setting --any for waiting
13098 for only one of the requested interfaces instead of all of them.
13099
13100 * systemd-networkd now implements L2TP tunnels.
13101
13102 * Two new .network settings UseAutonomousPrefix= and UseOnLinkPrefix=
13103 may be used to cause autonomous and onlink prefixes received in IPv6
13104 Router Advertisements to be ignored.
13105
13106 * New MulticastFlood=, NeighborSuppression=, and Learning= .network
13107 file settings may be used to tweak bridge behaviour.
13108
13109 * The new TripleSampling= option in .network files may be used to
13110 configure CAN triple sampling.
13111
13112 * A new .netdev settings PrivateKeyFile= and PresharedKeyFile= may be
13113 used to point to private or preshared key for a WireGuard interface.
13114
13115 * /etc/crypttab now supports the same-cpu-crypt and
13116 submit-from-crypt-cpus options to tweak encryption work scheduling
13117 details.
13118
13119 * systemd-tmpfiles will now take a BSD file lock before operating on a
13120 contents of directory. This may be used to temporarily exclude
13121 directories from aging by taking the same lock (useful for example
13122 when extracting a tarball into /tmp or /var/tmp as a privileged user,
13123 which might create files with really old timestamps, which
13124 nevertheless should not be deleted). For further details, see:
13125
13126 https://systemd.io/TEMPORARY_DIRECTORIES
13127
13128 * systemd-tmpfiles' h line type gained support for the
13129 FS_PROJINHERIT_FL ('P') file attribute (introduced in kernel 4.5),
13130 controlling project quota inheritance.
13131
13132 * sd-boot and bootctl now implement support for an Extended Boot Loader
13133 (XBOOTLDR) partition, that is intended to be mounted to /boot, in
13134 addition to the ESP partition mounted to /efi or /boot/efi.
13135 Configuration file fragments, kernels, initrds and other EFI images
13136 to boot will be loaded from both the ESP and XBOOTLDR partitions.
13137 The XBOOTLDR partition was previously described by the Boot Loader
13138 Specification, but implementation was missing in sd-boot. Support for
13139 this concept allows using the sd-boot boot loader in more
13140 conservative scenarios where the boot loader itself is placed in the
13141 ESP but the kernels to boot (and their metadata) in a separate
13142 partition.
13143
13144 * A system may now be booted with systemd.volatile=overlay on the
13145 kernel command line, which causes the root file system to be set up
13146 an overlayfs mount combining the root-only root directory with a
13147 writable tmpfs. In this setup, the underlying root device is not
13148 modified, and any changes are lost at reboot.
13149
13150 * Similar, systemd-nspawn can now boot containers with a volatile
13151 overlayfs root with the new --volatile=overlay switch.
13152
13153 * systemd-nspawn can now consume OCI runtime bundles using a new
13154 --oci-bundle= option. This implementation is fully usable, with most
13155 features in the specification implemented, but since this a lot of
13156 new code and functionality, this feature should most likely not
13157 be used in production yet.
13158
13159 * systemd-nspawn now supports various options described by the OCI
13160 runtime specification on the command-line and in .nspawn files:
13161 --inaccessible=/Inaccessible= may be used to mask parts of the file
13162 system tree, --console=/--pipe may be used to configure how standard
13163 input, output, and error are set up.
13164
13165 * busctl learned the 'emit' verb to generate D-Bus signals.
13166
13167 * systemd-analyze cat-config may be used to gather and display
13168 configuration spread over multiple files, for example system and user
13169 presets, tmpfiles.d, sysusers.d, udev rules, etc.
13170
13171 * systemd-analyze calendar now takes an optional new parameter
13172 --iterations= which may be used to show a maximum number of iterations
13173 the specified expression will elapse next.
13174
13175 * The sd-bus C API gained support for naming method parameters in the
13176 introspection data.
13177
13178 * systemd-logind gained D-Bus APIs to specify the "reboot parameter"
13179 the reboot() system call expects.
13180
13181 * journalctl learnt a new --cursor-file= option that points to a file
13182 from which a cursor should be loaded in the beginning and to which
13183 the updated cursor should be stored at the end.
13184
13185 * ACRN hypervisor and Windows Subsystem for Linux (WSL) are now
13186 detected by systemd-detect-virt (and may also be used in
13187 ConditionVirtualization=).
13188
13189 * The behaviour of systemd-logind may now be modified with environment
13190 variables $SYSTEMD_REBOOT_TO_FIRMWARE_SETUP,
13191 $SYSTEMD_REBOOT_TO_BOOT_LOADER_MENU, and
13192 $SYSTEMD_REBOOT_TO_BOOT_LOADER_ENTRY. They cause logind to either
13193 skip the relevant operation completely (when set to false), or to
13194 create a flag file in /run/systemd (when set to true), instead of
13195 actually commencing the real operation when requested. The presence
13196 of /run/systemd/reboot-to-firmware-setup,
13197 /run/systemd/reboot-to-boot-loader-menu, and
13198 /run/systemd/reboot-to-boot-loader-entry, may be used by alternative
13199 boot loader implementations to replace some steps logind performs
13200 during reboot with their own operations.
13201
13202 * systemctl can be used to request a reboot into the boot loader menu
13203 or a specific boot loader entry with the new --boot-load-menu= and
13204 --boot-loader-entry= options to a reboot command. (This requires a
13205 boot loader that supports this, for example sd-boot.)
13206
13207 * kernel-install will no longer unconditionally create the output
13208 directory (e.g. /efi/<machine-id>/<kernel-version>) for boot loader
13209 snippets, but will do only if the machine-specific parent directory
13210 (i.e. /efi/<machine-id>/) already exists. bootctl has been modified
13211 to create this parent directory during sd-boot installation.
13212
13213 This makes it easier to use kernel-install with plugins which support
13214 a different layout of the bootloader partitions (for example grub2).
13215
13216 * During package installation (with 'ninja install'), we would create
13217 symlinks for [email protected], systemd-networkd.service,
13218 systemd-networkd.socket, systemd-resolved.service,
13219 remote-cryptsetup.target, remote-fs.target,
13220 systemd-networkd-wait-online.service, and systemd-timesyncd.service
13221 in /etc, as if 'systemctl enable' was called for those units, to make
13222 the system usable immediately after installation. Now this is not
13223 done anymore, and instead calling 'systemctl preset-all' is
13224 recommended after the first installation of systemd.
13225
13226 * A new boolean sandboxing option RestrictSUIDSGID= has been added that
13227 is built on seccomp. When turned on creation of SUID/SGID files is
13228 prohibited.
13229
13230 * The NoNewPrivileges= and the new RestrictSUIDSGID= options are now
13231 implied if DynamicUser= is turned on for a service. This hardens
13232 these services, so that they neither can benefit from nor create
13233 SUID/SGID executables. This is a minor compatibility breakage, given
13234 that when DynamicUser= was first introduced SUID/SGID behaviour was
13235 unaffected. However, the security benefit of these two options is
13236 substantial, and the setting is still relatively new, hence we opted
13237 to make it mandatory for services with dynamic users.
13238
13239 Contributions from: Adam Jackson, Alexander Tsoy, Andrey Yashkin,
13240 Andrzej Pietrasiewicz, Anita Zhang, Balint Reczey, Beniamino Galvani,
13241 Ben Iofel, Benjamin Berg, Benjamin Dahlhoff, Chris, Chris Morin,
13242 Christopher Wong, Claudius Ellsel, Clemens Gruber, dana, Daniel Black,
13243 Davide Cavalca, David Michael, David Rheinsberg, emersion, Evgeny
13244 Vereshchagin, Filipe Brandenburger, Franck Bui, Frantisek Sumsal,
13245 Giacinto Cifelli, Hans de Goede, Hugo Kindel, Ignat Korchagin, Insun
13246 Pyo, Jan Engelhardt, Jonas Dorel, Jonathan Lebon, Jonathon Kowalski,
13247 Jörg Sommer, Jörg Thalheim, Jussi Pakkanen, Kai-Heng Feng, Lennart
13248 Poettering, Lubomir Rintel, Luís Ferreira, Martin Pitt, Matthias
13249 Klumpp, Michael Biebl, Michael Niewöhner, Michael Olbrich, Michal
13250 Sekletar, Mike Lothian, Paul Menzel, Piotr Drąg, Riccardo Schirone,
13251 Robin Elvedi, Roman Kulikov, Ronald Tschalär, Ross Burton, Ryan
13252 Gonzalez, Sebastian Krzyszkowiak, Stephane Chazelas, StKob, Susant
13253 Sahani, Sylvain Plantefève, Szabolcs Fruhwald, Taro Yamada, Theo
13254 Ouzhinski, Thomas Haller, Tobias Jungel, Tom Yan, Tony Asleson, Topi
13255 Miettinen, unixsysadmin, Van Laser, Vesa Jääskeläinen, Yu, Li-Yu,
13256 Yu Watanabe, Zbigniew Jędrzejewski-Szmek
13257
13258 — Warsaw, 2019-04-11
13259
13260 CHANGES WITH 241:
13261
13262 * The default locale can now be configured at compile time. Otherwise,
13263 a suitable default will be selected automatically (one of C.UTF-8,
13264 en_US.UTF-8, and C).
13265
13266 * The version string shown by systemd and other tools now includes the
13267 git commit hash when built from git. An override may be specified
13268 during compilation, which is intended to be used by distributions to
13269 include the package release information.
13270
13271 * systemd-cat can now filter standard input and standard error streams
13272 for different syslog priorities using the new --stderr-priority=
13273 option.
13274
13275 * systemd-journald and systemd-journal-remote reject entries which
13276 contain too many fields (CVE-2018-16865) and set limits on the
13277 process' command line length (CVE-2018-16864).
13278
13279 * $DBUS_SESSION_BUS_ADDRESS environment variable is set by pam_systemd
13280 again.
13281
13282 * A new network device NamePolicy "keep" is implemented for link files,
13283 and used by default in 99-default.link (the fallback configuration
13284 provided by systemd). With this policy, if the network device name
13285 was already set by userspace, the device will not be renamed again.
13286 This matches the naming scheme that was implemented before
13287 systemd-240. If naming-scheme < 240 is specified, the "keep" policy
13288 is also enabled by default, even if not specified. Effectively, this
13289 means that if naming-scheme >= 240 is specified, network devices will
13290 be renamed according to the configuration, even if they have been
13291 renamed already, if "keep" is not specified as the naming policy in
13292 the .link file. The 99-default.link file provided by systemd includes
13293 "keep" for backwards compatibility, but it is recommended for user
13294 installed .link files to *not* include it.
13295
13296 The "kernel" policy, which keeps kernel names declared to be
13297 "persistent", now works again as documented.
13298
13299 * kernel-install script now optionally takes the paths to one or more
13300 initrd files, and passes them to all plugins.
13301
13302 * The mincore() system call has been dropped from the @system-service
13303 system call filter group, as it is pretty exotic and may potentially
13304 used for side-channel attacks.
13305
13306 * -fPIE is dropped from compiler and linker options. Please specify
13307 -Db_pie=true option to meson to build position-independent
13308 executables. Note that the meson option is supported since meson-0.49.
13309
13310 * The fs.protected_regular and fs.protected_fifos sysctls, which were
13311 added in Linux 4.19 to make some data spoofing attacks harder, are
13312 now enabled by default. While this will hopefully improve the
13313 security of most installations, it is technically a backwards
13314 incompatible change; to disable these sysctls again, place the
13315 following lines in /etc/sysctl.d/60-protected.conf or a similar file:
13316
13317 fs.protected_regular = 0
13318 fs.protected_fifos = 0
13319
13320 Note that the similar hardlink and symlink protection has been
13321 enabled since v199, and may be disabled likewise.
13322
13323 * The files read from the EnvironmentFile= setting in unit files now
13324 parse backslashes inside quotes literally, matching the behaviour of
13325 POSIX shells.
13326
13327 * udevadm trigger, udevadm control, udevadm settle and udevadm monitor
13328 now automatically become NOPs when run in a chroot() environment.
13329
13330 * The tmpfiles.d/ "C" line type will now copy directory trees not only
13331 when the destination is so far missing, but also if it already exists
13332 as a directory and is empty. This is useful to cater for systems
13333 where directory trees are put together from multiple separate mount
13334 points but otherwise empty.
13335
13336 * A new function sd_bus_close_unref() (and the associated
13337 sd_bus_close_unrefp()) has been added to libsystemd, that combines
13338 sd_bus_close() and sd_bus_unref() in one.
13339
13340 * udevadm control learnt a new option for --ping for testing whether a
13341 systemd-udevd instance is running and reacting.
13342
13343 * udevadm trigger learnt a new option for --wait-daemon for waiting
13344 systemd-udevd daemon to be initialized.
13345
13346 Contributions from: Aaron Plattner, Alberts Muktupāvels, Alex Mayer,
13347 Ayman Bagabas, Beniamino Galvani, Burt P, Chris Down, Chris Lamb, Chris
13348 Morin, Christian Hesse, Claudius Ellsel, dana, Daniel Axtens, Daniele
13349 Medri, Dave Reisner, David Santamaría Rogado, Diego Canuhe, Dimitri
13350 John Ledkov, Evgeny Vereshchagin, Fabrice Fontaine, Filipe
13351 Brandenburger, Franck Bui, Frantisek Sumsal, govwin, Hans de Goede,
13352 James Hilliard, Jan Engelhardt, Jani Uusitalo, Jan Janssen, Jan
13353 Synacek, Jonathan McDowell, Jonathan Roemer, Jonathon Kowalski, Joost
13354 Heitbrink, Jörg Thalheim, Lance, Lennart Poettering, Louis Taylor,
13355 Lucas Werkmeister, Mantas Mikulėnas, Marc-Antoine Perennou,
13356 marvelousblack, Michael Biebl, Michael Sloan, Michal Sekletar, Mike
13357 Auty, Mike Gilbert, Mikhail Kasimov, Neil Brown, Niklas Hambüchen,
13358 Patrick Williams, Paul Seyfert, Peter Hutterer, Philip Withnall, Roger
13359 James, Ronnie P. Thomas, Ryan Gonzalez, Sam Morris, Stephan Edel,
13360 Stephan Gerhold, Susant Sahani, Taro Yamada, Thomas Haller, Topi
13361 Miettinen, YiFei Zhu, YmrDtnJu, YunQiang Su, Yu Watanabe, Zbigniew
13362 Jędrzejewski-Szmek, zsergeant77, Дамјан Георгиевски
13363
13364 — Berlin, 2019-02-14
13365
13366 CHANGES WITH 240:
13367
13368 * NoNewPrivileges=yes has been set for all long-running services
13369 implemented by systemd. Previously, this was problematic due to
13370 SELinux (as this would also prohibit the transition from PID1's label
13371 to the service's label). This restriction has since been lifted, but
13372 an SELinux policy update is required.
13373 (See e.g. https://github.com/fedora-selinux/selinux-policy/pull/234.)
13374
13375 * DynamicUser=yes is dropped from systemd-networkd.service,
13376 systemd-resolved.service and systemd-timesyncd.service, which was
13377 enabled in v239 for systemd-networkd.service and systemd-resolved.service,
13378 and since v236 for systemd-timesyncd.service. The users and groups
13379 systemd-network, systemd-resolve and systemd-timesync are created
13380 by systemd-sysusers again. Distributors or system administrators
13381 may need to create these users and groups if they not exist (or need
13382 to re-enable DynamicUser= for those units) while upgrading systemd.
13383 Also, the clock file for systemd-timesyncd may need to move from
13384 /var/lib/private/systemd/timesync/clock to /var/lib/systemd/timesync/clock.
13385
13386 * When unit files are loaded from disk, previously systemd would
13387 sometimes (depending on the unit loading order) load units from the
13388 target path of symlinks in .wants/ or .requires/ directories of other
13389 units. This meant that unit could be loaded from different paths
13390 depending on whether the unit was requested explicitly or as a
13391 dependency of another unit, not honouring the priority of directories
13392 in search path. It also meant that it was possible to successfully
13393 load and start units which are not found in the unit search path, as
13394 long as they were requested as a dependency and linked to from
13395 .wants/ or .requires/. The target paths of those symlinks are not
13396 used for loading units anymore and the unit file must be found in
13397 the search path.
13398
13399 * A new service type has been added: Type=exec. It's very similar to
13400 Type=simple but ensures the service manager will wait for both fork()
13401 and execve() of the main service binary to complete before proceeding
13402 with follow-up units. This is primarily useful so that the manager
13403 propagates any errors in the preparation phase of service execution
13404 back to the job that requested the unit to be started. For example,
13405 consider a service that has ExecStart= set to a file system binary
13406 that doesn't exist. With Type=simple starting the unit would be
13407 considered instantly successful, as only fork() has to complete
13408 successfully and the manager does not wait for execve(), and hence
13409 its failure is seen "too late". With the new Type=exec service type
13410 starting the unit will fail, as the manager will wait for the
13411 execve() and notice its failure, which is then propagated back to the
13412 start job.
13413
13414 NOTE: with the next release 241 of systemd we intend to change the
13415 systemd-run tool to default to Type=exec for transient services
13416 started by it. This should be mostly safe, but in specific corner
13417 cases might result in problems, as the systemd-run tool will then
13418 block on NSS calls (such as user name look-ups due to User=) done
13419 between the fork() and execve(), which under specific circumstances
13420 might cause problems. It is recommended to specify "-p Type=simple"
13421 explicitly in the few cases where this applies. For regular,
13422 non-transient services (i.e. those defined with unit files on disk)
13423 we will continue to default to Type=simple.
13424
13425 * The Linux kernel's current default RLIMIT_NOFILE resource limit for
13426 userspace processes is set to 1024 (soft) and 4096
13427 (hard). Previously, systemd passed this on unmodified to all
13428 processes it forked off. With this systemd release the hard limit
13429 systemd passes on is increased to 512K, overriding the kernel's
13430 defaults and substantially increasing the number of simultaneous file
13431 descriptors unprivileged userspace processes can allocate. Note that
13432 the soft limit remains at 1024 for compatibility reasons: the
13433 traditional UNIX select() call cannot deal with file descriptors >=
13434 1024 and increasing the soft limit globally might thus result in
13435 programs unexpectedly allocating a high file descriptor and thus
13436 failing abnormally when attempting to use it with select() (of
13437 course, programs shouldn't use select() anymore, and prefer
13438 poll()/epoll, but the call unfortunately remains undeservedly popular
13439 at this time). This change reflects the fact that file descriptor
13440 handling in the Linux kernel has been optimized in more recent
13441 kernels and allocating large numbers of them should be much cheaper
13442 both in memory and in performance than it used to be. Programs that
13443 want to take benefit of the increased limit have to "opt-in" into
13444 high file descriptors explicitly by raising their soft limit. Of
13445 course, when they do that they must acknowledge that they cannot use
13446 select() anymore (and neither can any shared library they use — or
13447 any shared library used by any shared library they use and so on).
13448 Which default hard limit is most appropriate is of course hard to
13449 decide. However, given reports that ~300K file descriptors are used
13450 in real-life applications we believe 512K is sufficiently high as new
13451 default for now. Note that there are also reports that using very
13452 high hard limits (e.g. 1G) is problematic: some software allocates
13453 large arrays with one element for each potential file descriptor
13454 (Java, …) — a high hard limit thus triggers excessively large memory
13455 allocations in these applications. Hopefully, the new default of 512K
13456 is a good middle ground: higher than what real-life applications
13457 currently need, and low enough for avoid triggering excessively large
13458 allocations in problematic software. (And yes, somebody should fix
13459 Java.)
13460
13461 * The fs.nr_open and fs.file-max sysctls are now automatically bumped
13462 to the highest possible values, as separate accounting of file
13463 descriptors is no longer necessary, as memcg tracks them correctly as
13464 part of the memory accounting anyway. Thus, from the four limits on
13465 file descriptors currently enforced (fs.file-max, fs.nr_open,
13466 RLIMIT_NOFILE hard, RLIMIT_NOFILE soft) we turn off the first two,
13467 and keep only the latter two. A set of build-time options
13468 (-Dbump-proc-sys-fs-file-max=false and -Dbump-proc-sys-fs-nr-open=false)
13469 has been added to revert this change in behaviour, which might be
13470 an option for systems that turn off memcg in the kernel.
13471
13472 * When no /etc/locale.conf file exists (and hence no locale settings
13473 are in place), systemd will now use the "C.UTF-8" locale by default,
13474 and set LANG= to it. This locale is supported by various
13475 distributions including Fedora, with clear indications that upstream
13476 glibc is going to make it available too. This locale enables UTF-8
13477 mode by default, which appears appropriate for 2018.
13478
13479 * The "net.ipv4.conf.all.rp_filter" sysctl will now be set to 2 by
13480 default. This effectively switches the RFC3704 Reverse Path filtering
13481 from Strict mode to Loose mode. This is more appropriate for hosts
13482 that have multiple links with routes to the same networks (e.g.
13483 a client with a Wi-Fi and Ethernet both connected to the internet).
13484
13485 Consult the kernel documentation for details on this sysctl:
13486 https://docs.kernel.org/networking/ip-sysctl.html
13487
13488 * The v239 change to turn on "net.ipv4.tcp_ecn" by default has been
13489 reverted.
13490
13491 * CPUAccounting=yes no longer enables the CPU controller when using
13492 kernel 4.15+ and the unified cgroup hierarchy, as required accounting
13493 statistics are now provided independently from the CPU controller.
13494
13495 * Support for disabling a particular cgroup controller within a sub-tree
13496 has been added through the DisableControllers= directive.
13497
13498 * cgroup_no_v1=all on the kernel command line now also implies
13499 using the unified cgroup hierarchy, unless one explicitly passes
13500 systemd.unified_cgroup_hierarchy=0 on the kernel command line.
13501
13502 * The new "MemoryMin=" unit file property may now be used to set the
13503 memory usage protection limit of processes invoked by the unit. This
13504 controls the cgroup v2 memory.min attribute. Similarly, the new
13505 "IODeviceLatencyTargetSec=" property has been added, wrapping the new
13506 cgroup v2 io.latency cgroup property for configuring per-service I/O
13507 latency.
13508
13509 * systemd now supports the cgroup v2 devices BPF logic, as counterpart
13510 to the cgroup v1 "devices" cgroup controller.
13511
13512 * systemd-escape now is able to combine --unescape with --template. It
13513 also learnt a new option --instance for extracting and unescaping the
13514 instance part of a unit name.
13515
13516 * sd-bus now provides the sd_bus_message_readv() which is similar to
13517 sd_bus_message_read() but takes a va_list object. The pair
13518 sd_bus_set_method_call_timeout() and sd_bus_get_method_call_timeout()
13519 has been added for configuring the default method call timeout to
13520 use. sd_bus_error_move() may be used to efficiently move the contents
13521 from one sd_bus_error structure to another, invalidating the
13522 source. sd_bus_set_close_on_exit() and sd_bus_get_close_on_exit() may
13523 be used to control whether a bus connection object is automatically
13524 flushed when an sd-event loop is exited.
13525
13526 * When processing classic BSD syslog log messages, journald will now
13527 save the original time-stamp string supplied in the new
13528 SYSLOG_TIMESTAMP= journal field. This permits consumers to
13529 reconstruct the original BSD syslog message more correctly.
13530
13531 * StandardOutput=/StandardError= in service files gained support for
13532 new "append:…" parameters, for connecting STDOUT/STDERR of a service
13533 to a file, and appending to it.
13534
13535 * The signal to use as last step of killing of unit processes is now
13536 configurable. Previously it was hard-coded to SIGKILL, which may now
13537 be overridden with the new KillSignal= setting. Note that this is the
13538 signal used when regular termination (i.e. SIGTERM) does not suffice.
13539 Similarly, the signal used when aborting a program in case of a
13540 watchdog timeout may now be configured too (WatchdogSignal=).
13541
13542 * The XDG_SESSION_DESKTOP environment variable may now be configured in
13543 the pam_systemd argument line, using the new desktop= switch. This is
13544 useful to initialize it properly from a display manager without
13545 having to touch C code.
13546
13547 * Most configuration options that previously accepted percentage values
13548 now also accept permille values with the '‰' suffix (instead of '%').
13549
13550 * systemd-resolved may now optionally use OpenSSL instead of GnuTLS for
13551 DNS-over-TLS.
13552
13553 * systemd-resolved's configuration file resolved.conf gained a new
13554 option ReadEtcHosts= which may be used to turn off processing and
13555 honoring /etc/hosts entries.
13556
13557 * The "--wait" switch may now be passed to "systemctl
13558 is-system-running", in which case the tool will synchronously wait
13559 until the system finished start-up.
13560
13561 * hostnamed gained a new bus call to determine the DMI product UUID.
13562
13563 * On x86-64 systemd will now prefer using the RDRAND processor
13564 instruction over /dev/urandom whenever it requires randomness that
13565 neither has to be crypto-grade nor should be reproducible. This
13566 should substantially reduce the amount of entropy systemd requests
13567 from the kernel during initialization on such systems, though not
13568 reduce it to zero. (Why not zero? systemd still needs to allocate
13569 UUIDs and such uniquely, which require high-quality randomness.)
13570
13571 * networkd gained support for Foo-Over-UDP, ERSPAN and ISATAP
13572 tunnels. It also gained a new option ForceDHCPv6PDOtherInformation=
13573 for forcing the "Other Information" bit in IPv6 RA messages. The
13574 bonding logic gained four new options AdActorSystemPriority=,
13575 AdUserPortKey=, AdActorSystem= for configuring various 802.3ad
13576 aspects, and DynamicTransmitLoadBalancing= for enabling dynamic
13577 shuffling of flows. The tunnel logic gained a new
13578 IPv6RapidDeploymentPrefix= option for configuring IPv6 Rapid
13579 Deployment. The policy rule logic gained four new options IPProtocol=,
13580 SourcePort= and DestinationPort=, InvertRule=. The bridge logic gained
13581 support for the MulticastToUnicast= option. networkd also gained
13582 support for configuring static IPv4 ARP or IPv6 neighbor entries.
13583
13584 * .preset files (as read by 'systemctl preset') may now be used to
13585 instantiate services.
13586
13587 * /etc/crypttab now understands the sector-size= option to configure
13588 the sector size for an encrypted partition.
13589
13590 * Key material for encrypted disks may now be placed on a formatted
13591 medium, and referenced from /etc/crypttab by the UUID of the file
13592 system, followed by "=" suffixed by the path to the key file.
13593
13594 * The "collect" udev component has been removed without replacement, as
13595 it is neither used nor maintained.
13596
13597 * When the RuntimeDirectory=, StateDirectory=, CacheDirectory=,
13598 LogsDirectory=, ConfigurationDirectory= settings are used in a
13599 service the executed processes will now receive a set of environment
13600 variables containing the full paths of these directories.
13601 Specifically, RUNTIME_DIRECTORY=, STATE_DIRECTORY, CACHE_DIRECTORY,
13602 LOGS_DIRECTORY, CONFIGURATION_DIRECTORY are now set if these options
13603 are used. Note that these options may be used multiple times per
13604 service in which case the resulting paths will be concatenated and
13605 separated by colons.
13606
13607 * Predictable interface naming has been extended to cover InfiniBand
13608 NICs. They will be exposed with an "ib" prefix.
13609
13610 * tmpfiles.d/ line types may now be suffixed with a '-' character, in
13611 which case the respective line failing is ignored.
13612
13613 * .link files may now be used to configure the equivalent to the
13614 "ethtool advertise" commands.
13615
13616 * The sd-device.h and sd-hwdb.h APIs are now exported, as an
13617 alternative to libudev.h. Previously, the latter was just an internal
13618 wrapper around the former, but now these two APIs are exposed
13619 directly.
13620
13621 * sd-id128.h gained a new function sd_id128_get_boot_app_specific()
13622 which calculates an app-specific boot ID similar to how
13623 sd_id128_get_machine_app_specific() generates an app-specific machine
13624 ID.
13625
13626 * A new tool systemd-id128 has been added that can be used to determine
13627 and generate various 128-bit IDs.
13628
13629 * /etc/os-release gained two new standardized fields DOCUMENTATION_URL=
13630 and LOGO=.
13631
13632 * systemd-hibernate-resume-generator will now honor the "noresume"
13633 kernel command line option, in which case it will bypass resuming
13634 from any hibernated image.
13635
13636 * The systemd-sleep.conf configuration file gained new options
13637 AllowSuspend=, AllowHibernation=, AllowSuspendThenHibernate=,
13638 AllowHybridSleep= for prohibiting specific sleep modes even if the
13639 kernel exports them.
13640
13641 * portablectl is now officially supported and has thus moved to
13642 /usr/bin/.
13643
13644 * bootctl learnt the two new commands "set-default" and "set-oneshot"
13645 for setting the default boot loader item to boot to (either
13646 persistently or only for the next boot). This is currently only
13647 compatible with sd-boot, but may be implemented on other boot loaders
13648 too, that follow the boot loader interface. The updated interface is
13649 now documented here:
13650
13651 https://systemd.io/BOOT_LOADER_INTERFACE
13652
13653 * A new kernel command line option systemd.early_core_pattern= is now
13654 understood which may be used to influence the core_pattern PID 1
13655 installs during early boot.
13656
13657 * busctl learnt two new options -j and --json= for outputting method
13658 call replies, properties and monitoring output in JSON.
13659
13660 * journalctl's JSON output now supports simple ANSI coloring as well as
13661 a new "json-seq" mode for generating RFC7464 output.
13662
13663 * Unit files now support the %g/%G specifiers that resolve to the UNIX
13664 group/GID of the service manager runs as, similar to the existing
13665 %u/%U specifiers that resolve to the UNIX user/UID.
13666
13667 * systemd-logind learnt a new global configuration option
13668 UserStopDelaySec= that may be set in logind.conf. It specifies how
13669 long the systemd --user instance shall remain started after a user
13670 logs out. This is useful to speed up repetitive re-connections of the
13671 same user, as it means the user's service manager doesn't have to be
13672 stopped/restarted on each iteration, but can be reused between
13673 subsequent options. This setting defaults to 10s. systemd-logind also
13674 exports two new properties on its Manager D-Bus objects indicating
13675 whether the system's lid is currently closed, and whether the system
13676 is on AC power.
13677
13678 * systemd gained support for a generic boot counting logic, which
13679 generically permits automatic reverting to older boot loader entries
13680 if newer updated ones don't work. The boot loader side is implemented
13681 in sd-boot, but is kept open for other boot loaders too. For details
13682 see:
13683
13684 https://systemd.io/AUTOMATIC_BOOT_ASSESSMENT
13685
13686 * The SuccessAction=/FailureAction= unit file settings now learnt two
13687 new parameters: "exit" and "exit-force", which result in immediate
13688 exiting of the service manager, and are only useful in systemd --user
13689 and container environments.
13690
13691 * Unit files gained support for a pair of options
13692 FailureActionExitStatus=/SuccessActionExitStatus= for configuring the
13693 exit status to use as service manager exit status when
13694 SuccessAction=/FailureAction= is set to exit or exit-force.
13695
13696 * A pair of LogRateLimitIntervalSec=/LogRateLimitBurst= per-service
13697 options may now be used to configure the log rate limiting applied by
13698 journald per-service.
13699
13700 * systemd-analyze gained a new verb "timespan" for parsing and
13701 normalizing time span values (i.e. strings like "5min 7s 8us").
13702
13703 * systemd-analyze also gained a new verb "security" for analyzing the
13704 security and sand-boxing settings of services in order to determine an
13705 "exposure level" for them, indicating whether a service would benefit
13706 from more sand-boxing options turned on for them.
13707
13708 * "systemd-analyze syscall-filter" will now also show system calls
13709 supported by the local kernel but not included in any of the defined
13710 groups.
13711
13712 * .nspawn files now understand the Ephemeral= setting, matching the
13713 --ephemeral command line switch.
13714
13715 * sd-event gained the new APIs sd_event_source_get_floating() and
13716 sd_event_source_set_floating() for controlling whether a specific
13717 event source is "floating", i.e. destroyed along with the even loop
13718 object itself.
13719
13720 * Unit objects on D-Bus gained a new "Refs" property that lists all
13721 clients that currently have a reference on the unit (to ensure it is
13722 not unloaded).
13723
13724 * The JoinControllers= option in system.conf is no longer supported, as
13725 it didn't work correctly, is hard to support properly, is legacy (as
13726 the concept only exists on cgroup v1) and apparently wasn't used.
13727
13728 * Journal messages that are generated whenever a unit enters the failed
13729 state are now tagged with a unique MESSAGE_ID. Similarly, messages
13730 generated whenever a service process exits are now made recognizable,
13731 too. A tagged message is also emitted whenever a unit enters the
13732 "dead" state on success.
13733
13734 * systemd-run gained a new switch --working-directory= for configuring
13735 the working directory of the service to start. A shortcut -d is
13736 equivalent, setting the working directory of the service to the
13737 current working directory of the invoking program. The new --shell
13738 (or just -S) option has been added for invoking the $SHELL of the
13739 caller as a service, and implies --pty --same-dir --wait --collect
13740 --service-type=exec. Or in other words, "systemd-run -S" is now the
13741 quickest way to quickly get an interactive in a fully clean and
13742 well-defined system service context.
13743
13744 * machinectl gained a new verb "import-fs" for importing an OS tree
13745 from a directory. Moreover, when a directory or tarball is imported
13746 and single top-level directory found with the OS itself below the OS
13747 tree is automatically mangled and moved one level up.
13748
13749 * systemd-importd will no longer set up an implicit btrfs loop-back
13750 file system on /var/lib/machines. If one is already set up, it will
13751 continue to be used.
13752
13753 * A new generator "systemd-run-generator" has been added. It will
13754 synthesize a unit from one or more program command lines included in
13755 the kernel command line. This is very useful in container managers
13756 for example:
13757
13758 # systemd-nspawn -i someimage.raw -b systemd.run='"some command line"'
13759
13760 This will run "systemd-nspawn" on an image, invoke the specified
13761 command line and immediately shut down the container again, returning
13762 the command line's exit code.
13763
13764 * The block device locking logic is now documented:
13765
13766 https://systemd.io/BLOCK_DEVICE_LOCKING
13767
13768 * loginctl and machinectl now optionally output the various tables in
13769 JSON using the --output= switch. It is our intention to add similar
13770 support to systemctl and all other commands.
13771
13772 * udevadm's query and trigger verb now optionally take a .device unit
13773 name as argument.
13774
13775 * systemd-udevd's network naming logic now understands a new
13776 net.naming_scheme= kernel command line switch, which may be used to
13777 pick a specific version of the naming scheme. This helps stabilizing
13778 interface names even as systemd/udev are updated and the naming logic
13779 is improved.
13780
13781 * sd-id128.h learnt two new auxiliary helpers: sd_id128_is_allf() and
13782 SD_ID128_ALLF to test if a 128-bit ID is set to all 0xFF bytes, and to
13783 initialize one to all 0xFF.
13784
13785 * After loading the SELinux policy systemd will now recursively relabel
13786 all files and directories listed in
13787 /run/systemd/relabel-extra.d/*.relabel (which should be simple
13788 newline separated lists of paths) in addition to the ones it already
13789 implicitly relabels in /run, /dev and /sys. After the relabelling is
13790 completed the *.relabel files (and /run/systemd/relabel-extra.d/) are
13791 removed. This is useful to permit initrds (i.e. code running before
13792 the SELinux policy is in effect) to generate files in the host
13793 filesystem safely and ensure that the correct label is applied during
13794 the transition to the host OS.
13795
13796 * KERNEL API BREAKAGE: Linux kernel 4.18 changed behaviour regarding
13797 mknod() handling in user namespaces. Previously mknod() would always
13798 fail with EPERM in user namespaces. Since 4.18 mknod() will succeed
13799 but device nodes generated that way cannot be opened, and attempts to
13800 open them result in EPERM. This breaks the "graceful fallback" logic
13801 in systemd's PrivateDevices= sand-boxing option. This option is
13802 implemented defensively, so that when systemd detects it runs in a
13803 restricted environment (such as a user namespace, or an environment
13804 where mknod() is blocked through seccomp or absence of CAP_SYS_MKNOD)
13805 where device nodes cannot be created the effect of PrivateDevices= is
13806 bypassed (following the logic that 2nd-level sand-boxing is not
13807 essential if the system systemd runs in is itself already sand-boxed
13808 as a whole). This logic breaks with 4.18 in container managers where
13809 user namespacing is used: suddenly PrivateDevices= succeeds setting
13810 up a private /dev/ file system containing devices nodes — but when
13811 these are opened they don't work.
13812
13813 At this point it is recommended that container managers utilizing
13814 user namespaces that intend to run systemd in the payload explicitly
13815 block mknod() with seccomp or similar, so that the graceful fallback
13816 logic works again.
13817
13818 We are very sorry for the breakage and the requirement to change
13819 container configurations for newer kernels. It's purely caused by an
13820 incompatible kernel change. The relevant kernel developers have been
13821 notified about this userspace breakage quickly, but they chose to
13822 ignore it.
13823
13824 * PermissionsStartOnly= setting is deprecated (but is still supported
13825 for backwards compatibility). The same functionality is provided by
13826 the more flexible "+", "!", and "!!" prefixes to ExecStart= and other
13827 commands.
13828
13829 * $DBUS_SESSION_BUS_ADDRESS environment variable is not set by
13830 pam_systemd anymore.
13831
13832 * The naming scheme for network devices was changed to always rename
13833 devices, even if they were already renamed by userspace. The "kernel"
13834 policy was changed to only apply as a fallback, if no other naming
13835 policy took effect.
13836
13837 * The requirements to build systemd is bumped to meson-0.46 and
13838 python-3.5.
13839
13840 Contributions from: afg, Alan Jenkins, Aleksei Timofeyev, Alexander
13841 Filippov, Alexander Kurtz, Alexey Bogdanenko, Andreas Henriksson,
13842 Andrew Jorgensen, Anita Zhang, apnix-uk, Arkan49, Arseny Maslennikov,
13843 asavah, Asbjørn Apeland, aszlig, Bastien Nocera, Ben Boeckel, Benedikt
13844 Morbach, Benjamin Berg, Bruce Zhang, Carlo Caione, Cedric Viou, Chen
13845 Qi, Chris Chiu, Chris Down, Chris Morin, Christian Rebischke, Claudius
13846 Ellsel, Colin Guthrie, dana, Daniel, Daniele Medri, Daniel Kahn
13847 Gillmor, Daniel Rusek, Daniel van Vugt, Dariusz Gadomski, Dave Reisner,
13848 David Anderson, Davide Cavalca, David Leeds, David Malcolm, David
13849 Strauss, David Tardon, Dimitri John Ledkov, Dmitry Torokhov, dj-kaktus,
13850 Dongsu Park, Elias Probst, Emil Soleyman, Erik Kooistra, Ervin Peters,
13851 Evgeni Golov, Evgeny Vereshchagin, Fabrice Fontaine, Faheel Ahmad,
13852 Faizal Luthfi, Felix Yan, Filipe Brandenburger, Franck Bui, Frank
13853 Schaefer, Frantisek Sumsal, Gautier Husson, Gianluca Boiano, Giuseppe
13854 Scrivano, glitsj16, Hans de Goede, Harald Hoyer, Harry Mallon, Harshit
13855 Jain, Helmut Grohne, Henry Tung, Hui Yiqun, imayoda, Insun Pyo, Iwan
13856 Timmer, Jan Janssen, Jan Pokorný, Jan Synacek, Jason A. Donenfeld,
13857 javitoom, Jérémy Nouhaud, Jeremy Su, Jiuyang Liu, João Paulo Rechi
13858 Vita, Joe Hershberger, Joe Rayhawk, Joerg Behrmann, Joerg Steffens,
13859 Jonas Dorel, Jon Ringle, Josh Soref, Julian Andres Klode, Jun Bo Bi,
13860 Jürg Billeter, Keith Busch, Khem Raj, Kirill Marinushkin, Larry
13861 Bernstone, Lennart Poettering, Lion Yang, Li Song, Lorenz
13862 Hübschle-Schneider, Lubomir Rintel, Lucas Werkmeister, Ludwin Janvier,
13863 Lukáš Nykrýn, Luke Shumaker, mal, Marc-Antoine Perennou, Marcin
13864 Skarbek, Marco Trevisan (Treviño), Marian Cepok, Mario Hros, Marko
13865 Myllynen, Markus Grimm, Martin Pitt, Martin Sobotka, Martin Wilck,
13866 Mathieu Trudel-Lapierre, Matthew Leeds, Michael Biebl, Michael Olbrich,
13867 Michael 'pbone' Pobega, Michael Scherer, Michal Koutný, Michal
13868 Sekletar, Michal Soltys, Mike Gilbert, Mike Palmer, Muhammet Kara, Neal
13869 Gompa, Neil Brown, Network Silence, Niklas Tibbling, Nikolas Nyby,
13870 Nogisaka Sadata, Oliver Smith, Patrik Flykt, Pavel Hrdina, Paweł
13871 Szewczyk, Peter Hutterer, Piotr Drąg, Ray Strode, Reinhold Mueller,
13872 Renaud Métrich, Roman Gushchin, Ronny Chevalier, Rubén Suárez Alvarez,
13873 Ruixin Bao, RussianNeuroMancer, Ryutaroh Matsumoto, Saleem Rashid, Sam
13874 Morris, Samuel Morris, Sandy Carter, scootergrisen, Sébastien Bacher,
13875 Sergey Ptashnick, Shawn Landden, Shengyao Xue, Shih-Yuan Lee
13876 (FourDollars), Silvio Knizek, Sjoerd Simons, Stasiek Michalski, Stephen
13877 Gallagher, Steven Allen, Steve Ramage, Susant Sahani, Sven Joachim,
13878 Sylvain Plantefève, Tanu Kaskinen, Tejun Heo, Thiago Macieira, Thomas
13879 Blume, Thomas Haller, Thomas H. P. Andersen, Tim Ruffing, TJ, Tobias
13880 Jungel, Todd Walton, Tommi Rantala, Tomsod M, Tony Novak, Tore
13881 Anderson, Trevonn, Victor Laskurain, Victor Tapia, Violet Halo, Vojtech
13882 Trefny, welaq, William A. Kennington III, William Douglas, Wyatt Ward,
13883 Xiang Fan, Xi Ruoyao, Xuanwo, Yann E. Morin, YmrDtnJu, Yu Watanabe,
13884 Zbigniew Jędrzejewski-Szmek, Zhang Xianwei, Zsolt Dollenstein
13885
13886 — Warsaw, 2018-12-21
13887
13888 CHANGES WITH 239:
13889
13890 * NETWORK INTERFACE DEVICE NAMING CHANGES: systemd-udevd's "net_id"
13891 builtin will name network interfaces differently than in previous
13892 versions for virtual network interfaces created with SR-IOV and NPAR
13893 and for devices where the PCI network controller device does not have
13894 a slot number associated.
13895
13896 SR-IOV virtual devices are now named based on the name of the parent
13897 interface, with a suffix of "v<N>", where <N> is the virtual device
13898 number. Previously those virtual devices were named as if completely
13899 independent.
13900
13901 The ninth and later NPAR virtual devices will be named following the
13902 scheme used for the first eight NPAR partitions. Previously those
13903 devices were not renamed and the kernel default (eth<n>) was used.
13904
13905 "net_id" will also generate names for PCI devices where the PCI
13906 network controller device does not have an associated slot number
13907 itself, but one of its parents does. Previously those devices were
13908 not renamed and the kernel default (eth<n>) was used.
13909
13910 * AF_INET and AF_INET6 are dropped from RestrictAddressFamilies= in
13911 systemd-logind.service. Since v235, IPAddressDeny=any has been set to
13912 the unit. So, it is expected that the default behavior of
13913 systemd-logind is not changed. However, if distribution packagers or
13914 administrators disabled or modified IPAddressDeny= setting by a
13915 drop-in config file, then it may be necessary to update the file to
13916 re-enable AF_INET and AF_INET6 to support network user name services,
13917 e.g. NIS.
13918
13919 * When the RestrictNamespaces= unit property is specified multiple
13920 times, then the specified types are merged now. Previously, only the
13921 last assignment was used. So, if distribution packagers or
13922 administrators modified the setting by a drop-in config file, then it
13923 may be necessary to update the file.
13924
13925 * When OnFailure= is used in combination with Restart= on a service
13926 unit, then the specified units will no longer be triggered on
13927 failures that result in restarting. Previously, the specified units
13928 would be activated each time the unit failed, even when the unit was
13929 going to be restarted automatically. This behaviour contradicted the
13930 documentation. With this release the code is adjusted to match the
13931 documentation.
13932
13933 * systemd-tmpfiles will now print a notice whenever it encounters
13934 tmpfiles.d/ lines referencing the /var/run/ directory. It will
13935 recommend reworking them to use the /run/ directory instead (for
13936 which /var/run/ is simply a symlinked compatibility alias). This way
13937 systemd-tmpfiles can properly detect line conflicts and merge lines
13938 referencing the same file by two paths, without having to access
13939 them.
13940
13941 * systemctl disable/unmask/preset/preset-all cannot be used with
13942 --runtime. Previously this was allowed, but resulted in unintuitive
13943 behaviour that wasn't useful. systemctl disable/unmask will now undo
13944 both runtime and persistent enablement/masking, i.e. it will remove
13945 any relevant symlinks both in /run and /etc.
13946
13947 * Note that all long-running system services shipped with systemd will
13948 now default to a system call allow list (rather than a deny list, as
13949 before). In particular, systemd-udevd will now enforce one too. For
13950 most cases this should be safe, however downstream distributions
13951 which disabled sandboxing of systemd-udevd (specifically the
13952 MountFlags= setting), might want to disable this security feature
13953 too, as the default allow-listing will prohibit all mount, swap,
13954 reboot and clock changing operations from udev rules.
13955
13956 * sd-boot acquired new loader configuration settings to optionally turn
13957 off Windows and MacOS boot partition discovery as well as
13958 reboot-into-firmware menu items. It is also able to pick a better
13959 screen resolution for HiDPI systems, and now provides loader
13960 configuration settings to change the resolution explicitly.
13961
13962 * systemd-resolved now supports DNS-over-TLS. It's still
13963 turned off by default, use DNSOverTLS=opportunistic to turn it on in
13964 resolved.conf. We intend to make this the default as soon as couple
13965 of additional techniques for optimizing the initial latency caused by
13966 establishing a TLS/TCP connection are implemented.
13967
13968 * systemd-resolved.service and systemd-networkd.service now set
13969 DynamicUser=yes. The users systemd-resolve and systemd-network are
13970 not created by systemd-sysusers anymore.
13971
13972 NOTE: This has a chance of breaking nss-ldap and similar NSS modules
13973 that embed a network facing module into any process using getpwuid()
13974 or related call: the dynamic allocation of the user ID for
13975 systemd-resolved.service means the service manager has to check NSS
13976 if the user name is already taken when forking off the service. Since
13977 the user in the common case won't be defined in /etc/passwd the
13978 lookup is likely to trigger nss-ldap which in turn might use NSS to
13979 ask systemd-resolved for hostname lookups. This will hence result in
13980 a deadlock: a user name lookup in order to start
13981 systemd-resolved.service will result in a hostname lookup for which
13982 systemd-resolved.service needs to be started already. There are
13983 multiple ways to work around this problem: pre-allocate the
13984 "systemd-resolve" user on such systems, so that nss-ldap won't be
13985 triggered; or use a different NSS package that doesn't do networking
13986 in-process but provides a local asynchronous name cache; or configure
13987 the NSS package to avoid lookups for UIDs in the range between the
13988 values returned by the commands
13989 'pkg-config systemd --variable=dynamicuidmin' and
13990 'pkg-config systemd --variable=dynamicuidmax', so that it does not
13991 consider itself authoritative for the same UID range systemd
13992 allocates dynamic users from.
13993
13994 * The systemd-resolve tool has been renamed to resolvectl (it also
13995 remains available under the old name, for compatibility), and its
13996 interface is now verb-based, similar in style to the other <xyz>ctl
13997 tools, such as systemctl or loginctl.
13998
13999 * The resolvectl/systemd-resolve tool also provides 'resolvconf'
14000 compatibility. It may be symlinked under the 'resolvconf' name, in
14001 which case it will take arguments and input compatible with the
14002 Debian and FreeBSD resolvconf tool.
14003
14004 * Support for suspend-then-hibernate has been added, i.e. a sleep mode
14005 where the system initially suspends, and after a timeout resumes and
14006 hibernates again.
14007
14008 * networkd's ClientIdentifier= now accepts a new option "duid-only". If
14009 set the client will only send a DUID as client identifier. (EDIT: the
14010 option was broken, and was dropped in v255.)
14011
14012 * The nss-systemd glibc NSS module will now enumerate dynamic users and
14013 groups in effect. Previously, it could resolve UIDs/GIDs to user
14014 names/groups and vice versa, but did not support enumeration.
14015
14016 * journald's Compress= configuration setting now optionally accepts a
14017 byte threshold value. All journal objects larger than this threshold
14018 will be compressed, smaller ones will not. Previously this threshold
14019 was not configurable and set to 512.
14020
14021 * A new system.conf setting NoNewPrivileges= is now available which may
14022 be used to turn off acquisition of new privileges system-wide
14023 (i.e. set Linux' PR_SET_NO_NEW_PRIVS for PID 1 itself, and thus also
14024 for all its children). Note that turning this option on means setuid
14025 binaries and file system capabilities lose their special powers.
14026 While turning on this option is a big step towards a more secure
14027 system, doing so is likely to break numerous pre-existing UNIX tools,
14028 in particular su and sudo.
14029
14030 * A new service systemd-time-sync-wait.service has been added. If
14031 enabled it will delay the time-sync.target unit at boot until time
14032 synchronization has been received from the network. This
14033 functionality is useful on systems lacking a local RTC or where it is
14034 acceptable that the boot process shall be delayed by external network
14035 services.
14036
14037 * When hibernating, systemd will now inform the kernel of the image
14038 write offset, on kernels new enough to support this. This means swap
14039 files should work for hibernation now.
14040
14041 * When loading unit files, systemd will now look for drop-in unit files
14042 extensions in additional places. Previously, for a unit file name
14043 "foo-bar-baz.service" it would look for dropin files in
14044 "foo-bar-baz.service.d/*.conf". Now, it will also look in
14045 "foo-bar-.service.d/*.conf" and "foo-.service.d/", i.e. at the
14046 service name truncated after all inner dashes. This scheme allows
14047 writing drop-ins easily that apply to a whole set of unit files at
14048 once. It's particularly useful for mount and slice units (as their
14049 naming is prefix based), but is also useful for service and other
14050 units, for packages that install multiple unit files at once,
14051 following a strict naming regime of beginning the unit file name with
14052 the package's name. Two new specifiers are now supported in unit
14053 files to match this: %j and %J are replaced by the part of the unit
14054 name following the last dash.
14055
14056 * Unit files and other configuration files that support specifier
14057 expansion now understand another three new specifiers: %T and %V will
14058 resolve to /tmp and /var/tmp respectively, or whatever temporary
14059 directory has been set for the calling user. %E will expand to either
14060 /etc (for system units) or $XDG_CONFIG_HOME (for user units).
14061
14062 * The ExecStart= lines of unit files are no longer required to
14063 reference absolute paths. If non-absolute paths are specified the
14064 specified binary name is searched within the service manager's
14065 built-in $PATH, which may be queried with 'systemd-path
14066 search-binaries-default'. It's generally recommended to continue to
14067 use absolute paths for all binaries specified in unit files.
14068
14069 * Units gained a new load state "bad-setting", which is used when a
14070 unit file was loaded, but contained fatal errors which prevent it
14071 from being started (for example, a service unit has been defined
14072 lacking both ExecStart= and ExecStop= lines).
14073
14074 * coredumpctl's "gdb" verb has been renamed to "debug", in order to
14075 support alternative debuggers, for example lldb. The old name
14076 continues to be available however, for compatibility reasons. Use the
14077 new --debugger= switch or the $SYSTEMD_DEBUGGER environment variable
14078 to pick an alternative debugger instead of the default gdb.
14079
14080 * systemctl and the other tools will now output escape sequences that
14081 generate proper clickable hyperlinks in various terminal emulators
14082 where useful (for example, in the "systemctl status" output you can
14083 now click on the unit file name to quickly open it in the
14084 editor/viewer of your choice). Note that not all terminal emulators
14085 support this functionality yet, but many do. Unfortunately, the
14086 "less" pager doesn't support this yet, hence this functionality is
14087 currently automatically turned off when a pager is started (which
14088 happens quite often due to auto-paging). We hope to remove this
14089 limitation as soon as "less" learns these escape sequences. This new
14090 behaviour may also be turned off explicitly with the $SYSTEMD_URLIFY
14091 environment variable. For details on these escape sequences see:
14092 https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
14093
14094 * networkd's .network files now support a new IPv6MTUBytes= option for
14095 setting the MTU used by IPv6 explicitly as well as a new MTUBytes=
14096 option in the [Route] section to configure the MTU to use for
14097 specific routes. It also gained support for configuration of the DHCP
14098 "UserClass" option through the new UserClass= setting. It gained
14099 three new options in the new [CAN] section for configuring CAN
14100 networks. The MULTICAST and ALLMULTI interface flags may now be
14101 controlled explicitly with the new Multicast= and AllMulticast=
14102 settings.
14103
14104 * networkd will now automatically make use of the kernel's route
14105 expiration feature, if it is available.
14106
14107 * udevd's .link files now support setting the number of receive and
14108 transmit channels, using the RxChannels=, TxChannels=,
14109 OtherChannels=, CombinedChannels= settings.
14110
14111 * Support for UDPSegmentationOffload= has been removed, given its
14112 limited support in hardware, and waning software support.
14113
14114 * networkd's .netdev files now support creating "netdevsim" interfaces.
14115
14116 * PID 1 learnt a new bus call GetUnitByControlGroup() which may be used
14117 to query the unit belonging to a specific kernel control group.
14118
14119 * systemd-analyze gained a new verb "cat-config", which may be used to
14120 dump the contents of any configuration file, with all its matching
14121 drop-in files added in, and honouring the usual search and masking
14122 logic applied to systemd configuration files. For example use
14123 "systemd-analyze cat-config systemd/system.conf" to get the complete
14124 system configuration file of systemd how it would be loaded by PID 1
14125 itself. Similar to this, various tools such as systemd-tmpfiles or
14126 systemd-sysusers, gained a new option "--cat-config", which does the
14127 corresponding operation for their own configuration settings. For
14128 example, "systemd-tmpfiles --cat-config" will now output the full
14129 list of tmpfiles.d/ lines in place.
14130
14131 * timedatectl gained three new verbs: "show" shows bus properties of
14132 systemd-timedated, "timesync-status" shows the current NTP
14133 synchronization state of systemd-timesyncd, and "show-timesync"
14134 shows bus properties of systemd-timesyncd.
14135
14136 * systemd-timesyncd gained a bus interface on which it exposes details
14137 about its state.
14138
14139 * A new environment variable $SYSTEMD_TIMEDATED_NTP_SERVICES is now
14140 understood by systemd-timedated. It takes a colon-separated list of
14141 unit names of NTP client services. The list is used by
14142 "timedatectl set-ntp".
14143
14144 * systemd-nspawn gained a new --rlimit= switch for setting initial
14145 resource limits for the container payload. There's a new switch
14146 --hostname= to explicitly override the container's hostname. A new
14147 --no-new-privileges= switch may be used to control the
14148 PR_SET_NO_NEW_PRIVS flag for the container payload. A new
14149 --oom-score-adjust= switch controls the OOM scoring adjustment value
14150 for the payload. The new --cpu-affinity= switch controls the CPU
14151 affinity of the container payload. The new --resolv-conf= switch
14152 allows more detailed control of /etc/resolv.conf handling of the
14153 container. Similarly, the new --timezone= switch allows more detailed
14154 control of /etc/localtime handling of the container.
14155
14156 * systemd-detect-virt gained a new --list switch, which will print a
14157 list of all currently known VM and container environments.
14158
14159 * Support for "Portable Services" has been added, see
14160 doc/PORTABLE_SERVICES.md for details. Currently, the support is still
14161 experimental, but this is expected to change soon. Reflecting this
14162 experimental state, the "portablectl" binary is not installed into
14163 /usr/bin yet. The binary has to be called with the full path
14164 /usr/lib/systemd/portablectl instead.
14165
14166 * journalctl's and systemctl's -o switch now knows a new log output
14167 mode "with-unit". The output it generates is very similar to the
14168 regular "short" mode, but displays the unit name instead of the
14169 syslog tag for each log line. Also, the date is shown with timezone
14170 information. This mode is probably more useful than the classic
14171 "short" output mode for most purposes, except where pixel-perfect
14172 compatibility with classic /var/log/messages formatting is required.
14173
14174 * A new --dump-bus-properties switch has been added to the systemd
14175 binary, which may be used to dump all supported D-Bus properties.
14176 (Options which are still supported, but are deprecated, are *not*
14177 shown.)
14178
14179 * sd-bus gained a set of new calls:
14180 sd_bus_slot_set_floating()/sd_bus_slot_get_floating() may be used to
14181 enable/disable the "floating" state of a bus slot object,
14182 i.e. whether the slot object pins the bus it is allocated for into
14183 memory or if the bus slot object gets disconnected when the bus goes
14184 away. sd_bus_open_with_description(),
14185 sd_bus_open_user_with_description(),
14186 sd_bus_open_system_with_description() may be used to allocate bus
14187 objects and set their description string already during allocation.
14188
14189 * sd-event gained support for watching inotify events from the event
14190 loop, in an efficient way, sharing inotify handles between multiple
14191 users. For this a new function sd_event_add_inotify() has been added.
14192
14193 * sd-event and sd-bus gained support for calling special user-supplied
14194 destructor functions for userdata pointers associated with
14195 sd_event_source, sd_bus_slot, and sd_bus_track objects. For this new
14196 functions sd_bus_slot_set_destroy_callback,
14197 sd_bus_slot_get_destroy_callback, sd_bus_track_set_destroy_callback,
14198 sd_bus_track_get_destroy_callback,
14199 sd_event_source_set_destroy_callback,
14200 sd_event_source_get_destroy_callback have been added.
14201
14202 * The "net.ipv4.tcp_ecn" sysctl will now be turned on by default.
14203
14204 * PID 1 will now automatically reschedule .timer units whenever the
14205 local timezone changes. (They previously got rescheduled
14206 automatically when the system clock changed.)
14207
14208 * New documentation has been added to document cgroups delegation,
14209 portable services and the various code quality tools we have set up:
14210
14211 https://github.com/systemd/systemd/blob/master/docs/CGROUP_DELEGATION.md
14212 https://github.com/systemd/systemd/blob/master/docs/PORTABLE_SERVICES.md
14213 https://github.com/systemd/systemd/blob/master/docs/CODE_QUALITY.md
14214
14215 * The Boot Loader Specification has been added to the source tree.
14216
14217 https://github.com/systemd/systemd/blob/master/docs/BOOT_LOADER_SPECIFICATION.md
14218
14219 While moving it into our source tree we have updated it and further
14220 changes are now accepted through the usual github PR workflow.
14221
14222 * pam_systemd will now look for PAM userdata fields systemd.memory_max,
14223 systemd.tasks_max, systemd.cpu_weight, systemd.io_weight set by
14224 earlier PAM modules. The data in these fields is used to initialize
14225 the session scope's resource properties. Thus external PAM modules
14226 may now configure per-session limits, for example sourced from
14227 external user databases.
14228
14229 * socket units with Accept=yes will now maintain a "refused" counter in
14230 addition to the existing "accepted" counter, counting connections
14231 refused due to the enforced limits.
14232
14233 * The "systemd-path search-binaries-default" command may now be use to
14234 query the default, built-in $PATH PID 1 will pass to the services it
14235 manages.
14236
14237 * A new unit file setting PrivateMounts= has been added. It's a boolean
14238 option. If enabled the unit's processes are invoked in their own file
14239 system namespace. Note that this behaviour is also implied if any
14240 other file system namespacing options (such as PrivateTmp=,
14241 PrivateDevices=, ProtectSystem=, …) are used. This option is hence
14242 primarily useful for services that do not use any of the other file
14243 system namespacing options. One such service is systemd-udevd.service
14244 where this is now used by default.
14245
14246 * ConditionSecurity= gained a new value "uefi-secureboot" that is true
14247 when the system is booted in UEFI "secure mode".
14248
14249 * A new unit "system-update-pre.target" is added, which defines an
14250 optional synchronization point for offline system updates, as
14251 implemented by the pre-existing "system-update.target" unit. It
14252 allows ordering services before the service that executes the actual
14253 update process in a generic way.
14254
14255 * Systemd now emits warnings whenever .include syntax is used.
14256
14257 Contributions from: Adam Duskett, Alan Jenkins, Alessandro Casale,
14258 Alexander Kurtz, Alex Gartrell, Anssi Hannula, Arnaud Rebillout, Brian
14259 J. Murrell, Bruno Vernay, Chris Lamb, Chris Lesiak, Christian Brauner,
14260 Christian Hesse, Christian Rebischke, Colin Guthrie, Daniel Dao, Daniel
14261 Lin, Danylo Korostil, Davide Cavalca, David Tardon, Dimitri John
14262 Ledkov, Dmitriy Geels, Douglas Christman, Elia Geretto, emelenas, Emil
14263 Velikov, Evgeny Vereshchagin, Felipe Sateler, Feng Sun, Filipe
14264 Brandenburger, Franck Bui, futpib, Giuseppe Scrivano, Guillem Jover,
14265 guixxx, Hannes Reinecke, Hans de Goede, Harald Hoyer, Henrique Dante de
14266 Almeida, Hiram van Paassen, Ian Miell, Igor Gnatenko, Ivan Shapovalov,
14267 Iwan Timmer, James Cowgill, Jan Janssen, Jan Synacek, Jared Kazimir,
14268 Jérémy Rosen, João Paulo Rechi Vita, Joost Heitbrink, Jui-Chi Ricky
14269 Liang, Jürg Billeter, Kai-Heng Feng, Karol Augustin, Kay Sievers,
14270 Krzysztof Nowicki, Lauri Tirkkonen, Lennart Poettering, Leonard König,
14271 Long Li, Luca Boccassi, Lucas Werkmeister, Marcel Hoppe, Marc
14272 Kleine-Budde, Mario Limonciello, Martin Jansa, Martin Wilck, Mathieu
14273 Malaterre, Matteo F. Vescovi, Matthew McGinn, Matthias-Christian Ott,
14274 Michael Biebl, Michael Olbrich, Michael Prokop, Michal Koutný, Michal
14275 Sekletar, Mike Gilbert, Mikhail Kasimov, Milan Broz, Milan Pässler,
14276 Mladen Pejaković, Muhammet Kara, Nicolas Boichat, Omer Katz, Paride
14277 Legovini, Paul Menzel, Paul Milliken, Pavel Hrdina, Peter A. Bigot,
14278 Peter D'Hoye, Peter Hutterer, Peter Jones, Philip Sequeira, Philip
14279 Withnall, Piotr Drąg, Radostin Stoyanov, Ricardo Salveti de Araujo,
14280 Ronny Chevalier, Rosen Penev, Rubén Suárez Alvarez, Ryan Gonzalez,
14281 Salvo Tomaselli, Sebastian Reichel, Sergey Ptashnick, Sergio Lindo
14282 Mansilla, Stefan Schweter, Stephen Hemminger, Stuart Hayes, Susant
14283 Sahani, Sylvain Plantefève, Thomas H. P. Andersen, Tobias Jungel,
14284 Tomasz Torcz, Vito Caputo, Will Dietz, Will Thompson, Wim van Mourik,
14285 Yu Watanabe, Zbigniew Jędrzejewski-Szmek
14286
14287 — Berlin, 2018-06-22
14288
14289 CHANGES WITH 238:
14290
14291 * The MemoryAccounting= unit property now defaults to on. After
14292 discussions with the upstream control group maintainers we learnt
14293 that the negative impact of cgroup memory accounting on current
14294 kernels is finally relatively minimal, so that it should be safe to
14295 enable this by default without affecting system performance. Besides
14296 memory accounting only task accounting is turned on by default, all
14297 other forms of resource accounting (CPU, IO, IP) remain off for now,
14298 because it's not clear yet that their impact is small enough to move
14299 from opt-in to opt-out. We recommend downstreams to leave memory
14300 accounting on by default if kernel 4.14 or higher is primarily
14301 used. On very resource constrained systems or when support for old
14302 kernels is a necessity, -Dmemory-accounting-default=false can be used
14303 to revert this change.
14304
14305 * rpm scriptlets to update the udev hwdb and rules (%udev_hwdb_update,
14306 %udev_rules_update) and the journal catalog (%journal_catalog_update)
14307 from the upgrade scriptlets of individual packages now do nothing.
14308 Transfiletriggers have been added which will perform those updates
14309 once at the end of the transaction.
14310
14311 Similar transfiletriggers have been added to execute any sysctl.d
14312 and binfmt.d rules. Thus, it should be unnecessary to provide any
14313 scriptlets to execute this configuration from package installation
14314 scripts.
14315
14316 * systemd-sysusers gained a mode where the configuration to execute is
14317 specified on the command line, but this configuration is not executed
14318 directly, but instead it is merged with the configuration on disk,
14319 and the result is executed. This is useful for package installation
14320 scripts which want to create the user before installing any files on
14321 disk (in case some of those files are owned by that user), while
14322 still allowing local admin overrides.
14323
14324 This functionality is exposed to rpm scriptlets through a new
14325 %sysusers_create_package macro. Old %sysusers_create and
14326 %sysusers_create_inline macros are deprecated.
14327
14328 A transfiletrigger for sysusers.d configuration is now installed,
14329 which means that it should be unnecessary to call systemd-sysusers from
14330 package installation scripts, unless the package installs any files
14331 owned by those newly-created users, in which case
14332 %sysusers_create_package should be used.
14333
14334 * Analogous change has been done for systemd-tmpfiles: it gained a mode
14335 where the command-line configuration is merged with the configuration
14336 on disk. This is exposed as the new %tmpfiles_create_package macro,
14337 and %tmpfiles_create is deprecated. A transfiletrigger is installed
14338 for tmpfiles.d, hence it should be unnecessary to call systemd-tmpfiles
14339 from package installation scripts.
14340
14341 * sysusers.d configuration for a user may now also specify the group
14342 number, in addition to the user number ("u username 123:456"), or
14343 without the user number ("u username -:456").
14344
14345 * Configution items for systemd-sysusers can now be specified as
14346 positional arguments when the new --inline switch is used.
14347
14348 * The login shell of users created through sysusers.d may now be
14349 specified (previously, it was always /bin/sh for root and
14350 /sbin/nologin for other users).
14351
14352 * systemd-analyze gained a new --global switch to look at global user
14353 configuration. It also gained a unit-paths verb to list the unit load
14354 paths that are compiled into systemd (which can be used with
14355 --systemd, --user, or --global).
14356
14357 * udevadm trigger gained a new --settle/-w option to wait for any
14358 triggered events to finish (but just those, and not any other events
14359 which are triggered meanwhile).
14360
14361 * The action that systemd-logind takes when the lid is closed and the
14362 machine is connected to external power can now be configured using
14363 HandleLidSwitchExternalPower= in logind.conf. Previously, this action
14364 was determined by HandleLidSwitch=, and, for backwards compatibility,
14365 is still is, if HandleLidSwitchExternalPower= is not explicitly set.
14366
14367 * journalctl will periodically call sd_journal_process() to make it
14368 resilient against inotify queue overruns when journal files are
14369 rotated very quickly.
14370
14371 * Two new functions in libsystemd — sd_bus_get_n_queued_read and
14372 sd_bus_get_n_queued_write — may be used to check the number of
14373 pending bus messages.
14374
14375 * systemd gained a new
14376 org.freedesktop.systemd1.Manager.AttachProcessesToUnit dbus call
14377 which can be used to migrate foreign processes to scope and service
14378 units. The primary user for this new API is systemd itself: the
14379 systemd --user instance uses this call of the systemd --system
14380 instance to migrate processes if it itself gets the request to
14381 migrate processes and the kernel refuses this due to access
14382 restrictions. Thanks to this "systemd-run --scope --user …" works
14383 again in pure cgroup v2 environments when invoked from the user
14384 session scope.
14385
14386 * A new TemporaryFileSystem= setting can be used to mask out part of
14387 the real file system tree with tmpfs mounts. This may be combined
14388 with BindPaths= and BindReadOnlyPaths= to hide files or directories
14389 not relevant to the unit, while still allowing some paths lower in
14390 the tree to be accessed.
14391
14392 ProtectHome=tmpfs may now be used to hide user home and runtime
14393 directories from units, in a way that is mostly equivalent to
14394 "TemporaryFileSystem=/home /run/user /root".
14395
14396 * Non-service units are now started with KeyringMode=shared by default.
14397 This means that mount and swapon and other mount tools have access
14398 to keys in the main keyring.
14399
14400 * /sys/fs/bpf is now mounted automatically.
14401
14402 * QNX virtualization is now detected by systemd-detect-virt and may
14403 be used in ConditionVirtualization=.
14404
14405 * IPAccounting= may now be enabled also for slice units.
14406
14407 * A new -Dsplit-bin= build configuration switch may be used to specify
14408 whether bin and sbin directories are merged, or if they should be
14409 included separately in $PATH and various listings of executable
14410 directories. The build configuration scripts will try to autodetect
14411 the proper values of -Dsplit-usr= and -Dsplit-bin= based on build
14412 system, but distributions are encouraged to configure this
14413 explicitly.
14414
14415 * A new -Dok-color= build configuration switch may be used to change
14416 the colour of "OK" status messages.
14417
14418 * UPGRADE ISSUE: serialization of units using JoinsNamespaceOf= with
14419 PrivateNetwork=yes was buggy in previous versions of systemd. This
14420 means that after the upgrade and daemon-reexec, any such units must
14421 be restarted.
14422
14423 * INCOMPATIBILITY: as announced in the NEWS for 237, systemd-tmpfiles
14424 will not exclude read-only files owned by root from cleanup.
14425
14426 Contributions from: Alan Jenkins, Alexander F Rødseth, Alexis Jeandet,
14427 Andika Triwidada, Andrei Gherzan, Ansgar Burchardt, antizealot1337,
14428 Batuhan Osman Taşkaya, Beniamino Galvani, Bill Yodlowsky, Caio Marcelo
14429 de Oliveira Filho, CuBiC, Daniele Medri, Daniel Mouritzen, Daniel
14430 Rusek, Davide Cavalca, Dimitri John Ledkov, Douglas Christman, Evgeny
14431 Vereshchagin, Faalagorn, Filipe Brandenburger, Franck Bui, futpib,
14432 Giacomo Longo, Gunnar Hjalmarsson, Hans de Goede, Hermann Gausterer,
14433 Iago López Galeiras, Jakub Filak, Jan Synacek, Jason A. Donenfeld,
14434 Javier Martinez Canillas, Jérémy Rosen, Lennart Poettering, Lucas
14435 Werkmeister, Mao Huang, Marco Gulino, Michael Biebl, Michael Vogt,
14436 MilhouseVH, Neal Gompa (ニール・ゴンパ), Oleander Reis, Olof Mogren,
14437 Patrick Uiterwijk, Peter Hutterer, Peter Portante, Piotr Drąg, Robert
14438 Antoni Buj Gelonch, Sergey Ptashnick, Shawn Landden, Shuang Liu, Simon
14439 Fowler, SjonHortensius, snorreflorre, Susant Sahani, Sylvain
14440 Plantefève, Thomas Blume, Thomas Haller, Vito Caputo, Yu Watanabe,
14441 Zbigniew Jędrzejewski-Szmek, Марко М. Костић (Marko M. Kostić)
14442
14443 — Warsaw, 2018-03-05
14444
14445 CHANGES WITH 237:
14446
14447 * Some keyboards come with a zoom see-saw or rocker which until now got
14448 mapped to the Linux "zoomin/out" keys in hwdb. However, these
14449 keycodes are not recognized by any major desktop. They now produce
14450 Up/Down key events so that they can be used for scrolling.
14451
14452 * INCOMPATIBILITY: systemd-tmpfiles' "f" lines changed behaviour
14453 slightly: previously, if an argument was specified for lines of this
14454 type (i.e. the right-most column was set) this string was appended to
14455 existing files each time systemd-tmpfiles was run. This behaviour was
14456 different from what the documentation said, and not particularly
14457 useful, as repeated systemd-tmpfiles invocations would not be
14458 idempotent and grow such files without bounds. With this release
14459 behaviour has been altered to match what the documentation says:
14460 lines of this type only have an effect if the indicated files don't
14461 exist yet, and only then the argument string is written to the file.
14462
14463 * FUTURE INCOMPATIBILITY: In systemd v238 we intend to slightly change
14464 systemd-tmpfiles behaviour: previously, read-only files owned by root
14465 were always excluded from the file "aging" algorithm (i.e. the
14466 automatic clean-up of directories like /tmp based on
14467 atime/mtime/ctime). We intend to drop this restriction, and age files
14468 by default even when owned by root and read-only. This behaviour was
14469 inherited from older tools, but there have been requests to remove
14470 it, and it's not obvious why this restriction was made in the first
14471 place. Please speak up now, if you are aware of software that requires
14472 this behaviour, otherwise we'll remove the restriction in v238.
14473
14474 * A new environment variable $SYSTEMD_OFFLINE is now understood by
14475 systemctl. It takes a boolean argument. If on, systemctl assumes it
14476 operates on an "offline" OS tree, and will not attempt to talk to the
14477 service manager. Previously, this mode was implicitly enabled if a
14478 chroot() environment was detected, and this new environment variable
14479 now provides explicit control.
14480
14481 * .path and .socket units may now be created transiently, too.
14482 Previously only service, mount, automount and timer units were
14483 supported as transient units. The systemd-run tool has been updated
14484 to expose this new functionality, you may hence use it now to bind
14485 arbitrary commands to path or socket activation on-the-fly from the
14486 command line. Moreover, almost all properties are now exposed for the
14487 unit types that already supported transient operation.
14488
14489 * The systemd-mount command gained support for a new --owner= parameter
14490 which takes a user name, which is then resolved and included in uid=
14491 and gid= mount options string of the file system to mount.
14492
14493 * A new unit condition ConditionControlGroupController= has been added
14494 that checks whether a specific cgroup controller is available.
14495
14496 * Unit files, udev's .link files, and systemd-networkd's .netdev and
14497 .network files all gained support for a new condition
14498 ConditionKernelVersion= for checking against specific kernel
14499 versions.
14500
14501 * In systemd-networkd, the [IPVLAN] section in .netdev files gained
14502 support for configuring device flags in the Flags= setting. In the
14503 same files, the [Tunnel] section gained support for configuring
14504 AllowLocalRemote=. The [Route] section in .network files gained
14505 support for configuring InitialCongestionWindow=,
14506 InitialAdvertisedReceiveWindow= and QuickAck=. The [DHCP] section now
14507 understands RapidCommit=.
14508
14509 * systemd-networkd's DHCPv6 support gained support for Prefix
14510 Delegation.
14511
14512 * sd-bus gained support for a new "watch-bind" feature. When this
14513 feature is enabled, an sd_bus connection may be set up to connect to
14514 an AF_UNIX socket in the file system as soon as it is created. This
14515 functionality is useful for writing early-boot services that
14516 automatically connect to the system bus as soon as it is started,
14517 without ugly time-based polling. systemd-networkd and
14518 systemd-resolved have been updated to make use of this
14519 functionality. busctl exposes this functionality in a new
14520 --watch-bind= command line switch.
14521
14522 * sd-bus will now optionally synthesize a local "Connected" signal as
14523 soon as a D-Bus connection is set up fully. This message mirrors the
14524 already existing "Disconnected" signal which is synthesized when the
14525 connection is terminated. This signal is generally useful but
14526 particularly handy in combination with the "watch-bind" feature
14527 described above. Synthesizing of this message has to be requested
14528 explicitly through the new API call sd_bus_set_connected_signal(). In
14529 addition a new call sd_bus_is_ready() has been added that checks
14530 whether a connection is fully set up (i.e. between the "Connected" and
14531 "Disconnected" signals).
14532
14533 * sd-bus gained two new calls sd_bus_request_name_async() and
14534 sd_bus_release_name_async() for asynchronously registering bus
14535 names. Similar, there is now sd_bus_add_match_async() for installing
14536 a signal match asynchronously. All of systemd's own services have
14537 been updated to make use of these calls. Doing these operations
14538 asynchronously has two benefits: it reduces the risk of deadlocks in
14539 case of cyclic dependencies between bus services, and it speeds up
14540 service initialization since synchronization points for bus
14541 round-trips are removed.
14542
14543 * sd-bus gained two new calls sd_bus_match_signal() and
14544 sd_bus_match_signal_async(), which are similar to sd_bus_add_match()
14545 and sd_bus_add_match_async() but instead of taking a D-Bus match
14546 string take match fields as normal function parameters.
14547
14548 * sd-bus gained two new calls sd_bus_set_sender() and
14549 sd_bus_message_set_sender() for setting the sender name of outgoing
14550 messages (either for all outgoing messages or for just one specific
14551 one). These calls are only useful in direct connections as on
14552 brokered connections the broker fills in the sender anyway,
14553 overwriting whatever the client filled in.
14554
14555 * sd-event gained a new pseudo-handle that may be specified on all API
14556 calls where an "sd_event*" object is expected: SD_EVENT_DEFAULT. When
14557 used this refers to the default event loop object of the calling
14558 thread. Note however that this does not implicitly allocate one —
14559 which has to be done prior by using sd_event_default(). Similarly
14560 sd-bus gained three new pseudo-handles SD_BUS_DEFAULT,
14561 SD_BUS_DEFAULT_USER, SD_BUS_DEFAULT_SYSTEM that may be used to refer
14562 to the default bus of the specified type of the calling thread. Here
14563 too this does not implicitly allocate bus connection objects, this
14564 has to be done prior with sd_bus_default() and friends.
14565
14566 * sd-event gained a new call pair
14567 sd_event_source_{get|set}_io_fd_own(). This may be used to request
14568 automatic closure of the file descriptor an IO event source watches
14569 when the event source is destroyed.
14570
14571 * systemd-networkd gained support for natively configuring WireGuard
14572 connections.
14573
14574 * In previous versions systemd synthesized user records both for the
14575 "nobody" (UID 65534) and "root" (UID 0) users in nss-systemd and
14576 internally. In order to simplify distribution-wide renames of the
14577 "nobody" user (like it is planned in Fedora: nfsnobody → nobody), a
14578 new transitional flag file has been added: if
14579 /etc/systemd/dont-synthesize-nobody exists synthesizing of the 65534
14580 user and group record within the systemd codebase is disabled.
14581
14582 * systemd-notify gained a new --uid= option for selecting the source
14583 user/UID to use for notification messages sent to the service
14584 manager.
14585
14586 * journalctl gained a new --grep= option to list only entries in which
14587 the message matches a certain pattern. By default matching is case
14588 insensitive if the pattern is lowercase, and case sensitive
14589 otherwise. Option --case-sensitive=yes|no can be used to override
14590 this an specify case sensitivity or case insensitivity.
14591
14592 * There's now a "systemd-analyze service-watchdogs" command for printing
14593 the current state of the service runtime watchdog, and optionally
14594 enabling or disabling the per-service watchdogs system-wide if given a
14595 boolean argument (i.e. the concept you configure in WatchdogSec=), for
14596 debugging purposes. There's also a kernel command line option
14597 systemd.service_watchdogs= for controlling the same.
14598
14599 * Two new "log-level" and "log-target" options for systemd-analyze were
14600 added that merge the now deprecated get-log-level, set-log-level and
14601 get-log-target, set-log-target pairs. The deprecated options are still
14602 understood for backwards compatibility. The two new options print the
14603 current value when no arguments are given, and set them when a
14604 level/target is given as an argument.
14605
14606 * sysusers.d's "u" lines now optionally accept both a UID and a GID
14607 specification, separated by a ":" character, in order to create users
14608 where UID and GID do not match.
14609
14610 Contributions from: Adam Duskett, Alan Jenkins, Alexander Kuleshov,
14611 Alexis Deruelle, Andrew Jeddeloh, Armin Widegreen, Batuhan Osman
14612 Taşkaya, Björn Esser, bleep_blop, Bruce A. Johnson, Chris Down, Clinton
14613 Roy, Colin Walters, Daniel Rusek, Dimitri John Ledkov, Dmitry Rozhkov,
14614 Evgeny Vereshchagin, Ewout van Mansom, Felipe Sateler, Franck Bui,
14615 Frantisek Sumsal, George Gaydarov, Gianluca Boiano, Hans-Christian
14616 Noren Egtvedt, Hans de Goede, Henrik Grindal Bakken, Jan Alexander
14617 Steffens, Jan Klötzke, Jason A. Donenfeld, jdkbx, Jérémy Rosen,
14618 Jerónimo Borque, John Lin, John Paul Herold, Jonathan Rudenberg, Jörg
14619 Thalheim, Ken (Bitsko) MacLeod, Larry Bernstone, Lennart Poettering,
14620 Lucas Werkmeister, Maciej S. Szmigiero, Marek Čermák, Martin Pitt,
14621 Mathieu Malaterre, Matthew Thode, Matthias-Christian Ott, Max Harmathy,
14622 Michael Biebl, Michael Vogt, Michal Koutný, Michal Sekletar, Michał
14623 Szczepański, Mike Gilbert, Nathaniel McCallum, Nicolas Chauvet, Olaf
14624 Hering, Olivier Schwander, Patrik Flykt, Paul Cercueil, Peter Hutterer,
14625 Piotr Drąg, Raphael Vogelgsang, Reverend Homer, Robert Kolchmeyer,
14626 Samuel Dionne-Riel, Sergey Ptashnick, Shawn Landden, Susant Sahani,
14627 Sylvain Plantefève, Thomas H. P. Andersen, Thomas Huth, Tomasz
14628 Bachorski, Vladislav Vishnyakov, Wieland Hoffmann, Yu Watanabe, Zachary
14629 Winnerman, Zbigniew Jędrzejewski-Szmek, Дамјан Георгиевски, Дилян
14630 Палаузов
14631
14632 — Brno, 2018-01-28
14633
14634 CHANGES WITH 236:
14635
14636 * The modprobe.d/ drop-in for the bonding.ko kernel module introduced
14637 in v235 has been extended to also set the dummy.ko module option
14638 numdummies=0, preventing the kernel from automatically creating
14639 dummy0. All dummy interfaces must now be explicitly created.
14640
14641 * Unknown '%' specifiers in configuration files are now rejected. This
14642 applies to units and tmpfiles.d configuration. Any percent characters
14643 that are followed by a letter or digit that are not supposed to be
14644 interpreted as the beginning of a specifier should be escaped by
14645 doubling ("%%"). (So "size=5%" is still accepted, as well as
14646 "size=5%,foo=bar", but not "LABEL=x%y%z" since %y and %z are not
14647 valid specifiers today.)
14648
14649 * systemd-resolved now maintains a new dynamic
14650 /run/systemd/resolve/stub-resolv.conf compatibility file. It is
14651 recommended to make /etc/resolv.conf a symlink to it. This file
14652 points at the systemd-resolved stub DNS 127.0.0.53 resolver and
14653 includes dynamically acquired search domains, achieving more correct
14654 DNS resolution by software that bypasses local DNS APIs such as NSS.
14655
14656 * The "uaccess" udev tag has been dropped from /dev/kvm and
14657 /dev/dri/renderD*. These devices now have the 0666 permissions by
14658 default (but this may be changed at build-time). /dev/dri/renderD*
14659 will now be owned by the "render" group along with /dev/kfd.
14660
14661 * "DynamicUser=yes" has been enabled for systemd-timesyncd.service,
14662 systemd-journal-gatewayd.service and
14663 systemd-journal-upload.service. This means "nss-systemd" must be
14664 enabled in /etc/nsswitch.conf to ensure the UIDs assigned to these
14665 services are resolved properly.
14666
14667 * In /etc/fstab two new mount options are now understood:
14668 x-systemd.makefs and x-systemd.growfs. The former has the effect that
14669 the configured file system is formatted before it is mounted, the
14670 latter that the file system is resized to the full block device size
14671 after it is mounted (i.e. if the file system is smaller than the
14672 partition it resides on, it's grown). This is similar to the fsck
14673 logic in /etc/fstab, and pulls in [email protected] and
14674 [email protected] as necessary, similar to
14675 [email protected]. Resizing is currently only supported on ext4
14676 and btrfs.
14677
14678 * In systemd-networkd, the IPv6 RA logic now optionally may announce
14679 DNS server and domain information.
14680
14681 * Support for the LUKS2 on-disk format for encrypted partitions has
14682 been added. This requires libcryptsetup2 during compilation and
14683 runtime.
14684
14685 * The systemd --user instance will now signal "readiness" when its
14686 basic.target unit has been reached, instead of when the run queue ran
14687 empty for the first time.
14688
14689 * Tmpfiles.d with user configuration are now also supported.
14690 systemd-tmpfiles gained a new --user switch, and snippets placed in
14691 ~/.config/user-tmpfiles.d/ and corresponding directories will be
14692 executed by systemd-tmpfiles --user running in the new
14693 systemd-tmpfiles-setup.service and systemd-tmpfiles-clean.service
14694 running in the user session.
14695
14696 * Unit files and tmpfiles.d snippets learnt three new % specifiers:
14697 %S resolves to the top-level state directory (/var/lib for the system
14698 instance, $XDG_CONFIG_HOME for the user instance), %C resolves to the
14699 top-level cache directory (/var/cache for the system instance,
14700 $XDG_CACHE_HOME for the user instance), %L resolves to the top-level
14701 logs directory (/var/log for the system instance,
14702 $XDG_CONFIG_HOME/log/ for the user instance). This matches the
14703 existing %t specifier, that resolves to the top-level runtime
14704 directory (/run for the system instance, and $XDG_RUNTIME_DIR for the
14705 user instance).
14706
14707 * journalctl learnt a new parameter --output-fields= for limiting the
14708 set of journal fields to output in verbose and JSON output modes.
14709
14710 * systemd-timesyncd's configuration file gained a new option
14711 RootDistanceMaxSec= for setting the maximum root distance of servers
14712 it'll use, as well as the new options PollIntervalMinSec= and
14713 PollIntervalMaxSec= to tweak the minimum and maximum poll interval.
14714
14715 * bootctl gained a new command "list" for listing all available boot
14716 menu items on systems that follow the boot loader specification.
14717
14718 * systemctl gained a new --dry-run switch that shows what would be done
14719 instead of doing it, and is currently supported by the shutdown and
14720 sleep verbs.
14721
14722 * ConditionSecurity= can now detect the TOMOYO security module.
14723
14724 * Unit file [Install] sections are now also respected in unit drop-in
14725 files. This is intended to be used by drop-ins under /usr/lib/.
14726
14727 * systemd-firstboot may now also set the initial keyboard mapping.
14728
14729 * Udev "changed" events for devices which are exposed as systemd
14730 .device units are now propagated to units specified in
14731 ReloadPropagatedFrom= as reload requests.
14732
14733 * If a udev device has a SYSTEMD_WANTS= property containing a systemd
14734 unit template name (i.e. a name in the form of '[email protected]',
14735 without the instance component between the '@' and - the '.'), then
14736 the escaped sysfs path of the device is automatically used as the
14737 instance.
14738
14739 * SystemCallFilter= in unit files has been extended so that an "errno"
14740 can be specified individually for each system call. Example:
14741 SystemCallFilter=~uname:EILSEQ.
14742
14743 * The cgroup delegation logic has been substantially updated. Delegate=
14744 now optionally takes a list of controllers (instead of a boolean, as
14745 before), which lists the controllers to delegate at least.
14746
14747 * The networkd DHCPv6 client now implements the FQDN option (RFC 4704).
14748
14749 * A new LogLevelMax= setting configures the maximum log level any
14750 process of the service may log at (i.e. anything with a lesser
14751 priority than what is specified is automatically dropped). A new
14752 LogExtraFields= setting allows configuration of additional journal
14753 fields to attach to all log records generated by any of the unit's
14754 processes.
14755
14756 * New StandardInputData= and StandardInputText= settings along with the
14757 new option StandardInput=data may be used to configure textual or
14758 binary data that shall be passed to the executed service process via
14759 standard input, encoded in-line in the unit file.
14760
14761 * StandardInput=, StandardOutput= and StandardError= may now be used to
14762 connect stdin/stdout/stderr of executed processes directly with a
14763 file or AF_UNIX socket in the file system, using the new "file:" option.
14764
14765 * A new unit file option CollectMode= has been added, that allows
14766 tweaking the garbage collection logic for units. It may be used to
14767 tell systemd to garbage collect units that have failed automatically
14768 (normally it only GCs units that exited successfully). systemd-run
14769 and systemd-mount expose this new functionality with a new -G option.
14770
14771 * "machinectl bind" may now be used to bind mount non-directories
14772 (i.e. regularfiles, devices, fifos, sockets).
14773
14774 * systemd-analyze gained a new verb "calendar" for validating and
14775 testing calendar time specifications to use for OnCalendar= in timer
14776 units. Besides validating the expression it will calculate the next
14777 time the specified expression would elapse.
14778
14779 * In addition to the pre-existing FailureAction= unit file setting
14780 there's now SuccessAction=, for configuring a shutdown action to
14781 execute when a unit completes successfully. This is useful in
14782 particular inside containers that shall terminate after some workload
14783 has been completed. Also, both options are now supported for all unit
14784 types, not just services.
14785
14786 * networkds's IP rule support gained two new options
14787 IncomingInterface= and OutgoingInterface= for configuring the incoming
14788 and outgoing interfaces of configured rules. systemd-networkd also
14789 gained support for "vxcan" network devices.
14790
14791 * networkd gained a new setting RequiredForOnline=, taking a
14792 boolean. If set, systemd-wait-online will take it into consideration
14793 when determining that the system is up, otherwise it will ignore the
14794 interface for this purpose.
14795
14796 * The sd_notify() protocol gained support for a new operation: with
14797 FDSTOREREMOVE=1 file descriptors may be removed from the per-service
14798 store again, ahead of POLLHUP or POLLERR when they are removed
14799 anyway.
14800
14801 * A new document doc/UIDS-GIDS.md has been added to the source tree,
14802 that documents the UID/GID range and assignment assumptions and
14803 requirements of systemd.
14804
14805 * The watchdog device PID 1 will ping may now be configured through the
14806 WatchdogDevice= configuration file setting, or by setting the
14807 systemd.watchdog_service= kernel command line option.
14808
14809 * systemd-resolved's gained support for registering DNS-SD services on
14810 the local network using MulticastDNS. Services may either be
14811 registered by dropping in a .dnssd file in /etc/systemd/dnssd/ (or
14812 the same dir below /run, /usr/lib), or through its D-Bus API.
14813
14814 * The sd_notify() protocol can now with EXTEND_TIMEOUT_USEC=microsecond
14815 extend the effective start, runtime, and stop time. The service must
14816 continue to send EXTEND_TIMEOUT_USEC within the period specified to
14817 prevent the service manager from making the service as timedout.
14818
14819 * systemd-resolved's DNSSEC support gained support for RFC 8080
14820 (Ed25519 keys and signatures).
14821
14822 * The systemd-resolve command line tool gained a new set of options
14823 --set-dns=, --set-domain=, --set-llmnr=, --set-mdns=, --set-dnssec=,
14824 --set-nta= and --revert to configure per-interface DNS configuration
14825 dynamically during runtime. It's useful for pushing DNS information
14826 into systemd-resolved from DNS hook scripts that various interface
14827 managing software supports (such as pppd).
14828
14829 * systemd-nspawn gained a new --network-namespace-path= command line
14830 option, which may be used to make a container join an existing
14831 network namespace, by specifying a path to a "netns" file.
14832
14833 Contributions from: Alan Jenkins, Alan Robertson, Alessandro Ghedini,
14834 Andrew Jeddeloh, Antonio Rojas, Ari, asavah, bleep_blop, Carsten
14835 Strotmann, Christian Brauner, Christian Hesse, Clinton Roy, Collin
14836 Eggert, Cong Wang, Daniel Black, Daniel Lockyer, Daniel Rusek, Dimitri
14837 John Ledkov, Dmitry Rozhkov, Dongsu Park, Edward A. James, Evgeny
14838 Vereshchagin, Florian Klink, Franck Bui, Gwendal Grignou, Hans de
14839 Goede, Harald Hoyer, Hristo Venev, Iago López Galeiras, Ikey Doherty,
14840 Jakub Wilk, Jérémy Rosen, Jiahui Xie, John Lin, José Bollo, Josef
14841 Andersson, juga0, Krzysztof Nowicki, Kyle Walker, Lars Karlitski, Lars
14842 Kellogg-Stedman, Lauri Tirkkonen, Lennart Poettering, Lubomir Rintel,
14843 Luca Bruno, Lucas Werkmeister, Lukáš Nykrýn, Lukáš Říha, Lukasz
14844 Rubaszewski, Maciej S. Szmigiero, Mantas Mikulėnas, Marcus Folkesson,
14845 Martin Steuer, Mathieu Trudel-Lapierre, Matija Skala,
14846 Matthias-Christian Ott, Max Resch, Michael Biebl, Michael Vogt, Michal
14847 Koutný, Michal Sekletar, Mike Gilbert, Muhammet Kara, Neil Brown, Olaf
14848 Hering, Ondrej Kozina, Patrik Flykt, Patryk Kocielnik, Peter Hutterer,
14849 Piotr Drąg, Razvan Cojocaru, Robin McCorkell, Roland Hieber, Saran
14850 Tunyasuvunakool, Sergey Ptashnick, Shawn Landden, Shuang Liu, Simon
14851 Arlott, Simon Peeters, Stanislav Angelovič, Stefan Agner, Susant
14852 Sahani, Sylvain Plantefève, Thomas Blume, Thomas Haller, Tiago Salem
14853 Herrmann, Tinu Weber, Tom Stellard, Topi Miettinen, Torsten Hilbrich,
14854 Vito Caputo, Vladislav Vishnyakov, WaLyong Cho, Yu Watanabe, Zbigniew
14855 Jędrzejewski-Szmek, Zeal Jagannatha
14856
14857 — Berlin, 2017-12-14
14858
14859 CHANGES WITH 235:
14860
14861 * INCOMPATIBILITY: systemd-logind.service and other long-running
14862 services now run inside an IPv4/IPv6 sandbox, prohibiting them any IP
14863 communication with the outside. This generally improves security of
14864 the system, and is in almost all cases a safe and good choice, as
14865 these services do not and should not provide any network-facing
14866 functionality. However, systemd-logind uses the glibc NSS API to
14867 query the user database. This creates problems on systems where NSS
14868 is set up to directly consult network services for user database
14869 lookups. In particular, this creates incompatibilities with the
14870 "nss-nis" module, which attempts to directly contact the NIS/YP
14871 network servers it is configured for, and will now consistently
14872 fail. In such cases, it is possible to turn off IP sandboxing for
14873 systemd-logind.service (set IPAddressDeny= in its [Service] section
14874 to the empty string, via a .d/ unit file drop-in). Downstream
14875 distributions might want to update their nss-nis packaging to include
14876 such a drop-in snippet, accordingly, to hide this incompatibility
14877 from the user. Another option is to make use of glibc's nscd service
14878 to proxy such network requests through a privilege-separated, minimal
14879 local caching daemon, or to switch to more modern technologies such
14880 sssd, whose NSS hook-ups generally do not involve direct network
14881 access. In general, we think it's definitely time to question the
14882 implementation choices of nss-nis, i.e. whether it's a good idea
14883 today to embed a network-facing loadable module into all local
14884 processes that need to query the user database, including the most
14885 trivial and benign ones, such as "ls". For more details about
14886 IPAddressDeny= see below.
14887
14888 * A new modprobe.d drop-in is now shipped by default that sets the
14889 bonding module option max_bonds=0. This overrides the kernel default,
14890 to avoid conflicts and ambiguity as to whether or not bond0 should be
14891 managed by systemd-networkd or not. This resolves multiple issues
14892 with bond0 properties not being applied, when bond0 is configured
14893 with systemd-networkd. Distributors may choose to not package this,
14894 however in that case users will be prevented from correctly managing
14895 bond0 interface using systemd-networkd.
14896
14897 * systemd-analyze gained new verbs "get-log-level" and "get-log-target"
14898 which print the logging level and target of the system manager. They
14899 complement the existing "set-log-level" and "set-log-target" verbs
14900 used to change those values.
14901
14902 * journald.conf gained a new boolean setting ReadKMsg= which defaults
14903 to on. If turned off kernel log messages will not be read by
14904 systemd-journald or included in the logs. It also gained a new
14905 setting LineMax= for configuring the maximum line length in
14906 STDOUT/STDERR log streams. The new default for this value is 48K, up
14907 from the previous hardcoded 2048.
14908
14909 * A new unit setting RuntimeDirectoryPreserve= has been added, which
14910 allows more detailed control of what to do with a runtime directory
14911 configured with RuntimeDirectory= (i.e. a directory below /run or
14912 $XDG_RUNTIME_DIR) after a unit is stopped.
14913
14914 * The RuntimeDirectory= setting for units gained support for creating
14915 deeper subdirectories below /run or $XDG_RUNTIME_DIR, instead of just
14916 one top-level directory.
14917
14918 * Units gained new options StateDirectory=, CacheDirectory=,
14919 LogsDirectory= and ConfigurationDirectory= which are closely related
14920 to RuntimeDirectory= but manage per-service directories below
14921 /var/lib, /var/cache, /var/log and /etc. By making use of them it is
14922 possible to write unit files which when activated automatically gain
14923 properly owned service specific directories in these locations, thus
14924 making unit files self-contained and increasing compatibility with
14925 stateless systems and factory reset where /etc or /var are
14926 unpopulated at boot. Matching these new settings there's also
14927 StateDirectoryMode=, CacheDirectoryMode=, LogsDirectoryMode=,
14928 ConfigurationDirectoryMode= for configuring the access mode of these
14929 directories. These settings are particularly useful in combination
14930 with DynamicUser=yes as they provide secure, properly-owned,
14931 writable, and stateful locations for storage, excluded from the
14932 sandbox that such services live in otherwise.
14933
14934 * Automake support has been removed from this release. systemd is now
14935 Meson-only.
14936
14937 * systemd-journald will now aggressively cache client metadata during
14938 runtime, speeding up log write performance under pressure. This comes
14939 at a small price though: as much of the metadata is read
14940 asynchronously from /proc/ (and isn't implicitly attached to log
14941 datagrams by the kernel, like UID/GID/PID/SELinux are) this means the
14942 metadata stored alongside a log entry might be slightly
14943 out-of-date. Previously it could only be slightly newer than the log
14944 message. The time window is small however, and given that the kernel
14945 is unlikely to be improved anytime soon in this regard, this appears
14946 acceptable to us.
14947
14948 * nss-myhostname/systemd-resolved will now by default synthesize an
14949 A/AAAA resource record for the "_gateway" hostname, pointing to the
14950 current default IP gateway. Previously it did that for the "gateway"
14951 name, hampering adoption, as some distributions wanted to leave that
14952 hostname open for local use. The old behaviour may still be
14953 requested at build time.
14954
14955 * systemd-networkd's [Address] section in .network files gained a new
14956 Scope= setting for configuring the IP address scope. The [Network]
14957 section gained a new boolean setting ConfigureWithoutCarrier= that
14958 tells systemd-networkd to ignore link sensing when configuring the
14959 device. The [DHCP] section gained a new Anonymize= boolean option for
14960 turning on a number of options suggested in RFC 7844. A new
14961 [RoutingPolicyRule] section has been added for configuring the IP
14962 routing policy. The [Route] section has gained support for a new
14963 Type= setting which permits configuring
14964 blackhole/unreachable/prohibit routes.
14965
14966 * The [VRF] section in .netdev files gained a new Table= setting for
14967 configuring the routing table to use. The [Tunnel] section gained a
14968 new Independent= boolean field for configuring tunnels independent of
14969 an underlying network interface. The [Bridge] section gained a new
14970 GroupForwardMask= option for configuration of propagation of link
14971 local frames between bridge ports.
14972
14973 * The WakeOnLan= setting in .link files gained support for a number of
14974 new modes. A new TCP6SegmentationOffload= setting has been added for
14975 configuring TCP/IPv6 hardware segmentation offload.
14976
14977 * The IPv6 RA sender implementation may now optionally send out RDNSS
14978 and RDNSSL records to supply DNS configuration to peers.
14979
14980 * systemd-nspawn gained support for a new --system-call-filter= command
14981 line option for adding and removing entries in the default system
14982 call filter it applies. Moreover systemd-nspawn has been changed to
14983 implement a system call allow list instead of a deny list.
14984
14985 * systemd-run gained support for a new --pipe command line option. If
14986 used the STDIN/STDOUT/STDERR file descriptors passed to systemd-run
14987 are directly passed on to the activated transient service
14988 executable. This allows invoking arbitrary processes as systemd
14989 services (for example to take benefit of dependency management,
14990 accounting management, resource management or log management that is
14991 done automatically for services) — while still allowing them to be
14992 integrated in a classic UNIX shell pipeline.
14993
14994 * When a service sends RELOAD=1 via sd_notify() and reload propagation
14995 using ReloadPropagationTo= is configured, a reload is now propagated
14996 to configured units. (Previously this was only done on explicitly
14997 requested reloads, using "systemctl reload" or an equivalent
14998 command.)
14999
15000 * For each service unit a restart counter is now kept: it is increased
15001 each time the service is restarted due to Restart=, and may be
15002 queried using "systemctl show -p NRestarts …".
15003
15004 * New system call filter groups @aio, @sync, @chown, @setuid, @memlock,
15005 @signal and @timer have been added, for usage with SystemCallFilter=
15006 in unit files and the new --system-call-filter= command line option
15007 of systemd-nspawn (see above).
15008
15009 * ExecStart= lines in unit files gained two new modifiers: when a
15010 command line is prefixed with "!" the command will be executed as
15011 configured, except for the credentials applied by
15012 setuid()/setgid()/setgroups(). It is very similar to the pre-existing
15013 "+", but does still apply namespacing options unlike "+". There's
15014 also "!!" now, which is mostly identical, but becomes a NOP on
15015 systems that support ambient capabilities. This is useful to write
15016 unit files that work with ambient capabilities where possible but
15017 automatically fall back to traditional privilege dropping mechanisms
15018 on systems where this is not supported.
15019
15020 * ListenNetlink= settings in socket units now support RDMA netlink
15021 sockets.
15022
15023 * A new unit file setting LockPersonality= has been added which permits
15024 locking down the chosen execution domain ("personality") of a service
15025 during runtime.
15026
15027 * A new special target "getty-pre.target" has been added, which is
15028 ordered before all text logins, and may be used to order services
15029 before textual logins acquire access to the console.
15030
15031 * systemd will now attempt to load the virtio-rng.ko kernel module very
15032 early on if a VM environment supporting this is detected. This should
15033 improve entropy during early boot in virtualized environments.
15034
15035 * A _netdev option is now supported in /etc/crypttab that operates in a
15036 similar way as the same option in /etc/fstab: it permits configuring
15037 encrypted devices that need to be ordered after the network is up.
15038 Following this logic, two new special targets
15039 remote-cryptsetup-pre.target and remote-cryptsetup.target have been
15040 added that are to cryptsetup.target what remote-fs.target and
15041 remote-fs-pre.target are to local-fs.target.
15042
15043 * Service units gained a new UnsetEnvironment= setting which permits
15044 unsetting specific environment variables for services that are
15045 normally passed to it (for example in order to mask out locale
15046 settings for specific services that can't deal with it).
15047
15048 * Units acquired a new boolean option IPAccounting=. When turned on, IP
15049 traffic accounting (packet count as well as byte count) is done for
15050 the service, and shown as part of "systemctl status" or "systemd-run
15051 --wait".
15052
15053 * Service units acquired two new options IPAddressAllow= and
15054 IPAddressDeny=, taking a list of IPv4 or IPv6 addresses and masks,
15055 for configuring a simple IP access control list for all sockets of
15056 the unit. These options are available also on .slice and .socket
15057 units, permitting flexible access list configuration for individual
15058 services as well as groups of services (as defined by a slice unit),
15059 including system-wide. Note that IP ACLs configured this way are
15060 enforced on every single IPv4 and IPv6 socket created by any process
15061 of the service unit, and apply to ingress as well as egress traffic.
15062
15063 * If CPUAccounting= or IPAccounting= is turned on for a unit a new
15064 structured log message is generated each time the unit is stopped,
15065 containing information about the consumed resources of this
15066 invocation.
15067
15068 * A new setting KeyringMode= has been added to unit files, which may be
15069 used to control how the kernel keyring is set up for executed
15070 processes.
15071
15072 * "systemctl poweroff", "systemctl reboot", "systemctl halt",
15073 "systemctl kexec" and "systemctl exit" are now always asynchronous in
15074 behaviour (that is: these commands return immediately after the
15075 operation was enqueued instead of waiting for the operation to
15076 complete). Previously, "systemctl poweroff" and "systemctl reboot"
15077 were asynchronous on systems using systemd-logind (i.e. almost
15078 always, and like they were on sysvinit), and the other three commands
15079 were unconditionally synchronous. With this release this is cleaned
15080 up, and callers will see the same asynchronous behaviour on all
15081 systems for all five operations.
15082
15083 * systemd-logind gained new Halt() and CanHalt() bus calls for halting
15084 the system.
15085
15086 * .timer units now accept calendar specifications in other timezones
15087 than UTC or the local timezone.
15088
15089 * The tmpfiles snippet var.conf has been changed to create
15090 /var/log/btmp with access mode 0660 instead of 0600. It was owned by
15091 the "utmp" group already, and it appears to be generally understood
15092 that members of "utmp" can modify/flush the utmp/wtmp/lastlog/btmp
15093 databases. Previously this was implemented correctly for all these
15094 databases except btmp, which has been opened up like this now
15095 too. Note that while the other databases are world-readable
15096 (i.e. 0644), btmp is not and remains more restrictive.
15097
15098 * The systemd-resolve tool gained a new --reset-server-features
15099 switch. When invoked like this systemd-resolved will forget
15100 everything it learnt about the features supported by the configured
15101 upstream DNS servers, and restarts the feature probing logic on the
15102 next resolver look-up for them at the highest feature level
15103 again.
15104
15105 * The status dump systemd-resolved sends to the logs upon receiving
15106 SIGUSR1 now also includes information about all DNS servers it is
15107 configured to use, and the features levels it probed for them.
15108
15109 Contributions from: Abdó Roig-Maranges, Alan Jenkins, Alexander
15110 Kuleshov, Andreas Rammhold, Andrew Jeddeloh, Andrew Soutar, Ansgar
15111 Burchardt, Beniamino Galvani, Benjamin Berg, Benjamin Robin, Charles
15112 Huber, Christian Hesse, Daniel Berrange, Daniel Kahn Gillmor, Daniel
15113 Mack, Daniel Rusek, Daniel Șerbănescu, Davide Cavalca, Dimitri John
15114 Ledkov, Diogo Pereira, Djalal Harouni, Dmitriy Geels, Dmitry Torokhov,
15115 ettavolt, Evgeny Vereshchagin, Fabio Kung, Felipe Sateler, Franck Bui,
15116 Hans de Goede, Harald Hoyer, Insun Pyo, Ivan Kurnosov, Ivan Shapovalov,
15117 Jakub Wilk, Jan Synacek, Jason Gunthorpe, Jeremy Bicha, Jérémy Rosen,
15118 John Lin, jonasBoss, Jonathan Lebon, Jonathan Teh, Jon Ringle, Jörg
15119 Thalheim, Jouke Witteveen, juga0, Justin Capella, Justin Michaud,
15120 Kai-Heng Feng, Lennart Poettering, Lion Yang, Luca Bruno, Lucas
15121 Werkmeister, Lukáš Nykrýn, Marcel Hollerbach, Marcus Lundblad, Martin
15122 Pitt, Michael Biebl, Michael Grzeschik, Michal Sekletar, Mike Gilbert,
15123 Neil Brown, Nicolas Iooss, Patrik Flykt, pEJipE, Piotr Drąg, Russell
15124 Stuart, S. Fan, Shengyao Xue, Stefan Pietsch, Susant Sahani, Tejun Heo,
15125 Thomas Miller, Thomas Sailer, Tobias Hunger, Tomasz Pala, Tom
15126 Gundersen, Tommi Rantala, Topi Miettinen, Torstein Husebø, userwithuid,
15127 Vasilis Liaskovitis, Vito Caputo, WaLyong Cho, William Douglas, Xiang
15128 Fan, Yu Watanabe, Zbigniew Jędrzejewski-Szmek
15129
15130 — Berlin, 2017-10-06
15131
15132 CHANGES WITH 234:
15133
15134 * Meson is now supported as build system in addition to Automake. It is
15135 our plan to remove Automake in one of our next releases, so that
15136 Meson becomes our exclusive build system. Hence, please start using
15137 the Meson build system in your downstream packaging. There's plenty
15138 of documentation around how to use Meson, the extremely brief
15139 summary:
15140
15141 ./autogen.sh && ./configure && make && sudo make install
15142
15143 becomes:
15144
15145 meson build && ninja -C build && sudo ninja -C build install
15146
15147 * Unit files gained support for a new JobRunningTimeoutUSec= setting,
15148 which permits configuring a timeout on the time a job is
15149 running. This is particularly useful for setting timeouts on jobs for
15150 .device units.
15151
15152 * Unit files gained two new options ConditionUser= and ConditionGroup=
15153 for conditionalizing units based on the identity of the user/group
15154 running a systemd user instance.
15155
15156 * systemd-networkd now understands a new FlowLabel= setting in the
15157 [VXLAN] section of .network files, as well as a Priority= in
15158 [Bridge], GVRP= + MVRP= + LooseBinding= + ReorderHeader= in [VLAN]
15159 and GatewayOnlink= + IPv6Preference= + Protocol= in [Route]. It also
15160 gained support for configuration of GENEVE links, and IPv6 address
15161 labels. The [Network] section gained the new IPv6ProxyNDP= setting.
15162
15163 * .link files now understand a new Port= setting.
15164
15165 * systemd-networkd's DHCP support gained support for DHCP option 119
15166 (domain search list).
15167
15168 * systemd-networkd gained support for serving IPv6 address ranges using
15169 the Router Advertisement protocol. The new .network configuration
15170 section [IPv6Prefix] may be used to configure the ranges to
15171 serve. This is implemented based on a new, minimal, native server
15172 implementation of RA.
15173
15174 * journalctl's --output= switch gained support for a new parameter
15175 "short-iso-precise" for a mode where timestamps are shown as precise
15176 ISO date values.
15177
15178 * systemd-udevd's "net_id" builtin may now generate stable network
15179 interface names from IBM PowerVM VIO devices as well as ACPI platform
15180 devices.
15181
15182 * MulticastDNS support in systemd-resolved may now be explicitly
15183 enabled/disabled using the new MulticastDNS= configuration file
15184 option.
15185
15186 * systemd-resolved may now optionally use libidn2 instead of the libidn
15187 for processing internationalized domain names. Support for libidn2
15188 should be considered experimental and should not be enabled by
15189 default yet.
15190
15191 * "machinectl pull-tar" and related call may now do verification of
15192 downloaded images using SUSE-style .sha256 checksum files in addition
15193 to the already existing support for validating using Ubuntu-style
15194 SHA256SUMS files.
15195
15196 * sd-bus gained support for a new sd_bus_message_appendv() call which
15197 is va_list equivalent of sd_bus_message_append().
15198
15199 * sd-boot gained support for validating images using SHIM/MOK.
15200
15201 * The SMACK code learnt support for "onlycap".
15202
15203 * systemd-mount --umount is now much smarter in figuring out how to
15204 properly unmount a device given its mount or device path.
15205
15206 * The code to call libnss_dns as a fallback from libnss_resolve when
15207 the communication with systemd-resolved fails was removed. This
15208 fallback was redundant and interfered with the [!UNAVAIL=return]
15209 suffix. See nss-resolve(8) for the recommended configuration.
15210
15211 * systemd-logind may now be restarted without losing state. It stores
15212 the file descriptors for devices it manages in the system manager
15213 using the FDSTORE= mechanism. Please note that further changes in
15214 other components may be required to make use of this (for example
15215 Xorg has code to listen for stops of systemd-logind and terminate
15216 itself when logind is stopped or restarted, in order to avoid using
15217 stale file descriptors for graphical devices, which is now
15218 counterproductive and must be reverted in order for restarts of
15219 systemd-logind to be safe. See
15220 https://cgit.freedesktop.org/xorg/xserver/commit/?id=dc48bd653c7e101.)
15221
15222 * All kernel-install plugins are called with the environment variable
15223 KERNEL_INSTALL_MACHINE_ID which is set to the machine ID given by
15224 /etc/machine-id. If the machine ID could not be determined,
15225 $KERNEL_INSTALL_MACHINE_ID will be empty. Plugins should not put
15226 anything in the entry directory (passed as the second argument) if
15227 $KERNEL_INSTALL_MACHINE_ID is empty. For backwards compatibility, a
15228 temporary directory is passed as the entry directory and removed
15229 after all the plugins exit.
15230
15231 * If KERNEL_INSTALL_MACHINE_ID is set in /etc/machine-info, kernel-install
15232 will now use its value as the machine ID instead of the machine ID
15233 from /etc/machine-id. If KERNEL_INSTALL_MACHINE_ID isn't set in
15234 /etc/machine-info and no machine ID is set in /etc/machine-id,
15235 kernel-install will try to store the current machine ID there as
15236 KERNEL_INSTALL_MACHINE_ID. If there is no machine ID, kernel-install
15237 will generate a new UUID, store it in /etc/machine-info as
15238 KERNEL_INSTALL_MACHINE_ID and use it as the machine ID.
15239
15240 Contributions from: Adrian Heine né Lang, Aggelos Avgerinos, Alexander
15241 Kurtz, Alexandros Frantzis, Alexey Brodkin, Alex Lu, Amir Pakdel, Amir
15242 Yalon, Anchor Cat, Anthony Parsons, Bastien Nocera, Benjamin Gilbert,
15243 Benjamin Robin, Boucman, Charles Plessy, Chris Chiu, Chris Lamb,
15244 Christian Brauner, Christian Hesse, Colin Walters, Daniel Drake,
15245 Danielle Church, Daniel Molkentin, Daniel Rusek, Daniel Wang, Davide
15246 Cavalca, David Herrmann, David Michael, Dax Kelson, Dimitri John
15247 Ledkov, Djalal Harouni, Dušan Kazik, Elias Probst, Evgeny Vereshchagin,
15248 Federico Di Pierro, Felipe Sateler, Felix Zhang, Franck Bui, Gary
15249 Tierney, George McCollister, Giedrius Statkevičius, Hans de Goede,
15250 hecke, Hendrik Westerberg, Hristo Venev, Ian Wienand, Insun Pyo, Ivan
15251 Shapovalov, James Cowgill, James Hemsing, Janne Heß, Jan Synacek, Jason
15252 Reeder, João Paulo Rechi Vita, John Paul Adrian Glaubitz, Jörg
15253 Thalheim, Josef Andersson, Josef Gajdusek, Julian Mehne, Kai Krakow,
15254 Krzysztof Jackiewicz, Lars Karlitski, Lennart Poettering, Lluís Gili,
15255 Lucas Werkmeister, Lukáš Nykrýn, Łukasz Stelmach, Mantas Mikulėnas,
15256 Marcin Bachry, Marcus Cooper, Mark Stosberg, Martin Pitt, Matija Skala,
15257 Matt Clarkson, Matthew Garrett, Matthias Greiner, Matthijs van Duin,
15258 Max Resch, Michael Biebl, Michal Koutný, Michal Sekletar, Michal
15259 Soltys, Michal Suchanek, Mike Gilbert, Nate Clark, Nathaniel R. Lewis,
15260 Neil Brown, Nikolai Kondrashov, Pascal S. de Kloe, Pat Riehecky, Patrik
15261 Flykt, Paul Kocialkowski, Peter Hutterer, Philip Withnall, Piotr
15262 Szydełko, Rafael Fontenelle, Ray Strode, Richard Maw, Roelf Wichertjes,
15263 Ronny Chevalier, Sarang S. Dalal, Sjoerd Simons, slodki, Stefan
15264 Schweter, Susant Sahani, Ted Wood, Thomas Blume, Thomas Haller, Thomas
15265 H. P. Andersen, Timothée Ravier, Tobias Jungel, Tobias Stoeckmann, Tom
15266 Gundersen, Tom Yan, Torstein Husebø, Umut Tezduyar Lindskog,
15267 userwithuid, Vito Caputo, Waldemar Brodkorb, WaLyong Cho, Yu, Li-Yu,
15268 Yusuke Nojima, Yu Watanabe, Zbigniew Jędrzejewski-Szmek, Дамјан
15269 Георгиевски
15270
15271 — Berlin, 2017-07-12
15272
15273 CHANGES WITH 233:
15274
15275 * The "hybrid" control group mode has been modified to improve
15276 compatibility with "legacy" cgroups-v1 setups. Specifically, the
15277 "hybrid" setup of /sys/fs/cgroup is now pretty much identical to
15278 "legacy" (including /sys/fs/cgroup/systemd as "name=systemd" named
15279 cgroups-v1 hierarchy), the only externally visible change being that
15280 the cgroups-v2 hierarchy is also mounted, to
15281 /sys/fs/cgroup/unified. This should provide a large degree of
15282 compatibility with "legacy" cgroups-v1, while taking benefit of the
15283 better management capabilities of cgroups-v2.
15284
15285 * The default control group setup mode may be selected both a boot-time
15286 via a set of kernel command line parameters (specifically:
15287 systemd.unified_cgroup_hierarchy= and
15288 systemd.legacy_systemd_cgroup_controller=), as well as a compile-time
15289 default selected on the configure command line
15290 (--with-default-hierarchy=). The upstream default is "hybrid"
15291 (i.e. the cgroups-v1 + cgroups-v2 mixture discussed above) now, but
15292 this will change in a future systemd version to be "unified" (pure
15293 cgroups-v2 mode). The third option for the compile time option is
15294 "legacy", to enter pure cgroups-v1 mode. We recommend downstream
15295 distributions to default to "hybrid" mode for release distributions,
15296 starting with v233. We recommend "unified" for development
15297 distributions (specifically: distributions such as Fedora's rawhide)
15298 as that's where things are headed in the long run. Use "legacy" for
15299 greatest stability and compatibility only.
15300
15301 * Note one current limitation of "unified" and "hybrid" control group
15302 setup modes: the kernel currently does not permit the systemd --user
15303 instance (i.e. unprivileged code) to migrate processes between two
15304 disconnected cgroup subtrees, even if both are managed and owned by
15305 the user. This effectively means "systemd-run --user --scope" doesn't
15306 work when invoked from outside of any "systemd --user" service or
15307 scope. Specifically, it is not supported from session scopes. We are
15308 working on fixing this in a future systemd version. (See #3388 for
15309 further details about this.)
15310
15311 * DBus policy files are now installed into /usr rather than /etc. Make
15312 sure your system has dbus >= 1.9.18 running before upgrading to this
15313 version, or override the install path with --with-dbuspolicydir= .
15314
15315 * All python scripts shipped with systemd (specifically: the various
15316 tests written in Python) now require Python 3.
15317
15318 * systemd unit tests can now run standalone (without the source or
15319 build directories), and can be installed into /usr/lib/systemd/tests/
15320 with 'make install-tests'.
15321
15322 * Note that from this version on, CONFIG_CRYPTO_USER_API_HASH,
15323 CONFIG_CRYPTO_HMAC and CONFIG_CRYPTO_SHA256 need to be enabled in the
15324 kernel.
15325
15326 * Support for the %c, %r, %R specifiers in unit files has been
15327 removed. Specifiers are not supposed to be dependent on configuration
15328 in the unit file itself (so that they resolve the same regardless
15329 where used in the unit files), but these specifiers were influenced
15330 by the Slice= option.
15331
15332 * The shell invoked by debug-shell.service now defaults to /bin/sh in
15333 all cases. If distributions want to use a different shell for this
15334 purpose (for example Fedora's /sbin/sushell) they need to specify
15335 this explicitly at configure time using --with-debug-shell=.
15336
15337 * The confirmation spawn prompt has been reworked to offer the
15338 following choices:
15339
15340 (c)ontinue, proceed without asking anymore
15341 (D)ump, show the state of the unit
15342 (f)ail, don't execute the command and pretend it failed
15343 (h)elp
15344 (i)nfo, show a short summary of the unit
15345 (j)obs, show jobs that are in progress
15346 (s)kip, don't execute the command and pretend it succeeded
15347 (y)es, execute the command
15348
15349 The 'n' choice for the confirmation spawn prompt has been removed,
15350 because its meaning was confusing.
15351
15352 The prompt may now also be redirected to an alternative console by
15353 specifying the console as parameter to systemd.confirm_spawn=.
15354
15355 * Services of Type=notify require a READY=1 notification to be sent
15356 during startup. If no such message is sent, the service now fails,
15357 even if the main process exited with a successful exit code.
15358
15359 * Services that fail to start up correctly now always have their
15360 ExecStopPost= commands executed. Previously, they'd enter "failed"
15361 state directly, without executing these commands.
15362
15363 * The option MulticastDNS= of network configuration files has acquired
15364 an actual implementation. With MulticastDNS=yes a host can resolve
15365 names of remote hosts and reply to mDNS A and AAAA requests.
15366
15367 * When units are about to be started an additional check is now done to
15368 ensure that all dependencies of type BindsTo= (when used in
15369 combination with After=) have been started.
15370
15371 * systemd-analyze gained a new verb "syscall-filter" which shows which
15372 system call groups are defined for the SystemCallFilter= unit file
15373 setting, and which system calls they contain.
15374
15375 * A new system call filter group "@filesystem" has been added,
15376 consisting of various file system related system calls. Group
15377 "@reboot" has been added, covering reboot, kexec and shutdown related
15378 calls. Finally, group "@swap" has been added covering swap
15379 configuration related calls.
15380
15381 * A new unit file option RestrictNamespaces= has been added that may be
15382 used to restrict access to the various process namespace types the
15383 Linux kernel provides. Specifically, it may be used to take away the
15384 right for a service unit to create additional file system, network,
15385 user, and other namespaces. This sandboxing option is particularly
15386 relevant due to the high amount of recently discovered namespacing
15387 related vulnerabilities in the kernel.
15388
15389 * systemd-udev's .link files gained support for a new AutoNegotiation=
15390 setting for configuring Ethernet auto-negotiation.
15391
15392 * systemd-networkd's .network files gained support for a new
15393 ListenPort= setting in the [DHCP] section to explicitly configure the
15394 UDP client port the DHCP client shall listen on.
15395
15396 * .network files gained a new Unmanaged= boolean setting for explicitly
15397 excluding one or more interfaces from management by systemd-networkd.
15398
15399 * The systemd-networkd ProxyARP= option has been renamed to
15400 IPV4ProxyARP=. Similarly, VXLAN-specific option ARPProxy= has been
15401 renamed to ReduceARPProxy=. The old names continue to be available
15402 for compatibility.
15403
15404 * systemd-networkd gained support for configuring IPv6 Proxy NDP
15405 addresses via the new IPv6ProxyNDPAddress= .network file setting.
15406
15407 * systemd-networkd's bonding device support gained support for two new
15408 configuration options ActiveSlave= and PrimarySlave=.
15409
15410 * The various options in the [Match] section of .network files gained
15411 support for negative matching.
15412
15413 * New systemd-specific mount options are now understood in /etc/fstab:
15414
15415 x-systemd.mount-timeout= may be used to configure the maximum
15416 permitted runtime of the mount command.
15417
15418 x-systemd.device-bound may be set to bind a mount point to its
15419 backing device unit, in order to automatically remove a mount point
15420 if its backing device is unplugged. This option may also be
15421 configured through the new SYSTEMD_MOUNT_DEVICE_BOUND udev property
15422 on the block device, which is now automatically set for all CDROM
15423 drives, so that mounted CDs are automatically unmounted when they are
15424 removed from the drive.
15425
15426 x-systemd.after= and x-systemd.before= may be used to explicitly
15427 order a mount after or before another unit or mount point.
15428
15429 * Enqueued start jobs for device units are now automatically garbage
15430 collected if there are no jobs waiting for them anymore.
15431
15432 * systemctl list-jobs gained two new switches: with --after, for every
15433 queued job the jobs it's waiting for are shown; with --before the
15434 jobs which it's blocking are shown.
15435
15436 * systemd-nspawn gained support for ephemeral boots from disk images
15437 (or in other words: --ephemeral and --image= may now be
15438 combined). Moreover, ephemeral boots are now supported for normal
15439 directories, even if the backing file system is not btrfs. Of course,
15440 if the file system does not support file system snapshots or
15441 reflinks, the initial copy operation will be relatively expensive, but
15442 this should still be suitable for many use cases.
15443
15444 * Calendar time specifications in .timer units now support
15445 specifications relative to the end of a month by using "~" instead of
15446 "-" as separator between month and day. For example, "*-02~03" means
15447 "the third last day in February". In addition a new syntax for
15448 repeated events has been added using the "/" character. For example,
15449 "9..17/2:00" means "every two hours from 9am to 5pm".
15450
15451 * systemd-socket-proxyd gained a new parameter --connections-max= for
15452 configuring the maximum number of concurrent connections.
15453
15454 * sd-id128 gained a new API for generating unique IDs for the host in a
15455 way that does not leak the machine ID. Specifically,
15456 sd_id128_get_machine_app_specific() derives an ID based on the
15457 machine ID in a well-defined, non-reversible, stable way. This is
15458 useful whenever an identifier for the host is needed but where the
15459 identifier shall not be useful to identify the system beyond the
15460 scope of the application itself. (Internally this uses HMAC-SHA256 as
15461 keyed hash function using the machine ID as input.)
15462
15463 * NotifyAccess= gained a new supported value "exec". When set
15464 notifications are accepted from all processes systemd itself invoked,
15465 including all control processes.
15466
15467 * .nspawn files gained support for defining overlay mounts using the
15468 Overlay= and OverlayReadOnly= options. Previously this functionality
15469 was only available on the systemd-nspawn command line.
15470
15471 * systemd-nspawn's --bind= and --overlay= options gained support for
15472 bind/overlay mounts whose source lies within the container tree by
15473 prefixing the source path with "+".
15474
15475 * systemd-nspawn's --bind= and --overlay= options gained support for
15476 automatically allocating a temporary source directory in /var/tmp
15477 that is removed when the container dies. Specifically, if the source
15478 directory is specified as empty string this mechanism is selected. An
15479 example usage is --overlay=+/var::/var, which creates an overlay
15480 mount based on the original /var contained in the image, overlaid
15481 with a temporary directory in the host's /var/tmp. This way changes
15482 to /var are automatically flushed when the container shuts down.
15483
15484 * systemd-nspawn --image= option does now permit raw file system block
15485 devices (in addition to images containing partition tables, as
15486 before).
15487
15488 * The disk image dissection logic in systemd-nspawn gained support for
15489 automatically setting up LUKS encrypted as well as Verity protected
15490 partitions. When a container is booted from an encrypted image the
15491 passphrase is queried at start-up time. When a container with Verity
15492 data is started, the root hash is search in a ".roothash" file
15493 accompanying the disk image (alternatively, pass the root hash via
15494 the new --root-hash= command line option).
15495
15496 * A new tool /usr/lib/systemd/systemd-dissect has been added that may
15497 be used to dissect disk images the same way as systemd-nspawn does
15498 it, following the Bootable Partition Specification. It may even be
15499 used to mount disk images with complex partition setups (including
15500 LUKS and Verity partitions) to a local host directory, in order to
15501 inspect them. This tool is not considered public API (yet), and is
15502 thus not installed into /usr/bin. Please do not rely on its
15503 existence, since it might go away or be changed in later systemd
15504 versions.
15505
15506 * A new generator "systemd-verity-generator" has been added, similar in
15507 style to "systemd-cryptsetup-generator", permitting automatic setup of
15508 Verity root partitions when systemd boots up. In order to make use of
15509 this your partition setup should follow the Discoverable Partitions
15510 Specification, and the GPT partition ID of the root file system
15511 partition should be identical to the upper 128-bit of the Verity root
15512 hash. The GPT partition ID of the Verity partition protecting it
15513 should be the lower 128-bit of the Verity root hash. If the partition
15514 image follows this model it is sufficient to specify a single
15515 "roothash=" kernel command line argument to both configure which root
15516 image and verity partition to use as well as the root hash for
15517 it. Note that systemd-nspawn's Verity support follows the same
15518 semantics, meaning that disk images with proper Verity data in place
15519 may be booted in containers with systemd-nspawn as well as on
15520 physical systems via the verity generator. Also note that the "mkosi"
15521 tool available at https://github.com/systemd/mkosi has been updated
15522 to generate Verity protected disk images following this scheme. In
15523 fact, it has been updated to generate disk images that optionally
15524 implement a complete UEFI SecureBoot trust chain, involving a signed
15525 kernel and initrd image that incorporates such a root hash as well as
15526 a Verity-enabled root partition.
15527
15528 * The hardware database (hwdb) udev supports has been updated to carry
15529 accelerometer quirks.
15530
15531 * All system services are now run with a fresh kernel keyring set up
15532 for them. The invocation ID is stored by default in it, thus
15533 providing a safe, non-overridable way to determine the invocation
15534 ID of each service.
15535
15536 * Service unit files gained new BindPaths= and BindReadOnlyPaths=
15537 options for bind mounting arbitrary paths in a service-specific
15538 way. When these options are used, arbitrary host or service files and
15539 directories may be mounted to arbitrary locations in the service's
15540 view.
15541
15542 * Documentation has been added that lists all of systemd's low-level
15543 environment variables:
15544
15545 https://github.com/systemd/systemd/blob/master/docs/ENVIRONMENT.md
15546
15547 * sd-daemon gained a new API sd_is_socket_sockaddr() for determining
15548 whether a specific socket file descriptor matches a specified socket
15549 address.
15550
15551 * systemd-firstboot has been updated to check for the
15552 systemd.firstboot= kernel command line option. It accepts a boolean
15553 and when set to false the first boot questions are skipped.
15554
15555 * systemd-fstab-generator has been updated to check for the
15556 systemd.volatile= kernel command line option, which either takes an
15557 optional boolean parameter or the special value "state". If used the
15558 system may be booted in a "volatile" boot mode. Specifically,
15559 "systemd.volatile" is used, the root directory will be mounted as
15560 tmpfs, and only /usr is mounted from the actual root file system. If
15561 "systemd.volatile=state" is used, the root directory will be mounted
15562 as usual, but /var is mounted as tmpfs. This concept provides similar
15563 functionality as systemd-nspawn's --volatile= option, but provides it
15564 on physical boots. Use this option for implementing stateless
15565 systems, or testing systems with all state and/or configuration reset
15566 to the defaults. (Note though that many distributions are not
15567 prepared to boot up without a populated /etc or /var, though.)
15568
15569 * systemd-gpt-auto-generator gained support for LUKS encrypted root
15570 partitions. Previously it only supported LUKS encrypted partitions
15571 for all other uses, except for the root partition itself.
15572
15573 * Socket units gained support for listening on AF_VSOCK sockets for
15574 communication in virtualized QEMU environments.
15575
15576 * The "configure" script gained a new option --with-fallback-hostname=
15577 for specifying the fallback hostname to use if none is configured in
15578 /etc/hostname. For example, by specifying
15579 --with-fallback-hostname=fedora it is possible to default to a
15580 hostname of "fedora" on pristine installations.
15581
15582 * systemd-cgls gained support for a new --unit= switch for listing only
15583 the control groups of a specific unit. Similar --user-unit= has been
15584 added for listing only the control groups of a specific user unit.
15585
15586 * systemd-mount gained a new --umount switch for unmounting a mount or
15587 automount point (and all mount/automount points below it).
15588
15589 * systemd will now refuse full configuration reloads (via systemctl
15590 daemon-reload and related calls) unless at least 16MiB of free space
15591 are available in /run. This is a safety precaution in order to ensure
15592 that generators can safely operate after the reload completed.
15593
15594 * A new unit file option RootImage= has been added, which has a similar
15595 effect as RootDirectory= but mounts the service's root directory from
15596 a disk image instead of plain directory. This logic reuses the same
15597 image dissection and mount logic that systemd-nspawn already uses,
15598 and hence supports any disk images systemd-nspawn supports, including
15599 those following the Discoverable Partition Specification, as well as
15600 Verity enabled images. This option enables systemd to run system
15601 services directly off disk images acting as resource bundles,
15602 possibly even including full integrity data.
15603
15604 * A new MountAPIVFS= unit file option has been added, taking a boolean
15605 argument. If enabled /proc, /sys and /dev (collectively called the
15606 "API VFS") will be mounted for the service. This is only relevant if
15607 RootDirectory= or RootImage= is used for the service, as these mounts
15608 are of course in place in the host mount namespace anyway.
15609
15610 * systemd-nspawn gained support for a new --pivot-root= switch. If
15611 specified the root directory within the container image is pivoted to
15612 the specified mount point, while the original root disk is moved to a
15613 different place. This option enables booting of ostree images
15614 directly with systemd-nspawn.
15615
15616 * The systemd build scripts will no longer complain if the NTP server
15617 addresses are not changed from the defaults. Google now supports
15618 these NTP servers officially. We still recommend downstreams to
15619 properly register an NTP pool with the NTP pool project though.
15620
15621 * coredumpctl gained a new "--reverse" option for printing the list
15622 of coredumps in reverse order.
15623
15624 * coredumpctl will now show additional information about truncated and
15625 inaccessible coredumps, as well as coredumps that are still being
15626 processed. It also gained a new --quiet switch for suppressing
15627 additional informational message in its output.
15628
15629 * coredumpctl gained support for only showing coredumps newer and/or
15630 older than specific timestamps, using the new --since= and --until=
15631 options, reminiscent of journalctl's options by the same name.
15632
15633 * The systemd-coredump logic has been improved so that it may be reused
15634 to collect backtraces in non-compiled languages, for example in
15635 scripting languages such as Python.
15636
15637 * machinectl will now show the UID shift of local containers, if user
15638 namespacing is enabled for them.
15639
15640 * systemd will now optionally run "environment generator" binaries at
15641 configuration load time. They may be used to add environment
15642 variables to the environment block passed to services invoked. One
15643 user environment generator is shipped by default that sets up
15644 environment variables based on files dropped into /etc/environment.d
15645 and ~/.config/environment.d/.
15646
15647 * systemd-resolved now includes the new, recently published 2017 DNSSEC
15648 root key (KSK).
15649
15650 * hostnamed has been updated to report a new chassis type of
15651 "convertible" to cover "foldable" laptops that can both act as a
15652 tablet and as a laptop, such as various Lenovo Yoga devices.
15653
15654 Contributions from: Adrián López, Alexander Galanin, Alexander
15655 Kochetkov, Alexandros Frantzis, Andrey Ulanov, Antoine Eiche, Baruch
15656 Siach, Bastien Nocera, Benjamin Robin, Björn, Brandon Philips, Cédric
15657 Schieli, Charles (Chas) Williams, Christian Hesse, Daniele Medri,
15658 Daniel Drake, Daniel Rusek, Daniel Wagner, Dan Streetman, Dave Reisner,
15659 David Glasser, David Herrmann, David Michael, Djalal Harouni, Dmitry
15660 Khlebnikov, Dmitry Rozhkov, Dongsu Park, Douglas Christman, Earnestly,
15661 Emil Soleyman, Eric Cook, Evgeny Vereshchagin, Felipe Sateler, Fionn
15662 Cleary, Florian Klink, Francesco Brozzu, Franck Bui, Gabriel Rauter,
15663 Gianluca Boiano, Giedrius Statkevičius, Graeme Lawes, Hans de Goede,
15664 Harald Hoyer, Ian Kelling, Ivan Shapovalov, Jakub Wilk, Janne Heß, Jan
15665 Synacek, Jason Reeder, Jonathan Boulle, Jörg Thalheim, Jouke Witteveen,
15666 Karl Kraus, Kees Cook, Keith Busch, Kieran Colford, kilian-k, Lennart
15667 Poettering, Lubomir Rintel, Lucas Werkmeister, Lukas Rusak, Maarten de
15668 Vries, Maks Naumov, Mantas Mikulėnas, Marc-Andre Lureau, Marcin Bachry,
15669 Mark Stosberg, Martin Ejdestig, Martin Pitt, Mauricio Faria de
15670 Oliveira, micah, Michael Biebl, Michael Shields, Michal Schmidt, Michal
15671 Sekletar, Michel Kraus, Mike Gilbert, Mikko Ylinen, Mirza Krak,
15672 Namhyung Kim, nikolaof, peoronoob, Peter Hutterer, Peter Körner, Philip
15673 Withnall, Piotr Drąg, Ray Strode, Reverend Homer, Rike-Benjamin
15674 Schuppner, Robert Kreuzer, Ronny Chevalier, Ruslan Bilovol, sammynx,
15675 Sergey Ptashnick, Sergiusz Urbaniak, Stefan Berger, Stefan Hajnoczi,
15676 Stefan Schweter, Stuart McLaren, Susant Sahani, Sylvain Plantefève,
15677 Taylor Smock, Tejun Heo, Thomas Blume, Thomas H. P. Andersen, Tibor
15678 Nagy, Tobias Stoeckmann, Tom Gundersen, Torstein Husebø, Viktar
15679 Vaŭčkievič, Viktor Mihajlovski, Vitaly Sulimov, Waldemar Brodkorb,
15680 Walter Garcia-Fontes, Wim de With, Yassine Imounachen, Yi EungJun,
15681 YunQiang Su, Yu Watanabe, Zbigniew Jędrzejewski-Szmek, Александр
15682 Тихонов
15683
15684 — Berlin, 2017-03-01
15685
15686 CHANGES WITH 232:
15687
15688 * udev now runs with MemoryDenyWriteExecute=, RestrictRealtime= and
15689 RestrictAddressFamilies= enabled. These sandboxing options should
15690 generally be compatible with the various external udev call-out
15691 binaries we are aware of, however there may be exceptions, in
15692 particular when exotic languages for these call-outs are used. In
15693 this case, consider turning off these settings locally.
15694
15695 * The new RemoveIPC= option can be used to remove IPC objects owned by
15696 the user or group of a service when that service exits.
15697
15698 * The new ProtectKernelModules= option can be used to disable explicit
15699 load and unload operations of kernel modules by a service. In
15700 addition access to /usr/lib/modules is removed if this option is set.
15701
15702 * ProtectSystem= option gained a new value "strict", which causes the
15703 whole file system tree with the exception of /dev, /proc, and /sys,
15704 to be remounted read-only for a service.
15705
15706 * The new ProtectKernelTunables= option can be used to disable
15707 modification of configuration files in /sys and /proc by a service.
15708 Various directories and files are remounted read-only, so access is
15709 restricted even if the file permissions would allow it.
15710
15711 * The new ProtectControlGroups= option can be used to disable write
15712 access by a service to /sys/fs/cgroup.
15713
15714 * Various systemd services have been hardened with
15715 ProtectKernelTunables=yes, ProtectControlGroups=yes,
15716 RestrictAddressFamilies=.
15717
15718 * Support for dynamically creating users for the lifetime of a service
15719 has been added. If DynamicUser=yes is specified, user and group IDs
15720 will be allocated from the range 61184…65519 for the lifetime of the
15721 service. They can be resolved using the new nss-systemd.so NSS
15722 module. The module must be enabled in /etc/nsswitch.conf. Services
15723 started in this way have PrivateTmp= and RemoveIPC= enabled, so that
15724 any resources allocated by the service will be cleaned up when the
15725 service exits. They also have ProtectHome=read-only and
15726 ProtectSystem=strict enabled, so they are not able to make any
15727 permanent modifications to the system.
15728
15729 * The nss-systemd module also always resolves root and nobody, making
15730 it possible to have no /etc/passwd or /etc/group files in minimal
15731 container or chroot environments.
15732
15733 * Services may be started with their own user namespace using the new
15734 boolean PrivateUsers= option. Only root, nobody, and the uid/gid
15735 under which the service is running are mapped. All other users are
15736 mapped to nobody.
15737
15738 * Support for the cgroup namespace has been added to systemd-nspawn. If
15739 supported by kernel, the container system started by systemd-nspawn
15740 will have its own view of the cgroup hierarchy. This new behaviour
15741 can be disabled using $SYSTEMD_NSPAWN_USE_CGNS environment variable.
15742
15743 * The new MemorySwapMax= option can be used to limit the maximum swap
15744 usage under the unified cgroup hierarchy.
15745
15746 * Support for the CPU controller in the unified cgroup hierarchy has
15747 been added, via the CPUWeight=, CPUStartupWeight=, CPUAccounting=
15748 options. This controller requires out-of-tree patches for the kernel
15749 and the support is provisional.
15750
15751 * Mount and automount units may now be created transiently
15752 (i.e. dynamically at runtime via the bus API, instead of requiring
15753 unit files in the file system).
15754
15755 * systemd-mount is a new tool which may mount file systems – much like
15756 mount(8), optionally pulling in additional dependencies through
15757 transient .mount and .automount units. For example, this tool
15758 automatically runs fsck on a backing block device before mounting,
15759 and allows the automount logic to be used dynamically from the
15760 command line for establishing mount points. This tool is particularly
15761 useful when dealing with removable media, as it will ensure fsck is
15762 run – if necessary – before the first access and that the file system
15763 is quickly unmounted after each access by utilizing the automount
15764 logic. This maximizes the chance that the file system on the
15765 removable media stays in a clean state, and if it isn't in a clean
15766 state is fixed automatically.
15767
15768 * LazyUnmount=yes option for mount units has been added to expose the
15769 umount --lazy option. Similarly, ForceUnmount=yes exposes the --force
15770 option.
15771
15772 * /efi will be used as the mount point of the EFI boot partition, if
15773 the directory is present, and the mount point was not configured
15774 through other means (e.g. fstab). If /efi directory does not exist,
15775 /boot will be used as before. This makes it easier to automatically
15776 mount the EFI partition on systems where /boot is used for something
15777 else.
15778
15779 * When operating on GPT disk images for containers, systemd-nspawn will
15780 now mount the ESP to /boot or /efi according to the same rules as PID
15781 1 running on a host. This allows tools like "bootctl" to operate
15782 correctly within such containers, in order to make container images
15783 bootable on physical systems.
15784
15785 * disk/by-id and disk/by-path symlinks are now created for NVMe drives.
15786
15787 * Two new user session targets have been added to support running
15788 graphical sessions under the systemd --user instance:
15789 graphical-session.target and graphical-session-pre.target. See
15790 systemd.special(7) for a description of how those targets should be
15791 used.
15792
15793 * The vconsole initialization code has been significantly reworked to
15794 use KD_FONT_OP_GET/SET ioctls instead of KD_FONT_OP_COPY and better
15795 support unicode keymaps. Font and keymap configuration will now be
15796 copied to all allocated virtual consoles.
15797
15798 * FreeBSD's bhyve virtualization is now detected.
15799
15800 * Information recorded in the journal for core dumps now includes the
15801 contents of /proc/mountinfo and the command line of the process at
15802 the top of the process hierarchy (which is usually the init process
15803 of the container).
15804
15805 * systemd-journal-gatewayd learned the --directory= option to serve
15806 files from the specified location.
15807
15808 * journalctl --root=… can be used to peruse the journal in the
15809 /var/log/ directories inside of a container tree. This is similar to
15810 the existing --machine= option, but does not require the container to
15811 be active.
15812
15813 * The hardware database has been extended to support
15814 ID_INPUT_TRACKBALL, used in addition to ID_INPUT_MOUSE to identify
15815 trackball devices.
15816
15817 MOUSE_WHEEL_CLICK_ANGLE_HORIZONTAL hwdb property has been added to
15818 specify the click rate for mice which include a horizontal wheel with
15819 a click rate that is different than the one for the vertical wheel.
15820
15821 * systemd-run gained a new --wait option that makes service execution
15822 synchronous. (Specifically, the command will not return until the
15823 specified service binary exited.)
15824
15825 * systemctl gained a new --wait option that causes the start command to
15826 wait until the units being started have terminated again.
15827
15828 * A new journal output mode "short-full" has been added which displays
15829 timestamps with abbreviated English day names and adds a timezone
15830 suffix. Those timestamps include more information than the default
15831 "short" output mode, and can be passed directly to journalctl's
15832 --since= and --until= options.
15833
15834 * /etc/resolv.conf will be bind-mounted into containers started by
15835 systemd-nspawn, if possible, so any changes to resolv.conf contents
15836 are automatically propagated to the container.
15837
15838 * The number of instances for socket-activated services originating
15839 from a single IP address can be limited with
15840 MaxConnectionsPerSource=, extending the existing setting of
15841 MaxConnections=.
15842
15843 * systemd-networkd gained support for vcan ("Virtual CAN") interface
15844 configuration.
15845
15846 * .netdev and .network configuration can now be extended through
15847 drop-ins.
15848
15849 * UDP Segmentation Offload, TCP Segmentation Offload, Generic
15850 Segmentation Offload, Generic Receive Offload, Large Receive Offload
15851 can be enabled and disabled using the new UDPSegmentationOffload=,
15852 TCPSegmentationOffload=, GenericSegmentationOffload=,
15853 GenericReceiveOffload=, LargeReceiveOffload= options in the
15854 [Link] section of .link files.
15855
15856 * The Spanning Tree Protocol, Priority, Aging Time, and the Default
15857 Port VLAN ID can be configured for bridge devices using the new STP=,
15858 Priority=, AgeingTimeSec=, and DefaultPVID= settings in the [Bridge]
15859 section of .netdev files.
15860
15861 * The route table to which routes received over DHCP or RA should be
15862 added can be configured with the new RouteTable= option in the [DHCP]
15863 and [IPv6AcceptRA] sections of .network files.
15864
15865 * The Address Resolution Protocol can be disabled on links managed by
15866 systemd-networkd using the ARP=no setting in the [Link] section of
15867 .network files.
15868
15869 * New environment variables $SERVICE_RESULT, $EXIT_CODE and
15870 $EXIT_STATUS are set for ExecStop= and ExecStopPost= commands, and
15871 encode information about the result and exit codes of the current
15872 service runtime cycle.
15873
15874 * systemd-sysctl will now configure kernel parameters in the order
15875 they occur in the configuration files. This matches what sysctl
15876 has been traditionally doing.
15877
15878 * kernel-install "plugins" that are executed to perform various
15879 tasks after a new kernel is added and before an old one is removed
15880 can now return a special value to terminate the procedure and
15881 prevent any later plugins from running.
15882
15883 * Journald's SplitMode=login setting has been deprecated. It has been
15884 removed from documentation, and its use is discouraged. In a future
15885 release it will be completely removed, and made equivalent to current
15886 default of SplitMode=uid.
15887
15888 * Storage=both option setting in /etc/systemd/coredump.conf has been
15889 removed. With fast LZ4 compression storing the core dump twice is not
15890 useful.
15891
15892 * The --share-system systemd-nspawn option has been replaced with an
15893 (undocumented) variable $SYSTEMD_NSPAWN_SHARE_SYSTEM, but the use of
15894 this functionality is discouraged. In addition the variables
15895 $SYSTEMD_NSPAWN_SHARE_NS_IPC, $SYSTEMD_NSPAWN_SHARE_NS_PID,
15896 $SYSTEMD_NSPAWN_SHARE_NS_UTS may be used to control the unsharing of
15897 individual namespaces.
15898
15899 * "machinectl list" now shows the IP address of running containers in
15900 the output, as well as OS release information.
15901
15902 * "loginctl list" now shows the TTY of each session in the output.
15903
15904 * sd-bus gained new API calls sd_bus_track_set_recursive(),
15905 sd_bus_track_get_recursive(), sd_bus_track_count_name(),
15906 sd_bus_track_count_sender(). They permit usage of sd_bus_track peer
15907 tracking objects in a "recursive" mode, where a single client can be
15908 counted multiple times, if it takes multiple references.
15909
15910 * sd-bus gained new API calls sd_bus_set_exit_on_disconnect() and
15911 sd_bus_get_exit_on_disconnect(). They may be used to make a
15912 process using sd-bus automatically exit if the bus connection is
15913 severed.
15914
15915 * Bus clients of the service manager may now "pin" loaded units into
15916 memory, by taking an explicit reference on them. This is useful to
15917 ensure the client can retrieve runtime data about the service even
15918 after the service completed execution. Taking such a reference is
15919 available only for privileged clients and should be helpful to watch
15920 running services in a race-free manner, and in particular collect
15921 information about exit statuses and results.
15922
15923 * The nss-resolve module has been changed to strictly return UNAVAIL
15924 when communication via D-Bus with resolved failed, and NOTFOUND when
15925 a lookup completed but was negative. This means it is now possible to
15926 neatly configure fallbacks using nsswitch.conf result checking
15927 expressions. Taking benefit of this, the new recommended
15928 configuration line for the "hosts" entry in /etc/nsswitch.conf is:
15929
15930 hosts: files mymachines resolve [!UNAVAIL=return] dns myhostname
15931
15932 * A new setting CtrlAltDelBurstAction= has been added to
15933 /etc/systemd/system.conf which may be used to configure the precise
15934 behaviour if the user on the console presses Ctrl-Alt-Del more often
15935 than 7 times in 2s. Previously this would unconditionally result in
15936 an expedited, immediate reboot. With this new setting the precise
15937 operation may be configured in more detail, and also turned off
15938 entirely.
15939
15940 * In .netdev files two new settings RemoteChecksumTx= and
15941 RemoteChecksumRx= are now understood that permit configuring the
15942 remote checksumming logic for VXLAN networks.
15943
15944 * The service manager learnt a new "invocation ID" concept for invoked
15945 services. Each runtime cycle of a service will get a new invocation
15946 ID (a 128-bit random UUID) assigned that identifies the current
15947 run of the service uniquely and globally. A new invocation ID
15948 is generated each time a service starts up. The journal will store
15949 the invocation ID of a service along with any logged messages, thus
15950 making the invocation ID useful for matching the online runtime of a
15951 service with the offline log data it generated in a safe way without
15952 relying on synchronized timestamps. In many ways this new service
15953 invocation ID concept is similar to the kernel's boot ID concept that
15954 uniquely and globally identifies the runtime of each boot. The
15955 invocation ID of a service is passed to the service itself via an
15956 environment variable ($INVOCATION_ID). A new bus call
15957 GetUnitByInvocationID() has been added that is similar to GetUnit()
15958 but instead of retrieving the bus path for a unit by its name
15959 retrieves it by its invocation ID. The returned path is valid only as
15960 long as the passed invocation ID is current.
15961
15962 * systemd-resolved gained a new "DNSStubListener" setting in
15963 resolved.conf. It either takes a boolean value or the special values
15964 "udp" and "tcp", and configures whether to enable the stub DNS
15965 listener on 127.0.0.53:53.
15966
15967 * IP addresses configured via networkd may now carry additional
15968 configuration settings supported by the kernel. New options include:
15969 HomeAddress=, DuplicateAddressDetection=, ManageTemporaryAddress=,
15970 PrefixRoute=, AutoJoin=.
15971
15972 * The PAM configuration fragment file for "[email protected]" shipped with
15973 systemd (i.e. the --user instance of systemd) has been stripped to
15974 the minimum necessary to make the system boot. Previously, it
15975 contained Fedora-specific stanzas that did not apply to other
15976 distributions. It is expected that downstream distributions add
15977 additional configuration lines, matching their needs to this file,
15978 using it only as rough template of what systemd itself needs. Note
15979 that this reduced fragment does not even include an invocation of
15980 pam_limits which most distributions probably want to add, even though
15981 systemd itself does not need it. (There's also the new build time
15982 option --with-pamconfdir=no to disable installation of the PAM
15983 fragment entirely.)
15984
15985 * If PrivateDevices=yes is set for a service the CAP_SYS_RAWIO
15986 capability is now also dropped from its set (in addition to
15987 CAP_SYS_MKNOD as before).
15988
15989 * In service unit files it is now possible to connect a specific named
15990 file descriptor with stdin/stdout/stdout of an executed service. The
15991 name may be specified in matching .socket units using the
15992 FileDescriptorName= setting.
15993
15994 * A number of journal settings may now be configured on the kernel
15995 command line. Specifically, the following options are now understood:
15996 systemd.journald.max_level_console=,
15997 systemd.journald.max_level_store=,
15998 systemd.journald.max_level_syslog=, systemd.journald.max_level_kmsg=,
15999 systemd.journald.max_level_wall=.
16000
16001 * "systemctl is-enabled --full" will now show by which symlinks a unit
16002 file is enabled in the unit dependency tree.
16003
16004 * Support for VeraCrypt encrypted partitions has been added to the
16005 "cryptsetup" logic and /etc/crypttab.
16006
16007 * systemd-detect-virt gained support for a new --private-users switch
16008 that checks whether the invoking processes are running inside a user
16009 namespace. Similar, a new special value "private-users" for the
16010 existing ConditionVirtualization= setting has been added, permitting
16011 skipping of specific units in user namespace environments.
16012
16013 Contributions from: Alban Crequy, Alexander Kuleshov, Alfie John,
16014 Andreas Henriksson, Andrew Jeddeloh, Balázs Úr, Bart Rulon, Benjamin
16015 Richter, Ben Gamari, Ben Harris, Brian J. Murrell, Christian Brauner,
16016 Christian Rebischke, Clinton Roy, Colin Walters, Cristian Rodríguez,
16017 Daniel Hahler, Daniel Mack, Daniel Maixner, Daniel Rusek, Dan Dedrick,
16018 Davide Cavalca, David Herrmann, David Michael, Dennis Wassenberg,
16019 Djalal Harouni, Dongsu Park, Douglas Christman, Elias Probst, Eric
16020 Cook, Erik Karlsson, Evgeny Vereshchagin, Felipe Sateler, Felix Zhang,
16021 Franck Bui, George Hilliard, Giuseppe Scrivano, HATAYAMA Daisuke,
16022 Heikki Kemppainen, Hendrik Brueckner, hi117, Ismo Puustinen, Ivan
16023 Shapovalov, Jakub Filak, Jakub Wilk, Jan Synacek, Jason Kölker,
16024 Jean-Sébastien Bour, Jiří Pírko, Jonathan Boulle, Jorge Niedbalski,
16025 Keith Busch, kristbaum, Kyle Russell, Lans Zhang, Lennart Poettering,
16026 Leonardo Brondani Schenkel, Lucas Werkmeister, Luca Bruno, Lukáš
16027 Nykrýn, Maciek Borzecki, Mantas Mikulėnas, Marc-Antoine Perennou,
16028 Marcel Holtmann, Marcos Mello, Martin Ejdestig, Martin Pitt, Matej
16029 Habrnal, Maxime de Roucy, Michael Biebl, Michael Chapman, Michael Hoy,
16030 Michael Olbrich, Michael Pope, Michal Sekletar, Michal Soltys, Mike
16031 Gilbert, Nick Owens, Patrik Flykt, Paweł Szewczyk, Peter Hutterer,
16032 Piotr Drąg, Reid Price, Richard W.M. Jones, Roman Stingler, Ronny
16033 Chevalier, Seraphime Kirkovski, Stefan Schweter, Steve Muir, Susant
16034 Sahani, Tejun Heo, Thomas Blume, Thomas H. P. Andersen, Tiago Levit,
16035 Tobias Jungel, Tomáš Janoušek, Topi Miettinen, Torstein Husebø, Umut
16036 Tezduyar Lindskog, Vito Caputo, WaLyong Cho, Wilhelm Schuster, Yann
16037 E. MORIN, Yi EungJun, Yuki Inoguchi, Yu Watanabe, Zbigniew
16038 Jędrzejewski-Szmek, Zeal Jagannatha
16039
16040 — Santa Fe, 2016-11-03
16041
16042 CHANGES WITH 231:
16043
16044 * In service units the various ExecXYZ= settings have been extended
16045 with an additional special character as first argument of the
16046 assigned value: if the character '+' is used the specified command
16047 line it will be run with full privileges, regardless of User=,
16048 Group=, CapabilityBoundingSet= and similar options. The effect is
16049 similar to the existing PermissionsStartOnly= option, but allows
16050 configuration of this concept for each executed command line
16051 independently.
16052
16053 * Services may now alter the service watchdog timeout at runtime by
16054 sending a WATCHDOG_USEC= message via sd_notify().
16055
16056 * MemoryLimit= and related unit settings now optionally take percentage
16057 specifications. The percentage is taken relative to the amount of
16058 physical memory in the system (or in case of containers, the assigned
16059 amount of memory). This allows scaling service resources neatly with
16060 the amount of RAM available on the system. Similarly, systemd-logind's
16061 RuntimeDirectorySize= option now also optionally takes percentage
16062 values.
16063
16064 * In similar fashion TasksMax= takes percentage values now, too. The
16065 value is taken relative to the configured maximum number of processes
16066 on the system. The per-service task maximum has been changed to 15%
16067 using this functionality. (Effectively this is an increase of 512 →
16068 4915 for service units, given the kernel's default pid_max setting.)
16069
16070 * Calendar time specifications in .timer units now understand a ".."
16071 syntax for time ranges. Example: "4..7:10" may now be used for
16072 defining a timer that is triggered at 4:10am, 5:10am, 6:10am and
16073 7:10am every day.
16074
16075 * The InaccessableDirectories=, ReadOnlyDirectories= and
16076 ReadWriteDirectories= unit file settings have been renamed to
16077 InaccessiblePaths=, ReadOnlyPaths= and ReadWritePaths= and may now be
16078 applied to all kinds of file nodes, and not just directories, with
16079 the exception of symlinks. Specifically these settings may now be
16080 used on block and character device nodes, UNIX sockets and FIFOS as
16081 well as regular files. The old names of these settings remain
16082 available for compatibility.
16083
16084 * systemd will now log about all service processes it kills forcibly
16085 (using SIGKILL) because they remained after the clean shutdown phase
16086 of the service completed. This should help identifying services that
16087 shut down uncleanly. Moreover if KillUserProcesses= is enabled in
16088 systemd-logind's configuration a similar log message is generated for
16089 processes killed at the end of each session due to this setting.
16090
16091 * systemd will now set the $JOURNAL_STREAM environment variable for all
16092 services whose stdout/stderr are connected to the Journal (which
16093 effectively means by default: all services). The variable contains
16094 the device and inode number of the file descriptor used for
16095 stdout/stderr. This may be used by invoked programs to detect whether
16096 their stdout/stderr is connected to the Journal, in which case they
16097 can switch over to direct Journal communication, thus being able to
16098 pass extended, structured metadata along with their log messages. As
16099 one example, this is now used by glib's logging primitives.
16100
16101 * When using systemd's default tmp.mount unit for /tmp, the mount point
16102 will now be established with the "nosuid" and "nodev" options. This
16103 avoids privilege escalation attacks that put traps and exploits into
16104 /tmp. However, this might cause problems if you e.g. put container
16105 images or overlays into /tmp; if you need this, override tmp.mount's
16106 "Options=" with a drop-in, or mount /tmp from /etc/fstab with your
16107 desired options.
16108
16109 * systemd now supports the "memory" cgroup controller also on
16110 cgroup v2.
16111
16112 * The systemd-cgtop tool now optionally takes a control group path as
16113 command line argument. If specified, the control group list shown is
16114 limited to subgroups of that group.
16115
16116 * The SystemCallFilter= unit file setting gained support for
16117 pre-defined, named system call filter sets. For example
16118 SystemCallFilter=@clock is now an effective way to make all clock
16119 changing-related system calls unavailable to a service. A number of
16120 similar pre-defined groups are defined. Writing system call filters
16121 for system services is simplified substantially with this new
16122 concept. Accordingly, all of systemd's own, long-running services now
16123 enable system call filtering based on this, by default.
16124
16125 * A new service setting MemoryDenyWriteExecute= has been added, taking
16126 a boolean value. If turned on, a service may no longer create memory
16127 mappings that are writable and executable at the same time. This
16128 enhances security for services where this is enabled as it becomes
16129 harder to dynamically write and then execute memory in exploited
16130 service processes. This option has been enabled for all of systemd's
16131 own long-running services.
16132
16133 * A new RestrictRealtime= service setting has been added, taking a
16134 boolean argument. If set the service's processes may no longer
16135 acquire realtime scheduling. This improves security as realtime
16136 scheduling may otherwise be used to easily freeze the system.
16137
16138 * systemd-nspawn gained a new switch --notify-ready= taking a boolean
16139 value. This may be used for requesting that the system manager inside
16140 of the container reports start-up completion to nspawn which then
16141 propagates this notification further to the service manager
16142 supervising nspawn itself. A related option NotifyReady= in .nspawn
16143 files has been added too. This functionality allows ordering of the
16144 start-up of multiple containers using the usual systemd ordering
16145 primitives.
16146
16147 * machinectl gained a new command "stop" that is an alias for
16148 "terminate".
16149
16150 * systemd-resolved gained support for contacting DNS servers on
16151 link-local IPv6 addresses.
16152
16153 * If systemd-resolved receives the SIGUSR2 signal it will now flush all
16154 its caches. A method call for requesting the same operation has been
16155 added to the bus API too, and is made available via "systemd-resolve
16156 --flush-caches".
16157
16158 * systemd-resolve gained a new --status switch. If passed a brief
16159 summary of the used DNS configuration with per-interface information
16160 is shown.
16161
16162 * resolved.conf gained a new Cache= boolean option, defaulting to
16163 on. If turned off local DNS caching is disabled. This comes with a
16164 performance penalty in particular when DNSSEC is enabled. Note that
16165 resolved disables its internal caching implicitly anyway, when the
16166 configured DNS server is on a host-local IP address such as ::1 or
16167 127.0.0.1, thus automatically avoiding double local caching.
16168
16169 * systemd-resolved now listens on the local IP address 127.0.0.53:53
16170 for DNS requests. This improves compatibility with local programs
16171 that do not use the libc NSS or systemd-resolved's bus APIs for name
16172 resolution. This minimal DNS service is only available to local
16173 programs and does not implement the full DNS protocol, but enough to
16174 cover local DNS clients. A new, static resolv.conf file, listing just
16175 this DNS server is now shipped in /usr/lib/systemd/resolv.conf. It is
16176 now recommended to make /etc/resolv.conf a symlink to this file in
16177 order to route all DNS lookups to systemd-resolved, regardless if
16178 done via NSS, the bus API or raw DNS packets. Note that this local
16179 DNS service is not as fully featured as the libc NSS or
16180 systemd-resolved's bus APIs. For example, as unicast DNS cannot be
16181 used to deliver link-local address information (as this implies
16182 sending a local interface index along), LLMNR/mDNS support via this
16183 interface is severely restricted. It is thus strongly recommended for
16184 all applications to use the libc NSS API or native systemd-resolved
16185 bus API instead.
16186
16187 * systemd-networkd's bridge support learned a new setting
16188 VLANFiltering= for controlling VLAN filtering. Moreover a new section
16189 in .network files has been added for configuring VLAN bridging in
16190 more detail: VLAN=, EgressUntagged=, PVID= in [BridgeVLAN].
16191
16192 * systemd-networkd's IPv6 Router Advertisement code now makes use of
16193 the DNSSL and RDNSS options. This means IPv6 DNS configuration may
16194 now be acquired without relying on DHCPv6. Two new options
16195 UseDomains= and UseDNS= have been added to configure this behaviour.
16196
16197 * systemd-networkd's IPv6AcceptRouterAdvertisements= option has been
16198 renamed IPv6AcceptRA=, without altering its behaviour. The old
16199 setting name remains available for compatibility reasons.
16200
16201 * The systemd-networkd VTI/VTI6 tunneling support gained new options
16202 Key=, InputKey= and OutputKey=.
16203
16204 * systemd-networkd gained support for VRF ("Virtual Routing Function")
16205 interface configuration.
16206
16207 * "systemctl edit" may now be used to create new unit files by
16208 specifying the --force switch.
16209
16210 * sd-event gained a new function sd_event_get_iteration() for
16211 requesting the current iteration counter of the event loop. It starts
16212 at zero and is increased by one with each event loop iteration.
16213
16214 * A new rpm macro %systemd_ordering is provided by the macros.systemd
16215 file. It can be used in lieu of %systemd_requires in packages which
16216 don't use any systemd functionality and are intended to be installed
16217 in minimal containers without systemd present. This macro provides
16218 ordering dependencies to ensure that if the package is installed in
16219 the same rpm transaction as systemd, systemd will be installed before
16220 the scriptlets for the package are executed, allowing unit presets
16221 to be handled.
16222
16223 New macros %_systemdgeneratordir and %_systemdusergeneratordir have
16224 been added to simplify packaging of generators.
16225
16226 * The os-release file gained VERSION_CODENAME field for the
16227 distribution nickname (e.g. VERSION_CODENAME=woody).
16228
16229 * New udev property UDEV_DISABLE_PERSISTENT_STORAGE_RULES_FLAG=1
16230 can be set to disable parsing of metadata and the creation
16231 of persistent symlinks for that device.
16232
16233 * The v230 change to tag framebuffer devices (/dev/fb*) with "uaccess"
16234 to make them available to logged-in users has been reverted.
16235
16236 * Much of the common code of the various systemd components is now
16237 built into an internal shared library libsystemd-shared-231.so
16238 (incorporating the systemd version number in the name, to be updated
16239 with future releases) that the components link to. This should
16240 decrease systemd footprint both in memory during runtime and on
16241 disk. Note that the shared library is not for public use, and is
16242 neither API nor ABI stable, but is likely to change with every new
16243 released update. Packagers need to make sure that binaries
16244 linking to libsystemd-shared.so are updated in step with the
16245 library.
16246
16247 * Configuration for "mkosi" is now part of the systemd
16248 repository. mkosi is a tool to easily build legacy-free OS images,
16249 and is available on github: https://github.com/systemd/mkosi. If
16250 "mkosi" is invoked in the build tree a new raw OS image is generated
16251 incorporating the systemd sources currently being worked on and a
16252 clean, fresh distribution installation. The generated OS image may be
16253 booted up with "systemd-nspawn -b -i", qemu-kvm or on any physical
16254 UEFI PC. This functionality is particularly useful to easily test
16255 local changes made to systemd in a pristine, defined environment. See
16256 doc/HACKING for details.
16257
16258 * configure learned the --with-support-url= option to specify the
16259 distribution's bugtracker.
16260
16261 Contributions from: Alban Crequy, Alessandro Puccetti, Alessio Igor
16262 Bogani, Alexander Kuleshov, Alexander Kurtz, Alex Gaynor, Andika
16263 Triwidada, Andreas Pokorny, Andreas Rammhold, Andrew Jeddeloh, Ansgar
16264 Burchardt, Atrotors, Benjamin Drung, Brian Boylston, Christian Hesse,
16265 Christian Rebischke, Daniele Medri, Daniel Mack, Dave Reisner, David
16266 Herrmann, David Michael, Djalal Harouni, Douglas Christman, Elias
16267 Probst, Evgeny Vereshchagin, Federico Mena Quintero, Felipe Sateler,
16268 Franck Bui, Harald Hoyer, Ian Lee, Ivan Shapovalov, Jakub Wilk, Jan
16269 Janssen, Jean-Sébastien Bour, John Paul Adrian Glaubitz, Jouke
16270 Witteveen, Kai Ruhnau, kpengboy, Kyle Walker, Lénaïc Huard, Lennart
16271 Poettering, Luca Bruno, Lukas Lösche, Lukáš Nykrýn, mahkoh, Marcel
16272 Holtmann, Martin Pitt, Marty Plummer, Matthieu Codron, Max Prokhorov,
16273 Michael Biebl, Michael Karcher, Michael Olbrich, Michał Bartoszkiewicz,
16274 Michal Sekletar, Michal Soltys, Minkyung, Muhammet Kara, mulkieran,
16275 Otto Wallenius, Pablo Lezaeta Reyes, Peter Hutterer, Ronny Chevalier,
16276 Rusty Bird, Stef Walter, Susant Sahani, Tejun Heo, Thomas Blume, Thomas
16277 Haller, Thomas H. P. Andersen, Tobias Jungel, Tom Gundersen, Tom Yan,
16278 Topi Miettinen, Torstein Husebø, Valentin Vidić, Viktar Vaŭčkievič,
16279 WaLyong Cho, Weng Xuetian, Werner Fink, Zbigniew Jędrzejewski-Szmek
16280
16281 — Berlin, 2016-07-25
16282
16283 CHANGES WITH 230:
16284
16285 * DNSSEC is now turned on by default in systemd-resolved (in
16286 "allow-downgrade" mode), but may be turned off during compile time by
16287 passing "--with-default-dnssec=no" to "configure" (and of course,
16288 during runtime with DNSSEC= in resolved.conf). We recommend
16289 downstreams to leave this on at least during development cycles and
16290 report any issues with the DNSSEC logic upstream. We are very
16291 interested in collecting feedback about the DNSSEC validator and its
16292 limitations in the wild. Note however, that DNSSEC support is
16293 probably nothing downstreams should turn on in stable distros just
16294 yet, as it might create incompatibilities with a few DNS servers and
16295 networks. We tried hard to make sure we downgrade to non-DNSSEC mode
16296 automatically whenever we detect such incompatible setups, but there
16297 might be systems we do not cover yet. Hence: please help us testing
16298 the DNSSEC code, leave this on where you can, report back, but then
16299 again don't consider turning this on in your stable, LTS or
16300 production release just yet. (Note that you have to enable
16301 nss-resolve in /etc/nsswitch.conf, to actually use systemd-resolved
16302 and its DNSSEC mode for hostname resolution from local
16303 applications.)
16304
16305 * systemd-resolve conveniently resolves DANE records with the --tlsa
16306 option and OPENPGPKEY records with the --openpgp option. It also
16307 supports dumping raw DNS record data via the new --raw= switch.
16308
16309 * systemd-logind will now by default terminate user processes that are
16310 part of the user session scope unit (session-XX.scope) when the user
16311 logs out. This behavior is controlled by the KillUserProcesses=
16312 setting in logind.conf, and the previous default of "no" is now
16313 changed to "yes". This means that user sessions will be properly
16314 cleaned up after, but additional steps are necessary to allow
16315 intentionally long-running processes to survive logout.
16316
16317 While the user is logged in at least once, [email protected] is running,
16318 and any service that should survive the end of any individual login
16319 session can be started at a user service or scope using systemd-run.
16320 systemd-run(1) man page has been extended with an example which shows
16321 how to run screen in a scope unit underneath [email protected]. The same
16322 command works for tmux.
16323
16324 After the user logs out of all sessions, [email protected] will be
16325 terminated too, by default, unless the user has "lingering" enabled.
16326 To effectively allow users to run long-term tasks even if they are
16327 logged out, lingering must be enabled for them. See loginctl(1) for
16328 details. The default polkit policy was modified to allow users to
16329 set lingering for themselves without authentication.
16330
16331 Previous defaults can be restored at compile time by the
16332 --without-kill-user-processes option to "configure".
16333
16334 * systemd-logind gained new configuration settings SessionsMax= and
16335 InhibitorsMax=, both with a default of 8192. It will not register new
16336 user sessions or inhibitors above this limit.
16337
16338 * systemd-logind will now reload configuration on SIGHUP.
16339
16340 * The unified cgroup hierarchy added in Linux 4.5 is now supported.
16341 Use systemd.unified_cgroup_hierarchy=1 on the kernel command line to
16342 enable. Also, support for the "io" cgroup controller in the unified
16343 hierarchy has been added, so that the "memory", "pids" and "io" are
16344 now the controllers that are supported on the unified hierarchy.
16345
16346 WARNING: it is not possible to use previous systemd versions with
16347 systemd.unified_cgroup_hierarchy=1 and the new kernel. Therefore it
16348 is necessary to also update systemd in the initramfs if using the
16349 unified hierarchy. An updated SELinux policy is also required.
16350
16351 * LLDP support has been extended, and both passive (receive-only) and
16352 active (sender) modes are supported. Passive mode ("routers-only") is
16353 enabled by default in systemd-networkd. Active LLDP mode is enabled
16354 by default for containers on the internal network. The "networkctl
16355 lldp" command may be used to list information gathered. "networkctl
16356 status" will also show basic LLDP information on connected peers now.
16357
16358 * The IAID and DUID unique identifier sent in DHCP requests may now be
16359 configured for the system and each .network file managed by
16360 systemd-networkd using the DUIDType=, DUIDRawData=, IAID= options.
16361
16362 * systemd-networkd gained support for configuring proxy ARP support for
16363 each interface, via the ProxyArp= setting in .network files. It also
16364 gained support for configuring the multicast querier feature of
16365 bridge devices, via the new MulticastQuerier= setting in .netdev
16366 files. Similarly, snooping on the IGMP traffic can be controlled
16367 via the new setting MulticastSnooping=.
16368
16369 A new setting PreferredLifetime= has been added for addresses
16370 configured in .network file to configure the lifetime intended for an
16371 address.
16372
16373 The systemd-networkd DHCP server gained the option EmitRouter=, which
16374 defaults to yes, to configure whether the DHCP Option 3 (Router)
16375 should be emitted.
16376
16377 * The testing tool /usr/lib/systemd/systemd-activate is renamed to
16378 systemd-socket-activate and installed into /usr/bin. It is now fully
16379 supported.
16380
16381 * systemd-journald now uses separate threads to flush changes to disk
16382 when closing journal files, thus reducing impact of slow disk I/O on
16383 logging performance.
16384
16385 * The sd-journal API gained two new calls
16386 sd_journal_open_directory_fd() and sd_journal_open_files_fd() which
16387 can be used to open journal files using file descriptors instead of
16388 file or directory paths. sd_journal_open_container() has been
16389 deprecated, sd_journal_open_directory_fd() should be used instead
16390 with the flag SD_JOURNAL_OS_ROOT.
16391
16392 * journalctl learned a new output mode "-o short-unix" that outputs log
16393 lines prefixed by their UNIX time (i.e. seconds since Jan 1st, 1970
16394 UTC). It also gained support for a new --no-hostname setting to
16395 suppress the hostname column in the family of "short" output modes.
16396
16397 * systemd-ask-password now optionally skips printing of the password to
16398 stdout with --no-output which can be useful in scripts.
16399
16400 * Framebuffer devices (/dev/fb*) and 3D printers and scanners
16401 (devices tagged with ID_MAKER_TOOL) are now tagged with
16402 "uaccess" and are available to logged in users.
16403
16404 * The DeviceAllow= unit setting now supports specifiers (with "%").
16405
16406 * "systemctl show" gained a new --value switch, which allows print a
16407 only the contents of a specific unit property, without also printing
16408 the property's name. Similar support was added to "show*" verbs
16409 of loginctl and machinectl that output "key=value" lists.
16410
16411 * A new unit type "generated" was added for files dynamically generated
16412 by generator tools. Similarly, a new unit type "transient" is used
16413 for unit files created using the runtime API. "systemctl enable" will
16414 refuse to operate on such files.
16415
16416 * A new command "systemctl revert" has been added that may be used to
16417 revert to the vendor version of a unit file, in case local changes
16418 have been made by adding drop-ins or overriding the unit file.
16419
16420 * "machinectl clean" gained a new verb to automatically remove all or
16421 just hidden container images.
16422
16423 * systemd-tmpfiles gained support for a new line type "e" for emptying
16424 directories, if they exist, without creating them if they don't.
16425
16426 * systemd-nspawn gained support for automatically patching the UID/GIDs
16427 of the owners and the ACLs of all files and directories in a
16428 container tree to match the UID/GID user namespacing range selected
16429 for the container invocation. This mode is enabled via the new
16430 --private-users-chown switch. It also gained support for
16431 automatically choosing a free, previously unused UID/GID range when
16432 starting a container, via the new --private-users=pick setting (which
16433 implies --private-users-chown). Together, these options for the first
16434 time make user namespacing for nspawn containers fully automatic and
16435 thus deployable. The [email protected] template unit file has
16436 been changed to use this functionality by default.
16437
16438 * systemd-nspawn gained a new --network-zone= switch, that allows
16439 creating ad-hoc virtual Ethernet links between multiple containers,
16440 that only exist as long as at least one container referencing them is
16441 running. This allows easy connecting of multiple containers with a
16442 common link that implements an Ethernet broadcast domain. Each of
16443 these network "zones" may be named relatively freely by the user, and
16444 may be referenced by any number of containers, but each container may
16445 only reference one of these "zones". On the lower level, this is
16446 implemented by an automatically managed bridge network interface for
16447 each zone, that is created when the first container referencing its
16448 zone is created and removed when the last one referencing its zone
16449 terminates.
16450
16451 * The default start timeout may now be configured on the kernel command
16452 line via systemd.default_timeout_start_sec=. It was already
16453 configurable via the DefaultTimeoutStartSec= option in
16454 /etc/systemd/system.conf.
16455
16456 * Socket units gained a new TriggerLimitIntervalSec= and
16457 TriggerLimitBurst= setting to configure a limit on the activation
16458 rate of the socket unit.
16459
16460 * The LimitNICE= setting now optionally takes normal UNIX nice values
16461 in addition to the raw integer limit value. If the specified
16462 parameter is prefixed with "+" or "-" and is in the range -20…19 the
16463 value is understood as UNIX nice value. If not prefixed like this it
16464 is understood as raw RLIMIT_NICE limit.
16465
16466 * Note that the effect of the PrivateDevices= unit file setting changed
16467 slightly with this release: the per-device /dev file system will be
16468 mounted read-only from this version on, and will have "noexec"
16469 set. This (minor) change of behavior might cause some (exceptional)
16470 legacy software to break, when PrivateDevices=yes is set for its
16471 service. Please leave PrivateDevices= off if you run into problems
16472 with this.
16473
16474 * systemd-bootchart has been split out to a separate repository:
16475 https://github.com/systemd/systemd-bootchart
16476
16477 * systemd-bus-proxyd has been removed, as kdbus is unlikely to still be
16478 merged into the kernel in its current form.
16479
16480 * The compatibility libraries libsystemd-daemon.so,
16481 libsystemd-journal.so, libsystemd-id128.so, and libsystemd-login.so
16482 which have been deprecated since systemd-209 have been removed along
16483 with the corresponding pkg-config files. All symbols provided by
16484 those libraries are provided by libsystemd.so.
16485
16486 * The Capabilities= unit file setting has been removed (it is ignored
16487 for backwards compatibility). AmbientCapabilities= and
16488 CapabilityBoundingSet= should be used instead.
16489
16490 * A new special target has been added, initrd-root-device.target,
16491 which creates a synchronization point for dependencies of the root
16492 device in early userspace. Initramfs builders must ensure that this
16493 target is now included in early userspace.
16494
16495 Contributions from: Alban Crequy, Alexander Kuleshov, Alexander Shopov,
16496 Alex Crawford, Andre Klärner, Andrew Eikum, Beniamino Galvani, Benjamin
16497 Robin, Biao Lu, Bjørnar Ness, Calvin Owens, Christian Hesse, Clemens
16498 Gruber, Colin Guthrie, Daniel Drake, Daniele Medri, Daniel J Walsh,
16499 Daniel Mack, Dan Nicholson, daurnimator, David Herrmann, David
16500 R. Hedges, Elias Probst, Emmanuel Gil Peyrot, EMOziko, Evgeny
16501 Vereshchagin, Federico, Felipe Sateler, Filipe Brandenburger, Franck
16502 Bui, frankheckenbach, gdamjan, Georgia Brikis, Harald Hoyer, Hendrik
16503 Brueckner, Hristo Venev, Iago López Galeiras, Ian Kelling, Ismo
16504 Puustinen, Jakub Wilk, Jaroslav Škarvada, Jeff Huang, Joel Holdsworth,
16505 John Paul Adrian Glaubitz, Jonathan Boulle, kayrus, Klearchos
16506 Chaloulos, Kyle Russell, Lars Uebernickel, Lennart Poettering, Lubomir
16507 Rintel, Lukáš Nykrýn, Mantas Mikulėnas, Marcel Holtmann, Martin Pitt,
16508 Michael Biebl, michaelolbrich, Michał Bartoszkiewicz, Michal Koutný,
16509 Michal Sekletar, Mike Frysinger, Mike Gilbert, Mingcong Bai, Ming Lin,
16510 mulkieran, muzena, Nalin Dahyabhai, Naohiro Aota, Nathan McSween,
16511 Nicolas Braud-Santoni, Patrik Flykt, Peter Hutterer, Peter Mattern,
16512 Petr Lautrbach, Petros Angelatos, Piotr Drąg, Rabin Vincent, Robert
16513 Węcławski, Ronny Chevalier, Samuel Tardieu, Stefan Saraev, Stefan
16514 Schallenberg aka nafets227, Steven Siloti, Susant Sahani, Sylvain
16515 Plantefève, Taylor Smock, Tejun Heo, Thomas Blume, Thomas Haller,
16516 Thomas H. P. Andersen, Tobias Klauser, Tom Gundersen, topimiettinen,
16517 Torstein Husebø, Umut Tezduyar Lindskog, Uwe Kleine-König, Victor Toso,
16518 Vinay Kulkarni, Vito Caputo, Vittorio G (VittGam), Vladimir Panteleev,
16519 Wieland Hoffmann, Wouter Verhelst, Yu Watanabe, Zbigniew
16520 Jędrzejewski-Szmek
16521
16522 — Fairfax, 2016-05-21
16523
16524 CHANGES WITH 229:
16525
16526 * The systemd-resolved DNS resolver service has gained a substantial
16527 set of new features, most prominently it may now act as a DNSSEC
16528 validating stub resolver. DNSSEC mode is currently turned off by
16529 default, but is expected to be turned on by default in one of the
16530 next releases. For now, we invite everybody to test the DNSSEC logic
16531 by setting DNSSEC=allow-downgrade in /etc/systemd/resolved.conf. The
16532 service also gained a full set of D-Bus interfaces, including calls
16533 to configure DNS and DNSSEC settings per link (for use by external
16534 network management software). systemd-resolved and systemd-networkd
16535 now distinguish between "search" and "routing" domains. The former
16536 are used to qualify single-label names, the latter are used purely
16537 for routing lookups within certain domains to specific links.
16538 resolved now also synthesizes RRs for all entries from /etc/hosts.
16539
16540 * The systemd-resolve tool (which is a client utility for
16541 systemd-resolved) has been improved considerably and is now fully
16542 supported and documented. Hence it has moved from /usr/lib/systemd to
16543 /usr/bin.
16544
16545 * /dev/disk/by-path/ symlink support has been (re-)added for virtio
16546 devices.
16547
16548 * The coredump collection logic has been reworked: when a coredump is
16549 collected it is now written to disk, compressed and processed
16550 (including stacktrace extraction) from a new instantiated service
16551 [email protected], instead of directly from the
16552 /proc/sys/kernel/core_pattern hook we provide. This is beneficial as
16553 processing large coredumps can take up a substantial amount of
16554 resources and time, and this previously happened entirely outside of
16555 systemd's service supervision. With the new logic the core_pattern
16556 hook only does minimal metadata collection before passing off control
16557 to the new instantiated service, which is configured with a time
16558 limit, a nice level and other settings to minimize negative impact on
16559 the rest of the system. Also note that the new logic will honour the
16560 RLIMIT_CORE setting of the crashed process, which now allows users
16561 and processes to turn off coredumping for their processes by setting
16562 this limit.
16563
16564 * The RLIMIT_CORE resource limit now defaults to "unlimited" for PID 1
16565 and all forked processes by default. Previously, PID 1 would leave
16566 the setting at "0" for all processes, as set by the kernel. Note that
16567 the resource limit traditionally has no effect on the generated
16568 coredumps on the system if the /proc/sys/kernel/core_pattern hook
16569 logic is used. Since the limit is now honoured (see above) its
16570 default has been changed so that the coredumping logic is enabled by
16571 default for all processes, while allowing specific opt-out.
16572
16573 * When the stacktrace is extracted from processes of system users, this
16574 is now done as "systemd-coredump" user, in order to sandbox this
16575 potentially security sensitive parsing operation. (Note that when
16576 processing coredumps of normal users this is done under the user ID
16577 of process that crashed, as before.) Packagers should take notice
16578 that it is now necessary to create the "systemd-coredump" system user
16579 and group at package installation time.
16580
16581 * The systemd-activate socket activation testing tool gained support
16582 for SOCK_DGRAM and SOCK_SEQPACKET sockets using the new --datagram
16583 and --seqpacket switches. It also has been extended to support both
16584 new-style and inetd-style file descriptor passing. Use the new
16585 --inetd switch to request inetd-style file descriptor passing.
16586
16587 * Most systemd tools now honor a new $SYSTEMD_COLORS environment
16588 variable, which takes a boolean value. If set to false, ANSI color
16589 output is disabled in the tools even when run on a terminal that
16590 supports it.
16591
16592 * The VXLAN support in networkd now supports two new settings
16593 DestinationPort= and PortRange=.
16594
16595 * A new systemd.machine_id= kernel command line switch has been added,
16596 that may be used to set the machine ID in /etc/machine-id if it is
16597 not initialized yet. This command line option has no effect if the
16598 file is already initialized.
16599
16600 * systemd-nspawn gained a new --as-pid2 switch that invokes any
16601 specified command line as PID 2 rather than PID 1 in the
16602 container. In this mode PID 1 is a minimal stub init process that
16603 implements the special POSIX and Linux semantics of PID 1 regarding
16604 signal and child process management. Note that this stub init process
16605 is implemented in nspawn itself and requires no support from the
16606 container image. This new logic is useful to support running
16607 arbitrary commands in the container, as normal processes are
16608 generally not prepared to run as PID 1.
16609
16610 * systemd-nspawn gained a new --chdir= switch for setting the current
16611 working directory for the process started in the container.
16612
16613 * "journalctl /dev/sda" will now output all kernel log messages for
16614 specified device from the current boot, in addition to all devices
16615 that are parents of it. This should make log output about devices
16616 pretty useful, as long as kernel drivers attach enough metadata to
16617 the log messages. (The usual SATA drivers do.)
16618
16619 * The sd-journal API gained two new calls
16620 sd_journal_has_runtime_files() and sd_journal_has_persistent_files()
16621 that report whether log data from /run or /var has been found.
16622
16623 * journalctl gained a new switch "--fields" that prints all journal
16624 record field names currently in use in the journal. This is backed
16625 by two new sd-journal API calls sd_journal_enumerate_fields() and
16626 sd_journal_restart_fields().
16627
16628 * Most configurable timeouts in systemd now expect an argument of
16629 "infinity" to turn them off, instead of "0" as before. The semantics
16630 from now on is that a timeout of "0" means "now", and "infinity"
16631 means "never". To maintain backwards compatibility, "0" continues to
16632 turn off previously existing timeout settings.
16633
16634 * "systemctl reload-or-try-restart" has been renamed to "systemctl
16635 try-reload-or-restart" to clarify what it actually does: the "try"
16636 logic applies to both reloading and restarting, not just restarting.
16637 The old name continues to be accepted for compatibility.
16638
16639 * On boot-up, when PID 1 detects that the system clock is behind the
16640 release date of the systemd version in use, the clock is now set
16641 to the latter. Previously, this was already done in timesyncd, in order
16642 to avoid running with clocks set to the various clock epochs such as
16643 1902, 1938 or 1970. With this change the logic is now done in PID 1
16644 in addition to timesyncd during early boot-up, so that it is enforced
16645 before the first process is spawned by systemd. Note that the logic
16646 in timesyncd remains, as it is more comprehensive and ensures
16647 clock monotonicity by maintaining a persistent timestamp file in
16648 /var. Since /var is generally not available in earliest boot or the
16649 initrd, this part of the logic remains in timesyncd, and is not done
16650 by PID 1.
16651
16652 * Support for tweaking details in net_cls.class_id through the
16653 NetClass= configuration directive has been removed, as the kernel
16654 people have decided to deprecate that controller in cgroup v2.
16655 Userspace tools such as nftables are moving over to setting rules
16656 that are specific to the full cgroup path of a task, which obsoletes
16657 these controllers anyway. The NetClass= directive is kept around for
16658 legacy compatibility reasons. For a more in-depth description of the
16659 kernel change, please refer to the respective upstream commit:
16660
16661 https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=bd1060a1d671
16662
16663 * A new service setting RuntimeMaxSec= has been added that may be used
16664 to specify a maximum runtime for a service. If the timeout is hit, the
16665 service is terminated and put into a failure state.
16666
16667 * A new service setting AmbientCapabilities= has been added. It allows
16668 configuration of additional Linux process capabilities that are
16669 passed to the activated processes. This is only available on very
16670 recent kernels.
16671
16672 * The process resource limit settings in service units may now be used
16673 to configure hard and soft limits individually.
16674
16675 * The various libsystemd APIs such as sd-bus or sd-event now publicly
16676 expose support for gcc's __attribute__((cleanup())) C extension.
16677 Specifically, for many object destructor functions alternative
16678 versions have been added that have names suffixed with "p" and take a
16679 pointer to a pointer to the object to destroy, instead of just a
16680 pointer to the object itself. This is useful because these destructor
16681 functions may be used directly as parameters to the cleanup
16682 construct. Internally, systemd has been a heavy user of this GCC
16683 extension for a long time, and with this change similar support is
16684 now available to consumers of the library outside of systemd. Note
16685 that by using this extension in your sources compatibility with old
16686 and strictly ANSI compatible C compilers is lost. However, all gcc or
16687 LLVM versions of recent years support this extension.
16688
16689 * Timer units gained support for a new setting RandomizedDelaySec= that
16690 allows configuring some additional randomized delay to the configured
16691 time. This is useful to spread out timer events to avoid load peaks in
16692 clusters or larger setups.
16693
16694 * Calendar time specifications now support sub-second accuracy.
16695
16696 * Socket units now support listening on SCTP and UDP-lite protocol
16697 sockets.
16698
16699 * The sd-event API now comes with a full set of man pages.
16700
16701 * Older versions of systemd contained experimental support for
16702 compressing journal files and coredumps with the LZ4 compressor that
16703 was not compatible with the lz4 binary (due to API limitations of the
16704 lz4 library). This support has been removed; only support for files
16705 compatible with the lz4 binary remains. This LZ4 logic is now
16706 officially supported and no longer considered experimental.
16707
16708 * The dkr image import logic has been removed again from importd. dkr's
16709 micro-services focus doesn't fit into the machine image focus of
16710 importd, and quickly got out of date with the upstream dkr API.
16711
16712 * Creation of the /run/lock/lockdev/ directory was dropped from
16713 tmpfiles.d/legacy.conf. Better locking mechanisms like flock() have
16714 been available for many years. If you still need this, you need to
16715 create your own tmpfiles.d config file with:
16716
16717 d /run/lock/lockdev 0775 root lock -
16718
16719 * The settings StartLimitBurst=, StartLimitInterval=, StartLimitAction=
16720 and RebootArgument= have been moved from the [Service] section of
16721 unit files to [Unit], and they are now supported on all unit types,
16722 not just service units. Of course, systemd will continue to
16723 understand these settings also at the old location, in order to
16724 maintain compatibility.
16725
16726 Contributions from: Abdo Roig-Maranges, Alban Crequy, Aleksander
16727 Adamowski, Alexander Kuleshov, Andreas Pokorny, Andrei Borzenkov,
16728 Andrew Wilcox, Arthur Clement, Beniamino Galvani, Casey Schaufler,
16729 Chris Atkinson, Chris Mayo, Christian Hesse, Damjan Georgievski, Dan
16730 Dedrick, Daniele Medri, Daniel J Walsh, Daniel Korostil, Daniel Mack,
16731 David Herrmann, Dimitri John Ledkov, Dominik Hannen, Douglas Christman,
16732 Evgeny Vereshchagin, Filipe Brandenburger, Franck Bui, Gabor Kelemen,
16733 Harald Hoyer, Hayden Walles, Helmut Grohne, Henrik Kaare Poulsen,
16734 Hristo Venev, Hui Wang, Indrajit Raychaudhuri, Ismo Puustinen, Jakub
16735 Wilk, Jan Alexander Steffens (heftig), Jan Engelhardt, Jan Synacek,
16736 Joost Bremmer, Jorgen Schaefer, Karel Zak, Klearchos Chaloulos,
16737 lc85446, Lennart Poettering, Lukas Nykryn, Mantas Mikulėnas, Marcel
16738 Holtmann, Martin Pitt, Michael Biebl, Michael Olbrich, Michael Scherer,
16739 Michał Górny, Michal Sekletar, Nicolas Cornu, Nicolas Iooss, Nils
16740 Carlson, nmartensen, nnz1024, Patrick Ohly, Peter Hutterer, Phillip Sz,
16741 Ronny Chevalier, Samu Kallio, Shawn Landden, Stef Walter, Susant
16742 Sahani, Sylvain Plantefève, Tadej Janež, Thomas Hindoe Paaboel
16743 Andersen, Tom Gundersen, Torstein Husebø, Umut Tezduyar Lindskog, Vito
16744 Caputo, WaLyong Cho, Yu Watanabe, Zbigniew Jędrzejewski-Szmek
16745
16746 — Berlin, 2016-02-11
16747
16748 CHANGES WITH 228:
16749
16750 * A number of properties previously only settable in unit
16751 files are now also available as properties to set when
16752 creating transient units programmatically via the bus, as it
16753 is exposed with systemd-run's --property=
16754 setting. Specifically, these are: SyslogIdentifier=,
16755 SyslogLevelPrefix=, TimerSlackNSec=, OOMScoreAdjust=,
16756 EnvironmentFile=, ReadWriteDirectories=,
16757 ReadOnlyDirectories=, InaccessibleDirectories=,
16758 ProtectSystem=, ProtectHome=, RuntimeDirectory=.
16759
16760 * When creating transient services via the bus API it is now
16761 possible to pass in a set of file descriptors to use as
16762 STDIN/STDOUT/STDERR for the invoked process.
16763
16764 * Slice units may now be created transiently via the bus APIs,
16765 similar to the way service and scope units may already be
16766 created transiently.
16767
16768 * Wherever systemd expects a calendar timestamp specification
16769 (like in journalctl's --since= and --until= switches) UTC
16770 timestamps are now supported. Timestamps suffixed with "UTC"
16771 are now considered to be in Universal Time Coordinated
16772 instead of the local timezone. Also, timestamps may now
16773 optionally be specified with sub-second accuracy. Both of
16774 these additions also apply to recurring calendar event
16775 specification, such as OnCalendar= in timer units.
16776
16777 * journalctl gained a new "--sync" switch that asks the
16778 journal daemon to write all so far unwritten log messages to
16779 disk and sync the files, before returning.
16780
16781 * systemd-tmpfiles learned two new line types "q" and "Q" that
16782 operate like "v", but also set up a basic btrfs quota
16783 hierarchy when used on a btrfs file system with quota
16784 enabled.
16785
16786 * tmpfiles' "v", "q" and "Q" will now create a plain directory
16787 instead of a subvolume (even on a btrfs file system) if the
16788 root directory is a plain directory, and not a
16789 subvolume. This should simplify things with certain chroot()
16790 environments which are not aware of the concept of btrfs
16791 subvolumes.
16792
16793 * systemd-detect-virt gained a new --chroot switch to detect
16794 whether execution takes place in a chroot() environment.
16795
16796 * CPUAffinity= now takes CPU index ranges in addition to
16797 individual indexes.
16798
16799 * The various memory-related resource limit settings (such as
16800 LimitAS=) now understand the usual K, M, G, … suffixes to
16801 the base of 1024 (IEC). Similar, the time-related resource
16802 limit settings understand the usual min, h, day, … suffixes
16803 now.
16804
16805 * There's a new system.conf setting DefaultTasksMax= to
16806 control the default TasksMax= setting for services and
16807 scopes running on the system. (TasksMax= is the primary
16808 setting that exposes the "pids" cgroup controller on systemd
16809 and was introduced in the previous systemd release.) The
16810 setting now defaults to 512, which means services that are
16811 not explicitly configured otherwise will only be able to
16812 create 512 processes or threads at maximum, from this
16813 version on. Note that this means that thread- or
16814 process-heavy services might need to be reconfigured to set
16815 TasksMax= to a higher value. It is sufficient to set
16816 TasksMax= in these specific unit files to a higher value, or
16817 even "infinity". Similar, there's now a logind.conf setting
16818 UserTasksMax= that defaults to 4096 and limits the total
16819 number of processes or tasks each user may own
16820 concurrently. nspawn containers also have the TasksMax=
16821 value set by default now, to 8192. Note that all of this
16822 only has an effect if the "pids" cgroup controller is
16823 enabled in the kernel. The general benefit of these changes
16824 should be a more robust and safer system, that provides a
16825 certain amount of per-service fork() bomb protection.
16826
16827 * systemd-nspawn gained the new --network-veth-extra= switch
16828 to define additional and arbitrarily-named virtual Ethernet
16829 links between the host and the container.
16830
16831 * A new service execution setting PassEnvironment= has been
16832 added that allows importing select environment variables
16833 from PID1's environment block into the environment block of
16834 the service.
16835
16836 * Timer units gained support for a new RemainAfterElapse=
16837 setting which takes a boolean argument. It defaults to on,
16838 exposing behaviour unchanged to previous releases. If set to
16839 off, timer units are unloaded after they elapsed if they
16840 cannot elapse again. This is particularly useful for
16841 transient timer units, which shall not stay around longer
16842 than until they first elapse.
16843
16844 * systemd will now bump the net.unix.max_dgram_qlen to 512 by
16845 default now (the kernel default is 16). This is beneficial
16846 for avoiding blocking on AF_UNIX/SOCK_DGRAM sockets since it
16847 allows substantially larger numbers of queued
16848 datagrams. This should increase the capability of systemd to
16849 parallelize boot-up, as logging and sd_notify() are unlikely
16850 to stall execution anymore. If you need to change the value
16851 from the new defaults, use the usual sysctl.d/ snippets.
16852
16853 * The compression framing format used by the journal or
16854 coredump processing has changed to be in line with what the
16855 official LZ4 tools generate. LZ4 compression support in
16856 systemd was considered unsupported previously, as the format
16857 was not compatible with the normal tools. With this release
16858 this has changed now, and it is hence safe for downstream
16859 distributions to turn it on. While not compressing as well
16860 as the XZ, LZ4 is substantially faster, which makes
16861 it a good default choice for the compression logic in the
16862 journal and in coredump handling.
16863
16864 * Any reference to /etc/mtab has been dropped from
16865 systemd. The file has been obsolete since a while, but
16866 systemd refused to work on systems where it was incorrectly
16867 set up (it should be a symlink or non-existent). Please make
16868 sure to update to util-linux 2.27.1 or newer in conjunction
16869 with this systemd release, which also drops any reference to
16870 /etc/mtab. If you maintain a distribution make sure that no
16871 software you package still references it, as this is a
16872 likely source of bugs. There's also a glibc bug pending,
16873 asking for removal of any reference to this obsolete file:
16874
16875 https://sourceware.org/bugzilla/show_bug.cgi?id=19108
16876
16877 Note that only util-linux versions built with
16878 --enable-libmount-force-mountinfo are supported.
16879
16880 * Support for the ".snapshot" unit type has been removed. This
16881 feature turned out to be little useful and little used, and
16882 has now been removed from the core and from systemctl.
16883
16884 * The dependency types RequiresOverridable= and
16885 RequisiteOverridable= have been removed from systemd. They
16886 have been used only very sparingly to our knowledge and
16887 other options that provide a similar effect (such as
16888 systemctl --mode=ignore-dependencies) are much more useful
16889 and commonly used. Moreover, they were only half-way
16890 implemented as the option to control behaviour regarding
16891 these dependencies was never added to systemctl. By removing
16892 these dependency types the execution engine becomes a bit
16893 simpler. Unit files that use these dependencies should be
16894 changed to use the non-Overridable dependency types
16895 instead. In fact, when parsing unit files with these
16896 options, that's what systemd will automatically convert them
16897 too, but it will also warn, asking users to fix the unit
16898 files accordingly. Removal of these dependency types should
16899 only affect a negligible number of unit files in the wild.
16900
16901 * Behaviour of networkd's IPForward= option changed
16902 (again). It will no longer maintain a per-interface setting,
16903 but propagate one way from interfaces where this is enabled
16904 to the global kernel setting. The global setting will be
16905 enabled when requested by a network that is set up, but
16906 never be disabled again. This change was made to make sure
16907 IPv4 and IPv6 behaviour regarding packet forwarding is
16908 similar (as the Linux IPv6 stack does not support
16909 per-interface control of this setting) and to minimize
16910 surprises.
16911
16912 * In unit files the behaviour of %u, %U, %h, %s has
16913 changed. These specifiers will now unconditionally resolve
16914 to the various user database fields of the user that the
16915 systemd instance is running as, instead of the user
16916 configured in the specific unit via User=. Note that this
16917 effectively doesn't change much, as resolving of these
16918 specifiers was already turned off in the --system instance
16919 of systemd, as we cannot do NSS lookups from PID 1. In the
16920 --user instance of systemd these specifiers where correctly
16921 resolved, but hardly made any sense, since the user instance
16922 lacks privileges to do user switches anyway, and User= is
16923 hence useless. Moreover, even in the --user instance of
16924 systemd behaviour was awkward as it would only take settings
16925 from User= assignment placed before the specifier into
16926 account. In order to unify and simplify the logic around
16927 this the specifiers will now always resolve to the
16928 credentials of the user invoking the manager (which in case
16929 of PID 1 is the root user).
16930
16931 Contributions from: Andrew Jones, Beniamino Galvani, Boyuan
16932 Yang, Daniel Machon, Daniel Mack, David Herrmann, David
16933 Reynolds, David Strauss, Dongsu Park, Evgeny Vereshchagin,
16934 Felipe Sateler, Filipe Brandenburger, Franck Bui, Hristo
16935 Venev, Iago López Galeiras, Jan Engelhardt, Jan Janssen, Jan
16936 Synacek, Jesus Ornelas Aguayo, Karel Zak, kayrus, Kay Sievers,
16937 Lennart Poettering, Liu Yuan Yuan, Mantas Mikulėnas, Marcel
16938 Holtmann, Marcin Bachry, Marcos Alano, Marcos Mello, Mark
16939 Theunissen, Martin Pitt, Michael Marineau, Michael Olbrich,
16940 Michal Schmidt, Michal Sekletar, Mirco Tischler, Nick Owens,
16941 Nicolas Cornu, Patrik Flykt, Peter Hutterer, reverendhomer,
16942 Ronny Chevalier, Sangjung Woo, Seong-ho Cho, Shawn Landden,
16943 Susant Sahani, Thomas Haller, Thomas Hindoe Paaboel Andersen,
16944 Tom Gundersen, Torstein Husebø, Vito Caputo, Zbigniew
16945 Jędrzejewski-Szmek
16946
16947 — Berlin, 2015-11-18
16948
16949 CHANGES WITH 227:
16950
16951 * systemd now depends on util-linux v2.27. More specifically,
16952 the newly added mount monitor feature in libmount now
16953 replaces systemd's former own implementation.
16954
16955 * libmount mandates /etc/mtab not to be regular file, and
16956 systemd now enforces this condition at early boot.
16957 /etc/mtab has been deprecated and warned about for a very
16958 long time, so systems running systemd should already have
16959 stopped having this file around as anything else than a
16960 symlink to /proc/self/mounts.
16961
16962 * Support for the "pids" cgroup controller has been added. It
16963 allows accounting the number of tasks in a cgroup and
16964 enforcing limits on it. This adds two new setting
16965 TasksAccounting= and TasksMax= to each unit, as well as a
16966 global option DefaultTasksAccounting=.
16967
16968 * Support for the "net_cls" cgroup controller has been added.
16969 It allows assigning a net class ID to each task in the
16970 cgroup, which can then be used in firewall rules and traffic
16971 shaping configurations. Note that the kernel netfilter net
16972 class code does not currently work reliably for ingress
16973 packets on unestablished sockets.
16974
16975 This adds a new config directive called NetClass= to CGroup
16976 enabled units. Allowed values are positive numbers for fixed
16977 assignments and "auto" for picking a free value
16978 automatically.
16979
16980 * 'systemctl is-system-running' now returns 'offline' if the
16981 system is not booted with systemd. This command can now be
16982 used as a substitute for 'systemd-notify --booted'.
16983
16984 * Watchdog timeouts have been increased to 3 minutes for all
16985 in-tree service files. Apparently, disk IO issues are more
16986 frequent than we hoped, and user reported >1 minute waiting
16987 for disk IO.
16988
16989 * 'machine-id-commit' functionality has been merged into
16990 'machine-id-setup --commit'. The separate binary has been
16991 removed.
16992
16993 * The WorkingDirectory= directive in unit files may now be set
16994 to the special value '~'. In this case, the working
16995 directory is set to the home directory of the user
16996 configured in User=.
16997
16998 * "machinectl shell" will now open the shell in the home
16999 directory of the selected user by default.
17000
17001 * The CrashChVT= configuration file setting is renamed to
17002 CrashChangeVT=, following our usual logic of not
17003 abbreviating unnecessarily. The old directive is still
17004 supported for compat reasons. Also, this directive now takes
17005 an integer value between 1 and 63, or a boolean value. The
17006 formerly supported '-1' value for disabling stays around for
17007 compat reasons.
17008
17009 * The PrivateTmp=, PrivateDevices=, PrivateNetwork=,
17010 NoNewPrivileges=, TTYPath=, WorkingDirectory= and
17011 RootDirectory= properties can now be set for transient
17012 units.
17013
17014 * The systemd-analyze tool gained a new "set-log-target" verb
17015 to change the logging target the system manager logs to
17016 dynamically during runtime. This is similar to how
17017 "systemd-analyze set-log-level" already changes the log
17018 level.
17019
17020 * In nspawn /sys is now mounted as tmpfs, with only a selected
17021 set of subdirectories mounted in from the real sysfs. This
17022 enhances security slightly, and is useful for ensuring user
17023 namespaces work correctly.
17024
17025 * Support for USB FunctionFS activation has been added. This
17026 allows implementation of USB gadget services that are
17027 activated as soon as they are requested, so that they don't
17028 have to run continuously, similar to classic socket
17029 activation.
17030
17031 * The "systemctl exit" command now optionally takes an
17032 additional parameter that sets the exit code to return from
17033 the systemd manager when exiting. This is only relevant when
17034 running the systemd user instance, or when running the
17035 system instance in a container.
17036
17037 * sd-bus gained the new API calls sd_bus_path_encode_many()
17038 and sd_bus_path_decode_many() that allow easy encoding and
17039 decoding of multiple identifier strings inside a D-Bus
17040 object path. Another new call sd_bus_default_flush_close()
17041 has been added to flush and close per-thread default
17042 connections.
17043
17044 * systemd-cgtop gained support for a -M/--machine= switch to
17045 show the control groups within a certain container only.
17046
17047 * "systemctl kill" gained support for an optional --fail
17048 switch. If specified the requested operation will fail of no
17049 processes have been killed, because the unit had no
17050 processes attached, or similar.
17051
17052 * A new systemd.crash_reboot=1 kernel command line option has
17053 been added that triggers a reboot after crashing. This can
17054 also be set through CrashReboot= in systemd.conf.
17055
17056 * The RuntimeDirectory= setting now understands unit
17057 specifiers like %i or %f.
17058
17059 * A new (still internal) library API sd-ipv4acd has been added,
17060 that implements address conflict detection for IPv4. It's
17061 based on code from sd-ipv4ll, and will be useful for
17062 detecting DHCP address conflicts.
17063
17064 * File descriptors passed during socket activation may now be
17065 named. A new API sd_listen_fds_with_names() is added to
17066 access the names. The default names may be overridden,
17067 either in the .socket file using the FileDescriptorName=
17068 parameter, or by passing FDNAME= when storing the file
17069 descriptors using sd_notify().
17070
17071 * systemd-networkd gained support for:
17072
17073 - Setting the IPv6 Router Advertisement settings via
17074 IPv6AcceptRouterAdvertisements= in .network files.
17075
17076 - Configuring the HelloTimeSec=, MaxAgeSec= and
17077 ForwardDelaySec= bridge parameters in .netdev files.
17078
17079 - Configuring PreferredSource= for static routes in
17080 .network files.
17081
17082 * The "ask-password" framework used to query for LUKS harddisk
17083 passwords or SSL passwords during boot gained support for
17084 caching passwords in the kernel keyring, if it is
17085 available. This makes sure that the user only has to type in
17086 a passphrase once if there are multiple objects to unlock
17087 with the same one. Previously, such password caching was
17088 available only when Plymouth was used; this moves the
17089 caching logic into the systemd codebase itself. The
17090 "systemd-ask-password" utility gained a new --keyname=
17091 switch to control which kernel keyring key to use for
17092 caching a password in. This functionality is also useful for
17093 enabling display managers such as gdm to automatically
17094 unlock the user's GNOME keyring if its passphrase, the
17095 user's password and the harddisk password are the same, if
17096 gdm-autologin is used.
17097
17098 * When downloading tar or raw images using "machinectl
17099 pull-tar" or "machinectl pull-raw", a matching ".nspawn"
17100 file is now also downloaded, if it is available and stored
17101 next to the image file.
17102
17103 * Units of type ".socket" gained a new boolean setting
17104 Writable= which is only useful in conjunction with
17105 ListenSpecial=. If true, enables opening the specified
17106 special file in O_RDWR mode rather than O_RDONLY mode.
17107
17108 * systemd-rfkill has been reworked to become a singleton
17109 service that is activated through /dev/rfkill on each rfkill
17110 state change and saves the settings to disk. This way,
17111 systemd-rfkill is now compatible with devices that exist
17112 only intermittendly, and even restores state if the previous
17113 system shutdown was abrupt rather than clean.
17114
17115 * The journal daemon gained support for vacuuming old journal
17116 files controlled by the number of files that shall remain,
17117 in addition to the already existing control by size and by
17118 date. This is useful as journal interleaving performance
17119 degrades with too many separate journal files, and allows
17120 putting an effective limit on them. The new setting defaults
17121 to 100, but this may be changed by setting SystemMaxFiles=
17122 and RuntimeMaxFiles= in journald.conf. Also, the
17123 "journalctl" tool gained the new --vacuum-files= switch to
17124 manually vacuum journal files to leave only the specified
17125 number of files in place.
17126
17127 * udev will now create /dev/disk/by-path links for ATA devices
17128 on kernels where that is supported.
17129
17130 * Galician, Serbian, Turkish and Korean translations were added.
17131
17132 Contributions from: Aaro Koskinen, Alban Crequy, Beniamino
17133 Galvani, Benjamin Robin, Branislav Blaskovic, Chen-Han Hsiao
17134 (Stanley), Daniel Buch, Daniel Machon, Daniel Mack, David
17135 Herrmann, David Milburn, doubleodoug, Evgeny Vereshchagin,
17136 Felipe Franciosi, Filipe Brandenburger, Fran Dieguez, Gabriel
17137 de Perthuis, Georg Müller, Hans de Goede, Hendrik Brueckner,
17138 Ivan Shapovalov, Jacob Keller, Jan Engelhardt, Jan Janssen,
17139 Jan Synacek, Jens Kuske, Karel Zak, Kay Sievers, Krzesimir
17140 Nowak, Krzysztof Kotlenga, Lars Uebernickel, Lennart
17141 Poettering, Lukas Nykryn, Łukasz Stelmach, Maciej Wereski,
17142 Marcel Holtmann, Marius Thesing, Martin Pitt, Michael Biebl,
17143 Michael Gebetsroither, Michal Schmidt, Michal Sekletar, Mike
17144 Gilbert, Muhammet Kara, nazgul77, Nicolas Cornu, NoXPhasma,
17145 Olof Johansson, Patrik Flykt, Pawel Szewczyk, reverendhomer,
17146 Ronny Chevalier, Sangjung Woo, Seong-ho Cho, Susant Sahani,
17147 Sylvain Plantefève, Thomas Haller, Thomas Hindoe Paaboel
17148 Andersen, Tom Gundersen, Tom Lyon, Viktar Vauchkevich,
17149 Zbigniew Jędrzejewski-Szmek, Марко М. Костић
17150
17151 — Berlin, 2015-10-07
17152
17153 CHANGES WITH 226:
17154
17155 * The DHCP implementation of systemd-networkd gained a set of
17156 new features:
17157
17158 - The DHCP server now supports emitting DNS and NTP
17159 information. It may be enabled and configured via
17160 EmitDNS=, DNS=, EmitNTP=, and NTP=. If transmission of DNS
17161 and NTP information is enabled, but no servers are
17162 configured, the corresponding uplink information (if there
17163 is any) is propagated.
17164
17165 - Server and client now support transmission and reception
17166 of timezone information. It can be configured via the
17167 newly introduced network options UseTimezone=,
17168 EmitTimezone=, and Timezone=. Transmission of timezone
17169 information is enabled between host and containers by
17170 default now: the container will change its local timezone
17171 to what the host has set.
17172
17173 - Lease timeouts can now be configured via
17174 MaxLeaseTimeSec= and DefaultLeaseTimeSec=.
17175
17176 - The DHCP server improved on the stability of
17177 leases. Clients are more likely to get the same lease
17178 information back, even if the server loses state.
17179
17180 - The DHCP server supports two new configuration options to
17181 control the lease address pool metrics, PoolOffset= and
17182 PoolSize=.
17183
17184 * The encapsulation limit of tunnels in systemd-networkd may
17185 now be configured via 'EncapsulationLimit='. It allows
17186 modifying the maximum additional levels of encapsulation
17187 that are permitted to be prepended to a packet.
17188
17189 * systemd now supports the concept of user buses replacing
17190 session buses, if used with dbus-1.10 (and enabled via dbus
17191 --enable-user-session). It previously only supported this on
17192 kdbus-enabled systems, and this release expands this to
17193 'dbus-daemon' systems.
17194
17195 * systemd-networkd now supports predictable interface names
17196 for virtio devices.
17197
17198 * systemd now optionally supports the new Linux kernel
17199 "unified" control group hierarchy. If enabled via the kernel
17200 command-line option 'systemd.unified_cgroup_hierarchy=1',
17201 systemd will try to mount the unified cgroup hierarchy
17202 directly on /sys/fs/cgroup. If not enabled, or not
17203 available, systemd will fall back to the legacy cgroup
17204 hierarchy setup, as before. Host system and containers can
17205 mix and match legacy and unified hierarchies as they
17206 wish. nspawn understands the $UNIFIED_CGROUP_HIERARCHY
17207 environment variable to individually select the hierarchy to
17208 use for executed containers. By default, nspawn will use the
17209 unified hierarchy for the containers if the host uses the
17210 unified hierarchy, and the legacy hierarchy otherwise.
17211 Please note that at this point the unified hierarchy is an
17212 experimental kernel feature and is likely to change in one
17213 of the next kernel releases. Therefore, it should not be
17214 enabled by default in downstream distributions yet. The
17215 minimum required kernel version for the unified hierarchy to
17216 work is 4.2. Note that when the unified hierarchy is used
17217 for the first time delegated access to controllers is
17218 safe. Because of this systemd-nspawn containers will get
17219 access to controllers now, as will systemd user
17220 sessions. This means containers and user sessions may now
17221 manage their own resources, partitioning up what the system
17222 grants them.
17223
17224 * A new special scope unit "init.scope" has been introduced
17225 that encapsulates PID 1 of the system. It may be used to
17226 determine resource usage and enforce resource limits on PID
17227 1 itself. PID 1 hence moved out of the root of the control
17228 group tree.
17229
17230 * The cgtop tool gained support for filtering out kernel
17231 threads when counting tasks in a control group. Also, the
17232 count of processes is now recursively summed up by
17233 default. Two options -k and --recursive= have been added to
17234 revert to old behaviour. The tool has also been updated to
17235 work correctly in containers now.
17236
17237 * systemd-nspawn's --bind= and --bind-ro= options have been
17238 extended to allow creation of non-recursive bind mounts.
17239
17240 * libsystemd gained two new calls sd_pid_get_cgroup() and
17241 sd_peer_get_cgroup() which return the control group path of
17242 a process or peer of a connected AF_UNIX socket. This
17243 function call is particularly useful when implementing
17244 delegated subtrees support in the control group hierarchy.
17245
17246 * The "sd-event" event loop API of libsystemd now supports
17247 correct dequeuing of real-time signals, without losing
17248 signal events.
17249
17250 * When systemd requests a polkit decision when managing units it
17251 will now add additional fields to the request, including unit
17252 name and desired operation. This enables more powerful polkit
17253 policies, that make decisions depending on these parameters.
17254
17255 * nspawn learnt support for .nspawn settings files, that may
17256 accompany the image files or directories of containers, and
17257 may contain additional settings for the container. This is
17258 an alternative to configuring container parameters via the
17259 nspawn command line.
17260
17261 Contributions from: Cristian Rodríguez, Daniel Mack, David
17262 Herrmann, Eugene Yakubovich, Evgeny Vereshchagin, Filipe
17263 Brandenburger, Hans de Goede, Jan Alexander Steffens, Jan
17264 Synacek, Kay Sievers, Lennart Poettering, Mangix, Marcel
17265 Holtmann, Martin Pitt, Michael Biebl, Michael Chapman, Michal
17266 Sekletar, Peter Hutterer, Piotr Drąg, reverendhomer, Robin
17267 Hack, Susant Sahani, Sylvain Pasche, Thomas Hindoe Paaboel
17268 Andersen, Tom Gundersen, Torstein Husebø
17269
17270 — Berlin, 2015-09-08
17271
17272 CHANGES WITH 225:
17273
17274 * machinectl gained a new verb 'shell' which opens a fresh
17275 shell on the target container or the host. It is similar to
17276 the existing 'login' command of machinectl, but spawns the
17277 shell directly without prompting for username or
17278 password. The pseudo machine '.host' now refers to the local
17279 host and is used by default. Hence, 'machinectl shell' can
17280 be used as replacement for 'su -' which spawns a session as
17281 a fresh systemd unit in a way that is fully isolated from
17282 the originating session.
17283
17284 * systemd-networkd learned to cope with private-zone DHCP
17285 options and allows other programs to query the values.
17286
17287 * SELinux access control when enabling/disabling units is no
17288 longer enforced with this release. The previous implementation
17289 was incorrect, and a new corrected implementation is not yet
17290 available. As unit file operations are still protected via
17291 polkit and D-Bus policy this is not a security problem. Yet,
17292 distributions which care about optimal SELinux support should
17293 probably not stabilize on this release.
17294
17295 * sd-bus gained support for matches of type "arg0has=", that
17296 test for membership of strings in string arrays sent in bus
17297 messages.
17298
17299 * systemd-resolved now dumps the contents of its DNS and LLMNR
17300 caches to the logs on reception of the SIGUSR1 signal. This
17301 is useful to debug DNS behaviour.
17302
17303 * The coredumpctl tool gained a new --directory= option to
17304 operate on journal files in a specific directory.
17305
17306 * "systemctl reboot" and related commands gained a new
17307 "--message=" option which may be used to set a free-text
17308 wall message when shutting down or rebooting the
17309 system. This message is also logged, which is useful for
17310 figuring out the reason for a reboot or shutdown a
17311 posteriori.
17312
17313 * The "systemd-resolve-host" tool's -i switch now takes
17314 network interface numbers as alternative to interface names.
17315
17316 * A new unit file setting for services has been introduced:
17317 UtmpMode= allows configuration of how precisely systemd
17318 handles utmp and wtmp entries for the service if this is
17319 enabled. This allows writing services that appear similar to
17320 user sessions in the output of the "w", "who", "last" and
17321 "lastlog" tools.
17322
17323 * systemd-resolved will now locally synthesize DNS resource
17324 records for the "localhost" and "gateway" domains as well as
17325 the local hostname. This should ensure that clients querying
17326 RRs via resolved will get similar results as those going via
17327 NSS, if nss-myhostname is enabled.
17328
17329 Contributions from: Alastair Hughes, Alex Crawford, Daniel
17330 Mack, David Herrmann, Dimitri John Ledkov, Eric Kostrowski,
17331 Evgeny Vereshchagin, Felipe Sateler, HATAYAMA Daisuke, Jan
17332 Pokorný, Jan Synacek, Johnny Robeson, Karel Zak, Kay Sievers,
17333 Kefeng Wang, Lennart Poettering, Major Hayden, Marcel
17334 Holtmann, Markus Elfring, Martin Mikkelsen, Martin Pitt, Matt
17335 Turner, Maxim Mikityanskiy, Michael Biebl, Namhyung Kim,
17336 Nicolas Cornu, Owen W. Taylor, Patrik Flykt, Peter Hutterer,
17337 reverendhomer, Richard Maw, Ronny Chevalier, Seth Jennings,
17338 Stef Walter, Susant Sahani, Thomas Blume, Thomas Hindoe
17339 Paaboel Andersen, Thomas Meyer, Tom Gundersen, Vincent Batts,
17340 WaLyong Cho, Zbigniew Jędrzejewski-Szmek
17341
17342 — Berlin, 2015-08-27
17343
17344 CHANGES WITH 224:
17345
17346 * The systemd-efi-boot-generator functionality was merged into
17347 systemd-gpt-auto-generator.
17348
17349 * systemd-networkd now supports Group Policy for vxlan
17350 devices. It can be enabled via the new boolean configuration
17351 option called 'GroupPolicyExtension='.
17352
17353 Contributions from: Andreas Kempf, Christian Hesse, Daniel Mack, David
17354 Herrmann, Herman Fries, Johannes Nixdorf, Kay Sievers, Lennart
17355 Poettering, Peter Hutterer, Susant Sahani, Tom Gundersen
17356
17357 — Berlin, 2015-07-31
17358
17359 CHANGES WITH 223:
17360
17361 * The python-systemd code has been removed from the systemd repository.
17362 A new repository has been created which accommodates the code from
17363 now on, and we kindly ask distributions to create a separate package
17364 for this: https://github.com/systemd/python-systemd
17365
17366 * The systemd daemon will now reload its main configuration
17367 (/etc/systemd/system.conf) on daemon-reload.
17368
17369 * sd-dhcp now exposes vendor specific extensions via
17370 sd_dhcp_lease_get_vendor_specific().
17371
17372 * systemd-networkd gained a number of new configuration options.
17373
17374 - A new boolean configuration option for TAP devices called
17375 'VNetHeader='. If set, the IFF_VNET_HDR flag is set for the
17376 device, thus allowing to send and receive GSO packets.
17377
17378 - A new tunnel configuration option called 'CopyDSCP='.
17379 If enabled, the DSCP field of ip6 tunnels is copied into the
17380 decapsulated packet.
17381
17382 - A set of boolean bridge configuration options were added.
17383 'UseBPDU=', 'HairPin=', 'FastLeave=', 'AllowPortToBeRoot=',
17384 and 'UnicastFlood=' are now parsed by networkd and applied to the
17385 respective bridge link device via the respective IFLA_BRPORT_*
17386 netlink attribute.
17387
17388 - A new string configuration option to override the hostname sent
17389 to a DHCP server, called 'Hostname='. If set and 'SendHostname='
17390 is true, networkd will use the configured hostname instead of the
17391 system hostname when sending DHCP requests.
17392
17393 - A new tunnel configuration option called 'IPv6FlowLabel='. If set,
17394 networkd will configure the IPv6 flow-label of the tunnel device
17395 according to RFC2460.
17396
17397 - The 'macvtap' virtual network devices are now supported, similar to
17398 the already supported 'macvlan' devices.
17399
17400 * systemd-resolved now implements RFC5452 to improve resilience against
17401 cache poisoning. Additionally, source port randomization is enabled
17402 by default to further protect against DNS spoofing attacks.
17403
17404 * nss-mymachines now supports translating UIDs and GIDs of running
17405 containers with user-namespaces enabled. If a container 'foo'
17406 translates a host uid 'UID' to the container uid 'TUID', then
17407 nss-mymachines will also map uid 'UID' to/from username 'vu-foo-TUID'
17408 (with 'foo' and 'TUID' replaced accordingly). Similarly, groups are
17409 mapped as 'vg-foo-TGID'.
17410
17411 Contributions from: Beniamino Galvani, cee1, Christian Hesse, Daniel
17412 Buch, Daniel Mack, daurnimator, David Herrmann, Dimitri John Ledkov,
17413 HATAYAMA Daisuke, Ivan Shapovalov, Jan Alexander Steffens (heftig),
17414 Johan Ouwerkerk, Jose Carlos Venegas Munoz, Karel Zak, Kay Sievers,
17415 Lennart Poettering, Lidong Zhong, Martin Pitt, Michael Biebl, Michael
17416 Olbrich, Michal Schmidt, Michal Sekletar, Mike Gilbert, Namhyung Kim,
17417 Nick Owens, Peter Hutterer, Richard Maw, Steven Allen, Sungbae Yoo,
17418 Susant Sahani, Thomas Blume, Thomas Hindoe Paaboel Andersen, Tom
17419 Gundersen, Torstein Husebø, Umut Tezduyar Lindskog, Vito Caputo,
17420 Vivenzio Pagliari, Zbigniew Jędrzejewski-Szmek
17421
17422 — Berlin, 2015-07-29
17423
17424 CHANGES WITH 222:
17425
17426 * udev does not longer support the WAIT_FOR_SYSFS= key in udev rules.
17427 There are no known issues with current sysfs, and udev does not need
17428 or should be used to work around such bugs.
17429
17430 * udev does no longer enable USB HID power management. Several reports
17431 indicate, that some devices cannot handle that setting.
17432
17433 * The udev accelerometer helper was removed. The functionality
17434 is now fully included in iio-sensor-proxy. But this means,
17435 older iio-sensor-proxy versions will no longer provide
17436 accelerometer/orientation data with this systemd version.
17437 Please upgrade iio-sensor-proxy to version 1.0.
17438
17439 * networkd gained a new configuration option IPv6PrivacyExtensions=
17440 which enables IPv6 privacy extensions (RFC 4941, "Privacy Extensions
17441 for Stateless Address") on selected networks.
17442
17443 * For the sake of fewer build-time dependencies and less code in the
17444 main repository, the python bindings are about to be removed in the
17445 next release. A new repository has been created which accommodates
17446 the code from now on, and we kindly ask distributions to create a
17447 separate package for this. The removal will take place in v223.
17448
17449 https://github.com/systemd/python-systemd
17450
17451 Contributions from: Abdo Roig-Maranges, Andrew Eikum, Bastien Nocera,
17452 Cédric Delmas, Christian Hesse, Christos Trochalakis, Daniel Mack,
17453 daurnimator, David Herrmann, Dimitri John Ledkov, Eric Biggers, Eric
17454 Cook, Felipe Sateler, Geert Jansen, Gerd Hoffmann, Gianpaolo Macario,
17455 Greg Kroah-Hartman, Iago López Galeiras, Jan Alexander Steffens
17456 (heftig), Jan Engelhardt, Jay Strict, Kay Sievers, Lennart Poettering,
17457 Markus Knetschke, Martin Pitt, Michael Biebl, Michael Marineau, Michal
17458 Sekletar, Miguel Bernal Marin, Peter Hutterer, Richard Maw, rinrinne,
17459 Susant Sahani, Thomas Hindoe Paaboel Andersen, Tom Gundersen, Torstein
17460 Husebø, Vedran Miletić, WaLyong Cho, Zbigniew Jędrzejewski-Szmek
17461
17462 — Berlin, 2015-07-07
17463
17464 CHANGES WITH 221:
17465
17466 * The sd-bus.h and sd-event.h APIs have now been declared
17467 stable and have been added to the official interface of
17468 libsystemd.so. sd-bus implements an alternative D-Bus client
17469 library, that is relatively easy to use, very efficient and
17470 supports both classic D-Bus as well as kdbus as transport
17471 backend. sd-event is a generic event loop abstraction that
17472 is built around Linux epoll, but adds features such as event
17473 prioritization or efficient timer handling. Both APIs are good
17474 choices for C programs looking for a bus and/or event loop
17475 implementation that is minimal and does not have to be
17476 portable to other kernels.
17477
17478 * kdbus support is no longer compile-time optional. It is now
17479 always built-in. However, it can still be disabled at
17480 runtime using the kdbus=0 kernel command line setting, and
17481 that setting may be changed to default to off, by specifying
17482 --disable-kdbus at build-time. Note though that the kernel
17483 command line setting has no effect if the kdbus.ko kernel
17484 module is not installed, in which case kdbus is (obviously)
17485 also disabled. We encourage all downstream distributions to
17486 begin testing kdbus by adding it to the kernel images in the
17487 development distributions, and leaving kdbus support in
17488 systemd enabled.
17489
17490 * The minimal required util-linux version has been bumped to
17491 2.26.
17492
17493 * Support for chkconfig (--enable-chkconfig) was removed in
17494 favor of calling an abstraction tool
17495 /lib/systemd/systemd-sysv-install. This needs to be
17496 implemented for your distribution. See "SYSV INIT.D SCRIPTS"
17497 in README for details.
17498
17499 * If there's a systemd unit and a SysV init script for the
17500 same service name, and the user executes "systemctl enable"
17501 for it (or a related call), then this will now enable both
17502 (or execute the related operation on both), not just the
17503 unit.
17504
17505 * The libudev API documentation has been converted from gtkdoc
17506 into man pages.
17507
17508 * gudev has been removed from the systemd tree, it is now an
17509 external project.
17510
17511 * The systemd-cgtop tool learnt a new --raw switch to generate
17512 "raw" (machine parsable) output.
17513
17514 * networkd's IPForwarding= .network file setting learnt the
17515 new setting "kernel", which ensures that networkd does not
17516 change the IP forwarding sysctl from the default kernel
17517 state.
17518
17519 * The systemd-logind bus API now exposes a new boolean
17520 property "Docked" that reports whether logind considers the
17521 system "docked", i.e. connected to a docking station or not.
17522
17523 Contributions from: Alex Crawford, Andreas Pokorny, Andrei
17524 Borzenkov, Charles Duffy, Colin Guthrie, Cristian Rodríguez,
17525 Daniele Medri, Daniel Hahler, Daniel Mack, David Herrmann,
17526 David Mohr, Dimitri John Ledkov, Djalal Harouni, dslul, Ed
17527 Swierk, Eric Cook, Filipe Brandenburger, Gianpaolo Macario,
17528 Harald Hoyer, Iago López Galeiras, Igor Vuk, Jan Synacek,
17529 Jason Pleau, Jason S. McMullan, Jean Delvare, Jeff Huang,
17530 Jonathan Boulle, Karel Zak, Kay Sievers, kloun, Lennart
17531 Poettering, Marc-Antoine Perennou, Marcel Holtmann, Mario
17532 Limonciello, Martin Pitt, Michael Biebl, Michael Olbrich,
17533 Michal Schmidt, Mike Gilbert, Nick Owens, Pablo Lezaeta Reyes,
17534 Patrick Donnelly, Pavel Odvody, Peter Hutterer, Philip
17535 Withnall, Ronny Chevalier, Simon McVittie, Susant Sahani,
17536 Thomas Hindoe Paaboel Andersen, Tom Gundersen, Torstein
17537 Husebø, Umut Tezduyar Lindskog, Viktar Vauchkevich, Werner
17538 Fink, Zbigniew Jędrzejewski-Szmek
17539
17540 — Berlin, 2015-06-19
17541
17542 CHANGES WITH 220:
17543
17544 * The gudev library has been extracted into a separate repository
17545 available at: https://git.gnome.org/browse/libgudev/
17546 It is now managed as part of the Gnome project. Distributions
17547 are recommended to pass --disable-gudev to systemd and use
17548 gudev from the Gnome project instead. gudev is still included
17549 in systemd, for now. It will be removed soon, though. Please
17550 also see the announcement-thread on systemd-devel:
17551 https://lists.freedesktop.org/archives/systemd-devel/2015-May/032070.html
17552
17553 * systemd now exposes a CPUUsageNSec= property for each
17554 service unit on the bus, that contains the overall consumed
17555 CPU time of a service (the sum of what each process of the
17556 service consumed). This value is only available if
17557 CPUAccounting= is turned on for a service, and is then shown
17558 in the "systemctl status" output.
17559
17560 * Support for configuring alternative mappings of the old SysV
17561 runlevels to systemd targets has been removed. They are now
17562 hardcoded in a way that runlevels 2, 3, 4 all map to
17563 multi-user.target and 5 to graphical.target (which
17564 previously was already the default behaviour).
17565
17566 * The auto-mounter logic gained support for mount point
17567 expiry, using a new TimeoutIdleSec= setting in .automount
17568 units. (Also available as x-systemd.idle-timeout= in /etc/fstab).
17569
17570 * The EFI System Partition (ESP) as mounted to /boot by
17571 systemd-efi-boot-generator will now be unmounted
17572 automatically after 2 minutes of not being used. This should
17573 minimize the risk of ESP corruptions.
17574
17575 * New /etc/fstab options x-systemd.requires= and
17576 x-systemd.requires-mounts-for= are now supported to express
17577 additional dependencies for mounts. This is useful for
17578 journaling file systems that support external journal
17579 devices or overlay file systems that require underlying file
17580 systems to be mounted.
17581
17582 * systemd does not support direct live-upgrades (via systemctl
17583 daemon-reexec) from versions older than v44 anymore. As no
17584 distribution we are aware of shipped such old versions in a
17585 stable release this should not be problematic.
17586
17587 * When systemd forks off a new per-connection service instance
17588 it will now set the $REMOTE_ADDR environment variable to the
17589 remote IP address, and $REMOTE_PORT environment variable to
17590 the remote IP port. This behaviour is similar to the
17591 corresponding environment variables defined by CGI.
17592
17593 * systemd-networkd gained support for uplink failure
17594 detection. The BindCarrier= option allows binding interface
17595 configuration dynamically to the link sense of other
17596 interfaces. This is useful to achieve behaviour like in
17597 network switches.
17598
17599 * systemd-networkd gained support for configuring the DHCP
17600 client identifier to use when requesting leases.
17601
17602 * systemd-networkd now has a per-network UseNTP= option to
17603 configure whether NTP server information acquired via DHCP
17604 is passed on to services like systemd-timesyncd.
17605
17606 * systemd-networkd gained support for vti6 tunnels.
17607
17608 * Note that systemd-networkd manages the sysctl variable
17609 /proc/sys/net/ipv[46]/conf/*/forwarding for each interface
17610 it is configured for since v219. The variable controls IP
17611 forwarding, and is a per-interface alternative to the global
17612 /proc/sys/net/ipv[46]/ip_forward. This setting is
17613 configurable in the IPForward= option, which defaults to
17614 "no". This means if networkd is used for an interface it is
17615 no longer sufficient to set the global sysctl option to turn
17616 on IP forwarding! Instead, the .network file option
17617 IPForward= needs to be turned on! Note that the
17618 implementation of this behaviour was broken in v219 and has
17619 been fixed in v220.
17620
17621 * Many bonding and vxlan options are now configurable in
17622 systemd-networkd.
17623
17624 * systemd-nspawn gained a new --property= setting to set unit
17625 properties for the container scope. This is useful for
17626 setting resource parameters (e.g. "CPUShares=500") on
17627 containers started from the command line.
17628
17629 * systemd-nspawn gained a new --private-users= switch to make
17630 use of user namespacing available on recent Linux kernels.
17631
17632 * systemd-nspawn may now be called as part of a shell pipeline
17633 in which case the pipes used for stdin and stdout are passed
17634 directly to the process invoked in the container, without
17635 indirection via a pseudo tty.
17636
17637 * systemd-nspawn gained a new switch to control the UNIX
17638 signal to use when killing the init process of the container
17639 when shutting down.
17640
17641 * systemd-nspawn gained a new --overlay= switch for mounting
17642 overlay file systems into the container using the new kernel
17643 overlayfs support.
17644
17645 * When a container image is imported via systemd-importd and
17646 the host file system is not btrfs, a loopback block device
17647 file is created in /var/lib/machines.raw with a btrfs file
17648 system inside. It is then mounted to /var/lib/machines to
17649 enable btrfs features for container management. The loopback
17650 file and btrfs file system is grown as needed when container
17651 images are imported via systemd-importd.
17652
17653 * systemd-machined/systemd-importd gained support for btrfs
17654 quota, to enforce container disk space limits on disk. This
17655 is exposed in "machinectl set-limit".
17656
17657 * systemd-importd now can import containers from local .tar,
17658 .raw and .qcow2 images, and export them to .tar and .raw. It
17659 can also import dkr v2 images now from the network (on top
17660 of v1 as before).
17661
17662 * systemd-importd gained support for verifying downloaded
17663 images with gpg2 (previously only gpg1 was supported).
17664
17665 * systemd-machined, systemd-logind, systemd: most bus calls are
17666 now accessible to unprivileged processes via polkit. Also,
17667 systemd-logind will now allow users to kill their own sessions
17668 without further privileges or authorization.
17669
17670 * systemd-shutdownd has been removed. This service was
17671 previously responsible for implementing scheduled shutdowns
17672 as exposed in /usr/bin/shutdown's time parameter. This
17673 functionality has now been moved into systemd-logind and is
17674 accessible via a bus interface.
17675
17676 * "systemctl reboot" gained a new switch --firmware-setup that
17677 can be used to reboot into the EFI firmware setup, if that
17678 is available. systemd-logind now exposes an API on the bus
17679 to trigger such reboots, in case graphical desktop UIs want
17680 to cover this functionality.
17681
17682 * "systemctl enable", "systemctl disable" and "systemctl mask"
17683 now support a new "--now" switch. If specified the units
17684 that are enabled will also be started, and the ones
17685 disabled/masked also stopped.
17686
17687 * The Gummiboot EFI boot loader tool has been merged into
17688 systemd, and renamed to "systemd-boot". The bootctl tool has been
17689 updated to support systemd-boot.
17690
17691 * An EFI kernel stub has been added that may be used to create
17692 kernel EFI binaries that contain not only the actual kernel,
17693 but also an initrd, boot splash, command line and OS release
17694 information. This combined binary can then be signed as a
17695 single image, so that the firmware can verify it all in one
17696 step. systemd-boot has special support for EFI binaries created
17697 like this and can extract OS release information from them
17698 and show them in the boot menu. This functionality is useful
17699 to implement cryptographically verified boot schemes.
17700
17701 * Optional support has been added to systemd-fsck to pass
17702 fsck's progress report to an AF_UNIX socket in the file
17703 system.
17704
17705 * udev will no longer create device symlinks for all block devices by
17706 default. A deny list for excluding special block devices from this
17707 logic has been turned into an allow list that requires picking block
17708 devices explicitly that require device symlinks.
17709
17710 * A new (currently still internal) API sd-device.h has been
17711 added to libsystemd. This modernized API is supposed to
17712 replace libudev eventually. In fact, already much of libudev
17713 is now just a wrapper around sd-device.h.
17714
17715 * A new hwdb database for storing metadata about pointing
17716 stick devices has been added.
17717
17718 * systemd-tmpfiles gained support for setting file attributes
17719 similar to the "chattr" tool with new 'h' and 'H' lines.
17720
17721 * systemd-journald will no longer unconditionally set the
17722 btrfs NOCOW flag on new journal files. This is instead done
17723 with tmpfiles snippet using the new 'h' line type. This
17724 allows easy disabling of this logic, by masking the
17725 journal-nocow.conf tmpfiles file.
17726
17727 * systemd-journald will now translate audit message types to
17728 human-readable identifiers when writing them to the
17729 journal. This should improve readability of audit messages.
17730
17731 * The LUKS logic gained support for the offset= and skip=
17732 options in /etc/crypttab, as previously implemented by
17733 Debian.
17734
17735 * /usr/lib/os-release gained a new optional field VARIANT= for
17736 distributions that support multiple variants (such as a
17737 desktop edition, a server edition, …)
17738
17739 Contributions from: Aaro Koskinen, Adam Goode, Alban Crequy,
17740 Alberto Fanjul Alonso, Alexander Sverdlin, Alex Puchades, Alin
17741 Rauta, Alison Chaiken, Andrew Jones, Arend van Spriel,
17742 Benedikt Morbach, Benjamin Franzke, Benjamin Tissoires, Blaž
17743 Tomažič, Chris Morgan, Chris Morin, Colin Walters, Cristian
17744 Rodríguez, Daniel Buch, Daniel Drake, Daniele Medri, Daniel
17745 Mack, Daniel Mustieles, daurnimator, Davide Bettio, David
17746 Herrmann, David Strauss, Didier Roche, Dimitri John Ledkov,
17747 Eric Cook, Gavin Li, Goffredo Baroncelli, Hannes Reinecke,
17748 Hans de Goede, Hans-Peter Deifel, Harald Hoyer, Iago López
17749 Galeiras, Ivan Shapovalov, Jan Engelhardt, Jan Janssen, Jan
17750 Pazdziora, Jan Synacek, Jasper St. Pierre, Jay Faulkner, John
17751 Paul Adrian Glaubitz, Jonathon Gilbert, Karel Zak, Kay
17752 Sievers, Koen Kooi, Lennart Poettering, Lubomir Rintel, Lucas
17753 De Marchi, Lukas Nykryn, Lukas Rusak, Lukasz Skalski, Łukasz
17754 Stelmach, Mantas Mikulėnas, Marc-Antoine Perennou, Marcel
17755 Holtmann, Martin Pitt, Mathieu Chevrier, Matthew Garrett,
17756 Michael Biebl, Michael Marineau, Michael Olbrich, Michal
17757 Schmidt, Michal Sekletar, Mirco Tischler, Nir Soffer, Patrik
17758 Flykt, Pavel Odvody, Peter Hutterer, Peter Lemenkov, Peter
17759 Waller, Piotr Drąg, Raul Gutierrez S, Richard Maw, Ronny
17760 Chevalier, Ross Burton, Sebastian Rasmussen, Sergey Ptashnick,
17761 Seth Jennings, Shawn Landden, Simon Farnsworth, Stefan Junker,
17762 Stephen Gallagher, Susant Sahani, Sylvain Plantefève, Thomas
17763 Haller, Thomas Hindoe Paaboel Andersen, Tobias Hunger, Tom
17764 Gundersen, Torstein Husebø, Umut Tezduyar Lindskog, Will
17765 Woods, Zachary Cook, Zbigniew Jędrzejewski-Szmek
17766
17767 — Berlin, 2015-05-22
17768
17769 CHANGES WITH 219:
17770
17771 * Introduce a new API "sd-hwdb.h" for querying the hardware
17772 metadata database. With this minimal interface one can query
17773 and enumerate the udev hwdb, decoupled from the old libudev
17774 library. libudev's interface for this is now only a wrapper
17775 around sd-hwdb. A new tool systemd-hwdb has been added to
17776 interface with and update the database.
17777
17778 * When any of systemd's tools copies files (for example due to
17779 tmpfiles' C lines) a btrfs reflink will attempted first,
17780 before bytewise copying is done.
17781
17782 * systemd-nspawn gained a new --ephemeral switch. When
17783 specified a btrfs snapshot is taken of the container's root
17784 directory, and immediately removed when the container
17785 terminates again. Thus, a container can be started whose
17786 changes never alter the container's root directory, and are
17787 lost on container termination. This switch can also be used
17788 for starting a container off the root file system of the
17789 host without affecting the host OS. This switch is only
17790 available on btrfs file systems.
17791
17792 * systemd-nspawn gained a new --template= switch. It takes the
17793 path to a container tree to use as template for the tree
17794 specified via --directory=, should that directory be
17795 missing. This allows instantiating containers dynamically,
17796 on first run. This switch is only available on btrfs file
17797 systems.
17798
17799 * When a .mount unit refers to a mount point on which multiple
17800 mounts are stacked, and the .mount unit is stopped all of
17801 the stacked mount points will now be unmounted until no
17802 mount point remains.
17803
17804 * systemd now has an explicit notion of supported and
17805 unsupported unit types. Jobs enqueued for unsupported unit
17806 types will now fail with an "unsupported" error code. More
17807 specifically .swap, .automount and .device units are not
17808 supported in containers, .busname units are not supported on
17809 non-kdbus systems. .swap and .automount are also not
17810 supported if their respective kernel compile time options
17811 are disabled.
17812
17813 * machinectl gained support for two new "copy-from" and
17814 "copy-to" commands for copying files from a running
17815 container to the host or vice versa.
17816
17817 * machinectl gained support for a new "bind" command to bind
17818 mount host directories into local containers. This is
17819 currently only supported for nspawn containers.
17820
17821 * networkd gained support for configuring bridge forwarding
17822 database entries (fdb) from .network files.
17823
17824 * A new tiny daemon "systemd-importd" has been added that can
17825 download container images in tar, raw, qcow2 or dkr formats,
17826 and make them available locally in /var/lib/machines, so
17827 that they can run as nspawn containers. The daemon can GPG
17828 verify the downloads (not supported for dkr, since it has no
17829 provisions for verifying downloads). It will transparently
17830 decompress bz2, xz, gzip compressed downloads if necessary,
17831 and restore sparse files on disk. The daemon uses privilege
17832 separation to ensure the actual download logic runs with
17833 fewer privileges than the daemon itself. machinectl has
17834 gained new commands "pull-tar", "pull-raw" and "pull-dkr" to
17835 make the functionality of importd available to the
17836 user. With this in place the Fedora and Ubuntu "Cloud"
17837 images can be downloaded and booted as containers unmodified
17838 (the Fedora images lack the appropriate GPG signature files
17839 currently, so they cannot be verified, but this will change
17840 soon, hopefully). Note that downloading images is currently
17841 only fully supported on btrfs.
17842
17843 * machinectl is now able to list container images found in
17844 /var/lib/machines, along with some metadata about sizes of
17845 disk and similar. If the directory is located on btrfs and
17846 quota is enabled, this includes quota display. A new command
17847 "image-status" has been added that shows additional
17848 information about images.
17849
17850 * machinectl is now able to clone container images
17851 efficiently, if the underlying file system (btrfs) supports
17852 it, with the new "machinectl clone" command. It also
17853 gained commands for renaming and removing images, as well as
17854 marking them read-only or read-write (supported also on
17855 legacy file systems).
17856
17857 * networkd gained support for collecting LLDP network
17858 announcements, from hardware that supports this. This is
17859 shown in networkctl output.
17860
17861 * systemd-run gained support for a new -t (--pty) switch for
17862 invoking a binary on a pty whose input and output is
17863 connected to the invoking terminal. This allows executing
17864 processes as system services while interactively
17865 communicating with them via the terminal. Most interestingly
17866 this is supported across container boundaries. Invoking
17867 "systemd-run -t /bin/bash" is an alternative to running a
17868 full login session, the difference being that the former
17869 will not register a session, nor go through the PAM session
17870 setup.
17871
17872 * tmpfiles gained support for a new "v" line type for creating
17873 btrfs subvolumes. If the underlying file system is a legacy
17874 file system, this automatically degrades to creating a
17875 normal directory. Among others /var/lib/machines is now
17876 created like this at boot, should it be missing.
17877
17878 * The directory /var/lib/containers/ has been deprecated and
17879 been replaced by /var/lib/machines. The term "machines" has
17880 been used in the systemd context as generic term for both
17881 VMs and containers, and hence appears more appropriate for
17882 this, as the directory can also contain raw images bootable
17883 via qemu/kvm.
17884
17885 * systemd-nspawn when invoked with -M but without --directory=
17886 or --image= is now capable of searching for the container
17887 root directory, subvolume or disk image automatically, in
17888 /var/lib/machines. [email protected] has been updated
17889 to make use of this, thus allowing it to be used for raw
17890 disk images, too.
17891
17892 * A new machines.target unit has been introduced that is
17893 supposed to group all containers/VMs invoked as services on
17894 the system. [email protected] has been updated to
17895 integrate with that.
17896
17897 * machinectl gained a new "start" command, for invoking a
17898 container as a service. "machinectl start foo" is mostly
17899 equivalent to "systemctl start [email protected]",
17900 but handles escaping in a nicer way.
17901
17902 * systemd-nspawn will now mount most of the cgroupfs tree
17903 read-only into each container, with the exception of the
17904 container's own subtree in the name=systemd hierarchy.
17905
17906 * journald now sets the special FS_NOCOW file flag for its
17907 journal files. This should improve performance on btrfs, by
17908 avoiding heavy fragmentation when journald's write-pattern
17909 is used on COW file systems. It degrades btrfs' data
17910 integrity guarantees for the files to the same levels as for
17911 ext3/ext4 however. This should be OK though as journald does
17912 its own data integrity checks and all its objects are
17913 checksummed on disk. Also, journald should handle btrfs disk
17914 full events a lot more gracefully now, by processing SIGBUS
17915 errors, and not relying on fallocate() anymore.
17916
17917 * When journald detects that journal files it is writing to
17918 have been deleted it will immediately start new journal
17919 files.
17920
17921 * systemd now provides a way to store file descriptors
17922 per-service in PID 1. This is useful for daemons to ensure
17923 that fds they require are not lost during a daemon
17924 restart. The fds are passed to the daemon on the next
17925 invocation in the same way socket activation fds are
17926 passed. This is now used by journald to ensure that the
17927 various sockets connected to all the system's stdout/stderr
17928 are not lost when journald is restarted. File descriptors
17929 may be stored in PID 1 via the sd_pid_notify_with_fds() API,
17930 an extension to sd_notify(). Note that a limit is enforced
17931 on the number of fds a service can store in PID 1, and it
17932 defaults to 0, so that no fds may be stored, unless this is
17933 explicitly turned on.
17934
17935 * The default TERM variable to use for units connected to a
17936 terminal, when no other value is explicitly is set is now
17937 vt220 rather than vt102. This should be fairly safe still,
17938 but allows PgUp/PgDn work.
17939
17940 * The /etc/crypttab option header= as known from Debian is now
17941 supported.
17942
17943 * "loginctl user-status" and "loginctl session-status" will
17944 now show the last 10 lines of log messages of the
17945 user/session following the status output. Similar,
17946 "machinectl status" will show the last 10 log lines
17947 associated with a virtual machine or container
17948 service. (Note that this is usually not the log messages
17949 done in the VM/container itself, but simply what the
17950 container manager logs. For nspawn this includes all console
17951 output however.)
17952
17953 * "loginctl session-status" without further argument will now
17954 show the status of the session of the caller. Similar,
17955 "lock-session", "unlock-session", "activate",
17956 "enable-linger", "disable-linger" may now be called without
17957 session/user parameter in which case they apply to the
17958 caller's session/user.
17959
17960 * An X11 session scriptlet is now shipped that uploads
17961 $DISPLAY and $XAUTHORITY into the environment of the systemd
17962 --user daemon if a session begins. This should improve
17963 compatibility with X11 enabled applications run as systemd
17964 user services.
17965
17966 * Generators are now subject to masking via /etc and /run, the
17967 same way as unit files.
17968
17969 * networkd .network files gained support for configuring
17970 per-link IPv4/IPv6 packet forwarding as well as IPv4
17971 masquerading. This is by default turned on for veth links to
17972 containers, as registered by systemd-nspawn. This means that
17973 nspawn containers run with --network-veth will now get
17974 automatic routed access to the host's networks without any
17975 further configuration or setup, as long as networkd runs on
17976 the host.
17977
17978 * systemd-nspawn gained the --port= (-p) switch to expose TCP
17979 or UDP posts of a container on the host. With this in place
17980 it is possible to run containers with private veth links
17981 (--network-veth), and have their functionality exposed on
17982 the host as if their services were running directly on the
17983 host.
17984
17985 * systemd-nspawn's --network-veth switch now gained a short
17986 version "-n", since with the changes above it is now truly
17987 useful out-of-the-box. The [email protected] has been
17988 updated to make use of it too by default.
17989
17990 * systemd-nspawn will now maintain a per-image R/W lock, to
17991 ensure that the same image is not started more than once
17992 writable. (It's OK to run an image multiple times
17993 simultaneously in read-only mode.)
17994
17995 * systemd-nspawn's --image= option is now capable of
17996 dissecting and booting MBR and GPT disk images that contain
17997 only a single active Linux partition. Previously it
17998 supported only GPT disk images with proper GPT type
17999 IDs. This allows running cloud images from major
18000 distributions directly with systemd-nspawn, without
18001 modification.
18002
18003 * In addition to collecting mouse dpi data in the udev
18004 hardware database, there's now support for collecting angle
18005 information for mouse scroll wheels. The database is
18006 supposed to guarantee similar scrolling behavior on mice
18007 that it knows about. There's also support for collecting
18008 information about Touchpad types.
18009
18010 * udev's input_id built-in will now also collect touch screen
18011 dimension data and attach it to probed devices.
18012
18013 * /etc/os-release gained support for a Distribution Privacy
18014 Policy link field.
18015
18016 * networkd gained support for creating "ipvlan", "gretap",
18017 "ip6gre", "ip6gretap" and "ip6tnl" network devices.
18018
18019 * systemd-tmpfiles gained support for "a" lines for setting
18020 ACLs on files.
18021
18022 * systemd-nspawn will now mount /tmp in the container to
18023 tmpfs, automatically.
18024
18025 * systemd now exposes the memory.usage_in_bytes cgroup
18026 attribute and shows it for each service in the "systemctl
18027 status" output, if available.
18028
18029 * When the user presses Ctrl-Alt-Del more than 7x within 2s an
18030 immediate reboot is triggered. This useful if shutdown is
18031 hung and is unable to complete, to expedite the
18032 operation. Note that this kind of reboot will still unmount
18033 all file systems, and hence should not result in fsck being
18034 run on next reboot.
18035
18036 * A .device unit for an optical block device will now be
18037 considered active only when a medium is in the drive. Also,
18038 mount units are now bound to their backing devices thus
18039 triggering automatic unmounting when devices become
18040 unavailable. With this in place systemd will now
18041 automatically unmount left-over mounts when a CD-ROM is
18042 ejected or a USB stick is yanked from the system.
18043
18044 * networkd-wait-online now has support for waiting for
18045 specific interfaces only (with globbing), and for giving up
18046 after a configurable timeout.
18047
18048 * networkd now exits when idle. It will be automatically
18049 restarted as soon as interfaces show up, are removed or
18050 change state. networkd will stay around as long as there is
18051 at least one DHCP state machine or similar around, that keep
18052 it non-idle.
18053
18054 * networkd may now configure IPv6 link-local addressing in
18055 addition to IPv4 link-local addressing.
18056
18057 * The IPv6 "token" for use in SLAAC may now be configured for
18058 each .network interface in networkd.
18059
18060 * Routes configured with networkd may now be assigned a scope
18061 in .network files.
18062
18063 * networkd's [Match] sections now support globbing and lists
18064 of multiple space-separated matches per item.
18065
18066 Contributions from: Alban Crequy, Alin Rauta, Andrey Chaser,
18067 Bastien Nocera, Bruno Bottazzini, Carlos Garnacho, Carlos
18068 Morata Castillo, Chris Atkinson, Chris J. Arges, Christian
18069 Kirbach, Christian Seiler, Christoph Brill, Colin Guthrie,
18070 Colin Walters, Cristian Rodríguez, Daniele Medri, Daniel Mack,
18071 Dave Reisner, David Herrmann, Djalal Harouni, Erik Auerswald,
18072 Filipe Brandenburger, Frank Theile, Gabor Kelemen, Gabriel de
18073 Perthuis, Harald Hoyer, Hui Wang, Ivan Shapovalov, Jan
18074 Engelhardt, Jan Synacek, Jay Faulkner, Johannes Hölzl, Jonas
18075 Ådahl, Jonathan Boulle, Josef Andersson, Kay Sievers, Ken
18076 Werner, Lennart Poettering, Lucas De Marchi, Lukas Märdian,
18077 Lukas Nykryn, Lukasz Skalski, Luke Shumaker, Mantas Mikulėnas,
18078 Manuel Mendez, Marcel Holtmann, Marc Schmitzer, Marko
18079 Myllynen, Martin Pitt, Maxim Mikityanskiy, Michael Biebl,
18080 Michael Marineau, Michael Olbrich, Michal Schmidt, Mindaugas
18081 Baranauskas, Moez Bouhlel, Naveen Kumar, Patrik Flykt, Paul
18082 Martin, Peter Hutterer, Peter Mattern, Philippe De Swert,
18083 Piotr Drąg, Rafael Ferreira, Rami Rosen, Robert Milasan, Ronny
18084 Chevalier, Sangjung Woo, Sebastien Bacher, Sergey Ptashnick,
18085 Shawn Landden, Stéphane Graber, Susant Sahani, Sylvain
18086 Plantefève, Thomas Hindoe Paaboel Andersen, Tim JP, Tom
18087 Gundersen, Topi Miettinen, Torstein Husebø, Umut Tezduyar
18088 Lindskog, Veres Lajos, Vincent Batts, WaLyong Cho, Wieland
18089 Hoffmann, Zbigniew Jędrzejewski-Szmek
18090
18091 — Berlin, 2015-02-16
18092
18093 CHANGES WITH 218:
18094
18095 * When querying unit file enablement status (for example via
18096 "systemctl is-enabled"), a new state "indirect" is now known
18097 which indicates that a unit might not be enabled itself, but
18098 another unit listed in its Also= setting might be.
18099
18100 * Similar to the various existing ConditionXYZ= settings for
18101 units, there are now matching AssertXYZ= settings. While
18102 failing conditions cause a unit to be skipped, but its job
18103 to succeed, failing assertions declared like this will cause
18104 a unit start operation and its job to fail.
18105
18106 * hostnamed now knows a new chassis type "embedded".
18107
18108 * systemctl gained a new "edit" command. When used on a unit
18109 file, this allows extending unit files with .d/ drop-in
18110 configuration snippets or editing the full file (after
18111 copying it from /usr/lib to /etc). This will invoke the
18112 user's editor (as configured with $EDITOR), and reload the
18113 modified configuration after editing.
18114
18115 * "systemctl status" now shows the suggested enablement state
18116 for a unit, as declared in the (usually vendor-supplied)
18117 system preset files.
18118
18119 * nss-myhostname will now resolve the single-label hostname
18120 "gateway" to the locally configured default IP routing
18121 gateways, ordered by their metrics. This assigns a stable
18122 name to the used gateways, regardless which ones are
18123 currently configured. Note that the name will only be
18124 resolved after all other name sources (if nss-myhostname is
18125 configured properly) and should hence not negatively impact
18126 systems that use the single-label hostname "gateway" in
18127 other contexts.
18128
18129 * systemd-inhibit now allows filtering by mode when listing
18130 inhibitors.
18131
18132 * Scope and service units gained a new "Delegate" boolean
18133 property, which, when set, allows processes running inside the
18134 unit to further partition resources. This is primarily
18135 useful for systemd user instances as well as container
18136 managers.
18137
18138 * journald will now pick up audit messages directly from
18139 the kernel, and log them like any other log message. The
18140 audit fields are split up and fully indexed. This means that
18141 journalctl in many ways is now a (nicer!) alternative to
18142 ausearch, the traditional audit client. Note that this
18143 implements only a minimal audit client. If you want the
18144 special audit modes like reboot-on-log-overflow, please use
18145 the traditional auditd instead, which can be used in
18146 parallel to journald.
18147
18148 * The ConditionSecurity= unit file option now understands the
18149 special string "audit" to check whether auditing is
18150 available.
18151
18152 * journalctl gained two new commands --vacuum-size= and
18153 --vacuum-time= to delete old journal files until the
18154 remaining ones take up no more than the specified size on disk,
18155 or are not older than the specified time.
18156
18157 * A new, native PPPoE library has been added to sd-network,
18158 systemd's library of lightweight networking protocols. This
18159 library will be used in a future version of networkd to
18160 enable PPPoE communication without an external pppd daemon.
18161
18162 * The busctl tool now understands a new "capture" verb that
18163 works similar to "monitor", but writes a packet capture
18164 trace to STDOUT that can be redirected to a file which is
18165 compatible with libcap's capture file format. This can then
18166 be loaded in Wireshark and similar tools to inspect bus
18167 communication.
18168
18169 * The busctl tool now understands a new "tree" verb that shows
18170 the object trees of a specific service on the bus, or of all
18171 services.
18172
18173 * The busctl tool now understands a new "introspect" verb that
18174 shows all interfaces and members of objects on the bus,
18175 including their signature and values. This is particularly
18176 useful to get more information about bus objects shown by
18177 the new "busctl tree" command.
18178
18179 * The busctl tool now understands new verbs "call",
18180 "set-property" and "get-property" for invoking bus method
18181 calls, setting and getting bus object properties in a
18182 friendly way.
18183
18184 * busctl gained a new --augment-creds= argument that controls
18185 whether the tool shall augment credential information it
18186 gets from the bus with data from /proc, in a possibly
18187 race-ful way.
18188
18189 * nspawn's --link-journal= switch gained two new values
18190 "try-guest" and "try-host" that work like "guest" and
18191 "host", but do not fail if the host has no persistent
18192 journaling enabled. -j is now equivalent to
18193 --link-journal=try-guest.
18194
18195 * macvlan network devices created by nspawn will now have
18196 stable MAC addresses.
18197
18198 * A new SmackProcessLabel= unit setting has been added, which
18199 controls the SMACK security label processes forked off by
18200 the respective unit shall use.
18201
18202 * If compiled with --enable-xkbcommon, systemd-localed will
18203 verify x11 keymap settings by compiling the given keymap. It
18204 will spew out warnings if the compilation fails. This
18205 requires libxkbcommon to be installed.
18206
18207 * When a coredump is collected, a larger number of metadata
18208 fields is now collected and included in the journal records
18209 created for it. More specifically, control group membership,
18210 environment variables, memory maps, working directory,
18211 chroot directory, /proc/$PID/status, and a list of open file
18212 descriptors is now stored in the log entry.
18213
18214 * The udev hwdb now contains DPI information for mice. For
18215 details see:
18216
18217 http://who-t.blogspot.de/2014/12/building-a-dpi-database-for-mice.html
18218
18219 * All systemd programs that read standalone configuration
18220 files in /etc now also support a corresponding series of
18221 .conf.d configuration directories in /etc/, /run/,
18222 /usr/local/lib/, /usr/lib/, and (if configured with
18223 --enable-split-usr) /lib/. In particular, the following
18224 configuration files now have corresponding configuration
18225 directories: system.conf user.conf, logind.conf,
18226 journald.conf, sleep.conf, bootchart.conf, coredump.conf,
18227 resolved.conf, timesyncd.conf, journal-remote.conf, and
18228 journal-upload.conf. Note that distributions should use the
18229 configuration directories in /usr/lib/; the directories in
18230 /etc/ are reserved for the system administrator.
18231
18232 * systemd-rfkill will no longer take the rfkill device name
18233 into account when storing rfkill state on disk, as the name
18234 might be dynamically assigned and not stable. Instead, the
18235 ID_PATH udev variable combined with the rfkill type (wlan,
18236 bluetooth, …) is used.
18237
18238 * A new service systemd-machine-id-commit.service has been
18239 added. When used on systems where /etc is read-only during
18240 boot, and /etc/machine-id is not initialized (but an empty
18241 file), this service will copy the temporary machine ID
18242 created as replacement into /etc after the system is fully
18243 booted up. This is useful for systems that are freshly
18244 installed with a non-initialized machine ID, but should get
18245 a fixed machine ID for subsequent boots.
18246
18247 * networkd's .netdev files now provide a large set of
18248 configuration parameters for VXLAN devices. Similarly, the
18249 bridge port cost parameter is now configurable in .network
18250 files. There's also new support for configuring IP source
18251 routing. networkd .link files gained support for a new
18252 OriginalName= match that is useful to match against the
18253 original interface name the kernel assigned. .network files
18254 may include MTU= and MACAddress= fields for altering the MTU
18255 and MAC address while being connected to a specific network
18256 interface.
18257
18258 * The LUKS logic gained supported for configuring
18259 UUID-specific key files. There's also new support for naming
18260 LUKS device from the kernel command line, using the new
18261 luks.name= argument.
18262
18263 * Timer units may now be transiently created via the bus API
18264 (this was previously already available for scope and service
18265 units). In addition it is now possible to create multiple
18266 transient units at the same time with a single bus call. The
18267 "systemd-run" tool has been updated to make use of this for
18268 running commands on a specified time, in at(1)-style.
18269
18270 * tmpfiles gained support for "t" lines, for assigning
18271 extended attributes to files. Among other uses this may be
18272 used to assign SMACK labels to files.
18273
18274 Contributions from: Alin Rauta, Alison Chaiken, Andrej
18275 Manduch, Bastien Nocera, Chris Atkinson, Chris Leech, Chris
18276 Mayo, Colin Guthrie, Colin Walters, Cristian Rodríguez,
18277 Daniele Medri, Daniel Mack, Dan Williams, Dan Winship, Dave
18278 Reisner, David Herrmann, Didier Roche, Felipe Sateler, Gavin
18279 Li, Hans de Goede, Harald Hoyer, Iago López Galeiras, Ivan
18280 Shapovalov, Jakub Filak, Jan Janssen, Jan Synacek, Joe
18281 Lawrence, Josh Triplett, Kay Sievers, Lennart Poettering,
18282 Lukas Nykryn, Łukasz Stelmach, Maciej Wereski, Mantas
18283 Mikulėnas, Marcel Holtmann, Martin Pitt, Maurizio Lombardi,
18284 Michael Biebl, Michael Chapman, Michael Marineau, Michal
18285 Schmidt, Michal Sekletar, Olivier Brunel, Patrik Flykt, Peter
18286 Hutterer, Przemyslaw Kedzierski, Rami Rosen, Ray Strode,
18287 Richard Schütz, Richard W.M. Jones, Ronny Chevalier, Ross
18288 Lagerwall, Sean Young, Stanisław Pitucha, Susant Sahani,
18289 Thomas Haller, Thomas Hindoe Paaboel Andersen, Tom Gundersen,
18290 Torstein Husebø, Umut Tezduyar Lindskog, Vicente Olivert
18291 Riera, WaLyong Cho, Wesley Dawson, Zbigniew Jędrzejewski-Szmek
18292
18293 — Berlin, 2014-12-10
18294
18295 CHANGES WITH 217:
18296
18297 * journalctl gained the new options -t/--identifier= to match
18298 on the syslog identifier (aka "tag"), as well as --utc to
18299 show log timestamps in the UTC timezone. journalctl now also
18300 accepts -n/--lines=all to disable line capping in a pager.
18301
18302 * journalctl gained a new switch, --flush, that synchronously
18303 flushes logs from /run/log/journal to /var/log/journal if
18304 persistent storage is enabled. systemd-journal-flush.service
18305 now waits until the operation is complete.
18306
18307 * Services can notify the manager before they start a reload
18308 (by sending RELOADING=1) or shutdown (by sending
18309 STOPPING=1). This allows the manager to track and show the
18310 internal state of daemons and closes a race condition when
18311 the process is still running but has closed its D-Bus
18312 connection.
18313
18314 * Services with Type=oneshot do not have to have any ExecStart
18315 commands anymore.
18316
18317 * User units are now loaded also from
18318 $XDG_RUNTIME_DIR/systemd/user/. This is similar to the
18319 /run/systemd/user directory that was already previously
18320 supported, but is under the control of the user.
18321
18322 * Job timeouts (i.e. timeouts on the time a job that is
18323 queued stays in the run queue) can now optionally result in
18324 immediate reboot or power-off actions (JobTimeoutAction= and
18325 JobTimeoutRebootArgument=). This is useful on ".target"
18326 units, to limit the maximum time a target remains
18327 undispatched in the run queue, and to trigger an emergency
18328 operation in such a case. This is now used by default to
18329 turn off the system if boot-up (as defined by everything in
18330 basic.target) hangs and does not complete for at least
18331 15min. Also, if power-off or reboot hang for at least 30min
18332 an immediate power-off/reboot operation is triggered. This
18333 functionality is particularly useful to increase reliability
18334 on embedded devices, but also on laptops which might
18335 accidentally get powered on when carried in a backpack and
18336 whose boot stays stuck in a hard disk encryption passphrase
18337 question.
18338
18339 * systemd-logind can be configured to also handle lid switch
18340 events even when the machine is docked or multiple displays
18341 are attached (HandleLidSwitchDocked= option).
18342
18343 * A helper binary and a service have been added which can be
18344 used to resume from hibernation in the initramfs. A
18345 generator will parse the resume= option on the kernel
18346 command line to trigger resume.
18347
18348 * A user console daemon systemd-consoled has been
18349 added. Currently, it is a preview, and will so far open a
18350 single terminal on each session of the user marked as
18351 Desktop=systemd-console.
18352
18353 * Route metrics can be specified for DHCP routes added by
18354 systemd-networkd.
18355
18356 * The SELinux context of socket-activated services can be set
18357 from the information provided by the networking stack
18358 (SELinuxContextFromNet= option).
18359
18360 * Userspace firmware loading support has been removed and
18361 the minimum supported kernel version is thus bumped to 3.7.
18362
18363 * Timeout for udev workers has been increased from 1 to 3
18364 minutes, but a warning will be printed after 1 minute to
18365 help diagnose kernel modules that take a long time to load.
18366
18367 * Udev rules can now remove tags on devices with TAG-="foobar".
18368
18369 * systemd's readahead implementation has been removed. In many
18370 circumstances it didn't give expected benefits even for
18371 rotational disk drives and was becoming less relevant in the
18372 age of SSDs. As none of the developers has been using
18373 rotating media anymore, and nobody stepped up to actively
18374 maintain this component of systemd it has now been removed.
18375
18376 * Swap units can use Options= to specify discard options.
18377 Discard options specified for swaps in /etc/fstab are now
18378 respected.
18379
18380 * Docker containers are now detected as a separate type of
18381 virtualization.
18382
18383 * The Password Agent protocol gained support for queries where
18384 the user input is shown, useful e.g. for user names.
18385 systemd-ask-password gained a new --echo option to turn that
18386 on.
18387
18388 * The default sysctl.d/ snippets will now set:
18389
18390 net.core.default_qdisc = fq_codel
18391
18392 This selects Fair Queuing Controlled Delay as the default
18393 queuing discipline for network interfaces. fq_codel helps
18394 fight the network bufferbloat problem. It is believed to be
18395 a good default with no tuning required for most workloads.
18396 Downstream distributions may override this choice. On 10Gbit
18397 servers that do not do forwarding, "fq" may perform better.
18398 Systems without a good clocksource should use "pfifo_fast".
18399
18400 * If kdbus is enabled during build a new option BusPolicy= is
18401 available for service units, that allows locking all service
18402 processes into a stricter bus policy, in order to limit
18403 access to various bus services, or even hide most of them
18404 from the service's view entirely.
18405
18406 * networkctl will now show the .network and .link file
18407 networkd has applied to a specific interface.
18408
18409 * sd-login gained a new API call sd_session_get_desktop() to
18410 query which desktop environment has been selected for a
18411 session.
18412
18413 * UNIX utmp support is now compile-time optional to support
18414 legacy-free systems.
18415
18416 * systemctl gained two new commands "add-wants" and
18417 "add-requires" for pulling in units from specific targets
18418 easily.
18419
18420 * If the word "rescue" is specified on the kernel command line
18421 the system will now boot into rescue mode (aka
18422 rescue.target), which was previously available only by
18423 specifying "1" or "systemd.unit=rescue.target" on the kernel
18424 command line. This new kernel command line option nicely
18425 mirrors the already existing "emergency" kernel command line
18426 option.
18427
18428 * New kernel command line options mount.usr=, mount.usrflags=,
18429 mount.usrfstype= have been added that match root=, rootflags=,
18430 rootfstype= but allow mounting a specific file system to
18431 /usr.
18432
18433 * The $NOTIFY_SOCKET is now also passed to control processes of
18434 services, not only the main process.
18435
18436 * This version reenables support for fsck's -l switch. This
18437 means at least version v2.25 of util-linux is required for
18438 operation, otherwise dead-locks on device nodes may
18439 occur. Again: you need to update util-linux to at least
18440 v2.25 when updating systemd to v217.
18441
18442 * The "multi-seat-x" tool has been removed from systemd, as
18443 its functionality has been integrated into X servers 1.16,
18444 and the tool is hence redundant. It is recommended to update
18445 display managers invoking this tool to simply invoke X
18446 directly from now on, again.
18447
18448 * Support for the new ALLOW_INTERACTIVE_AUTHORIZATION D-Bus
18449 message flag has been added for all of systemd's polkit
18450 authenticated method calls has been added. In particular this
18451 now allows optional interactive authorization via polkit for
18452 many of PID1's privileged operations such as unit file
18453 enabling and disabling.
18454
18455 * "udevadm hwdb --update" learnt a new switch "--usr" for
18456 placing the rebuilt hardware database in /usr instead of
18457 /etc. When used only hardware database entries stored in
18458 /usr will be used, and any user database entries in /etc are
18459 ignored. This functionality is useful for vendors to ship a
18460 pre-built database on systems where local configuration is
18461 unnecessary or unlikely.
18462
18463 * Calendar time specifications in .timer units now also
18464 understand the strings "semi-annually", "quarterly" and
18465 "minutely" as shortcuts (in addition to the preexisting
18466 "annually", "hourly", …).
18467
18468 * systemd-tmpfiles will now correctly create files in /dev
18469 at boot which are marked for creation only at boot. It is
18470 recommended to always create static device nodes with 'c!'
18471 and 'b!', so that they are created only at boot and not
18472 overwritten at runtime.
18473
18474 * When the watchdog logic is used for a service (WatchdogSec=)
18475 and the watchdog timeout is hit the service will now be
18476 terminated with SIGABRT (instead of just SIGTERM), in order
18477 to make sure a proper coredump and backtrace is
18478 generated. This ensures that hanging services will result in
18479 similar coredump/backtrace behaviour as services that hit a
18480 segmentation fault.
18481
18482 Contributions from: Andreas Henriksson, Andrei Borzenkov,
18483 Angus Gibson, Ansgar Burchardt, Ben Wolsieffer, Brandon L.
18484 Black, Christian Hesse, Cristian Rodríguez, Daniel Buch,
18485 Daniele Medri, Daniel Mack, Dan Williams, Dave Reisner, David
18486 Herrmann, David Sommerseth, David Strauss, Emil Renner
18487 Berthing, Eric Cook, Evangelos Foutras, Filipe Brandenburger,
18488 Gustavo Sverzut Barbieri, Hans de Goede, Harald Hoyer, Hristo
18489 Venev, Hugo Grostabussiat, Ivan Shapovalov, Jan Janssen, Jan
18490 Synacek, Jonathan Liu, Juho Son, Karel Zak, Kay Sievers, Klaus
18491 Purer, Koen Kooi, Lennart Poettering, Lukas Nykryn, Lukasz
18492 Skalski, Łukasz Stelmach, Mantas Mikulėnas, Marcel Holtmann,
18493 Marius Tessmann, Marko Myllynen, Martin Pitt, Michael Biebl,
18494 Michael Marineau, Michael Olbrich, Michael Scherer, Michal
18495 Schmidt, Michal Sekletar, Miroslav Lichvar, Patrik Flykt,
18496 Philippe De Swert, Piotr Drąg, Rahul Sundaram, Richard
18497 Weinberger, Robert Milasan, Ronny Chevalier, Ruben Kerkhof,
18498 Santiago Vila, Sergey Ptashnick, Simon McVittie, Sjoerd
18499 Simons, Stefan Brüns, Steven Allen, Steven Noonan, Susant
18500 Sahani, Sylvain Plantefève, Thomas Hindoe Paaboel Andersen,
18501 Timofey Titovets, Tobias Hunger, Tom Gundersen, Torstein
18502 Husebø, Umut Tezduyar Lindskog, WaLyong Cho, Zbigniew
18503 Jędrzejewski-Szmek
18504
18505 — Berlin, 2014-10-28
18506
18507 CHANGES WITH 216:
18508
18509 * timedated no longer reads NTP implementation unit names from
18510 /usr/lib/systemd/ntp-units.d/*.list. Alternative NTP
18511 implementations should add a
18512
18513 Conflicts=systemd-timesyncd.service
18514
18515 to their unit files to take over and replace systemd's NTP
18516 default functionality.
18517
18518 * systemd-sysusers gained a new line type "r" for configuring
18519 which UID/GID ranges to allocate system users/groups
18520 from. Lines of type "u" may now add an additional column
18521 that specifies the home directory for the system user to be
18522 created. Also, systemd-sysusers may now optionally read user
18523 information from STDIN instead of a file. This is useful for
18524 invoking it from RPM preinst scriptlets that need to create
18525 users before the first RPM file is installed since these
18526 files might need to be owned by them. A new
18527 %sysusers_create_inline RPM macro has been introduced to do
18528 just that. systemd-sysusers now updates the shadow files as
18529 well as the user/group databases, which should enhance
18530 compatibility with certain tools like grpck.
18531
18532 * A number of bus APIs of PID 1 now optionally consult polkit to
18533 permit access for otherwise unprivileged clients under certain
18534 conditions. Note that this currently doesn't support
18535 interactive authentication yet, but this is expected to be
18536 added eventually, too.
18537
18538 * /etc/machine-info now has new fields for configuring the
18539 deployment environment of the machine, as well as the
18540 location of the machine. hostnamectl has been updated with
18541 new command to update these fields.
18542
18543 * systemd-timesyncd has been updated to automatically acquire
18544 NTP server information from systemd-networkd, which might
18545 have been discovered via DHCP.
18546
18547 * systemd-resolved now includes a caching DNS stub resolver
18548 and a complete LLMNR name resolution implementation. A new
18549 NSS module "nss-resolve" has been added which can be used
18550 instead of glibc's own "nss-dns" to resolve hostnames via
18551 systemd-resolved. Hostnames, addresses and arbitrary RRs may
18552 be resolved via systemd-resolved D-Bus APIs. In contrast to
18553 the glibc internal resolver systemd-resolved is aware of
18554 multi-homed system, and keeps DNS server and caches separate
18555 and per-interface. Queries are sent simultaneously on all
18556 interfaces that have DNS servers configured, in order to
18557 properly handle VPNs and local LANs which might resolve
18558 separate sets of domain names. systemd-resolved may acquire
18559 DNS server information from systemd-networkd automatically,
18560 which in turn might have discovered them via DHCP. A tool
18561 "systemd-resolve-host" has been added that may be used to
18562 query the DNS logic in resolved. systemd-resolved implements
18563 IDNA and automatically uses IDNA or UTF-8 encoding depending
18564 on whether classic DNS or LLMNR is used as transport. In the
18565 next releases we intend to add a DNSSEC and mDNS/DNS-SD
18566 implementation to systemd-resolved.
18567
18568 * A new NSS module nss-mymachines has been added, that
18569 automatically resolves the names of all local registered
18570 containers to their respective IP addresses.
18571
18572 * A new client tool "networkctl" for systemd-networkd has been
18573 added. It currently is entirely passive and will query
18574 networking configuration from udev, rtnetlink and networkd,
18575 and present it to the user in a very friendly
18576 way. Eventually, we hope to extend it to become a full
18577 control utility for networkd.
18578
18579 * .socket units gained a new DeferAcceptSec= setting that
18580 controls the kernels' TCP_DEFER_ACCEPT sockopt for
18581 TCP. Similarly, support for controlling TCP keep-alive
18582 settings has been added (KeepAliveTimeSec=,
18583 KeepAliveIntervalSec=, KeepAliveProbes=). Also, support for
18584 turning off Nagle's algorithm on TCP has been added
18585 (NoDelay=).
18586
18587 * logind learned a new session type "web", for use in projects
18588 like Cockpit which register web clients as PAM sessions.
18589
18590 * timer units with at least one OnCalendar= setting will now
18591 be started only after time-sync.target has been
18592 reached. This way they will not elapse before the system
18593 clock has been corrected by a local NTP client or
18594 similar. This is particular useful on RTC-less embedded
18595 machines, that come up with an invalid system clock.
18596
18597 * systemd-nspawn's --network-veth= switch should now result in
18598 stable MAC addresses for both the outer and the inner side
18599 of the link.
18600
18601 * systemd-nspawn gained a new --volatile= switch for running
18602 container instances with /etc or /var unpopulated.
18603
18604 * The kdbus client code has been updated to use the new Linux
18605 3.17 memfd subsystem instead of the old kdbus-specific one.
18606
18607 * systemd-networkd's DHCP client and server now support
18608 FORCERENEW. There are also new configuration options to
18609 configure the vendor client identifier and broadcast mode
18610 for DHCP.
18611
18612 * systemd will no longer inform the kernel about the current
18613 timezone, as this is necessarily incorrect and racy as the
18614 kernel has no understanding of DST and similar
18615 concepts. This hence means FAT timestamps will be always
18616 considered UTC, similar to what Android is already
18617 doing. Also, when the RTC is configured to the local time
18618 (rather than UTC) systemd will never synchronize back to it,
18619 as this might confuse Windows at a later boot.
18620
18621 * systemd-analyze gained a new command "verify" for offline
18622 validation of unit files.
18623
18624 * systemd-networkd gained support for a couple of additional
18625 settings for bonding networking setups. Also, the metric for
18626 statically configured routes may now be configured. For
18627 network interfaces where this is appropriate the peer IP
18628 address may now be configured.
18629
18630 * systemd-networkd's DHCP client will no longer request
18631 broadcasting by default, as this tripped up some networks.
18632 For hardware where broadcast is required the feature should
18633 be switched back on using RequestBroadcast=yes.
18634
18635 * systemd-networkd will now set up IPv4LL addresses (when
18636 enabled) even if DHCP is configured successfully.
18637
18638 * udev will now default to respect network device names given
18639 by the kernel when the kernel indicates that these are
18640 predictable. This behavior can be tweaked by changing
18641 NamePolicy= in the relevant .link file.
18642
18643 * A new library systemd-terminal has been added that
18644 implements full TTY stream parsing and rendering. This
18645 library is supposed to be used later on for implementing a
18646 full userspace VT subsystem, replacing the current kernel
18647 implementation.
18648
18649 * A new tool systemd-journal-upload has been added to push
18650 journal data to a remote system running
18651 systemd-journal-remote.
18652
18653 * journald will no longer forward all local data to another
18654 running syslog daemon. This change has been made because
18655 rsyslog (which appears to be the most commonly used syslog
18656 implementation these days) no longer makes use of this, and
18657 instead pulls the data out of the journal on its own. Since
18658 forwarding the messages to a non-existent syslog server is
18659 more expensive than we assumed we have now turned this
18660 off. If you run a syslog server that is not a recent rsyslog
18661 version, you have to turn this option on again
18662 (ForwardToSyslog= in journald.conf).
18663
18664 * journald now optionally supports the LZ4 compressor for
18665 larger journal fields. This compressor should perform much
18666 better than XZ which was the previous default.
18667
18668 * machinectl now shows the IP addresses of local containers,
18669 if it knows them, plus the interface name of the container.
18670
18671 * A new tool "systemd-escape" has been added that makes it
18672 easy to escape strings to build unit names and similar.
18673
18674 * sd_notify() messages may now include a new ERRNO= field
18675 which is parsed and collected by systemd and shown among the
18676 "systemctl status" output for a service.
18677
18678 * A new component "systemd-firstboot" has been added that
18679 queries the most basic systemd information (timezone,
18680 hostname, root password) interactively on first
18681 boot. Alternatively it may also be used to provision these
18682 things offline on OS images installed into directories.
18683
18684 * The default sysctl.d/ snippets will now set
18685
18686 net.ipv4.conf.default.promote_secondaries=1
18687
18688 This has the benefit of no flushing secondary IP addresses
18689 when primary addresses are removed.
18690
18691 Contributions from: Ansgar Burchardt, Bastien Nocera, Colin
18692 Walters, Dan Dedrick, Daniel Buch, Daniel Korostil, Daniel
18693 Mack, Dan Williams, Dave Reisner, David Herrmann, Denis
18694 Kenzior, Eelco Dolstra, Eric Cook, Hannes Reinecke, Harald
18695 Hoyer, Hong Shick Pak, Hui Wang, Jean-André Santoni, Jóhann
18696 B. Guðmundsson, Jon Severinsson, Karel Zak, Kay Sievers, Kevin
18697 Wells, Lennart Poettering, Lukas Nykryn, Mantas Mikulėnas,
18698 Marc-Antoine Perennou, Martin Pitt, Michael Biebl, Michael
18699 Marineau, Michael Olbrich, Michal Schmidt, Michal Sekletar,
18700 Miguel Angel Ajo, Mike Gilbert, Olivier Brunel, Robert
18701 Schiele, Ronny Chevalier, Simon McVittie, Sjoerd Simons, Stef
18702 Walter, Steven Noonan, Susant Sahani, Tanu Kaskinen, Thomas
18703 Blume, Thomas Hindoe Paaboel Andersen, Timofey Titovets,
18704 Tobias Geerinckx-Rice, Tomasz Torcz, Tom Gundersen, Umut
18705 Tezduyar Lindskog, Zbigniew Jędrzejewski-Szmek
18706
18707 — Berlin, 2014-08-19
18708
18709 CHANGES WITH 215:
18710
18711 * A new tool systemd-sysusers has been added. This tool
18712 creates system users and groups in /etc/passwd and
18713 /etc/group, based on static declarative system user/group
18714 definitions in /usr/lib/sysusers.d/. This is useful to
18715 enable factory resets and volatile systems that boot up with
18716 an empty /etc directory, and thus need system users and
18717 groups created during early boot. systemd now also ships
18718 with two default sysusers.d/ files for the most basic
18719 users and groups systemd and the core operating system
18720 require.
18721
18722 * A new tmpfiles snippet has been added that rebuilds the
18723 essential files in /etc on boot, should they be missing.
18724
18725 * A directive for ensuring automatic clean-up of
18726 /var/cache/man/ has been removed from the default
18727 configuration. This line should now be shipped by the man
18728 implementation. The necessary change has been made to the
18729 man-db implementation. Note that you need to update your man
18730 implementation to one that ships this line, otherwise no
18731 automatic clean-up of /var/cache/man will take place.
18732
18733 * A new condition ConditionNeedsUpdate= has been added that
18734 may conditionalize services to only run when /etc or /var
18735 are "older" than the vendor operating system resources in
18736 /usr. This is useful for reconstructing or updating /etc
18737 after an offline update of /usr or a factory reset, on the
18738 next reboot. Services that want to run once after such an
18739 update or reset should use this condition and order
18740 themselves before the new systemd-update-done.service, which
18741 will mark the two directories as fully updated. A number of
18742 service files have been added making use of this, to rebuild
18743 the udev hardware database, the journald message catalog and
18744 dynamic loader cache (ldconfig). The systemd-sysusers tool
18745 described above also makes use of this now. With this in
18746 place it is now possible to start up a minimal operating
18747 system with /etc empty cleanly. For more information on the
18748 concepts involved see this recent blog story:
18749
18750 https://0pointer.de/blog/projects/stateless.html
18751
18752 * A new system group "input" has been introduced, and all
18753 input device nodes get this group assigned. This is useful
18754 for system-level software to get access to input devices. It
18755 complements what is already done for "audio" and "video".
18756
18757 * systemd-networkd learnt minimal DHCPv4 server support in
18758 addition to the existing DHCPv4 client support. It also
18759 learnt DHCPv6 client and IPv6 Router Solicitation client
18760 support. The DHCPv4 client gained support for static routes
18761 passed in from the server. Note that the [DHCPv4] section
18762 known in older systemd-networkd versions has been renamed to
18763 [DHCP] and is now also used by the DHCPv6 client. Existing
18764 .network files using settings of this section should be
18765 updated, though compatibility is maintained. Optionally, the
18766 client hostname may now be sent to the DHCP server.
18767
18768 * networkd gained support for vxlan virtual networks as well
18769 as tun/tap and dummy devices.
18770
18771 * networkd gained support for automatic allocation of address
18772 ranges for interfaces from a system-wide pool of
18773 addresses. This is useful for dynamically managing a large
18774 number of interfaces with a single network configuration
18775 file. In particular this is useful to easily assign
18776 appropriate IP addresses to the veth links of a large number
18777 of nspawn instances.
18778
18779 * RPM macros for processing sysusers, sysctl and binfmt
18780 drop-in snippets at package installation time have been
18781 added.
18782
18783 * The /etc/os-release file should now be placed in
18784 /usr/lib/os-release. The old location is automatically
18785 created as symlink. /usr/lib is the more appropriate
18786 location of this file, since it shall actually describe the
18787 vendor operating system shipped in /usr, and not the
18788 configuration stored in /etc.
18789
18790 * .mount units gained a new boolean SloppyOptions= setting
18791 that maps to mount(8)'s -s option which enables permissive
18792 parsing of unknown mount options.
18793
18794 * tmpfiles learnt a new "L+" directive which creates a symlink
18795 but (unlike "L") deletes a pre-existing file first, should
18796 it already exist and not already be the correct
18797 symlink. Similarly, "b+", "c+" and "p+" directives have been
18798 added as well, which create block and character devices, as
18799 well as fifos in the filesystem, possibly removing any
18800 pre-existing files of different types.
18801
18802 * For tmpfiles' "L", "L+", "C" and "C+" directives the final
18803 'argument' field (which so far specified the source to
18804 symlink/copy the files from) is now optional. If omitted the
18805 same file os copied from /usr/share/factory/ suffixed by the
18806 full destination path. This is useful for populating /etc
18807 with essential files, by copying them from vendor defaults
18808 shipped in /usr/share/factory/etc.
18809
18810 * A new command "systemctl preset-all" has been added that
18811 applies the service preset settings to all installed unit
18812 files. A new switch --preset-mode= has been added that
18813 controls whether only enable or only disable operations
18814 shall be executed.
18815
18816 * A new command "systemctl is-system-running" has been added
18817 that allows checking the overall state of the system, for
18818 example whether it is fully up and running.
18819
18820 * When the system boots up with an empty /etc, the equivalent
18821 to "systemctl preset-all" is executed during early boot, to
18822 make sure all default services are enabled after a factory
18823 reset.
18824
18825 * systemd now contains a minimal preset file that enables the
18826 most basic services systemd ships by default.
18827
18828 * Unit files' [Install] section gained a new DefaultInstance=
18829 field for defining the default instance to create if a
18830 template unit is enabled with no instance specified.
18831
18832 * A new passive target cryptsetup-pre.target has been added
18833 that may be used by services that need to make they run and
18834 finish before the first LUKS cryptographic device is set up.
18835
18836 * The /dev/loop-control and /dev/btrfs-control device nodes
18837 are now owned by the "disk" group by default, opening up
18838 access to this group.
18839
18840 * systemd-coredump will now automatically generate a
18841 stack trace of all core dumps taking place on the system,
18842 based on elfutils' libdw library. This stack trace is logged
18843 to the journal.
18844
18845 * systemd-coredump may now optionally store coredumps directly
18846 on disk (in /var/lib/systemd/coredump, possibly compressed),
18847 instead of storing them unconditionally in the journal. This
18848 mode is the new default. A new configuration file
18849 /etc/systemd/coredump.conf has been added to configure this
18850 and other parameters of systemd-coredump.
18851
18852 * coredumpctl gained a new "info" verb to show details about a
18853 specific coredump. A new switch "-1" has also been added
18854 that makes sure to only show information about the most
18855 recent entry instead of all entries. Also, as the tool is
18856 generally useful now the "systemd-" prefix of the binary
18857 name has been removed. Distributions that want to maintain
18858 compatibility with the old name should add a symlink from
18859 the old name to the new name.
18860
18861 * journald's SplitMode= now defaults to "uid". This makes sure
18862 that unprivileged users can access their own coredumps with
18863 coredumpctl without restrictions.
18864
18865 * New kernel command line options "systemd.wants=" (for
18866 pulling an additional unit during boot), "systemd.mask="
18867 (for masking a specific unit for the boot), and
18868 "systemd.debug-shell" (for enabling the debug shell on tty9)
18869 have been added. This is implemented in the new generator
18870 "systemd-debug-generator".
18871
18872 * systemd-nspawn will now by default filter a couple of
18873 syscalls for containers, among them those required for
18874 kernel module loading, direct x86 IO port access, swap
18875 management, and kexec. Most importantly though
18876 open_by_handle_at() is now prohibited for containers,
18877 closing a hole similar to a recently discussed vulnerability
18878 in docker regarding access to files on file hierarchies the
18879 container should normally not have access to. Note that, for
18880 nspawn, we generally make no security claims anyway (and
18881 this is explicitly documented in the man page), so this is
18882 just a fix for one of the most obvious problems.
18883
18884 * A new man page file-hierarchy(7) has been added that
18885 contains a minimized, modernized version of the file system
18886 layout systemd expects, similar in style to the FHS
18887 specification or hier(5). A new tool systemd-path(1) has
18888 been added to query many of these paths for the local
18889 machine and user.
18890
18891 * Automatic time-based clean-up of $XDG_RUNTIME_DIR is no
18892 longer done. Since the directory now has a per-user size
18893 limit, and is cleaned on logout this appears unnecessary,
18894 in particular since this now brings the lifecycle of this
18895 directory closer in line with how IPC objects are handled.
18896
18897 * systemd.pc now exports a number of additional directories,
18898 including $libdir (which is useful to identify the library
18899 path for the primary architecture of the system), and a
18900 couple of drop-in directories.
18901
18902 * udev's predictable network interface names now use the dev_port
18903 sysfs attribute, introduced in linux 3.15 instead of dev_id to
18904 distinguish between ports of the same PCI function. dev_id should
18905 only be used for ports using the same HW address, hence the need
18906 for dev_port.
18907
18908 * machined has been updated to export the OS version of a
18909 container (read from /etc/os-release and
18910 /usr/lib/os-release) on the bus. This is now shown in
18911 "machinectl status" for a machine.
18912
18913 * A new service setting RestartForceExitStatus= has been
18914 added. If configured to a set of exit signals or process
18915 return values, the service will be restarted when the main
18916 daemon process exits with any of them, regardless of the
18917 Restart= setting.
18918
18919 * systemctl's -H switch for connecting to remote systemd
18920 machines has been extended so that it may be used to
18921 directly connect to a specific container on the
18922 host. "systemctl -H root@foobar:waldi" will now connect as
18923 user "root" to host "foobar", and then proceed directly to
18924 the container named "waldi". Note that currently you have to
18925 authenticate as user "root" for this to work, as entering
18926 containers is a privileged operation.
18927
18928 Contributions from: Andreas Henriksson, Benjamin Steinwender,
18929 Carl Schaefer, Christian Hesse, Colin Ian King, Cristian
18930 Rodríguez, Daniel Mack, Dave Reisner, David Herrmann, Eugene
18931 Yakubovich, Filipe Brandenburger, Frederic Crozat, Hristo
18932 Venev, Jan Engelhardt, Jonathan Boulle, Kay Sievers, Lennart
18933 Poettering, Luke Shumaker, Mantas Mikulėnas, Marc-Antoine
18934 Perennou, Marcel Holtmann, Michael Marineau, Michael Olbrich,
18935 Michał Bartoszkiewicz, Michal Sekletar, Patrik Flykt, Ronan Le
18936 Martret, Ronny Chevalier, Ruediger Oertel, Steven Noonan,
18937 Susant Sahani, Thadeu Lima de Souza Cascardo, Thomas Hindoe
18938 Paaboel Andersen, Tom Gundersen, Tom Hirst, Umut Tezduyar
18939 Lindskog, Uoti Urpala, Zbigniew Jędrzejewski-Szmek
18940
18941 — Berlin, 2014-07-03
18942
18943 CHANGES WITH 214:
18944
18945 * As an experimental feature, udev now tries to lock the
18946 disk device node (flock(LOCK_SH|LOCK_NB)) while it
18947 executes events for the disk or any of its partitions.
18948 Applications like partitioning programs can lock the
18949 disk device node (flock(LOCK_EX)) and claim temporary
18950 device ownership that way; udev will entirely skip all event
18951 handling for this disk and its partitions. If the disk
18952 was opened for writing, the close will trigger a partition
18953 table rescan in udev's "watch" facility, and if needed
18954 synthesize "change" events for the disk and all its partitions.
18955 This is now unconditionally enabled, and if it turns out to
18956 cause major problems, we might turn it on only for specific
18957 devices, or might need to disable it entirely. Device Mapper
18958 devices are excluded from this logic.
18959
18960 * We temporarily dropped the "-l" switch for fsck invocations,
18961 since they collide with the flock() logic above. util-linux
18962 upstream has been changed already to avoid this conflict,
18963 and we will re-add "-l" as soon as util-linux with this
18964 change has been released.
18965
18966 * The dependency on libattr has been removed. Since a long
18967 time, the extended attribute calls have moved to glibc, and
18968 libattr is thus unnecessary.
18969
18970 * Virtualization detection works without privileges now. This
18971 means the systemd-detect-virt binary no longer requires
18972 CAP_SYS_PTRACE file capabilities, and our daemons can run
18973 with fewer privileges.
18974
18975 * systemd-networkd now runs under its own "systemd-network"
18976 user. It retains the CAP_NET_ADMIN, CAP_NET_BIND_SERVICE,
18977 CAP_NET_BROADCAST, CAP_NET_RAW capabilities though, but
18978 loses the ability to write to files owned by root this way.
18979
18980 * Similarly, systemd-resolved now runs under its own
18981 "systemd-resolve" user with no capabilities remaining.
18982
18983 * Similarly, systemd-bus-proxyd now runs under its own
18984 "systemd-bus-proxy" user with only CAP_IPC_OWNER remaining.
18985
18986 * systemd-networkd gained support for setting up "veth"
18987 virtual Ethernet devices for container connectivity, as well
18988 as GRE and VTI tunnels.
18989
18990 * systemd-networkd will no longer automatically attempt to
18991 manually load kernel modules necessary for certain tunnel
18992 transports. Instead, it is assumed the kernel loads them
18993 automatically when required. This only works correctly on
18994 very new kernels. On older kernels, please consider adding
18995 the kernel modules to /etc/modules-load.d/ as a work-around.
18996
18997 * The resolv.conf file systemd-resolved generates has been
18998 moved to /run/systemd/resolve/. If you have a symlink from
18999 /etc/resolv.conf, it might be necessary to correct it.
19000
19001 * Two new service settings, ProtectHome= and ProtectSystem=,
19002 have been added. When enabled, they will make the user data
19003 (such as /home) inaccessible or read-only and the system
19004 (such as /usr) read-only, for specific services. This allows
19005 very lightweight per-service sandboxing to avoid
19006 modifications of user data or system files from
19007 services. These two new switches have been enabled for all
19008 of systemd's long-running services, where appropriate.
19009
19010 * Socket units gained new SocketUser= and SocketGroup=
19011 settings to set the owner user and group of AF_UNIX sockets
19012 and FIFOs in the file system.
19013
19014 * Socket units gained a new RemoveOnStop= setting. If enabled,
19015 all FIFOS and sockets in the file system will be removed
19016 when the specific socket unit is stopped.
19017
19018 * Socket units gained a new Symlinks= setting. It takes a list
19019 of symlinks to create to file system sockets or FIFOs
19020 created by the specific Unix sockets. This is useful to
19021 manage symlinks to socket nodes with the same lifecycle as
19022 the socket itself.
19023
19024 * The /dev/log socket and /dev/initctl FIFO have been moved to
19025 /run, and have been replaced by symlinks. This allows
19026 connecting to these facilities even if PrivateDevices=yes is
19027 used for a service (which makes /dev/log itself unavailable,
19028 but /run is left). This also has the benefit of ensuring
19029 that /dev only contains device nodes, directories and
19030 symlinks, and nothing else.
19031
19032 * sd-daemon gained two new calls sd_pid_notify() and
19033 sd_pid_notifyf(). They are similar to sd_notify() and
19034 sd_notifyf(), but allow overriding of the source PID of
19035 notification messages if permissions permit this. This is
19036 useful to send notify messages on behalf of a different
19037 process (for example, the parent process). The
19038 systemd-notify tool has been updated to make use of this
19039 when sending messages (so that notification messages now
19040 originate from the shell script invoking systemd-notify and
19041 not the systemd-notify process itself. This should minimize
19042 a race where systemd fails to associate notification
19043 messages to services when the originating process already
19044 vanished.
19045
19046 * A new "on-abnormal" setting for Restart= has been added. If
19047 set, it will result in automatic restarts on all "abnormal"
19048 reasons for a process to exit, which includes unclean
19049 signals, core dumps, timeouts and watchdog timeouts, but
19050 does not include clean and unclean exit codes or clean
19051 signals. Restart=on-abnormal is an alternative for
19052 Restart=on-failure for services that shall be able to
19053 terminate and avoid restarts on certain errors, by
19054 indicating so with an unclean exit code. Restart=on-failure
19055 or Restart=on-abnormal is now the recommended setting for
19056 all long-running services.
19057
19058 * If the InaccessibleDirectories= service setting points to a
19059 mount point (or if there are any submounts contained within
19060 it), it is now attempted to completely unmount it, to make
19061 the file systems truly unavailable for the respective
19062 service.
19063
19064 * The ReadOnlyDirectories= service setting and
19065 systemd-nspawn's --read-only parameter are now recursively
19066 applied to all submounts, too.
19067
19068 * Mount units may now be created transiently via the bus APIs.
19069
19070 * The support for SysV and LSB init scripts has been removed
19071 from the systemd daemon itself. Instead, it is now
19072 implemented as a generator that creates native systemd units
19073 from these scripts when needed. This enables us to remove a
19074 substantial amount of legacy code from PID 1, following the
19075 fact that many distributions only ship a very small number
19076 of LSB/SysV init scripts nowadays.
19077
19078 * Privileged Xen (dom0) domains are not considered
19079 virtualization anymore by the virtualization detection
19080 logic. After all, they generally have unrestricted access to
19081 the hardware and usually are used to manage the unprivileged
19082 (domU) domains.
19083
19084 * systemd-tmpfiles gained a new "C" line type, for copying
19085 files or entire directories.
19086
19087 * systemd-tmpfiles "m" lines are now fully equivalent to "z"
19088 lines. So far, they have been non-globbing versions of the
19089 latter, and have thus been redundant. In future, it is
19090 recommended to only use "z". "m" has hence been removed
19091 from the documentation, even though it stays supported.
19092
19093 * A tmpfiles snippet to recreate the most basic structure in
19094 /var has been added. This is enough to create the /var/run →
19095 /run symlink and create a couple of structural
19096 directories. This allows systems to boot up with an empty or
19097 volatile /var. Of course, while with this change, the core OS
19098 now is capable with dealing with a volatile /var, not all
19099 user services are ready for it. However, we hope that sooner
19100 or later, many service daemons will be changed upstream so
19101 that they are able to automatically create their necessary
19102 directories in /var at boot, should they be missing. This is
19103 the first step to allow state-less systems that only require
19104 the vendor image for /usr to boot.
19105
19106 * systemd-nspawn has gained a new --tmpfs= switch to mount an
19107 empty tmpfs instance to a specific directory. This is
19108 particularly useful for making use of the automatic
19109 reconstruction of /var (see above), by passing --tmpfs=/var.
19110
19111 * Access modes specified in tmpfiles snippets may now be
19112 prefixed with "~", which indicates that they shall be masked
19113 by whether the existing file or directory is currently
19114 writable, readable or executable at all. Also, if specified,
19115 the sgid/suid/sticky bits will be masked for all
19116 non-directories.
19117
19118 * A new passive target unit "network-pre.target" has been
19119 added which is useful for services that shall run before any
19120 network is configured, for example firewall scripts.
19121
19122 * The "floppy" group that previously owned the /dev/fd*
19123 devices is no longer used. The "disk" group is now used
19124 instead. Distributions should probably deprecate usage of
19125 this group.
19126
19127 Contributions from: Camilo Aguilar, Christian Hesse, Colin Ian
19128 King, Cristian Rodríguez, Daniel Buch, Dave Reisner, David
19129 Strauss, Denis Tikhomirov, John, Jonathan Liu, Kay Sievers,
19130 Lennart Poettering, Mantas Mikulėnas, Mark Eichin, Ronny
19131 Chevalier, Susant Sahani, Thomas Blume, Thomas Hindoe Paaboel
19132 Andersen, Tom Gundersen, Umut Tezduyar Lindskog, Zbigniew
19133 Jędrzejewski-Szmek
19134
19135 — Berlin, 2014-06-11
19136
19137 CHANGES WITH 213:
19138
19139 * A new "systemd-timesyncd" daemon has been added for
19140 synchronizing the system clock across the network. It
19141 implements an SNTP client. In contrast to NTP
19142 implementations such as chrony or the NTP reference server,
19143 this only implements a client side, and does not bother with
19144 the full NTP complexity, focusing only on querying time from
19145 one remote server and synchronizing the local clock to
19146 it. Unless you intend to serve NTP to networked clients or
19147 want to connect to local hardware clocks, this simple NTP
19148 client should be more than appropriate for most
19149 installations. The daemon runs with minimal privileges, and
19150 has been hooked up with networkd to only operate when
19151 network connectivity is available. The daemon saves the
19152 current clock to disk every time a new NTP sync has been
19153 acquired, and uses this to possibly correct the system clock
19154 early at bootup, in order to accommodate for systems that
19155 lack an RTC such as the Raspberry Pi and embedded devices,
19156 and to make sure that time monotonically progresses on these
19157 systems, even if it is not always correct. To make use of
19158 this daemon, a new system user and group "systemd-timesync"
19159 needs to be created on installation of systemd.
19160
19161 * The queue "seqnum" interface of libudev has been disabled, as
19162 it was generally incompatible with device namespacing as
19163 sequence numbers of devices go "missing" if the devices are
19164 part of a different namespace.
19165
19166 * "systemctl list-timers" and "systemctl list-sockets" gained
19167 a --recursive switch for showing units of these types also
19168 for all local containers, similar in style to the already
19169 supported --recursive switch for "systemctl list-units".
19170
19171 * A new RebootArgument= setting has been added for service
19172 units, which may be used to specify a kernel reboot argument
19173 to use when triggering reboots with StartLimitAction=.
19174
19175 * A new FailureAction= setting has been added for service
19176 units which may be used to specify an operation to trigger
19177 when a service fails. This works similarly to
19178 StartLimitAction=, but unlike it, controls what is done
19179 immediately rather than only after several attempts to
19180 restart the service in question.
19181
19182 * hostnamed got updated to also expose the kernel name,
19183 release, and version on the bus. This is useful for
19184 executing commands like hostnamectl with the -H switch.
19185 systemd-analyze makes use of this to properly display
19186 details when running non-locally.
19187
19188 * The bootchart tool can now show cgroup information in the
19189 graphs it generates.
19190
19191 * The CFS CPU quota cgroup attribute is now exposed for
19192 services. The new CPUQuota= switch has been added for this
19193 which takes a percentage value. Setting this will have the
19194 result that a service may never get more CPU time than the
19195 specified percentage, even if the machine is otherwise idle.
19196
19197 * systemd-networkd learned IPIP and SIT tunnel support.
19198
19199 * LSB init scripts exposing a dependency on $network will now
19200 get a dependency on network-online.target rather than simply
19201 network.target. This should bring LSB handling closer to
19202 what it was on SysV systems.
19203
19204 * A new fsck.repair= kernel option has been added to control
19205 how fsck shall deal with unclean file systems at boot.
19206
19207 * The (.ini) configuration file parser will now silently ignore
19208 sections whose names begin with "X-". This may be used to maintain
19209 application-specific extension sections in unit files.
19210
19211 * machined gained a new API to query the IP addresses of
19212 registered containers. "machinectl status" has been updated
19213 to show these addresses in its output.
19214
19215 * A new call sd_uid_get_display() has been added to the
19216 sd-login APIs for querying the "primary" session of a
19217 user. The "primary" session of the user is elected from the
19218 user's sessions and generally a graphical session is
19219 preferred over a text one.
19220
19221 * A minimal systemd-resolved daemon has been added. It
19222 currently simply acts as a companion to systemd-networkd and
19223 manages resolv.conf based on per-interface DNS
19224 configuration, possibly supplied via DHCP. In the long run
19225 we hope to extend this into a local DNSSEC enabled DNS and
19226 mDNS cache.
19227
19228 * The systemd-networkd-wait-online tool is now enabled by
19229 default. It will delay network-online.target until a network
19230 connection has been configured. The tool primarily integrates
19231 with networkd, but will also make a best effort to make sense
19232 of network configuration performed in some other way.
19233
19234 * Two new service options StartupCPUShares= and
19235 StartupBlockIOWeight= have been added that work similarly to
19236 CPUShares= and BlockIOWeight= however only apply during
19237 system startup. This is useful to prioritize certain services
19238 differently during bootup than during normal runtime.
19239
19240 * hostnamed has been changed to prefer the statically
19241 configured hostname in /etc/hostname (unless set to
19242 'localhost' or empty) over any dynamic one supplied by
19243 dhcp. With this change, the rules for picking the hostname
19244 match more closely the rules of other configuration settings
19245 where the local administrator's configuration in /etc always
19246 overrides any other settings.
19247
19248 Contributions from: Ali H. Caliskan, Alison Chaiken, Bas van
19249 den Berg, Brandon Philips, Cristian Rodríguez, Daniel Buch,
19250 Dan Kilman, Dave Reisner, David Härdeman, David Herrmann,
19251 David Strauss, Dimitris Spingos, Djalal Harouni, Eelco
19252 Dolstra, Evan Nemerson, Florian Albrechtskirchinger, Greg
19253 Kroah-Hartman, Harald Hoyer, Holger Hans Peter Freyther, Jan
19254 Engelhardt, Jani Nikula, Jason St. John, Jeffrey Clark,
19255 Jonathan Boulle, Kay Sievers, Lennart Poettering, Lukas
19256 Nykryn, Lukasz Skalski, Łukasz Stelmach, Mantas Mikulėnas,
19257 Marcel Holtmann, Martin Pitt, Matthew Monaco, Michael
19258 Marineau, Michael Olbrich, Michal Sekletar, Mike Gilbert, Nis
19259 Martensen, Patrik Flykt, Philip Lorenz, poma, Ray Strode,
19260 Reyad Attiyat, Robert Milasan, Scott Thrasher, Stef Walter,
19261 Steven Siloti, Susant Sahani, Tanu Kaskinen, Thomas Bächler,
19262 Thomas Hindoe Paaboel Andersen, Tom Gundersen, Umut Tezduyar
19263 Lindskog, WaLyong Cho, Will Woods, Zbigniew
19264 Jędrzejewski-Szmek
19265
19266 — Beijing, 2014-05-28
19267
19268 CHANGES WITH 212:
19269
19270 * When restoring the screen brightness at boot, stay away from
19271 the darkest setting or from the lowest 5% of the available
19272 range, depending on which is the larger value of both. This
19273 should effectively protect the user from rebooting into a
19274 black screen, should the brightness have been set to minimum
19275 by accident.
19276
19277 * sd-login gained a new sd_machine_get_class() call to
19278 determine the class ("vm" or "container") of a machine
19279 registered with machined.
19280
19281 * sd-login gained new calls
19282 sd_peer_get_{session,owner_uid,unit,user_unit,slice,machine_name}(),
19283 to query the identity of the peer of a local AF_UNIX
19284 connection. They operate similarly to their sd_pid_get_xyz()
19285 counterparts.
19286
19287 * PID 1 will now maintain a system-wide system state engine
19288 with the states "starting", "running", "degraded",
19289 "maintenance", "stopping". These states are bound to system
19290 startup, normal runtime, runtime with at least one failed
19291 service, rescue/emergency mode and system shutdown. This
19292 state is shown in the "systemctl status" output when no unit
19293 name is passed. It is useful to determine system state, in
19294 particularly when doing so for many systems or containers at
19295 once.
19296
19297 * A new command "list-machines" has been added to "systemctl"
19298 that lists all local OS containers and shows their system
19299 state (see above), if systemd runs inside of them.
19300
19301 * systemctl gained a new "-r" switch to recursively enumerate
19302 units on all local containers, when used with the
19303 "list-unit" command (which is the default one that is
19304 executed when no parameters are specified).
19305
19306 * The GPT automatic partition discovery logic will now honour
19307 two GPT partition flags: one may be set on a partition to
19308 cause it to be mounted read-only, and the other may be set
19309 on a partition to ignore it during automatic discovery.
19310
19311 * Two new GPT type UUIDs have been added for automatic root
19312 partition discovery, for 32-bit and 64-bit ARM. This is not
19313 particularly useful for discovering the root directory on
19314 these architectures during bare-metal boots (since UEFI is
19315 not common there), but still very useful to allow booting of
19316 ARM disk images in nspawn with the -i option.
19317
19318 * MAC addresses of interfaces created with nspawn's
19319 --network-interface= switch will now be generated from the
19320 machine name, and thus be stable between multiple invocations
19321 of the container.
19322
19323 * logind will now automatically remove all IPC objects owned
19324 by a user if she or he fully logs out. This makes sure that
19325 users who are logged out cannot continue to consume IPC
19326 resources. This covers SysV memory, semaphores and message
19327 queues as well as POSIX shared memory and message
19328 queues. Traditionally, SysV and POSIX IPC had no lifecycle
19329 limits. With this functionality, that is corrected. This may
19330 be turned off by using the RemoveIPC= switch of logind.conf.
19331
19332 * The systemd-machine-id-setup and tmpfiles tools gained a
19333 --root= switch to operate on a specific root directory,
19334 instead of /.
19335
19336 * journald can now forward logged messages to the TTYs of all
19337 logged in users ("wall"). This is the default for all
19338 emergency messages now.
19339
19340 * A new tool systemd-journal-remote has been added to stream
19341 journal log messages across the network.
19342
19343 * /sys/fs/cgroup/ is now mounted read-only after all cgroup
19344 controller trees are mounted into it. Note that the
19345 directories mounted beneath it are not read-only. This is a
19346 security measure and is particularly useful because glibc
19347 actually includes a search logic to pick any tmpfs it can
19348 find to implement shm_open() if /dev/shm is not available
19349 (which it might very well be in namespaced setups).
19350
19351 * machinectl gained a new "poweroff" command to cleanly power
19352 down a local OS container.
19353
19354 * The PrivateDevices= unit file setting will now also drop the
19355 CAP_MKNOD capability from the capability bound set, and
19356 imply DevicePolicy=closed.
19357
19358 * PrivateDevices=, PrivateNetwork= and PrivateTmp= is now used
19359 comprehensively on all long-running systemd services where
19360 this is appropriate.
19361
19362 * systemd-udevd will now run in a disassociated mount
19363 namespace. To mount directories from udev rules, make sure to
19364 pull in mount units via SYSTEMD_WANTS properties.
19365
19366 * The kdbus support gained support for uploading policy into
19367 the kernel. sd-bus gained support for creating "monitoring"
19368 connections that can eavesdrop into all bus communication
19369 for debugging purposes.
19370
19371 * Timestamps may now be specified in seconds since the UNIX
19372 epoch Jan 1st, 1970 by specifying "@" followed by the value
19373 in seconds.
19374
19375 * Native tcpwrap support in systemd has been removed. tcpwrap
19376 is old code, not really maintained anymore and has serious
19377 shortcomings, and better options such as firewalls
19378 exist. For setups that require tcpwrap usage, please
19379 consider invoking your socket-activated service via tcpd,
19380 like on traditional inetd.
19381
19382 * A new system.conf configuration option
19383 DefaultTimerAccuracySec= has been added that controls the
19384 default AccuracySec= setting of .timer units.
19385
19386 * Timer units gained a new WakeSystem= switch. If enabled,
19387 timers configured this way will cause the system to resume
19388 from system suspend (if the system supports that, which most
19389 do these days).
19390
19391 * Timer units gained a new Persistent= switch. If enabled,
19392 timers configured this way will save to disk when they have
19393 been last triggered. This information is then used on next
19394 reboot to possible execute overdue timer events, that
19395 could not take place because the system was powered off.
19396 This enables simple anacron-like behaviour for timer units.
19397
19398 * systemctl's "list-timers" will now also list the time a
19399 timer unit was last triggered in addition to the next time
19400 it will be triggered.
19401
19402 * systemd-networkd will now assign predictable IPv4LL
19403 addresses to its local interfaces.
19404
19405 Contributions from: Brandon Philips, Daniel Buch, Daniel Mack,
19406 Dave Reisner, David Herrmann, Gerd Hoffmann, Greg
19407 Kroah-Hartman, Hendrik Brueckner, Jason St. John, Josh
19408 Triplett, Kay Sievers, Lennart Poettering, Marc-Antoine
19409 Perennou, Michael Marineau, Michael Olbrich, Miklos Vajna,
19410 Patrik Flykt, poma, Sebastian Thorarensen, Thomas Bächler,
19411 Thomas Hindoe Paaboel Andersen, Tomasz Torcz, Tom Gundersen,
19412 Umut Tezduyar Lindskog, Wieland Hoffmann, Zbigniew
19413 Jędrzejewski-Szmek
19414
19415 — Berlin, 2014-03-25
19416
19417 CHANGES WITH 211:
19418
19419 * A new unit file setting RestrictAddressFamilies= has been
19420 added to restrict which socket address families unit
19421 processes gain access to. This takes address family names
19422 like "AF_INET" or "AF_UNIX", and is useful to minimize the
19423 attack surface of services via exotic protocol stacks. This
19424 is built on seccomp system call filters.
19425
19426 * Two new unit file settings RuntimeDirectory= and
19427 RuntimeDirectoryMode= have been added that may be used to
19428 manage a per-daemon runtime directories below /run. This is
19429 an alternative for setting up directory permissions with
19430 tmpfiles snippets, and has the advantage that the runtime
19431 directory's lifetime is bound to the daemon runtime and that
19432 the daemon starts up with an empty directory each time. This
19433 is particularly useful when writing services that drop
19434 privileges using the User= or Group= setting.
19435
19436 * The DeviceAllow= unit setting now supports globbing for
19437 matching against device group names.
19438
19439 * The systemd configuration file system.conf gained new
19440 settings DefaultCPUAccounting=, DefaultBlockIOAccounting=,
19441 DefaultMemoryAccounting= to globally turn on/off accounting
19442 for specific resources (cgroups) for all units. These
19443 settings may still be overridden individually in each unit
19444 though.
19445
19446 * systemd-gpt-auto-generator is now able to discover /srv and
19447 root partitions in addition to /home and swap partitions. It
19448 also supports LUKS-encrypted partitions now. With this in
19449 place, automatic discovery of partitions to mount following
19450 the Discoverable Partitions Specification
19451 (https://systemd.io/DISCOVERABLE_PARTITIONS/)
19452 is now a lot more complete. This allows booting without
19453 /etc/fstab and without root= on the kernel command line on
19454 systems prepared appropriately.
19455
19456 * systemd-nspawn gained a new --image= switch which allows
19457 booting up disk images and Linux installations on any block
19458 device that follow the Discoverable Partitions Specification
19459 (see above). This means that installations made with
19460 appropriately updated installers may now be started and
19461 deployed using container managers, completely
19462 unmodified. (We hope that libvirt-lxc will add support for
19463 this feature soon, too.)
19464
19465 * systemd-nspawn gained a new --network-macvlan= setting to
19466 set up a private macvlan interface for the
19467 container. Similarly, systemd-networkd gained a new
19468 Kind=macvlan setting in .netdev files.
19469
19470 * systemd-networkd now supports configuring local addresses
19471 using IPv4LL.
19472
19473 * A new tool systemd-network-wait-online has been added to
19474 synchronously wait for network connectivity using
19475 systemd-networkd.
19476
19477 * The sd-bus.h bus API gained a new sd_bus_track object for
19478 tracking the lifecycle of bus peers. Note that sd-bus.h is
19479 still not a public API though (unless you specify
19480 --enable-kdbus on the configure command line, which however
19481 voids your warranty and you get no API stability guarantee).
19482
19483 * The $XDG_RUNTIME_DIR runtime directories for each user are
19484 now individual tmpfs instances, which has the benefit of
19485 introducing separate pools for each user, with individual
19486 size limits, and thus making sure that unprivileged clients
19487 can no longer negatively impact the system or other users by
19488 filling up their $XDG_RUNTIME_DIR. A new logind.conf setting
19489 RuntimeDirectorySize= has been introduced that allows
19490 controlling the default size limit for all users. It
19491 defaults to 10% of the available physical memory. This is no
19492 replacement for quotas on tmpfs though (which the kernel
19493 still does not support), as /dev/shm and /tmp are still
19494 shared resources used by both the system and unprivileged
19495 users.
19496
19497 * logind will now automatically turn off automatic suspending
19498 on laptop lid close when more than one display is
19499 connected. This was previously expected to be implemented
19500 individually in desktop environments (such as GNOME),
19501 however has been added to logind now, in order to fix a
19502 boot-time race where a desktop environment might not have
19503 been started yet and thus not been able to take an inhibitor
19504 lock at the time where logind already suspends the system
19505 due to a closed lid.
19506
19507 * logind will now wait at least 30s after each system
19508 suspend/resume cycle, and 3min after system boot before
19509 suspending the system due to a closed laptop lid. This
19510 should give USB docking stations and similar enough time to
19511 be probed and configured after system resume and boot in
19512 order to then act as suspend blocker.
19513
19514 * systemd-run gained a new --property= setting which allows
19515 initialization of resource control properties (and others)
19516 for the created scope or service unit. Example: "systemd-run
19517 --property=BlockIOWeight=10 updatedb" may be used to run
19518 updatedb at a low block IO scheduling weight.
19519
19520 * systemd-run's --uid=, --gid=, --setenv=, --setenv= switches
19521 now also work in --scope mode.
19522
19523 * When systemd is compiled with kdbus support, basic support
19524 for enforced policies is now in place. (Note that enabling
19525 kdbus still voids your warranty and no API compatibility
19526 promises are made.)
19527
19528 Contributions from: Andrey Borzenkov, Ansgar Burchardt, Armin
19529 K., Daniel Mack, Dave Reisner, David Herrmann, Djalal Harouni,
19530 Harald Hoyer, Henrik Grindal Bakken, Jasper St. Pierre, Kay
19531 Sievers, Kieran Clancy, Lennart Poettering, Lukas Nykryn,
19532 Mantas Mikulėnas, Marcel Holtmann, Mark Oteiza, Martin Pitt,
19533 Mike Gilbert, Peter Rajnoha, poma, Samuli Suominen, Stef
19534 Walter, Susant Sahani, Tero Roponen, Thomas Andersen, Thomas
19535 Bächler, Thomas Hindoe Paaboel Andersen, Tomasz Torcz, Tom
19536 Gundersen, Umut Tezduyar Lindskog, Uoti Urpala, Zachary Cook,
19537 Zbigniew Jędrzejewski-Szmek
19538
19539 — Berlin, 2014-03-12
19540
19541 CHANGES WITH 210:
19542
19543 * systemd will now relabel /dev after loading the SMACK policy
19544 according to SMACK rules.
19545
19546 * A new unit file option AppArmorProfile= has been added to
19547 set the AppArmor profile for the processes of a unit.
19548
19549 * A new condition check ConditionArchitecture= has been added
19550 to conditionalize units based on the system architecture, as
19551 reported by uname()'s "machine" field.
19552
19553 * systemd-networkd now supports matching on the system
19554 virtualization, architecture, kernel command line, hostname
19555 and machine ID.
19556
19557 * logind is now a lot more aggressive when suspending the
19558 machine due to a closed laptop lid. Instead of acting only
19559 on the lid close action, it will continuously watch the lid
19560 status and act on it. This is useful for laptops where the
19561 power button is on the outside of the chassis so that it can
19562 be reached without opening the lid (such as the Lenovo
19563 Yoga). On those machines, logind will now immediately
19564 re-suspend the machine if the power button has been
19565 accidentally pressed while the laptop was suspended and in a
19566 backpack or similar.
19567
19568 * logind will now watch SW_DOCK switches and inhibit reaction
19569 to the lid switch if it is pressed. This means that logind
19570 will not suspend the machine anymore if the lid is closed
19571 and the system is docked, if the laptop supports SW_DOCK
19572 notifications via the input layer. Note that ACPI docking
19573 stations do not generate this currently. Also note that this
19574 logic is usually not fully sufficient and Desktop
19575 Environments should take a lid switch inhibitor lock when an
19576 external display is connected, as systemd will not watch
19577 this on its own.
19578
19579 * nspawn will now make use of the devices cgroup controller by
19580 default, and only permit creation of and access to the usual
19581 API device nodes like /dev/null or /dev/random, as well as
19582 access to (but not creation of) the pty devices.
19583
19584 * We will now ship a default .network file for
19585 systemd-networkd that automatically configures DHCP for
19586 network interfaces created by nspawn's --network-veth or
19587 --network-bridge= switches.
19588
19589 * systemd will now understand the usual M, K, G, T suffixes
19590 according to SI conventions (i.e. to the base 1000) when
19591 referring to throughput and hardware metrics. It will stay
19592 with IEC conventions (i.e. to the base 1024) for software
19593 metrics, according to what is customary according to
19594 Wikipedia. We explicitly document which base applies for
19595 each configuration option.
19596
19597 * The DeviceAllow= setting in unit files now supports a syntax to
19598 allow-list an entire group of devices node majors at once, based on
19599 the /proc/devices listing. For example, with the string "char-pts",
19600 it is now possible to allow-list all current and future pseudo-TTYs
19601 at once.
19602
19603 * sd-event learned a new "post" event source. Event sources of
19604 this type are triggered by the dispatching of any event
19605 source of a type that is not "post". This is useful for
19606 implementing clean-up and check event sources that are
19607 triggered by other work being done in the program.
19608
19609 * systemd-networkd is no longer statically enabled, but uses
19610 the usual [Install] sections so that it can be
19611 enabled/disabled using systemctl. It still is enabled by
19612 default however.
19613
19614 * When creating a veth interface pair with systemd-nspawn, the
19615 host side will now be prefixed with "vb-" if
19616 --network-bridge= is used, and with "ve-" if --network-veth
19617 is used. This way, it is easy to distinguish these cases on
19618 the host, for example to apply different configuration to
19619 them with systemd-networkd.
19620
19621 * The compatibility libraries for libsystemd-journal.so,
19622 libsystem-id128.so, libsystemd-login.so and
19623 libsystemd-daemon.so do not make use of IFUNC
19624 anymore. Instead, we now build libsystemd.so multiple times
19625 under these alternative names. This means that the footprint
19626 is drastically increased, but given that these are
19627 transitional compatibility libraries, this should not matter
19628 much. This change has been made necessary to support the ARM
19629 platform for these compatibility libraries, as the ARM
19630 toolchain is not really at the same level as the toolchain
19631 for other architectures like x86 and does not support
19632 IFUNC. Please make sure to use --enable-compat-libs only
19633 during a transitional period!
19634
19635 * The .include syntax has been deprecated and is not documented
19636 anymore. Drop-in files in .d directories should be used instead.
19637
19638 Contributions from: Andreas Fuchs, Armin K., Colin Walters,
19639 Daniel Mack, Dave Reisner, David Herrmann, Djalal Harouni,
19640 Holger Schurig, Jason A. Donenfeld, Jason St. John, Jasper
19641 St. Pierre, Kay Sievers, Lennart Poettering, Łukasz Stelmach,
19642 Marcel Holtmann, Michael Scherer, Michal Sekletar, Mike
19643 Gilbert, Samuli Suominen, Thomas Bächler, Thomas Hindoe
19644 Paaboel Andersen, Tom Gundersen, Umut Tezduyar Lindskog,
19645 Zbigniew Jędrzejewski-Szmek
19646
19647 — Berlin, 2014-02-24
19648
19649 CHANGES WITH 209:
19650
19651 * A new component "systemd-networkd" has been added that can
19652 be used to configure local network interfaces statically or
19653 via DHCP. It is capable of bringing up bridges, VLANs, and
19654 bonding. Currently, no hook-ups for interactive network
19655 configuration are provided. Use this for your initrd,
19656 container, embedded, or server setup if you need a simple,
19657 yet powerful, network configuration solution. This
19658 configuration subsystem is quite nifty, as it allows wildcard
19659 hotplug matching in interfaces. For example, with a single
19660 configuration snippet, you can configure that all Ethernet
19661 interfaces showing up are automatically added to a bridge,
19662 or similar. It supports link-sensing and more.
19663
19664 * A new tool "systemd-socket-proxyd" has been added which can
19665 act as a bidirectional proxy for TCP sockets. This is
19666 useful for adding socket activation support to services that
19667 do not actually support socket activation, including virtual
19668 machines and the like.
19669
19670 * Add a new tool to save/restore rfkill state on
19671 shutdown/boot.
19672
19673 * Save/restore state of keyboard backlights in addition to
19674 display backlights on shutdown/boot.
19675
19676 * udev learned a new SECLABEL{} construct to label device
19677 nodes with a specific security label when they appear. For
19678 now, only SECLABEL{selinux} is supported, but the syntax is
19679 prepared for additional security frameworks.
19680
19681 * udev gained a new scheme to configure link-level attributes
19682 from files in /etc/systemd/network/*.link. These files can
19683 match against MAC address, device path, driver name and type,
19684 and will apply attributes like the naming policy, link speed,
19685 MTU, duplex settings, Wake-on-LAN settings, MAC address, MAC
19686 address assignment policy (randomized, …).
19687
19688 * The configuration of network interface naming rules for
19689 "permanent interface names" has changed: a new NamePolicy=
19690 setting in the [Link] section of .link files determines the
19691 priority of possible naming schemes (onboard, slot, MAC,
19692 path). The default value of this setting is determined by
19693 /usr/lib/net/links/99-default.link. Old
19694 80-net-name-slot.rules udev configuration file has been
19695 removed, so local configuration overriding this file should
19696 be adapted to override 99-default.link instead.
19697
19698 * When the User= switch is used in a unit file, also
19699 initialize $SHELL= based on the user database entry.
19700
19701 * systemd no longer depends on libdbus. All communication is
19702 now done with sd-bus, systemd's low-level bus library
19703 implementation.
19704
19705 * kdbus support has been added to PID 1 itself. When kdbus is
19706 enabled, this causes PID 1 to set up the system bus and
19707 enable support for a new ".busname" unit type that
19708 encapsulates bus name activation on kdbus. It works a little
19709 bit like ".socket" units, except for bus names. A new
19710 generator has been added that converts classic dbus1 service
19711 activation files automatically into native systemd .busname
19712 and .service units.
19713
19714 * sd-bus: add a lightweight vtable implementation that allows
19715 defining objects on the bus with a simple static const
19716 vtable array of its methods, signals and properties.
19717
19718 * systemd will not generate or install static dbus
19719 introspection data anymore to /usr/share/dbus-1/interfaces,
19720 as the precise format of these files is unclear, and
19721 nothing makes use of it.
19722
19723 * A proxy daemon is now provided to proxy clients connecting
19724 via classic D-Bus AF_UNIX sockets to kdbus, to provide full
19725 compatibility with classic D-Bus.
19726
19727 * A bus driver implementation has been added that supports the
19728 classic D-Bus bus driver calls on kdbus, also for
19729 compatibility purposes.
19730
19731 * A new API "sd-event.h" has been added that implements a
19732 minimal event loop API built around epoll. It provides a
19733 couple of features that direct epoll usage is lacking:
19734 prioritization of events, scales to large numbers of timer
19735 events, per-event timer slack (accuracy), system-wide
19736 coalescing of timer events, exit handlers, watchdog
19737 supervision support using systemd's sd_notify() API, child
19738 process handling.
19739
19740 * A new API "sd-rntl.h" has been added that provides an API
19741 around the route netlink interface of the kernel, similar in
19742 style to "sd-bus.h".
19743
19744 * A new API "sd-dhcp-client.h" has been added that provides a
19745 small DHCPv4 client-side implementation. This is used by
19746 "systemd-networkd".
19747
19748 * There is a new kernel command line option
19749 "systemd.restore_state=0|1". When set to "0", none of the
19750 systemd tools will restore saved runtime state to hardware
19751 devices. More specifically, the rfkill and backlight states
19752 are not restored.
19753
19754 * The FsckPassNo= compatibility option in mount/service units
19755 has been removed. The fstab generator will now add the
19756 necessary dependencies automatically, and does not require
19757 PID1's support for that anymore.
19758
19759 * journalctl gained a new switch, --list-boots, that lists
19760 recent boots with their times and boot IDs.
19761
19762 * The various tools like systemctl, loginctl, timedatectl,
19763 busctl, systemd-run, … have gained a new switch "-M" to
19764 connect to a specific, local OS container (as direct
19765 connection, without requiring SSH). This works on any
19766 container that is registered with machined, such as those
19767 created by libvirt-lxc or nspawn.
19768
19769 * systemd-run and systemd-analyze also gained support for "-H"
19770 to connect to remote hosts via SSH. This is particularly
19771 useful for systemd-run because it enables queuing of jobs
19772 onto remote systems.
19773
19774 * machinectl gained a new command "login" to open a getty
19775 login in any local container. This works with any container
19776 that is registered with machined (such as those created by
19777 libvirt-lxc or nspawn), and which runs systemd inside.
19778
19779 * machinectl gained a new "reboot" command that may be used to
19780 trigger a reboot on a specific container that is registered
19781 with machined. This works on any container that runs an init
19782 system of some kind.
19783
19784 * systemctl gained a new "list-timers" command to print a nice
19785 listing of installed timer units with the times they elapse
19786 next.
19787
19788 * Alternative reboot() parameters may now be specified on the
19789 "systemctl reboot" command line and are passed to the
19790 reboot() system call.
19791
19792 * systemctl gained a new --job-mode= switch to configure the
19793 mode to queue a job with. This is a more generic version of
19794 --fail, --irreversible, and --ignore-dependencies, which are
19795 still available but not advertised anymore.
19796
19797 * /etc/systemd/system.conf gained new settings to configure
19798 various default timeouts of units, as well as the default
19799 start limit interval and burst. These may still be overridden
19800 within each Unit.
19801
19802 * PID1 will now export on the bus profile data of the security
19803 policy upload process (such as the SELinux policy upload to
19804 the kernel).
19805
19806 * journald: when forwarding logs to the console, include
19807 timestamps (following the setting in
19808 /sys/module/printk/parameters/time).
19809
19810 * OnCalendar= in timer units now understands the special
19811 strings "yearly" and "annually". (Both are equivalent)
19812
19813 * The accuracy of timer units is now configurable with the new
19814 AccuracySec= setting. It defaults to 1min.
19815
19816 * A new dependency type JoinsNamespaceOf= has been added that
19817 allows running two services within the same /tmp and network
19818 namespace, if PrivateNetwork= or PrivateTmp= are used.
19819
19820 * A new command "cat" has been added to systemctl. It outputs
19821 the original unit file of a unit, and concatenates the
19822 contents of additional "drop-in" unit file snippets, so that
19823 the full configuration is shown.
19824
19825 * systemctl now supports globbing on the various "list-xyz"
19826 commands, like "list-units" or "list-sockets", as well as on
19827 those commands which take multiple unit names.
19828
19829 * journalctl's --unit= switch gained support for globbing.
19830
19831 * All systemd daemons now make use of the watchdog logic so
19832 that systemd automatically notices when they hang.
19833
19834 * If the $container_ttys environment variable is set,
19835 getty-generator will automatically spawn a getty for each
19836 listed tty. This is useful for container managers to request
19837 login gettys to be spawned on as many ttys as needed.
19838
19839 * %h, %s, %U specifier support is not available anymore when
19840 used in unit files for PID 1. This is because NSS calls are
19841 not safe from PID 1. They stay available for --user
19842 instances of systemd, and as special case for the root user.
19843
19844 * loginctl gained a new "--no-legend" switch to turn off output
19845 of the legend text.
19846
19847 * The "sd-login.h" API gained three new calls:
19848 sd_session_is_remote(), sd_session_get_remote_user(),
19849 sd_session_get_remote_host() to query information about
19850 remote sessions.
19851
19852 * The udev hardware database now also carries vendor/product
19853 information of SDIO devices.
19854
19855 * The "sd-daemon.h" API gained a new sd_watchdog_enabled() to
19856 determine whether watchdog notifications are requested by
19857 the system manager.
19858
19859 * Socket-activated per-connection services now include a
19860 short description of the connection parameters in the
19861 description.
19862
19863 * tmpfiles gained a new "--boot" option. When this is not used,
19864 only lines where the command character is not suffixed with
19865 "!" are executed. When this option is specified, those
19866 options are executed too. This partitions tmpfiles
19867 directives into those that can be safely executed at any
19868 time, and those which should be run only at boot (for
19869 example, a line that creates /run/nologin).
19870
19871 * A new API "sd-resolve.h" has been added which provides a simple
19872 asynchronous wrapper around glibc NSS hostname resolution
19873 calls, such as getaddrinfo(). In contrast to glibc's
19874 getaddrinfo_a(), it does not use signals. In contrast to most
19875 other asynchronous name resolution libraries, this one does
19876 not reimplement DNS, but reuses NSS, so that alternate
19877 hostname resolution systems continue to work, such as mDNS,
19878 LDAP, etc. This API is based on libasyncns, but it has been
19879 cleaned up for inclusion in systemd.
19880
19881 * The APIs "sd-journal.h", "sd-login.h", "sd-id128.h",
19882 "sd-daemon.h" are no longer found in individual libraries
19883 libsystemd-journal.so, libsystemd-login.so,
19884 libsystemd-id128.so, libsystemd-daemon.so. Instead, we have
19885 merged them into a single library, libsystemd.so, which
19886 provides all symbols. The reason for this is cyclic
19887 dependencies, as these libraries tend to use each other's
19888 symbols. So far, we have managed to workaround that by linking
19889 a copy of a good part of our code into each of these
19890 libraries again and again, which, however, makes certain
19891 things hard to do, like sharing static variables. Also, it
19892 substantially increases footprint. With this change, there
19893 is only one library for the basic APIs systemd
19894 provides. Also, "sd-bus.h", "sd-memfd.h", "sd-event.h",
19895 "sd-rtnl.h", "sd-resolve.h", "sd-utf8.h" are found in this
19896 library as well, however are subject to the --enable-kdbus
19897 switch (see below). Note that "sd-dhcp-client.h" is not part
19898 of this library (this is because it only consumes, never
19899 provides, services of/to other APIs). To make the transition
19900 easy from the separate libraries to the unified one, we
19901 provide the --enable-compat-libs compile-time switch which
19902 will generate stub libraries that are compatible with the
19903 old ones but redirect all calls to the new one.
19904
19905 * All of the kdbus logic and the new APIs "sd-bus.h",
19906 "sd-memfd.h", "sd-event.h", "sd-rtnl.h", "sd-resolve.h",
19907 and "sd-utf8.h" are compile-time optional via the
19908 "--enable-kdbus" switch, and they are not compiled in by
19909 default. To make use of kdbus, you have to explicitly enable
19910 the switch. Note however, that neither the kernel nor the
19911 userspace API for all of this is considered stable yet. We
19912 want to maintain the freedom to still change the APIs for
19913 now. By specifying this build-time switch, you acknowledge
19914 that you are aware of the instability of the current
19915 APIs.
19916
19917 * Also, note that while kdbus is pretty much complete,
19918 it lacks one thing: proper policy support. This means you
19919 can build a fully working system with all features; however,
19920 it will be highly insecure. Policy support will be added in
19921 one of the next releases, at the same time that we will
19922 declare the APIs stable.
19923
19924 * When the kernel command line argument "kdbus" is specified,
19925 systemd will automatically load the kdbus.ko kernel module. At
19926 this stage of development, it is only useful for testing kdbus
19927 and should not be used in production. Note: if "--enable-kdbus"
19928 is specified, and the kdbus.ko kernel module is available, and
19929 "kdbus" is added to the kernel command line, the entire system
19930 runs with kdbus instead of dbus-daemon, with the above mentioned
19931 problem of missing the system policy enforcement. Also a future
19932 version of kdbus.ko or a newer systemd will not be compatible with
19933 each other, and will unlikely be able to boot the machine if only
19934 one of them is updated.
19935
19936 * systemctl gained a new "import-environment" command which
19937 uploads the caller's environment (or parts thereof) into the
19938 service manager so that it is inherited by services started
19939 by the manager. This is useful to upload variables like
19940 $DISPLAY into the user service manager.
19941
19942 * A new PrivateDevices= switch has been added to service units
19943 which allows running a service with a namespaced /dev
19944 directory that does not contain any device nodes for
19945 physical devices. More specifically, it only includes devices
19946 such as /dev/null, /dev/urandom, and /dev/zero which are API
19947 entry points.
19948
19949 * logind has been extended to support behaviour like VT
19950 switching on seats that do not support a VT. This makes
19951 multi-session available on seats that are not the first seat
19952 (seat0), and on systems where kernel support for VTs has
19953 been disabled at compile-time.
19954
19955 * If a process holds a delay lock for system sleep or shutdown
19956 and fails to release it in time, we will now log its
19957 identity. This makes it easier to identify processes that
19958 cause slow suspends or power-offs.
19959
19960 * When parsing /etc/crypttab, support for a new key-slot=
19961 option as supported by Debian is added. It allows indicating
19962 which LUKS slot to use on disk, speeding up key loading.
19963
19964 * The sd_journal_sendv() API call has been checked and
19965 officially declared to be async-signal-safe so that it may
19966 be invoked from signal handlers for logging purposes.
19967
19968 * Boot-time status output is now enabled automatically after a
19969 short timeout if boot does not progress, in order to give
19970 the user an indication what she or he is waiting for.
19971
19972 * The boot-time output has been improved to show how much time
19973 remains until jobs expire.
19974
19975 * The KillMode= switch in service units gained a new possible
19976 value "mixed". If set, and the unit is shut down, then the
19977 initial SIGTERM signal is sent only to the main daemon
19978 process, while the following SIGKILL signal is sent to
19979 all remaining processes of the service.
19980
19981 * When a scope unit is registered, a new property "Controller"
19982 may be set. If set to a valid bus name, systemd will send a
19983 RequestStop() signal to this name when it would like to shut
19984 down the scope. This may be used to hook manager logic into
19985 the shutdown logic of scope units. Also, scope units may now
19986 be put in a special "abandoned" state, in which case the
19987 manager process which created them takes no further
19988 responsibilities for it.
19989
19990 * When reading unit files, systemd will now verify
19991 the access mode of these files, and warn about certain
19992 suspicious combinations. This has been added to make it
19993 easier to track down packaging bugs where unit files are
19994 marked executable or world-writable.
19995
19996 * systemd-nspawn gained a new "--setenv=" switch to set
19997 container-wide environment variables. The similar option in
19998 systemd-activate was renamed from "--environment=" to
19999 "--setenv=" for consistency.
20000
20001 * systemd-nspawn has been updated to create a new kdbus domain
20002 for each container that is invoked, thus allowing each
20003 container to have its own set of system and user buses,
20004 independent of the host.
20005
20006 * systemd-nspawn gained a new --drop-capability= switch to run
20007 the container with less capabilities than the default. Both
20008 --drop-capability= and --capability= now take the special
20009 string "all" for dropping or keeping all capabilities.
20010
20011 * systemd-nspawn gained new switches for executing containers
20012 with specific SELinux labels set.
20013
20014 * systemd-nspawn gained a new --quiet switch to not generate
20015 any additional output but the container's own console
20016 output.
20017
20018 * systemd-nspawn gained a new --share-system switch to run a
20019 container without PID namespacing enabled.
20020
20021 * systemd-nspawn gained a new --register= switch to control
20022 whether the container is registered with systemd-machined or
20023 not. This is useful for containers that do not run full
20024 OS images, but only specific apps.
20025
20026 * systemd-nspawn gained a new --keep-unit which may be used
20027 when invoked as the only program from a service unit, and
20028 results in registration of the unit service itself in
20029 systemd-machined, instead of a newly opened scope unit.
20030
20031 * systemd-nspawn gained a new --network-interface= switch for
20032 moving arbitrary interfaces to the container. The new
20033 --network-veth switch creates a virtual Ethernet connection
20034 between host and container. The new --network-bridge=
20035 switch then allows assigning the host side of this virtual
20036 Ethernet connection to a bridge device.
20037
20038 * systemd-nspawn gained a new --personality= switch for
20039 setting the kernel personality for the container. This is
20040 useful when running a 32-bit container on a 64-bit host. A
20041 similar option Personality= is now also available for service
20042 units to use.
20043
20044 * logind will now also track a "Desktop" identifier for each
20045 session which encodes the desktop environment of it. This is
20046 useful for desktop environments that want to identify
20047 multiple running sessions of itself easily.
20048
20049 * A new SELinuxContext= setting for service units has been
20050 added that allows setting a specific SELinux execution
20051 context for a service.
20052
20053 * Most systemd client tools will now honour $SYSTEMD_LESS for
20054 settings of the "less" pager. By default, these tools will
20055 override $LESS to allow certain operations to work, such as
20056 jump-to-the-end. With $SYSTEMD_LESS, it is possible to
20057 influence this logic.
20058
20059 * systemd's "seccomp" hook-up has been changed to make use of
20060 the libseccomp library instead of using its own
20061 implementation. This has benefits for portability among
20062 other things.
20063
20064 * For usage together with SystemCallFilter=, a new
20065 SystemCallErrorNumber= setting has been introduced that
20066 allows configuration of a system error number to be returned
20067 on filtered system calls, instead of immediately killing the
20068 process. Also, SystemCallArchitectures= has been added to
20069 limit access to system calls of a particular architecture
20070 (in order to turn off support for unused secondary
20071 architectures). There is also a global
20072 SystemCallArchitectures= setting in system.conf now to turn
20073 off support for non-native system calls system-wide.
20074
20075 * systemd requires a kernel with a working name_to_handle_at(),
20076 please see the kernel config requirements in the README file.
20077
20078 Contributions from: Adam Williamson, Alex Jia, Anatol Pomozov,
20079 Ansgar Burchardt, AppleBloom, Auke Kok, Bastien Nocera,
20080 Chengwei Yang, Christian Seiler, Colin Guthrie, Colin Walters,
20081 Cristian Rodríguez, Daniel Buch, Daniele Medri, Daniel J
20082 Walsh, Daniel Mack, Dan McGee, Dave Reisner, David Coppa,
20083 David Herrmann, David Strauss, Djalal Harouni, Dmitry Pisklov,
20084 Elia Pinto, Florian Weimer, George McCollister, Goffredo
20085 Baroncelli, Greg Kroah-Hartman, Hendrik Brueckner, Igor
20086 Zhbanov, Jan Engelhardt, Jan Janssen, Jason A. Donenfeld,
20087 Jason St. John, Jasper St. Pierre, Jóhann B. Guðmundsson, Jose
20088 Ignacio Naranjo, Karel Zak, Kay Sievers, Kristian Høgsberg,
20089 Lennart Poettering, Lubomir Rintel, Lukas Nykryn, Lukasz
20090 Skalski, Łukasz Stelmach, Luke Shumaker, Mantas Mikulėnas,
20091 Marc-Antoine Perennou, Marcel Holtmann, Marcos Felipe Rasia de
20092 Mello, Marko Myllynen, Martin Pitt, Matthew Monaco, Michael
20093 Marineau, Michael Scherer, Michał Górny, Michal Sekletar,
20094 Michele Curti, Oleksii Shevchuk, Olivier Brunel, Patrik Flykt,
20095 Pavel Holica, Raudi, Richard Marko, Ronny Chevalier, Sébastien
20096 Luttringer, Sergey Ptashnick, Shawn Landden, Simon Peeters,
20097 Stefan Beller, Susant Sahani, Sylvain Plantefeve, Sylvia Else,
20098 Tero Roponen, Thomas Bächler, Thomas Hindoe Paaboel Andersen,
20099 Tom Gundersen, Umut Tezduyar Lindskog, Unai Uribarri, Václav
20100 Pavlín, Vincent Batts, WaLyong Cho, William Giokas, Yang
20101 Zhiyong, Yin Kangkai, Yuxuan Shui, Zbigniew Jędrzejewski-Szmek
20102
20103 — Berlin, 2014-02-20
20104
20105 CHANGES WITH 208:
20106
20107 * logind has gained support for facilitating privileged input
20108 and drm device access for unprivileged clients. This work is
20109 useful to allow Wayland display servers (and similar
20110 programs, such as kmscon) to run under the user's ID and
20111 access input and drm devices which are normally
20112 protected. When this is used (and the kernel is new enough)
20113 logind will "mute" IO on the file descriptors passed to
20114 Wayland as long as it is in the background and "unmute" it
20115 if it returns into the foreground. This allows secure
20116 session switching without allowing background sessions to
20117 eavesdrop on input and display data. This also introduces
20118 session switching support if VT support is turned off in the
20119 kernel, and on seats that are not seat0.
20120
20121 * A new kernel command line option luks.options= is understood
20122 now which allows specifying LUKS options for usage for LUKS
20123 encrypted partitions specified with luks.uuid=.
20124
20125 * tmpfiles.d(5) snippets may now use specifier expansion in
20126 path names. More specifically %m, %b, %H, %v, are now
20127 replaced by the local machine id, boot id, hostname, and
20128 kernel version number.
20129
20130 * A new tmpfiles.d(5) command "m" has been introduced which
20131 may be used to change the owner/group/access mode of a file
20132 or directory if it exists, but do nothing if it does not.
20133
20134 * This release removes high-level support for the
20135 MemorySoftLimit= cgroup setting. The underlying kernel
20136 cgroup attribute memory.soft_limit= is currently badly
20137 designed and likely to be removed from the kernel API in its
20138 current form, hence we should not expose it for now.
20139
20140 * The memory.use_hierarchy cgroup attribute is now enabled for
20141 all cgroups systemd creates in the memory cgroup
20142 hierarchy. This option is likely to be come the built-in
20143 default in the kernel anyway, and the non-hierarchical mode
20144 never made much sense in the intrinsically hierarchical
20145 cgroup system.
20146
20147 * A new field _SYSTEMD_SLICE= is logged along with all journal
20148 messages containing the slice a message was generated
20149 from. This is useful to allow easy per-customer filtering of
20150 logs among other things.
20151
20152 * systemd-journald will no longer adjust the group of journal
20153 files it creates to the "systemd-journal" group. Instead we
20154 rely on the journal directory to be owned by the
20155 "systemd-journal" group, and its setgid bit set, so that the
20156 kernel file system layer will automatically enforce that
20157 journal files inherit this group assignment. The reason for
20158 this change is that we cannot allow NSS look-ups from
20159 journald which would be necessary to resolve
20160 "systemd-journal" to a numeric GID, because this might
20161 create deadlocks if NSS involves synchronous queries to
20162 other daemons (such as nscd, or sssd) which in turn are
20163 logging clients of journald and might block on it, which
20164 would then dead lock. A tmpfiles.d(5) snippet included in
20165 systemd will make sure the setgid bit and group are
20166 properly set on the journal directory if it exists on every
20167 boot. However, we recommend adjusting it manually after
20168 upgrades too (or from RPM scriptlets), so that the change is
20169 not delayed until next reboot.
20170
20171 * Backlight and random seed files in /var/lib/ have moved into
20172 the /var/lib/systemd/ directory, in order to centralize all
20173 systemd generated files in one directory.
20174
20175 * Boot time performance measurements (as displayed by
20176 "systemd-analyze" for example) will now read ACPI 5.0 FPDT
20177 performance information if that's available to determine how
20178 much time BIOS and boot loader initialization required. With
20179 a sufficiently new BIOS you hence no longer need to boot
20180 with Gummiboot to get access to such information.
20181
20182 Contributions from: Andrey Borzenkov, Chen Jie, Colin Walters,
20183 Cristian Rodríguez, Dave Reisner, David Herrmann, David
20184 Mackey, David Strauss, Eelco Dolstra, Evan Callicoat, Gao
20185 feng, Harald Hoyer, Jimmie Tauriainen, Kay Sievers, Lennart
20186 Poettering, Lukas Nykryn, Mantas Mikulėnas, Martin Pitt,
20187 Michael Scherer, Michał Górny, Mike Gilbert, Patrick McCarty,
20188 Sebastian Ott, Tom Gundersen, Zbigniew Jędrzejewski-Szmek
20189
20190 — Berlin, 2013-10-02
20191
20192 CHANGES WITH 207:
20193
20194 * The Restart= option for services now understands a new
20195 on-watchdog setting, which will restart the service
20196 automatically if the service stops sending out watchdog keep
20197 alive messages (as configured with WatchdogSec=).
20198
20199 * The getty generator (which is responsible for bringing up a
20200 getty on configured serial consoles) will no longer only
20201 start a getty on the primary kernel console but on all
20202 others, too. This makes the order in which console= is
20203 specified on the kernel command line less important.
20204
20205 * libsystemd-logind gained a new sd_session_get_vt() call to
20206 retrieve the VT number of a session.
20207
20208 * If the option "tries=0" is set for an entry of /etc/crypttab
20209 its passphrase is queried indefinitely instead of any
20210 maximum number of tries.
20211
20212 * If a service with a configure PID file terminates its PID
20213 file will now be removed automatically if it still exists
20214 afterwards. This should put an end to stale PID files.
20215
20216 * systemd-run will now also take relative binary path names
20217 for execution and no longer insists on absolute paths.
20218
20219 * InaccessibleDirectories= and ReadOnlyDirectories= now take
20220 paths that are optionally prefixed with "-" to indicate that
20221 it should not be considered a failure if they do not exist.
20222
20223 * journalctl -o (and similar commands) now understands a new
20224 output mode "short-precise", it is similar to "short" but
20225 shows timestamps with usec accuracy.
20226
20227 * The option "discard" (as known from Debian) is now
20228 synonymous to "allow-discards" in /etc/crypttab. In fact,
20229 "discard" is preferred now (since it is easier to remember
20230 and type).
20231
20232 * Some licensing clean-ups were made, so that more code is now
20233 LGPL-2.1 licensed than before.
20234
20235 * A minimal tool to save/restore the display backlight
20236 brightness across reboots has been added. It will store the
20237 backlight setting as late as possible at shutdown, and
20238 restore it as early as possible during reboot.
20239
20240 * A logic to automatically discover and enable home and swap
20241 partitions on GPT disks has been added. With this in place
20242 /etc/fstab becomes optional for many setups as systemd can
20243 discover certain partitions located on the root disk
20244 automatically. Home partitions are recognized under their
20245 GPT type ID 933ac7e12eb44f13b8440e14e2aef915. Swap
20246 partitions are recognized under their GPT type ID
20247 0657fd6da4ab43c484e50933c84b4f4f.
20248
20249 * systemd will no longer pass any environment from the kernel
20250 or initrd to system services. If you want to set an
20251 environment for all services, do so via the kernel command
20252 line systemd.setenv= assignment.
20253
20254 * The systemd-sysctl tool no longer natively reads the file
20255 /etc/sysctl.conf. If desired, the file should be symlinked
20256 from /etc/sysctl.d/99-sysctl.conf. Apart from providing
20257 legacy support by a symlink rather than built-in code, it
20258 also makes the otherwise hidden order of application of the
20259 different files visible. (Note that this partly reverts to a
20260 pre-198 application order of sysctl knobs!)
20261
20262 * The "systemctl set-log-level" and "systemctl dump" commands
20263 have been moved to systemd-analyze.
20264
20265 * systemd-run learned the new --remain-after-exit switch,
20266 which causes the scope unit not to be cleaned up
20267 automatically after the process terminated.
20268
20269 * tmpfiles learned a new --exclude-prefix= switch to exclude
20270 certain paths from operation.
20271
20272 * journald will now automatically flush all messages to disk
20273 as soon as a message at the log level CRIT, ALERT or EMERG
20274 is received.
20275
20276 Contributions from: Andrew Cook, Brandon Philips, Christian
20277 Hesse, Christoph Junghans, Colin Walters, Daniel Schaal,
20278 Daniel Wallace, Dave Reisner, David Herrmann, Gao feng, George
20279 McCollister, Giovanni Campagna, Hannes Reinecke, Harald Hoyer,
20280 Herczeg Zsolt, Holger Hans Peter Freyther, Jan Engelhardt,
20281 Jesper Larsen, Kay Sievers, Khem Raj, Lennart Poettering,
20282 Lukas Nykryn, Maciej Wereski, Mantas Mikulėnas, Marcel
20283 Holtmann, Martin Pitt, Michael Biebl, Michael Marineau,
20284 Michael Scherer, Michael Stapelberg, Michal Sekletar, Michał
20285 Górny, Olivier Brunel, Ondrej Balaz, Ronny Chevalier, Shawn
20286 Landden, Steven Hiscocks, Thomas Bächler, Thomas Hindoe
20287 Paaboel Andersen, Tom Gundersen, Umut Tezduyar, WANG Chao,
20288 William Giokas, Zbigniew Jędrzejewski-Szmek
20289
20290 — Berlin, 2013-09-13
20291
20292 CHANGES WITH 206:
20293
20294 * The documentation has been updated to cover the various new
20295 concepts introduced with 205.
20296
20297 * Unit files now understand the new %v specifier which
20298 resolves to the kernel version string as returned by "uname
20299 -r".
20300
20301 * systemctl now supports filtering the unit list output by
20302 load state, active state and sub state, using the new
20303 --state= parameter.
20304
20305 * "systemctl status" will now show the results of the
20306 condition checks (like ConditionPathExists= and similar) of
20307 the last start attempts of the unit. They are also logged to
20308 the journal.
20309
20310 * "journalctl -b" may now be used to look for boot output of a
20311 specific boot. Try "journalctl -b -1" for the previous boot,
20312 but the syntax is substantially more powerful.
20313
20314 * "journalctl --show-cursor" has been added which prints the
20315 cursor string the last shown log line. This may then be used
20316 with the new "journalctl --after-cursor=" switch to continue
20317 browsing logs from that point on.
20318
20319 * "journalctl --force" may now be used to force regeneration
20320 of an FSS key.
20321
20322 * Creation of "dead" device nodes has been moved from udev
20323 into kmod and tmpfiles. Previously, udev would read the kmod
20324 databases to pre-generate dead device nodes based on meta
20325 information contained in kernel modules, so that these would
20326 be auto-loaded on access rather then at boot. As this
20327 does not really have much to do with the exposing actual
20328 kernel devices to userspace this has always been slightly
20329 alien in the udev codebase. Following the new scheme kmod
20330 will now generate a runtime snippet for tmpfiles from the
20331 module meta information and it now is tmpfiles' job to the
20332 create the nodes. This also allows overriding access and
20333 other parameters for the nodes using the usual tmpfiles
20334 facilities. As side effect this allows us to remove the
20335 CAP_SYS_MKNOD capability bit from udevd entirely.
20336
20337 * logind's device ACLs may now be applied to these "dead"
20338 devices nodes too, thus finally allowing managed access to
20339 devices such as /dev/snd/sequencer without loading the
20340 backing module right-away.
20341
20342 * A new RPM macro has been added that may be used to apply
20343 tmpfiles configuration during package installation.
20344
20345 * systemd-detect-virt and ConditionVirtualization= now can
20346 detect User-Mode-Linux machines (UML).
20347
20348 * journald will now implicitly log the effective capabilities
20349 set of processes in the message metadata.
20350
20351 * systemd-cryptsetup has gained support for TrueCrypt volumes.
20352
20353 * The initrd interface has been simplified (more specifically,
20354 support for passing performance data via environment
20355 variables and fsck results via files in /run has been
20356 removed). These features were non-essential, and are
20357 nowadays available in a much nicer way by having systemd in
20358 the initrd serialize its state and have the hosts systemd
20359 deserialize it again.
20360
20361 * The udev "keymap" data files and tools to apply keyboard
20362 specific mappings of scan to key codes, and force-release
20363 scan code lists have been entirely replaced by a udev
20364 "keyboard" builtin and a hwdb data file.
20365
20366 * systemd will now honour the kernel's "quiet" command line
20367 argument also during late shutdown, resulting in a
20368 completely silent shutdown when used.
20369
20370 * There's now an option to control the SO_REUSEPORT socket
20371 option in .socket units.
20372
20373 * Instance units will now automatically get a per-template
20374 subslice of system.slice unless something else is explicitly
20375 configured. For example, instances of [email protected] will now
20376 implicitly be placed in system-sshd.slice rather than
20377 system.slice as before.
20378
20379 * Test coverage support may now be enabled at build time.
20380
20381 Contributions from: Dave Reisner, Frederic Crozat, Harald
20382 Hoyer, Holger Hans Peter Freyther, Jan Engelhardt, Jan
20383 Janssen, Jason St. John, Jesper Larsen, Kay Sievers, Lennart
20384 Poettering, Lukas Nykryn, Maciej Wereski, Martin Pitt, Michael
20385 Olbrich, Ramkumar Ramachandra, Ross Lagerwall, Shawn Landden,
20386 Thomas H.P. Andersen, Tom Gundersen, Tomasz Torcz, William
20387 Giokas, Zbigniew Jędrzejewski-Szmek
20388
20389 — Berlin, 2013-07-23
20390
20391 CHANGES WITH 205:
20392
20393 * Two new unit types have been introduced:
20394
20395 Scope units are very similar to service units, however, are
20396 created out of pre-existing processes — instead of PID 1
20397 forking off the processes. By using scope units it is
20398 possible for system services and applications to group their
20399 own child processes (worker processes) in a powerful way
20400 which then maybe used to organize them, or kill them
20401 together, or apply resource limits on them.
20402
20403 Slice units may be used to partition system resources in an
20404 hierarchical fashion and then assign other units to them. By
20405 default there are now three slices: system.slice (for all
20406 system services), user.slice (for all user sessions),
20407 machine.slice (for VMs and containers).
20408
20409 Slices and scopes have been introduced primarily in
20410 context of the work to move cgroup handling to a
20411 single-writer scheme, where only PID 1
20412 creates/removes/manages cgroups.
20413
20414 * There's a new concept of "transient" units. In contrast to
20415 normal units these units are created via an API at runtime,
20416 not from configuration from disk. More specifically this
20417 means it is now possible to run arbitrary programs as
20418 independent services, with all execution parameters passed
20419 in via bus APIs rather than read from disk. Transient units
20420 make systemd substantially more dynamic then it ever was,
20421 and useful as a general batch manager.
20422
20423 * logind has been updated to make use of scope and slice units
20424 for managing user sessions. As a user logs in he will get
20425 his own private slice unit, to which all sessions are added
20426 as scope units. We also added support for automatically
20427 adding an instance of [email protected] for the user into the
20428 slice. Effectively logind will no longer create cgroup
20429 hierarchies on its own now, it will defer entirely to PID 1
20430 for this by means of scope, service and slice units. Since
20431 user sessions this way become entities managed by PID 1
20432 the output of "systemctl" is now a lot more comprehensive.
20433
20434 * A new mini-daemon "systemd-machined" has been added which
20435 may be used by virtualization managers to register local
20436 VMs/containers. nspawn has been updated accordingly, and
20437 libvirt will be updated shortly. machined will collect a bit
20438 of meta information about the VMs/containers, and assign
20439 them their own scope unit (see above). The collected
20440 meta-data is then made available via the "machinectl" tool,
20441 and exposed in "ps" and similar tools. machined/machinectl
20442 is compile-time optional.
20443
20444 * As discussed earlier, the low-level cgroup configuration
20445 options ControlGroup=, ControlGroupModify=,
20446 ControlGroupPersistent=, ControlGroupAttribute= have been
20447 removed. Please use high-level attribute settings instead as
20448 well as slice units.
20449
20450 * A new bus call SetUnitProperties() has been added to alter
20451 various runtime parameters of a unit. This is primarily
20452 useful to alter cgroup parameters dynamically in a nice way,
20453 but will be extended later on to make more properties
20454 modifiable at runtime. systemctl gained a new set-properties
20455 command that wraps this call.
20456
20457 * A new tool "systemd-run" has been added which can be used to
20458 run arbitrary command lines as transient services or scopes,
20459 while configuring a number of settings via the command
20460 line. This tool is currently very basic, however already
20461 very useful. We plan to extend this tool to even allow
20462 queuing of execution jobs with time triggers from the
20463 command line, similar in fashion to "at".
20464
20465 * nspawn will now inform the user explicitly that kernels with
20466 audit enabled break containers, and suggest the user to turn
20467 off audit.
20468
20469 * Support for detecting the IMA and AppArmor security
20470 frameworks with ConditionSecurity= has been added.
20471
20472 * journalctl gained a new "-k" switch for showing only kernel
20473 messages, mimicking dmesg output; in addition to "--user"
20474 and "--system" switches for showing only user's own logs
20475 and system logs.
20476
20477 * systemd-delta can now show information about drop-in
20478 snippets extending unit files.
20479
20480 * libsystemd-bus has been substantially updated but is still
20481 not available as public API.
20482
20483 * systemd will now look for the "debug" argument on the kernel
20484 command line and enable debug logging, similar to what
20485 "systemd.log_level=debug" already did before.
20486
20487 * "systemctl set-default", "systemctl get-default" has been
20488 added to configure the default.target symlink, which
20489 controls what to boot into by default.
20490
20491 * "systemctl set-log-level" has been added as a convenient
20492 way to raise and lower systemd logging threshold.
20493
20494 * "systemd-analyze plot" will now show the time the various
20495 generators needed for execution, as well as information
20496 about the unit file loading.
20497
20498 * libsystemd-journal gained a new sd_journal_open_files() call
20499 for opening specific journal files. journactl also gained a
20500 new switch to expose this new functionality. Previously we
20501 only supported opening all files from a directory, or all
20502 files from the system, as opening individual files only is
20503 racy due to journal file rotation.
20504
20505 * systemd gained the new DefaultEnvironment= setting in
20506 /etc/systemd/system.conf to set environment variables for
20507 all services.
20508
20509 * If a privileged process logs a journal message with the
20510 OBJECT_PID= field set, then journald will automatically
20511 augment this with additional OBJECT_UID=, OBJECT_GID=,
20512 OBJECT_COMM=, OBJECT_EXE=, … fields. This is useful if
20513 system services want to log events about specific client
20514 processes. journactl/systemctl has been updated to make use
20515 of this information if all log messages regarding a specific
20516 unit is requested.
20517
20518 Contributions from: Auke Kok, Chengwei Yang, Colin Walters,
20519 Cristian Rodríguez, Daniel Albers, Daniel Wallace, Dave
20520 Reisner, David Coppa, David King, David Strauss, Eelco
20521 Dolstra, Gabriel de Perthuis, Harald Hoyer, Jan Alexander
20522 Steffens, Jan Engelhardt, Jan Janssen, Jason St. John, Johan
20523 Heikkilä, Karel Zak, Karol Lewandowski, Kay Sievers, Lennart
20524 Poettering, Lukas Nykryn, Mantas Mikulėnas, Marius Vollmer,
20525 Martin Pitt, Michael Biebl, Michael Olbrich, Michael Tremer,
20526 Michal Schmidt, Michał Bartoszkiewicz, Nirbheek Chauhan,
20527 Pierre Neidhardt, Ross Burton, Ross Lagerwall, Sean McGovern,
20528 Thomas Hindoe Paaboel Andersen, Tom Gundersen, Umut Tezduyar,
20529 Václav Pavlín, Zachary Cook, Zbigniew Jędrzejewski-Szmek,
20530 Łukasz Stelmach, 장동준
20531
20532 CHANGES WITH 204:
20533
20534 * The Python bindings gained some minimal support for the APIs
20535 exposed by libsystemd-logind.
20536
20537 * ConditionSecurity= gained support for detecting SMACK. Since
20538 this condition already supports SELinux and AppArmor we only
20539 miss IMA for this. Patches welcome!
20540
20541 Contributions from: Karol Lewandowski, Lennart Poettering,
20542 Zbigniew Jędrzejewski-Szmek
20543
20544 CHANGES WITH 203:
20545
20546 * systemd-nspawn will now create /etc/resolv.conf if
20547 necessary, before bind-mounting the host's file onto it.
20548
20549 * systemd-nspawn will now store meta information about a
20550 container on the container's cgroup as extended attribute
20551 fields, including the root directory.
20552
20553 * The cgroup hierarchy has been reworked in many ways. All
20554 objects any of the components systemd creates in the cgroup
20555 tree are now suffixed. More specifically, user sessions are
20556 now placed in cgroups suffixed with ".session", users in
20557 cgroups suffixed with ".user", and nspawn containers in
20558 cgroups suffixed with ".nspawn". Furthermore, all cgroup
20559 names are now escaped in a simple scheme to avoid collision
20560 of userspace object names with kernel filenames. This work
20561 is preparation for making these objects relocatable in the
20562 cgroup tree, in order to allow easy resource partitioning of
20563 these objects without causing naming conflicts.
20564
20565 * systemctl list-dependencies gained the new switches
20566 --plain, --reverse, --after and --before.
20567
20568 * systemd-inhibit now shows the process name of processes that
20569 have taken an inhibitor lock.
20570
20571 * nss-myhostname will now also resolve "localhost"
20572 implicitly. This makes /etc/hosts an optional file and
20573 nicely handles that on IPv6 ::1 maps to both "localhost" and
20574 the local hostname.
20575
20576 * libsystemd-logind.so gained a new call
20577 sd_get_machine_names() to enumerate running containers and
20578 VMs (currently only supported by very new libvirt and
20579 nspawn). sd_login_monitor can now be used to watch
20580 VMs/containers coming and going.
20581
20582 * .include is not allowed recursively anymore, and only in
20583 unit files. Usually it is better to use drop-in snippets in
20584 .d/*.conf anyway, as introduced with systemd 198.
20585
20586 * systemd-analyze gained a new "critical-chain" command that
20587 determines the slowest chain of units run during system
20588 boot-up. It is very useful for tracking down where
20589 optimizing boot time is the most beneficial.
20590
20591 * systemd will no longer allow manipulating service paths in
20592 the name=systemd:/system cgroup tree using ControlGroup= in
20593 units. (But is still fine with it in all other dirs.)
20594
20595 * There's a new [email protected] service file that may
20596 be used to easily run nspawn containers as system
20597 services. With the container's root directory in
20598 /var/lib/container/foobar it is now sufficient to run
20599 "systemctl start [email protected]" to boot it.
20600
20601 * systemd-cgls gained a new parameter "--machine" to list only
20602 the processes within a certain container.
20603
20604 * ConditionSecurity= now can check for "apparmor". We still
20605 are lacking checks for SMACK and IMA for this condition
20606 check though. Patches welcome!
20607
20608 * A new configuration file /etc/systemd/sleep.conf has been
20609 added that may be used to configure which kernel operation
20610 systemd is supposed to execute when "suspend", "hibernate"
20611 or "hybrid-sleep" is requested. This makes the new kernel
20612 "freeze" state accessible to the user.
20613
20614 * ENV{SYSTEMD_WANTS} in udev rules will now implicitly escape
20615 the passed argument if applicable.
20616
20617 Contributions from: Auke Kok, Colin Guthrie, Colin Walters,
20618 Cristian Rodríguez, Daniel Buch, Daniel Wallace, Dave Reisner,
20619 Evangelos Foutras, Greg Kroah-Hartman, Harald Hoyer, Josh
20620 Triplett, Kay Sievers, Lennart Poettering, Lukas Nykryn,
20621 MUNEDA Takahiro, Mantas Mikulėnas, Mirco Tischler, Nathaniel
20622 Chen, Nirbheek Chauhan, Ronny Chevalier, Ross Lagerwall, Tom
20623 Gundersen, Umut Tezduyar, Ville Skyttä, Zbigniew
20624 Jędrzejewski-Szmek
20625
20626 CHANGES WITH 202:
20627
20628 * The output of 'systemctl list-jobs' got some polishing. The
20629 '--type=' argument may now be passed more than once. A new
20630 command 'systemctl list-sockets' has been added which shows
20631 a list of kernel sockets systemd is listening on with the
20632 socket units they belong to, plus the units these socket
20633 units activate.
20634
20635 * The experimental libsystemd-bus library got substantial
20636 updates to work in conjunction with the (also experimental)
20637 kdbus kernel project. It works well enough to exchange
20638 messages with some sophistication. Note that kdbus is not
20639 ready yet, and the library is mostly an elaborate test case
20640 for now, and not installable.
20641
20642 * systemd gained a new unit 'systemd-static-nodes.service'
20643 that generates static device nodes earlier during boot, and
20644 can run in conjunction with udev.
20645
20646 * libsystemd-login gained a new call sd_pid_get_user_unit()
20647 to retrieve the user systemd unit a process is running
20648 in. This is useful for systems where systemd is used as
20649 session manager.
20650
20651 * systemd-nspawn now places all containers in the new /machine
20652 top-level cgroup directory in the name=systemd
20653 hierarchy. libvirt will soon do the same, so that we get a
20654 uniform separation of /system, /user and /machine for system
20655 services, user processes and containers/virtual
20656 machines. This new cgroup hierarchy is also useful to stick
20657 stable names to specific container instances, which can be
20658 recognized later this way (this name may be controlled
20659 via systemd-nspawn's new -M switch). libsystemd-login also
20660 gained a new call sd_pid_get_machine_name() to retrieve the
20661 name of the container/VM a specific process belongs to.
20662
20663 * bootchart can now store its data in the journal.
20664
20665 * libsystemd-journal gained a new call
20666 sd_journal_add_conjunction() for AND expressions to the
20667 matching logic. This can be used to express more complex
20668 logical expressions.
20669
20670 * journactl can now take multiple --unit= and --user-unit=
20671 switches.
20672
20673 * The cryptsetup logic now understands the "luks.key=" kernel
20674 command line switch for specifying a file to read the
20675 decryption key from. Also, if a configured key file is not
20676 found the tool will now automatically fall back to prompting
20677 the user.
20678
20679 * Python systemd.journal module was updated to wrap recently
20680 added functions from libsystemd-journal. The interface was
20681 changed to bring the low level interface in s.j._Reader
20682 closer to the C API, and the high level interface in
20683 s.j.Reader was updated to wrap and convert all data about
20684 an entry.
20685
20686 Contributions from: Anatol Pomozov, Auke Kok, Harald Hoyer,
20687 Henrik Grindal Bakken, Josh Triplett, Kay Sievers, Lennart
20688 Poettering, Lukas Nykryn, Mantas Mikulėnas Marius Vollmer,
20689 Martin Jansa, Martin Pitt, Michael Biebl, Michal Schmidt,
20690 Mirco Tischler, Pali Rohar, Simon Peeters, Steven Hiscocks,
20691 Tom Gundersen, Zbigniew Jędrzejewski-Szmek
20692
20693 CHANGES WITH 201:
20694
20695 * journalctl --update-catalog now understands a new --root=
20696 option to operate on catalogs found in a different root
20697 directory.
20698
20699 * During shutdown after systemd has terminated all running
20700 services a final killing loop kills all remaining left-over
20701 processes. We will now print the name of these processes
20702 when we send SIGKILL to them, since this usually indicates a
20703 problem.
20704
20705 * If /etc/crypttab refers to password files stored on
20706 configured mount points automatic dependencies will now be
20707 generated to ensure the specific mount is established first
20708 before the key file is attempted to be read.
20709
20710 * 'systemctl status' will now show information about the
20711 network sockets a socket unit is listening on.
20712
20713 * 'systemctl status' will also shown information about any
20714 drop-in configuration file for units. (Drop-In configuration
20715 files in this context are files such as
20716 /etc/systemd/system/foobar.service.d/*.conf)
20717
20718 * systemd-cgtop now optionally shows summed up CPU times of
20719 cgroups. Press '%' while running cgtop to switch between
20720 percentage and absolute mode. This is useful to determine
20721 which cgroups use up the most CPU time over the entire
20722 runtime of the system. systemd-cgtop has also been updated
20723 to be 'pipeable' for processing with further shell tools.
20724
20725 * 'hostnamectl set-hostname' will now allow setting of FQDN
20726 hostnames.
20727
20728 * The formatting and parsing of time span values has been
20729 changed. The parser now understands fractional expressions
20730 such as "5.5h". The formatter will now output fractional
20731 expressions for all time spans under 1min, i.e. "5.123456s"
20732 rather than "5s 123ms 456us". For time spans under 1s
20733 millisecond values are shown, for those under 1ms
20734 microsecond values are shown. This should greatly improve
20735 all time-related output of systemd.
20736
20737 * libsystemd-login and libsystemd-journal gained new
20738 functions for querying the poll() events mask and poll()
20739 timeout value for integration into arbitrary event
20740 loops.
20741
20742 * localectl gained the ability to list available X11 keymaps
20743 (models, layouts, variants, options).
20744
20745 * 'systemd-analyze dot' gained the ability to filter for
20746 specific units via shell-style globs, to create smaller,
20747 more useful graphs. I.e. it is now possible to create simple
20748 graphs of all the dependencies between only target units, or
20749 of all units that Avahi has dependencies with.
20750
20751 Contributions from: Cristian Rodríguez, Dr. Tilmann Bubeck,
20752 Harald Hoyer, Holger Hans Peter Freyther, Kay Sievers, Kelly
20753 Anderson, Koen Kooi, Lennart Poettering, Maksim Melnikau,
20754 Marc-Antoine Perennou, Marius Vollmer, Martin Pitt, Michal
20755 Schmidt, Oleksii Shevchuk, Ronny Chevalier, Simon McVittie,
20756 Steven Hiscocks, Thomas Weißschuh, Umut Tezduyar, Václav
20757 Pavlín, Zbigniew Jędrzejewski-Szmek, Łukasz Stelmach
20758
20759 CHANGES WITH 200:
20760
20761 * The boot-time readahead implementation for rotating media
20762 will now read the read-ahead data in multiple passes which
20763 consist of all read requests made in equidistant time
20764 intervals. This means instead of strictly reading read-ahead
20765 data in its physical order on disk we now try to find a
20766 middle ground between physical and access time order.
20767
20768 * /etc/os-release files gained a new BUILD_ID= field for usage
20769 on operating systems that provide continuous builds of OS
20770 images.
20771
20772 Contributions from: Auke Kok, Eelco Dolstra, Kay Sievers,
20773 Lennart Poettering, Lukas Nykryn, Martin Pitt, Václav Pavlín
20774 William Douglas, Zbigniew Jędrzejewski-Szmek
20775
20776 CHANGES WITH 199:
20777
20778 * systemd-python gained an API exposing libsystemd-daemon.
20779
20780 * The SMACK setup logic gained support for uploading CIPSO
20781 security policy.
20782
20783 * Behaviour of PrivateTmp=, ReadWriteDirectories=,
20784 ReadOnlyDirectories= and InaccessibleDirectories= has
20785 changed. The private /tmp and /var/tmp directories are now
20786 shared by all processes of a service (which means
20787 ExecStartPre= may now leave data in /tmp that ExecStart= of
20788 the same service can still access). When a service is
20789 stopped its temporary directories are immediately deleted
20790 (normal clean-up with tmpfiles is still done in addition to
20791 this though).
20792
20793 * By default, systemd will now set a couple of sysctl
20794 variables in the kernel: the safe sysrq options are turned
20795 on, IP route verification is turned on, and source routing
20796 disabled. The recently added hardlink and softlink
20797 protection of the kernel is turned on. These settings should
20798 be reasonably safe, and good defaults for all new systems.
20799
20800 * The predictable network naming logic may now be turned off
20801 with a new kernel command line switch: net.ifnames=0.
20802
20803 * A new libsystemd-bus module has been added that implements a
20804 pretty complete D-Bus client library. For details see:
20805
20806 https://lists.freedesktop.org/archives/systemd-devel/2013-March/009797.html
20807
20808 * journald will now explicitly flush the journal files to disk
20809 at the latest 5min after each write. The file will then also
20810 be marked offline until the next write. This should increase
20811 reliability in case of a crash. The synchronization delay
20812 can be configured via SyncIntervalSec= in journald.conf.
20813
20814 * There's a new remote-fs-setup.target unit that can be used
20815 to pull in specific services when at least one remote file
20816 system is to be mounted.
20817
20818 * There are new targets timers.target and paths.target as
20819 canonical targets to pull user timer and path units in
20820 from. This complements sockets.target with a similar
20821 purpose for socket units.
20822
20823 * libudev gained a new call udev_device_set_attribute_value()
20824 to set sysfs attributes of a device.
20825
20826 * The udev daemon now sets the default number of worker
20827 processes executed in parallel based on the number of available
20828 CPUs instead of the amount of available RAM. This is supposed
20829 to provide a more reliable default and limit a too aggressive
20830 parallelism for setups with 1000s of devices connected.
20831
20832 Contributions from: Auke Kok, Colin Walters, Cristian
20833 Rodríguez, Daniel Buch, Dave Reisner, Frederic Crozat, Hannes
20834 Reinecke, Harald Hoyer, Jan Alexander Steffens, Jan
20835 Engelhardt, Josh Triplett, Kay Sievers, Lennart Poettering,
20836 Mantas Mikulėnas, Martin Pitt, Mathieu Bridon, Michael Biebl,
20837 Michal Schmidt, Michal Sekletar, Miklos Vajna, Nathaniel Chen,
20838 Oleksii Shevchuk, Ozan Çağlayan, Thomas Hindoe Paaboel
20839 Andersen, Tollef Fog Heen, Tom Gundersen, Umut Tezduyar,
20840 Zbigniew Jędrzejewski-Szmek
20841
20842 CHANGES WITH 198:
20843
20844 * Configuration of unit files may now be extended via drop-in
20845 files without having to edit/override the unit files
20846 themselves. More specifically, if the administrator wants to
20847 change one value for a service file foobar.service he can
20848 now do so by dropping in a configuration snippet into
20849 /etc/systemd/system/foobar.service.d/*.conf. The unit logic
20850 will load all these snippets and apply them on top of the
20851 main unit configuration file, possibly extending or
20852 overriding its settings. Using these drop-in snippets is
20853 generally nicer than the two earlier options for changing
20854 unit files locally: copying the files from
20855 /usr/lib/systemd/system/ to /etc/systemd/system/ and editing
20856 them there; or creating a new file in /etc/systemd/system/
20857 that incorporates the original one via ".include". Drop-in
20858 snippets into these .d/ directories can be placed in any
20859 directory systemd looks for units in, and the usual
20860 overriding semantics between /usr/lib, /etc and /run apply
20861 for them too.
20862
20863 * Most unit file settings which take lists of items can now be
20864 reset by assigning the empty string to them. For example,
20865 normally, settings such as Environment=FOO=BAR append a new
20866 environment variable assignment to the environment block,
20867 each time they are used. By assigning Environment= the empty
20868 string the environment block can be reset to empty. This is
20869 particularly useful with the .d/*.conf drop-in snippets
20870 mentioned above, since this adds the ability to reset list
20871 settings from vendor unit files via these drop-ins.
20872
20873 * systemctl gained a new "list-dependencies" command for
20874 listing the dependencies of a unit recursively.
20875
20876 * Inhibitors are now honored and listed by "systemctl
20877 suspend", "systemctl poweroff" (and similar) too, not only
20878 GNOME. These commands will also list active sessions by
20879 other users.
20880
20881 * Resource limits (as exposed by the various control group
20882 controllers) can now be controlled dynamically at runtime
20883 for all units. More specifically, you can now use a command
20884 like "systemctl set-cgroup-attr foobar.service cpu.shares
20885 2000" to alter the CPU shares a specific service gets. These
20886 settings are stored persistently on disk, and thus allow the
20887 administrator to easily adjust the resource usage of
20888 services with a few simple commands. This dynamic resource
20889 management logic is also available to other programs via the
20890 bus. Almost any kernel cgroup attribute and controller is
20891 supported.
20892
20893 * systemd-vconsole-setup will now copy all font settings to
20894 all allocated VTs, where it previously applied them only to
20895 the foreground VT.
20896
20897 * libsystemd-login gained the new sd_session_get_tty() API
20898 call.
20899
20900 * This release drops support for a few legacy or
20901 distribution-specific LSB facility names when parsing init
20902 scripts: $x-display-manager, $mail-transfer-agent,
20903 $mail-transport-agent, $mail-transfer-agent, $smtp,
20904 $null. Also, the mail-transfer-agent.target unit backing
20905 this has been removed. Distributions which want to retain
20906 compatibility with this should carry the burden for
20907 supporting this themselves and patch support for these back
20908 in, if they really need to. Also, the facilities $syslog and
20909 $local_fs are now ignored, since systemd does not support
20910 early-boot LSB init scripts anymore, and these facilities
20911 are implied anyway for normal services. syslog.target has
20912 also been removed.
20913
20914 * There are new bus calls on PID1's Manager object for
20915 cancelling jobs, and removing snapshot units. Previously,
20916 both calls were only available on the Job and Snapshot
20917 objects themselves.
20918
20919 * systemd-journal-gatewayd gained SSL support.
20920
20921 * The various "environment" files, such as /etc/locale.conf
20922 now support continuation lines with a backslash ("\") as
20923 last character in the line, similarly in style (but different)
20924 to how this is supported in shells.
20925
20926 * For normal user processes the _SYSTEMD_USER_UNIT= field is
20927 now implicitly appended to every log entry logged. systemctl
20928 has been updated to filter by this field when operating on a
20929 user systemd instance.
20930
20931 * nspawn will now implicitly add the CAP_AUDIT_WRITE and
20932 CAP_AUDIT_CONTROL capabilities to the capabilities set for
20933 the container. This makes it easier to boot unmodified
20934 Fedora systems in a container, which however still requires
20935 audit=0 to be passed on the kernel command line. Auditing in
20936 kernel and userspace is unfortunately still too broken in
20937 context of containers, hence we recommend compiling it out
20938 of the kernel or using audit=0. Hopefully this will be fixed
20939 one day for good in the kernel.
20940
20941 * nspawn gained the new --bind= and --bind-ro= parameters to
20942 bind mount specific directories from the host into the
20943 container.
20944
20945 * nspawn will now mount its own devpts file system instance
20946 into the container, in order not to leak pty devices from
20947 the host into the container.
20948
20949 * systemd will now read the firmware boot time performance
20950 information from the EFI variables, if the used boot loader
20951 supports this, and takes it into account for boot performance
20952 analysis via "systemd-analyze". This is currently supported
20953 only in conjunction with Gummiboot, but could be supported
20954 by other boot loaders too. For details see:
20955
20956 https://systemd.io/BOOT_LOADER_INTERFACE
20957
20958 * A new generator has been added that automatically mounts the
20959 EFI System Partition (ESP) to /boot, if that directory
20960 exists, is empty, and no other file system has been
20961 configured to be mounted there.
20962
20963 * logind will now send out PrepareForSleep(false) out
20964 unconditionally, after coming back from suspend. This may be
20965 used by applications as asynchronous notification for
20966 system resume events.
20967
20968 * "systemctl unlock-sessions" has been added, that allows
20969 unlocking the screens of all user sessions at once, similar
20970 to how "systemctl lock-sessions" already locked all users
20971 sessions. This is backed by a new D-Bus call UnlockSessions().
20972
20973 * "loginctl seat-status" will now show the master device of a
20974 seat. (i.e. the device of a seat that needs to be around for
20975 the seat to be considered available, usually the graphics
20976 card).
20977
20978 * tmpfiles gained a new "X" line type, that allows
20979 configuration of files and directories (with wildcards) that
20980 shall be excluded from automatic cleanup ("aging").
20981
20982 * udev default rules set the device node permissions now only
20983 at "add" events, and do not change them any longer with a
20984 later "change" event.
20985
20986 * The log messages for lid events and power/sleep keypresses
20987 now carry a message ID.
20988
20989 * We now have a substantially larger unit test suite, but this
20990 continues to be work in progress.
20991
20992 * udevadm hwdb gained a new --root= parameter to change the
20993 root directory to operate relative to.
20994
20995 * logind will now issue a background sync() request to the kernel
20996 early at shutdown, so that dirty buffers are flushed to disk early
20997 instead of at the last moment, in order to optimize shutdown
20998 times a little.
20999
21000 * A new bootctl tool has been added that is an interface for
21001 certain boot loader operations. This is currently a preview
21002 and is likely to be extended into a small mechanism daemon
21003 like timedated, localed, hostnamed, and can be used by
21004 graphical UIs to enumerate available boot options, and
21005 request boot into firmware operations.
21006
21007 * systemd-bootchart has been relicensed to LGPLv2.1+ to match
21008 the rest of the package. It also has been updated to work
21009 correctly in initrds.
21010
21011 * polkit previously has been runtime optional, and is now also
21012 compile time optional via a configure switch.
21013
21014 * systemd-analyze has been reimplemented in C. Also "systemctl
21015 dot" has moved into systemd-analyze.
21016
21017 * "systemctl status" with no further parameters will now print
21018 the status of all active or failed units.
21019
21020 * Operations such as "systemctl start" can now be executed
21021 with a new mode "--irreversible" which may be used to queue
21022 operations that cannot accidentally be reversed by a later
21023 job queuing. This is by default used to make shutdown
21024 requests more robust.
21025
21026 * The Python API of systemd now gained a new module for
21027 reading journal files.
21028
21029 * A new tool kernel-install has been added that can install
21030 kernel images according to the Boot Loader Specification:
21031
21032 https://systemd.io/BOOT_LOADER_SPECIFICATION
21033
21034 * Boot time console output has been improved to provide
21035 animated boot time output for hanging jobs.
21036
21037 * A new tool systemd-activate has been added which can be used
21038 to test socket activation with, directly from the command
21039 line. This should make it much easier to test and debug
21040 socket activation in daemons.
21041
21042 * journalctl gained a new "--reverse" (or -r) option to show
21043 journal output in reverse order (i.e. newest line first).
21044
21045 * journalctl gained a new "--pager-end" (or -e) option to jump
21046 to immediately jump to the end of the journal in the
21047 pager. This is only supported in conjunction with "less".
21048
21049 * journalctl gained a new "--user-unit=" option, that works
21050 similarly to "--unit=" but filters for user units rather than
21051 system units.
21052
21053 * A number of unit files to ease adoption of systemd in
21054 initrds has been added. This moves some minimal logic from
21055 the various initrd implementations into systemd proper.
21056
21057 * The journal files are now owned by a new group
21058 "systemd-journal", which exists specifically to allow access
21059 to the journal, and nothing else. Previously, we used the
21060 "adm" group for that, which however possibly covers more
21061 than just journal/log file access. This new group is now
21062 already used by systemd-journal-gatewayd to ensure this
21063 daemon gets access to the journal files and as little else
21064 as possible. Note that "make install" will also set FS ACLs
21065 up for /var/log/journal to give "adm" and "wheel" read
21066 access to it, in addition to "systemd-journal" which owns
21067 the journal files. We recommend that packaging scripts also
21068 add read access to "adm" + "wheel" to /var/log/journal, and
21069 all existing/future journal files. To normal users and
21070 administrators little changes, however packagers need to
21071 ensure to create the "systemd-journal" system group at
21072 package installation time.
21073
21074 * The systemd-journal-gatewayd now runs as unprivileged user
21075 systemd-journal-gateway:systemd-journal-gateway. Packaging
21076 scripts need to create these system user/group at
21077 installation time.
21078
21079 * timedated now exposes a new boolean property CanNTP that
21080 indicates whether a local NTP service is available or not.
21081
21082 * systemd-detect-virt will now also detect xen PVs
21083
21084 * The pstore file system is now mounted by default, if it is
21085 available.
21086
21087 * In addition to the SELinux and IMA policies we will now also
21088 load SMACK policies at early boot.
21089
21090 Contributions from: Adel Gadllah, Aleksander Morgado, Auke
21091 Kok, Ayan George, Bastien Nocera, Colin Walters, Daniel Buch,
21092 Daniel Wallace, Dave Reisner, David Herrmann, David Strauss,
21093 Eelco Dolstra, Enrico Scholz, Frederic Crozat, Harald Hoyer,
21094 Jan Janssen, Jonathan Callen, Kay Sievers, Lennart Poettering,
21095 Lukas Nykryn, Mantas Mikulėnas, Marc-Antoine Perennou, Martin
21096 Pitt, Mauro Dreissig, Max F. Albrecht, Michael Biebl, Michael
21097 Olbrich, Michal Schmidt, Michal Sekletar, Michal Vyskocil,
21098 Michał Bartoszkiewicz, Mirco Tischler, Nathaniel Chen, Nestor
21099 Ovroy, Oleksii Shevchuk, Paul W. Frields, Piotr Drąg, Rob
21100 Clark, Ryan Lortie, Simon McVittie, Simon Peeters, Steven
21101 Hiscocks, Thomas Hindoe Paaboel Andersen, Tollef Fog Heen, Tom
21102 Gundersen, Umut Tezduyar, William Giokas, Zbigniew
21103 Jędrzejewski-Szmek, Zeeshan Ali (Khattak)
21104
21105 CHANGES WITH 197:
21106
21107 * Timer units now support calendar time events in addition to
21108 monotonic time events. That means you can now trigger a unit
21109 based on a calendar time specification such as "Thu,Fri
21110 2013-*-1,5 11:12:13" which refers to 11:12:13 of the first
21111 or fifth day of any month of the year 2013, given that it is
21112 a Thursday or a Friday. This brings timer event support
21113 considerably closer to cron's capabilities. For details on
21114 the supported calendar time specification language see
21115 systemd.time(7).
21116
21117 * udev now supports a number of different naming policies for
21118 network interfaces for predictable names, and a combination
21119 of these policies is now the default. Please see this wiki
21120 document for details:
21121
21122 https://www.freedesktop.org/software/systemd/man/systemd.net-naming-scheme.html
21123
21124 * Auke Kok's bootchart implementation has been added to the
21125 systemd tree. It is an optional component that can graph the
21126 boot in quite some detail. It is one of the best bootchart
21127 implementations around and minimal in its code and
21128 dependencies.
21129
21130 * nss-myhostname has been integrated into the systemd source
21131 tree. nss-myhostname guarantees that the local hostname
21132 always stays resolvable via NSS. It has been a weak
21133 requirement of systemd-hostnamed since a long time, and
21134 since its code is actually trivial we decided to just
21135 include it in systemd's source tree. It can be turned off
21136 with a configure switch.
21137
21138 * The read-ahead logic is now capable of properly detecting
21139 whether a btrfs file system is on SSD or rotating media, in
21140 order to optimize the read-ahead scheme. Previously, it was
21141 only capable of detecting this on traditional file systems
21142 such as ext4.
21143
21144 * In udev, additional device properties are now read from the
21145 IAB in addition to the OUI database. Also, Bluetooth company
21146 identities are attached to the devices as well.
21147
21148 * In service files %U may be used as specifier that is
21149 replaced by the configured user name of the service.
21150
21151 * nspawn may now be invoked without a controlling TTY. This
21152 makes it suitable for invocation as its own service. This
21153 may be used to set up a simple containerized server system
21154 using only core OS tools.
21155
21156 * systemd and nspawn can now accept socket file descriptors
21157 when they are started for socket activation. This enables
21158 implementation of socket activated nspawn
21159 containers. i.e. think about autospawning an entire OS image
21160 when the first SSH or HTTP connection is received. We expect
21161 that similar functionality will also be added to libvirt-lxc
21162 eventually.
21163
21164 * journalctl will now suppress ANSI color codes when
21165 presenting log data.
21166
21167 * systemctl will no longer show control group information for
21168 a unit if the control group is empty anyway.
21169
21170 * logind can now automatically suspend/hibernate/shutdown the
21171 system on idle.
21172
21173 * /etc/machine-info and hostnamed now also expose the chassis
21174 type of the system. This can be used to determine whether
21175 the local system is a laptop, desktop, handset or
21176 tablet. This information may either be configured by the
21177 user/vendor or is automatically determined from ACPI and DMI
21178 information if possible.
21179
21180 * A number of polkit actions are now bound together with "imply"
21181 rules. This should simplify creating UIs because many actions
21182 will now authenticate similar ones as well.
21183
21184 * Unit files learnt a new condition ConditionACPower= which
21185 may be used to conditionalize a unit depending on whether an
21186 AC power source is connected or not, of whether the system
21187 is running on battery power.
21188
21189 * systemctl gained a new "is-failed" verb that may be used in
21190 shell scripts and suchlike to check whether a specific unit
21191 is in the "failed" state.
21192
21193 * The EnvironmentFile= setting in unit files now supports file
21194 globbing, and can hence be used to easily read a number of
21195 environment files at once.
21196
21197 * systemd will no longer detect and recognize specific
21198 distributions. All distribution-specific #ifdeffery has been
21199 removed, systemd is now fully generic and
21200 distribution-agnostic. Effectively, not too much is lost as
21201 a lot of the code is still accessible via explicit configure
21202 switches. However, support for some distribution specific
21203 legacy configuration file formats has been dropped. We
21204 recommend distributions to simply adopt the configuration
21205 files everybody else uses now and convert the old
21206 configuration from packaging scripts. Most distributions
21207 already did that. If that's not possible or desirable,
21208 distributions are welcome to forward port the specific
21209 pieces of code locally from the git history.
21210
21211 * When logging a message about a unit systemd will now always
21212 log the unit name in the message meta data.
21213
21214 * localectl will now also discover system locale data that is
21215 not stored in locale archives, but directly unpacked.
21216
21217 * logind will no longer unconditionally use framebuffer
21218 devices as seat masters, i.e. as devices that are required
21219 to be existing before a seat is considered preset. Instead,
21220 it will now look for all devices that are tagged as
21221 "seat-master" in udev. By default, framebuffer devices will
21222 be marked as such, but depending on local systems, other
21223 devices might be marked as well. This may be used to
21224 integrate graphics cards using closed source drivers (such
21225 as NVidia ones) more nicely into logind. Note however, that
21226 we recommend using the open source NVidia drivers instead,
21227 and no udev rules for the closed-source drivers will be
21228 shipped from us upstream.
21229
21230 Contributions from: Adam Williamson, Alessandro Crismani, Auke
21231 Kok, Colin Walters, Daniel Wallace, Dave Reisner, David
21232 Herrmann, David Strauss, Dimitrios Apostolou, Eelco Dolstra,
21233 Eric Benoit, Giovanni Campagna, Hannes Reinecke, Henrik
21234 Grindal Bakken, Hermann Gausterer, Kay Sievers, Lennart
21235 Poettering, Lukas Nykryn, Mantas Mikulėnas, Marcel Holtmann,
21236 Martin Pitt, Matthew Monaco, Michael Biebl, Michael Terry,
21237 Michal Schmidt, Michal Sekletar, Michał Bartoszkiewicz, Oleg
21238 Samarin, Pekka Lundstrom, Philip Nilsson, Ramkumar
21239 Ramachandra, Richard Yao, Robert Millan, Sami Kerola, Shawn
21240 Landden, Thomas Hindoe Paaboel Andersen, Thomas Jarosch,
21241 Tollef Fog Heen, Tom Gundersen, Umut Tezduyar, Zbigniew
21242 Jędrzejewski-Szmek
21243
21244 CHANGES WITH 196:
21245
21246 * udev gained support for loading additional device properties
21247 from an indexed database that is keyed by vendor/product IDs
21248 and similar device identifiers. For the beginning this
21249 "hwdb" is populated with data from the well-known PCI and
21250 USB database, but also includes PNP, ACPI and OID data. In
21251 the longer run this indexed database shall grow into
21252 becoming the one central database for non-essential
21253 userspace device metadata. Previously, data from the PCI/USB
21254 database was only attached to select devices, since the
21255 lookup was a relatively expensive operation due to O(n) time
21256 complexity (with n being the number of entries in the
21257 database). Since this is now O(1), we decided to add in this
21258 data for all devices where this is available, by
21259 default. Note that the indexed database needs to be rebuilt
21260 when new data files are installed. To achieve this you need
21261 to update your packaging scripts to invoke "udevadm hwdb
21262 --update" after installation of hwdb data files. For
21263 RPM-based distributions we introduced the new
21264 %udev_hwdb_update macro for this purpose.
21265
21266 * The Journal gained support for the "Message Catalog", an
21267 indexed database to link up additional information with
21268 journal entries. For further details please check:
21269
21270 https://systemd.io/CATALOG
21271
21272 The indexed message catalog database also needs to be
21273 rebuilt after installation of message catalog files. Use
21274 "journalctl --update-catalog" for this. For RPM-based
21275 distributions we introduced the %journal_catalog_update
21276 macro for this purpose.
21277
21278 * The Python Journal bindings gained support for the standard
21279 Python logging framework.
21280
21281 * The Journal API gained new functions for checking whether
21282 the underlying file system of a journal file is capable of
21283 properly reporting file change notifications, or whether
21284 applications that want to reflect journal changes "live"
21285 need to recheck journal files continuously in appropriate
21286 time intervals.
21287
21288 * It is now possible to set the "age" field for tmpfiles
21289 entries to 0, indicating that files matching this entry
21290 shall always be removed when the directories are cleaned up.
21291
21292 * coredumpctl gained a new "gdb" verb which invokes gdb
21293 right-away on the selected coredump.
21294
21295 * There's now support for "hybrid sleep" on kernels that
21296 support this, in addition to "suspend" and "hibernate". Use
21297 "systemctl hybrid-sleep" to make use of this.
21298
21299 * logind's HandleSuspendKey= setting (and related settings)
21300 now gained support for a new "lock" setting to simply
21301 request the screen lock on all local sessions, instead of
21302 actually executing a suspend or hibernation.
21303
21304 * systemd will now mount the EFI variables file system by
21305 default.
21306
21307 * Socket units now gained support for configuration of the
21308 SMACK security label.
21309
21310 * timedatectl will now output the time of the last and next
21311 daylight saving change.
21312
21313 * We dropped support for various legacy and distro-specific
21314 concepts, such as insserv, early-boot SysV services
21315 (i.e. those for non-standard runlevels such as 'b' or 'S')
21316 or ArchLinux /etc/rc.conf support. We recommend the
21317 distributions who still need support this to either continue
21318 to maintain the necessary patches downstream, or find a
21319 different solution. (Talk to us if you have questions!)
21320
21321 * Various systemd components will now bypass polkit checks for
21322 root and otherwise handle properly if polkit is not found to
21323 be around. This should fix most issues for polkit-less
21324 systems. Quite frankly this should have been this way since
21325 day one. It is absolutely our intention to make systemd work
21326 fine on polkit-less systems, and we consider it a bug if
21327 something does not work as it should if polkit is not around.
21328
21329 * For embedded systems it is now possible to build udev and
21330 systemd without blkid and/or kmod support.
21331
21332 * "systemctl switch-root" is now capable of switching root
21333 more than once. I.e. in addition to transitions from the
21334 initrd to the host OS it is now possible to transition to
21335 further OS images from the host. This is useful to implement
21336 offline updating tools.
21337
21338 * Various other additions have been made to the RPM macros
21339 shipped with systemd. Use %udev_rules_update() after
21340 installing new udev rules files. %_udevhwdbdir,
21341 %_udevrulesdir, %_journalcatalogdir, %_tmpfilesdir,
21342 %_sysctldir are now available which resolve to the right
21343 directories for packages to place various data files in.
21344
21345 * journalctl gained the new --full switch (in addition to
21346 --all, to disable ellipsation for long messages.
21347
21348 Contributions from: Anders Olofsson, Auke Kok, Ben Boeckel,
21349 Colin Walters, Cosimo Cecchi, Daniel Wallace, Dave Reisner,
21350 Eelco Dolstra, Holger Hans Peter Freyther, Kay Sievers,
21351 Chun-Yi Lee, Lekensteyn, Lennart Poettering, Mantas Mikulėnas,
21352 Marti Raudsepp, Martin Pitt, Mauro Dreissig, Michael Biebl,
21353 Michal Schmidt, Michal Sekletar, Miklos Vajna, Nis Martensen,
21354 Oleksii Shevchuk, Olivier Brunel, Ramkumar Ramachandra, Thomas
21355 Bächler, Thomas Hindoe Paaboel Andersen, Tom Gundersen, Tony
21356 Camuso, Umut Tezduyar, Zbigniew Jędrzejewski-Szmek
21357
21358 CHANGES WITH 195:
21359
21360 * journalctl gained new --since= and --until= switches to
21361 filter by time. It also now supports nice filtering for
21362 units via --unit=/-u.
21363
21364 * Type=oneshot services may use ExecReload= and do the
21365 right thing.
21366
21367 * The journal daemon now supports time-based rotation and
21368 vacuuming, in addition to the usual disk-space based
21369 rotation.
21370
21371 * The journal will now index the available field values for
21372 each field name. This enables clients to show pretty drop
21373 downs of available match values when filtering. The bash
21374 completion of journalctl has been updated
21375 accordingly. journalctl gained a new switch -F to list all
21376 values a certain field takes in the journal database.
21377
21378 * More service events are now written as structured messages
21379 to the journal, and made recognizable via message IDs.
21380
21381 * The timedated, localed and hostnamed mini-services which
21382 previously only provided support for changing time, locale
21383 and hostname settings from graphical DEs such as GNOME now
21384 also have a minimal (but very useful) text-based client
21385 utility each. This is probably the nicest way to changing
21386 these settings from the command line now, especially since
21387 it lists available options and is fully integrated with bash
21388 completion.
21389
21390 * There's now a new tool "systemd-coredumpctl" to list and
21391 extract coredumps from the journal.
21392
21393 * We now install a README each in /var/log/ and
21394 /etc/rc.d/init.d explaining where the system logs and init
21395 scripts went. This hopefully should help folks who go to
21396 that dirs and look into the otherwise now empty void and
21397 scratch their heads.
21398
21399 * When user-services are invoked (by systemd --user) the
21400 $MANAGERPID env var is set to the PID of systemd.
21401
21402 * SIGRTMIN+24 when sent to a --user instance will now result
21403 in immediate termination of systemd.
21404
21405 * gatewayd received numerous feature additions such as a
21406 "follow" mode, for live syncing and filtering.
21407
21408 * browse.html now allows filtering and showing detailed
21409 information on specific entries. Keyboard navigation and
21410 mouse screen support has been added.
21411
21412 * gatewayd/journalctl now supports HTML5/JSON
21413 Server-Sent-Events as output.
21414
21415 * The SysV init script compatibility logic will now
21416 heuristically determine whether a script supports the
21417 "reload" verb, and only then make this available as
21418 "systemctl reload".
21419
21420 * "systemctl status --follow" has been removed, use "journalctl
21421 -u" instead.
21422
21423 * journald.conf's RuntimeMinSize=, PersistentMinSize= settings
21424 have been removed since they are hardly useful to be
21425 configured.
21426
21427 * And I'd like to take the opportunity to specifically mention
21428 Zbigniew for his great contributions. Zbigniew, you rock!
21429
21430 Contributions from: Andrew Eikum, Christian Hesse, Colin
21431 Guthrie, Daniel J Walsh, Dave Reisner, Eelco Dolstra, Ferenc
21432 Wágner, Kay Sievers, Lennart Poettering, Lukas Nykryn, Mantas
21433 Mikulėnas, Martin Mikkelsen, Martin Pitt, Michael Olbrich,
21434 Michael Stapelberg, Michal Schmidt, Sebastian Ott, Thomas
21435 Bächler, Umut Tezduyar, Will Woods, Wulf C. Krueger, Zbigniew
21436 Jędrzejewski-Szmek, Сковорода Никита Андреевич
21437
21438 CHANGES WITH 194:
21439
21440 * If /etc/vconsole.conf is non-existent or empty we will no
21441 longer load any console font or key map at boot by
21442 default. Instead the kernel defaults will be left
21443 intact. This is definitely the right thing to do, as no
21444 configuration should mean no configuration, and hard-coding
21445 font names that are different on all archs is probably a bad
21446 idea. Also, the kernel default key map and font should be
21447 good enough for most cases anyway, and mostly identical to
21448 the userspace fonts/key maps we previously overloaded them
21449 with. If distributions want to continue to default to a
21450 non-kernel font or key map they should ship a default
21451 /etc/vconsole.conf with the appropriate contents.
21452
21453 Contributions from: Colin Walters, Daniel J Walsh, Dave
21454 Reisner, Kay Sievers, Lennart Poettering, Lukas Nykryn, Tollef
21455 Fog Heen, Tom Gundersen, Zbigniew Jędrzejewski-Szmek
21456
21457 CHANGES WITH 193:
21458
21459 * journalctl gained a new --cursor= switch to show entries
21460 starting from the specified location in the journal.
21461
21462 * We now enforce a size limit on journal entry fields exported
21463 with "-o json" in journalctl. Fields larger than 4K will be
21464 assigned null. This can be turned off with --all.
21465
21466 * An (optional) journal gateway daemon is now available as
21467 "systemd-journal-gatewayd.service". This service provides
21468 access to the journal via HTTP and JSON. This functionality
21469 will be used to implement live log synchronization in both
21470 pull and push modes, but has various other users too, such
21471 as easy log access for debugging of embedded devices. Right
21472 now it is already useful to retrieve the journal via HTTP:
21473
21474 # systemctl start systemd-journal-gatewayd.service
21475 # wget http://localhost:19531/entries
21476
21477 This will download the journal contents in a
21478 /var/log/messages compatible format. The same as JSON:
21479
21480 # curl -H"Accept: application/json" http://localhost:19531/entries
21481
21482 This service is also accessible via a web browser where a
21483 single static HTML5 app is served that uses the JSON logic
21484 to enable the user to do some basic browsing of the
21485 journal. This will be extended later on. Here's an example
21486 screenshot of this app in its current state:
21487
21488 https://0pointer.de/public/journal-gatewayd
21489
21490 Contributions from: Kay Sievers, Lennart Poettering, Robert
21491 Milasan, Tom Gundersen
21492
21493 CHANGES WITH 192:
21494
21495 * The bash completion logic is now available for journalctl
21496 too.
21497
21498 * We do not mount the "cpuset" controller anymore together with
21499 "cpu" and "cpuacct", as "cpuset" groups generally cannot be
21500 started if no parameters are assigned to it. "cpuset" hence
21501 broke code that assumed it could create "cpu" groups and
21502 just start them.
21503
21504 * journalctl -f will now subscribe to terminal size changes,
21505 and line break accordingly.
21506
21507 Contributions from: Dave Reisner, Kay Sievers, Lennart
21508 Poettering, Lukas Nykrynm, Mirco Tischler, Václav Pavlín
21509
21510 CHANGES WITH 191:
21511
21512 * nspawn will now create a symlink /etc/localtime in the
21513 container environment, copying the host's timezone
21514 setting. Previously this has been done via a bind mount, but
21515 since symlinks cannot be bind mounted this has now been
21516 changed to create/update the appropriate symlink.
21517
21518 * journalctl -n's line number argument is now optional, and
21519 will default to 10 if omitted.
21520
21521 * journald will now log the maximum size the journal files may
21522 take up on disk. This is particularly useful if the default
21523 built-in logic of determining this parameter from the file
21524 system size is used. Use "systemctl status
21525 systemd-journald.service" to see this information.
21526
21527 * The multi-seat X wrapper tool has been stripped down. As X
21528 is now capable of enumerating graphics devices via udev in a
21529 seat-aware way the wrapper is not strictly necessary
21530 anymore. A stripped down temporary stop-gap is still shipped
21531 until the upstream display managers have been updated to
21532 fully support the new X logic. Expect this wrapper to be
21533 removed entirely in one of the next releases.
21534
21535 * HandleSleepKey= in logind.conf has been split up into
21536 HandleSuspendKey= and HandleHibernateKey=. The old setting
21537 is not available anymore. X11 and the kernel are
21538 distinguishing between these keys and we should too. This
21539 also means the inhibition lock for these keys has been split
21540 into two.
21541
21542 Contributions from: Dave Airlie, Eelco Dolstra, Lennart
21543 Poettering, Lukas Nykryn, Václav Pavlín
21544
21545 CHANGES WITH 190:
21546
21547 * Whenever a unit changes state we will now log this to the
21548 journal and show along the unit's own log output in
21549 "systemctl status".
21550
21551 * ConditionPathIsMountPoint= can now properly detect bind
21552 mount points too. (Previously, a bind mount of one file
21553 system to another place in the same file system could not be
21554 detected as mount, since they shared struct stat's st_dev
21555 field.)
21556
21557 * We will now mount the cgroup controllers cpu, cpuacct,
21558 cpuset and the controllers net_cls, net_prio together by
21559 default.
21560
21561 * nspawn containers will now have a virtualized boot
21562 ID. (i.e. /proc/sys/kernel/random/boot_id is now mounted
21563 over with a randomized ID at container initialization). This
21564 has the effect of making "journalctl -b" do the right thing
21565 in a container.
21566
21567 * The JSON output journal serialization has been updated not
21568 to generate "endless" list objects anymore, but rather one
21569 JSON object per line. This is more in line how most JSON
21570 parsers expect JSON objects. The new output mode
21571 "json-pretty" has been added to provide similar output, but
21572 neatly aligned for readability by humans.
21573
21574 * We dropped all explicit sync() invocations in the shutdown
21575 code. The kernel does this implicitly anyway in the kernel
21576 reboot() syscall. halt(8)'s -n option is now a compatibility
21577 no-op.
21578
21579 * We now support virtualized reboot() in containers, as
21580 supported by newer kernels. We will fall back to exit() if
21581 CAP_SYS_REBOOT is not available to the container. Also,
21582 nspawn makes use of this now and will actually reboot the
21583 container if the containerized OS asks for that.
21584
21585 * journalctl will only show local log output by default
21586 now. Use --merge (-m) to show remote log output, too.
21587
21588 * libsystemd-journal gained the new sd_journal_get_usage()
21589 call to determine the current disk usage of all journal
21590 files. This is exposed in the new "journalctl --disk-usage"
21591 command.
21592
21593 * journald gained a new configuration setting SplitMode= in
21594 journald.conf which may be used to control how user journals
21595 are split off. See journald.conf(5) for details.
21596
21597 * A new condition type ConditionFileNotEmpty= has been added.
21598
21599 * tmpfiles' "w" lines now support file globbing, to write
21600 multiple files at once.
21601
21602 * We added Python bindings for the journal submission
21603 APIs. More Python APIs for a number of selected APIs will
21604 likely follow. Note that we intend to add native bindings
21605 only for the Python language, as we consider it common
21606 enough to deserve bindings shipped within systemd. There are
21607 various projects outside of systemd that provide bindings
21608 for languages such as PHP or Lua.
21609
21610 * Many conditions will now resolve specifiers such as %i. In
21611 addition, PathChanged= and related directives of .path units
21612 now support specifiers as well.
21613
21614 * There's now a new RPM macro definition for the system preset
21615 dir: %_presetdir.
21616
21617 * journald will now warn if it ca not forward a message to the
21618 syslog daemon because its socket is full.
21619
21620 * timedated will no longer write or process /etc/timezone,
21621 except on Debian. As we do not support late mounted /usr
21622 anymore /etc/localtime always being a symlink is now safe,
21623 and hence the information in /etc/timezone is not necessary
21624 anymore.
21625
21626 * logind will now always reserve one VT for a text getty (VT6
21627 by default). Previously if more than 6 X sessions where
21628 started they took up all the VTs with auto-spawned gettys,
21629 so that no text gettys were available anymore.
21630
21631 * udev will now automatically inform the btrfs kernel logic
21632 about btrfs RAID components showing up. This should make
21633 simple hotplug based btrfs RAID assembly work.
21634
21635 * PID 1 will now increase its RLIMIT_NOFILE to 64K by default
21636 (but not for its children which will stay at the kernel
21637 default). This should allow setups with a lot more listening
21638 sockets.
21639
21640 * systemd will now always pass the configured timezone to the
21641 kernel at boot. timedated will do the same when the timezone
21642 is changed.
21643
21644 * logind's inhibition logic has been updated. By default,
21645 logind will now handle the lid switch, the power and sleep
21646 keys all the time, even in graphical sessions. If DEs want
21647 to handle these events on their own they should take the new
21648 handle-power-key, handle-sleep-key and handle-lid-switch
21649 inhibitors during their runtime. A simple way to achieve
21650 that is to invoke the DE wrapped in an invocation of:
21651
21652 systemd-inhibit --what=handle-power-key:handle-sleep-key:handle-lid-switch …
21653
21654 * Access to unit operations is now checked via SELinux taking
21655 the unit file label and client process label into account.
21656
21657 * systemd will now notify the administrator in the journal
21658 when he over-mounts a non-empty directory.
21659
21660 * There are new specifiers that are resolved in unit files,
21661 for the hostname (%H), the machine ID (%m) and the boot ID
21662 (%b).
21663
21664 Contributions from: Allin Cottrell, Auke Kok, Brandon Philips,
21665 Colin Guthrie, Colin Walters, Daniel J Walsh, Dave Reisner,
21666 Eelco Dolstra, Jan Engelhardt, Kay Sievers, Lennart
21667 Poettering, Lucas De Marchi, Lukas Nykryn, Mantas Mikulėnas,
21668 Martin Pitt, Matthias Clasen, Michael Olbrich, Pierre Schmitz,
21669 Shawn Landden, Thomas Hindoe Paaboel Andersen, Tom Gundersen,
21670 Václav Pavlín, Yin Kangkai, Zbigniew Jędrzejewski-Szmek
21671
21672 CHANGES WITH 189:
21673
21674 * Support for reading structured kernel messages from
21675 /dev/kmsg has now been added and is enabled by default.
21676
21677 * Support for reading kernel messages from /proc/kmsg has now
21678 been removed. If you want kernel messages in the journal
21679 make sure to run a recent kernel (>= 3.5) that supports
21680 reading structured messages from /dev/kmsg (see
21681 above). /proc/kmsg is now exclusive property of classic
21682 syslog daemons again.
21683
21684 * The libudev API gained the new
21685 udev_device_new_from_device_id() call.
21686
21687 * The logic for file system namespace (ReadOnlyDirectory=,
21688 ReadWriteDirectories=, PrivateTmp=) has been reworked not to
21689 require pivot_root() anymore. This means fewer temporary
21690 directories are created below /tmp for this feature.
21691
21692 * nspawn containers will now see and receive all submounts
21693 made on the host OS below the root file system of the
21694 container.
21695
21696 * Forward Secure Sealing is now supported for Journal files,
21697 which provide cryptographical sealing of journal files so
21698 that attackers cannot alter log history anymore without this
21699 being detectable. Lennart will soon post a blog story about
21700 this explaining it in more detail.
21701
21702 * There are two new service settings RestartPreventExitStatus=
21703 and SuccessExitStatus= which allow configuration of exit
21704 status (exit code or signal) which will be excepted from the
21705 restart logic, resp. consider successful.
21706
21707 * journalctl gained the new --verify switch that can be used
21708 to check the integrity of the structure of journal files and
21709 (if Forward Secure Sealing is enabled) the contents of
21710 journal files.
21711
21712 * nspawn containers will now be run with /dev/stdin, /dev/fd/
21713 and similar symlinks pre-created. This makes running shells
21714 as container init process a lot more fun.
21715
21716 * The fstab support can now handle PARTUUID= and PARTLABEL=
21717 entries.
21718
21719 * A new ConditionHost= condition has been added to match
21720 against the hostname (with globs) and machine ID. This is
21721 useful for clusters where a single OS image is used to
21722 provision a large number of hosts which shall run slightly
21723 different sets of services.
21724
21725 * Services which hit the restart limit will now be placed in a
21726 failure state.
21727
21728 Contributions from: Bertram Poettering, Dave Reisner, Huang
21729 Hang, Kay Sievers, Lennart Poettering, Lukas Nykryn, Martin
21730 Pitt, Simon Peeters, Zbigniew Jędrzejewski-Szmek
21731
21732 CHANGES WITH 188:
21733
21734 * When running in --user mode systemd will now become a
21735 subreaper (PR_SET_CHILD_SUBREAPER). This should make the ps
21736 tree a lot more organized.
21737
21738 * A new PartOf= unit dependency type has been introduced that
21739 may be used to group services in a natural way.
21740
21741 * "systemctl enable" may now be used to enable instances of
21742 services.
21743
21744 * journalctl now prints error log levels in red, and
21745 warning/notice log levels in bright white. It also supports
21746 filtering by log level now.
21747
21748 * cgtop gained a new -n switch (similar to top), to configure
21749 the maximum number of iterations to run for. It also gained
21750 -b, to run in batch mode (accepting no input).
21751
21752 * The suffix ".service" may now be omitted on most systemctl
21753 command lines involving service unit names.
21754
21755 * There's a new bus call in logind to lock all sessions, as
21756 well as a loginctl verb for it "lock-sessions".
21757
21758 * libsystemd-logind.so gained a new call sd_journal_perror()
21759 that works similar to libc perror() but logs to the journal
21760 and encodes structured information about the error number.
21761
21762 * /etc/crypttab entries now understand the new keyfile-size=
21763 option.
21764
21765 * shutdown(8) now can send a (configurable) wall message when
21766 a shutdown is cancelled.
21767
21768 * The mount propagation mode for the root file system will now
21769 default to "shared", which is useful to make containers work
21770 nicely out-of-the-box so that they receive new mounts from
21771 the host. This can be undone locally by running "mount
21772 --make-rprivate /" if needed.
21773
21774 * The prefdm.service file has been removed. Distributions
21775 should maintain this unit downstream if they intend to keep
21776 it around. However, we recommend writing normal unit files
21777 for display managers instead.
21778
21779 * Since systemd is a crucial part of the OS we will now
21780 default to a number of compiler switches that improve
21781 security (hardening) such as read-only relocations, stack
21782 protection, and suchlike.
21783
21784 * The TimeoutSec= setting for services is now split into
21785 TimeoutStartSec= and TimeoutStopSec= to allow configuration
21786 of individual time outs for the start and the stop phase of
21787 the service.
21788
21789 Contributions from: Artur Zaprzala, Arvydas Sidorenko, Auke
21790 Kok, Bryan Kadzban, Dave Reisner, David Strauss, Harald Hoyer,
21791 Jim Meyering, Kay Sievers, Lennart Poettering, Mantas
21792 Mikulėnas, Martin Pitt, Michal Schmidt, Michal Sekletar, Peter
21793 Alfredsen, Shawn Landden, Simon Peeters, Terence Honles, Tom
21794 Gundersen, Zbigniew Jędrzejewski-Szmek
21795
21796 CHANGES WITH 187:
21797
21798 * The journal and id128 C APIs are now fully documented as man
21799 pages.
21800
21801 * Extra safety checks have been added when transitioning from
21802 the initial RAM disk to the main system to avoid accidental
21803 data loss.
21804
21805 * /etc/crypttab entries now understand the new keyfile-offset=
21806 option.
21807
21808 * systemctl -t can now be used to filter by unit load state.
21809
21810 * The journal C API gained the new sd_journal_wait() call to
21811 make writing synchronous journal clients easier.
21812
21813 * journalctl gained the new -D switch to show journals from a
21814 specific directory.
21815
21816 * journalctl now displays a special marker between log
21817 messages of two different boots.
21818
21819 * The journal is now explicitly flushed to /var via a service
21820 systemd-journal-flush.service, rather than implicitly simply
21821 by seeing /var/log/journal to be writable.
21822
21823 * journalctl (and the journal C APIs) can now match for much
21824 more complex expressions, with alternatives and
21825 disjunctions.
21826
21827 * When transitioning from the initial RAM disk to the main
21828 system we will now kill all processes in a killing spree to
21829 ensure no processes stay around by accident.
21830
21831 * Three new specifiers may be used in unit files: %u, %h, %s
21832 resolve to the user name, user home directory resp. user
21833 shell. This is useful for running systemd user instances.
21834
21835 * We now automatically rotate journal files if their data
21836 object hash table gets a fill level > 75%. We also size the
21837 hash table based on the configured maximum file size. This
21838 together should lower hash collisions drastically and thus
21839 speed things up a bit.
21840
21841 * journalctl gained the new "--header" switch to introspect
21842 header data of journal files.
21843
21844 * A new setting SystemCallFilters= has been added to services which may
21845 be used to apply deny lists or allow lists to system calls. This is
21846 based on SECCOMP Mode 2 of Linux 3.5.
21847
21848 * nspawn gained a new --link-journal= switch (and quicker: -j)
21849 to link the container journal with the host. This makes it
21850 very easy to centralize log viewing on the host for all
21851 guests while still keeping the journal files separated.
21852
21853 * Many bugfixes and optimizations
21854
21855 Contributions from: Auke Kok, Eelco Dolstra, Harald Hoyer, Kay
21856 Sievers, Lennart Poettering, Malte Starostik, Paul Menzel, Rex
21857 Tsai, Shawn Landden, Tom Gundersen, Ville Skyttä, Zbigniew
21858 Jędrzejewski-Szmek
21859
21860 CHANGES WITH 186:
21861
21862 * Several tools now understand kernel command line arguments,
21863 which are only read when run in an initial RAM disk. They
21864 usually follow closely their normal counterparts, but are
21865 prefixed with rd.
21866
21867 * There's a new tool to analyze the readahead files that are
21868 automatically generated at boot. Use:
21869
21870 /usr/lib/systemd/systemd-readahead analyze /.readahead
21871
21872 * We now provide an early debug shell on tty9 if this enabled. Use:
21873
21874 systemctl enable debug-shell.service
21875
21876 * All plymouth related units have been moved into the Plymouth
21877 package. Please make sure to upgrade your Plymouth version
21878 as well.
21879
21880 * systemd-tmpfiles now supports getting passed the basename of
21881 a configuration file only, in which case it will look for it
21882 in all appropriate directories automatically.
21883
21884 * udevadm info now takes a /dev or /sys path as argument, and
21885 does the right thing. Example:
21886
21887 udevadm info /dev/sda
21888 udevadm info /sys/class/block/sda
21889
21890 * systemctl now prints a warning if a unit is stopped but a
21891 unit that might trigger it continues to run. Example: a
21892 service is stopped but the socket that activates it is left
21893 running.
21894
21895 * "systemctl status" will now mention if the log output was
21896 shortened due to rotation since a service has been started.
21897
21898 * The journal API now exposes functions to determine the
21899 "cutoff" times due to rotation.
21900
21901 * journald now understands SIGUSR1 and SIGUSR2 for triggering
21902 immediately flushing of runtime logs to /var if possible,
21903 resp. for triggering immediate rotation of the journal
21904 files.
21905
21906 * It is now considered an error if a service is attempted to
21907 be stopped that is not loaded.
21908
21909 * XDG_RUNTIME_DIR now uses numeric UIDs instead of usernames.
21910
21911 * systemd-analyze now supports Python 3
21912
21913 * tmpfiles now supports cleaning up directories via aging
21914 where the first level dirs are always kept around but
21915 directories beneath it automatically aged. This is enabled
21916 by prefixing the age field with '~'.
21917
21918 * Seat objects now expose CanGraphical, CanTTY properties
21919 which is required to deal with very fast bootups where the
21920 display manager might be running before the graphics drivers
21921 completed initialization.
21922
21923 * Seat objects now expose a State property.
21924
21925 * We now include RPM macros for service enabling/disabling
21926 based on the preset logic. We recommend RPM based
21927 distributions to make use of these macros if possible. This
21928 makes it simpler to reuse RPM spec files across
21929 distributions.
21930
21931 * We now make sure that the collected systemd unit name is
21932 always valid when services log to the journal via
21933 STDOUT/STDERR.
21934
21935 * There's a new man page kernel-command-line(7) detailing all
21936 command line options we understand.
21937
21938 * The fstab generator may now be disabled at boot by passing
21939 fstab=0 on the kernel command line.
21940
21941 * A new kernel command line option modules-load= is now understood
21942 to load a specific kernel module statically, early at boot.
21943
21944 * Unit names specified on the systemctl command line are now
21945 automatically escaped as needed. Also, if file system or
21946 device paths are specified they are automatically turned
21947 into the appropriate mount or device unit names. Example:
21948
21949 systemctl status /home
21950 systemctl status /dev/sda
21951
21952 * The SysVConsole= configuration option has been removed from
21953 system.conf parsing.
21954
21955 * The SysV search path is no longer exported on the D-Bus
21956 Manager object.
21957
21958 * The Names= option has been removed from unit file parsing.
21959
21960 * There's a new man page bootup(7) detailing the boot process.
21961
21962 * Every unit and every generator we ship with systemd now
21963 comes with full documentation. The self-explanatory boot is
21964 complete.
21965
21966 * A couple of services gained "systemd-" prefixes in their
21967 name if they wrap systemd code, rather than only external
21968 code. Among them [email protected] which is now
21969 [email protected].
21970
21971 * The HaveWatchdog property has been removed from the D-Bus
21972 Manager object.
21973
21974 * systemd.confirm_spawn= on the kernel command line should now
21975 work sensibly.
21976
21977 * There's a new man page crypttab(5) which details all options
21978 we actually understand.
21979
21980 * systemd-nspawn gained a new --capability= switch to pass
21981 additional capabilities to the container.
21982
21983 * timedated will now read known NTP implementation unit names
21984 from /usr/lib/systemd/ntp-units.d/*.list,
21985 systemd-timedated-ntp.target has been removed.
21986
21987 * journalctl gained a new switch "-b" that lists log data of
21988 the current boot only.
21989
21990 * The notify socket is in the abstract namespace again, in
21991 order to support daemons which chroot() at start-up.
21992
21993 * There is a new Storage= configuration option for journald
21994 which allows configuration of where log data should go. This
21995 also provides a way to disable journal logging entirely, so
21996 that data collected is only forwarded to the console, the
21997 kernel log buffer or another syslog implementation.
21998
21999 * Many bugfixes and optimizations
22000
22001 Contributions from: Auke Kok, Colin Guthrie, Dave Reisner,
22002 David Strauss, Eelco Dolstra, Kay Sievers, Lennart Poettering,
22003 Lukas Nykryn, Michal Schmidt, Michal Sekletar, Paul Menzel,
22004 Shawn Landden, Tom Gundersen
22005
22006 CHANGES WITH 185:
22007
22008 * "systemctl help <unit>" now shows the man page if one is
22009 available.
22010
22011 * Several new man pages have been added.
22012
22013 * MaxLevelStore=, MaxLevelSyslog=, MaxLevelKMsg=,
22014 MaxLevelConsole= can now be specified in
22015 journald.conf. These options allow reducing the amount of
22016 data stored on disk or forwarded by the log level.
22017
22018 * TimerSlackNSec= can now be specified in system.conf for
22019 PID1. This allows system-wide power savings.
22020
22021 Contributions from: Dave Reisner, Kay Sievers, Lauri Kasanen,
22022 Lennart Poettering, Malte Starostik, Marc-Antoine Perennou,
22023 Matthias Clasen
22024
22025 CHANGES WITH 184:
22026
22027 * logind is now capable of (optionally) handling power and
22028 sleep keys as well as the lid switch.
22029
22030 * journalctl now understands the syntax "journalctl
22031 /usr/bin/avahi-daemon" to get all log output of a specific
22032 daemon.
22033
22034 * CapabilityBoundingSet= in system.conf now also influences
22035 the capability bound set of usermode helpers of the kernel.
22036
22037 Contributions from: Daniel Drake, Daniel J. Walsh, Gert
22038 Michael Kulyk, Harald Hoyer, Jean Delvare, Kay Sievers,
22039 Lennart Poettering, Matthew Garrett, Matthias Clasen, Paul
22040 Menzel, Shawn Landden, Tero Roponen, Tom Gundersen
22041
22042 CHANGES WITH 183:
22043
22044 * Note that we skipped 139 releases here in order to set the
22045 new version to something that is greater than both udev's
22046 and systemd's most recent version number.
22047
22048 * udev: all udev sources are merged into the systemd source tree now.
22049 All future udev development will happen in the systemd tree. It
22050 is still fully supported to use the udev daemon and tools without
22051 systemd running, like in initramfs or other init systems. Building
22052 udev though, will require the *build* of the systemd tree, but
22053 udev can be properly *run* without systemd.
22054
22055 * udev: /lib/udev/devices/ are not read anymore; systemd-tmpfiles
22056 should be used to create dead device nodes as workarounds for broken
22057 subsystems.
22058
22059 * udev: RUN+="socket:…" and udev_monitor_new_from_socket() is
22060 no longer supported. udev_monitor_new_from_netlink() needs to be
22061 used to subscribe to events.
22062
22063 * udev: when udevd is started by systemd, processes which are left
22064 behind by forking them off of udev rules, are unconditionally cleaned
22065 up and killed now after the event handling has finished. Services or
22066 daemons must be started as systemd services. Services can be
22067 pulled-in by udev to get started, but they can no longer be directly
22068 forked by udev rules.
22069
22070 * udev: the daemon binary is called systemd-udevd now and installed
22071 in /usr/lib/systemd/. Standalone builds or non-systemd systems need
22072 to adapt to that, create symlink, or rename the binary after building
22073 it.
22074
22075 * libudev no longer provides these symbols:
22076 udev_monitor_from_socket()
22077 udev_queue_get_failed_list_entry()
22078 udev_get_{dev,sys,run}_path()
22079 The versions number was bumped and symbol versioning introduced.
22080
22081 * systemd-loginctl and systemd-journalctl have been renamed
22082 to loginctl and journalctl to match systemctl.
22083
22084 * The config files: /etc/systemd/systemd-logind.conf and
22085 /etc/systemd/systemd-journald.conf have been renamed to
22086 logind.conf and journald.conf. Package updates should rename
22087 the files to the new names on upgrade.
22088
22089 * For almost all files the license is now LGPL2.1+, changed
22090 from the previous GPL2.0+. Exceptions are some minor stuff
22091 of udev (which will be changed to LGPL2.1 eventually, too),
22092 and the MIT licensed sd-daemon.[ch] library that is suitable
22093 to be used as drop-in files.
22094
22095 * systemd and logind now handle system sleep states, in
22096 particular suspending and hibernating.
22097
22098 * logind now implements a sleep/shutdown/idle inhibiting logic
22099 suitable for a variety of uses. Soonishly Lennart will blog
22100 about this in more detail.
22101
22102 * var-run.mount and var-lock.mount are no longer provided
22103 (which previously bind mounted these directories to their new
22104 places). Distributions which have not converted these
22105 directories to symlinks should consider stealing these files
22106 from git history and add them downstream.
22107
22108 * We introduced the Documentation= field for units and added
22109 this to all our shipped units. This is useful to make it
22110 easier to explore the boot and the purpose of the various
22111 units.
22112
22113 * All smaller setup units (such as
22114 systemd-vconsole-setup.service) now detect properly if they
22115 are run in a container and are skipped when
22116 appropriate. This guarantees an entirely noise-free boot in
22117 Linux container environments such as systemd-nspawn.
22118
22119 * A framework for implementing offline system updates is now
22120 integrated, for details see:
22121 https://www.freedesktop.org/software/systemd/man/systemd.offline-updates.html
22122
22123 * A new service type Type=idle is available now which helps us
22124 avoiding ugly interleaving of getty output and boot status
22125 messages.
22126
22127 * There's now a system-wide CapabilityBoundingSet= option to
22128 globally reduce the set of capabilities for the
22129 system. This is useful to drop CAP_SYS_MKNOD, CAP_SYS_RAWIO,
22130 CAP_NET_RAW, CAP_SYS_MODULE, CAP_SYS_TIME, CAP_SYS_PTRACE or
22131 even CAP_NET_ADMIN system-wide for secure systems.
22132
22133 * There are now system-wide DefaultLimitXXX= options to
22134 globally change the defaults of the various resource limits
22135 for all units started by PID 1.
22136
22137 * Harald Hoyer's systemd test suite has been integrated into
22138 systemd which allows easy testing of systemd builds in qemu
22139 and nspawn. (This is really awesome! Ask us for details!)
22140
22141 * The fstab parser is now implemented as generator, not inside
22142 of PID 1 anymore.
22143
22144 * systemctl will now warn you if .mount units generated from
22145 /etc/fstab are out of date due to changes in fstab that
22146 have not been read by systemd yet.
22147
22148 * systemd is now suitable for usage in initrds. Dracut has
22149 already been updated to make use of this. With this in place
22150 initrds get a slight bit faster but primarily are much
22151 easier to introspect and debug since "systemctl status" in
22152 the host system can be used to introspect initrd services,
22153 and the journal from the initrd is kept around too.
22154
22155 * systemd-delta has been added, a tool to explore differences
22156 between user/admin configuration and vendor defaults.
22157
22158 * PrivateTmp= now affects both /tmp and /var/tmp.
22159
22160 * Boot time status messages are now much prettier and feature
22161 proper english language. Booting up systemd has never been
22162 so sexy.
22163
22164 * Read-ahead pack files now include the inode number of all
22165 files to pre-cache. When the inode changes the pre-caching
22166 is not attempted. This should be nicer to deal with updated
22167 packages which might result in changes of read-ahead
22168 patterns.
22169
22170 * We now temporaritly lower the kernel's read_ahead_kb variable
22171 when collecting read-ahead data to ensure the kernel's
22172 built-in read-ahead does not add noise to our measurements
22173 of necessary blocks to pre-cache.
22174
22175 * There's now RequiresMountsFor= to add automatic dependencies
22176 for all mounts necessary for a specific file system path.
22177
22178 * MountAuto= and SwapAuto= have been removed from
22179 system.conf. Mounting file systems at boot has to take place
22180 in systemd now.
22181
22182 * nspawn now learned a new switch --uuid= to set the machine
22183 ID on the command line.
22184
22185 * nspawn now learned the -b switch to automatically search
22186 for an init system.
22187
22188 * vt102 is now the default TERM for serial TTYs, upgraded from
22189 vt100.
22190
22191 * systemd-logind now works on VT-less systems.
22192
22193 * The build tree has been reorganized. The individual
22194 components now have directories of their own.
22195
22196 * A new condition type ConditionPathIsReadWrite= is now available.
22197
22198 * nspawn learned the new -C switch to create cgroups for the
22199 container in other hierarchies.
22200
22201 * We now have support for hardware watchdogs, configurable in
22202 system.conf.
22203
22204 * The scheduled shutdown logic now has a public API.
22205
22206 * We now mount /tmp as tmpfs by default, but this can be
22207 masked and /etc/fstab can override it.
22208
22209 * Since udisks does not make use of /media anymore we are not
22210 mounting a tmpfs on it anymore.
22211
22212 * journalctl gained a new --local switch to only interleave
22213 locally generated journal files.
22214
22215 * We can now load the IMA policy at boot automatically.
22216
22217 * The GTK tools have been split off into a systemd-ui.
22218
22219 Contributions from: Andreas Schwab, Auke Kok, Ayan George,
22220 Colin Guthrie, Daniel Mack, Dave Reisner, David Ward, Elan
22221 Ruusamäe, Frederic Crozat, Gergely Nagy, Guillermo Vidal,
22222 Hannes Reinecke, Harald Hoyer, Javier Jardón, Kay Sievers,
22223 Lennart Poettering, Lucas De Marchi, Léo Gillot-Lamure,
22224 Marc-Antoine Perennou, Martin Pitt, Matthew Monaco, Maxim
22225 A. Mikityanskiy, Michael Biebl, Michael Olbrich, Michal
22226 Schmidt, Nis Martensen, Patrick McCarty, Roberto Sassu, Shawn
22227 Landden, Sjoerd Simons, Sven Anders, Tollef Fog Heen, Tom
22228 Gundersen
22229
22230 CHANGES WITH 44:
22231
22232 * This is mostly a bugfix release
22233
22234 * Support optional initialization of the machine ID from the
22235 KVM or container configured UUID.
22236
22237 * Support immediate reboots with "systemctl reboot -ff"
22238
22239 * Show /etc/os-release data in systemd-analyze output
22240
22241 * Many bugfixes for the journal, including endianness fixes and
22242 ensuring that disk space enforcement works
22243
22244 * sd-login.h is C++ compatible again
22245
22246 * Extend the /etc/os-release format on request of the Debian
22247 folks
22248
22249 * We now refuse non-UTF8 strings used in various configuration
22250 and unit files. This is done to ensure we do not pass invalid
22251 data over D-Bus or expose it elsewhere.
22252
22253 * Register Mimo USB Screens as suitable for automatic seat
22254 configuration
22255
22256 * Read SELinux client context from journal clients in a race
22257 free fashion
22258
22259 * Reorder configuration file lookup order. /etc now always
22260 overrides /run in order to allow the administrator to always
22261 and unconditionally override vendor-supplied or
22262 automatically generated data.
22263
22264 * The various user visible bits of the journal now have man
22265 pages. We still lack man pages for the journal API calls
22266 however.
22267
22268 * We now ship all man pages in HTML format again in the
22269 tarball.
22270
22271 Contributions from: Dave Reisner, Dirk Eibach, Frederic
22272 Crozat, Harald Hoyer, Kay Sievers, Lennart Poettering, Marti
22273 Raudsepp, Michal Schmidt, Shawn Landden, Tero Roponen, Thierry
22274 Reding
22275
22276 CHANGES WITH 43:
22277
22278 * This is mostly a bugfix release
22279
22280 * systems lacking /etc/os-release are no longer supported.
22281
22282 * Various functionality updates to libsystemd-login.so
22283
22284 * Track class of PAM logins to distinguish greeters from
22285 normal user logins.
22286
22287 Contributions from: Kay Sievers, Lennart Poettering, Michael
22288 Biebl
22289
22290 CHANGES WITH 42:
22291
22292 * This is an important bugfix release for v41.
22293
22294 * Building man pages is now optional which should be useful
22295 for those building systemd from git but unwilling to install
22296 xsltproc.
22297
22298 * Watchdog support for supervising services is now usable. In
22299 a future release support for hardware watchdogs
22300 (i.e. /dev/watchdog) will be added building on this.
22301
22302 * Service start rate limiting is now configurable and can be
22303 turned off per service. When a start rate limit is hit a
22304 reboot can automatically be triggered.
22305
22306 * New CanReboot(), CanPowerOff() bus calls in systemd-logind.
22307
22308 Contributions from: Benjamin Franzke, Bill Nottingham,
22309 Frederic Crozat, Lennart Poettering, Michael Olbrich, Michal
22310 Schmidt, Michał Górny, Piotr Drąg
22311
22312 CHANGES WITH 41:
22313
22314 * The systemd binary is installed /usr/lib/systemd/systemd now;
22315 An existing /sbin/init symlink needs to be adapted with the
22316 package update.
22317
22318 * The code that loads kernel modules has been ported to invoke
22319 libkmod directly, instead of modprobe. This means we do not
22320 support systems with module-init-tools anymore.
22321
22322 * Watchdog support is now already useful, but still not
22323 complete.
22324
22325 * A new kernel command line option systemd.setenv= is
22326 understood to set system wide environment variables
22327 dynamically at boot.
22328
22329 * We now limit the set of capabilities of systemd-journald.
22330
22331 * We now set SIGPIPE to ignore by default, since it only is
22332 useful in shell pipelines, and has little use in general
22333 code. This can be disabled with IgnoreSIPIPE=no in unit
22334 files.
22335
22336 Contributions from: Benjamin Franzke, Kay Sievers, Lennart
22337 Poettering, Michael Olbrich, Michal Schmidt, Tom Gundersen,
22338 William Douglas
22339
22340 CHANGES WITH 40:
22341
22342 * This is mostly a bugfix release
22343
22344 * We now expose the reason why a service failed in the
22345 "Result" D-Bus property.
22346
22347 * Rudimentary service watchdog support (will be completed over
22348 the next few releases.)
22349
22350 * When systemd forks off in order execute some service we will
22351 now immediately changes its argv[0] to reflect which process
22352 it will execute. This is useful to minimize the time window
22353 with a generic argv[0], which makes bootcharts more useful
22354
22355 Contributions from: Alvaro Soliverez, Chris Paulson-Ellis, Kay
22356 Sievers, Lennart Poettering, Michael Olbrich, Michal Schmidt,
22357 Mike Kazantsev, Ray Strode
22358
22359 CHANGES WITH 39:
22360
22361 * This is mostly a test release, but incorporates many
22362 bugfixes.
22363
22364 * New systemd-cgtop tool to show control groups by their
22365 resource usage.
22366
22367 * Linking against libacl for ACLs is optional again. If
22368 disabled, support tracking device access for active logins
22369 goes becomes unavailable, and so does access to the user
22370 journals by the respective users.
22371
22372 * If a group "adm" exists, journal files are automatically
22373 owned by them, thus allow members of this group full access
22374 to the system journal as well as all user journals.
22375
22376 * The journal now stores the SELinux context of the logging
22377 client for all entries.
22378
22379 * Add C++ inclusion guards to all public headers
22380
22381 * New output mode "cat" in the journal to print only text
22382 messages, without any meta data like date or time.
22383
22384 * Include tiny X server wrapper as a temporary stop-gap to
22385 teach XOrg udev display enumeration. This is used by display
22386 managers such as gdm, and will go away as soon as XOrg
22387 learned native udev hotplugging for display devices.
22388
22389 * Add new systemd-cat tool for executing arbitrary programs
22390 with STDERR/STDOUT connected to the journal. Can also act as
22391 BSD logger replacement, and does so by default.
22392
22393 * Optionally store all locally generated coredumps in the
22394 journal along with meta data.
22395
22396 * systemd-tmpfiles learnt four new commands: n, L, c, b, for
22397 writing short strings to files (for usage for /sys), and for
22398 creating symlinks, character and block device nodes.
22399
22400 * New unit file option ControlGroupPersistent= to make cgroups
22401 persistent, following the mechanisms outlined in
22402 https://www.freedesktop.org/wiki/Software/systemd/PaxControlGroups
22403
22404 * Support multiple local RTCs in a sane way
22405
22406 * No longer monopolize IO when replaying readahead data on
22407 rotating disks, since we might starve non-file-system IO to
22408 death, since fanotify() will not see accesses done by blkid,
22409 or fsck.
22410
22411 * Do not show kernel threads in systemd-cgls anymore, unless
22412 requested with new -k switch.
22413
22414 Contributions from: Dan Horák, Kay Sievers, Lennart
22415 Poettering, Michal Schmidt
22416
22417 CHANGES WITH 38:
22418
22419 * This is mostly a test release, but incorporates many
22420 bugfixes.
22421
22422 * The git repository moved to:
22423 git://anongit.freedesktop.org/systemd/systemd
22424 ssh://git.freedesktop.org/git/systemd/systemd
22425
22426 * First release with the journal
22427 https://0pointer.de/blog/projects/the-journal.html
22428
22429 * The journal replaces both systemd-kmsg-syslogd and
22430 systemd-stdout-bridge.
22431
22432 * New sd_pid_get_unit() API call in libsystemd-logind
22433
22434 * Many systemadm clean-ups
22435
22436 * Introduce remote-fs-pre.target which is ordered before all
22437 remote mounts and may be used to start services before all
22438 remote mounts.
22439
22440 * Added Mageia support
22441
22442 * Add bash completion for systemd-loginctl
22443
22444 * Actively monitor PID file creation for daemons which exit in
22445 the parent process before having finished writing the PID
22446 file in the daemon process. Daemons which do this need to be
22447 fixed (i.e. PID file creation must have finished before the
22448 parent exits), but we now react a bit more gracefully to them.
22449
22450 * Add colourful boot output, mimicking the well-known output
22451 of existing distributions.
22452
22453 * New option PassCredentials= for socket units, for
22454 compatibility with a recent kernel ABI breakage.
22455
22456 * /etc/rc.local is now hooked in via a generator binary, and
22457 thus will no longer act as synchronization point during
22458 boot.
22459
22460 * systemctl list-unit-files now supports --root=.
22461
22462 * systemd-tmpfiles now understands two new commands: z, Z for
22463 relabelling files according to the SELinux database. This is
22464 useful to apply SELinux labels to specific files in /sys,
22465 among other things.
22466
22467 * Output of SysV services is now forwarded to both the console
22468 and the journal by default, not only just the console.
22469
22470 * New man pages for all APIs from libsystemd-login.
22471
22472 * The build tree got reorganized and the build system is a
22473 lot more modular allowing embedded setups to specifically
22474 select the components of systemd they are interested in.
22475
22476 * Support for Linux systems lacking the kernel VT subsystem is
22477 restored.
22478
22479 * configure's --with-rootdir= got renamed to
22480 --with-rootprefix= to follow the naming used by udev and
22481 kmod
22482
22483 * Unless specified otherwise we will now install to /usr instead
22484 of /usr/local by default.
22485
22486 * Processes with '@' in argv[0][0] are now excluded from the
22487 final shut-down killing spree, following the logic explained
22488 in:
22489 https://systemd.io/ROOT_STORAGE_DAEMONS/
22490
22491 * All processes remaining in a service cgroup when we enter
22492 the START or START_PRE states are now killed with
22493 SIGKILL. That means it is no longer possible to spawn
22494 background processes from ExecStart= lines (which was never
22495 supported anyway, and bad style).
22496
22497 * New PropagateReloadTo=/PropagateReloadFrom= options to bind
22498 reloading of units together.
22499
22500 Contributions from: Bill Nottingham, Daniel J. Walsh, Dave
22501 Reisner, Dexter Morgan, Gregs Gregs, Jonathan Nieder, Kay
22502 Sievers, Lennart Poettering, Michael Biebl, Michal Schmidt,
22503 Michał Górny, Ran Benita, Thomas Jarosch, Tim Waugh, Tollef
22504 Fog Heen, Tom Gundersen, Zbigniew Jędrzejewski-Szmek