]> git.ipfire.org Git - thirdparty/systemd.git/blame - NEWS
core: when isolating to a unit, also keep units running that are triggered by units...
[thirdparty/systemd.git] / NEWS
CommitLineData
d657c51f 1systemd System and Service Manager
220a21d3 2
1d679b20
JD
3CHANGES WITH 253 in spe:
4
70879f6c
LB
5 Announcements of Future Feature Removals and Incompatible Changes:
6
7 * We intend to remove cgroup v1 support from systemd release after the
8 end of 2023. If you run services that make explicit use of cgroup v1
9 features (i.e. the "legacy hierarchy" with separate hierarchies for
10 each controller), please implement compatibility with cgroup v2 (i.e.
11 the "unified hierarchy") sooner rather than later. Most of Linux
12 userspace has been ported over already.
13
14 * We intend to remove support for split-usr (/usr mounted separately
15 during boot) and unmerged-usr (parallel directories /bin and
16 /usr/bin, /lib and /usr/lib, etc). This will happen in the second
17 half of 2023, in the first release that falls into that time window.
18 For more details, see:
19 https://lists.freedesktop.org/archives/systemd-devel/2022-September/048352.html
20
318c2578
LB
21 * We intend to change behaviour w.r.t. units of the per-user service
22 manager and sandboxing options, so that they work without having to
23 manually enable PrivateUsers= as well, which is not required for
24 system units. To make this work, we will implicitly enable user
25 namespaces (PrivateUsers=yes) when a sandboxing option is enabled in a
26 user unit. The drawback is that system users will no longer be visible
27 (and appear as 'nobody') to the user unit when a sandboxing option is
28 enabled. By definition a sandboxed user unit should run with reduced
29 privileges, so impact should be small. This will remove a great source
30 of confusion that has been reported by users over the years, due to
31 how these options require an extra setting to be manually enabled when
32 used in the per-user service manager, as opposed as to the system
33 service manager. We plan to enable this change in the next release
34 later this year. For more details, see:
35 https://lists.freedesktop.org/archives/systemd-devel/2022-December/048682.html
36
1ee3720e 37 Deprecations and incompatible changes:
3b288a2d 38
1ee3720e
LP
39 * systemctl will now warn when invoked without /proc/ mounted
40 (e.g. when invoked after chroot() into an directory tree without the
41 API mount points like /proc/ being set up.) Operation in such an
42 environment is not fully supported.
3b288a2d 43
621f7615
ZJS
44 * The return value of 'systemctl is-active|is-enabled|is-failed' for
45 unknown units is changed: previously 1 or 3 were returned, but now 4
46 (EXIT_PROGRAM_OR_SERVICES_STATUS_UNKNOWN) is used as documented.
47
3b288a2d
ZJS
48 * 'udevadm hwdb' subcommand is deprecated and will emit a warning.
49 systemd-hwdb (added in 2014) should be used instead.
50
1ee3720e 51 * 'bootctl --json' now outputs a single JSON array, instead of a stream
3b288a2d
ZJS
52 of newline-separated JSON objects.
53
1ee3720e
LP
54 * Udev rules in 60-evdev.rules have been changed to load hwdb
55 properties for all modalias patterns. Previously only the first
56 matching pattern was used. This could change what properties are
57 assigned if the user has more and less specific patterns that could
58 match the same device, but it is expected that the change will have
59 no effect for most users.
3b288a2d 60
621f7615
ZJS
61 * systemd-networkd-wait-online exits successfully when all interfaces
62 are ready or unmanaged. Previously, if neither '--any' nor
63 '--interface=' options were used, at least one interface had to be in
ecf4be29
ZJS
64 configured state. This change allows the case where systemd-networkd
65 is enabled, but no interfaces are configured, to be handled
621f7615
ZJS
66 gracefully. It may occur in particular when a different network
67 manager is also enabled and used.
68
69 * Some compatibility helpers were dropped: EmergencyAction= in the user
1ee3720e
LP
70 manager, as well as measuring kernel command line into PCR 8 in
71 systemd-stub, along with the -Defi-tpm-pcr-compat compile-time
72 option.
621f7615 73
1ee3720e
LP
74 * The '-Dupdate-helper-user-timeout=' build-time option has been
75 renamed to '-Dupdate-helper-user-timeout-sec=', and now takes an
76 integer as parameter instead of a string.
b67ea78f 77
f9fdbd54
LP
78 * The DDI image dissection logic (which backs RootImage= in service
79 unit files, the --image= switch in various tools such as
80 systemd-nspawn, as well as systemd-dissect) will now only mount file
81 systems of types btrfs, ext4, xfs, erofs, squashfs, vfat. This list
bbcce4f8 82 can be overridden via the $SYSTEMD_DISSECT_FILE_SYSTEMS environment
f9fdbd54
LP
83 variable. These file systems are fairly well supported and maintained
84 in current kernels, while others are usually more niche, exotic or
85 legacy and thus typically do not receive the same level of security
86 support and fixes.
87
3b288a2d
ZJS
88 New components:
89
621f7615
ZJS
90 * A tool 'ukify' tool to build, measure, and sign Unified Kernel Images
91 (UKIs) has been added. This replaces functionality provided by
1ee3720e
LP
92 'dracut --uefi' and extends it with automatic calculation of PE file
93 offsets, insertion of signed PCR policies generated by
94 systemd-measure, support for initrd concatenation, signing of the
95 embedded Linux image and the combined image with sbsign, and
96 heuristics to autodetect the kernel uname and verify the splash
97 image.
621f7615
ZJS
98
99 Changes in systemd and units:
3b288a2d 100
1ee3720e 101 * A new service type Type=notify-reload is defined. When such a unit is
f9fdbd54
LP
102 reloaded a UNIX process signal (typically SIGHUP) is sent to the main
103 service process. The manager will then wait until it receives a
104 "RELOADING=1" followed by a "READY=1" notification from the unit as
105 response (via sd_notify()). Otherwise, this type is the same as
106 Type=notify. A new setting ReloadSignal= may be used to change the
107 signal to send from the default of SIGHUP.
621f7615
ZJS
108
109 user@.service, systemd-networkd.service, systemd-udevd.service, and
1ee3720e
LP
110 systemd-logind have been updated to this type.
111
112 * Initrd environments which are not on a pure memory file system (e.g.
113 overlayfs combination as opposed to tmpfs) are now supported. With
114 this change, during the initrd → host transition ("switch root")
ecf4be29 115 systemd will erase all files of the initrd only when the initrd is
1ee3720e
LP
116 backed by a memory file system such as tmpfs.
117
118 * New per-unit MemoryZSwapMax= option has been added to configure
119 memory.zswap.max cgroup properties (the maximum amount of zswap
120 used).
121
122 * A new LogFilterPatterns= option has been added for units. It may be
123 used to specify accept/deny regular expressions for log messages
124 generated by the unit, that shall be enforced by systemd-journald.
621f7615 125 Rejected messages are neither stored in the journal nor forwarded.
1ee3720e 126 This option may be used to suppress noisy or uninteresting messages
621f7615
ZJS
127 from units.
128
129 * The manager has a new
1ee3720e
LP
130 org.freedesktop.systemd1.Manager.GetUnitByPIDFD() D-Bus method to
131 query process ownership via a PIDFD, which is more resilient against
132 PID recycling issues.
621f7615 133
3b288a2d 134 * Scope units now support OOMPolicy=. Login session scopes default to
621f7615 135 OOMPolicy=continue, allowing login scopes to survive the OOM killer
3b288a2d
ZJS
136 terminating some processes in the scope.
137
138 * systemd-fstab-generator now supports x-systemd.makefs option for
1ee3720e 139 /sysroot/ (in the initrd).
3b288a2d 140
621f7615
ZJS
141 * The maximum rate at which daemon reloads are executed can now be
142 limited with the new ReloadLimitIntervalSec=/ReloadLimitBurst=
143 options. (Or the equivalent on the kernel command line:
ecf4be29 144 systemd.reload_limit_interval_sec=/systemd.reload_limit_burst=). In
1ee3720e
LP
145 addition, systemd now logs the originating unit and PID when a reload
146 request is received over D-Bus.
147
148 * When enabling a swap device systemd will now reinitialize the device
149 when the page size of the swap space does not match the page size of
f5ebd2ef
LB
150 the running kernel. Note that this requires the 'swapon' utility to
151 provide the '--fixpgsz' option, as implemented by util-linux, and it
152 is not supported by busybox at the time of writing.
1ee3720e
LP
153
154 * systemd now executes generator programs in a mount namespace
155 "sandbox" with most of the file system read-only and write access
156 restricted to the output directories, and with a temporary /tmp/
157 mount provided. This provides a safeguard against programming errors
158 in the generators, but also fixes here-docs in shells, which
159 previously didn't work in early boot when /tmp/ wasn't available
160 yet. (This feature has no security implications, because the code is
161 still privileged and can trivially exit the sandbox.)
162
163 * The system manager manager will now parse a new "vmm.notify_socket"
164 system credential, which may be supplied to a VM via SMBIOS. If
ecf4be29
ZJS
165 found, the manager will send a "READY=1" notification on the
166 specified socket after boot is complete. This allows readiness
167 notification to be sent from a VM guest to the VM host over a VSOCK
168 socket.
621f7615
ZJS
169
170 * The sample PAM configuration file for systemd-user@.service now
171 includes a call to pam_namespace. This puts children of user@.service
172 in the expected namespace. (Many distributions replace their file
173 with something custom, so this change has limited effect.)
174
1ee3720e
LP
175 * A new environment variable $SYSTEMD_DEFAULT_MOUNT_RATE_LIMIT_BURST
176 can can be used to override the mount units burst late limit for
ecf4be29
ZJS
177 parsing '/proc/self/mountinfo', which was introduced in v249.
178 Defaults to 5.
be551917 179
1ee3720e 180 * Drop-ins for init.scope changing control group resource limits are
be551917
LB
181 now applied, while they were previously ignored.
182
b67ea78f
LB
183 * New build-time configuration options '-Ddefault-timeout-sec=' and
184 '-Ddefault-user-timeout-sec=' have been added, to let distributions
185 choose the default timeout for starting/stopping/aborting system and
186 user units respectively.
187
f9fdbd54
LP
188 * Service units gained a new setting OpenFile= which may be used to
189 open arbitrary files in the file system (or connect to arbitrary
190 AF_UNIX sockets in the file system), and pass the open file
191 descriptor to the invoked process via the usual file descriptor
192 passing protocol. This is useful to give unprivileged services access
193 to select files which have restrictive access modes that would
194 normally not allow this. It's also useful in case RootDirectory= or
195 RootImage= is used to allow access to files from the host environment
196 (which is after all not visible from the service if these two options
197 are used.)
198
3b288a2d
ZJS
199 Changes in udev:
200
201 * The new net naming scheme "v253" has been introduced. In the new
202 scheme, ID_NET_NAME_PATH is also set for USB devices not connected via
621f7615 203 a PCI bus. This extends the coverage of predictable interface names
3b288a2d
ZJS
204 in some embedded systems.
205
206 The "amba" bus path is now included in ID_NET_NAME_PATH, resulting in
207 a more informative path on some embedded systems.
208
1ee3720e 209 * Partition block devices will now also get symlinks in
621f7615
ZJS
210 /dev/disk/by-diskseq/<seq>-part<n>, which may be used to reference
211 block device nodes via the kernel's "diskseq" value. Previously those
212 symlinks were only created for the main block device.
213
214 * A new operator '-=' is supported for SYMLINK variables. This allows
215 symlinks to be unconfigured even if an earlier rule added them.
1d679b20 216
621f7615
ZJS
217 * 'udevadm --trigger --settle' now also works for network devices
218 that are being renamed.
1d679b20 219
621f7615 220 Changes in sd-boot, bootctl, and the Boot Loader Specification:
1d679b20 221
621f7615
ZJS
222 * systemd-boot now passes its random seed directly to the kernel's RNG
223 via the LINUX_EFI_RANDOM_SEED_TABLE_GUID configuration table, which
224 means the RNG gets seeded very early in boot before userspace has
225 started.
1d679b20 226
1ee3720e
LP
227 * systemd-boot will pass a disk-backed random seed – even when secure
228 boot is enabled – if it can additionally get a random seed from EFI
229 itself (via EFI's RNG protocol), or a prior seed in
230 LINUX_EFI_RANDOM_SEED_TABLE_GUID from a preceding bootloader.
1d679b20 231
621f7615 232 * systemd-boot-system-token.service was renamed to
1ee3720e
LP
233 systemd-boot-random-seed.service and extended to always save a random
234 seed to ESP on every boot when a compatible boot loader is used. This
235 allows a refreshed random seed to be used in the boot loader.
da403fd3 236
621f7615
ZJS
237 * systemd-boot handles various seed inputs using a domain- and
238 field-separated hashing scheme.
da403fd3 239
621f7615
ZJS
240 * systemd-boot's 'random-seed-mode' option has been removed. A system
241 token is now always required to be present for random seeds to be
242 used.
da403fd3 243
1ee3720e
LP
244 * systemd-boot now supports being loaded from other locations than the
245 ESP, for example for direct kernel boot under QEMU or when embedded
246 into the firmware.
3b288a2d 247
1ee3720e
LP
248 * systemd-boot now parses SMBIOS information to detect
249 virtualization. This information is used to skip some warnings which
250 are not useful in a VM and to conditionalize other aspects of
251 behaviour.
621f7615 252
b67ea78f
LB
253 * systemd-boot now supports a new 'if-safe' mode that will perform UEFI
254 Secure Boot automated certificate enrollment from the ESP only if it
1ee3720e
LP
255 is considered 'safe' to do so. At the moment 'safe' means running in
256 a virtual machine.
b67ea78f 257
621f7615 258 * systemd-stub now processes random seeds in the same way as
1ee3720e
LP
259 systemd-boot already does, in case a unified kernel image is being
260 used from a different bootloader than systemd-boot, or without any
261 boot load at all.
621f7615
ZJS
262
263 * bootctl will now generate a system token on all EFI systems, even
264 virtualized ones, and is activated in the case that the system token
265 is missing from either sd-boot and sd-stub booted systems.
266
267 * bootctl now implements two new verbs: 'kernel-identify' prints the
1ee3720e
LP
268 type of a kernel image file, and 'kernel-inspect' provides
269 information about the embedded command line and kernel version of
270 UKIs.
621f7615
ZJS
271
272 * bootctl now honours $KERNEL_INSTALL_CONF_ROOT with the same meaning
273 as for kernel-install.
274
f9fdbd54
LP
275 * The JSON output of "bootctl list" will now contain two more fields:
276 isDefault and isSelected are boolean fields set to true on the
277 default and currently booted boot menu entries.
278
279 * bootctl gained a new verb "unlink" for removing a boot loader entry
280 type #1 file from disk in a safe and robust way.
281
282 * bootctl also gained a new verb "cleanup" that automatically removes
283 all files from the ESP's and XBOOTLDR's "entry-token" directory, that
284 is not referenced anymore by any installed Type #1 boot loader
bbcce4f8 285 specification entry. This is particularly useful in environments where
f9fdbd54
LP
286 a large number of entries reference the same or partly the same
287 resources (for example, for snapshot-based setups).
288
3b288a2d
ZJS
289 Changes in kernel-install:
290
1ee3720e
LP
291 * A new "installation layout" can be configured as layout=uki. With
292 this setting, a Boot Loader Specification Type#1 entry will not be
293 created. Instead, a new kernel-install plugin 90-uki-copy.install
294 will copy any .efi files from the staging area into the boot
295 partition. A plugin to generate the UKI .efi file must be provided
296 separately.
3b288a2d 297
31853609
MY
298 Changes in systemctl:
299
3b288a2d
ZJS
300 * 'systemctl reboot' has dropped support for accepting a positional
301 argument as the argument to the reboot(2) syscall. Please use the
1ee3720e 302 --reboot-argument= option instead.
3b288a2d 303
1ee3720e
LP
304 * 'systemctl disable' will now warn when called on units without
305 install information. A new --no-warn option has been added that
306 silences this warning.
3b288a2d 307
621f7615 308 * New option '--drop-in=' can be used to tell 'systemctl edit' the name
1ee3720e
LP
309 of the drop-in to edit. (Previously, 'override.conf' was always
310 used.)
621f7615
ZJS
311
312 * 'systemctl list-dependencies' now respects --type= and --state=.
313
1ee3720e 314 * 'systemctl kexec' now supports XEN VMM environments.
3b288a2d 315
f9fdbd54
LP
316 * 'systemctl edit' will now tell the invoked editor to jump into the
317 first line with actual unit file data, skipping over synthesized
318 comments.
319
3b288a2d
ZJS
320 Changes in systemd-networkd and related tools:
321
c9720268 322 * The [DHCPv4] section in .network file gained new SocketPriority=
1ee3720e
LP
323 setting that assigns the Linux socket priority used by the DHCPv4 raw
324 socket. This may be used in conjunction with the
325 EgressQOSMaps=setting in [VLAN] section of .netdev file to send the
326 desired ethernet 802.1Q frame priority for DHCPv4 initial
327 packets. This cannot be achieved with netfilter mangle tables because
328 of the raw socket bypass.
329
330 * The [DHCPv4] and [IPv6AcceptRA] sections in .network file gained a
331 new QuickAck= boolean setting that enables the TCP quick ACK mode for
332 the routes configured by the acquired DHCPv4 lease or received router
1d00da37
YW
333 advertisements (RAs).
334
3b288a2d
ZJS
335 * The RouteMetric= option (for DHCPv4, DHCPv6, and IPv6 advertised
336 routes) now accepts three values, for high, medium, and low preference
337 of the router (which can be set with the RouterPreference=) setting.
338
1ee3720e
LP
339 * systemd-networkd-wait-online now supports matching via alternative
340 interface names.
3b288a2d 341
b895aa5f 342 * The [DHCPv6] section in .network file gained new SendRelease=
343 setting which enables the DHCPv6 client to send release when
344 it stops. This is the analog of the [DHCPv4] SendRelease= setting.
345 It is enabled by default.
346
58058629
YW
347 * If the Address= setting in [Network] or [Address] sections in .network
348 specified without its prefix length, then now systemd-networkd assumes
349 /32 for IPv4 or /128 for IPv6 addresses.
350
621f7615
ZJS
351 * networkctl shows network and link file dropins in status output.
352
3b288a2d
ZJS
353 Changes in systemd-dissect:
354
75438b2a 355 * systemd-dissect gained a new option --list, to print the paths of
1ee3720e 356 all files and directories in a DDI.
3b288a2d 357
1ee3720e
LP
358 * systemd-dissect gained a new option --mtree, to generate a file
359 manifest compatible with BSD mtree(5) of a DDI
3b288a2d 360
1ee3720e
LP
361 * systemd-dissect gained a new option --with, to execute a command with
362 the specified DDI temporarily mounted and used as working
363 directory. This is for example useful to convert a DDI to "tar"
364 simply by running it within a "systemd-dissect --with" invocation.
3b288a2d
ZJS
365
366 * systemd-dissect gained a new option --discover, to search for
1ee3720e
LP
367 Discoverable Disk Images (DDIs) in well-known directories of the
368 system. This will list machine, portable service and system extension
369 disk images.
3b288a2d
ZJS
370
371 * systemd-dissect now understands 2nd stage initrd images stored as a
372 Discoverable Disk Image (DDI).
373
f9fdbd54
LP
374 * systemd-dissect will now display the main UUID of GPT DDIs (i.e. the
375 disk UUID stored in the GPT header) among the other data it can show.
376
377 * systemd-dissect gained a new --in-memory switch to operate on an
378 in-memory copy of the specified DDI file. This is useful to access a
379 DDI with write access without persisting any changes. It's also
380 useful for accessing a DDI without keeping the originating file
381 system busy.
382
383 * The DDI dissection logic will now automatically detect the intended
384 sector size of disk images stored in files, based on the GPT
385 partition table arrangement. Loopback block devices for such DDIs
386 will then be configured automatically for the right sector size. This
387 is useful to make dealing with modern 4K sector size DDIs fully
388 automatic. The systemd-dissect tool will now show the detected sector
389 size among the other DDI information in its output.
390
3b288a2d
ZJS
391 Changes in systemd-repart:
392
621f7615
ZJS
393 * systemd-repart gained new options --include-partitions= and
394 --exclude-partitions= to filter operation on partitions by type UUID.
3b288a2d
ZJS
395 This allows systemd-repart to be used to build images in which the
396 type of one partition is set based on the contents of another
397 partition (for example when the boot partition shall include a verity
398 hash of the root partition).
399
621f7615
ZJS
400 * systemd-repart also gained a --defer-partitions= option that is
401 similar to --exclude-partitions=, but the size of the partition is
1ee3720e
LP
402 still taken into account when sizing partitions, but without
403 populating it.
621f7615
ZJS
404
405 * systemd-repart gained a new --sector-size= option to specify what
406 sector size should be used when an image is created.
407
1ee3720e
LP
408 * systemd-repart now supports generating erofs file systems via
409 CopyFiles= (a read-only file system similar to squashfs).
3b288a2d 410
621f7615
ZJS
411 * The Minimize= option was extended to accept "best" (which means the
412 most minimal image possible, but may require multiple attempts) and
413 "guess" (which means a reasonably small image).
414
f9fdbd54
LP
415 * The systemd-growfs binary now comes with a regular unit file template
416 systemd-growfs@.service which can be instantiated directly for any
417 desired file system. (Previously, the unit was generated dynamically
418 by various generators, but no regular unit file template was
419 available.)
420
621f7615
ZJS
421 Changes in journal tools:
422
423 * Various systemd tools will append extra fields to log messages when
424 in debug mode, or when SYSTEMD_ENABLE_LOG_CONTEXT=1 is set. Currently
425 this includes information about D-Bus messages when sd-bus is used,
426 e.g. DBUS_SENDER=, DBUS_DESTINATION=, and DBUS_PATH=, and information
427 about devices when sd-device is used, e.g. DEVNAME= and DRIVER=.
428 Details of what is logged and when are subject to change.
429
1ee3720e
LP
430 * The systemd-journald-audit.socket can now be disabled via the usual
431 "systemctl disable" mechanism to stop collection of audit
432 messages. Please note that it is not enabled statically anymore and
433 must be handled by the preset/enablement logic in package
434 installation scripts.
621f7615
ZJS
435
436 * New options MaxUse=, KeepFree=, MaxFileSize=, and MaxFiles= can
437 be used to curtail disk use by systemd-journal-remote. This is
438 similar to the options supported by systemd-journald.
439
440 Changes in systemd-cryptenroll, systemd-cryptsetup, and related
1ee3720e 441 components:
621f7615 442
1ee3720e
LP
443 * When enrolling new keys systemd-cryptenroll now supports unlocking
444 via FIDO2 tokens (option --unlock-fido2-device=). Previously, a
445 password was strictly required to be specified.
621f7615 446
ad901df9
PC
447 * systemd-cryptsetup now supports pre-flight requests for FIDO2 tokens
448 (except for tokens with user verification, UV) to identify tokens
449 before authentication. Multiple FIDO2 tokens can now be enrolled at
450 the same time, and systemd-cryptsetup will automatically select one
451 that corresponds to one of the available LUKS key slots.
452
1ee3720e
LP
453 * systemd-cryptsetup now supports new options tpm2-measure-bank= and
454 tpm2-measure-pcr= in crypttab(5). These allow specifying the TPM2 PCR
f9fdbd54
LP
455 bank and number into which the volume key should be measured. This is
456 automatically enabled for the encrypted root volume discovered and
457 activated by systemd-gpt-auto-generator.
621f7615 458
4a20ad15 459 * systemd-gpt-auto-generator mounts the ESP and XBOOTLDR partitions with
621f7615
ZJS
460 "noexec,nosuid,nodev".
461
f9fdbd54
LP
462 * systemd-gpt-auto-generator will now honour the rootfstype= and
463 rootflags= kernel command line switches for root file systems it
464 discovers, to match behaviour in case an explicit root fs is
465 specified via root=.
466
621f7615 467 * systemd-pcrphase gained new options --machine-id and --file-system=
1ee3720e
LP
468 to measure the machine-id and mount point information into PCR 15. New
469 service unit files systemd-pcrmachine.service and
470 systemd-pcrfs@.service have been added that invoke the tool with
471 these switches during early boot.
621f7615 472
f9fdbd54
LP
473 * systemd-pcrphase gained a --graceful switch will make it exit cleanly
474 with a success exit code even if no TPM device is detected.
475
621f7615
ZJS
476 * systemd-cryptenroll now stores the user-supplied PIN with a salt,
477 making it harder to brute-force.
478
479 Changes in other tools:
3b288a2d
ZJS
480
481 * systemd-homed gained support for luksPbkdfForceIterations (the
482 intended number of iterations for the PBKDF operation on LUKS).
483
621f7615
ZJS
484 * Environment variables $SYSTEMD_HOME_MKFS_OPTIONS_BTRFS,
485 $SYSTEMD_HOME_MKFS_OPTIONS_EXT4, and $SYSTEMD_HOME_MKFS_OPTIONS_XFS
1ee3720e 486 may now be used to specify additional arguments for mkfs when
621f7615 487 systemd-homed formats a file system.
3b288a2d 488
621f7615 489 * systemd-hostnamed now exports the contents of
3b288a2d
ZJS
490 /sys/class/dmi/id/bios_vendor and /sys/class/dmi/id/bios_date via two
491 new D-Bus properties: FirmwareVendor and FirmwareDate. This allows
492 unprivileged code to access those values.
493
621f7615 494 systemd-hostnamed also exports the SUPPORT_END= field from
1ee3720e 495 os-release(5) as OperatingSystemSupportEnd. hostnamectl make uses of
621f7615
ZJS
496 this to show the status of the installed system.
497
498 * systemd-measure gained an --append= option to sign multiple phase
499 paths with different signing keys. This allows secrets to be
500 accessible only in certain parts of the boot sequence. Note that
501 'ukify' provides similar functionality in a more accessible form.
502
503 * systemd-timesyncd will now write a structured log message with
504 MESSAGE_ID set to SD_MESSAGE_TIME_BUMP when it bumps the clock based
1ee3720e 505 on a on-disk timestamp, similarly to what it did when reaching
621f7615
ZJS
506 synchronization via NTP.
507
1ee3720e
LP
508 * systemd-timesyncd will now update the on-disk timestamp file on each
509 boot at least once, making it more likely that the system time
510 increases in subsequent boots.
621f7615 511
1ee3720e 512 * systemd-vconsole-setup gained support for system/service credentials:
621f7615
ZJS
513 vconsole.keymap/vconsole.keymap_toggle and
514 vconsole.font/vconsole.font_map/vconsole.font_unimap are analogous
515 the similarly-named options in vconsole.conf.
516
517 * systemd-localed will now save the XKB keyboard configuration to
518 /etc/vconsole.conf, and also read it from there with a higher
519 preference than the /etc/X11/xorg.conf.d/00-keyboard.conf config
520 file. Previously, this information was stored in the former file in
521 converted form, and only in latter file in the original form. Tools
522 which want to access keyboard configuration can now do so from a
523 standard location.
524
525 * systemd-resolved gained support for configuring the nameservers and
526 search domains via kernel command line (nameserver=, domain=) and
527 credentials (network.dns, network.search_domains).
528
f9fdbd54
LP
529 * systemd-resolved will now synthesize host names for the DNS stub
530 addresses it supports. Specifically when "_localdnsstub" is resolved,
531 127.0.0.53 is returned, and if "_localdnsproxy" is resolved
532 127.0.0.54 is returned.
533
621f7615
ZJS
534 * systemd-notify will now send a "RELOADING=1" notification when called
535 with --reloading, and "STOPPING=1" when called with --stopping. This
536 can be used to implement notifications from units where it's easier
537 to call a program than to use the sd-daemon library.
538
f9fdbd54
LP
539 * systemd-analyze's 'plot' command can now output its information in
540 JSON, controlled via the --json= switch. Also, new --table, and
541 --no-legend options have been added.
621f7615
ZJS
542
543 * 'machinectl enable' will now automatically enable machines.target
544 unit in addition to adding the machine unit to the target.
545
546 Similarly, 'machinectl start|stop' gained a --now option to enable or
547 disable the machine unit when starting or stopping it.
548
1ee3720e 549 * systemd-sysusers will now create /etc/ if it is missing.
b67ea78f
LB
550
551 * systemd-sleep 'HibernateDelaySec=' setting is changed back to
552 pre-v252's behaviour, and a new 'SuspendEstimationSec=' setting is
553 added to provide the new initial value for the new automated battery
554 estimation functionality. If 'HibernateDelaySec=' is set to any value,
555 the automated estimate (and thus the automated hibernation on low
556 battery to avoid data loss) functionality will be disabled.
557
558 * Default tmpfiles.d/ configuration will now automatically create
559 credentials storage directory '/etc/credstore/' with the appropriate,
560 secure permissions. If '/run/credstore/' exists, its permissions will
561 be fixed too in case they are not correct.
562
3b288a2d
ZJS
563 Changes in libsystemd and shared code:
564
565 * sd-bus gained new convenience functions sd_bus_emit_signal_to(),
566 sd_bus_emit_signal_tov(), and sd_bus_message_new_signal_to().
567
621f7615 568 * sd-id128 functions now return -EUCLEAN (instead of -EIO) when the
1ee3720e
LP
569 128bit ID in files such as /etc/machine-id has an invalid
570 format. They also accept NULL as output parameter in more places,
571 which is useful when the caller only wants to validate the inputs and
572 does not need the output value.
621f7615
ZJS
573
574 * sd-login gained new functions sd_pidfd_get_session(),
575 sd_pidfd_get_owner_uid(), sd_pidfd_get_unit(),
576 sd_pidfd_get_user_unit(), sd_pidfd_get_slice(),
577 sd_pidfd_get_user_slice(), sd_pidfd_get_machine_name(), and
578 sd_pidfd_get_cgroup(), that are analogous to sd_pid_get_*(),
579 but accept a PIDFD instead of a PID.
580
581 * sd-path (and systemd-path) now export four new paths:
582 SD_PATH_SYSTEMD_SYSTEM_ENVIRONMENT_GENERATOR,
583 SD_PATH_SYSTEMD_USER_ENVIRONMENT_GENERATOR,
584 SD_PATH_SYSTEMD_SEARCH_SYSTEM_ENVIRONMENT_GENERATOR, and
585 SD_PATH_SYSTEMD_SEARCH_USER_ENVIRONMENT_GENERATOR,
586
f9fdbd54
LP
587 * sd_notify() now supports AF_VSOCK as transport for notification
588 messages (in addition to the existing AF_UNIX support). This is
589 enabled if $NOTIFY_SOCKET is set in a "vsock:CID:port" format.
be551917 590
1ee3720e
LP
591 * Detection of chroot() environments now works if /proc/ is not
592 mounted. This affects systemd-detect-virt --chroot, but also means
593 that systemd tools will silently skip various operations in such an
594 environment.
3b288a2d 595
8ad6e519 596 * "Lockheed Martin Hardened Security for Intel Processors" (HS SRE)
3b288a2d
ZJS
597 virtualization is now detected.
598
599 Changes in the build system:
600
f9fdbd54
LP
601 * Standalone variants of systemd-repart and systemd-shutdown may now be
602 built (if -Dstandalone=true).
3b288a2d 603
1ee3720e
LP
604 * systemd-ac-power has been moved from /usr/lib/ to /usr/bin/, to, for
605 example, allow scripts to conditionalize execution on AC power
606 supply.
3b288a2d 607
621f7615
ZJS
608 * The libp11kit library is now loaded through dlopen(3).
609
3b288a2d
ZJS
610 Changes in the documentation:
611
612 * Specifications that are not closely tied to systemd have moved to
bdc11d26 613 https://uapi-group.org/specifications/: the Boot Loader Specification
3b288a2d
ZJS
614 and the Discoverable Partitions Specification.
615
8ca20dfa
LB
616 Contributions from: 김인수, 13r0ck, Aidan Dang, Alberto Planas,
617 Alvin Šipraga, Andika Triwidada, AndyChi, angus-p, Anita Zhang,
aff998ae
LB
618 Antonio Alvarez Feijoo, Arsen Arsenović, asavah, Benjamin Fogle,
619 Benjamin Tissoires, berenddeschouwer, BerndAdameit,
620 Bernd Steinhauser, blutch112, cake03, Callum Farmer, Carlo Teubner,
621 Charles Hardin, chris, Christian Brauner, Christian Göttsche,
622 Cristian Rodríguez, Daan De Meyer, Dan Streetman, DaPigGuy,
623 David Tardon, dependabot[bot], Dirk Su, Dmitry V. Levin, drosdeck,
8ca20dfa
LB
624 Edson Juliano Drosdeck, edupont, Eric DeVolder, Erik Moqvist,
625 Evgeny Vereshchagin, Felix Riemann, Franck Bui, Frantisek Sumsal,
626 Gerd Hoffmann, Gio, Hannoskaj, Hans de Goede, Hugo Carvalho,
aff998ae
LB
627 igo95862, Ilya Leoshkevich, Ivan Shapovalov, Jacek Migacz,
628 Jade Lovelace, Jan Engelhardt, Jan Janssen, Jan Macku, January,
8ca20dfa
LB
629 Jason A. Donenfeld, jcg, Jelle van der Waa, Jeremy Linton,
630 Jian Zhang, Jiayi Chen, Jia Zhang, Joerg Behrmann, Jörg Thalheim,
631 Joshua Goins, joshuazivkovic, Joshua Zivkovic, Kai-Chuan Hsieh,
632 Khem Raj, Koba Ko, Lennart Poettering, lichao, Li kunyu,
633 Luca Boccassi, Luca BRUNO, Ludwig Nussel, Łukasz Stelmach,
634 Lycowolf, marcel151, Marcus Schäfer, Marek Vasut, Mark Laws,
635 Michael Biebl, Michał Kotyla, Michal Koutný, Michal Sekletár,
636 Mike Yuan, MkfsSion, msizanoen1, mvzlb, MVZ Ludwigsburg, Neil Moore,
637 Nick Rosbrook, noodlejetski, Pasha Vorobyev, Peter Cai, p-fpv,
638 Phaedrus Leeds, Philipp Jungkamp, Quentin Deslandes, Ray Strode,
639 reuben olinsky, Richard E. van der Luit, Richard Phibel,
aff998ae
LB
640 Ricky Tigg, Robin Humble, rogg, Rudi Heitbaum, Sam James,
641 Samuel Thibault, Siddhesh Poyarekar, Space Meyer, Spindle Security,
642 Steve Ramage, Thomas Haller, Tonći Galić, Torsten Hilbrich,
643 Tuetuopay, uerdogan, Ulrich Ölmann, Valentin David,
644 Vitaly Kuznetsov, Vito Caputo, Waltibaba, Will Fancher,
645 William Roberts, wouter bolsterlee, Youfu Zhang, Yu Watanabe,
8ca20dfa
LB
646 Zbigniew Jędrzejewski-Szmek, Дамјан Георгиевски,
647 наб
31853609 648
25952542 649 — Warsaw, 2023-02-02
903dd65b 650
e8dc5276 651CHANGES WITH 252 🎃:
b98445cd 652
02380e19 653 Announcements of Future Feature Removals:
b98445cd 654
02380e19
ZJS
655 * We intend to remove cgroup v1 support from systemd release after the
656 end of 2023. If you run services that make explicit use of cgroup v1
657 features (i.e. the "legacy hierarchy" with separate hierarchies for
658 each controller), please implement compatibility with cgroup v2 (i.e.
659 the "unified hierarchy") sooner rather than later. Most of Linux
b98445cd
LP
660 userspace has been ported over already.
661
02380e19
ZJS
662 * We intend to remove support for split-usr (/usr mounted separately
663 during boot) and unmerged-usr (parallel directories /bin and
664 /usr/bin, /lib and /usr/lib, etc). This will happen in the second
665 half of 2023, in the first release that falls into that time window.
666 For more details, see:
f77c0840
LB
667 https://lists.freedesktop.org/archives/systemd-devel/2022-September/048352.html
668
10736074
LP
669 Compatibility Breaks:
670
02380e19
ZJS
671 * ConditionKernelVersion= checks that use the '=' or '!=' operators
672 will now do simple string comparisons (instead of version comparisons
673 á la stverscmp()). Version comparisons are still done for the
674 ordering operators '<', '>', '<=', '>='. Moreover, if no operator is
675 specified, a shell-style glob match is now done. This creates a minor
676 incompatibility compared to older systemd versions when the '*', '?',
677 '[', ']' characters are used, as these will now match as shell globs
678 instead of literally. Given that kernel version strings typically do
679 not include these characters we expect little breakage through this
680 change.
681
682 * The service manager will now read the SELinux label used for SELinux
683 access checks from the unit file at the time it loads the file.
684 Previously, the label would be read at the moment of the access
685 check, which was problematic since at that time the unit file might
686 already have been updated or removed.
a0769ee4 687
10736074 688 New Features:
e49d111b 689
8d3b7d2f
ZJS
690 * systemd-measure is a new tool for calculating and signing expected
691 TPM2 PCR values for a given unified kernel image (UKI) booted via
692 sd-stub. The public key used for the signature and the signed
693 expected PCR information can be embedded inside the UKI. This
694 information can be extracted from the UKI by external tools and code
695 in the image itself and is made available to userspace in the booted
696 kernel.
25d615eb 697
8d3b7d2f 698 systemd-cryptsetup, systemd-cryptenroll, and systemd-creds have been
25d615eb 699 updated to make use of this information if available in the booted
29818c4e 700 kernel: when locking an encrypted volume/credential to the TPM
8d3b7d2f
ZJS
701 systemd-cryptenroll/systemd-creds will use the public key to bind the
702 volume/credential to any kernel that carries PCR information signed
703 by the same key pair. When unlocking such volumes/credentials
704 systemd-cryptsetup/systemd-creds will use the signature embedded in
705 the booted UKI to gain access.
25d615eb
LP
706
707 Binding TPM-based disk encryption to public keys/signatures of PCR
708 values — instead of literal PCR values — addresses the inherent
709 "brittleness" of traditional PCR-bound TPM disk encryption schemes:
29818c4e
LP
710 disks remain accessible even if the UKI is updated, without any TPM
711 specific preparation during the OS update — as long as each UKI
712 carries the necessary PCR signature information.
713
714 Net effect: if you boot a properly prepared kernel, TPM-bound disk
715 encryption now defaults to be locked to kernels which carry PCR
8d3b7d2f
ZJS
716 signatures from the same key pair. Example: if a hypothetical distro
717 FooOS prepares its UKIs like this, TPM-based disk encryption is now –
718 by default – bound to only FooOS kernels, and encrypted volumes bound
719 to the TPM cannot be unlocked on kernels from other sources. (But do
720 note this behaviour requires preparation/enabling in the UKI, and of
721 course users can always enroll non-TPM ways to unlock the volume.)
a0769ee4 722
9ca1efbc 723 * systemd-pcrphase is a new tool that is invoked at six places during
a0769ee4
LP
724 system runtime, and measures additional words into TPM2 PCR 11, to
725 mark milestones of the boot process. This allows binding access to
02380e19 726 specific TPM2-encrypted secrets to specific phases of the boot
29818c4e 727 process. (Example: LUKS2 disk encryption key only accessible in the
02380e19 728 initrd, but not later.)
e49d111b 729
02380e19 730 Changes in systemd itself, i.e. the manager and units
e49d111b 731
a0769ee4
LP
732 * The cpu controller is delegated to user manager units by default, and
733 CPUWeight= settings are applied to the top-level user slice units
734 (app.slice, background.slice, session.slice). This provides a degree
735 of resource isolation between different user services competing for
736 the CPU.
e49d111b
ZJS
737
738 * Systemd can optionally do a full preset in the "first boot" condition
739 (instead of just enable-only). This behaviour is controlled by the
02380e19 740 compile-time option -Dfirst-boot-full-preset. Right now it defaults
e49d111b
ZJS
741 to 'false', but the plan is to switch it to 'true' for the subsequent
742 release.
743
9ca1efbc
ZJS
744 * Drop-ins are now allowed for transient units too.
745
e49d111b 746 * Systemd will set the taint flag 'support-ended' if it detects that
02380e19
ZJS
747 the OS image is past its end-of-support date. This date is declared
748 in a new /etc/os-release field SUPPORT_END= described below.
e49d111b 749
a0769ee4 750 * Two new settings ConditionCredential= and AssertCredential= can be
4db5c45d
LP
751 used to skip or fail units if a certain system credential is not
752 provided.
e49d111b 753
02380e19 754 * ConditionMemory= accepts size suffixes (K, M, G, T, …).
e49d111b 755
a0769ee4
LP
756 * DefaultSmackProcessLabel= can be used in system.conf and user.conf to
757 specify the SMACK security label to use when not specified in a unit
758 file.
e49d111b 759
02380e19
ZJS
760 * DefaultDeviceTimeoutSec= can be used in system.conf and user.conf to
761 specify the default timeout when waiting for device units to
762 activate.
e49d111b 763
a0769ee4
LP
764 * C.UTF-8 is used as the default locale if nothing else has been
765 configured.
e49d111b 766
02380e19
ZJS
767 * [Condition|Assert]Firmware= have been extended to support certain
768 SMBIOS fields. For example
769
770 ConditionFirmware=smbios-field(board_name = "Custom Board")
771
772 conditionalizes the unit to run only when
773 /sys/class/dmi/id/board_name contains "Custom Board" (without the
a0769ee4 774 quotes).
bf07a125 775
f77c0840 776 * ConditionFirstBoot= now correctly evaluates as true only during the
02380e19
ZJS
777 boot phase of the first boot. A unit executed later, after booting
778 has completed, will no longer evaluate this condition as true.
f77c0840
LB
779
780 * Socket units will now create sockets in the SELinuxContext= of the
781 associated service unit, if any.
782
a0769ee4
LP
783 * Boot phase transitions (start initrd → exit initrd → boot complete →
784 shutdown) will be measured into TPM2 PCR 11, so that secrets can be
02380e19 785 bound to a specific runtime phase. E.g.: a LUKS encryption key can be
f77c0840
LB
786 unsealed only in the initrd.
787
a0769ee4
LP
788 * Service credentials (i.e. SetCredential=/LoadCredential=/…) will now
789 also be provided to ExecStartPre= processes.
f77c0840 790
02380e19
ZJS
791 * Various units are now correctly ordered against
792 initrd-switch-root.target where previously a conflict without
793 ordering was configured. A stop job for those units would be queued,
794 but without the ordering it could be executed only after
795 initrd-switch-root.service, leading to units not being restarted in
796 the host system as expected.
f77c0840
LB
797
798 * In order to fully support the IPMI watchdog driver, which has not yet
a0769ee4
LP
799 been ported to the new common watchdog device interface,
800 /dev/watchdog0 will be tried first and systemd will silently fallback
801 to /dev/watchdog if it is not found.
f77c0840 802
3af9dc77
LB
803 * New watchdog-related D-Bus properties are now published by systemd:
804 WatchdogDevice, WatchdogLastPingTimestamp,
805 WatchdogLastPingTimestampMonotonic.
f77c0840 806
02380e19
ZJS
807 * At shutdown, API virtual files systems (proc, sys, etc.) will be
808 unmounted lazily.
043ba6a1 809
02380e19
ZJS
810 * At shutdown, systemd will now log about processes blocking unmounting
811 of file systems.
a0769ee4 812
043ba6a1 813 * A new meson build option 'clock-valid-range-usec-max' was added to
a0769ee4 814 allow disabling system time correction if RTC returns a timestamp far
043ba6a1
LB
815 in the future.
816
167420a3
LB
817 * Propagated restart jobs will no longer be discarded while a unit is
818 activating.
043ba6a1 819
a0769ee4
LP
820 * PID 1 will now import system credentials from SMBIOS Type 11 fields
821 ("OEM vendor strings"), in addition to qemu_fwcfg. This provides a
02380e19
ZJS
822 simple, fast and generic path for supplying credentials to a VM,
823 without involving external tools such as cloud-init/ignition.
a0769ee4
LP
824
825 * The CPUWeight= setting of unit files now accepts a new special value
826 "idle", which configures "idle" level scheduling for the unit.
827
828 * Service processes that are activated due to a .timer or .path unit
829 triggering will now receive information about this via environment
02380e19
ZJS
830 variables. Note that this is information is lossy, as activation
831 might be coalesced and only one of the activating triggers will be
832 reported. This is hence more suited for debugging or tracing rather
833 than for behaviour decisions.
a0769ee4 834
9ca1efbc
ZJS
835 * The riscv_flush_icache(2) system call has been added to the list of
836 system calls allowed by default when SystemCallFilter= is used.
837
838 * The selinux context derived from the target executable, instead of
839 'init_t' used for the manager itself, is now used when creating
840 listening sockets for units that specify SELinuxContextFromNet=yes.
841
e49d111b
ZJS
842 Changes in sd-boot, bootctl, and the Boot Loader Specification:
843
844 * The Boot Loader Specification has been cleaned up and clarified.
845 Various corner cases in version string comparisons have been fixed
846 (e.g. comparisons for empty strings). Boot counting is now part of
847 the main specification.
848
02380e19 849 * New PCRs measurements are performed during boot: PCR 11 for the the
a0769ee4
LP
850 kernel+initrd combo, PCR 13 for any sysext images. If a measurement
851 took place this is now reported to userspace via the new
852 StubPcrKernelImage and StubPcrInitRDSysExts EFI variables.
853
02380e19
ZJS
854 * As before, systemd-stub will measure kernel parameters and system
855 credentials into PCR 12. It will now report this fact via the
a0769ee4 856 StubPcrKernelParameters EFI variable to userspace.
e49d111b 857
a0769ee4
LP
858 * The UEFI monotonic boot counter is now included in the updated random
859 seed file maintained by sd-boot, providing some additional entropy.
e49d111b 860
9ca1efbc
ZJS
861 * sd-stub will use LoadImage/StartImage to execute the kernel, instead
862 of arranging the image manually and jumping to the kernel entry
863 point. sd-stub also installs a temporary UEFI SecurityOverride to
864 allow the (unsigned) nested image to be booted. This is safe because
865 the outer (signed) stub+kernel binary must have been verified before
866 the stub was executed.
867
e49d111b 868 * Booting in EFI mixed mode (a 64-bit kernel over 32-bit UEFI firmware)
a0769ee4 869 is now supported by sd-boot.
e49d111b 870
a0769ee4
LP
871 * bootctl gained a bunch of new options: --all-architectures to install
872 binaries for all supported EFI architectures, --root= and --image=
873 options to operate on a directory or disk image, and
874 --install-source= to specify the source for binaries to install,
875 --efi-boot-option-description= to control the name of the boot entry.
e49d111b
ZJS
876
877 * The sd-boot stub exports a StubFeatures flag, which is used by
878 bootctl to show features supported by the stub that was used to boot.
879
6e50cf38
JJ
880 * The PE section offsets that are used by tools that assemble unified
881 kernel images have historically been hard-coded. This may lead to
882 overlapping PE sections which may break on boot. The UKI will now try
883 to detect and warn about this.
884
885 Any tools that assemble UKIs must update to calculate these offsets
886 dynamically. Future sd-stub versions may use offsets that will not
887 work with the currently used set of hard-coded offsets!
f77c0840 888
a0769ee4
LP
889 * sd-stub now accepts (and passes to the initrd and then to the full
890 OS) new PE sections '.pcrsig' and '.pcrkey' that can be used to embed
02380e19
ZJS
891 signatures of expected PCR values, to allow sealing secrets via the
892 TPM2 against pre-calculated PCR measurements.
f77c0840 893
e49d111b
ZJS
894 Changes in the hardware database:
895
a0769ee4 896 * 'systemd-hwdb query' now supports the --root= option.
e49d111b
ZJS
897
898 Changes in systemctl:
899
a0769ee4 900 * systemctl now supports --state= and --type= options for the 'show'
e49d111b
ZJS
901 and 'status' verbs.
902
903 * systemctl gained a new verb 'list-automounts' to list automount
904 points.
905
a0769ee4
LP
906 * systemctl gained support for a new --image= switch to be able to
907 operate on the specified disk image (similar to the existing --root=
908 which operates relative to some directory).
909
e49d111b
ZJS
910 Changes in systemd-networkd:
911
912 * networkd can set Linux NetLabel labels for integration with the
913 network control in security modules via a new NetLabel= option.
914
e49d111b
ZJS
915 * The RapidCommit= is (re-)introduced to enable faster configuration
916 via DHCPv6 (RFC 3315).
917
f77c0840
LB
918 * networkd gained a new option TCPCongestionControlAlgorithm= that
919 allows setting a per-route TCP algorithm.
920
043ba6a1
LB
921 * networkd gained a new option KeepFileDescriptor= to allow keeping a
922 reference (file descriptor) open on TUN/TAP interfaces, which is
923 useful to avoid link flaps while the underlying service providing the
924 interface is being serviced.
925
ea3e581d
LB
926 * RouteTable= now also accepts route table names.
927
e49d111b
ZJS
928 Changes in systemd-nspawn:
929
930 * The --bind= and --overlay= options now support relative paths.
931
3af9dc77 932 * The --bind= option now supports a 'rootidmap' value, which will
f77c0840
LB
933 use id-mapped mounts to map the root user inside the container to the
934 owner of the mounted directory on the host.
e49d111b 935
9ca1efbc
ZJS
936 Changes in systemd-resolved:
937
938 * systemd-resolved now persists DNSOverTLS in its state file too. This
939 fixes a problem when used in combination with NetworkManager, which
940 sends the setting only once, causing it to be lost if resolved was
941 restarted at any point.
942
943 * systemd-resolved now exposes a varlink socket at
944 /run/systemd/resolve/io.systemd.Resolve.Monitor, accessible only for
945 root. Processed DNS requests in a JSON format will be published to
946 any clients connected to this socket.
947
948 resolvectl gained a 'monitor' verb to make use of this.
949
950 * systemd-resolved now treats unsupported DNSSEC algorithms as INSECURE
951 instead of returning SERVFAIL, as per RFC:
952 https://datatracker.ietf.org/doc/html/rfc6840#section-5.2
953
954 * OpenSSL is the default crypto backend for systemd-resolved. (gnutls
955 is still supported.)
956
f77c0840 957 Changes in libsystemd and other libraries:
e49d111b 958
a0769ee4
LP
959 * libsystemd now exports sd_bus_error_setfv() (a convenience function
960 for setting bus errors), sd_id128_string_equal (a convenience
02380e19 961 function for 128bit ID string comparisons), and
a0769ee4
LP
962 sd_bus_message_read_strv_extend() (a function to incrementally read
963 string arrays).
e49d111b 964
a0769ee4
LP
965 * libsystemd now exports sd_device_get_child_first()/_next() as a
966 high-level interface for enumerating child devices. It also supports
967 sd_device_new_child() for opening a child device given a device
968 object.
f77c0840 969
a0769ee4 970 * libsystemd now exports sd_device_monitor_set()/get_description()
9ca1efbc 971 which allow setting a custom description that will be used in log
a0769ee4 972 messages by sd_device_monitor*.
46c41ade 973
e49d111b
ZJS
974 * Private shared libraries (libsystemd-shared-nnn.so,
975 libsystemd-core-nnn.so) are now installed into arch-specific
976 directories to allow multi-arch installs.
977
f77c0840
LB
978 * A new sd-gpt.h header is now published, listing GUIDs from the
979 Discoverable Partitions specification. For more details see:
980 https://systemd.io/DISCOVERABLE_PARTITIONS/
981
a0769ee4
LP
982 * A new function sd_hwdb_new_from_path() has been added to open a hwdb
983 database given an explicit path to the file.
984
985 * The signal number argument to sd_event_add_signal() now can now be
02380e19
ZJS
986 ORed with the SD_EVENT_SIGNAL_PROCMASK flag, causing sigprocmask() to
987 be automatically invoked to block the specified signal. This is
988 useful to simplify invocations as the caller doesn't have to do this
989 manually.
a0769ee4
LP
990
991 * A new convenience call sd_event_set_signal_exit() has been added to
02380e19 992 sd-event to set up signal handling so that the event loop
a0769ee4
LP
993 automatically terminates cleanly on SIGTERM/SIGINT.
994
e49d111b
ZJS
995 Changes in other components:
996
02380e19
ZJS
997 * systemd-sysusers, systemd-tmpfiles, and systemd-sysctl configuration
998 can now be provided via the credential mechanism.
e49d111b 999
9ca1efbc
ZJS
1000 * systemd-analyze gained a new verb 'compare-versions' that implements
1001 comparisons for versions strings (similarly to 'rpmdev-vercmp' and
1002 'dpkg --compare-versions').
1003
1004 * 'systemd-analyze dump' is extended to accept glob patterns for unit
1005 names to limit the output to matching units.
1006
02380e19
ZJS
1007 * tmpfiles.d/ lines can read file contents to write from a credential.
1008 The new modifier char '^' is used to specify that the argument is a
1009 credential name. This mechanism is used to automatically populate
a0769ee4 1010 /etc/motd, /etc/issue, and /etc/hosts from credentials.
e49d111b 1011
a0769ee4
LP
1012 * tmpfiles.d/ may now be configured to avoid changing uid/gid/mode of
1013 an inode if the specification is prefixed with ':' and the inode
1014 already exists.
f77c0840 1015
02380e19
ZJS
1016 * Default tmpfiles.d/ configuration now carries a line to automatically
1017 use an 'ssh.authorized_keys.root' credential if provided to set up
a0769ee4 1018 the SSH authorized_keys file for the root user.
f77c0840 1019
a0769ee4
LP
1020 * systemd-tmpfiles will now gracefully handle absent source of "C" copy
1021 lines.
1022
02380e19
ZJS
1023 * tmpfiles.d/ F/w lines now optionally permit encoding of the payload
1024 in base64. This is useful to write arbitrary binary data into files.
f77c0840 1025
e49d111b 1026 * The pkgconfig and rpm macros files now export the directory for user
02380e19 1027 units as 'user_tmpfiles_dir' and '%_user_tmpfilesdir'.
e49d111b 1028
02380e19
ZJS
1029 * Detection of Apple Virtualization and detection of Parallels and
1030 KubeVirt virtualization on non-x86 archs have been added.
e49d111b
ZJS
1031
1032 * os-release gained a new field SUPPORT_END=YYYY-MM-DD to inform the
1033 user when their system will become unsupported.
1034
1035 * When performing suspend-then-hibernate, the system will estimate the
02380e19
ZJS
1036 discharge rate and use that to set the delay until hibernation and
1037 hibernate immediately instead of suspending when running from a
e49d111b
ZJS
1038 battery and the capacity is below 5%.
1039
a0769ee4 1040 * systemd-sysctl gained a --strict option to fail when a sysctl
e49d111b
ZJS
1041 setting is unknown to the kernel.
1042
a0769ee4 1043 * machinectl supports --force for the 'copy-to' and 'copy-from'
e49d111b
ZJS
1044 verbs.
1045
9ca1efbc
ZJS
1046 * coredumpctl gained the --root and --image options to look for journal
1047 files under the specified root directory, image, or block device.
e49d111b 1048
02380e19
ZJS
1049 * 'journalctl -o' and similar commands now implement a new output mode
1050 "short-delta". It is similar to "short-monotonic", but also shows the
1051 time delta between subsequent messages.
893bcd3d 1052
02380e19
ZJS
1053 * journalctl now respects the --quiet flag when verifying consistency
1054 of journal files.
f77c0840 1055
02380e19
ZJS
1056 * Journal log messages gained a new implicit field _RUNTIME_SCOPE= that
1057 will indicate whether a message was logged in the 'initrd' phase or
1058 in the 'system' phase of the boot process.
f77c0840 1059
02380e19
ZJS
1060 * Journal files gained a new compatibility flag
1061 'HEADER_INCOMPATIBLE_COMPACT'. Files with this flag implement changes
1062 to the storage format that allow reducing size on disk. As with other
1063 compatibility flags, older journalctl versions will not be able to
1064 read journal files using this new format. The environment variable
1065 'SYSTEMD_JOURNAL_COMPACT=0' can be passed to systemd-journald to
1066 disable this functionality. It is enabled by default.
7dbbb393 1067
a0769ee4
LP
1068 * systemd-run's --working-directory= switch now works when used in
1069 combination with --scope.
f77c0840 1070
9ca1efbc
ZJS
1071 * portablectl gained a --force flag to skip certain sanity checks. This
1072 is implemented using new flags accepted by systemd-portabled for the
1073 *WithExtensions() D-Bus methods: SD_SYSTEMD_PORTABLE_FORCE_ATTACH
1074 flag now means that the attach/detach checks whether the units are
1075 already present and running will be skipped. Similarly,
1076 SD_SYSTEMD_PORTABLE_FORCE_SYSEXT flag means that the check whether
1077 image name matches the name declared inside of the image will be
1078 skipped. Callers must be sure to do those checks themselves if
1079 appropriate.
f77c0840 1080
043ba6a1
LB
1081 * systemd-portabled will now use the original filename to check
1082 extension-release.NAME for correctness, in case it is passed a
1083 symlink.
1084
46c41ade
LB
1085 * systemd-portabled now uses PrivateTmp=yes in the 'trusted' profile
1086 too.
1087
a0769ee4
LP
1088 * sysext's extension-release files now support '_any' as a special
1089 value for the ID= field, to allow distribution-independent extensions
1090 (e.g.: fully statically compiled binaries, scripts). It also gained
1091 support for a new ARCHITECTURE= field that may be used to explicitly
1092 restrict an image to hosts of a specific architecture.
043ba6a1 1093
02380e19
ZJS
1094 * systemd-repart now supports creating squashfs partitions. This
1095 requires mksquashfs from squashfs-tools.
f77c0840 1096
02380e19 1097 * systemd-repart gained a --split flag to also generate split
a0769ee4 1098 artifacts, i.e. a separate file for each partition. This is useful in
766c1eae 1099 conjunction with systemd-sysupdate or other tools, or to generate
a0769ee4 1100 split dm-verity artifacts.
f77c0840
LB
1101
1102 * systemd-repart is now able to generate dm-verity partitions, including
1103 signatures.
1104
02380e19
ZJS
1105 * systemd-repart can now set a partition UUID to zero, allowing it to
1106 be filled in later, such as when using verity partitions.
f77c0840 1107
46c41ade
LB
1108 * systemd-repart now supports drop-ins for its configuration files.
1109
02380e19 1110 * Package metadata logged by systemd-coredump in the system journal is
f77c0840
LB
1111 now more compact.
1112
1113 * xdg-autostart-service now expands 'tilde' characters in Exec lines.
1114
1115 * systemd-oomd now automatically links against libatomic, if available.
1116
46c41ade
LB
1117 * systemd-oomd now sends out a 'Killed' D-Bus signal when a cgroup is
1118 killed.
1119
1120 * scope units now also provide oom-kill status.
1121
a0769ee4
LP
1122 * systemd-pstore will now try to load only the efi_pstore kernel module
1123 before running, ensuring that pstore can be used.
f77c0840 1124
46c41ade
LB
1125 * systemd-logind gained a new StopIdleSessionSec= option to stop an idle
1126 session after a preconfigure timeout.
f77c0840
LB
1127
1128 * systemd-homed will now wait up to 30 seconds for workers to terminate,
1129 rather than indefinitely.
1130
7dbbb393
LB
1131 * homectl gained a new '--luks-sector-size=' flag that allows users to
1132 select the preferred LUKS sector size. Must be a power of 2 between 512
1133 and 4096. systemd-userdbd records gained a corresponding field.
1134
f77c0840
LB
1135 * systemd-sysusers will now respect the 'SOURCE_DATE_EPOCH' environment
1136 variable when generating the 'sp_lstchg' field, to ensure an image
1137 build can be reproducible.
1138
02380e19 1139 * 'udevadm wait' will now listen to kernel uevents too when called with
a0769ee4
LP
1140 --initialized=no.
1141
1142 * When naming network devices udev will now consult the Devicetree
1143 "alias" fields for the device.
f77c0840 1144
9ca1efbc
ZJS
1145 * systemd-udev will now create infiniband/by-path and
1146 infiniband/by-ibdev links for Infiniband verbs devices.
1147
ea3e581d
LB
1148 * systemd-udev-trigger.service will now also prioritize input devices.
1149
a0769ee4
LP
1150 * ConditionACPower= and systemd-ac-power will now assume the system is
1151 running on AC power if no battery can be found.
46c41ade 1152
f77c0840
LB
1153 * All features and tools using the TPM2 will now communicate with it
1154 using a bind key. Beforehand, the tpm2 support used encrypted sessions
1155 by creating a primary key that was used to encrypt traffic. This
1156 creates a problem as the key created for encrypting the traffic could
1157 be faked by an active interposer on the bus. In cases when a pin is
1158 used, a bind key will be used. The pin is used as the auth value for
1159 the seal key, aka the disk encryption key, and that auth value will be
1160 used in the session establishment. An attacker would need the pin
1161 value to create the secure session and thus an active interposer
02380e19 1162 without the pin cannot interpose on TPM2 traffic.
f77c0840 1163
043ba6a1 1164 * systemd-growfs no longer requires udev to run.
f77c0840 1165
46c41ade
LB
1166 * systemd-backlight now will better support systems with multiple
1167 graphic cards.
1168
1169 * systemd-cryptsetup's keyfile-timeout= option now also works when a
1170 device is used as a keyfile.
1171
a0769ee4
LP
1172 * systemd-cryptenroll gained a new --unlock-key-file= option to get the
1173 unlocking key from a key file (instead of prompting the user). Note
1174 that this is the key for unlocking the volume in order to be able to
1175 enroll a new key, but it is not the key that is enrolled.
46c41ade 1176
a0769ee4
LP
1177 * systemd-dissect gained a new --umount switch that will safely and
1178 synchronously unmount all partitions of an image previously mounted
02380e19 1179 with 'systemd-dissect --mount'.
46c41ade
LB
1180
1181 * When using gcrypt, all systemd tools and services will now configure
02380e19 1182 it to prefer the OS random number generator if present.
46c41ade 1183
ea3e581d
LB
1184 * All example code shipped with documentation has been relicensed from CC0
1185 to MIT-0.
1186
1187 * Unit tests will no longer fail when running on a system without
1188 /etc/machine-id.
1189
e49d111b
ZJS
1190 Experimental features:
1191
f77c0840
LB
1192 * BPF programs can now be compiled with bpf-gcc (requires libbpf >= 1.0
1193 and bpftool >= 7.0).
e49d111b
ZJS
1194
1195 * sd-boot can automatically enroll SecureBoot keys from files found on
1196 the ESP. This enrollment can be either automatic ('force' mode) or
a0769ee4
LP
1197 controlled by the user ('manual' mode). It is sufficient to place the
1198 SecureBoot keys in the right place in the ESP and they will be picked
1199 up by sd-boot and shown in the boot menu.
1200
9ca1efbc
ZJS
1201 * The mkosi config in systemd gained support for automatically
1202 compiling a kernel with the configuration appropriate for testing
1203 systemd. This may be useful when developing or testing systemd in
1204 tandem with the kernel.
1205
9ca1efbc
ZJS
1206 Contributions from: 김인수, Adam Williamson, adrian5, Aidan Dang,
1207 Akihiko Odaki, Alban Bedel, Albert Mikaelyan, Aleksey Vasenev,
fa9b3a5f 1208 Alexander Graf, Alexander Shopov, Alexander Wilson,
f3e70c8a
LB
1209 Alper Nebi Yasak, anarcat, Anders Jonsson, Andre Kalb,
1210 Andrew Stone, Andrey Albershteyn, Anita Zhang, Ansgar Burchardt,
fa9b3a5f
LB
1211 Antonio Alvarez Feijoo, Arnaud Ferraris, Aryan singh, asavah,
1212 Avamander, Avram Lubkin, Balázs Meskó, Bastien Nocera,
1213 Benjamin Franzke, BerndAdameit, bin456789, Celeste Liu,
1214 Chih-Hsuan Yen, Christian Brauner, Christian Göttsche,
1215 Christian Hesse, Clyde Byrd III, codefiles, Colin Walters,
1216 Cristian Rodríguez, Daan De Meyer, Daniel Braunwarth,
1217 Daniel Rusek, Dan Streetman, Darsey Litzenberger, David Edmundson,
9ca1efbc
ZJS
1218 David Jaša, David Rheinsberg, David Seifert, David Tardon,
1219 dependabot[bot], Devendra Tewari, Dominique Martinet, drosdeck,
1220 Edson Juliano Drosdeck, Eduard Tolosa, eggfly, Einsler Lee,
1221 Elias Probst, Eli Schwartz, Evgeny Vereshchagin, exploide, Fei Li,
1222 Foster Snowhill, Franck Bui, Frank Dana, Frantisek Sumsal,
fa9b3a5f
LB
1223 Gerd Hoffmann, Gio, Goffredo Baroncelli, gtwang01,
1224 Guillaume W. Bres, H A, Hans de Goede, Heinrich Schuchardt,
1225 Hugo Carvalho, i-do-cpp, igo95862, j00512545, Jacek Migacz,
1226 Jade Bilkey, James Hilliard, Jan B, Janis Goldschmidt,
1227 Jan Janssen, Jan Kuparinen, Jan Luebbe, Jan Macku,
1228 Jason A. Donenfeld, Javkhlanbayar Khongorzul, Jeremy Soller,
1229 JeroenHD, jiangchuangang, João Loureiro,
f3e70c8a
LB
1230 Joaquín Ignacio Aramendía, Jochen Sprickerhof,
1231 Johannes Schauer Marin Rodrigues, Jonas Kümmerlin,
1232 Jonas Witschel, Jonathan Kang, Jonathan Lebon, Joost Heitbrink,
1233 Jörg Thalheim, josh-gordon-fb, Joyce, Kai Lueke, lastkrick,
1234 Lennart Poettering, Leon M. George, licunlong, Li kunyu,
9ca1efbc
ZJS
1235 LockBlock-dev, Loïc Collignon, Lubomir Rintel, Luca Boccassi,
1236 Luca BRUNO, Ludwig Nussel, Łukasz Stelmach, Maccraft123,
1237 Marc Kleine-Budde, Marius Vollmer, Martin Wilck, matoro,
1238 Matthias Lisin, Max Gautier, Maxim Mikityanskiy, Michael Biebl,
1239 Michal Koutný, Michal Sekletár, Michal Stanke, Mike Gilbert,
fa9b3a5f 1240 Mitchell Freiderich, msizanoen1, Nick Rosbrook, nl6720, Oğuz Ersen,
f3e70c8a
LB
1241 Oleg Solovyov, Olga Smirnova, Pablo Ceballos, Pavel Zhukov,
1242 Phaedrus Leeds, Philipp Gortan, Piotr Drąg, Pyfisch,
1243 Quentin Deslandes, Rahil Bhimjiani, Rene Hollander, Richard Huang,
1244 Richard Phibel, Rudi Heitbaum, Sam James, Sarah Brofeldt,
1245 Sean Anderson, Sebastian Scheibner, Shreenidhi Shedi,
1246 Sonali Srivastava, Steve Ramage, Suraj Krishnan, Swapnil Devesh,
1247 Takashi Sakamoto, Ted X. Toth, Temuri Doghonadze, Thomas Blume,
1248 Thomas Haller, Thomas Hebb, Tomáš Hnyk, Tomasz Paweł Gajc,
1249 Topi Miettinen, Ulrich Ölmann, undef, Uriel Corfa,
1250 Victor Westerhuis, Vincent Dagonneau, Vishal Chillara Srinivas,
1251 Vito Caputo, Weblate, Wenchao Hao, William Roberts, williamsumendap,
1252 wineway, xiaoyang, Yuri Chornoivan, Yu Watanabe,
1253 Zbigniew Jędrzejewski-Szmek, Zhaofeng Li, наб
23992ce1 1254
e8dc5276 1255 – The Great Beyond, 2022-10-31 👻
e49d111b 1256
73849408 1257CHANGES WITH 251:
00b29ca1
ZJS
1258
1259 Backwards-incompatible changes:
1260
61ade257 1261 * The minimum kernel version required has been bumped from 3.13 to 4.15,
b586cbde
LB
1262 and CLOCK_BOOTTIME is now assumed to always exist.
1263
7503fbd4 1264 * C11 with GNU extensions (aka "gnu11") is now used to build our
8c70e802 1265 components. Public API headers are still restricted to ISO C89.
7503fbd4 1266
00b29ca1
ZJS
1267 * In v250, a systemd-networkd feature that automatically configures
1268 routes to addresses specified in AllowedIPs= was added and enabled by
1269 default. However, this causes network connectivity issues in many
1270 existing setups. Hence, it has been disabled by default since
1271 systemd-stable 250.3. The feature can still be used by explicitly
1272 configuring RouteTable= setting in .netdev files.
1d2842d1 1273
169bb1de
LB
1274 * Jobs started via StartUnitWithFlags() will no longer return 'skipped'
1275 when a Condition*= check does not succeed, restoring the JobRemoved
1276 signal to the behaviour it had before v250.
1277
e1f0c136
LP
1278 * The org.freedesktop.portable1 methods GetMetadataWithExtensions() and
1279 GetImageMetadataWithExtensions() have been fixed to provide an extra
00b29ca1
ZJS
1280 return parameter, containing the actual extension release metadata.
1281 The current implementation was judged to be broken and unusable, and
1282 thus the usual procedure of adding a new set of methods was skipped,
1283 and backward compatibility broken instead on the assumption that
1284 nobody can be affected given the current state of this interface.
ce3ca32c 1285
65df0ce3
ZJS
1286 * All kernels supported by systemd mix bytes returned by RDRAND (or
1287 similar) into the entropy pool at early boot. This means that on
1288 those systems, even if /dev/urandom is not yet initialized, it still
1289 returns bytes that are of at least RDRAND quality. For that reason,
1290 we no longer have reason to invoke RDRAND from systemd itself, which
1291 has historically been a source of bugs. Furthermore, kernels ≥5.6
1292 provide the getrandom(GRND_INSECURE) interface for returning random
1293 bytes before the entropy pool is initialized without warning into
1294 kmsg, which is what we attempt to use if available. systemd's direct
1295 usage of RDRAND has been removed. x86 systems ≥Broadwell that are
1296 running an older kernel may experience kmsg warnings that were not
1297 seen with 250. For newer kernels, non-x86 systems, or older x86
1298 systems, there should be no visible changes.
00b29ca1
ZJS
1299
1300 * sd-boot will now measure the kernel command line into TPM PCR 12
1301 rather than PCR 8. This improves usefulness of the measurements on
60f53dd5 1302 systems where sd-boot is chainloaded from Grub. Grub measures all
00b29ca1
ZJS
1303 commands its executes into PCR 8, which makes it very hard to use
1304 reasonably, hence separate ourselves from that and use PCR 12
1305 instead, which is what certain Ubuntu editions already do. To retain
0f6f9dc6 1306 compatibility with systems running older systemd systems a new meson
00b29ca1
ZJS
1307 option 'efi-tpm-pcr-compat' has been added (which defaults to false).
1308 If enabled, the measurement is done twice: into the new-style PCR 12
1309 *and* the old-style PCR 8. It's strongly advised to migrate all users
1310 to PCR 12 for this purpose in the long run, as we intend to remove
ec5e113f 1311 this compatibility feature in two years' time.
00b29ca1
ZJS
1312
1313 * busctl capture now writes output in the newer pcapng format instead
1314 of pcap.
1315
65df0ce3
ZJS
1316 * A udev rule that imported hwdb matches for USB devices with lowercase
1317 hexadecimal vendor/product ID digits was added in systemd 250. This
1318 has been reverted, since uppercase hexadecimal digits are supposed to
1319 be used, and we already had a rule with the appropriate match.
00b29ca1
ZJS
1320
1321 Users might need to adjust their local hwdb entries.
1322
e1f0c136
LP
1323 * arch_prctl(2) has been moved to the @default set in the syscall filters
1324 (as exposed via the SystemCallFilter= setting in service unit files).
00b29ca1
ZJS
1325 It is apparently used by the linker now.
1326
eb1446f8
DDM
1327 * The tmpfiles entries that create the /run/systemd/netif directory and
1328 its subdirectories were moved from tmpfiles.d/systemd.conf to
1329 tmpfiles.d/systemd-network.conf.
1330
1331 Users might need to adjust their files that override tmpfiles.d/systemd.conf
1332 to account for this change.
1333
7f2ec323
LB
1334 * The requirement for Portable Services images to contain a well-formed
1335 os-release file (i.e.: contain at least an ID field) is now enforced.
1336 This applies to base images and extensions, and also to systemd-sysext.
1337
942473dc 1338 Changes in the Boot Loader Specification, kernel-install and sd-boot:
00b29ca1 1339
5e9c57d2
LP
1340 * kernel-install's and bootctl's Boot Loader Specification Type #1
1341 entry generation logic has been reworked. The user may now pick
1342 explicitly by which "token" string to name the installation's boot
00b29ca1 1343 entries, via the new /etc/kernel/entry-token file or the new
5e9c57d2
LP
1344 --entry-token= switch to bootctl. By default — as before — the
1345 entries are named after the local machine ID. However, in "golden
1346 image" environments, where the machine ID shall be initialized on
1347 first boot (as opposed to at installation time before first boot) the
e1f0c136 1348 machine ID will not be available at build time. In this case the
00b29ca1
ZJS
1349 --entry-token= switch to bootctl (or the /etc/kernel/entry-token
1350 file) may be used to override the "token" for the entries, for
1351 example the IMAGE_ID= or ID= fields from /etc/os-release. This will
1352 make the OS images independent of any machine ID, and ensure that the
1353 images will not carry any identifiable information before first boot,
1354 but on the other hand means that multiple parallel installations of
1355 the very same image on the same disk cannot be supported.
5e9c57d2 1356
00b29ca1
ZJS
1357 Summary: if you are building golden images that shall acquire
1358 identity information exclusively on first boot, make sure to both
1359 remove /etc/machine-id *and* to write /etc/kernel/entry-token to the
e1f0c136 1360 value of the IMAGE_ID= or ID= field of /etc/os-release or another
00b29ca1 1361 suitable identifier before deploying the image.
deb5c820 1362
00b29ca1 1363 * The Boot Loader Specification has been extended with
e1f0c136
LP
1364 /loader/entries.srel file located in the EFI System Partition (ESP)
1365 that disambiguates the format of the entries in the /loader/entries/
1366 directory (in order to discern them from incompatible uses of this
1367 directory by other projects). For entries that follow the
1368 Specification, the string "type1" is stored in this file.
3fbd5f20 1369
e1f0c136
LP
1370 bootctl will now write this file automatically when installing the
1371 systemd-boot boot loader.
00b29ca1
ZJS
1372
1373 * kernel-install supports a new initrd_generator= setting in
1374 /etc/kernel/install.conf, that is exported as
1375 $KERNEL_INSTALL_INITRD_GENERATOR to kernel-install plugins. This
e1f0c136 1376 allows choosing different initrd generators.
00b29ca1
ZJS
1377
1378 * kernel-install will now create a "staging area" (an initially-empty
1379 directory to gather files for a Boot Loader Specification Type #1
1380 entry). The path to this directory is exported as
1381 $KERNEL_INSTALL_STAGING_AREA to kernel-install plugins, which should
1382 drop files there instead of writing them directly to the final
1383 location. kernel-install will move them when all files have been
1384 prepared successfully.
429cddba 1385
0c6e746b
YW
1386 * New option sort-key= has been added to the Boot Loader Specification
1387 to override the sorting order of the entries in the boot menu. It is
1388 read by sd-boot and bootctl, and will be written by kernel-install,
1389 with the default value of IMAGE_ID= or ID= fields from
1390 os-release. Together, this means that on multiboot installations,
1391 entries should be grouped and sorted in a predictable way.
1392
942473dc
ZJS
1393 * The sort order of boot entries has been updated: entries which have
1394 the new field sort-key= are sorted by it first, and all entries
1395 without it are ordered later. After that, entries are sorted by
1396 version so that newest entries are towards the beginning of the list.
1397
0c6e746b
YW
1398 * The kernel-install tool gained a new 'inspect' verb which shows the
1399 paths and other settings used.
1400
1401 * sd-boot can now optionally beep when the menu is shown and menu
1402 entries are selected, which can be useful on machines without a
1403 working display. (Controllable via a loader.conf setting.)
1404
1405 * The --make-machine-id-directory= switch to bootctl has been replaced
1406 by --make-entry-directory=, given that the entry directory is not
1407 necessarily named after the machine ID, but after some other suitable
1408 ID as selected via --entry-token= described above. The old name of
1409 the option is still understood to maximize compatibility.
1410
1411 * 'bootctl list' gained support for a new --json= switch to output boot
1412 menu entries in JSON format.
1413
211b564a
ZJS
1414 * 'bootctl is-installed' now supports the --graceful, and various verbs
1415 omit output with the new option --quiet.
1416
942473dc 1417 Changes in systemd-homed:
0c6e746b 1418
dfdaf9f2
LP
1419 * Starting with v250 systemd-homed uses UID/GID mapping on the mounts
1420 of activated home directories it manages (if the kernel and selected
1421 file systems support it). So far it mapped three UID ranges: the
1422 range from 0…60000, the user's own UID, and the range 60514…65534,
1423 leaving everything else unmapped (in other words, the 16bit UID range
1424 is mapped almost fully, with the exception of the UID subrange used
00b29ca1
ZJS
1425 for systemd-homed users, with one exception: the user's own UID).
1426 Unmapped UIDs may not be used for file ownership in the home
5cf84d25 1427 directory — any chown() attempts with them will fail. With this
dfdaf9f2
LP
1428 release a fourth range is added to these mappings:
1429 524288…1879048191. This range is the UID range intended for container
1430 uses, see:
1431
1432 https://systemd.io/UIDS-GIDS
1433
1434 This range may be used for container managers that place container OS
1435 trees in the home directory (which is a questionable approach, for
1436 quota, permission, SUID handling and network file system
1437 compatibility reasons, but nonetheless apparently commonplace). Note
1438 that this mapping is mapped 1:1 in a pass-through fashion, i.e. the
1439 UID assignments from the range are not managed or mapped by
1440 `systemd-homed`, and must be managed with other mechanisms, in the
1441 context of the local system.
1442
1443 Typically, a better approach to user namespacing in relevant
1444 container managers would be to leave container OS trees on disk at
1445 UID offset 0, but then map them to a dynamically allocated runtime
1446 UID range via another UID mount map at container invocation
1447 time. That way user namespace UID ranges become strictly a runtime
1448 concept, and do not leak into persistent file systems, persistent
1449 user databases or persistent configuration, thus greatly simplifying
1450 handling, and improving compatibility with home directories intended
1451 to be portable like the ones managed by systemd-homed.
7e7a9f9c 1452
942473dc 1453 Changes in shared libraries:
00b29ca1
ZJS
1454
1455 * A new libsystemd-core-<version>.so private shared library is
1456 installed under /usr/lib/systemd/system, mirroring the existing
1457 libsystemd-shared-<version>.so library. This allows the total
e1f0c136 1458 installation size to be reduced by binary code reuse.
00b29ca1 1459
e1f0c136 1460 * The <version> tag used in the name of libsystemd-shared.so and
0f6f9dc6
ZJS
1461 libsystemd-core.so can be configured via the meson option
1462 'shared-lib-tag'. Distributions may build subsequent versions of the
1463 systemd package with unique tags (e.g. the full package version),
1464 thus allowing multiple installations of those shared libraries to be
1465 available at the same time. This is intended to fix an issue where
1466 programs that link to those libraries would fail to execute because
1467 they were installed earlier or later than the appropriate version of
1468 the library.
00b29ca1 1469
0c6e746b
YW
1470 * The sd-id128 API gained a new call sd_id128_to_uuid_string() that is
1471 similar to sd_id128_to_string() but formats the ID in RFC 4122 UUID
ec5e113f 1472 format instead of as a simple series of hex characters.
0c6e746b 1473
61ade257
LP
1474 * The sd-device API gained two new calls sd_device_new_from_devname()
1475 and sd_device_new_from_path() which permit allocating an sd_device
1476 object from a device node name or file system path.
1477
1478 * sd-device also gained a new call sd_device_open() which will open the
1479 device node associated with a device for which an sd_device object
1480 has been allocated. The call is supposed to address races around
1481 device nodes being removed/recycled due to hotplug events, or media
1482 change events: the call checks internally whether the major/minor of
1483 the device node and the "diskseq" (in case of block devices) match
1484 with the metadata loaded in the sd_device object, thus ensuring that
1485 the device once opened really matches the provided sd_device object.
1486
942473dc 1487 Changes in PID1, systemctl, and systemd-oomd:
0c6e746b 1488
a8c122c4
LB
1489 * A new set of service monitor environment variables will be passed to
1490 OnFailure=/OnSuccess= handlers, but only if exactly one unit lists the
1491 handler unit as OnFailure=/OnSuccess=. The variables are:
1492 $MONITOR_SERVICE_RESULT, $MONITOR_EXIT_CODE, $MONITOR_EXIT_STATUS,
1493 $MONITOR_INVOCATION_ID and $MONITOR_UNIT. For cases when a single
1494 handler needs to watch multiple units, use a templated handler.
1495
e1f0c136
LP
1496 * A new ExtensionDirectories= setting in service unit files allows
1497 system extensions to be loaded from a directory. (It is similar to
1498 ExtensionImages=, but takes paths to directories, instead of
1499 disk image files.)
00b29ca1 1500
e1f0c136 1501 'portablectl attach --extension=' now also accepts directory paths.
00b29ca1 1502
e1f0c136
LP
1503 * The user.delegate and user.invocation_id extended attributes on
1504 cgroups are used in addition to trusted.delegate and
1505 trusted.invocation_id. The latter pair requires privileges to set,
1506 but the former doesn't and can be also set by the unprivileged user
1507 manager.
00b29ca1
ZJS
1508
1509 (Only supported on kernels ≥5.6.)
1510
942473dc
ZJS
1511 * Units that were killed by systemd-oomd will now have a service result
1512 of 'oom-kill'. The number of times a service was killed is tallied
1513 in the 'user.oomd_ooms' extended attribute.
1514
1515 The OOMPolicy= unit file setting is now also honoured by
1516 systemd-oomd.
1517
e1f0c136
LP
1518 * In unit files the new %y/%Y specifiers can be used to refer to
1519 normalized unit file path, which is particularly useful for symlinked
1520 unit files.
00b29ca1 1521
d0aba07f 1522 The new %q specifier resolves to the pretty hostname
e1f0c136 1523 (i.e. PRETTY_HOSTNAME= from /etc/machine-info).
00b29ca1 1524
e1f0c136
LP
1525 The new %d specifier resolves to the credentials directory of a
1526 service (same as $CREDENTIALS_DIRECTORY).
00b29ca1 1527
f72f8021
LB
1528 * The RootDirectory=, MountAPIVFS=, ExtensionDirectories=,
1529 *Capabilities*=, ProtectHome=, *Directory=, TemporaryFileSystem=,
1530 PrivateTmp=, PrivateDevices=, PrivateNetwork=, NetworkNamespacePath=,
1531 PrivateIPC=, IPCNamespacePath=, PrivateUsers=, ProtectClock=,
1532 ProtectKernelTunables=, ProtectKernelModules=, ProtectKernelLogs=,
1533 MountFlags= service settings now also work in unprivileged user
1534 services, i.e. those run by the user's --user service manager, as long
1535 as user namespaces are enabled on the system.
60a777b5 1536
e1f0c136
LP
1537 * Services with Restart=always and a failing ExecCondition= will no
1538 longer be restarted, to bring ExecCondition= behaviour in line with
1539 Condition*= settings.
00b29ca1
ZJS
1540
1541 * LoadCredential= now accepts a directory as the argument; all files
e1f0c136 1542 from the directory will be loaded as credentials.
00b29ca1 1543
60a777b5
LP
1544 * A new D-Bus property ControlGroupId is now exposed on service units,
1545 that encapsulates the service's numeric cgroup ID that newer kernels
d6297626 1546 assign to each cgroup.
60a777b5 1547
0c6e746b
YW
1548 * PID 1 gained support for configuring the "pre-timeout" of watchdog
1549 devices and the associated governor, via the new
1550 RuntimeWatchdogPreSec= and RuntimeWatchdogPreGovernor= configuration
1551 options in /etc/systemd/system.conf.
00b29ca1 1552
0c6e746b
YW
1553 * systemctl's --timestamp= option gained a new choice "unix", to show
1554 timestamp as unix times, i.e. seconds since 1970, Jan 1st.
1555
61ade257
LP
1556 * A new "taint" flag named "old-kernel" is introduced which is set when
1557 the kernel systemd runs on is older then the current baseline version
1558 (see above). The flag is shown in "systemctl status" output.
1559
1560 * Two additional taint flags "short-uid-range" and "short-gid-range"
1561 have been added as well, which are set when systemd notices it is run
1562 within a userns namespace that does not define the full 0…65535 UID
1563 range
1564
1565 * A new "unmerged-usr" taint flag has been added that is set whenever
1566 running on systems where /bin/ + /sbin/ are *not* symlinks to their
ec5e113f
PL
1567 counterparts in /usr/, i.e. on systems where the /usr/-merge has not
1568 been completed.
61ade257
LP
1569
1570 * Generators invoked by PID 1 will now have a couple of useful
1571 environment variables set describing the execution context a
1572 bit. $SYSTEMD_SCOPE encodes whether the generator is called from the
1573 system service manager, or from the per-user service
1574 manager. $SYSTEMD_IN_INITRD encodes whether the generator is invoked
1575 in initrd context or on the host. $SYSTEMD_FIRST_BOOT encodes whether
1576 systemd considers the current boot to be a "first"
1577 boot. $SYSTEMD_VIRTUALIZATION encode whether virtualization is
1578 detected and which type of hypervisor/container
1579 manager. $SYSTEMD_ARCHITECTURE indicates which architecture the
1580 kernel is built for.
1581
be1e6592
LP
1582 * PID 1 will now automatically pick up system credentials from qemu's
1583 fw_cfg interface, thus allowing passing arbitrary data into VM
1584 systems similar to how this is already supported for passing them
1585 into `systemd-nspawn` containers. Credentials may now also be passed
1586 in via the new kernel command line option `systemd.set_credential=`
1587 (note that kernel command line options are world-readable during
1588 runtime, and only useful for credentials that require no
1589 confidentiality). The credentials that can be passed to unified
1590 kernels that use the `systemd-stub` UEFI stub are now similarly
1591 picked up automatically. Automatic importing of system credentials
1592 this way can be turned off via the new
1593 `systemd.import_credentials=no` kernel command line option.
1594
50db8d97
ZJS
1595 * LoadCredential= will now automatically look for credentials in the
1596 /etc/credstore/, /run/credstore/, /usr/lib/credstore/ directories if
1597 the argument is not an absolute path. Similarly,
1598 LoadCredentialEncrypted= will check the same directories plus
be1e6592 1599 /etc/credstore.encrypted/, /run/credstore.encrypted/ and
50db8d97
ZJS
1600 /usr/lib/credstore.encrypted/. The idea is to use those directories
1601 as the system-wide location for credentials that services should pick
1602 up automatically.
be1e6592
LP
1603
1604 * System and service credentials are described in great detail in a new
1605 document:
1606
1607 https://systemd.io/CREDENTIALS
1608
942473dc 1609 Changes in systemd-journald:
0c6e746b
YW
1610
1611 * The journal JSON export format has been added to listed of stable
1612 interfaces (https://systemd.io/PORTABILITY_AND_STABILITY/).
1613
1614 * journalctl --list-boots now supports JSON output and the --reverse option.
1615
1616 * Under docs/: JOURNAL_EXPORT_FORMATS was imported from the wiki and
1617 updated, BUILDING_IMAGES is new:
1618
1619 https://systemd.io/JOURNAL_EXPORT_FORMATS
1620 https://systemd.io/BUILDING_IMAGES
1621
942473dc 1622 Changes in udev:
0c6e746b
YW
1623
1624 * Two new hwdb files have been added. One lists "handhelds" (PDAs,
1625 calculators, etc.), the other AV production devices (DJ tables,
1626 keypads, etc.) that should accessible to the seat owner user by
1627 default.
1628
1629 * udevadm trigger gained a new --prioritized-subsystem= option to
1630 process certain subsystems (and all their parent devices) earlier.
1631
1632 systemd-udev-trigger.service now uses this new option to trigger
1633 block and TPM devices first, hopefully making the boot a bit faster.
1634
1635 * udevadm trigger now implements --type=all, --initialized-match,
1636 --initialized-nomatch to trigger both subsystems and devices, only
1637 already-initialized devices, and only devices which haven't been
1638 initialized yet, respectively.
1639
61ade257
LP
1640 * udevadm gained a new "wait" command for safely waiting for a specific
1641 device to show up in the udev device database. This is useful in
1642 scripts that asynchronously allocate a block device (e.g. through
1643 repartitioning, or allocating a loopback device or similar) and need
1644 to synchronize on the creation to complete.
1645
1646 * udevadm gained a new "lock" command for locking one or more block
1647 devices while formatting it or writing a partition table to it. It is
1648 an implementation of https://systemd.io/BLOCK_DEVICE_LOCKING and
1649 usable in scripts dealing with block devices.
1650
1651 * udevadm info will show a couple of additional device fields in its
1652 output, and will not apply a limited set of coloring to line types.
1653
1654 * udevadm info --tree will now show a tree of objects (i.e. devices and
1655 suchlike) in the /sys/ hierarchy.
1656
1657 * Block devices will now get a new set of device symlinks in
1658 /dev/disk/by-diskseq/<nr>, which may be used to reference block
1659 device nodes via the kernel's "diskseq" value. Note that this does
1660 not guarantee that opening a device by a symlink like this will
1661 guarantee that the opened device actually matches the specified
1662 diskseq value. To be safe against races, the actual diskseq value of
1663 the opened device (BLKGETDISKSEQ ioctl()) must still be compred with
1664 the one in the symlink path.
1665
0c6e746b 1666 * .link files gained support for setting MDI/MID-X on a link.
60a777b5 1667
00b29ca1
ZJS
1668 * .link files gained support for [Match] Firmware= setting to match on
1669 the device firmware description string. By mistake, it was previously
1670 only supported in .network files.
1671
0c6e746b
YW
1672 * .link files gained support for [Link] SR-IOVVirtualFunctions= setting
1673 and [SR-IOV] section to configure SR-IOV virtual functions.
1674
942473dc 1675 Changes in systemd-networkd:
0c6e746b
YW
1676
1677 * The default scope for unicast routes configured through [Route]
1678 section is changed to "link", to make the behavior consistent with
1679 "ip route" command. The manual configuration of [Route] Scope= is
1680 still honored.
1681
1682 * A new unit systemd-networkd-wait-online@<interface>.service has been
1683 added that can be used to wait for a specific network interface to be
1684 up.
1685
1686 * systemd-networkd gained a new [Bridge] Isolated=true|false setting
1687 that configures the eponymous kernel attribute on the bridge.
1688
1689 * .netdev files now can be used to create virtual WLAN devices, and
1690 configure various settings on them, via the [WLAN] section.
1691
00b29ca1
ZJS
1692 * .link/.network files gained support for [Match] Kind= setting to match
1693 on device kind ("bond", "bridge", "gre", "tun", "veth", etc.)
1694
1695 This value is also shown by 'networkctl status'.
1696
0c6e746b
YW
1697 * The Local= setting in .netdev files for various virtual network
1698 devices gained support for specifying, in addition to the network
1699 address, the name of a local interface which must have the specified
1700 address.
60a777b5 1701
0c6e746b
YW
1702 * systemd-networkd gained a new [Tunnel] External= setting in .netdev
1703 files, to configure tunnels in external mode (a.k.a. collect metadata
1704 mode).
1705
1706 * [Network] L2TP= setting was removed. Please use interface specifier in
1707 Local= setting in .netdev files of corresponding L2TP interface.
00b29ca1
ZJS
1708
1709 * New [DHCPServer] BootServerName=, BootServerAddress=, and
1710 BootFilename= settings can be used to configure the server address,
1711 server name, and file name sent in the DHCP packet (e.g. to configure
1712 PXE boot).
1713
942473dc 1714 Changes in systemd-resolved:
00b29ca1 1715
0c6e746b
YW
1716 * systemd-resolved is started earlier (in sysinit.target), so it
1717 available earlier and will also be started in the initrd if installed
1718 there.
e1f0c136 1719
942473dc 1720 Changes in disk encryption:
00b29ca1 1721
0c6e746b
YW
1722 * systemd-cryptenroll can now control whether to require the user to
1723 enter a PIN when using TPM-based unlocking of a volume via the new
1724 --tpm2-with-pin= option.
60a777b5 1725
0c6e746b 1726 Option tpm2-pin= can be used in /etc/crypttab.
60a777b5 1727
0c6e746b
YW
1728 * When unlocking devices via TPM, TPM2 parameter encryption is now
1729 used, to ensure that communication between CPU and discrete TPM chips
1730 cannot be eavesdropped to acquire disk encryption keys.
60a777b5 1731
61ade257
LP
1732 * A new switch --fido2-credential-algorithm= has been added to
1733 systemd-cryptenroll allowing selection of the credential algorithm to
1734 use when binding encryption to FIDO2 tokens.
1735
942473dc 1736 Changes in systemd-hostnamed:
60a777b5 1737
0c6e746b
YW
1738 * HARDWARE_VENDOR= and HARDWARE_MODEL= can be set in /etc/machine-info
1739 to override the values gleaned from the hwdb.
1740
1741 * A ID_CHASSIS property can be set in the hwdb (for the DMI device
1742 /sys/class/dmi/id) to override the chassis that is reported by
1743 hostnamed.
1744
1745 * hostnamed's D-Bus interface gained a new method GetHardwareSerial()
61ade257
LP
1746 for reading the hardware serial number, as reportd by DMI. It also
1747 exposes a new method D-Bus property FirmwareVersion that encode the
1748 firmware version of the system.
0c6e746b 1749
942473dc 1750 Changes in other components:
0c6e746b
YW
1751
1752 * /etc/locale.conf is now populated through tmpfiles.d factory /etc/
1753 handling with the values that were configured during systemd build
1754 (if /etc/locale.conf has not been created through some other
1755 mechanism). This means that /etc/locale.conf should always have
1756 reasonable contents and we avoid a potential mismatch in defaults.
1757
1758 * The userdbctl tool will now show UID range information as part of the
1759 list of known users.
60a777b5 1760
942473dc
ZJS
1761 * A new build-time configuration setting default-user-shell= can be
1762 used to set the default shell for user records and nspawn shell
1763 invocations (instead of of the default /bin/bash).
1764
61ade257
LP
1765 * systemd-timesyncd now provides a D-Bus API for receiving NTP server
1766 information dynamically at runtime via IPC.
1767
1768 * The systemd-creds tool gained a new "has-tpm2" verb, which reports
1769 whether a functioning TPM2 infrastructure is available, i.e. if
1770 firmware, kernel driver and systemd all have TPM2 support enabled and
1771 a device found.
1772
1773 * The systemd-creds tool gained support for generating encrypted
1774 credentials that are using an empty encryption key. While this
1775 provides no integrity nor confidentiality it's useful to implement
1776 codeflows that work the same on TPM-ful and TPM2-less systems. The
1777 service manager will only accept credentials "encrypted" that way if
1778 a TPM2 device cannot be detected, to ensure that credentials
1779 "encrypted" like that cannot be used to trick TPM2 systems.
1780
211b564a
ZJS
1781 * When deciding whether to colorize output, all systemd programs now
1782 also check $COLORTERM (in addition to $NO_COLOR, $SYSTEMD_COLORS, and
1783 $TERM).
1784
7f2ec323
LB
1785 * Meson's new install_tag feature is now in use for several components,
1786 allowing to build and install select binaries only: pam, nss, devel
1787 (pkg-config files), systemd-boot, libsystemd, libudev. Example:
1788 $ meson build systemd-boot
1789 $ meson install --tags systemd-boot --no-rebuild
1790 https://mesonbuild.com/Installing.html#installation-tags
1791
1792 * A new build configuration option has been added, to allow selecting the
1793 default compression algorithm used by systemd-journald and systemd-coredump.
1794 This allows to build-in support for decompressing all supported formats,
1795 but choose a specific one for compression. E.g.:
1796 $ meson -Ddefault-compression=xz
1797
00b29ca1
ZJS
1798 Experimental features:
1799
1800 * sd-boot gained a new *experimental* setting "reboot-for-bitlocker" in
1801 loader.conf that implements booting Microsoft Windows from the
1802 sd-boot in a way that first reboots the system, to reset the TPM
1803 PCRs. This improves compatibility with BitLocker's TPM use, as the
1804 PCRs will only record the Windows boot process, and not sd-boot
1805 itself, thus retaining the PCR measurements not involving sd-boot.
1806 Note that this feature is experimental for now, and is likely going
1807 to be generalized and renamed in a future release, without retaining
1808 compatibility with the current implementation.
1809
1810 * A new systemd-sysupdate component has been added that automatically
1811 discovers, downloads, and installs A/B-style updates for the host
1812 installation itself, or container images, portable service images,
1813 and other assets. See the new systemd-sysupdate man page for updates.
ffa047a0 1814
73849408 1815 Contributions from: 4piu, Adam Williamson, adrian5, Albert Brox,
0950eee5
LB
1816 AlexCatze, Alex Henrie, Alfonso Sánchez-Beato, Alice S,
1817 Alvin Šipraga, amarjargal, Amarjargal, Andrea Pappacoda,
1818 Andreas Rammhold, Andy Chi, Anita Zhang, Antonio Alvarez Feijoo,
1819 Arfrever Frehtes Taifersar Arahesis, ash, Bastien Nocera, Be,
410b996a
LB
1820 bearhoney, Ben Efros, Benjamin Berg, Benjamin Franzke,
1821 Brett Holman, Christian Brauner, Clyde Byrd III, Curtis Klein,
1822 Daan De Meyer, Daniele Medri, Daniel Mack, Danilo Krummrich,
1823 David, David Bond, Davide Cavalca, David Tardon, davijosw,
1824 dependabot[bot], Donald Chan, Dorian Clay, Eduard Tolosa,
1825 Elias Probst, Eli Schwartz, Erik Sjölund, Evgeny Vereshchagin,
1826 Federico Ceratto, Franck Bui, Frantisek Sumsal, Gaël PORTAY,
1827 Georges Basile Stavracas Neto, Gibeom Gwon, Goffredo Baroncelli,
1828 Grigori Goronzy, Hans de Goede, Heiko Becker, Hugo Carvalho,
1829 Jakob Lell, James Hilliard, Jan Janssen, Jason A. Donenfeld,
1830 Joan Bruguera, Joerie de Gram, Josh Triplett, Julia Kartseva,
1831 Kazuo Moriwaka, Khem Raj, ksa678491784, Lance, Lan Tian,
1832 Laura Barcziova, Lennart Poettering, Leviticoh, licunlong,
1833 Lidong Zhong, lincoln auster, Lubomir Rintel, Luca Boccassi,
1834 Luca BRUNO, lucagoc, Ludwig Nussel, Marcel Hellwig, march1993,
1835 Marco Scardovi, Mario Limonciello, Mariusz Tkaczyk,
1836 Markus Weippert, Martin, Martin Liska, Martin Wilck, Matija Skala,
0950eee5
LB
1837 Matthew Blythe, Matthias Lisin, Matthijs van Duin, Matt Walton,
1838 Max Gautier, Michael Biebl, Michael Olbrich, Michal Koutný,
1839 Michal Sekletár, Mike Gilbert, MkfsSion, Morten Linderud,
410b996a
LB
1840 Nick Rosbrook, Nikolai Grigoriev, Nikolai Kostrigin,
1841 Nishal Kulkarni, Noel Kuntze, Pablo Ceballos, Peter Hutterer,
1842 Peter Morrow, Pigmy-penguin, Piotr Drąg, prumian, Richard Neill,
211b564a
ZJS
1843 Rike-Benjamin Schuppner, rodin-ia, Romain Naour, Ruben Kerkhof,
1844 Ryan Hendrickson, Santa Wiryaman, Sebastian Pucilowski, Seth Falco,
0950eee5
LB
1845 Simon Ellmann, Sonali Srivastava, Stefan Seering,
1846 Stephen Hemminger, tawefogo, techtino, Temuri Doghonadze,
1847 Thomas Batten, Thomas Haller, Thomas Weißschuh, Tobias Stoeckmann,
410b996a
LB
1848 Tomasz Pala, Tyson Whitehead, Vishal Chillara Srinivas,
1849 Vivien Didelot, w30023233, wangyuhang, Weblate, Xiaotian Wu,
1850 yangmingtai, YmrDtnJu, Yonathan Randolph, Yutsuten, Yu Watanabe,
73849408
ZJS
1851 Zbigniew Jędrzejewski-Szmek, наб
1852
7f2ec323 1853 — Edinburgh, 2022-05-21
bbfabc44 1854
a420d717 1855CHANGES WITH 250:
195d181c 1856
dcdc652f
ZJS
1857 * Support for encrypted and authenticated credentials has been added.
1858 This extends the credential logic introduced with v247 to support
1859 non-interactive symmetric encryption and authentication, based on a
1860 key that is stored on the /var/ file system or in the TPM2 chip (if
1861 available), or the combination of both (by default if a TPM2 chip
1862 exists the combination is used, otherwise the /var/ key only). The
1863 credentials are automatically decrypted at the moment a service is
1864 started, and are made accessible to the service itself in unencrypted
1865 form. A new tool 'systemd-creds' encrypts credentials for this
1866 purpose, and two new service file settings LoadCredentialEncrypted=
1867 and SetCredentialEncrypted= configure such credentials.
1868
1869 This feature is useful to store sensitive material such as SSL
1870 certificates, passwords and similar securely at rest and only decrypt
1871 them when needed, and in a way that is tied to the local OS
1872 installation or hardware.
195d181c
LP
1873
1874 * systemd-gpt-auto-generator can now automatically set up discoverable
1875 LUKS2 encrypted swap partitions.
1876
dcdc652f
ZJS
1877 * The GPT Discoverable Partitions Specification has been substantially
1878 extended with support for root and /usr/ partitions for the majority
1879 of architectures systemd supports. This includes platforms that do
1880 not natively support UEFI, because even though GPT is specified under
1881 UEFI umbrella, it is useful on other systems too. Specifically,
195d181c 1882 systemd-nspawn, systemd-sysext, systemd-gpt-auto-generator and
dcdc652f
ZJS
1883 Portable Services use the concept without requiring UEFI.
1884
1885 * The GPT Discoverable Partitions Specifications has been extended with
1886 a new set of partitions that may carry PKCS#7 signatures for Verity
1887 partitions, encoded in a simple JSON format. This implements a simple
1888 mechanism for building disk images that are fully authenticated and
1889 can be tested against a set of cryptographic certificates. This is
1890 now implemented for the various systemd tools that can operate with
1891 disk images, such as systemd-nspawn, systemd-sysext, systemd-dissect,
1892 Portable services/RootImage=, systemd-tmpfiles, and systemd-sysusers.
1893 The PKCS#7 signatures are passed to the kernel (where they are
195d181c
LP
1894 checked against certificates from the kernel keyring), or can be
1895 verified against certificates provided in userspace (via a simple
1896 drop-in file mechanism).
1897
1898 * systemd-dissect's inspection logic will now report for which uses a
1899 disk image is intended. Specifically, it will display whether an
1900 image is suitable for booting on UEFI or in a container (using
1901 systemd-nspawn's --image= switch), whether it can be used as portable
1902 service, or attached as system extension.
1903
1904 * The system-extension.d/ drop-in files now support a new field
1905 SYSEXT_SCOPE= that may encode which purpose a system extension image
1906 is for: one of "initrd", "system" or "portable". This is useful to
1907 make images more self-descriptive, and to ensure system extensions
1908 cannot be attached in the wrong contexts.
1909
1910 * The os-release file learnt a new PORTABLE_PREFIXES= field which may
1911 be used in portable service images to indicate which unit prefixes
1912 are supported.
1913
1914 * The GPT image dissection logic in systemd-nspawn/systemd-dissect/…
1915 now is able to decode images for non-native architectures as well.
dcdc652f
ZJS
1916 This allows systemd-nspawn to boot images of non-native architectures
1917 if the corresponding user mode emulator is installed and
1918 systemd-binfmtd is running.
195d181c 1919
dcdc652f 1920 * systemd-logind gained new settings HandlePowerKeyLongPress=,
195d181c
LP
1921 HandleRebootKeyLongPress=, HandleSuspendKeyLongPress= and
1922 HandleHibernateKeyLongPress= which may be used to configure actions
1923 when the relevant keys are pressed for more than 5s. This is useful
1924 on devices that only have hardware for a subset of these keys. By
1925 default, if the reboot key is pressed long the poweroff operation is
1926 now triggered, and when the suspend key is pressed long the hibernate
1927 operation is triggered. Long pressing the other two keys currently
1928 does not trigger any operation by default.
1929
1930 * When showing unit status updates on the console during boot and
368910b1 1931 shutdown, and a service is slow to start so that the cylon animation
195d181c
LP
1932 is shown, the most recent sd_notify() STATUS= text is now shown as
1933 well. Services may use this to make the boot/shutdown output easier
1934 to understand, and to indicate what precisely a service that is slow
dcdc652f 1935 to start or stop is waiting for. In particular, the per-user service
195d181c
LP
1936 manager instance now reports what it is doing and which service it is
1937 waiting for this way to the system service manager.
1938
1939 * The service manager will now re-execute on reception of the
1940 SIGRTMIN+25 signal. It previously already did that on SIGTERM — but
1941 only when running as PID 1. There was no signal to request this when
dcdc652f
ZJS
1942 running as per-user service manager, i.e. as any other PID than 1.
1943 SIGRTMIN+25 works for both system and user managers.
195d181c
LP
1944
1945 * The hardware watchdog logic in PID 1 gained support for operating
1946 with the default timeout configured in the hardware, instead of
1947 insisting on re-configuring it. Set RuntimeWatchdogSec=default to
1948 request this behavior.
1949
1950 * A new kernel command line option systemd.watchdog_sec= is now
1951 understood which may be used to override the hardware watchdog
1952 time-out for the boot.
1953
1954 * A new setting DefaultOOMScoreAdjust= is now supported in
942473dc
ZJS
1955 /etc/systemd/system.conf and /etc/systemd/user.conf. It may be used
1956 to set the default process OOM score adjustment value for processes
1957 started by the service manager. For per-user service managers this
195d181c
LP
1958 now defaults to 100, but for per-system service managers is left as
1959 is. This means that by default now services forked off the user
1960 service manager are more likely to be killed by the OOM killer than
1961 system services or the managers themselves.
1962
1963 * A new per-service setting RestrictFileSystems= as been added that
dcdc652f
ZJS
1964 restricts the file systems a service has access to by their type.
1965 This is based on the new BPF LSM of the Linux kernel. It provides an
1966 effective way to make certain API file systems unavailable to
195d181c
LP
1967 services (and thus minimizing attack surface). A new command
1968 "systemd-analyze filesystems" has been added that lists all known
1969 file system types (and how they are grouped together under useful
1970 group handles).
1971
1972 * Services now support a new setting RestrictNetworkInterfaces= for
1973 restricting access to specific network interfaces.
1974
dcdc652f 1975 * Service unit files gained new settings StartupAllowedCPUs= and
195d181c
LP
1976 StartupAllowedMemoryNodes=. These are similar to their counterparts
1977 without the "Startup" prefix and apply during the boot process
1978 only. This is useful to improve boot-time behavior of the system and
1979 assign resources differently during boot than during regular
1980 runtime. This is similar to the preexisting StartupCPUWeight=
1981 vs. CPUWeight.
1982
1983 * Related to this: the various StartupXYZ= settings
1984 (i.e. StartupCPUWeight=, StartupAllowedCPUs=, …) are now also applied
1985 during shutdown. The settings not prefixed with "Startup" hence apply
1986 during regular runtime, and those that are prefixed like that apply
1987 during boot and shutdown.
1988
bf71ade8
LB
1989 * A new per-unit set of conditions/asserts
1990 [Condition|Assert][Memory|CPU|IO]Pressure= have been added to make a
1991 unit skip/fail activation if the system's (or a slice's) memory/cpu/io
1992 pressure is above the configured threshold, using the kernel PSI
dcdc652f 1993 feature. For more details see systemd.unit(5) and
0e685823 1994 https://docs.kernel.org/accounting/psi.html
bf71ade8
LB
1995
1996 * The combination of ProcSubset=pid and ProtectKernelTunables=yes and/or
1997 ProtectKernelLogs=yes can now be used.
1998
e63fa075 1999 * The default maximum numbers of inodes have been raised from 64k to 1M
bb7031bc 2000 for /dev/, and from 400k to 1M for /tmp/.
bf71ade8 2001
195d181c
LP
2002 * The per-user service manager learnt support for communicating with
2003 systemd-oomd to acquire OOM kill information.
2004
2005 * A new service setting ExecSearchPath= has been added that allows
dcdc652f
ZJS
2006 changing the search path for executables for services. It affects
2007 where we look for the binaries specified in ExecStart= and similar,
2008 and the specified directories are also added the $PATH environment
2009 variable passed to invoked processes.
195d181c
LP
2010
2011 * A new setting RuntimeRandomizedExtraSec= has been added for service
2012 and scope units that allows extending the runtime time-out as
2013 configured by RuntimeMaxSec= with a randomized amount.
2014
2015 * The syntax of the service unit settings RuntimeDirectory=,
2016 StateDirectory=, CacheDirectory=, LogsDirectory= has been extended:
dcdc652f 2017 if the specified value is now suffixed with a colon, followed by
195d181c
LP
2018 another filename, the latter will be created as symbolic link to the
2019 specified directory. This allows creating these service directories
2020 together with alias symlinks to make them available under multiple
2021 names.
2022
2023 * Service unit files gained two new settings TTYRows=/TTYColumns= for
2024 configuring rows/columns of the TTY device passed to
2025 stdin/stdout/stderr of the service. This is useful to propagate TTY
dcdc652f 2026 dimensions to a virtual machine.
195d181c 2027
dcdc652f
ZJS
2028 * A new service unit file setting ExitType= has been added that
2029 specifies when to assume a service has exited. By default systemd
2030 only watches the main process of a service. By setting
2031 ExitType=cgroup it can be told to wait for the last process in a
2032 cgroup instead.
195d181c
LP
2033
2034 * Automount unit files gained a new setting ExtraOptions= that can be
2035 used to configure additional mount options to pass to the kernel when
2036 mounting the autofs instance.
2037
dcdc652f
ZJS
2038 * "Urlification" (generation of ESC sequences that generate clickable
2039 hyperlinks in modern terminals) may now be turned off altogether
2040 during build-time.
195d181c 2041
616779c3 2042 * Path units gained new TriggerLimitBurst= and TriggerLimitIntervalSec=
28be02e0
ZJS
2043 settings that default to 200 and 2 s respectively. The ratelimit
2044 ensures that a path unit cannot cause PID1 to busy-loop when it is
2045 trying to trigger a service that is skipped because of a Condition*=
2046 not being satisfied. This matches the configuration and behaviour of
2047 socket units.
616779c3 2048
dcdc652f
ZJS
2049 * The TPM2/FIDO2/PKCS11 support in systemd-cryptsetup is now also built
2050 as a plug-in for cryptsetup. This means the plain cryptsetup command
2051 may now be used to unlock volumes set up this way.
195d181c
LP
2052
2053 * The TPM2 logic in cryptsetup will now automatically detect systems
dcdc652f 2054 where the TPM2 chip advertises SHA256 PCR banks but the firmware only
195d181c
LP
2055 updates the SHA1 banks. In such a case PCR policies will be
2056 automatically bound to the latter, not the former. This makes the PCR
2057 policies reliable, but of course do not provide the same level of
2058 trust as SHA256 banks.
2059
2060 * The TPM2 logic in systemd-cryptsetup/systemd-cryptsetup now supports
2061 RSA primary keys in addition to ECC, improving compatibility with
2062 TPM2 chips that do not support ECC. RSA keys are much slower to use
2063 than ECC, and hence are only used if ECC is not available.
2064
2065 * /etc/crypttab gained support for a new token-timeout= setting for
dcdc652f
ZJS
2066 encrypted volumes that allows configuration of the maximum time to
2067 wait for PKCS#11/FIDO2 tokens to be plugged in. If the time elapses
2068 the logic will query the user for a regular passphrase/recovery key
195d181c
LP
2069 instead.
2070
2071 * Support for activating dm-integrity volumes at boot via a new file
dcdc652f
ZJS
2072 /etc/integritytab and the tool systemd-integritysetup have been
2073 added. This is similar to /etc/crypttab and /etc/veritytab, but deals
2074 with dm-integrity instead of dm-crypt/dm-verity.
195d181c
LP
2075
2076 * The systemd-veritysetup-generator now understands a new usrhash=
2077 kernel command line option for specifying the Verity root hash for
2078 the partition backing the /usr/ file system. A matching set of
2079 systemd.verity_usr_* kernel command line options has been added as
2080 well. These all work similar to the corresponding options for the
2081 root partition.
2082
2083 * The sd-device API gained a new API call sd_device_get_diskseq() to
2084 return the DISKSEQ property of a device structure. The "disk
2085 sequence" concept is a new feature recently introduced to the Linux
2086 kernel that allows detecting reuse cycles of block devices, i.e. can
2087 be used to recognize when loopback block devices are reused for a
2088 different purpose or CD-ROM drives get their media changed.
2089
2090 * A new unit systemd-boot-update.service has been added. If enabled
2091 (the default) and the sd-boot loader is detected to be installed, it
dcdc652f
ZJS
2092 is automatically updated to the newest version when out of date. This
2093 is useful to ensure the boot loader remains up-to-date, and updates
2094 automatically propagate from the OS tree in /usr/.
195d181c 2095
bf71ade8
LB
2096 * sd-boot will now build with SBAT by default in order to facilitate
2097 working with recent versions of Shim that require it to be present.
2098
97b6ed32
ZJS
2099 * sd-boot can now parse Microsoft Windows' Boot Configuration Data.
2100 This is used to robustly generate boot entry titles for Windows.
2101
195d181c
LP
2102 * A new generic target unit factory-reset.target has been added. It is
2103 hooked into systemd-logind similar in fashion to
2104 reboot/poweroff/suspend/hibernate, and is supposed to be used to
2105 initiate a factory reset operation. What precisely this operation
2106 entails is up for the implementer to decide, the primary goal of the
2107 new unit is provide a framework where to plug in the implementation
2108 and how to trigger it.
2109
2110 * A new meson build-time option 'clock-valid-range-usec-max' has been
2111 added which takes a time in µs and defaults to 15 years. If the RTC
2112 time is noticed to be more than the specified time ahead of the
2113 built-in epoch of systemd (which by default is the release timestamp
2114 of systemd) it is assumed that the RTC is not working correctly, and
2115 the RTC is reset to the epoch. (It already is reset to the epoch when
2116 noticed to be before it.) This should increase the chance that time
2117 doesn't accidentally jump too far ahead due to faulty hardware or
2118 batteries.
2119
63b7d347
YW
2120 * A new setting SaveIntervalSec= has been added to systemd-timesyncd,
2121 which may be used to automatically save the current system time to
2122 disk in regular intervals. This is useful to maintain a roughly
2123 monotonic clock even without RTC hardware and with some robustness
2124 against abnormal system shutdown.
2125
195d181c
LP
2126 * systemd-analyze verify gained support for a pair of new --image= +
2127 --root= switches for verifying units below a specific root
2128 directory/image instead of on the host.
2129
2130 * systemd-analyze verify gained support for verifying unit files under
2131 an explicitly specified unit name, independently of what the filename
2132 actually is.
2133
dcdc652f
ZJS
2134 * systemd-analyze verify gained a new switch --recursive-errors= which
2135 controls whether to only fail on errors found in the specified units
2136 or recursively any dependent units.
2137
2138 * systemd-analyze security now supports a new --offline mode for
2139 analyzing unit files stored on disk instead of loaded units. It may
2140 be combined with --root=/--image to analyze unit files under a root
2141 directory or disk image. It also learnt a new --threshold= parameter
2142 for specifying an exposure level threshold: if the exposure level
2143 exceeds the specified value the call will fail. It also gained a new
2144 --security-policy= switch for configuring security policies to
2145 enforce on the units. A policy is a JSON file that lists which tests
2146 shall be weighted how much to determine the overall exposure
2147 level. Altogether these new features are useful for fully automatic
2148 analysis and enforcement of security policies on unit files.
2149
2150 * systemd-analyze security gain a new --json= switch for JSON output.
2151
2152 * systemd-analyze learnt a new --quiet switch for reducing
2153 non-essential output. It's honored by the "dot", "syscall-filter",
2154 "filesystems" commands.
2155
bb7031bc 2156 * systemd-analyze security gained a --profile= option that can be used
dcdc652f
ZJS
2157 to take into account a portable profile when analyzing portable
2158 services, since a lot of the security-related settings are enabled
2159 through them.
2160
2161 * systemd-analyze learnt a new inspect-elf verb that parses ELF core
2162 files, binaries and executables and prints metadata information,
2163 including the build-id and other info described on:
2164 https://systemd.io/COREDUMP_PACKAGE_METADATA/
2165
c0b28d44
YW
2166 * .network files gained a new UplinkInterface= in the [IPv6SendRA]
2167 section, for automatically propagating DNS settings from other
2168 interfaces.
bf71ade8 2169
c0b28d44
YW
2170 * The static lease DHCP server logic in systemd-networkd may now serve
2171 IP addresses outside of the configured IP pool range for the server.
97b6ed32 2172
c0b28d44
YW
2173 * CAN support in systemd-networkd gained four new settings Loopback=,
2174 OneShot=, PresumeAck=, ClassicDataLengthCode= for tweaking CAN
2175 control modes. It gained a number of further settings for tweaking
2176 CAN timing quanta.
bf71ade8 2177
c0b28d44
YW
2178 * The [CAN] section in .network file gained new TimeQuantaNSec=,
2179 PropagationSegment=, PhaseBufferSegment1=, PhaseBufferSegment2=,
2180 SyncJumpWidth=, DataTimeQuantaNSec=, DataPropagationSegment=,
2181 DataPhaseBufferSegment1=, DataPhaseBufferSegment2=, and
2182 DataSyncJumpWidth= settings to control bit-timing processed by the
2183 CAN interface.
bf71ade8 2184
c0b28d44
YW
2185 * DHCPv4 client support in systemd-networkd learnt a new Label= option
2186 for configuring the address label to apply to configure IPv4
2187 addresses.
bf71ade8 2188
c0b28d44
YW
2189 * The [IPv6AcceptRA] section of .network files gained support for a new
2190 UseMTU= setting that may be used to control whether to apply the
2191 announced MTU settings to the local interface.
195d181c 2192
63b7d347
YW
2193 * The [DHCPv4] section in .network file gained a new Use6RD= boolean
2194 setting to control whether the DHCPv4 client request and process the
2195 DHCP 6RD option.
2196
2197 * The [DHCPv6PrefixDelegation] section in .network file is renamed to
2198 [DHCPPrefixDelegation], as now the prefix delegation is also supported
2199 with DHCPv4 protocol by enabling the Use6RD= setting.
2200
2201 * The [DHCPPrefixDelegation] section in .network file gained a new
2202 setting UplinkInterface= to specify the upstream interface.
2203
2204 * The [DHCPv6] section in .network file gained a new setting
2205 UseDelegatedPrefix= to control whether the delegated prefixes will be
2206 propagated to the downstream interfaces.
195d181c
LP
2207
2208 * The [IPv6AcceptRA] section of .network files now understands two new
2209 settings UseGateway=/UseRoutePrefix= for explicitly configuring
2210 whether to use the relevant fields from the IPv6 Router Advertisement
2211 records.
2212
8adba772
ZJS
2213 * The ForceDHCPv6PDOtherInformation= setting in the [DHCPv6] section
2214 has been removed. Please use the WithoutRA= and UseDelegatedPrefix=
63b7d347
YW
2215 settings in the [DHCPv6] section and the DHCPv6Client= setting in the
2216 [IPv6AcceptRA] section to control when the DHCPv6 client is started
2217 and how the delegated prefixes are handled by the DHCPv6 client.
2218
63b7d347
YW
2219 * The IPv6Token= section in the [Network] section is deprecated, and
2220 the [IPv6AcceptRA] section gained the Token= setting for its
2221 replacement. The [IPv6Prefix] section also gained the Token= setting.
2222 The Token= setting gained 'eui64' mode to explicitly configure an
2223 address with the EUI64 algorithm based on the interface MAC address.
2224 The 'prefixstable' mode can now optionally take a secret key. The
2225 Token= setting in the [DHCPPrefixDelegation] section now supports all
2226 algorithms supported by the same settings in the other sections.
2227
2228 * The [RoutingPolicyRule] section of .network file gained a new
2229 SuppressInterfaceGroup= setting.
195d181c
LP
2230
2231 * The IgnoreCarrierLoss= setting in the [Network] section of .network
dcdc652f
ZJS
2232 files now allows a duration to be specified, controlling how long to
2233 wait before reacting to carrier loss.
195d181c 2234
dcdc652f
ZJS
2235 * The [DHCPServer] section of .network file gained a new Router=
2236 setting to specify the router address.
11b10922 2237
c0b28d44
YW
2238 * The [CAKE] section of .network files gained various new settings
2239 AutoRateIngress=, CompensationMode=, FlowIsolationMode=, NAT=,
2240 MPUBytes=, PriorityQueueingPreset=, FirewallMark=, Wash=, SplitGSO=,
2241 and UseRawPacketSize= for configuring CAKE.
2242
2243 * systemd-networkd now ships with new default .network files:
2244 80-container-vb.network which matches host-side network bridge device
2245 created by systemd-nspawn's --network-bridge or --network-zone
2246 switch, and 80-6rd-tunnel.network which matches automatically created
2247 sit tunnel with 6rd prefix when the DHCP 6RD option is received.
2248
2249 * systemd-networkd's handling of Endpoint= resolution for WireGuard
2250 interfaces has been improved.
2251
2252 * systemd-networkd will now automatically configure routes to addresses
2253 specified in AllowedIPs=. This feature can be controlled via
2254 RouteTable= and RouteMetric= settings in [WireGuard] or
2255 [WireGuardPeer] sections.
2256
2257 * systemd-networkd will now once again automatically generate persistent
2258 MAC addresses for batadv and bridge interfaces. Users can disable this
2259 by using MACAddress=none in .netdev files.
2260
2261 * systemd-networkd and systemd-udevd now support IP over InfiniBand
2262 interfaces. The Kind= setting in .netdev file accepts "ipoib". And
2263 systemd.netdev files gained the [IPoIB] section.
2264
2265 * systemd-networkd and systemd-udevd now support net.ifname-policy=
2266 option on the kernel command-line. This is implemented through the
2267 systemd-network-generator service that automatically generates
2268 appropriate .link, .network, and .netdev files.
2269
2270 * The various systemd-udevd "ethtool" buffer settings now understand
2271 the special value "max" to configure the buffers to the maximum the
2272 hardware supports.
2273
2274 * systemd-udevd's .link files may now configure a large variety of
2275 NIC coalescing settings, plus more hardware offload settings.
2276
2277 * .link files gained a new WakeOnLanPassword= setting in the [Link]
2278 section that allows to specify a WoL "SecureOn" password on hardware
2279 that supports this.
2280
195d181c
LP
2281 * systemd-nspawn's --setenv= switch now supports an additional syntax:
2282 if only a variable name is specified (i.e. without being suffixed by
2283 a '=' character and a value) the current value of the environment
2284 variable is propagated to the container. e.g. --setenv=FOO will
2285 lookup the current value of $FOO in the environment, and pass it down
2286 to the container. Similar behavior has been added to homectl's,
2287 machinectl's and systemd-run's --setenv= switch.
2288
2289 * systemd-nspawn gained a new switch --suppress-sync= which may be used
2290 to optionally suppress the effect of the sync()/fsync()/fdatasync()
2291 system calls for the container payload. This is useful for build
2292 system environments where safety against abnormal system shutdown is
2293 not essential as all build artifacts can be regenerated any time, but
2294 the performance win is beneficial.
2295
dcdc652f
ZJS
2296 * systemd-nspawn will now raise the RLIMIT_NOFILE hard limit to the
2297 same value that PID 1 uses for most forked off processes.
195d181c
LP
2298
2299 * systemd-nspawn's --bind=/--bind-ro= switches now optionally take
2300 uidmap/nouidmap options as last parameter. If "uidmap" is used the
2301 bind mounts are created with UID mapping taking place that ensures
2302 the host's file ownerships are mapped 1:1 to container file
2303 ownerships, even if user namespacing is used. This way
2304 files/directories bound into containers will no longer show up as
dcdc652f 2305 owned by the nobody user as they typically did if no special care was
195d181c
LP
2306 taken to shift them manually.
2307
2308 * When discovering Windows installations sd-boot will now attempt to
dcdc652f 2309 show the Windows version.
195d181c
LP
2310
2311 * The color scheme to use in sd-boot may now be configured at
2312 build-time.
2313
195d181c
LP
2314 * sd-boot gained the ability to change screen resolution during
2315 boot-time, by hitting the "r" key. This will cycle through available
dcdc652f 2316 resolutions and save the last selection.
195d181c
LP
2317
2318 * sd-boot learnt a new hotkey "f". When pressed the system will enter
2319 firmware setup. This is useful in environments where it is difficult
2320 to hit the right keys early enough to enter the firmware, and works
2321 on any firmware regardless which key it natively uses.
2322
2323 * sd-boot gained support for automatically booting into the menu item
2324 selected on the last boot (using the "@saved" identifier for menu
2325 items).
2326
dcdc652f
ZJS
2327 * sd-boot gained support for automatically loading all EFI drivers
2328 placed in the /EFI/systemd/drivers/ subdirectory of the EFI System
2329 Partition (ESP). These drivers are loaded before the menu entries are
2330 loaded. This is useful e.g. to load additional file system drivers
2331 for the XBOOTLDR partition.
2332
2333 * systemd-boot will now paint the input cursor on its own instead of
2334 relying on the firmware to do so, increasing compatibility with broken
2335 firmware that doesn't make the cursor reasonably visible.
2336
195d181c
LP
2337 * sd-boot now embeds a .osrel PE section like we expect from Boot
2338 Loader Specification Type #2 Unified Kernels. This means sd-boot
2339 itself may be used in place of a Type #2 Unified Kernel. This is
2340 useful for debugging purposes as it allows chain-loading one a
2341 (development) sd-boot instance from another.
2342
2343 * sd-boot now supports a new "devicetree" field in Boot Loader
2344 Specification Type #1 entries: if configured the specified device
2345 tree file is installed before the kernel is invoked. This is useful
2346 for installing/applying new devicetree files without updating the
2347 kernel image.
2348
dcdc652f 2349 * Similarly, sd-stub now can read devicetree data from a PE section
195d181c
LP
2350 ".dtb" and apply it before invoking the kernel.
2351
2352 * sd-stub (the EFI stub that can be glued in front of a Linux kernel)
97b6ed32
ZJS
2353 gained the ability to pick up credentials and sysext files, wrap them
2354 in a cpio archive, and pass as an additional initrd to the invoked
2355 Linux kernel, in effect placing those files in the /.extra/ directory
2356 of the initrd environment. This is useful to implement trusted initrd
2357 environments which are fully authenticated but still can be extended
2358 (via sysexts) and parameterized (via encrypted/authenticated
2359 credentials, see above).
2360
2361 Credentials can be located next to the kernel image file (credentials
2362 specific to a single boot entry), or in one of the shared directories
2363 (credentials applicable to multiple boot entries).
195d181c
LP
2364
2365 * sd-stub now comes with a full man page, that explains its feature set
2366 and how to combine a kernel image, an initrd and the stub to build a
2367 complete EFI unified kernel image, implementing Boot Loader
2368 Specification Type #2.
2369
dcdc652f 2370 * sd-stub may now provide the initrd to the executed kernel via the
195d181c
LP
2371 LINUX_EFI_INITRD_MEDIA_GUID EFI protocol, adding compatibility for
2372 non-x86 architectures.
2373
dcdc652f
ZJS
2374 * bootctl learnt new set-timeout and set-timeout-oneshot commands that
2375 may be used to set the boot menu time-out of the boot loader (for all
2376 or just the subsequent boot).
195d181c 2377
ffc97a1c
LP
2378 * bootctl and kernel-install will now read variables
2379 KERNEL_INSTALL_LAYOUT= from /etc/machine-info and layout= from
2380 /etc/kernel/install.conf. When set, it specifies the layout to use
2381 for installation directories on the boot partition, so that tools
2382 don't need to guess it based on the already-existing directories. The
2383 only value that is defined natively is "bls", corresponding to the
2384 layout specified in
c20ecc94
ZJS
2385 https://systemd.io/BOOT_LOADER_SPECIFICATION/. Plugins for
2386 kernel-install that implement a different layout can declare other
2387 values for this variable.
2388
2389 'bootctl install' will now write KERNEL_INSTALL_LAYOUT=bls, on the
2390 assumption that if the user installed sd-boot to the ESP, they intend
2391 to use the entry layout understood by sd-boot. It'll also write
2392 KERNEL_INSTALL_MACHINE_ID= if it creates any directories using the ID
2393 (and it wasn't specified in the config file yet). Similarly,
2394 kernel-install will now write KERNEL_INSTALL_MACHINE_ID= (if it
2395 wasn't specified in the config file yet). Effectively, those changes
2396 mean that the machine-id used for boot loader entry installation is
2397 "frozen" upon first use and becomes independent of the actual
2398 machine-id.
2399
2400 Configuring KERNEL_INSTALL_MACHINE_ID fixes the following problem:
2401 images created for distribution ("golden images") are built with no
2402 machine-id, so that a unique machine-id can be created on the first
2403 boot. But those images may contain boot loader entries with the
2404 machine-id used during build included in paths. Using a "frozen"
2405 value allows unambiguously identifying entries that match the
2406 specific installation, while still permitting parallel installations
2407 without conflict.
2408
2409 Configuring KERNEL_INSTALL_LAYOUT obviates the need for
2410 kernel-install to guess the installation layout. This fixes the
2411 problem where a (possibly empty) directory in the boot partition is
2412 created from a different layout causing kernel-install plugins to
2413 assume the wrong layout. A particular example of how this may happen
2414 is the grub2 package in Fedora which includes directories under /boot
2415 directly in its file list. Various other packages pull in grub2 as a
2416 dependency, so it may be installed even if unused, breaking
2417 installations that use the bls layout.
2418
97b6ed32
ZJS
2419 * bootctl and systemd-bless-boot can now be linked statically.
2420
195d181c 2421 * systemd-sysext now optionally doesn't insist on extension-release.d/
dcdc652f 2422 files being placed in the image under the image's file name. If the
195d181c 2423 file system xattr user.extension-release.strict is set on the
dcdc652f 2424 extension release file, it is accepted regardless of its name. This
195d181c
LP
2425 relaxes security restrictions a bit, as system extension may be
2426 attached under a wrong name this way.
2427
2428 * udevadm's test-builtin command learnt a new --action= switch for
2429 testing the built-in with the specified action (in place of the
dcdc652f 2430 default 'add').
195d181c
LP
2431
2432 * udevadm info gained new switches --property=/--value for showing only
2433 specific udev properties/values instead of all.
2434
2435 * A new hwdb database has been added that contains matches for various
2436 types of signal analyzers (protocol analyzers, logic analyzers,
2437 oscilloscopes, multimeters, bench power supplies, etc.) that should
2438 be accessible to regular users.
2439
2440 * A new hwdb database entry has been added that carries information
dcdc652f
ZJS
2441 about types of cameras (regular or infrared), and in which direction
2442 they point (front or back).
195d181c 2443
11b10922
LB
2444 * A new rule to allow console users access to rfkill by default has been
2445 added to hwdb.
2446
97b6ed32
ZJS
2447 * Device nodes for the Software Guard eXtension enclaves (sgx_vepc) are
2448 now also owned by the system group "sgx".
2449
195d181c 2450 * A new build-time meson option "extra-net-naming-schemes=" has been
dcdc652f
ZJS
2451 added to define additional naming schemes schemes for udev's network
2452 interface naming logic. This is useful for enterprise distributions
2453 and similar which want to pin the schemes of certain distribution
2454 releases under a specific name and previously had to patch the
2455 sources to introduce new named schemes.
195d181c
LP
2456
2457 * The predictable naming logic for network interfaces has been extended
2458 to generate stable names from Xen netfront device information.
2459
2460 * hostnamed's chassis property can now be sourced from chassis-type
dcdc652f 2461 field encoded in devicetree (in addition to the existing DMI
195d181c
LP
2462 support).
2463
dcdc652f 2464 * systemd-cgls now optionally displays cgroup IDs and extended
195d181c
LP
2465 attributes for each cgroup. (Controllable via the new --xattr= +
2466 --cgroup-id= switches.)
2467
2468 * coredumpctl gained a new --all switch for operating on all
2469 Journal files instead of just the local ones.
2470
bf71ade8
LB
2471 * systemd-coredump will now use libdw/libelf via dlopen() rather than
2472 directly linking, allowing users to easily opt-out of backtrace/metadata
2473 analysis of core files, and reduce image sizes when this is not needed.
2474
2475 * systemd-coredump will now analyze core files with libdw/libelf in a
2476 forked, sandboxed process.
2477
195d181c
LP
2478 * systemd-homed will now try to unmount an activate home area in
2479 regular intervals once the user logged out fully. Previously this was
2480 attempted exactly once but if the home directory was busy for some
2481 reason it was not tried again.
2482
dcdc652f 2483 * systemd-homed's LUKS2 home area backend will now create a BSD file
195d181c 2484 system lock on the image file while the home area is active
dcdc652f 2485 (i.e. mounted). If a home area is found to be locked, logins are
195d181c
LP
2486 politely refused. This should improve behavior when using home areas
2487 images that are accessible via the network from multiple clients, and
2488 reduce the chance of accidental file system corruption in that case.
2489
2490 * Optionally, systemd-homed will now drop the kernel buffer cache once
dcdc652f 2491 a user has fully logged out, configurable via the new --drop-caches=
195d181c
LP
2492 homectl switch.
2493
dcdc652f
ZJS
2494 * systemd-homed now makes use of UID mapped mounts for the home areas.
2495 If the kernel and used file system support it, files are now
195d181c
LP
2496 internally owned by the "nobody" user (i.e. the user typically used
2497 for indicating "this ownership is not mapped"), and dynamically
2498 mapped to the UID used locally on the system via the UID mapping
2499 mount logic of recent kernels. This makes migrating home areas
dcdc652f
ZJS
2500 between different systems cheaper because recursively chown()ing file
2501 system trees is no longer necessary.
195d181c
LP
2502
2503 * systemd-homed's CIFS backend now optionally supports CIFS service
2504 names with a directory suffix, in order to place home directories in
2505 a subdirectory of a CIFS share, instead of the top-level directory.
2506
2507 * systemd-homed's CIFS backend gained support for specifying additional
2508 mount options in the JSON user record (cifsExtraMountOptions field,
2509 and --cifs-extra-mount-options= homectl switch). This is for example
2510 useful for configuring mount options such as "noserverino" that some
dcdc652f
ZJS
2511 SMB3 services require (use that to run a homed home directory from a
2512 FritzBox SMB3 share this way).
195d181c
LP
2513
2514 * systemd-homed will now default to btrfs' zstd compression for home
dcdc652f
ZJS
2515 areas. This is inspired by Fedora's recent decision to switch to zstd
2516 by default.
195d181c
LP
2517
2518 * Additional mount options to use when mounting the file system of
2519 LUKS2 volumes in systemd-homed has been added. Via the
2520 $SYSTEMD_HOME_MOUNT_OPTIONS_BTRFS, $SYSTEMD_HOME_MOUNT_OPTIONS_EXT4,
2521 $SYSTEMD_HOME_MOUNT_OPTIONS_XFS environment variables to
2522 systemd-homed or via the luksExtraMountOptions user record JSON
2523 property. (Exposed via homectl --luks-extra-mount-options)
2524
2525 * homectl's resize command now takes the special size specifications
2526 "min" and "max" to shrink/grow the home area to the minimum/maximum
2527 size possible, taking disk usage/space constraints and file system
2528 limitations into account. Resizing is now generally graceful: the
2529 logic will try to get as close to the specified size as possible, but
2530 not consider it a failure if the request couldn't be fulfilled
2531 precisely.
2532
2533 * systemd-homed gained the ability to automatically shrink home areas
2534 on logout to their minimal size and grow them again on next
dcdc652f
ZJS
2535 login. This ensures that while inactive, a home area only takes up
2536 the minimal space necessary, but once activated, it provides
2537 sufficient space for the user's needs. This behavior is only
2538 supported if btrfs is used as file system inside the home area
2539 (because only for btrfs online growing/shrinking is implemented in
2540 the kernel). This behavior is now enabled by default, but may be
2541 controlled via the new --auto-resize-mode= setting of homectl.
195d181c
LP
2542
2543 * systemd-homed gained support for automatically re-balancing free disk
2544 space among active home areas, in case the LUKS2 backends are used,
2545 and no explicit disk size was requested. This way disk space is
2546 automatically managed and home areas resized in regular intervals and
2547 manual resizing when disk space becomes scarce should not be
2548 necessary anymore. This behavior is only supported if btrfs is used
2549 within the home areas (as only then online shrinking and growing is
2550 supported), and may be configured via the new rebalanceWeight JSON
2551 user record field (as exposed via the new --rebalance-weight= homectl
2552 setting). Re-balancing is mostly automatic, but can also be requested
2553 explicitly via "homectl rebalance", which is synchronous, and thus
dcdc652f 2554 may be used to wait until the rebalance run is complete.
195d181c
LP
2555
2556 * userdbctl gained a --json= switch for configured the JSON formatting
2557 to use when outputting user or group records.
2558
2559 * userdbctl gained a new --multiplexer= switch for explicitly
2560 configuring whether to use the systemd-userdbd server side user
2561 record resolution logic.
2562
2563 * userdbctl's ssh-authorized-keys command learnt a new --chain switch,
2564 for chaining up another command to execute after completing the
2565 look-up. Since the OpenSSH's AuthorizedKeysCommand only allows
dcdc652f
ZJS
2566 configuration of a single command to invoke, this maybe used to
2567 invoke multiple: first userdbctl's own implementation, and then any
2568 other also configured in the command line.
195d181c
LP
2569
2570 * The sd-event API gained a new function sd_event_add_inotify_fd() that
2571 is similar to sd_event_add_inotify() but accepts a file descriptor
2572 instead of a path in the file system for referencing the inode to
2573 watch.
2574
2575 * The sd-event API gained a new function
2576 sd_event_source_set_ratelimit_expire_callback() that may be used to
2577 define a callback function that is called whenever an event source
2578 leaves the rate limiting phase.
2579
2580 * New documentation has been added explaining which steps are necessary
2581 to port systemd to a new architecture:
2582
2583 https://systemd.io/PORTING_TO_NEW_ARCHITECTURES
2584
2585 * The x-systemd.makefs option in /etc/fstab now explicitly supports
dcdc652f 2586 ext2, ext3, and f2fs file systems.
195d181c 2587
97b6ed32
ZJS
2588 * Mount units and units generated from /etc/fstab entries with 'noauto'
2589 are now ordered the same as other units. Effectively, they will be
2590 started earlier (if something actually pulled them in) and stopped
2591 later, similarly to normal mount units that are part of
b0b1edc2 2592 fs-local.target. This change should be invisible to users, but
97b6ed32
ZJS
2593 should prevent those units from being stopped too early during
2594 shutdown.
2595
195d181c
LP
2596 * The systemd-getty-generator now honors a new kernel command line
2597 argument systemd.getty_auto= and a new environment variable
2598 $SYSTEMD_GETTY_AUTO that allows turning it off at boot. This is for
dcdc652f 2599 example useful to turn off gettys inside of containers or similar
195d181c
LP
2600 environments.
2601
2602 * systemd-resolved now listens on a second DNS stub address: 127.0.0.54
2603 (in addition to 127.0.0.53, as before). If DNS requests are sent to
2604 this address they are propagated in "bypass" mode only, i.e. are
2605 almost not processed locally, but mostly forwarded as-is to the
2606 current upstream DNS servers. This provides a stable DNS server
2607 address that proxies all requests dynamically to the right upstream
2608 DNS servers even if these dynamically change. This stub does not do
2609 mDNS/LLMNR resolution. However, it will translate look-ups to
2610 DNS-over-TLS if necessary. This new stub is particularly useful in
2611 container/VM environments, or for tethering setups: use DNAT to
2612 redirect traffic to any IP address to this stub.
2613
bf71ade8
LB
2614 * systemd-importd now honors new environment variables
2615 $SYSTEMD_IMPORT_BTRFS_SUBVOL, $SYSTEMD_IMPORT_BTRFS_QUOTA,
2616 $SYSTEMD_IMPORT_SYNC, which may be used disable btrfs subvolume
2617 generation, btrfs quota setup and disk synchronization.
2618
2619 * systemd-importd and systemd-resolved can now be optionally built with
2620 OpenSSL instead of libgcrypt.
2621
2622 * systemd-repart no longer requires OpenSSL.
2623
dcdc652f
ZJS
2624 * systemd-sysusers will no longer create the redundant 'nobody' group
2625 by default, as the 'nobody' user is already created with an
2626 appropriate primary group.
bf71ade8
LB
2627
2628 * If a unit uses RuntimeMaxSec, systemctl show will now display it.
2629
11b10922
LB
2630 * systemctl show-environment gained support for --output=json.
2631
bf71ade8 2632 * pam_systemd will now first try to use the X11 abstract socket, and
dcdc652f
ZJS
2633 fallback to the socket file in /tmp/.X11-unix/ only if that does not
2634 work.
11b10922 2635
dcdc652f
ZJS
2636 * systemd-journald will no longer go back to volatile storage
2637 regardless of configuration when its unit is restarted.
bf71ade8 2638
dcdc652f
ZJS
2639 * Initial support for the LoongArch architecture has been added (system
2640 call lists, GPT partition table UUIDs, etc).
efeecf40 2641
dcdc652f
ZJS
2642 * systemd-journald's own logging messages are now also logged to the
2643 journal itself when systemd-journald logs to /dev/kmsg.
6959a051 2644
dcdc652f
ZJS
2645 * systemd-journald now re-enables COW for archived journal files on
2646 filesystems that support COW. One benefit of this change is that
2647 archived journal files will now get compressed on btrfs filesystems
2648 that have compression enabled.
6959a051 2649
dcdc652f
ZJS
2650 * systemd-journald now deduplicates fields in a single log message
2651 before adding it to the journal. In archived journal files, it will
2652 also punch holes for unused parts and truncate the file as
2653 appropriate, leading to reductions in disk usage.
6959a051 2654
dcdc652f
ZJS
2655 * journalctl --verify was extended with more informative error
2656 messages.
6959a051 2657
dcdc652f
ZJS
2658 * More of sd-journal's functions are now resistant against journal file
2659 corruption.
6959a051 2660
e63fa075
ZJS
2661 * The shutdown command learnt a new option --show, to display the
2662 scheduled shutdown.
2663
dcdc652f
ZJS
2664 * A LICENSES/ directory is now included in the git tree. It contains a
2665 README.md file that explains the licenses used by source files in
2666 this repository. It also contains the text of all applicable
2667 licenses as they appear on spdx.org.
6959a051 2668
97b6ed32
ZJS
2669 Contributions from: Aakash Singh, acsfer, Adolfo Jayme Barrientos,
2670 Adrian Vovk, Albert Brox, Alberto Mardegan, Alexander Kanavin,
2671 alexlzhu, Alfonso Sánchez-Beato, Alvin Šipraga, Alyssa Ross,
2672 Amir Omidi, Anatol Pomozov, Andika Triwidada, Andreas Rammhold,
2673 Andreas Valder, Andrej Lajovic, Andrew Soutar, Andrew Stone, Andy Chi,
2674 Anita Zhang, Anssi Hannula, Antonio Alvarez Feijoo,
2675 Antony Deepak Thomas, Arnaud Ferraris, Arvid E. Picciani,
2676 Bastien Nocera, Benjamin Berg, Benjamin Herrenschmidt, Ben Stockett,
2677 Bogdan Seniuc, Boqun Feng, Carl Lei, chlorophyll-zz, Chris Packham,
2678 Christian Brauner, Christian Göttsche, Christian Wehrli,
2679 Christoph Anton Mitterer, Cristian Rodríguez, Daan De Meyer,
2680 Daniel Maixner, Dann Frazier, Dan Streetman, Davide Cavalca,
2681 David Seifert, David Tardon, dependabot[bot], Dimitri John Ledkov,
2682 Dimitri Papadopoulos, Dimitry Ishenko, Dmitry Khlebnikov,
2683 Dominique Martinet, duament, Egor, Egor Ignatov, Emil Renner Berthing,
2684 Emily Gonyer, Ettore Atalan, Evgeny Vereshchagin, Florian Klink,
2685 Franck Bui, Frantisek Sumsal, Geass-LL, Gibeom Gwon, GnunuX,
2686 Gogo Gogsi, gregzuro, Greg Zuro, Gustavo Costa, Hans de Goede,
484abbe6
ZJS
2687 Hela Basa, Henri Chain, hikigaya58, Hugo Carvalho,
2688 Hugo Osvaldo Barrera, Iago Lopez Galeiras, Iago López Galeiras,
97b6ed32
ZJS
2689 I-dont-need-name, igo95862, Jack Dähn, James Hilliard, Jan Janssen,
2690 Jan Kuparinen, Jan Macku, Jan Palus, Jarkko Sakkinen, Jayce Fayne,
2691 jiangchuangang, jlempen, John Lindgren, Jonas Dreßler, Jonas Jelten,
2692 Jonas Witschel, Joris Hartog, José Expósito, Julia Kartseva,
2693 Kai-Heng Feng, Kai Wohlfahrt, Kay Siver Bø, KennthStailey,
2694 Kevin Kuehler, Kevin Orr, Khem Raj, Kristian Klausen, Kyle Laker,
2695 lainahai, LaserEyess, Lennart Poettering, Lia Lenckowski, longpanda,
2696 Luca Boccassi, Luca BRUNO, Ludwig Nussel, Lukas Senionis,
2697 Maanya Goenka, Maciek Borzecki, Marcel Menzel, Marco Scardovi,
2698 Marcus Harrison, Mark Boudreau, Matthijs van Duin, Mauricio Vásquez,
2699 Maxime de Roucy, Max Resch, MertsA, Michael Biebl, Michael Catanzaro,
2700 Michal Koutný, Michal Sekletár, Miika Karanki, Mike Gilbert,
2701 Milo Turner, ml, monosans, Nacho Barrientos, nassir90, Nishal Kulkarni,
e63fa075 2702 nl6720, Ondrej Kozina, Paulo Neves, Pavel Březina, pedro martelletto,
484abbe6 2703 Peter Hutterer, Peter Morrow, Piotr Drąg, Rasmus Villemoes, ratijas,
97b6ed32 2704 Raul Tambre, rene, Riccardo Schirone, Robert-L-Turner, Robert Scheck,
6e6dc095
YW
2705 Ross Jennings, saikat0511, Scott Lamb, Scott Worley,
2706 Sergei Trofimovich, Sho Iizuka, Slava Bacherikov, Slimane Selyan Amiri,
2707 StefanBruens, Steven Siloti, svonohr, Taiki Sugawara, Takashi Sakamoto,
2708 Takuro Onoue, Thomas Blume, Thomas Haller, Thomas Mühlbacher,
2709 Tianlu Shao, Toke Høiland-Jørgensen, Tom Yan, Tony Asleson,
2710 Topi Miettinen, Ulrich Ölmann, Urs Ritzmann, Vincent Bernat,
2711 Vito Caputo, Vladimir Panteleev, WANG Xuerui, Wind/owZ, Wu Xiaotian,
2712 xdavidwu, Xiaotian Wu, xujing, yangmingtai, Yao Wei, Yao Wei (魏銘廷),
2713 Yegor Alexeyev, Yu Watanabe, Zbigniew Jędrzejewski-Szmek,
2714 Дамјан Георгиевски, наб
2715
2716 — Warsaw, 2021-12-23
484abbe6 2717
e7fbba56 2718CHANGES WITH 249:
f973aea7
LP
2719
2720 * When operating on disk images via the --image= switch of various
e7fbba56
LB
2721 tools (such as systemd-nspawn or systemd-dissect), or when udev finds
2722 no 'root=' parameter on the kernel command line, and multiple
f973aea7 2723 suitable root or /usr/ partitions exist in the image, then a simple
28707969
ZJS
2724 comparison inspired by strverscmp() is done on the GPT partition
2725 label, and the newest partition is picked. This permits a simple and
2726 generic whole-file-system A/B update logic where new operating system
f973aea7
LP
2727 versions are dropped into partitions whose label is then updated with
2728 a matching version identifier.
2729
2730 * systemd-sysusers now supports querying the passwords to set for the
2731 users it creates via the "credentials" logic introduced in v247: the
2732 passwd.hashed-password.<user> and passwd.plaintext-password.<user>
2733 credentials are consulted for the password to use (either in UNIX
2734 hashed form, or literally). By default these credentials are inherited
2735 down from PID1 (which in turn imports it from a container manager if
2736 there is one). This permits easy configuration of user passwords
2737 during first boot. Example:
2738
2739 # systemd-nspawn -i foo.raw --volatile=yes --set-credential=passwd.plaintext-password.root:foo
2740
2741 Note that systemd-sysusers operates in purely additive mode: it
2742 executes no operation if the declared users already exist, and hence
2743 doesn't set any passwords as effect of the command line above if the
2744 specified root user exists already in the image. (Note that
2745 --volatile=yes ensures it doesn't, though.)
2746
2747 * systemd-firstboot now also supports querying various system
2748 parameters via the credential subsystems. Thus, as above this may be
2749 used to initialize important system parameters on first boot of
2750 previously unprovisioned images (i.e. images with a mostly empty
2751 /etc/).
2752
66e6128f
LP
2753 * PID 1 may now show both the unit name and the unit description
2754 strings in its status output during boot. This may be configured with
2755 StatusUnitFormat=combined in system.conf or
2756 systemd.status-unit-format=combined on the kernel command line.
2757
f973aea7
LP
2758 * The systemd-machine-id-setup tool now supports a --image= switch for
2759 provisioning a machine ID file into an OS disk image, similar to how
2760 --root= operates on an OS file tree. This matches the existing switch
28707969 2761 of the same name for systemd-tmpfiles, systemd-firstboot, and
f973aea7
LP
2762 systemd-sysusers tools.
2763
28707969
ZJS
2764 * Similarly, systemd-repart gained support for the --image= switch too.
2765 In combination with the existing --size= option, this makes the tool
2766 particularly useful for easily growing disk images in a single
2767 invocation, following the declarative rules included in the image
2768 itself.
f973aea7
LP
2769
2770 * systemd-repart's partition configuration files gained support for a
2771 new switch MakeDirectories= which may be used to create arbitrary
2772 directories inside file systems that are created, before registering
28707969
ZJS
2773 them in the partition table. This is useful in particular for root
2774 partitions to create mount point directories for other partitions
2775 included in the image. For example, a disk image that contains a
2776 root, /home/, and /var/ partitions, may set MakeDirectories=yes to
2777 create /home/ and /var/ as empty directories in the root file system
5601400e
JB
2778 on its creation, so that the resulting image can be mounted
2779 immediately, even in read-only mode.
28707969
ZJS
2780
2781 * systemd-repart's CopyBlocks= setting gained support for the special
2782 value "auto". If used, a suitable matching partition on the booted OS
2783 is found as source to copy blocks from. This is useful when
f973aea7 2784 implementing replicating installers, that are booted from one medium
28707969 2785 and then stream their own root partition onto the target medium.
f973aea7
LP
2786
2787 * systemd-repart's partition configuration files gained support for a
66e6128f
LP
2788 Flags=, a ReadOnly= and a NoAuto= setting, allowing control of these
2789 GPT partition flags for the created partitions: this is useful for
2790 marking newly created partitions as read-only, or as not being
2791 subject for automatic mounting from creation on.
f973aea7
LP
2792
2793 * The /etc/os-release file has been extended with two new (optional)
28707969
ZJS
2794 variables IMAGE_VERSION= and IMAGE_ID=, carrying identity and version
2795 information for OS images that are updated comprehensively and
2796 atomically as one image. Two new specifiers %M, %A now resolve to
2797 these two fields in the various configuration options that resolve
2798 specifiers.
f973aea7
LP
2799
2800 * portablectl gained a new switch --extension= for enabling portable
2801 service images with extensions that follow the extension image
165c23c6
LB
2802 concept introduced with v248, and thus allows layering multiple
2803 images when setting up the root filesystem of the service.
f973aea7
LP
2804
2805 * systemd-coredump will now extract ELF build-id information from
28707969
ZJS
2806 processes dumping core and include it in the coredump report.
2807 Moreover, it will look for ELF .note.package sections with
2808 distribution packaging meta-information about the crashing process.
2809 This is useful to directly embed the rpm or deb (or any other)
2810 package name and version in ELF files, making it easy to match
2811 coredump reports with the specific package for which the software was
2812 compiled. This is particularly useful on environments with ELF files
2813 from multiple vendors, different distributions and versions, as is
2814 common today in our containerized and sand-boxed world. For further
2815 information, see:
f973aea7
LP
2816
2817 https://systemd.io/COREDUMP_PACKAGE_METADATA
2818
28707969
ZJS
2819 * A new udev hardware database has been added for FireWire devices
2820 (IEEE 1394).
f973aea7 2821
14e97d24
ZJS
2822 * The "net_id" built-in of udev has been updated with three
2823 backwards-incompatible changes:
2824
2825 - PCI hotplug slot names on s390 systems are now parsed as
2826 hexadecimal numbers. They were incorrectly parsed as decimal
2827 previously, or ignored if the name was not a valid decimal
2828 number.
2829
2830 - PCI onboard indices up to 65535 are allowed. Previously, numbers
2831 above 16383 were rejected. This primarily impacts s390 systems,
2832 where values up to 65535 are used.
2833
2834 - Invalid characters in interface names are replaced with "_".
2835
2836 The new version of the net naming scheme is "v249". The previous
2837 scheme can be selected via the "net.naming-scheme=v247" kernel
2838 command line parameter.
2839
f973aea7
LP
2840 * sd-bus' sd_bus_is_ready() and sd_bus_is_open() calls now accept a
2841 NULL bus object, for which they will return false. Or in other words,
2842 an unallocated bus connection is neither ready nor open.
2843
99c2a955 2844 * The sd-device API acquired a new API function
28707969
ZJS
2845 sd_device_get_usec_initialized() that returns the monotonic time when
2846 the udev device first appeared in the database.
99c2a955
LP
2847
2848 * sd-device gained a new APIs sd_device_trigger_with_uuid() and
2849 sd_device_get_trigger_uuid(). The former is similar to
2850 sd_device_trigger() but returns a randomly generated UUID that is
2851 associated with the synthetic uevent generated by the call. This UUID
2852 may be read from the sd_device object a monitor eventually receives,
2853 via the sd_device_get_trigger_uuid(). This interface requires kernel
2854 4.13 or above to work, and allows tracking a synthetic uevent through
2855 the entire device management stack. The "udevadm trigger --settle"
2856 logic has been updated to make use of this concept if available to
2857 wait precisely for the uevents it generates. "udevadm trigger" also
2858 gained a new parameter --uuid that prints the UUID for each generated
2859 uevent.
2860
ca1e8584
LP
2861 * sd-device also gained new APIs sd_device_new_from_ifname() and
2862 sd_device_new_from_ifindex() for allocating an sd-device object for
2863 the specified network interface. The former accepts an interface name
2864 (either a primary or an alternative name), the latter an interface
2865 index.
2866
f973aea7
LP
2867 * The native Journal protocol has been documented. Clients may talk
2868 this as alternative to the classic BSD syslog protocol for locally
2869 delivering log records to the Journal. The protocol has been stable
5601400e 2870 for a long time and in fact been implemented already in a variety
f973aea7
LP
2871 of alternative client libraries. This documentation makes the support
2872 for that official:
2873
2874 https://systemd.io/JOURNAL_NATIVE_PROTOCOL
2875
2876 * A new BPFProgram= setting has been added to service files. It may be
2877 set to a path to a loaded kernel BPF program, i.e. a path to a bpffs
2878 file, or a bind mount or symlink to one. This may be used to upload
2879 and manage BPF programs externally and then hook arbitrary systemd
2880 services into them.
2881
2882 * The "home.arpa" domain that has been officially declared as the
2883 choice for domain for local home networks per RFC 8375 has been added
2884 to the default NTA list of resolved, since DNSSEC is generally not
2885 available on private domains.
2886
2887 * The CPUAffinity= setting of unit files now resolves "%" specifiers.
2888
2889 * A new ManageForeignRoutingPolicyRules= setting has been added to
2890 .network files which may be used to exclude foreign-created routing
2891 policy rules from systemd-networkd management.
2892
2893 * systemd-network-wait-online gained two new switches -4 and -6 that
2894 may be used to tweak whether to wait for only IPv4 or only IPv6
2895 connectivity.
2896
2897 * .network files gained a new RequiredFamilyForOnline= setting to
2898 fine-tune whether to require an IPv4 or IPv6 address in order to
2899 consider an interface "online".
2900
99c2a955
LP
2901 * networkctl will now show an over-all "online" state in the per-link
2902 information.
2903
2904 * In .network files a new OutgoingInterface= setting has been added to
2905 specify the output interface in bridge FDB setups.
2906
566c8176 2907 * In .network files the Multipath group ID may now be configured for
99c2a955 2908 [NextHop] entries, via the new Group= setting.
f973aea7
LP
2909
2910 * The DHCP server logic configured in .network files gained a new
28707969
ZJS
2911 setting RelayTarget= that turns the server into a DHCP server relay.
2912 The RelayAgentCircuitId= and RelayAgentRemoteId= settings may be used
2913 to further tweak the DHCP relay behaviour.
f973aea7 2914
28707969
ZJS
2915 * The DHCP server logic also gained a new ServerAddress= setting in
2916 .network files that explicitly specifies the server IP address to
2917 use. If not specified, the address is determined automatically, as
2918 before.
f973aea7 2919
99c2a955
LP
2920 * The DHCP server logic in systemd-networkd gained support for static
2921 DHCP leases, configurable via the [DHCPServerStaticLease]
2922 section. This allows explicitly mapping specific MAC addresses to
2923 fixed IP addresses and vice versa.
2924
2925 * The RestrictAddressFamilies= setting in service files now supports a
2926 new special value "none". If specified sockets of all address
2927 families will be made unavailable to services configured that way.
f973aea7
LP
2928
2929 * systemd-fstab-generator and systemd-repart have been updated to
2930 support booting from disks that carry only a /usr/ partition but no
28707969
ZJS
2931 root partition yet, and where systemd-repart can add it in on the
2932 first boot. This is useful for implementing systems that ship with a
2933 single /usr/ file system, and whose root file system shall be set up
2934 and formatted on a LUKS-encrypted volume whose key is generated
2935 locally (and possibly enrolled in the TPM) during the first boot.
f973aea7
LP
2936
2937 * The [Address] section of .network files now accepts a new
2938 RouteMetric= setting that configures the routing metric to use for
28707969
ZJS
2939 the prefix route created as effect of the address configuration.
2940 Similarly, the [DHCPv6PrefixDelegation] and [IPv6Prefix] sections
2941 gained matching settings for their prefix routes. (The option of the
2942 same name in the [DHCPv6] section is moved to [IPv6AcceptRA], since
2943 it conceptually belongs there; the old option is still understood for
2944 compatibility.)
f973aea7 2945
f973aea7
LP
2946 * The DHCPv6 IAID and DUID are now explicitly configurable in .network
2947 files.
2948
2949 * A new udev property ID_NET_DHCP_BROADCAST on network interface
28707969 2950 devices is now honoured by systemd-networkd, controlling whether to
f973aea7
LP
2951 issue DHCP offers via broadcasting. This is used to ensure that s390
2952 layer 3 network interfaces work out-of-the-box with systemd-networkd.
2953
2954 * nss-myhostname and systemd-resolved will now synthesize address
2955 records for a new special hostname "_outbound". The name will always
2956 resolve to the local IP addresses most likely used for outbound
28707969 2957 connections towards the default routes. On multi-homed hosts this is
f973aea7
LP
2958 useful to have a stable handle referring to "the" local IP address
2959 that matters most, to the point where this is defined.
2960
2961 * The Discoverable Partition Specification has been updated with a new
5601400e
JB
2962 GPT partition flag "grow-file-system" defined for its partition
2963 types. Whenever partitions with this flag set are automatically
2964 mounted (i.e. via systemd-gpt-auto-generator or the --image= switch
2965 of systemd-nspawn or other tools; and as opposed to explicit mounting
f973aea7 2966 via /etc/fstab), the file system within the partition is
28707969
ZJS
2967 automatically grown to the full size of the partition. If the file
2968 system size already matches the partition size this flag has no
2969 effect. Previously, this functionality has been available via the
2970 explicit x-systemd.growfs mount option, and this new flag extends
2971 this to automatically discovered mounts. A new GrowFileSystem=
2972 setting has been added to systemd-repart drop-in files that allows
2973 configuring this partition flag. This new flag defaults to on for
2974 partitions automatically created by systemd-repart, except if they
2975 are marked read-only. See the specification for further details:
f973aea7
LP
2976
2977 https://systemd.io/DISCOVERABLE_PARTITIONS
2978
99c2a955 2979 * .network files gained a new setting RoutesToNTP= in the [DHCPv4]
f973aea7
LP
2980 section. If enabled (which is the default), and an NTP server address
2981 is acquired through a DHCP lease on this interface an explicit route
2982 to this address is created on this interface to ensure that NTP
2983 traffic to the NTP server acquired on an interface is also routed
4076ad9d 2984 through that interface. The pre-existing RoutesToDNS= setting that
f973aea7
LP
2985 implements the same for DNS servers is now enabled by default.
2986
2987 * A pair of service settings SocketBindAllow= + SocketBindDeny= have
2988 been added that may be used to restrict the network interfaces
2989 sockets created by the service may be bound to. This is implemented
2990 via BPF.
2991
14e97d24
ZJS
2992 * A new ConditionFirmware= setting has been added to unit files to
2993 conditionalize on certain firmware features. At the moment it may
2994 check whether running on an UEFI system, a device.tree system, or if
2995 the system is compatible with some specified device-tree feature.
2996
2997 * A new ConditionOSRelease= setting has been added to unit files to
2998 check os-release(5) fields. The "=", "!=", "<", "<=", ">=", ">"
2999 operators may be used to check if some field has some specific value
387f6955
YW
3000 or do an alphanumerical comparison. Equality comparisons are useful
3001 for fields like ID, but relative comparisons for fields like
3002 VERSION_ID or IMAGE_VERSION.
f973aea7
LP
3003
3004 * hostnamed gained a new Describe() D-Bus method that returns a JSON
3005 serialization of the host data it exposes. This is exposed via
28707969
ZJS
3006 "hostnamectl --json=" to acquire a host identity description in JSON.
3007 It's our intention to add a similar features to most services and
3008 objects systemd manages, in order to simplify integration with
3009 program code that can consume JSON.
f973aea7 3010
28707969
ZJS
3011 * Similarly, networkd gained a Describe() method on its Manager and
3012 Link bus objects. This is exposed via "networkctl --json=".
5f94ac54 3013
28707969
ZJS
3014 * hostnamectl's various "get-xyz"/"set-xyz" verb pairs
3015 (e.g. "hostnamectl get-hostname", "hostnamectl "set-hostname") have
3016 been replaced by a single "xyz" verb (e.g. "hostnamectl hostname")
3017 that is used both to get the value (when no argument is given), and
3018 to set the value (when an argument is specified). The old names
3019 continue to be supported for compatibility.
f973aea7
LP
3020
3021 * systemd-detect-virt and ConditionVirtualization= are now able to
3022 correctly identify Amazon EC2 environments.
3023
3024 * The LogLevelMax= setting of unit files now applies not only to log
3025 messages generated *by* the service, but also to log messages
3026 generated *about* the service by PID 1. To suppress logs concerning a
3027 specific service comprehensively, set this option to a high log
3028 level.
3029
3030 * bootctl gained support for a new --make-machine-id-directory= switch
3031 that allows precise control on whether to create the top-level
28707969
ZJS
3032 per-machine directory in the boot partition that typically contains
3033 Type 1 boot loader entries.
f973aea7 3034
5f94ac54
LP
3035 * During build SBAT data to include in the systemd-boot EFI PE binaries
3036 may be specified now.
3037
3038 * /etc/crypttab learnt a new option "headless". If specified any
3039 requests to query the user interactively for passwords or PINs will
3040 be skipped. This is useful on systems that are headless, i.e. where
3041 an interactive user is generally not present.
3042
00fb6caf
LP
3043 * /etc/crypttab also learnt a new option "password-echo=" that allows
3044 configuring whether the encryption password prompt shall echo the
3045 typed password and if so, do so literally or via asterisks. (The
3046 default is the same behaviour as before: provide echo feedback via
3047 asterisks.)
3048
5f94ac54
LP
3049 * FIDO2 support in systemd-cryptenroll/systemd-cryptsetup and
3050 systemd-homed has been updated to allow explicit configuration of the
3051 "user presence" and "user verification" checks, as well as whether a
3052 PIN is required for authentication, via the new switches
3053 --fido2-with-user-presence=, --fido2-with-user-verification=,
3054 --fido2-with-client-pin= to systemd-cryptenroll and homectl. Which
3055 features are available, and may be enabled or disabled depends on the
3056 used FIDO2 token.
3057
3058 * systemd-nspawn's --private-user= switch now accepts the special value
3059 "identity" which configures a user namespacing environment with an
3060 identity mapping of 65535 UIDs. This means the container UID 0 is
3061 mapped to the host UID 0, and the UID 1 to host UID 1. On first look
3062 this doesn't appear to be useful, however it does reduce the attack
3063 surface a bit, since the resulting container will possess process
3064 capabilities only within its namespace and not on the host.
3065
3066 * systemd-nspawn's --private-user-chown switch has been replaced by a
3067 more generic --private-user-ownership= switch that accepts one of
3068 three values: "chown" is equivalent to the old --private-user-chown,
3069 and "off" is equivalent to the absence of the old switch. The value
3070 "map" uses the new UID mapping mounts of Linux 5.12 to map ownership
3071 of files and directories of the underlying image to the chosen UID
3072 range for the container. "auto" is equivalent to "map" if UID mapping
3073 mount are supported, otherwise it is equivalent to "chown". The short
3074 -U switch systemd-nspawn now implies --private-user-ownership=auto
3075 instead of the old --private-user-chown. Effectively this means: if
3076 the backing file system supports UID mapping mounts the feature is
3077 now used by default if -U is used. Generally, it's a good idea to use
3078 UID mapping mounts instead of recursive chown()ing, since it allows
3079 running containers off immutable images (since no modifications of
3080 the images need to take place), and share images between multiple
3081 instances. Moreover, the recursive chown()ing operation is slow and
3082 can be avoided. Conceptually it's also a good thing if transient UID
3083 range uses do not leak into persistent file ownership anymore. TLDR:
3084 finally, the last major drawback of user namespacing has been
3085 removed, and -U should always be used (unless you use btrfs, where
3086 UID mapped mounts do not exist; or your container actually needs
3087 privileges on the host).
3088
3089 * nss-systemd now synthesizes user and group shadow records in addition
3090 to the main user and group records. Thus, hashed passwords managed by
3091 systemd-homed are now accessible via the shadow database.
3092
3093 * The userdb logic (and thus nss-systemd, and so on) now read
3094 additional user/group definitions in JSON format from the drop-in
3095 directories /etc/userdb/, /run/userdb/, /run/host/userdb/ and
3096 /usr/lib/userdb/. This is a simple and powerful mechanism for making
3097 additional users available to the system, with full integration into
3098 NSS including the shadow databases. Since the full JSON user/group
3099 record format is supported this may also be used to define users with
3100 resource management settings and other runtime settings that
3101 pam_systemd and systemd-logind enforce at login.
3102
3103 * The userdbctl tool gained two new switches --with-dropin= and
3104 --with-varlink= which can be used to fine-tune the sources used for
3105 user database lookups.
3106
3107 * systemd-nspawn gained a new switch --bind-user= for binding a host
3108 user account into the container. This does three things: the user's
3109 home directory is bind mounted from the host into the container,
3110 below the /run/userdb/home/ hierarchy. A free UID is picked in the
3111 container, and a user namespacing UID mapping to the host user's UID
3112 installed. And finally, a minimal JSON user and group record (along
3113 with its hashed password) is dropped into /run/host/userdb/. These
3114 records are picked up automatically by the userdb drop-in logic
3115 describe above, and allow the user to login with the same password as
3116 on the host. Effectively this means: if host and container run new
3117 enough systemd versions making a host user available to the container
3118 is trivially simple.
3119
3120 * systemd-journal-gatewayd now supports the switches --user, --system,
3121 --merge, --file= that are equivalent to the same switches of
3122 journalctl, and permit exposing only the specified subset of the
3123 Journal records.
3124
5f94ac54
LP
3125 * The OnFailure= dependency between units is now augmented with a
3126 implicit reverse dependency OnFailureOf= (this new dependency cannot
3127 be configured directly it's only created as effect of an OnFailure=
3128 dependency in the reverse order — it's visible in "systemctl show"
3129 however). Similar, Slice= now has an reverse dependency SliceOf=,
3130 that is also not configurable directly, but useful to determine all
3131 units that are members of a slice.
3132
3133 * A pair of new dependency types between units PropagatesStopTo= +
3134 StopPropagatedFrom= has been added, that allows propagation of unit
3135 stop events between two units. It operates similar to the existing
3136 PropagatesReloadTo= + ReloadPropagatedFrom= dependencies.
f973aea7 3137
99c2a955
LP
3138 * A new dependency type OnSuccess= has been added (plus the reverse
3139 dependency OnSuccessOf=, which cannot be configured directly, but
28707969
ZJS
3140 exists only as effect of the reverse OnSuccess=). It is similar to
3141 OnFailure=, but triggers in the opposite case: when a service exits
99c2a955 3142 cleanly. This allows "chaining up" of services where one or more
28707969 3143 services are started once another service has successfully completed.
99c2a955
LP
3144
3145 * A new dependency type Upholds= has been added (plus the reverse
28707969
ZJS
3146 dependency UpheldBy=, which cannot be configured directly, but exists
3147 only as effect of Upholds=). This dependency type is a stronger form
3148 of Wants=: if a unit has an UpHolds= dependency on some other unit
3149 and the former is active then the latter is started whenever it is
3150 found inactive (and no job is queued for it). This is an alternative
3151 to Restart= inside service units, but less configurable, and the
3152 request to uphold a unit is not encoded in the unit itself but in
3153 another unit that intends to uphold it.
99c2a955
LP
3154
3155 * The systemd-ask-password tool now also supports reading passwords
3156 from the credentials subsystem, via the new --credential= switch.
3157
3158 * The systemd-ask-password tool learnt a new switch --emoji= which may
3159 be used to explicit control whether the lock and key emoji (🔐) is
3160 shown in the password prompt on suitable TTYs.
3161
3162 * The --echo switch of systemd-ask-password now optionally takes a
28707969
ZJS
3163 parameter that controls character echo. It may either show asterisks
3164 (default, as before), turn echo off entirely, or echo the typed
3165 characters literally.
99c2a955 3166
66e6128f
LP
3167 * The systemd-ask-password tool also gained a new -n switch for
3168 suppressing output of a trailing newline character when writing the
3169 acquired password to standard output, similar to /bin/echo's -n
3170 switch.
3171
99c2a955
LP
3172 * New documentation has been added that describes the organization of
3173 the systemd source code tree:
3174
3175 https://systemd.io/ARCHITECTURE
3176
165c23c6
LB
3177 * Units using ConditionNeedsUpdate= will no longer be activated in
3178 the initrd.
3179
00fb6caf
LP
3180 * It is now possible to list a template unit in the WantedBy= or
3181 RequiredBy= settings of the [Install] section of another template
3182 unit, which will be instantiated using the same instance name.
165c23c6
LB
3183
3184 * A new MemoryAvailable property is available for units. If the unit,
0923b425 3185 or the slices it is part of, have a memory limit set via MemoryMax=/
165c23c6 3186 MemoryHigh=, MemoryAvailable will indicate how much more memory the
0923b425 3187 unit can claim before hitting the limits.
165c23c6
LB
3188
3189 * systemd-coredump will now try to stay below the cgroup memory limit
3190 placed on itself or one of the slices it runs under, if the storage
3191 area for core files (/var/lib/systemd/coredump/) is placed on a tmpfs,
3192 since files written on such filesystems count toward the cgroup memory
3193 limit. If there is not enough available memory in such cases to store
3194 the core file uncompressed, systemd-coredump will skip to compressed
3195 storage directly (if enabled) and it will avoid analyzing the core file
3196 to print backtrace and metadata in the journal.
3197
00fb6caf
LP
3198 * tmpfiles.d/ drop-ins gained a new '=' modifier to check if the type
3199 of a path matches the configured expectations, and remove it if not.
165c23c6 3200
00fb6caf
LP
3201 * tmpfiles.d/'s 'Age' now accepts an 'age-by' argument, which allows to
3202 specify which of the several available filesystem timestamps (access
3203 time, birth time, change time, modification time) to look at when
3204 deciding whether a path has aged enough to be cleaned.
165c23c6 3205
00fb6caf
LP
3206 * A new IPv6StableSecretAddress= setting has been added to .network
3207 files, which takes an IPv6 address to use as secret for IPv6 address
3208 generation.
3209
3210 * The [DHCPServer] logic in .network files gained support for a new
3211 UplinkInterface= setting that permits configuration of the uplink
3212 interface name to propagate DHCP lease information from.
3213
3214 * The WakeOnLan= setting in .link files now accepts a list of flags
3215 instead of a single one, to configure multiple wake-on-LAN policies.
3216
ca1e8584
LP
3217 * User-space defined tracepoints (USDT) have been added to udev at
3218 strategic locations. This is useful for tracing udev behaviour and
3219 performance with bpftrace and similar tools.
3220
3221 * systemd-journald-upload gained a new NetworkTimeoutSec= option for
3222 setting a network timeout time.
3223
5b8fdb18
LB
3224 * If a system service is running in a new mount namespace (RootDirectory=
3225 and friends), all file systems will be mounted with MS_NOSUID by
3226 default, unless the system is running with SELinux enabled.
3227
66e6128f
LP
3228 * When enumerating time zones the timedatectl tool will now consult the
3229 'tzdata.zi' file shipped by the IANA time zone database package, in
3230 addition to 'zone1970.tab', as before. This makes sure time zone
3231 aliases are now correctly supported. Some distributions so far did
3232 not install this additional file, most do however. If you
3233 distribution does not install it yet, it might make sense to change
3234 that.
3235
3c88ade5
KHF
3236 * Intel HID rfkill event is no longer masked, since it's the only
3237 source of rfkill event on newer HP laptops. To have both backward and
3238 forward compatibility, userspace daemon needs to debounce duplicated
3239 events in a short time window.
3240
b2f0876b 3241 Contributions from: Aakash Singh, adrian5, Albert Brox,
fc4340b0
LB
3242 Alexander Sverdlin, Alexander Tsoy, Alexey Rubtsov, alexlzhu,
3243 Allen Webb, Alvin Šipraga, Alyssa Ross, Anders Wenhaug,
3244 Andrea Pappacoda, Anita Zhang, asavah, Balint Reczey, Bertrand Jacquin,
3245 borna-blazevic, caoxia2008cxx, Carlo Teubner, Christian Göttsche,
3246 Christian Hesse, Daniel Schaefer, Dan Streetman,
3247 David Santamaría Rogado, David Tardon, Deepak Rawat, dgcampea,
3248 Dimitri John Ledkov, ei-ke, Emilio Herrera, Emil Renner Berthing,
3249 Eric Cook, Flos Lonicerae, Franck Bui, Francois Gervais,
3250 Frantisek Sumsal, Gibeom Gwon, gitm0, Hamish Moffatt, Hans de Goede,
3251 Harsh Barsaiyan, Henri Chain, Hristo Venev, Icenowy Zheng, Igor Zhbanov,
3252 imayoda, Jakub Warczarek, James Buren, Jan Janssen, Jan Macku,
3253 Jan Synacek, Jason Francis, Jayanth Ananthapadmanaban, Jeremy Szu,
3254 Jérôme Carretero, Jesse Stricker, jiangchuangang, Joerg Behrmann,
3255 Jóhann B. Guðmundsson, Jörg Deckert, Jörg Thalheim, Juergen Hoetzel,
3256 Julia Kartseva, Kai-Heng Feng, Khem Raj, KoyamaSohei, laineantti,
3257 Lennart Poettering, LetzteInstanz, Luca Adrian L, Luca Boccassi,
3258 Lucas Magasweran, Mantas Mikulėnas, Marco Antonio Mauro, Mark Wielaard,
3259 Masahiro Matsuya, Matt Johnston, Michael Catanzaro, Michal Koutný,
3260 Michal Sekletár, Mike Crowe, Mike Kazantsev, Milan, milaq,
3261 Miroslav Suchý, Morten Linderud, nerdopolis, nl6720, Noah Meyerhans,
3262 Oleg Popov, Olle Lundberg, Ondrej Kozina, Paweł Marciniak, Perry.Yuan,
3263 Peter Hutterer, Peter Kjellerstedt, Peter Morrow, Phaedrus Leeds,
3264 plattrap, qhill, Raul Tambre, Roman Beranek, Roshan Shariff,
3265 Ryan Hendrickson, Samuel BF, scootergrisen, Sebastian Blunt,
3266 Seong-ho Cho, Sergey Bugaev, Sevan Janiyan, Sibo Dong, simmon,
3267 Simon Watts, Srinidhi Kaushik, Štěpán Němec, Steve Bonds, Susant Sahani,
3268 sverdlin, syyhao1994, Takashi Sakamoto, Topi Miettinen, tramsay,
3269 Trent Piepho, Uwe Kleine-König, Viktor Mihajlovski, Vincent Dechenaux,
3270 Vito Caputo, William A. Kennington III, Yangyang Shen, Yegor Alexeyev,
3271 Yi Gao, Yu Watanabe, Zbigniew Jędrzejewski-Szmek, zsien, наб
6969135f 3272
f6278558 3273 — Edinburgh, 2021-07-07
99c2a955 3274
94293d65
LB
3275CHANGES WITH 248:
3276
6dd990f3
ZJS
3277 * A concept of system extension images is introduced. Such images may
3278 be used to extend the /usr/ and /opt/ directory hierarchies at
3279 runtime with additional files (even if the file system is read-only).
3280 When a system extension image is activated, its /usr/ and /opt/
3281 hierarchies and os-release information are combined via overlayfs
3282 with the file system hierarchy of the host OS.
3283
3284 A new systemd-sysext tool can be used to merge, unmerge, list, and
3285 refresh system extension hierarchies. See
3286 https://www.freedesktop.org/software/systemd/man/systemd-sysext.html.
3287
3288 The systemd-sysext.service automatically merges installed system
3289 extensions during boot (before basic.target, but not in very early
3290 boot, since various file systems have to be mounted first).
3291
3292 The SYSEXT_LEVEL= field in os-release(5) may be used to specify the
3293 supported system extension level.
3294
873b5cbd
LB
3295 * A new ExtensionImages= unit setting can be used to apply the same
3296 system extension image concept from systemd-sysext to the namespaced
3297 file hierarchy of specific services, following the same rules and
3298 constraints.
3299
33e68cce
ZJS
3300 * Support for a new special "root=tmpfs" kernel command-line option has
3301 been added. When specified, a tmpfs is mounted on /, and mount.usr=
3302 should be used to point to the operating system implementation.
3303
6dd990f3 3304 * A new configuration file /etc/veritytab may be used to configure
2b6a8a4b
LP
3305 dm-verity integrity protection for block devices. Each line is in the
3306 format "volume-name data-device hash-device roothash options",
3307 similar to /etc/crypttab.
6dd990f3 3308
2b6a8a4b 3309 * A new kernel command-line option systemd.verity.root_options= may be
6dd990f3
ZJS
3310 used to configure dm-verity behaviour for the root device.
3311
3312 * The key file specified in /etc/crypttab (the third field) may now
1f3315b8
LP
3313 refer to an AF_UNIX/SOCK_STREAM socket in the file system. The key is
3314 acquired by connecting to that socket and reading from it. This
3315 allows the implementation of a service to provide key information
3316 dynamically, at the moment when it is needed.
6dd990f3 3317
89b6acfd
ZJS
3318 * When the hostname is set explicitly to "localhost", systemd-hostnamed
3319 will respect this. Previously such a setting would be mostly silently
3320 ignored. The goal is to honour configuration as specified by the
3321 user.
3322
3323 * The fallback hostname that will be used by the system manager and
3324 systemd-hostnamed can now be configured in two new ways: by setting
3325 DEFAULT_HOSTNAME= in os-release(5), or by setting
3326 $SYSTEMD_DEFAULT_HOSTNAME in the environment block. As before, it can
3327 also be configured during compilation. The environment variable is
3328 intended for testing and local overrides, the os-release(5) field is
3329 intended to allow customization by different variants of a
3330 distribution that share the same compiled packages.
3331
3332 * The environment block of the manager itself may be configured through
3333 a new ManagerEnvironment= setting in system.conf or user.conf. This
3334 complements existing ways to set the environment block (the kernel
3335 command line for the system manager, the inherited environment and
3336 user@.service unit file settings for the user manager).
3337
3338 * systemd-hostnamed now exports the default hostname and the source of
3339 the configured hostname ("static", "transient", or "default") as
3340 D-Bus properties.
3341
3342 * systemd-hostnamed now exports the "HardwareVendor" and
3343 "HardwareModel" D-Bus properties, which are supposed to contain a
3344 pair of cleaned up, human readable strings describing the system's
3345 vendor and model. It's typically sourced from the firmware's DMI
3346 tables, but may be augmented from a new hwdb database. hostnamectl
3347 shows this in the status output.
3348
1f3315b8
LP
3349 * Support has been added to systemd-cryptsetup for extracting the
3350 PKCS#11 token URI and encrypted key from the LUKS2 JSON embedded
3351 metadata header. This allows the information how to open the
3352 encrypted device to be embedded directly in the device and obviates
3353 the need for configuration in an external file.
6dd990f3 3354
1f3315b8 3355 * systemd-cryptsetup gained support for unlocking LUKS2 volumes using
2b6a8a4b
LP
3356 TPM2 hardware, as well as FIDO2 security tokens (in addition to the
3357 pre-existing support for PKCS#11 security tokens).
6dd990f3 3358
2b6a8a4b
LP
3359 * systemd-repart may enroll encrypted partitions using TPM2
3360 hardware. This may be useful for example to create an encrypted /var
3361 partition bound to the machine on first boot.
6dd990f3 3362
1f3315b8
LP
3363 * A new systemd-cryptenroll tool has been added to enroll TPM2, FIDO2
3364 and PKCS#11 security tokens to LUKS volumes, list and destroy
3365 them. See:
3366
3367 http://0pointer.net/blog/unlocking-luks2-volumes-with-tpm2-fido2-pkcs11-security-hardware-on-systemd-248.html
3368
3369 It also supports enrolling "recovery keys" and regular passphrases.
3370
3371 * The libfido2 dependency is now based on dlopen(), so that the library
2b6a8a4b
LP
3372 is used at runtime when installed, but is not a hard runtime
3373 dependency.
1f3315b8
LP
3374
3375 * systemd-cryptsetup gained support for two new options in
2b6a8a4b
LP
3376 /etc/crypttab: "no-write-workqueue" and "no-read-workqueue" which
3377 request synchronous processing of encryption/decryption IO.
6dd990f3 3378
2b6a8a4b
LP
3379 * The manager may be configured at compile time to use the fexecve()
3380 instead of the execve() system call when spawning processes. Using
3381 fexecve() closes a window between checking the security context of an
3382 executable and spawning it, but unfortunately the kernel displays
3383 stale information in the process' "comm" field, which impacts ps
3384 output and such.
6dd990f3
ZJS
3385
3386 * The configuration option -Dcompat-gateway-hostname has been dropped.
3387 "_gateway" is now the only supported name.
3388
1f3315b8
LP
3389 * The ConditionSecurity=tpm2 unit file setting may be used to check if
3390 the system has at least one TPM2 (tpmrm class) device.
6dd990f3 3391
2b6a8a4b
LP
3392 * A new ConditionCPUFeature= has been added that may be used to
3393 conditionalize units based on CPU features. For example,
3394 ConditionCPUFeature=rdrand will condition a unit so that it is only
3395 run when the system CPU supports the RDRAND opcode.
3396
89b6acfd
ZJS
3397 * The existing ConditionControlGroupController= setting has been
3398 extended with two new values "v1" and "v2". "v2" means that the
b49bb286 3399 unified v2 cgroup hierarchy is used, and "v1" means that legacy v1
89b6acfd
ZJS
3400 hierarchy or the hybrid hierarchy are used.
3401
33e68cce
ZJS
3402 * A new PrivateIPC= setting on a unit file allows executed processes to
3403 be moved into a private IPC namespace, with separate System V IPC
3404 identifiers and POSIX message queues.
3405
3406 A new IPCNamespacePath= allows the unit to be joined to an existing
3407 IPC namespace.
3408
64297c86 3409 * The tables of system calls in seccomp filters are now automatically
6dd990f3
ZJS
3410 generated from kernel lists exported on
3411 https://fedora.juszkiewicz.com.pl/syscalls.html.
3412
3413 The following architectures should now have complete lists:
3414 alpha, arc, arm64, arm, i386, ia64, m68k, mips64n32, mips64, mipso32,
3415 powerpc, powerpc64, s390, s390x, tilegx, sparc, x86_64, x32.
3416
94293d65 3417 * The MountAPIVFS= service file setting now additionally mounts a tmpfs
6dd990f3
ZJS
3418 on /run/ if it is not already a mount point. A writable /run/ has
3419 always been a requirement for a functioning system, but this was not
94293d65 3420 guaranteed when using a read-only image.
6dd990f3
ZJS
3421
3422 Users can always specify BindPaths= or InaccessiblePaths= as
3423 overrides, and they will take precedence. If the host's root mount
3424 point is used, there is no change in behaviour.
3425
3426 * New bind mounts and file system image mounts may be injected into the
3427 mount namespace of a service (without restarting it). This is exposed
9ba008cb
LB
3428 respectively as 'systemctl bind <unit> <path>…' and
3429 'systemctl mount-image <unit> <image>…'.
6dd990f3 3430
2b6a8a4b 3431 * The StandardOutput= and StandardError= settings can now specify files
6dd990f3
ZJS
3432 to be truncated for output (as "truncate:<path>").
3433
3434 * The ExecPaths= and NoExecPaths= settings may be used to specify
3435 noexec for parts of the file system.
3436
1f3315b8 3437 * sd-bus has a new function sd_bus_open_user_machine() to open a
6dd990f3 3438 connection to the session bus of a specific user in a local container
2b6a8a4b
LP
3439 or on the local host. This is exposed in the existing -M switch to
3440 systemctl and similar tools:
1f3315b8
LP
3441
3442 systemctl --user -M lennart@foobar start foo
3443
3444 This will connect to the user bus of a user "lennart" in container
3445 "foobar". If no container name is specified, the specified user on
3446 the host itself is connected to
3447
3448 systemctl --user -M lennart@ start quux
6dd990f3 3449
6c41cf44
LP
3450 * sd-bus also gained a convenience function sd_bus_message_send() to
3451 simplify invocations of sd_bus_send(), taking only a single
3452 parameter: the message to send.
1f3315b8
LP
3453
3454 * sd-event allows rate limits to be set on event sources, for dealing
3455 with high-priority event sources that might starve out others. See
3456 the new man page sd_event_source_set_ratelimit(3) for details.
6dd990f3
ZJS
3457
3458 * systemd.link files gained a [Link] Promiscuous= switch, which allows
3459 the device to be raised in promiscuous mode.
3460
3461 New [Link] TransmitQueues= and ReceiveQueues= settings allow the
3462 number of TX and RX queues to be configured.
3463
3464 New [Link] TransmitQueueLength= setting allows the size of the TX
3465 queue to be configured.
3466
3467 New [Link] GenericSegmentOffloadMaxBytes= and
3468 GenericSegmentOffloadMaxSegments= allow capping the packet size and
3469 the number of segments accepted in Generic Segment Offload.
3470
33e68cce
ZJS
3471 * systemd-networkd gained support for the "B.A.T.M.A.N. advanced"
3472 wireless routing protocol that operates on ISO/OSI Layer 2 only and
3473 uses ethernet frames to route/bridge packets. This encompasses a new
3474 "batadv" netdev Type=, a new [BatmanAdvanced] section with a bunch of
3475 new settings in .netdev files, and a new BatmanAdvanced= setting in
3476 .network files.
3477
6dd990f3
ZJS
3478 * systemd.network files gained a [Network] RouteTable= configuration
3479 switch to select the routing policy table.
3480
3481 systemd.network files gained a [RoutingPolicyRule] Type=
3482 configuration switch (one of "blackhole, "unreachable", "prohibit").
3483
3484 systemd.network files gained a [IPv6AcceptRA] RouteDenyList= and
3485 RouteAllowList= settings to ignore/accept route advertisements from
3486 routers matching specified prefixes. The DenyList= setting has been
3487 renamed to PrefixDenyList= and a new PrefixAllowList= option has been
3488 added.
3489
3490 systemd.network files gained a [DHCPv6] UseAddress= setting to
3491 optionally ignore the address provided in the lease.
3492
3493 systemd.network files gained a [DHCPv6PrefixDelegation]
3494 ManageTemporaryAddress= switch.
3495
33e68cce
ZJS
3496 systemd.network files gained a new ActivationPolicy= setting which
3497 allows configuring how the UP state of an interface shall be managed,
b480543c 3498 i.e. whether the interface is always upped, always downed, or may be
6d18c13e 3499 upped/downed by the user using "ip link set dev".
1f3315b8 3500
897a2561
ZJS
3501 * The default for the Broadcast= setting in .network files has slightly
3502 changed: the broadcast address will not be configured for wireguard
3503 devices.
3504
6dd990f3
ZJS
3505 * systemd.netdev files gained a [VLAN] Protocol=, IngressQOSMaps=,
3506 EgressQOSMaps=, and [MACVLAN] BroadcastMulticastQueueLength=
3507 configuration options for VLAN packet handling.
3508
3509 * udev rules may now set log_level= option. This allows debug logs to
3510 be enabled for select events, e.g. just for a specific subsystem or
3511 even a single device.
3512
3513 * udev now exports the VOLUME_ID, LOGICAL_VOLUME_ID, VOLUME_SET_ID, and
2b6a8a4b
LP
3514 DATA_PREPARED_ID properties for block devices with ISO9660 file
3515 systems.
6dd990f3 3516
2b6a8a4b
LP
3517 * udev now exports decoded DMI information about installed memory slots
3518 as device properties under the /sys/class/dmi/id/ pseudo device.
6dd990f3 3519
2b6a8a4b 3520 * /dev/ is not mounted noexec anymore. This didn't provide any
64297c86
TM
3521 significant security benefits and would conflict with the executable
3522 mappings used with /dev/sgx device nodes. The previous behaviour can
3523 be restored for individual services with NoExecPaths=/dev (or by allow-
3524 listing and excluding /dev from ExecPaths=).
6dd990f3 3525
de0b8991 3526 * Permissions for /dev/vsock are now set to 0o666, and /dev/vhost-vsock
6dd990f3
ZJS
3527 and /dev/vhost-net are owned by the kvm group.
3528
3529 * The hardware database has been extended with a list of fingerprint
2b6a8a4b
LP
3530 readers that correctly support USB auto-suspend using data from
3531 libfprint.
6dd990f3
ZJS
3532
3533 * systemd-resolved can now answer DNSSEC questions through the stub
3534 resolver interface in a way that allows local clients to do DNSSEC
3535 validation themselves. For a question with DO+CD set, it'll proxy the
3536 DNS query and respond with a mostly unmodified packet received from
3537 the upstream server.
3538
1f3315b8
LP
3539 * systemd-resolved learnt a new boolean option CacheFromLocalhost= in
3540 resolved.conf. If true the service will provide caching even for DNS
3541 lookups made to an upstream DNS server on the 127.0.0.1/::1
3542 addresses. By default (and when the option is false) systemd-resolved
3543 will not cache such lookups, in order to avoid duplicate local
3544 caching, under the assumption the local upstream server caches
3545 anyway.
3546
2b6a8a4b
LP
3547 * systemd-resolved now implements RFC5001 NSID in its local DNS
3548 stub. This may be used by local clients to determine whether they are
3549 talking to the DNS resolver stub or a different DNS server.
3550
3551 * When resolving host names and other records resolvectl will now
3552 report where the data was acquired from (i.e. the local cache, the
3553 network, locally synthesized, …) and whether the network traffic it
3554 effected was encrypted or not. Moreover the tool acquired a number of
3555 new options --cache=, --synthesize=, --network=, --zone=,
3556 --trust-anchor=, --validate= that take booleans and may be used to
3557 tweak a lookup, i.e. whether it may be answered from cached
3558 information, locally synthesized information, information acquired
3559 through the network, the local mDNS/LLMNR zone, the DNSSEC trust
3560 anchor, and whether DNSSEC validation shall be executed for the
3561 lookup.
3562
9ba008cb 3563 * systemd-nspawn gained a new --ambient-capability= setting
6dd990f3
ZJS
3564 (AmbientCapability= in .nspawn files) to configure ambient
3565 capabilities passed to the container payload.
3566
3567 * systemd-nspawn gained the ability to configure the firewall using the
1f3315b8 3568 nftables subsystem (in addition to the existing iptables
897a2561 3569 support). Similarly, systemd-networkd's IPMasquerade= option now
2b6a8a4b
LP
3570 supports nftables as back-end, too. In both cases NAT on IPv6 is now
3571 supported too, in addition to IPv4 (the iptables back-end still is
1f3315b8
LP
3572 IPv4-only).
3573
897a2561
ZJS
3574 "IPMasquerade=yes", which was the same as "IPMasquerade=ipv4" before,
3575 retains its meaning, but has been deprecated. Please switch to either
3576 "ivp4" or "both" (if covering IPv6 is desired).
3577
1f3315b8
LP
3578 * systemd-importd will now download .verity and .roothash.p7s files
3579 along with the machine image (as exposed via machinectl pull-raw).
6dd990f3
ZJS
3580
3581 * systemd-oomd now gained a new DefaultMemoryPressureDurationSec=
3582 setting to configure the time a unit's cgroup needs to exceed memory
897a2561
ZJS
3583 pressure limits before action will be taken, and a new
3584 ManagedOOMPreference=none|avoid|omit setting to avoid killing certain
3585 units.
6dd990f3
ZJS
3586
3587 systemd-oomd is now considered fully supported (the usual
6b5e8240 3588 backwards-compatibility promises apply). Swap is not required for
6dd990f3
ZJS
3589 operation, but it is still recommended.
3590
3591 * systemd-timesyncd gained a new ConnectionRetrySec= setting which
3592 configures the retry delay when trying to contact servers.
3593
3594 * systemd-stdio-bridge gained --system/--user options to connect to the
3595 system bus (previous default) or the user session bus.
3596
6dd990f3
ZJS
3597 * systemd-localed may now call locale-gen to generate missing locales
3598 on-demand (UTF-8-only). This improves integration with Debian-based
3599 distributions (Debian/Ubuntu/PureOS/Tanglu/...) and Arch Linux.
3600
1f3315b8
LP
3601 * systemctl --check-inhibitors=true may now be used to obey inhibitors
3602 even when invoked non-interactively. The old --ignore-inhibitors
3603 switch is now deprecated and replaced by --check-inhibitors=false.
6dd990f3
ZJS
3604
3605 * systemctl import-environment will now emit a warning when called
3606 without any arguments (i.e. to import the full environment block of
3607 the called program). This command will usually be invoked from a
3608 shell, which means that it'll inherit a bunch of variables which are
3609 specific to that shell, and usually to the TTY the shell is connected
3610 to, and don't have any meaning in the global context of the system or
3611 user service manager. Instead, only specific variables should be
3612 imported into the manager environment block.
3613
3614 Similarly, programs which update the manager environment block by
3615 directly calling the D-Bus API of the manager, should also push
3616 specific variables, and not the full inherited environment.
3617
1f3315b8 3618 * systemctl's status output now shows unit state with a more careful
2b6a8a4b
LP
3619 choice of Unicode characters: units in maintenance show a "○" symbol
3620 instead of the usual "●", failed units show "×", and services being
3621 reloaded "↻".
1f3315b8 3622
6dd990f3 3623 * coredumpctl gained a --debugger-arguments= switch to pass arguments
2b6a8a4b
LP
3624 to the debugger. It also gained support for showing coredump info in
3625 a simple JSON format.
3626
3627 * systemctl/loginctl/machinectl's --signal= option now accept a special
3628 value "list", which may be used to show a brief table with known
3629 process signals and their numbers.
6dd990f3
ZJS
3630
3631 * networkctl now shows the link activation policy in status.
3632
2b6a8a4b 3633 * Various tools gained --pager/--no-pager/--json= switches to
6dd990f3
ZJS
3634 enable/disable the pager and provide JSON output.
3635
2b6a8a4b
LP
3636 * Various tools now accept two new values for the SYSTEMD_COLORS
3637 environment variable: "16" and "256", to configure how many terminal
3638 colors are used in output.
6dd990f3 3639
2b6a8a4b
LP
3640 * less 568 or newer is now required for the auto-paging logic of the
3641 various tools. Hyperlink ANSI sequences in terminal output are now
3642 used even if a pager is used, and older versions of less are not able
3643 to display these sequences correctly. SYSTEMD_URLIFY=0 may be used to
3644 disable this output again.
6dd990f3 3645
2b6a8a4b 3646 * Builds with support for separate / and /usr/ hierarchies ("split-usr"
6dd990f3
ZJS
3647 builds, non-merged-usr builds) are now officially deprecated. A
3648 warning is emitted during build. Support is slated to be removed in
3649 about a year (when the Debian Bookworm release development starts).
3650
897a2561
ZJS
3651 * Systems with the legacy cgroup v1 hierarchy are now marked as
3652 "tainted", to make it clearer that using the legacy hierarchy is not
3653 recommended.
3654
33e68cce
ZJS
3655 * systemd-localed will now refuse to configure a keymap which is not
3656 installed in the file system. This is intended as a bug fix, but
3657 could break cases where systemd-localed was used to configure the
3658 keymap in advanced of it being installed. It is necessary to install
3659 the keymap file first.
3660
2b6a8a4b 3661 * The main git development branch has been renamed to 'main'.
94293d65 3662
26c59e4e
LB
3663 * mmcblk[0-9]boot[0-9] devices will no longer be probed automatically
3664 for partitions, as in the vast majority of cases they contain none
3665 and are used internally by the bootloader (eg: uboot).
3666
1f3315b8
LP
3667 * systemd will now set the $SYSTEMD_EXEC_PID environment variable for
3668 spawned processes to the PID of the process itself. This may be used
3669 by programs for detecting whether they were forked off by the service
3670 manager itself or are a process forked off further down the tree.
3671
897a2561
ZJS
3672 * The sd-device API gained four new calls: sd_device_get_action() to
3673 determine the uevent add/remove/change/… action the device object has
3674 been seen for, sd_device_get_seqno() to determine the uevent sequence
3675 number, sd_device_new_from_stat_rdev() to allocate a new sd_device
3676 object from stat(2) data of a device node, and sd_device_trigger() to
3677 write to the 'uevent' attribute of a device.
2b6a8a4b
LP
3678
3679 * For most tools the --no-legend= switch has been replaced by
3680 --legend=no and --legend=yes, to force whether tables are shown with
3681 headers/legends.
3682
3683 * Units acquired a new property "Markers" that takes a list of zero,
3684 one or two of the following strings: "needs-reload" and
3685 "needs-restart". These markers may be set via "systemctl
3686 set-property". Once a marker is set, "systemctl reload-or-restart
3687 --marked" may be invoked to execute the operation the units are
3688 marked for. This is useful for package managers that want to mark
3689 units for restart/reload while updating, but effect the actual
3690 operations at a later step at once.
3691
3692 * The sd_bus_message_read_strv() API call of sd-bus may now also be
3693 used to parse arrays of D-Bus signatures and D-Bus paths, in addition
3694 to regular strings.
3695
3696 * bootctl will now report whether the UEFI firmware used a TPM2 device
3697 and measured the boot process into it.
3698
3699 * systemd-tmpfiles learnt support for a new environment variable
3700 $SYSTEMD_TMPFILES_FORCE_SUBVOL which takes a boolean value. If true
3701 the v/q/Q lines in tmpfiles.d/ snippets will create btrfs subvolumes
3702 even if the root fs of the system is not itself a btrfs volume.
3703
3704 * systemd-detect-virt/ConditionVirtualization= will now explicitly
3705 detect Docker/Podman environments where possible. Moreover, they
3706 should be able to generically detect any container manager as long as
3707 it assigns the container a cgroup.
3708
3709 * portablectl gained a new "reattach" verb for detaching/reattaching a
3710 portable service image, useful for updating images on-the-fly.
3711
d94d261c
LP
3712 * Intel SGX enclave device nodes (which expose a security feature of
3713 newer Intel CPUs) will now be owned by a new system group "sgx".
3714
8ce22551
ZJS
3715 Contributions from: Adam Nielsen, Adrian Vovk, AJ Jordan, Alan Perry,
3716 Alastair Pharo, Alexander Batischev, Ali Abdallah, Andrew Balmos,
3717 Anita Zhang, Annika Wickert, Ansgar Burchardt, Antonio Terceiro,
3718 Antonius Frie, Ardy, Arian van Putten, Ariel Fermani, Arnaud T,
3719 A S Alam, Bastien Nocera, Benjamin Berg, Benjamin Robin, Björn Daase,
3720 caoxia, Carlo Wood, Charles Lee, ChopperRob, chri2, Christian Ehrhardt,
3721 Christian Hesse, Christopher Obbard, clayton craft, corvusnix, cprn,
3722 Daan De Meyer, Daniele Medri, Daniel Rusek, Dan Sanders, Dan Streetman,
3723 Darren Ng, David Edmundson, David Tardon, Deepak Rawat, Devon Pringle,
3724 Dmitry Borodaenko, dropsignal, Einsler Lee, Endre Szabo,
3725 Evgeny Vereshchagin, Fabian Affolter, Fangrui Song, Felipe Borges,
3726 feliperodriguesfr, Felix Stupp, Florian Hülsmann, Florian Klink,
3727 Florian Westphal, Franck Bui, Frantisek Sumsal, Gablegritule,
3728 Gaël PORTAY, Gaurav, Giedrius Statkevičius, Greg Depoire-Ferrer,
3729 Gustavo Costa, Hans de Goede, Hela Basa, heretoenhance, hide,
3730 Iago López Galeiras, igo95862, Ilya Dmitrichenko, Jameer Pathan,
3731 Jan Tojnar, Jiehong, Jinyuan Si, Joerg Behrmann, John Slade,
3732 Jonathan G. Underwood, Jonathan McDowell, Josh Triplett, Joshua Watt,
3733 Julia Cartwright, Julien Humbert, Kairui Song, Karel Zak,
3734 Kevin Backhouse, Kevin P. Fleming, Khem Raj, Konomi, krissgjeng,
3735 l4gfcm, Lajos Veres, Lennart Poettering, Lincoln Ramsay, Luca Boccassi,
3736 Luca BRUNO, Lucas Werkmeister, Luka Kudra, Luna Jernberg,
3737 Marc-André Lureau, Martin Wilck, Matthias Klumpp, Matt Turner,
3738 Michael Gisbers, Michael Marley, Michael Trapp, Michal Fabik,
3739 Michał Kopeć, Michal Koutný, Michal Sekletár, Michele Guerini Rocco,
3740 Mike Gilbert, milovlad, moson-mo, Nick, nihilix-melix, Oğuz Ersen,
3741 Ondrej Mosnacek, pali, Pavel Hrdina, Pavel Sapezhko, Perry Yuan,
3742 Peter Hutterer, Pierre Dubouilh, Piotr Drąg, Pjotr Vertaalt,
3743 Richard Laager, RussianNeuroMancer, Sam Lunt, Sebastiaan van Stijn,
3744 Sergey Bugaev, shenyangyang4, simmon, Simonas Kazlauskas,
3745 Slimane Selyan Amiri, Stefan Agner, Steve Ramage, Susant Sahani,
3746 Sven Mueller, Tad Fisher, Takashi Iwai, Thomas Haller, Tom Shield,
3747 Topi Miettinen, Torsten Hilbrich, tpgxyz, Tyler Hicks, ulf-f,
3748 Ulrich Ölmann, Vincent Pelletier, Vinnie Magro, Vito Caputo, Vlad,
3749 walbit-de, Whired Planck, wouter bolsterlee, Xℹ Ruoyao, Yangyang Shen,
3750 Yuri Chornoivan, Yu Watanabe, Zach Smith, Zbigniew Jędrzejewski-Szmek,
3751 Zmicer Turok, Дамјан Георгиевски
d94d261c 3752
9ca34cf5 3753 — Berlin, 2021-03-30
60d31370 3754
d0dcf59b 3755CHANGES WITH 247:
bf6e5c57 3756
d90922fb 3757 * KERNEL API INCOMPATIBILITY: Linux 4.14 introduced two new uevents
bf6e5c57
LP
3758 "bind" and "unbind" to the Linux device model. When this kernel
3759 change was made, systemd-udevd was only minimally updated to handle
3760 and propagate these new event types. The introduction of these new
3761 uevents (which are typically generated for USB devices and devices
3762 needing a firmware upload before being functional) resulted in a
b182195a
ZJS
3763 number of issues which we so far didn't address. We hoped the kernel
3764 maintainers would themselves address these issues in some form, but
3765 that did not happen. To handle them properly, many (if not most) udev
3766 rules files shipped in various packages need updating, and so do many
3767 programs that monitor or enumerate devices with libudev or sd-device,
3768 or otherwise process uevents. Please note that this incompatibility
3769 is not fault of systemd or udev, but caused by an incompatible kernel
832eedd1 3770 change that happened back in Linux 4.14, but is becoming more and
dc6a3162 3771 more visible as the new uevents are generated by more kernel drivers.
bf6e5c57
LP
3772
3773 To minimize issues resulting from this kernel change (but not avoid
3774 them entirely) starting with systemd-udevd 247 the udev "tags"
3775 concept (which is a concept for marking and filtering devices during
3776 enumeration and monitoring) has been reworked: udev tags are now
3777 "sticky", meaning that once a tag is assigned to a device it will not
3778 be removed from the device again until the device itself is removed
3779 (i.e. unplugged). This makes sure that any application monitoring
3780 devices that match a specific tag is guaranteed to both see uevents
3781 where the device starts being relevant, and those where it stops
3782 being relevant (the latter now regularly happening due to the new
3783 "unbind" uevent type). The udev tags concept is hence now a concept
3784 tied to a *device* instead of a device *event* — unlike for example
3785 udev properties whose lifecycle (as before) is generally tied to a
3786 device event, meaning that the previously determined properties are
3787 forgotten whenever a new uevent is processed.
3788
3789 With the newly redefined udev tags concept, sometimes it's necessary
3790 to determine which tags are the ones applied by the most recent
3791 uevent/database update, in order to discern them from those
3792 originating from earlier uevents/database updates of the same
3793 device. To accommodate for this a new automatic property CURRENT_TAGS
3794 has been added that works similar to the existing TAGS property but
3795 only lists tags set by the most recent uevent/database
b182195a
ZJS
3796 update. Similarly, the libudev/sd-device API has been updated with
3797 new functions to enumerate these 'current' tags, in addition to the
bf6e5c57
LP
3798 existing APIs that now enumerate the 'sticky' ones.
3799
832eedd1 3800 To properly handle "bind"/"unbind" on Linux 4.14 and newer it is
bf6e5c57
LP
3801 essential that all udev rules files and applications are updated to
3802 handle the new events. Specifically:
3803
3804 • All rule files that currently use a header guard similar to
3805 ACTION!="add|change",GOTO="xyz_end" should be updated to use
3806 ACTION=="remove",GOTO="xyz_end" instead, so that the
3807 properties/tags they add are also applied whenever "bind" (or
3808 "unbind") is seen. (This is most important for all physical device
b182195a
ZJS
3809 types — those for which "bind" and "unbind" are currently
3810 generated, for all other device types this change is still
bf6e5c57
LP
3811 recommended but not as important — but certainly prepares for
3812 future kernel uevent type additions).
3813
b182195a 3814 • Similarly, all code monitoring devices that contains an 'if' branch
bf6e5c57
LP
3815 discerning the "add" + "change" uevent actions from all other
3816 uevents actions (i.e. considering devices only relevant after "add"
3817 or "change", and irrelevant on all other events) should be reworked
3818 to instead negatively check for "remove" only (i.e. considering
3819 devices relevant after all event types, except for "remove", which
3820 invalidates the device). Note that this also means that devices
3821 should be considered relevant on "unbind", even though conceptually
3822 this — in some form — invalidates the device. Since the precise
3823 effect of "unbind" is not generically defined, devices should be
3824 considered relevant even after "unbind", however I/O errors
3825 accessing the device should then be handled gracefully.
3826
3827 • Any code that uses device tags for deciding whether a device is
3828 relevant or not most likely needs to be updated to use the new
3829 udev_device_has_current_tag() API (or sd_device_has_current_tag()
db2db708
LP
3830 in case sd-device is used), to check whether the tag is set at the
3831 moment an uevent is seen (as opposed to the existing
bf6e5c57
LP
3832 udev_device_has_tag() API which checks if the tag ever existed on
3833 the device, following the API concept redefinition explained
3834 above).
3835
3836 We are very sorry for this breakage and the requirement to update
3837 packages using these interfaces. We'd again like to underline that
3838 this is not caused by systemd/udev changes, but result of a kernel
3839 behaviour change.
3840
7bfcc0de
LP
3841 * UPCOMING INCOMPATIBILITY: So far most downstream distribution
3842 packages have not retriggered devices once the udev package (or any
3843 auxiliary package installing additional udev rules) is updated. We
3844 intend to work with major distributions to change this, so that
3845 "udevadm trigger -a change" is issued on such upgrades, ensuring that
3846 the updated ruleset is applied to the devices already discovered, so
3847 that (asynchronously) after the upgrade completed the udev database
3848 is consistent with the updated rule set. This means udev rules must
3849 be ready to be retriggered with a "change" action any time, and
3850 result in correct and complete udev database entries. While the
3851 majority of udev rule files known to us currently get this right,
3852 some don't. Specifically, there are udev rules files included in
3853 various packages that only set udev properties on the "add" action,
3854 but do not handle the "change" action. If a device matching those
3855 rules is retriggered with the "change" action (as is intended here)
3856 it would suddenly lose the relevant properties. This always has been
48e0abb5
YW
3857 problematic, but as soon as all udev devices are triggered on relevant
3858 package upgrades this will become particularly so. It is strongly
3859 recommended to fix offending rules so that they can handle a "change"
3860 action at any time, and acquire all necessary udev properties even
3861 then. Or in other words: the header guard mentioned above
3862 (ACTION=="remove",GOTO="xyz_end") is the correct approach to handle
3863 this, as it makes sure rules are rerun on "change" correctly, and
3864 accumulate the correct and complete set of udev properties. udev rule
3865 definitions that cannot handle "change" events being triggered at
3866 arbitrary times should be considered buggy.
7bfcc0de 3867
db2db708 3868 * The MountAPIVFS= service file setting now defaults to on if
b182195a
ZJS
3869 RootImage= and RootDirectory= are used, which means that with those
3870 two settings /proc/, /sys/ and /dev/ are automatically properly set
3871 up for services. Previous behaviour may be restored by explicitly
3872 setting MountAPIVFS=off.
db2db708 3873
bae66f4b
LP
3874 * Since PAM 1.2.0 (2015) configuration snippets may be placed in
3875 /usr/lib/pam.d/ in addition to /etc/pam.d/. If a file exists in the
3876 latter it takes precedence over the former, similar to how most of
3877 systemd's own configuration is handled. Given that PAM stack
3878 definitions are primarily put together by OS vendors/distributions
69e3234d 3879 (though possibly overridden by users), this systemd release moves its
bae66f4b
LP
3880 own PAM stack configuration for the "systemd-user" PAM service (i.e.
3881 for the PAM session invoked by the per-user user@.service instance)
3882 from /etc/pam.d/ to /usr/lib/pam.d/. We recommend moving all
3883 packages' vendor versions of their PAM stack definitions from
3884 /etc/pam.d/ to /usr/lib/pam.d/, but if such OS-wide migration is not
3885 desired the location to which systemd installs its PAM stack
b182195a 3886 configuration may be changed via the -Dpamconfdir Meson option.
bae66f4b 3887
dc6a3162
LP
3888 * The runtime dependencies on libqrencode, libpcre2, libidn/libidn2,
3889 libpwquality and libcryptsetup have been changed to be based on
3890 dlopen(): instead of regular dynamic library dependencies declared in
3891 the binary ELF headers, these libraries are now loaded on demand
3892 only, if they are available. If the libraries cannot be found the
3893 relevant operations will fail gracefully, or a suitable fallback
3894 logic is chosen. This is supposed to be useful for general purpose
3895 distributions, as it allows minimizing the list of dependencies the
3896 systemd packages pull in, permitting building of more minimal OS
3897 images, while still making use of these "weak" dependencies should
3898 they be installed. Since many package managers automatically
3899 synthesize package dependencies from ELF shared library dependencies,
3900 some additional manual packaging work has to be done now to replace
3901 those (slightly downgraded from "required" to "recommended" or
3902 whatever is conceptually suitable for the package manager). Note that
3903 this change does not alter build-time behaviour: as before the
3904 build-time dependencies have to be installed during build, even if
3905 they now are optional during runtime.
db2db708
LP
3906
3907 * sd-event.h gained a new call sd_event_add_time_relative() for
3908 installing timers relative to the current time. This is mostly a
3909 convenience wrapper around the pre-existing sd_event_add_time() call
3910 which installs absolute timers.
3911
dc6a3162
LP
3912 * sd-event event sources may now be placed in a new "exit-on-failure"
3913 mode, which may be controlled via the new
3914 sd_event_source_get_exit_on_failure() and
3915 sd_event_source_set_exit_on_failure() functions. If enabled, any
3916 failure returned by the event source handler functions will result in
3917 exiting the event loop (unlike the default behaviour of just
3918 disabling the event source but continuing with the event loop). This
3919 feature is useful to set for all event sources that define "primary"
3920 program behaviour (where failure should be fatal) in contrast to
3921 "auxiliary" behaviour (where failure should remain local).
3922
3923 * Most event source types sd-event supports now accept a NULL handler
3924 function, in which case the event loop is exited once the event
3925 source is to be dispatched, using the userdata pointer — converted to
3926 a signed integer — as exit code of the event loop. Previously this
3927 was supported for IO and signal event sources already. Exit event
3928 sources still do not support this (simply because it makes little
3929 sense there, as the event loop is already exiting when they are
3930 dispatched).
3931
db2db708
LP
3932 * A new per-unit setting RootImageOptions= has been added which allows
3933 tweaking the mount options for any file system mounted as effect of
3934 the RootImage= setting.
3935
3936 * Another new per-unit setting MountImages= has been added, that allows
3937 mounting additional disk images into the file system tree accessible
3938 to the service.
3939
6fc5b951 3940 * Timer units gained a new FixedRandomDelay= boolean setting. If
b5e798de
ZJS
3941 enabled, the random delay configured with RandomizedDelaySec= is
3942 selected in a way that is stable on a given system (though still
3943 different for different units).
6fc5b951
LP
3944
3945 * Socket units gained a new setting Timestamping= that takes "us", "ns"
3946 or "off". This controls the SO_TIMESTAMP/SO_TIMESTAMPNS socket
3947 options.
3948
b182195a
ZJS
3949 * systemd-repart now generates JSON output when requested with the new
3950 --json= switch.
db2db708
LP
3951
3952 * systemd-machined's OpenMachineShell() bus call will now pass
3953 additional policy metadata data fields to the PolicyKit
3954 authentication request.
3955
3956 * systemd-tmpfiles gained a new -E switch, which is equivalent to
3957 --exclude-prefix=/dev --exclude-prefix=/proc --exclude=/run
3958 --exclude=/sys. It's particularly useful in combination with --root=,
3959 when operating on OS trees that do not have any of these four runtime
3960 directories mounted, as this means no files below these subtrees are
3961 created or modified, since those mount points should probably remain
3962 empty.
3963
b182195a
ZJS
3964 * systemd-tmpfiles gained a new --image= switch which is like --root=,
3965 but takes a disk image instead of a directory as argument. The
3966 specified disk image is mounted inside a temporary mount namespace
3967 and the tmpfiles.d/ drop-ins stored in the image are executed and
3968 applied to the image. systemd-sysusers similarly gained a new
3969 --image= switch, that allows the sysusers.d/ drop-ins stored in the
3970 image to be applied onto the image.
db2db708 3971
b182195a
ZJS
3972 * Similarly, the journalctl command also gained an --image= switch,
3973 which is a quick one-step solution to look at the log data included
3974 in OS disk images.
db2db708
LP
3975
3976 * journalctl's --output=cat option (which outputs the log content
3977 without any metadata, just the pure text messages) will now make use
b182195a 3978 of terminal colors when run on a suitable terminal, similarly to the
db2db708
LP
3979 other output modes.
3980
3981 * JSON group records now support a "description" string that may be
3982 used to add a human-readable textual description to such groups. This
3983 is supposed to match the user's GECOS field which traditionally
3984 didn't have a counterpart for group records.
3985
3986 * The "systemd-dissect" tool that may be used to inspect OS disk images
3987 and that was previously installed to /usr/lib/systemd/ has now been
b182195a 3988 moved to /usr/bin/, reflecting its updated status of an officially
db2db708
LP
3989 supported tool with a stable interface. It gained support for a new
3990 --mkdir switch which when combined with --mount has the effect of
3991 creating the directory to mount the image to if it is missing
3992 first. It also gained two new commands --copy-from and --copy-to for
3993 copying files and directories in and out of an OS image without the
3994 need to manually mount it. It also acquired support for a new option
b182195a 3995 --json= to generate JSON output when inspecting an OS image.
db2db708
LP
3996
3997 * The cgroup2 file system is now mounted with the
3998 "memory_recursiveprot" mount option, supported since kernel 5.7. This
3999 means that the MemoryLow= and MemoryMin= unit file settings now apply
4000 recursively to whole subtrees.
4001
4002 * systemd-homed now defaults to using the btrfs file system — if
4003 available — when creating home directories in LUKS volumes. This may
b182195a
ZJS
4004 be changed with the DefaultFileSystemType= setting in homed.conf.
4005 It's now the default file system in various major distributions and
4006 has the major benefit for homed that it can be grown and shrunk while
4007 mounted, unlike the other contenders ext4 and xfs, which can both be
4008 grown online, but not shrunk (in fact xfs is the technically most
4009 limited option here, as it cannot be shrunk at all).
db2db708
LP
4010
4011 * JSON user records managed by systemd-homed gained support for
4012 "recovery keys". These are basically secondary passphrases that can
b182195a
ZJS
4013 unlock user accounts/home directories. They are computer-generated
4014 rather than user-chosen, and typically have greater entropy.
4015 homectl's --recovery-key= option may be used to add a recovery key to
4016 a user account. The generated recovery key is displayed as a QR code,
4017 so that it can be scanned to be kept in a safe place. This feature is
4018 particularly useful in combination with systemd-homed's support for
4019 FIDO2 or PKCS#11 authentication, as a secure fallback in case the
4020 security tokens are lost. Recovery keys may be entered wherever the
4021 system asks for a password.
db2db708
LP
4022
4023 * systemd-homed now maintains a "dirty" flag for each LUKS encrypted
b182195a 4024 home directory which indicates that a home directory has not been
db2db708
LP
4025 deactivated cleanly when offline. This flag is useful to identify
4026 home directories for which the offline discard logic did not run when
4027 offlining, and where it would be a good idea to log in again to catch
4028 up.
4029
4030 * systemctl gained a new parameter --timestamp= which may be used to
4031 change the style in which timestamps are output, i.e. whether to show
4032 them in local timezone or UTC, or whether to show µs granularity.
4033
4034 * Alibaba's "pouch" container manager is now detected by
dc6a3162
LP
4035 systemd-detect-virt, ConditionVirtualization= and similar
4036 constructs. Similar, they now also recognize IBM PowerVM machine
4037 virtualization.
db2db708
LP
4038
4039 * systemd-nspawn has been reworked to use the /run/host/incoming/ as
4040 place to use for propagating external mounts into the
b182195a
ZJS
4041 container. Similarly /run/host/notify is now used as the socket path
4042 for container payloads to communicate with the container manager
4043 using sd_notify(). The container manager now uses the
4044 /run/host/inaccessible/ directory to place "inaccessible" file nodes
4045 of all relevant types which may be used by the container payload as
4046 bind mount source to over-mount inodes to make them inaccessible.
4047 /run/host/container-manager will now be initialized with the same
4048 string as the $container environment variable passed to the
4049 container's PID 1. /run/host/container-uuid will be initialized with
4050 the same string as $container_uuid. This means the /run/host/
4051 hierarchy is now the primary way to make host resources available to
4052 the container. The Container Interface documents these new files and
4053 directories:
db2db708
LP
4054
4055 https://systemd.io/CONTAINER_INTERFACE
4056
4057 * Support for the "ConditionNull=" unit file condition has been
b182195a
ZJS
4058 deprecated and undocumented for 6 years. systemd started to warn
4059 about its use 1.5 years ago. It has now been removed entirely.
db2db708 4060
db2db708
LP
4061 * sd-bus.h gained a new API call sd_bus_error_has_names(), which takes
4062 a sd_bus_error struct and a list of error names, and checks if the
4063 error matches one of these names. It's a convenience wrapper that is
4064 useful in cases where multiple errors shall be handled the same way.
4065
4066 * A new system call filter list "@known" has been added, that contains
b182195a 4067 all system calls known at the time systemd was built.
db2db708
LP
4068
4069 * Behaviour of system call filter allow lists has changed slightly:
387f6955 4070 system calls that are contained in @known will result in EPERM by
db2db708 4071 default, while those not contained in it result in ENOSYS. This
dc6a3162 4072 should improve compatibility because known system calls will thus be
db2db708
LP
4073 communicated as prohibited, while unknown (and thus newer ones) will
4074 be communicated as not implemented, which hopefully has the greatest
4075 chance of triggering the right fallback code paths in client
4076 applications.
4077
dc6a3162
LP
4078 * "systemd-analyze syscall-filter" will now show two separate sections
4079 at the bottom of the output: system calls known during systemd build
4080 time but not included in any of the filter groups shown above, and
4081 system calls defined on the local kernel but known during systemd
4082 build time.
4083
4084 * If the $SYSTEMD_LOG_SECCOMP=1 environment variable is set for
4085 systemd-nspawn all system call filter violations will be logged by
4086 the kernel (audit). This is useful for tracking down system calls
4087 invoked by container payloads that are prohibited by the container's
4088 system call filter policy.
4089
6fc5b951
LP
4090 * If the $SYSTEMD_SECCOMP=0 environment variable is set for
4091 systemd-nspawn (and other programs that use seccomp) all seccomp
4092 filtering is turned off.
4093
db2db708 4094 * Two new unit file settings ProtectProc= and ProcSubset= have been
b182195a
ZJS
4095 added that expose the hidepid= and subset= mount options of procfs.
4096 All processes of the unit will only see processes in /proc that are
4097 are owned by the unit's user. This is an important new sandboxing
4098 option that is recommended to be set on all system services. All
4099 long-running system services that are included in systemd itself set
4100 this option now. This option is only supported on kernel 5.8 and
4101 above, since the hidepid= option supported on older kernels was not a
4102 per-mount option but actually applied to the whole PID namespace.
db2db708
LP
4103
4104 * Socket units gained a new boolean setting FlushPending=. If enabled
4105 all pending socket data/connections are flushed whenever the socket
4106 unit enters the "listening" state, i.e. after the associated service
4107 exited.
4108
b182195a
ZJS
4109 * The unit file setting NUMAMask= gained a new "all" value: when used,
4110 all existing NUMA nodes are added to the NUMA mask.
db2db708
LP
4111
4112 * A new "credentials" logic has been added to system services. This is
4113 a simple mechanism to pass privileged data to services in a safe and
4114 secure way. It's supposed to be used to pass per-service secret data
4115 such as passwords or cryptographic keys but also associated less
4116 private information such as user names, certificates, and similar to
4117 system services. Each credential is identified by a short user-chosen
4118 name and may contain arbitrary binary data. Two new unit file
b182195a
ZJS
4119 settings have been added: SetCredential= and LoadCredential=. The
4120 former allows setting a credential to a literal string, the latter
4121 sets a credential to the contents of a file (or data read from a
4122 user-chosen AF_UNIX stream socket). Credentials are passed to the
4123 service via a special credentials directory, one file for each
4124 credential. The path to the credentials directory is passed in a new
4125 $CREDENTIALS_DIRECTORY environment variable. Since the credentials
db2db708 4126 are passed in the file system they may be easily referenced in
b182195a
ZJS
4127 ExecStart= command lines too, thus no explicit support for the
4128 credentials logic in daemons is required (though ideally daemons
4129 would look for the bits they need in $CREDENTIALS_DIRECTORY
4130 themselves automatically, if set). The $CREDENTIALS_DIRECTORY is
4131 backed by unswappable memory if privileges allow it, immutable if
4132 privileges allow it, is accessible only to the service's UID, and is
4133 automatically destroyed when the service stops.
db2db708
LP
4134
4135 * systemd-nspawn supports the same credentials logic. It can both
4136 consume credentials passed to it via the aforementioned
4137 $CREDENTIALS_DIRECTORY protocol as well as pass these credentials on
4138 to its payload. The service manager/PID 1 has been updated to match
4139 this: it can also accept credentials from the container manager that
b182195a
ZJS
4140 invokes it (in fact: any process that invokes it), and passes them on
4141 to its services. Thus, credentials can be propagated recursively down
4142 the tree: from a system's service manager to a systemd-nspawn
4143 service, to the service manager that runs as container payload and to
4144 the service it runs below. Credentials may also be added on the
4145 systemd-nspawn command line, using new --set-credential= and
4146 --load-credential= command line switches that match the
4147 aforementioned service settings.
db2db708
LP
4148
4149 * systemd-repart gained new settings Format=, Encrypt=, CopyFiles= in
4150 the partition drop-ins which may be used to format/LUKS
4151 encrypt/populate any created partitions. The partitions are
4152 encrypted/formatted/populated before they are registered in the
b182195a
ZJS
4153 partition table, so that they appear atomically: either the
4154 partitions do not exist yet or they exist fully encrypted, formatted,
4155 and populated — there is no time window where they are
4156 "half-initialized". Thus the system is robust to abrupt shutdown: if
4157 the tool is terminated half-way during its operations on next boot it
4158 will start from the beginning.
db2db708
LP
4159
4160 * systemd-repart's --size= operation gained a new "auto" value. If
4161 specified, and operating on a loopback file it is automatically sized
4162 to the minimal size the size constraints permit. This is useful to
4163 use "systemd-repart" as an image builder for minimally sized images.
4164
b182195a
ZJS
4165 * systemd-resolved now gained a third IPC interface for requesting name
4166 resolution: besides D-Bus and local DNS to 127.0.0.53 a Varlink
4167 interface is now supported. The nss-resolve NSS module has been
4168 modified to use this new interface instead of D-Bus. Using Varlink
4169 has a major benefit over D-Bus: it works without a broker service,
4170 and thus already during earliest boot, before the dbus daemon has
4171 been started. This means name resolution via systemd-resolved now
4172 works at the same time systemd-networkd operates: from earliest boot
4173 on, including in the initrd.
db2db708
LP
4174
4175 * systemd-resolved gained support for a new DNSStubListenerExtra=
4176 configuration file setting which may be used to specify additional IP
4177 addresses the built-in DNS stub shall listen on, in addition to the
4178 main one on 127.0.0.53:53.
4179
4180 * Name lookups issued via systemd-resolved's D-Bus and Varlink
4181 interfaces (and thus also via glibc NSS if nss-resolve is used) will
4182 now honour a trailing dot in the hostname: if specified the search
b182195a
ZJS
4183 path logic is turned off. Thus "resolvectl query foo." is now
4184 equivalent to "resolvectl query --search=off foo.".
db2db708
LP
4185
4186 * systemd-resolved gained a new D-Bus property "ResolvConfMode" that
4187 exposes how /etc/resolv.conf is currently managed: by resolved (and
4188 in which mode if so) or another subsystem. "resolvctl" will display
4189 this property in its status output.
4190
4191 * The resolv.conf snippets systemd-resolved provides will now set "."
b182195a
ZJS
4192 as the search domain if no other search domain is known. This turns
4193 off the derivation of an implicit search domain by nss-dns for the
4194 hostname, when the hostname is set to an FQDN. This change is done to
4195 make nss-dns using resolv.conf provided by systemd-resolved behave
4196 more similarly to nss-resolve.
db2db708
LP
4197
4198 * systemd-tmpfiles' file "aging" logic (i.e. the automatic clean-up of
4199 /tmp/ and /var/tmp/ based on file timestamps) now looks at the
b182195a
ZJS
4200 "birth" time (btime) of a file in addition to the atime, mtime, and
4201 ctime.
db2db708
LP
4202
4203 * systemd-analyze gained a new verb "capability" that lists all known
4204 capabilities by the systemd build and by the kernel.
4205
4206 * If a file /usr/lib/clock-epoch exists, PID 1 will read its mtime and
4207 advance the system clock to it at boot if it is noticed to be before
4208 that time. Previously, PID 1 would only advance the time to an epoch
4209 time that is set during build-time. With this new file OS builders
4210 can change this epoch timestamp on individual OS images without
4211 having to rebuild systemd.
4212
4213 * systemd-logind will now listen to the KEY_RESTART key from the Linux
b182195a
ZJS
4214 input layer and reboot the system if it is pressed, similarly to how
4215 it already handles KEY_POWER, KEY_SUSPEND or KEY_SLEEP. KEY_RESTART
4216 was originally defined in the Multimedia context (to restart playback
4217 of a song or film), but is now primarily used in various embedded
4218 devices for "Reboot" buttons. Accordingly, systemd-logind will now
4219 honour it as such. This may configured in more detail via the new
db2db708
LP
4220 HandleRebootKey= and RebootKeyIgnoreInhibited=.
4221
4222 * systemd-nspawn/systemd-machined will now reconstruct hardlinks when
4223 copying OS trees, for example in "systemd-nspawn --ephemeral",
4224 "systemd-nspawn --template=", "machinectl clone" and similar. This is
4225 useful when operating with OSTree images, which use hardlinks heavily
4226 throughout, and where such copies previously resulting in "exploding"
4227 hardlinks.
4228
4229 * systemd-nspawn's --console= setting gained support for a new
4230 "autopipe" value, which is identical to "interactive" when invoked on
4231 a TTY, and "pipe" otherwise.
4232
4233 * systemd-networkd's .network files gained support for explicitly
4234 configuring the multicast membership entries of bridge devices in the
4235 [BridgeMDB] section. It also gained support for the PIE queuing
4236 discipline in the [FlowQueuePIE] sections.
4237
4238 * systemd-networkd's .netdev files may now be used to create "BareUDP"
905a03e7 4239 tunnels, configured in the new [BareUDP] setting.
db2db708 4240
dc6a3162 4241 * systemd-networkd's Gateway= setting in .network files now accepts the
70a51d7e
YW
4242 special values "_dhcp4" and "_ipv6ra" to configure additional,
4243 locally defined, explicit routes to the gateway acquired via DHCP or
4244 IPv6 Router Advertisements. The old setting "_dhcp" is deprecated,
4245 but still accepted for backwards compatibility.
dc6a3162 4246
cb9a48a9
ZJS
4247 * systemd-networkd's [IPv6PrefixDelegation] section and
4248 IPv6PrefixDelegation= options have been renamed as [IPv6SendRA] and
4249 IPv6SendRA= (the old names are still accepted for backwards
4250 compatibility).
4251
70a51d7e
YW
4252 * systemd-networkd's .network files gained the DHCPv6PrefixDelegation=
4253 boolean setting in [Network] section. If enabled, the delegated prefix
4254 gained by another link will be configured, and an address within the
4255 prefix will be assigned.
4256
4257 * systemd-networkd's .network files gained the Announce= boolean setting
4258 in [DHCPv6PrefixDelegation] section. When enabled, the delegated
4259 prefix will be announced through IPv6 router advertisement (IPv6 RA).
4260 The setting is enabled by default.
4261
905a03e7
ZJS
4262 * VXLAN tunnels may now be marked as independent of any underlying
4263 network interface via the new Independent= boolean setting.
70a51d7e 4264
b182195a
ZJS
4265 * systemctl gained support for two new verbs: "service-log-level" and
4266 "service-log-target" may be used on services that implement the
4267 generic org.freedesktop.LogControl1 D-Bus interface to dynamically
4268 adjust the log level and target. All of systemd's long-running
4269 services support this now, but ideally all system services would
4270 implement this interface to make the system more uniformly
db2db708
LP
4271 debuggable.
4272
4273 * The SystemCallErrorNumber= unit file setting now accepts the new
4274 "kill" and "log" actions, in addition to arbitrary error number
10f34849
YW
4275 specifications as before. If "kill" the processes are killed on the
4276 event, if "log" the offending system call is audit logged.
db2db708
LP
4277
4278 * A new SystemCallLog= unit file setting has been added that accepts a
dc6a3162 4279 list of system calls that shall be logged about (audit).
db2db708
LP
4280
4281 * The OS image dissection logic (as used by RootImage= in unit files or
b182195a 4282 systemd-nspawn's --image= switch) has gained support for identifying
db2db708
LP
4283 and mounting explicit /usr/ partitions, which are now defined in the
4284 discoverable partition specification. This should be useful for
4285 environments where the root file system is
4286 generated/formatted/populated dynamically on first boot and combined
4287 with an immutable /usr/ tree that is supplied by the vendor.
4288
4289 * In the final phase of shutdown, within the systemd-shutdown binary
4290 we'll now try to detach MD devices (i.e software RAID) in addition to
4291 loopback block devices and DM devices as before. This is supposed to
4292 be a safety net only, in order to increase robustness if things go
4293 wrong. Storage subsystems are expected to properly detach their
4294 storage volumes during regular shutdown already (or in case of
4295 storage backing the root file system: in the initrd hook we return to
4296 later).
4297
4298 * If the SYSTEMD_LOG_TID environment variable is set all systemd tools
4299 will now log the thread ID in their log output. This is useful when
4300 working with heavily threaded programs.
4301
dc6a3162 4302 * If the SYSTEMD_RDRAND environment variable is set to "0", systemd will
b182195a
ZJS
4303 not use the RDRAND CPU instruction. This is useful in environments
4304 such as replay debuggers where non-deterministic behaviour is not
4305 desirable.
db2db708 4306
dc6a3162
LP
4307 * The autopaging logic in systemd's various tools (such as systemctl)
4308 has been updated to turn on "secure" mode in "less"
4309 (i.e. $LESSECURE=1) if execution in a "sudo" environment is
4310 detected. This disables invoking external programs from the pager,
4311 via the pipe logic. This behaviour may be overridden via the new
4312 $SYSTEMD_PAGERSECURE environment variable.
db2db708 4313
6e88f9e7
ZJS
4314 * Units which have resource limits (.service, .mount, .swap, .slice,
4315 .socket, and .slice) gained new configuration settings
4316 ManagedOOMSwap=, ManagedOOMMemoryPressure=, and
90616bb9 4317 ManagedOOMMemoryPressureLimitPercent= that specify resource pressure
6e88f9e7
ZJS
4318 limits and optional action taken by systemd-oomd.
4319
4320 * A new service systemd-oomd has been added. It monitors resource
4321 contention for selected parts of the unit hierarchy using the PSI
4322 information reported by the kernel, and kills processes when memory
4323 or swap pressure is above configured limits. This service is only
08c1864f
ZJS
4324 enabled by default in developer mode (see below) and should be
4325 considered a preview in this release. Behaviour details and option
4326 names are subject to change without the usual backwards-compatibility
4327 promises.
6e88f9e7
ZJS
4328
4329 * A new helper oomctl has been added to introspect systemd-oomd state.
042b028a 4330 It is only enabled by default in developer mode and should be
08c1864f
ZJS
4331 considered a preview without the usual backwards-compatibility
4332 promises.
6e88f9e7
ZJS
4333
4334 * New meson option -Dcompat-mutable-uid-boundaries= has been added. If
4335 enabled, systemd reads the system UID boundaries from /etc/login.defs
4336 at runtime, instead of using the built-in values selected during
4337 build. This is an option to improve compatibility for upgrades from
4338 old systems. It's strongly recommended not to make use of this
4339 functionality on new systems (or even enable it during build), as it
4340 makes something runtime-configurable that is mostly an implementation
4341 detail of the OS, and permits avoidable differences in deployments
4342 that create all kinds of problems in the long run.
4343
4344 * New meson option '-Dmode=developer|release' has been added. When
4345 'developer', additional checks and features are enabled that are
4346 relevant during upstream development, e.g. verification that
4347 semi-automatically-generated documentation has been properly updated
4348 following API changes. Those checks are considered hints for
4349 developers and are not actionable in downstream builds. In addition,
4350 extra features that are not ready for general consumption may be
4351 enabled in developer mode. It is thus recommended to set
4352 '-Dmode=release' in end-user and distro builds.
4353
da7511d5
LP
4354 * systemd-cryptsetup gained support for processing detached LUKS
4355 headers specified on the kernel command line via the header=
4356 parameter of the luks.options= kernel command line option. The same
4357 device/path syntax as for key files is supported for header files
4358 like this.
4359
4360 * The "net_id" built-in of udev has been updated to ignore ACPI _SUN
4361 slot index data for devices that are connected through a PCI bridge
4362 where the _SUN index is associated with the bridge instead of the
4363 network device itself. Previously this would create ambiguous device
4364 naming if multiple network interfaces were connected to the same PCI
4365 bridge. Since this is a naming scheme incompatibility on systems that
4366 possess hardware like this it has been introduced as new naming
4367 scheme "v247". The previous scheme can be selected via the
4368 "net.naming-scheme=v245" kernel command line parameter.
4369
4370 * ConditionFirstBoot= semantics have been modified to be safe towards
4371 abnormal system power-off during first boot. Specifically, the
4372 "systemd-machine-id-commit.service" service now acts as boot
4373 milestone indicating when the first boot process is sufficiently
4374 complete in order to not consider the next following boot also a
4375 first boot. If the system is reset before this unit is reached the
4376 first time, the next boot will still be considered a first boot; once
4377 it has been reached, no further boots will be considered a first
4378 boot. The "first-boot-complete.target" unit now acts as official hook
4379 point to order against this. If a service shall be run on every boot
4380 until the first boot fully succeeds it may thus be ordered before
4381 this target unit (and pull it in) and carry ConditionFirstBoot=
4382 appropriately.
4383
4384 * bootctl's set-default and set-oneshot commands now accept the three
4385 special strings "@default", "@oneshot", "@current" in place of a boot
4386 entry id. These strings are resolved to the current default and
4387 oneshot boot loader entry, as well as the currently booted one. Thus
4388 a command "bootctl set-default @current" may be used to make the
4389 currently boot menu item the new default for all subsequent boots.
4390
da7511d5
LP
4391 * "systemctl edit" has been updated to show the original effective unit
4392 contents in commented form in the text editor.
4393
9101cd1a
ZJS
4394 * Units in user mode are now segregated into three new slices:
4395 session.slice (units that form the core of graphical session),
4396 app.slice ("normal" user applications), and background.slice
4397 (low-priority tasks). Unless otherwise configured, user units are
4398 placed in app.slice. The plan is to add resource limits and
4399 protections for the different slices in the future.
4400
7bfcc0de
LP
4401 * New GPT partition types for RISCV32/64 for the root and /usr
4402 partitions, and their associated Verity partitions have been defined,
4403 and are now understood by systemd-gpt-auto-generator, and the OS
4404 image dissection logic.
4405
a5322567 4406 Contributions from: Adolfo Jayme Barrientos, afg, Alec Moskvin, Alyssa
6fc5b951 4407 Ross, Amitanand Chikorde, Andrew Hangsleben, Anita Zhang, Ansgar
a5322567
LP
4408 Burchardt, Arian van Putten, Aurelien Jarno, Axel Rasmussen, bauen1,
4409 Beniamino Galvani, Benjamin Berg, Bjørn Mork, brainrom, Chandradeep
d0dcf59b
ZJS
4410 Dey, Charles Lee, Chris Down, Christian Göttsche, Christof Efkemann,
4411 Christoph Ruegge, Clemens Gruber, Daan De Meyer, Daniele Medri, Daniel
4412 Mack, Daniel Rusek, Dan Streetman, David Tardon, Dimitri John Ledkov,
4413 Dmitry Borodaenko, Elias Probst, Elisei Roca, ErrantSpore, Etienne
4414 Doms, Fabrice Fontaine, fangxiuning, Felix Riemann, Florian Klink,
4415 Franck Bui, Frantisek Sumsal, fwSmit, George Rawlinson, germanztz,
4416 Gibeom Gwon, Glen Whitney, Gogo Gogsi, Göran Uddeborg, Grant Mathews,
4417 Hans de Goede, Hans Ulrich Niedermann, Haochen Tong, Harald Seiler,
4418 huangyong, Hubert Kario, igo95862, Ikey Doherty, Insun Pyo, Jan Chren,
4419 Jan Schlüter, Jérémy Nouhaud, Jian-Hong Pan, Joerg Behrmann, Jonathan
4420 Lebon, Jörg Thalheim, Josh Brobst, Juergen Hoetzel, Julien Humbert,
4421 Kai-Chuan Hsieh, Kairui Song, Kamil Dudka, Kir Kolyshkin, Kristijan
4422 Gjoshev, Kyle Huey, Kyle Russell, Lee Whalen, Lennart Poettering,
4423 lichangze, Luca Boccassi, Lucas Werkmeister, Luca Weiss, Marc
4424 Kleine-Budde, Marco Wang, Martin Wilck, Marti Raudsepp, masmullin2000,
4425 Máté Pozsgay, Matt Fenwick, Michael Biebl, Michael Scherer, Michal
4426 Koutný, Michal Sekletár, Michal Suchanek, Mikael Szreder, Milo
4427 Casagrande, mirabilos, Mitsuha_QuQ, mog422, Muhammet Kara, Nazar
4428 Vinnichuk, Nicholas Narsing, Nicolas Fella, Njibhu, nl6720, Oğuz Ersen,
4429 Olivier Le Moal, Ondrej Kozina, onlybugreports, Pass Automated Testing
4430 Suite, Pat Coulthard, Pavel Sapezhko, Pedro Ruiz, perry_yuan, Peter
4431 Hutterer, Phaedrus Leeds, PhoenixDiscord, Piotr Drąg, Plan C,
4432 Purushottam choudhary, Rasmus Villemoes, Renaud Métrich, Robert Marko,
4433 Roman Beranek, Ronan Pigott, Roy Chen (陳彥廷), RussianNeuroMancer,
4434 Samanta Navarro, Samuel BF, scootergrisen, Sorin Ionescu, Steve Dodd,
4435 Susant Sahani, Timo Rothenpieler, Tobias Hunger, Tobias Kaufmann, Topi
4436 Miettinen, vanou, Vito Caputo, Weblate, Wen Yang, Whired Planck,
4437 williamvds, Yu, Li-Yu, Yuri Chornoivan, Yu Watanabe, Zbigniew
4438 Jędrzejewski-Szmek, Zmicer Turok, Дамјан Георгиевски
4439
4440 – Warsaw, 2020-11-26
a5322567 4441
72e51908 4442CHANGES WITH 246:
b0d0e0ef 4443
7f56c26d
ZJS
4444 * The service manager gained basic support for cgroup v2 freezer. Units
4445 can now be suspended or resumed either using new systemctl verbs,
4446 freeze and thaw respectively, or via D-Bus.
4447
4448 * PID 1 may now automatically load pre-compiled AppArmor policies from
4449 /etc/apparmor/earlypolicy during early boot.
4450
4451 * The CPUAffinity= setting in service unit files now supports a new
4452 special value "numa" that causes the CPU affinity masked to be set
4453 based on the NUMA mask.
4454
4455 * systemd will now log about all left-over processes remaining in a
4456 unit when the unit is stopped. It will now warn about services using
4457 KillMode=none, as this is generally an unsafe thing to make use of.
4458
4459 * Two new unit file settings
4460 ConditionPathIsEncrypted=/AssertPathIsEncrypted= have been
4461 added. They may be used to check whether a specific file system path
4462 resides on a block device that is encrypted on the block level
4463 (i.e. using dm-crypt/LUKS).
4464
4465 * Another pair of new settings ConditionEnvironment=/AssertEnvironment=
4466 has been added that may be used for simple environment checks. This
4467 is particularly useful when passing in environment variables from a
4468 container manager (or from PAM in case of the systemd --user
4469 instance).
4470
4471 * .service unit files now accept a new setting CoredumpFilter= which
4472 allows configuration of the memory sections coredumps of the
4473 service's processes shall include.
4474
4475 * .mount units gained a new ReadWriteOnly= boolean option. If set
4476 it will not be attempted to mount a file system read-only if mounting
4477 in read-write mode doesn't succeed. An option x-systemd.rw-only is
4478 available in /etc/fstab to control the same.
4479
4480 * .socket units gained a new boolean setting PassPacketInfo=. If
4481 enabled, the kernel will attach additional per-packet metadata to all
5149990e
CR
4482 packets read from the socket, as an ancillary message. This controls
4483 the IP_PKTINFO, IPV6_RECVPKTINFO, NETLINK_PKTINFO socket options,
7f56c26d
ZJS
4484 depending on socket type.
4485
4486 * .service units gained a new setting RootHash= which may be used to
4487 specify the root hash for verity enabled disk images which are
4488 specified in RootImage=. RootVerity= may be used to specify a path to
4489 the Verity data matching a RootImage= file system. (The latter is
4490 only useful for images that do not contain the Verity data embedded
4491 into the same image that carries a GPT partition table following the
4492 Discoverable Partition Specification). Similarly, systemd-nspawn
4493 gained a new switch --verity-data= that takes a path to a file with
4494 the verity data of the disk image supplied in --image=, if the image
4495 doesn't contain the verity data itself.
4496
4497 * .service units gained a new setting RootHashSignature= which takes
4498 either a base64 encoded PKCS#7 signature of the root hash specified
4499 with RootHash=, or a path to a file to read the signature from. This
4500 allows validation of the root hash against public keys available in
4501 the kernel keyring, and is only supported on recent kernels
4502 (>= 5.4)/libcryptsetup (>= 2.30). A similar switch has been added to
4503 systemd-nspawn and systemd-dissect (--root-hash-sig=). Support for
4504 this mechanism has also been added to systemd-veritysetup.
4505
4506 * .service unit files gained two new options
4507 TimeoutStartFailureMode=/TimeoutStopFailureMode= that may be used to
4508 tune behaviour if a start or stop timeout is hit, i.e. whether to
4509 terminate the service with SIGTERM, SIGABRT or SIGKILL.
4510
4511 * Most options in systemd that accept hexadecimal values prefixed with
4512 0x in additional to the usual decimal notation now also support octal
cb713f16 4513 notation when the 0o prefix is used and binary notation if the 0b
7f56c26d
ZJS
4514 prefix is used.
4515
337f0b00
ZJS
4516 * Various command line parameters and configuration file settings that
4517 configure key or certificate files now optionally take paths to
4518 AF_UNIX sockets in the file system. If configured that way a stream
4519 connection is made to the socket and the required data read from
4520 it. This is a simple and natural extension to the existing regular
4521 file logic, and permits other software to provide keys or
4522 certificates via simple IPC services, for example when unencrypted
4523 storage on disk is not desired. Specifically, systemd-networkd's
4524 Wireguard and MACSEC key file settings as well as
4525 systemd-journal-gatewayd's and systemd-journal-remote's PEM
4526 key/certificate parameters support this now.
4527
7f56c26d
ZJS
4528 * Unit files, tmpfiles.d/ snippets, sysusers.d/ snippets and other
4529 configuration files that support specifier expansion learnt six new
4530 specifiers: %a resolves to the current architecture, %o/%w/%B/%W
4531 resolve to the various ID fields from /etc/os-release, %l resolves to
4532 the "short" hostname of the system, i.e. the hostname configured in
4533 the kernel truncated at the first dot.
4534
4535 * Support for the .include syntax in unit files has been removed. The
4536 concept has been obsolete for 6 years and we started warning about
4537 its pending removal 2 years ago (also see NEWS file below). It's
4538 finally gone now.
4539
4540 * StandardError= and StandardOutput= in unit files no longer support
4541 the "syslog" and "syslog-console" switches. They were long removed
4542 from the documentation, but will now result in warnings when used,
4543 and be converted to "journal" and "journal+console" automatically.
4544
5d043c9f
LP
4545 * If the service setting User= is set to the "nobody" user, a warning
4546 message is now written to the logs (but the value is nonetheless
4547 accepted). Setting User=nobody is unsafe, since the primary purpose
4548 of the "nobody" user is to own all files whose owner cannot be mapped
4549 locally. It's in particular used by the NFS subsystem and in user
4550 namespacing. By running a service under this user's UID it might get
4551 read and even write access to all these otherwise unmappable files,
4552 which is quite likely a major security problem.
4553
02e1eb6d
ZJS
4554 * tmpfs mounts automatically created by systemd (/tmp, /run, /dev/shm,
4555 and others) now have a size and inode limits applied (50% of RAM for
c2cfb126
ZJS
4556 /tmp and /dev/shm, 10% of RAM for other mounts, etc.). Please note
4557 that the implicit kernel default is 50% too, so there is no change
4558 in the size limit for /tmp and /dev/shm.
02e1eb6d 4559
337f0b00
ZJS
4560 * nss-mymachines lost support for resolution of users and groups, and
4561 now only does resolution of hostnames. This functionality is now
4562 provided by nss-systemd. Thus, the 'mymachines' entry should be
4563 removed from the 'passwd:' and 'group:' lines in /etc/nsswitch.conf
4564 (and 'systemd' added if it is not already there).
4565
7f56c26d
ZJS
4566 * A new kernel command line option systemd.hostname= has been added
4567 that allows controlling the hostname that is initialized early during
4568 boot.
4569
4570 * A kernel command line option "udev.blockdev_read_only" has been
4571 added. If specified all hardware block devices that show up are
4572 immediately marked as read-only by udev. This option is useful for
4573 making sure that a specific boot under no circumstances modifies data
4574 on disk. Use "blockdev --setrw" to undo the effect of this, per
4575 device.
b0d0e0ef
LP
4576
4577 * A new boolean kernel command line option systemd.swap= has been
4578 added, which may be used to turn off automatic activation of swap
7f56c26d 4579 devices listed in /etc/fstab.
b0d0e0ef 4580
7f56c26d
ZJS
4581 * New kernel command line options systemd.condition-needs-update= and
4582 systemd.condition-first-boot= have been added, which override the
4583 result of the ConditionNeedsUpdate= and ConditionFirstBoot=
4584 conditions.
b0d0e0ef 4585
7f56c26d
ZJS
4586 * A new kernel command line option systemd.clock-usec= has been added
4587 that allows setting the system clock to the specified time in µs
4588 since Jan 1st, 1970 early during boot. This is in particular useful
4589 in order to make test cases more reliable.
b0d0e0ef 4590
7f56c26d
ZJS
4591 * The fs.suid_dumpable sysctl is set to 2 / "suidsafe". This allows
4592 systemd-coredump to save core files for suid processes. When saving
4593 the core file, systemd-coredump will use the effective uid and gid of
4594 the process that faulted.
4595
4596 * The /sys/module/kernel/parameters/crash_kexec_post_notifiers file is
4597 now automatically set to "Y" at boot, in order to enable pstore
4598 generation for collection with systemd-pstore.
4599
c2cfb126 4600 * We provide a set of udev rules to enable auto-suspend on PCI and USB
69e3234d 4601 devices that were tested to correctly support it. Previously, this
c2cfb126
ZJS
4602 was distributed as a set of udev rules, but has now been replaced by
4603 by a set of hwdb entries (and a much shorter udev rule to take action
4604 if the device modalias matches one of the new hwdb entries).
4605
4606 As before, entries are periodically imported from the database
4607 maintained by the ChromiumOS project. If you have a device that
4608 supports auto-suspend correctly and where it should be enabled by
4609 default, please submit a patch that adds it to the database (see
4610 /usr/lib/udev/hwdb.d/60-autosuspend.hwdb).
7f56c26d 4611
5149990e
CR
4612 * systemd-udevd gained the new configuration option timeout_signal= as well
4613 as a corresponding kernel command line option udev.timeout_signal=.
7f56c26d
ZJS
4614 The option can be used to configure the UNIX signal that the main
4615 daemon sends to the worker processes on timeout. Setting the signal
4616 to SIGABRT is useful for debugging.
4617
4618 * .link files managed by systemd-udevd gained options RxFlowControl=,
4619 TxFlowControl=, AutoNegotiationFlowControl= in the [Link] section, in
4620 order to configure various flow control parameters. They also gained
4621 RxMiniBufferSize= and RxJumboBufferSize= in order to configure jumbo
4622 frame ring buffer sizes.
b0d0e0ef 4623
3ea58e01 4624 * networkd.conf gained a new boolean setting ManageForeignRoutes=. If
aa0b850b 4625 enabled systemd-networkd manages all routes configured by other tools.
3ea58e01 4626
71af436c
YW
4627 * .network files managed by systemd-networkd gained a new section
4628 [SR-IOV], in order to configure SR-IOV capable network devices.
4629
b0d0e0ef
LP
4630 * systemd-networkd's [IPv6Prefix] section in .network files gained a
4631 new boolean setting Assign=. If enabled an address from the prefix is
4632 automatically assigned to the interface.
4633
c05b8edd
YW
4634 * systemd-networkd gained a new section [DHCPv6PrefixDelegation] which
4635 controls delegated prefixes assigned by DHCPv6 client. The section
4636 has three settings: SubnetID=, Assign=, and Token=. The setting
4637 SubnetID= allows explicit configuration of the preferred subnet that
4638 systemd-networkd's Prefix Delegation logic assigns to interfaces. If
4639 Assign= is enabled (which is the default) an address from any acquired
4640 delegated prefix is automatically chosen and assigned to the
4641 interface. The setting Token= specifies an optional address generation
4642 mode for Assign=.
b0d0e0ef 4643
3ea58e01
YW
4644 * systemd-networkd's [Network] section gained a new setting
4645 IPv4AcceptLocal=. If enabled the interface accepts packets with local
4646 source addresses.
4647
b0d0e0ef
LP
4648 * systemd-networkd gained support for configuring the HTB queuing
4649 discipline in the [HierarchyTokenBucket] and
4650 [HierarchyTokenBucketClass] sections. Similar the "pfifo" qdisc may
4651 be configured in the [PFIFO] section, "GRED" in
4652 [GenericRandomEarlyDetection], "SFB" in [StochasticFairBlue], "cake"
4653 in [CAKE], "PIE" in [PIE], "DRR" in [DeficitRoundRobinScheduler] and
4654 [DeficitRoundRobinSchedulerClass], "BFIFO" in [BFIFO],
1f19ae0f
LP
4655 "PFIFOHeadDrop" in [PFIFOHeadDrop], "PFIFOFast" in [PFIFOFast], "HHF"
4656 in [HeavyHitterFilter], "ETS" in [EnhancedTransmissionSelection] and
3ea58e01 4657 "QFQ" in [QuickFairQueueing] and [QuickFairQueueingClass].
b0d0e0ef
LP
4658
4659 * systemd-networkd gained support for a new Termination= setting in the
4660 [CAN] section for configuring the termination resistor. It also
4661 gained a new ListenOnly= setting for controlling whether to only
4662 listen on CAN interfaces, without interfering with traffic otherwise
4663 (which is useful for debugging/monitoring CAN network
4664 traffic). DataBitRate=, DataSamplePoint=, FDMode=, FDNonISO= have
4665 been added to configure various CAN-FD aspects.
4666
554a97ba
YW
4667 * systemd-networkd's [DHCPv6] section gained a new option WithoutRA=.
4668 When enabled, DHCPv6 will be attempted right-away without requiring an
4669 Router Advertisement packet suggesting it first (i.e. without the 'M'
4670 or 'O' flags set). The [IPv6AcceptRA] section gained a boolean option
4671 DHCPv6Client= that may be used to turn off the DHCPv6 client even if
4672 the RA packets suggest it.
b0d0e0ef
LP
4673
4674 * systemd-networkd's [DHCPv4] section gained a new setting UseGateway=
4675 which may be used to turn off use of the gateway information provided
4676 by the DHCP lease. A new FallbackLeaseLifetimeSec= setting may be
4677 used to configure how to process leases that lack a lifetime option.
4678
4679 * systemd-networkd's [DHCPv4] and [DHCPServer] sections gained a new
4680 setting SendVendorOption= allowing configuration of additional vendor
4681 options to send in the DHCP requests/responses. The [DHCPv6] section
4682 gained a new SendOption= setting for sending arbitrary DHCP
4683 options. RequestOptions= has been added to request arbitrary options
4684 from the server. UserClass= has been added to set the DHCP user class
4685 field.
4686
4687 * systemd-networkd's [DHCPServer] section gained a new set of options
2a71d57f 4688 EmitPOP3=/POP3=, EmitSMTP=/SMTP=, EmitLPR=/LPR= for including server
b0d0e0ef
LP
4689 information about these three protocols in the DHCP lease. It also
4690 gained support for including "MUD" URLs ("Manufacturer Usage
4691 Description"). Support for "MUD" URLs was also added to the LLDP
4692 stack, configurable in the [LLDP] section in .network files.
4693
6b949d26
YW
4694 * The Mode= settings in [MACVLAN] and [MACVTAP] now support 'source'
4695 mode. Also, the sections now support a new setting SourceMACAddress=.
4696
7f56c26d
ZJS
4697 * systemd-networkd's .netdev files now support a new setting
4698 VLANProtocol= in the [Bridge] section that allows configuration of
4699 the VLAN protocol to use.
4700
4701 * systemd-networkd supports a new Group= setting in the [Link] section
4702 of the .network files, to control the link group.
4703
6f6296b9 4704 * systemd-networkd's [Network] section gained a new
3ea58e01
YW
4705 IPv6LinkLocalAddressGenerationMode= setting, which specifies how IPv6
4706 link local address is generated.
4707
7f56c26d
ZJS
4708 * A new default .network file is now shipped that matches TUN/TAP
4709 devices that begin with "vt-" in their name. Such interfaces will
4710 have IP routing onto the host links set up automatically. This is
4711 supposed to be used by VM managers to trivially acquire a network
4712 interface which is fully set up for host communication, simply by
4713 carefully picking an interface name to use.
4714
3ea58e01 4715 * systemd-networkd's [DHCPv6] section gained a new setting RouteMetric=
aa0b850b 4716 which sets the route priority for routes specified by the DHCP server.
3ea58e01
YW
4717
4718 * systemd-networkd's [DHCPv6] section gained a new setting VendorClass=
4719 which configures the vendor class information sent to DHCP server.
4720
7f56c26d
ZJS
4721 * The BlackList= settings in .network files' [DHCPv4] and
4722 [IPv6AcceptRA] sections have been renamed DenyList=. The old names
4723 are still understood to provide compatibility.
4724
4725 * networkctl gained the new "forcerenew" command for forcing all DHCP
4726 server clients to renew their lease. The interface "status" output
4727 will now show numerous additional fields of information about an
4728 interface. There are new "up" and "down" commands to bring specific
4729 interfaces up or down.
4730
337f0b00
ZJS
4731 * systemd-resolved's DNS= configuration option now optionally accepts a
4732 port number (after ":") and a host name (after "#"). When the host
4733 name is specified, the DNS-over-TLS certificate is validated to match
4734 the specified hostname. Additionally, in case of IPv6 addresses, an
4735 interface may be specified (after "%").
b0d0e0ef 4736
2bd5e1b2
ZJS
4737 * systemd-resolved may be configured to forward single-label DNS names.
4738 This is not standard-conformant, but may make sense in setups where
4739 public DNS servers are not used.
4740
4741 * systemd-resolved's DNS-over-TLS support gained SNI validation.
4742
7f56c26d
ZJS
4743 * systemd-nspawn's --resolv-conf= switch gained a number of new
4744 supported values. Specifically, options starting with "replace-" are
4745 like those prefixed "copy-" but replace any existing resolv.conf
4746 file. And options ending in "-uplink" and "-stub" can now be used to
4747 propagate other flavours of resolv.conf into the container (as
4748 defined by systemd-resolved).
b0d0e0ef 4749
7f56c26d
ZJS
4750 * The various programs included in systemd can now optionally output
4751 their log messages on stderr prefixed with a timestamp, controlled by
4752 the $SYSTEMD_LOG_TIME environment variable.
366d0772 4753
b0d0e0ef
LP
4754 * systemctl gained a new "-P" switch that is a shortcut for "--value
4755 --property=…".
4756
7f56c26d
ZJS
4757 * "systemctl list-units" and "systemctl list-machines" no longer hide
4758 their first output column with --no-legend. To hide the first column,
4759 use --plain.
b0d0e0ef 4760
7f56c26d
ZJS
4761 * "systemctl reboot" takes the option "--reboot-argument=".
4762 The optional positional argument to "systemctl reboot" is now
4763 being deprecated in favor of this option.
b0d0e0ef
LP
4764
4765 * systemd-run gained a new switch --slice-inherit. If specified the
4766 unit it generates is placed in the same slice as the systemd-run
4767 process itself.
4768
7f56c26d
ZJS
4769 * systemd-journald gained support for zstd compression of large fields
4770 in journal files. The hash tables in journal files have been hardened
4771 against hash collisions. This is an incompatible change and means
4772 that journal files created with new systemd versions are not readable
4773 with old versions. If the $SYSTEMD_JOURNAL_KEYED_HASH boolean
4774 environment variable for systemd-journald.service is set to 0 this
4775 new hardening functionality may be turned off, so that generated
4776 journal files remain compatible with older journalctl
4777 implementations.
b0d0e0ef 4778
7f56c26d
ZJS
4779 * journalctl will now include a clickable link in the default output for
4780 each log message for which an URL with further documentation is
4781 known. This is only supported on terminal emulators that support
4782 clickable hyperlinks, and is turned off if a pager is used (since
4783 "less" still doesn't support hyperlinks,
4784 unfortunately). Documentation URLs may be included in log messages
4785 either by including a DOCUMENTATION= journal field in it, or by
4786 associating a journal message catalog entry with the log message's
4787 MESSAGE_ID, which then carries a "Documentation:" tag.
b0d0e0ef
LP
4788
4789 * journald.conf gained a new boolean setting Audit= that may be used to
4790 control whether systemd-journald will enable audit during
4791 initialization.
4792
7f56c26d
ZJS
4793 * when systemd-journald's log stream is broken up into multiple lines
4794 because the PID of the sender changed this is indicated in the
4795 generated log records via the _LINE_BREAK=pid-change field.
b0d0e0ef 4796
7f56c26d
ZJS
4797 * journalctl's "-o cat" output mode will now show one or more journal
4798 fields specified with --output-fields= instead of unconditionally
4799 MESSAGE=. This is useful to retrieve a very specific set of fields
4800 without any decoration.
b0d0e0ef 4801
495454f4
LP
4802 * The sd-journal.h API gained two new functions:
4803 sd_journal_enumerate_available_unique() and
4804 sd_journal_enumerate_available_data() that operate like their
4805 counterparts that lack the _available_ in the name, but skip items
4806 that cannot be read and processed by the local implementation
4807 (i.e. are compressed in an unsupported format or such),
4808
7f56c26d
ZJS
4809 * coredumpctl gained a new --file= switch, matching the same one in
4810 journalctl: a specific journal file may be specified to read the
4811 coredump data from.
4812
4813 * coredumps collected by systemd-coredump may now be compressed using
4814 the zstd algorithm.
b0d0e0ef
LP
4815
4816 * systemd-binfmt gained a new switch --unregister for unregistering all
4817 registered entries at once. This is now invoked automatically at
4818 shutdown, so that binary formats registered with the "F" flag will
4819 not block clean file system unmounting.
4820
b0d0e0ef 4821 * systemd-notify's --pid= switch gained new values: "parent", "self",
1d16f661 4822 "auto" for controlling which PID to send to the service manager: the
b0d0e0ef
LP
4823 systemd-notify process' PID, or the one of the process invoking it.
4824
b0d0e0ef
LP
4825 * systemd-logind's Session bus object learnt a new method call
4826 SetType() for temporarily updating the session type of an already
4827 allocated session. This is useful for upgrading tty sessions to
4828 graphical ones once a compositor is invoked.
4829
b0d0e0ef
LP
4830 * systemd-socket-proxy gained a new switch --exit-idle-time= for
4831 configuring an exit-on-idle time.
4832
b0d0e0ef
LP
4833 * systemd-repart's --empty= setting gained a new value "create". If
4834 specified a new empty regular disk image file is created under the
1d16f661 4835 specified name. Its size may be specified with the new --size=
b0d0e0ef
LP
4836 option. The latter is also supported without the "create" mode, in
4837 order to grow existing disk image files to the specified size. These
1d16f661
FS
4838 two new options are useful when creating or manipulating disk images
4839 instead of operating on actual block devices.
b0d0e0ef
LP
4840
4841 * systemd-repart drop-ins now support a new UUID= setting to control
4842 the UUID to assign to a newly created partition.
4843
1f19ae0f
LP
4844 * systemd-repart's SizeMin= per-partition parameter now defaults to 10M
4845 instead of 0.
4846
4847 * systemd-repart's Label= setting now support the usual, simple
4848 specifier expansion.
4849
7f56c26d
ZJS
4850 * systemd-homed's LUKS backend gained the ability to discard empty file
4851 system blocks automatically when the user logs out. This is enabled
4852 by default to ensure that home directories take minimal space when
4853 logged out but get full size guarantees when logged in. This may be
4854 controlled with the new --luks-offline-discard= switch to homectl.
b0d0e0ef 4855
7f56c26d
ZJS
4856 * If systemd-homed detects that /home/ is encrypted as a whole it will
4857 now default to the directory or subvolume backends instead of the
4858 LUKS backend, in order to avoid double encryption. The default
4859 storage and file system may now be configured explicitly, too, via
4860 the new /etc/systemd/homed.conf configuration file.
b0d0e0ef 4861
5d043c9f
LP
4862 * systemd-homed now supports unlocking home directories with FIDO2
4863 security tokens that support the 'hmac-secret' extension, in addition
4864 to the existing support for PKCS#11 security token unlocking
4865 support. Note that many recent hardware security tokens support both
4866 interfaces. The FIDO2 support is accessible via homectl's
4867 --fido2-device= option.
4868
4869 * homectl's --pkcs11-uri= setting now accepts two special parameters:
4870 if "auto" is specified and only one suitable PKCS#11 security token
4871 is plugged in, its URL is automatically determined and enrolled for
4872 unlocking the home directory. If "list" is specified a brief table of
4873 suitable PKCS#11 security tokens is shown. Similar, the new
4874 --fido2-device= option also supports these two special values, for
4875 automatically selecting and listing suitable FIDO2 devices.
4876
b0d0e0ef
LP
4877 * The /etc/crypttab tmp option now optionally takes an argument
4878 selecting the file system to use. Moreover, the default is now
4879 changed from ext2 to ext4.
4880
4881 * There's a new /etc/crypttab option "keyfile-erase". If specified the
4882 key file listed in the same line is removed after use, regardless if
4883 volume activation was successful or not. This is useful if the key
4884 file is only acquired transiently at runtime and shall be erased
4885 before the system continues to boot.
4886
4887 * There's also a new /etc/crypttab option "try-empty-password". If
4888 specified, before asking the user for a password it is attempted to
4889 unlock the volume with an empty password. This is useful for
4890 installing encrypted images whose password shall be set on first boot
4891 instead of at installation time.
4892
4893 * systemd-cryptsetup will now attempt to load the keys to unlock
4894 volumes with automatically from files in
4895 /etc/cryptsetup-keys.d/<volume>.key and
4896 /run/cryptsetup-keys.d/<volume>.key, if any of these files exist.
4897
7f56c26d
ZJS
4898 * systemd-cryptsetup may now activate Microsoft BitLocker volumes via
4899 /etc/crypttab, during boot.
4900
b0d0e0ef
LP
4901 * logind.conf gained a new RuntimeDirectoryInodesMax= setting to
4902 control the inode limit for the per-user $XDG_RUNTIME_DIR tmpfs
4903 instance.
4904
b0d0e0ef 4905 * A new generator systemd-xdg-autostart-generator has been added. It
7f56c26d
ZJS
4906 generates systemd unit files from XDG autostart .desktop files, and
4907 may be used to let the systemd user instance manage services that are
4908 started automatically as part of the desktop session.
47373451 4909
cb713f16
FS
4910 * "bootctl" gained a new verb "reboot-to-firmware" that may be used
4911 to query and change the firmware's 'reboot into firmware' setup flag.
1f19ae0f 4912
7f56c26d
ZJS
4913 * systemd-firstboot gained a new switch --kernel-command-line= that may
4914 be used to initialize the /etc/kernel/cmdline file of the image. It
4915 also gained a new switch --root-password-hashed= which is like
4916 --root-password= but accepts a pre-hashed UNIX password as
4917 argument. The new option --delete-root-password may be used to unset
495454f4
LP
4918 any password for the root user (dangerous!). The --root-shell= switch
4919 may be used to control the shell to use for the root account. A new
4920 --force option may be used to override any already set settings with
4921 the parameters specified on the command line (by default, the tool
4922 will not override what has already been set before, i.e. is purely
4923 incremental).
1f19ae0f 4924
a38c68a1
LP
4925 * systemd-firstboot gained support for a new --image= switch, which is
4926 similar to --root= but accepts the path to a disk image file, on
4927 which it then operates.
4928
7f56c26d
ZJS
4929 * A new sd-path.h API has been added to libsystemd. It provides a
4930 simple API for retrieving various search paths and primary
4931 directories for various resources.
1f19ae0f 4932
7f56c26d
ZJS
4933 * A new call sd_notify_barrier() has been added to the sd-daemon.h
4934 API. The call will block until all previously sent sd_notify()
4935 messages have been processed by the service manager. This is useful
4936 to remove races caused by a process already having disappeared at the
4937 time a notification message is processed by the service manager,
4938 making correct attribution impossible. The systemd-notify tool will
4939 now make use of this call implicitly, but this can be turned off again
4940 via the new --no-block switch.
1f19ae0f 4941
7f56c26d
ZJS
4942 * When sending a file descriptor (fd) to the service manager to keep
4943 track of, using the sd_notify() mechanism, a new parameter FDPOLL=0
4944 may be specified. If passed the service manager will refrain from
4945 poll()ing on the file descriptor. Traditionally (and when the
4946 parameter is not specified), the service manager will poll it for
4947 POLLHUP or POLLERR events, and immediately close the fds in that
4948 case.
1f19ae0f
LP
4949
4950 * The service manager (PID1) gained a new D-Bus method call
4951 SetShowStatus() which may be used to control whether it shall show
4952 boot-time status output on the console. This method has a similar
4953 effect to sending SIGRTMIN+20/SIGRTMIN+21 to PID 1.
4954
7f56c26d
ZJS
4955 * The sd-bus API gained a number of convenience functions that take
4956 va_list arguments rather than "...". For example, there's now
4957 sd_bus_call_methodv() to match sd_bus_call_method(). Those calls make
4958 it easier to build wrappers that accept variadic arguments and want
4959 to pass a ready va_list structure to sd-bus.
1f19ae0f 4960
7f56c26d
ZJS
4961 * sd-bus vtable entries can have a new SD_BUS_VTABLE_ABSOLUTE_OFFSET
4962 flag which alters how the userdata pointer to pass to the callbacks
4963 is determined. When the flag is set, the offset field is converted
4964 as-is into a pointer, without adding it to the object pointer the
4965 vtable is associated with.
1f19ae0f 4966
7f56c26d
ZJS
4967 * sd-bus now exposes four new functions:
4968 sd_bus_interface_name_is_valid() + sd_bus_service_name_is_valid() +
4969 sd_bus_member_name_is_valid() + sd_bus_object_path_is_valid() will
4970 validate strings to check if they qualify as various D-Bus concepts.
1f19ae0f 4971
7f56c26d
ZJS
4972 * The sd-bus API gained the SD_BUS_METHOD_WITH_ARGS(),
4973 SD_BUS_METHOD_WITH_ARGS_OFFSET() and SD_BUS_SIGNAL_WITH_ARGS() macros
4974 that simplify adding argument names to D-Bus methods and signals.
1f19ae0f 4975
7f56c26d 4976 * The man pages for the sd-bus and sd-hwdb APIs have been completed.
1f19ae0f 4977
7f56c26d
ZJS
4978 * Various D-Bus APIs of systemd daemons now have man pages that
4979 document the methods, signals and properties.
1f19ae0f 4980
7f56c26d 4981 * The expectations on user/group name syntax are now documented in
5149990e
CR
4982 detail; documentation on how classic home directories may be
4983 converted into home directories managed by homed has been added;
4984 documentation regarding integration of homed/userdb functionality in
4985 desktops has been added:
7f56c26d
ZJS
4986
4987 https://systemd.io/USER_NAMES
4988 https://systemd.io/CONVERTING_TO_HOMED
4989 https://systemd.io/USERDB_AND_DESKTOPS
4990
4991 * Documentation for the on-disk Journal file format has been updated
4992 and has now moved to:
4993
4994 https://systemd.io/JOURNAL_FILE_FORMAT
4995
5961d35a
ZJS
4996 * The interface for containers (https://systemd.io/CONTAINER_INTERFACE)
4997 has been extended by a set of environment variables that expose
4998 select fields from the host's os-release file to the container
4999 payload. Similarly, host's os-release files can be mounted into the
54971969 5000 container underneath /run/host. Together, those mechanisms provide a
5961d35a
ZJS
5001 standardized way to expose information about the host to the
5002 container payload. Both interfaces are implemented in systemd-nspawn.
5003
7f56c26d
ZJS
5004 * All D-Bus services shipped in systemd now implement the generic
5005 LogControl1 D-Bus API which allows clients to change log level +
5006 target of the service during runtime.
1f19ae0f 5007
337f0b00
ZJS
5008 * Only relevant for developers: the mkosi.default symlink has been
5009 dropped from version control. Please create a symlink to one of the
5010 distribution-specific defaults in .mkosi/ based on your preference.
4c967576 5011
72e51908 5012 Contributions from: 24bisquitz, Adam Nielsen, Alan Perry, Alexander
ae366f3a
ZJS
5013 Malafeev, Amitanand.Chikorde, Alin Popa, Alvin Šipraga, Amos Bird,
5014 Andreas Rammhold, AndreRH, Andrew Doran, Anita Zhang, Ankit Jain,
5015 antznin, Arnaud Ferraris, Arthur Moraes do Lago, Arusekk, Balaji
5016 Punnuru, Balint Reczey, Bastien Nocera, bemarek, Benjamin Berg,
5017 Benjamin Dahlhoff, Benjamin Robin, Chris Down, Chris Kerr, Christian
5018 Göttsche, Christian Hesse, Christian Oder, Ciprian Hacman, Clinton Roy,
5019 codicodi, Corey Hinshaw, Daan De Meyer, Dana Olson, Dan Callaghan,
5020 Daniel Fullmer, Daniel Rusek, Dan Streetman, Dave Reisner, David
5021 Edmundson, David Wood, Denis Pronin, Diego Escalante Urrelo, Dimitri
5022 John Ledkov, dolphrundgren, duguxy, Einsler Lee, Elisei Roca, Emmanuel
5023 Garette, Eric Anderson, Eric DeVolder, Evgeny Vereshchagin,
5024 ExtinctFire, fangxiuning, Ferran Pallarès Roca, Filipe Brandenburger,
5025 Filippo Falezza, Finn, Florian Klink, Florian Mayer, Franck Bui,
5026 Frantisek Sumsal, gaurav, Georg Müller, Gergely Polonkai, Giedrius
5027 Statkevičius, Gigadoc2, gogogogi, Gaurav Singh, gzjsgdsb, Hans de
5028 Goede, Haochen Tong, ianhi, ignapk, Jakov Smolic, James T. Lee, Jan
5029 Janssen, Jan Klötzke, Jan Palus, Jay Burger, Jeremy Cline, Jérémy
5030 Rosen, Jian-Hong Pan, Jiri Slaby, Joel Shapiro, Joerg Behrmann, Jörg
5031 Thalheim, Jouke Witteveen, Kai-Heng Feng, Kenny Levinsen, Kevin
5032 Kuehler, Kumar Kartikeya Dwivedi, layderv, laydervus, Lénaïc Huard,
5033 Lennart Poettering, Lidong Zhong, Luca Boccassi, Luca BRUNO, Lucas
5034 Werkmeister, Lukas Klingsbo, Lukáš Nykrýn, Łukasz Stelmach, Maciej
5035 S. Szmigiero, MadMcCrow, Marc-André Lureau, Marcel Holtmann, Marc
5036 Kleine-Budde, Martin Hundebøll, Matthew Leeds, Matt Ranostay, Maxim
5037 Fomin, MaxVerevkin, Michael Biebl, Michael Chapman, Michael Gubbels,
5038 Michael Marley, Michał Bartoszkiewicz, Michal Koutný, Michal Sekletár,
5039 Mike Gilbert, Mike Kazantsev, Mikhail Novosyolov, ml, Motiejus Jakštys,
5040 nabijaczleweli, nerdopolis, Niccolò Maggioni, Niklas Hambüchen, Norbert
5041 Lange, Paul Cercueil, pelzvieh, Peter Hutterer, Piero La Terza, Pieter
5042 Lexis, Piotr Drąg, Rafael Fontenelle, Richard Petri, Ronan Pigott, Ross
5043 Lagerwall, Rubens Figueiredo, satmandu, Sean-StarLabs, Sebastian
5044 Jennen, sterlinghughes, Surhud More, Susant Sahani, szb512, Thomas
5045 Haller, Tobias Hunger, Tom, Tomáš Pospíšek, Tomer Shechner, Tom Hughes,
5046 Topi Miettinen, Tudor Roman, Uwe Kleine-König, Valery0xff, Vito Caputo,
5047 Vladimir Panteleev, Vladyslav Tronko, Wen Yang, Yegor Vialov, Yigal
5048 Korman, Yi Gao, YmrDtnJu, Yuri Chornoivan, Yu Watanabe, Zbigniew
5049 Jędrzejewski-Szmek, Zhu Li, Дамјан Георгиевски, наб
5050
5051 – Warsaw, 2020-07-30
976efe1b 5052
901d1ce8 5053CHANGES WITH 245:
723822f0 5054
68410195 5055 * A new tool "systemd-repart" has been added, that operates as an
2ad98889
ZJS
5056 idempotent declarative repartitioner for GPT partition tables.
5057 Specifically, a set of partitions that must or may exist can be
5058 configured via drop-in files, and during every boot the partition
5059 table on disk is compared with these files, creating missing
5060 partitions or growing existing ones based on configurable relative
5061 and absolute size constraints. The tool is strictly incremental,
5062 i.e. does not delete, shrink or move partitions, but only adds and
5063 grows them. The primary use-case is OS images that ship in minimized
5064 form, that on first boot are grown to the size of the underlying
5065 block device or augmented with additional partitions. For example,
5066 the root partition could be extended to cover the whole disk, or a
5067 swap or /home partitions could be added on first boot. It can also be
5068 used for systems that use an A/B update scheme but ship images with
5069 just the A partition, with B added on first boot. The tool is
5070 primarily intended to be run in the initrd, shortly before
5071 transitioning into the host OS, but can also be run after the
5072 transition took place. It automatically discovers the disk backing
5073 the root file system, and should hence not require any additional
5074 configuration besides the partition definition drop-ins. If no
5075 configuration drop-ins are present, no action is taken.
68410195
LP
5076
5077 * A new component "userdb" has been added, along with a small daemon
a0223c30 5078 "systemd-userdbd.service" and a client tool "userdbctl". The framework
68410195
LP
5079 allows defining rich user and group records in a JSON format,
5080 extending on the classic "struct passwd" and "struct group"
5081 structures. Various components in systemd have been updated to
5082 process records in this format, including systemd-logind and
5083 pam-systemd. The user records are intended to be extensible, and
5084 allow setting various resource management, security and runtime
5085 parameters that shall be applied to processes and sessions of the
5086 user as they log in. This facility is intended to allow associating
5087 such metadata directly with user/group records so that they can be
5088 produced, extended and consumed in unified form. We hope that
5089 eventually frameworks such as sssd will generate records this way, so
5090 that for the first time resource management and various other
5091 per-user settings can be configured in LDAP directories and then
5092 provided to systemd (specifically to systemd-logind and pam-system)
2ad98889 5093 to apply on login. For further details see:
68410195
LP
5094
5095 https://systemd.io/USER_RECORD
5096 https://systemd.io/GROUP_RECORD
5097 https://systemd.io/USER_GROUP_API
5098
9a4940bf 5099 * A small new service systemd-homed.service has been added, that may be
2ad98889
ZJS
5100 used to securely manage home directories with built-in encryption.
5101 The complete user record data is unified with the home directory,
5102 thus making home directories naturally migratable. Its primary
5103 back-end is based on LUKS volumes, but fscrypt, plain directories,
5104 and other storage schemes are also supported. This solves a couple of
5105 problems we saw with traditional ways to manage home directories, in
5106 particular when it comes to encryption. For further discussion of
5107 this, see the video of Lennart's talk at AllSystemsGo! 2019:
9a4940bf
LP
5108
5109 https://media.ccc.de/v/ASG2019-164-reinventing-home-directories
5110
5111 For further details about the format and expectations on home
5112 directories this new daemon makes, see:
5113
5114 https://systemd.io/HOME_DIRECTORY
5115
5116 * systemd-journald is now multi-instantiable. In addition to the main
5117 instance systemd-journald.service there's now a template unit
2ad98889
ZJS
5118 systemd-journald@.service, with each instance defining a new named
5119 log 'namespace' (whose name is specified via the instance part of the
5120 unit name). A new unit file setting LogNamespace= has been added,
5121 taking such a namespace name, that assigns services to the specified
5122 log namespaces. As each log namespace is serviced by its own
5123 independent journal daemon, this functionality may be used to improve
5124 performance and increase isolation of applications, at the price of
5125 losing global message ordering. Each instance of journald has a
5126 separate set of configuration files, with possibly different disk
5127 usage limitations and other settings.
5128
5129 journalctl now takes a new option --namespace= to show logs from a
5130 specific log namespace. The sd-journal.h API gained
5131 sd_journal_open_namespace() for opening the log stream of a specific
5132 log namespace. systemd-journald also gained the ability to exit on
5133 idle, which is useful in the context of log namespaces, as this means
5134 log daemons for log namespaces can be activated automatically on
5135 demand and will stop automatically when no longer used, minimizing
5136 resource usage.
9a4940bf 5137
723822f0 5138 * When systemd-tmpfiles copies a file tree using the 'C' line type it
2ad98889 5139 will now label every copied file according to the SELinux database.
723822f0
LP
5140
5141 * When systemd/PID 1 detects it is used in the initrd it will now boot
5142 into initrd.target rather than default.target by default. This should
5143 make it simpler to build initrds with systemd as for many cases the
5144 only difference between a host OS image and an initrd image now is
2ad98889 5145 the presence of the /etc/initrd-release file.
723822f0
LP
5146
5147 * A new kernel command line option systemd.cpu_affinity= is now
5148 understood. It's equivalent to the CPUAffinity= option in
5149 /etc/systemd/system.conf and allows setting the CPU mask for PID 1
2ad98889 5150 itself and the default for all other processes.
723822f0 5151
2ad98889
ZJS
5152 * When systemd/PID 1 is reloaded (with systemctl daemon-reload or
5153 equivalent), the SELinux database is now reloaded, ensuring that
723822f0
LP
5154 sockets and other file system objects are generated taking the new
5155 database into account.
5156
d54bb638
ZJS
5157 * systemd/PID 1 accepts a new "systemd.show-status=error" setting, and
5158 "quiet" has been changed to imply that instead of
5159 "systemd.show-status=auto". In this mode, only messages about errors
5160 and significant delays in boot are shown on the console.
5161
2ad98889 5162 * The sd-event.h API gained native support for the new Linux "pidfd"
723822f0
LP
5163 concept. This permits watching processes using file descriptors
5164 instead of PID numbers, which fixes a number of races and makes
2ad98889 5165 process supervision more robust and efficient. All of systemd's
723822f0
LP
5166 components will now use pidfds if the kernel supports it for process
5167 watching, with the exception of PID 1 itself, unfortunately. We hope
5168 to move PID 1 to exclusively using pidfds too eventually, but this
5169 requires some more kernel work first. (Background: PID 1 watches
5170 processes using waitid() with the P_ALL flag, and that does not play
5171 together nicely with pidfds yet.)
5172
5173 * Closely related to this, the sd-event.h API gained two new calls
5174 sd_event_source_send_child_signal() (for sending a signal to a
5175 watched process) and sd_event_source_get_child_process_own() (for
2ad98889
ZJS
5176 marking a process so that it is killed automatically whenever the
5177 event source watching it is freed).
723822f0 5178
60ed2dcf 5179 * systemd-networkd gained support for configuring Token Bucket Filter
2ad98889
ZJS
5180 (TBF) parameters in its qdisc configuration support. Similarly,
5181 support for Stochastic Fairness Queuing (SFQ), Controlled-Delay
69f17347 5182 Active Queue Management (CoDel), and Fair Queue (FQ) has been added.
723822f0
LP
5183
5184 * systemd-networkd gained support for Intermediate Functional Block
5185 (IFB) network devices.
5186
5187 * systemd-networkd gained support for configuring multi-path IP routes,
5188 using the new MultiPathRoute= setting in the [Route] section.
5189
2ad98889
ZJS
5190 * systemd-networkd's DHCPv4 client has been updated to support a new
5191 SendDecline= option. If enabled, duplicate address detection is done
5192 after a DHCP offer is received from the server. If a conflict is
5193 detected, the address is declined. The DHCPv4 client also gained
723822f0
LP
5194 support for a new RouteMTUBytes= setting that allows to configure the
5195 MTU size to be used for routes generated from DHCPv4 leases.
5196
5197 * The PrefixRoute= setting in systemd-networkd's [Address] section of
5198 .network files has been deprecated, and replaced by AddPrefixRoute=,
2ad98889 5199 with its sense inverted.
723822f0
LP
5200
5201 * The Gateway= setting of [Route] sections of .network files gained
427928ca
ZJS
5202 support for a special new value "_dhcp". If set, the configured
5203 static route uses the gateway host configured via DHCP.
723822f0 5204
573e58f6 5205 * New User= and SuppressPrefixLength= settings have been implemented
f05c0615
YW
5206 for the [RoutingPolicyRule] section of .network files to configure
5207 source routing based on UID ranges and prefix length, respectively.
9a4940bf 5208
88b2a950
ZJS
5209 * The Type= match property of .link files has been generalized to
5210 always match the device type shown by 'networkctl status', even for
5211 devices where udev does not set DEVTYPE=. This allows e.g. Type=ether
5212 to be used.
5213
2ad98889
ZJS
5214 * sd-bus gained a new API call sd_bus_message_sensitive() that marks a
5215 D-Bus message object as "sensitive". Those objects are erased from
5216 memory when they are freed. This concept is intended to be used for
5217 messages that contain security sensitive data. A new flag
5218 SD_BUS_VTABLE_SENSITIVE has been introduced as well to mark methods
5219 in sd-bus vtables, causing any incoming and outgoing messages of
5220 those methods to be implicitly marked as "sensitive".
723822f0 5221
9a4940bf 5222 * sd-bus gained a new API call sd_bus_message_dump() for dumping the
2ad98889 5223 contents of a message (or parts thereof) to standard output for
9a4940bf
LP
5224 debugging purposes.
5225
2ad98889
ZJS
5226 * systemd-sysusers gained support for creating users with the primary
5227 group named differently than the user.
9a4940bf 5228
723822f0
LP
5229 * systemd-growfs (i.e. the x-systemd.growfs mount option in /etc/fstab)
5230 gained support for growing XFS partitions. Previously it supported
5231 only ext4 and btrfs partitions.
5232
5233 * The support for /etc/crypttab gained a new x-initrd.attach option. If
2ad98889
ZJS
5234 set, the specified encrypted volume is unlocked already in the
5235 initrd. This concept corresponds to the x-initrd.mount option in
723822f0
LP
5236 /etc/fstab.
5237
5238 * systemd-cryptsetup gained native support for unlocking encrypted
5239 volumes utilizing PKCS#11 smartcards, i.e. for example to bind
2ad98889 5240 encryption of volumes to YubiKeys. This is exposed in the new
723822f0
LP
5241 pkcs11-uri= option in /etc/crypttab.
5242
68410195
LP
5243 * The /etc/fstab support in systemd now supports two new mount options
5244 x-systemd.{required,wanted}-by=, for explicitly configuring the units
5245 that the specified mount shall be pulled in by, in place of
5246 the usual local-fs.target/remote-fs.target.
5247
723822f0
LP
5248 * The https://systemd.io/ web site has been relaunched, directly
5249 populated with most of the documentation included in the systemd
2ad98889
ZJS
5250 repository. systemd also acquired a new logo, thanks to Tobias
5251 Bernard.
723822f0
LP
5252
5253 * systemd-udevd gained support for managing "alternative" network
5254 interface names, as supported by new Linux kernels. For the first
5255 time this permits assigning multiple (and longer!) names to a network
5256 interface. systemd-udevd will now by default assign the names
2ad98889
ZJS
5257 generated via all supported naming schemes to each interface. This
5258 may be further tweaked with .link files and the AlternativeName= and
5259 AlternativeNamesPolicy= settings. Other components of systemd have
5260 been updated to support the new alternative names wherever
5261 appropriate. For example, systemd-nspawn will now generate
5262 alternative interface names for the host-facing side of container
5263 veth links based on the full container name without truncation.
723822f0
LP
5264
5265 * systemd-nspawn interface naming logic has been updated in another way
5266 too: if the main interface name (i.e. as opposed to new-style
2ad98889
ZJS
5267 "alternative" names) based on the container name is truncated, a
5268 simple hashing scheme is used to give different interface names to
5269 multiple containers whose names all begin with the same prefix. Since
5270 this changes the primary interface names pointing to containers if
5271 truncation happens, the old scheme may still be requested by
5272 selecting an older naming scheme, via the net.naming-scheme= kernel
5273 command line option.
723822f0 5274
68410195
LP
5275 * PrivateUsers= in service files now works in services run by the
5276 systemd --user per-user instance of the service manager.
5277
5278 * A new per-service sandboxing option ProtectClock= has been added that
5279 locks down write access to the system clock. It takes away device
2ad98889
ZJS
5280 node access to /dev/rtc as well as the system calls that set the
5281 system clock and the CAP_SYS_TIME and CAP_WAKE_ALARM capabilities.
5282 Note that this option does not affect access to auxiliary services
5283 that allow changing the clock, for example access to
5284 systemd-timedated.
68410195
LP
5285
5286 * The systemd-id128 tool gained a new "show" verb for listing or
5287 resolving a number of well-known UUIDs/128bit IDs, currently mostly
5288 GPT partition table types.
723822f0
LP
5289
5290 * The Discoverable Partitions Specification has been updated to support
5291 /var and /var/tmp partition discovery. Support for this has been
5292 added to systemd-gpt-auto-generator. For details see:
5293
5294 https://systemd.io/DISCOVERABLE_PARTITIONS
5295
5296 * "systemctl list-unit-files" has been updated to show a new column
5297 with the suggested enablement state based on the vendor preset files
5298 for the respective units.
5299
68410195
LP
5300 * "systemctl" gained a new option "--with-dependencies". If specified
5301 commands such as "systemctl status" or "systemctl cat" will now show
5302 all specified units along with all units they depend on.
5303
723822f0
LP
5304 * networkctl gained support for showing per-interface logs in its
5305 "status" output.
5306
a100fe3c 5307 * systemd-networkd-wait-online gained support for specifying the maximum
573e58f6
ZJS
5308 operational state to wait for, and to wait for interfaces to
5309 disappear.
5310
723822f0
LP
5311 * The [Match] section of .link and .network files now supports a new
5312 option PermanentMACAddress= which may be used to check against the
5313 permanent MAC address of a network device even if a randomized MAC
5314 address is used.
5315
69f17347
ZJS
5316 * The [TrafficControlQueueingDiscipline] section in .network files has
5317 been renamed to [NetworkEmulator] with the "NetworkEmulator" prefix
5318 dropped from the individual setting names.
68410195 5319
823b0352
ZJS
5320 * Any .link and .network files that have an empty [Match] section (this
5321 also includes empty and commented-out files) will now be
5322 rejected. systemd-udev and systemd-networkd started warning about
5323 such files in version 243.
5324
2ad98889 5325 * systemd-logind will now validate access to the operation of changing
98ab0dae 5326 the virtual terminal via a polkit action. By default, only users
2ad98889 5327 with at least one session on a local VT are granted permission.
68410195 5328
2ad98889
ZJS
5329 * When systemd sets up PAM sessions that invoked service processes
5330 shall run in, the pam_setcred() API is now invoked, thus permitting
5331 PAM modules to set additional credentials for the processes.
68410195 5332
d54bb638
ZJS
5333 * portablectl attach/detach verbs now accept --now and --enable options
5334 to combine attachment with enablement and invocation, or detachment
5335 with stopping and disablement.
5336
2ca17c78
ZJS
5337 * UPGRADE ISSUE: a bug where some jobs were trimmed as redundant was
5338 fixed, which in turn exposed bugs in unit configuration of services
5339 which have Type=oneshot and should only run once, but do not have
5340 RemainAfterExit=yes set. Without RemainAfterExit=yes, a one-shot
5341 service may be started again after exiting successfully, for example
5342 as a dependency in another transaction. Affected services included
5343 some internal systemd services (most notably
5344 systemd-vconsole-setup.service, which was updated to have
5345 RemainAfterExit=yes), and plymouth-start.service. Please ensure that
5346 plymouth has been suitably updated or patched before upgrading to
5347 this systemd release. See
5348 https://bugzilla.redhat.com/show_bug.cgi?id=1807771 for some
5349 additional discussion.
5350
9c4d3d79
ZJS
5351 Contributions from: AJ Bagwell, Alin Popa, Andreas Rammhold, Anita
5352 Zhang, Ansgar Burchardt, Antonio Russo, Arian van Putten, Ashley Davis,
5353 Balint Reczey, Bart Willems, Bastien Nocera, Benjamin Dahlhoff, Charles
5354 (Chas) Williams, cheese1, Chris Down, Chris Murphy, Christian Ehrhardt,
5355 Christian Göttsche, cvoinf, Daan De Meyer, Daniele Medri, Daniel Rusek,
5356 Daniel Shahaf, Dann Frazier, Dan Streetman, Dariusz Gadomski, David
5357 Michael, Dimitri John Ledkov, Emmanuel Bourg, Evgeny Vereshchagin,
5358 ezst036, Felipe Sateler, Filipe Brandenburger, Florian Klink, Franck
5359 Bui, Fran Dieguez, Frantisek Sumsal, Greg "GothAck" Miell, Guilhem
5360 Lettron, Guillaume Douézan-Grard, Hans de Goede, HATAYAMA Daisuke, Iain
5361 Lane, James Buren, Jan Alexander Steffens (heftig), Jérémy Rosen, Jin
5362 Park, Jun'ichi Nomura, Kai Krakow, Kevin Kuehler, Kevin P. Fleming,
5363 Lennart Poettering, Leonid Bloch, Leonid Evdokimov, lothrond, Luca
5364 Boccassi, Lukas K, Lynn Kirby, Mario Limonciello, Mark Deneen, Matthew
5365 Leeds, Michael Biebl, Michal Koutný, Michal Sekletár, Mike Auty, Mike
5366 Gilbert, mtron, nabijaczleweli, Naïm Favier, Nate Jones, Norbert Lange,
5367 Oliver Giles, Paul Davey, Paul Menzel, Peter Hutterer, Piotr Drąg, Rafa
5368 Couto, Raphael, rhn, Robert Scheck, Rocka, Romain Naour, Ryan Attard,
5369 Sascha Dewald, Shengjing Zhu, Slava Kardakov, Spencer Michaels, Sylvain
5370 Plantefeve, Stanislav Angelovič, Susant Sahani, Thomas Haller, Thomas
5371 Schmitt, Timo Schlüßler, Timo Wilken, Tobias Bernard, Tobias Klauser,
5372 Tobias Stoeckmann, Topi Miettinen, tsia, WataruMatsuoka, Wieland
5373 Hoffmann, Wilhelm Schuster, Will Fleming, xduugu, Yong Cong Sin, Yuri
5374 Chornoivan, Yu Watanabe, Zach Smith, Zbigniew Jędrzejewski-Szmek, Zeyu
5375 DONG
901d1ce8 5376
03985d06 5377 – Warsaw, 2020-03-06
723822f0 5378
bdf2357c 5379CHANGES WITH 244:
ee50dada
ZJS
5380
5381 * Support for the cpuset cgroups v2 controller has been added.
5382 Processes may be restricted to specific CPUs using the new
5383 AllowedCPUs= setting, and to specific memory NUMA nodes using the new
5384 AllowedMemoryNodes= setting.
5385
5386 * The signal used in restart jobs (as opposed to e.g. stop jobs) may
1e904320 5387 now be configured using a new RestartKillSignal= setting. This
ee50dada
ZJS
5388 allows units which signals to request termination to implement
5389 different behaviour when stopping in preparation for a restart.
5390
5391 * "systemctl clean" may now be used also for socket, mount, and swap
5392 units.
5393
5394 * systemd will also read configuration options from the EFI variable
5395 SystemdOptions. This may be used to configure systemd behaviour when
5396 modifying the kernel command line is inconvenient, but configuration
5397 on disk is read too late, for example for the options related to
2536752d 5398 cgroup hierarchy setup. 'bootctl systemd-efi-options' may be used to
ee50dada
ZJS
5399 set the EFI variable.
5400
5401 * systemd will now disable printk ratelimits in early boot. This should
5402 allow us to capture more logs from the early boot phase where normal
5403 storage is not available and the kernel ring buffer is used for
5404 logging. Configuration on the kernel command line has higher priority
5405 and overrides the systemd setting.
5406
5407 systemd programs which log to /dev/kmsg directly use internal
5408 ratelimits to prevent runaway logging. (Normally this is only used
5409 during early boot, so in practice this change has very little
5410 effect.)
5411
3e1db806
AZ
5412 * Unit files now support top level dropin directories of the form
5413 <unit_type>.d/ (e.g. service.d/) that may be used to add configuration
5414 that affects all corresponding unit files.
ee50dada 5415
852b7272
ZJS
5416 * systemctl gained support for 'stop --job-mode=triggering' which will
5417 stop the specified unit and any units which could trigger it.
5418
5419 * Unit status display now includes units triggering and triggered by
5420 the unit being shown.
5421
ee50dada
ZJS
5422 * The RuntimeMaxSec= setting is now supported by scopes, not just
5423 .service units. This is particularly useful for PAM sessions which
5424 create a scope unit for the user login. systemd.runtime_max_sec=
5425 setting may used with the pam_systemd module to limit the duration
5426 of the PAM session, for example for time-limited logins.
5427
852b7272 5428 * A new @pkey system call group is now defined to make it easier to
6b000af4 5429 allow-list memory protection syscalls for containers and services
852b7272
ZJS
5430 which need to use them.
5431
5432 * systemd-udevd: removed the 30s timeout for killing stale workers on
5433 exit. systemd-udevd now waits for workers to finish. The hard-coded
5434 exit timeout of 30s was too short for some large installations, where
5435 driver initialization could be prematurely interrupted during initrd
5436 processing if the root file system had been mounted and init was
5437 preparing to switch root. If udevd is run without systemd and workers
5438 are hanging while udevd receives an exit signal, udevd will now exit
5439 when udev.event_timeout is reached for the last hanging worker. With
5440 systemd, the exit timeout can additionally be configured using
5441 TimeoutStopSec= in systemd-udevd.service.
5442
ee50dada
ZJS
5443 * udev now provides a program (fido_id) that identifies FIDO CTAP1
5444 ("U2F")/CTAP2 security tokens based on the usage declared in their
5445 report and descriptor and outputs suitable environment variables.
6b000af4 5446 This replaces the externally maintained allow lists of all known
ee50dada
ZJS
5447 security tokens that were used previously.
5448
6b000af4 5449 * Automatically generated autosuspend udev rules for allow-listed
ee50dada 5450 devices have been imported from the Chromium OS project. This should
b7db8b7b 5451 improve power saving with many more devices.
ee50dada
ZJS
5452
5453 * udev gained a new "CONST{key}=value" setting that allows matching
5454 against system-wide constants without forking a helper binary.
5455 Currently "arch" and "virt" keys are supported.
5456
5457 * udev now opens CDROMs in non-exclusive mode when querying their
5458 capabilities. This should fix issues where other programs trying to
5459 use the CDROM cannot gain access to it, but carries a risk of
5460 interfering with programs writing to the disk, if they did not open
5461 the device in exclusive mode as they should.
5462
5463 * systemd-networkd does not create a default route for IPv4 link local
5464 addressing anymore. The creation of the route was unexpected and was
5465 breaking routing in various cases, but people who rely on it being
5466 created implicitly will need to adjust. Such a route may be requested
5467 with DefaultRouteOnDevice=yes.
5468
5469 Similarly, systemd-networkd will not assign a link-local IPv6 address
5470 when IPv6 link-local routing is not enabled.
5471
5472 * Receive and transmit buffers may now be configured on links with
5473 the new RxBufferSize= and TxBufferSize= settings.
5474
5475 * systemd-networkd may now advertise additional IPv6 routes. A new
5476 [IPv6RoutePrefix] section with Route= and LifetimeSec= options is
5477 now supported.
5478
5479 * systemd-networkd may now configure "next hop" routes using the
5480 [NextHop] section and Gateway= and Id= settings.
5481
5482 * systemd-networkd will now retain DHCP config on restarts by default
5483 (but this may be overridden using the KeepConfiguration= setting).
5484 The default for SendRelease= has been changed to true.
5485
5486 * The DHCPv4 client now uses the OPTION_INFORMATION_REFRESH_TIME option
5487 received from the server.
5488
5489 The client will use the received SIP server list if UseSIP=yes is
5490 set.
5491
5492 The client may be configured to request specific options from the
5493 server using a new RequestOptions= setting.
5494
852b7272
ZJS
5495 The client may be configured to send arbitrary options to the server
5496 using a new SendOption= setting.
5497
ee50dada
ZJS
5498 A new IPServiceType= setting has been added to configure the "IP
5499 service type" value used by the client.
5500
5501 * The DHCPv6 client learnt a new PrefixDelegationHint= option to
5502 request prefix hints in the DHCPv6 solicitation.
5503
852b7272 5504 * The DHCPv4 server may be configured to send arbitrary options using
88b86003 5505 a new SendOption= setting.
852b7272
ZJS
5506
5507 * The DHCPv4 server may now be configured to emit SIP server list using
5508 the new EmitSIP= and SIP= settings.
5509
ee50dada
ZJS
5510 * systemd-networkd and networkctl may now renew DHCP leases on demand.
5511 networkctl has a new 'networkctl renew' verb.
5512
5513 * systemd-networkd may now reconfigure links on demand. networkctl
5514 gained two new verbs: "reload" will reload the configuration, and
5515 "reconfigure DEVICE…" will reconfigure one or more devices.
5516
5517 * .network files may now match on SSID and BSSID of a wireless network,
5518 i.e. the access point name and hardware address using the new SSID=
5519 and BSSID= options. networkctl will display the current SSID and
5520 BSSID for wireless links.
5521
5522 .network files may also match on the wireless network type using the
f36e6a4a 5523 new WLANInterfaceType= option.
ee50dada
ZJS
5524
5525 * systemd-networkd now includes default configuration that enables
5526 link-local addressing when connected to an ad-hoc wireless network.
5527
ee50dada
ZJS
5528 * systemd-networkd may configure the Traffic Control queueing
5529 disciplines in the kernel using the new
5530 [TrafficControlQueueingDiscipline] section and Parent=,
5531 NetworkEmulatorDelaySec=, NetworkEmulatorDelayJitterSec=,
6878c022
YW
5532 NetworkEmulatorPacketLimit=, NetworkEmulatorLossRate=,
5533 NetworkEmulatorDuplicateRate= settings.
ee50dada
ZJS
5534
5535 * systemd-tmpfiles gained a new w+ setting to append to files.
5536
5537 * systemd-analyze dump will now report when the memory configuration in
5538 the kernel does not match what systemd has configured (usually,
5539 because some external program has modified the kernel configuration
5540 on its own).
5541
852b7272
ZJS
5542 * systemd-analyze gained a new --base-time= switch instructs the
5543 'calendar' verb to resolve times relative to that timestamp instead
5544 of the present time.
5545
ee50dada
ZJS
5546 * journalctl --update-catalog now produces deterministic output (making
5547 reproducible image builds easier).
5548
5549 * A new devicetree-overlay setting is now documented in the Boot Loader
5550 Specification.
5551
5552 * The default value of the WatchdogSec= setting used in systemd
5553 services (the ones bundled with the project itself) may be set at
5554 configuration time using the -Dservice-watchdog= setting. If set to
5555 empty, the watchdogs will be disabled.
5556
0e4daba1
MK
5557 * systemd-resolved validates IP addresses in certificates now when GnuTLS
5558 is being used.
597f905c 5559
852b7272
ZJS
5560 * libcryptsetup >= 2.0.1 is now required.
5561
5562 * A configuration option -Duser-path= may be used to override the $PATH
5563 used by the user service manager. The default is again to use the same
5564 path as the system manager.
5565
168e131b
LP
5566 * The systemd-id128 tool gained a new switch "-u" (or "--uuid") for
5567 outputting the 128bit IDs in UUID format (i.e. in the "canonical
5568 representation").
5569
5570 * Service units gained a new sandboxing option ProtectKernelLogs= which
5571 makes sure the program cannot get direct access to the kernel log
5572 buffer anymore, i.e. the syslog() system call (not to be confused
5573 with the API of the same name in libc, which is not affected), the
5574 /proc/kmsg and /dev/kmsg nodes and the CAP_SYSLOG capability are made
5575 inaccessible to the service. It's recommended to enable this setting
5576 for all services that should not be able to read from or write to the
5577 kernel log buffer, which are probably almost all.
5578
bdf2357c 5579 Contributions from: Aaron Plattner, Alcaro, Anita Zhang, Balint Reczey,
8bf2a311
LP
5580 Bastien Nocera, Baybal Ni, Benjamin Bouvier, Benjamin Gilbert, Carlo
5581 Teubner, cbzxt, Chen Qi, Chris Down, Christian Rebischke, Claudio
5582 Zumbo, ClydeByrdIII, crashfistfight, Cyprien Laplace, Daniel Edgecumbe,
5583 Daniel Gorbea, Daniel Rusek, Daniel Stuart, Dan Streetman, David
5584 Pedersen, David Tardon, Dimitri John Ledkov, Dominique Martinet, Donald
5585 A. Cupp Jr, Evgeny Vereshchagin, Fabian Henneke, Filipe Brandenburger,
5586 Franck Bui, Frantisek Sumsal, Georg Müller, Hans de Goede, Haochen
5587 Tong, HATAYAMA Daisuke, Iwan Timmer, Jan Janssen, Jan Kundrát, Jan
5588 Synacek, Jan Tojnar, Jay Strict, Jérémy Rosen, Jóhann B. Guðmundsson,
5589 Jonas Jelten, Jonas Thelemann, Justin Trudell, J. Xing, Kai-Heng Feng,
5590 Kenneth D'souza, Kevin Becker, Kevin Kuehler, Lennart Poettering,
5591 Léonard Gérard, Lorenz Bauer, Luca Boccassi, Maciej Stanczew, Mario
5592 Limonciello, Marko Myllynen, Mark Stosberg, Martin Wilck, matthiasroos,
5593 Michael Biebl, Michael Olbrich, Michael Tretter, Michal Sekletar,
5594 Michal Sekletár, Michal Suchanek, Mike Gilbert, Mike Kazantsev, Nicolas
5595 Douma, nikolas, Norbert Lange, pan93412, Pascal de Bruijn, Paul Menzel,
5596 Pavel Hrdina, Peter Wu, Philip Withnall, Piotr Drąg, Rafael Fontenelle,
5597 Renaud Métrich, Riccardo Schirone, RoadrunnerWMC, Ronan Pigott, Ryan
5598 Attard, Sebastian Wick, Serge, Siddharth Chandrasekara, Steve Ramage,
5599 Steve Traylen, Susant Sahani, Thibault Nélis, Tim Teichmann, Tom
5600 Fitzhenry, Tommy J, Torsten Hilbrich, Vito Caputo, ypf791, Yu Watanabe,
5601 Zach Smith, Zbigniew Jędrzejewski-Szmek
5602
5603 – Warsaw, 2019-11-29
bdf2357c 5604
efb536d0 5605CHANGES WITH 243:
6af90583 5606
0338934f
LP
5607 * This release enables unprivileged programs (i.e. requiring neither
5608 setuid nor file capabilities) to send ICMP Echo (i.e. ping) requests
08b59539 5609 by turning on the "net.ipv4.ping_group_range" sysctl of the Linux
0338934f
LP
5610 kernel for the whole UNIX group range, i.e. all processes. This
5611 change should be reasonably safe, as the kernel support for it was
5612 specifically implemented to allow safe access to ICMP Echo for
5613 processes lacking any privileges. If this is not desirable, it can be
5614 disabled again by setting the parameter to "1 0".
5615
4cd82631 5616 * Previously, filters defined with SystemCallFilter= would have the
08b59539
CR
5617 effect that any calling of an offending system call would terminate
5618 the calling thread. This behaviour never made much sense, since
5619 killing individual threads of unsuspecting processes is likely to
5620 create more problems than it solves. With this release the default
5621 action changed from killing the thread to killing the whole
5622 process. For this to work correctly both a kernel version (>= 4.14)
5623 and a libseccomp version (>= 2.4.0) supporting this new seccomp
5624 action is required. If an older kernel or libseccomp is used the old
5625 behaviour continues to be used. This change does not affect any
5626 services that have no system call filters defined, or that use
5627 SystemCallErrorNumber= (and thus see EPERM or another error instead
5628 of being killed when calling an offending system call). Note that
5629 systemd documentation always claimed that the whole process is
5630 killed. With this change behaviour is thus adjusted to match the
5631 documentation.
4cd82631 5632
4860f5c2
ZJS
5633 * On 64 bit systems, the "kernel.pid_max" sysctl is now bumped to
5634 4194304 by default, i.e. the full 22bit range the kernel allows, up
5635 from the old 16bit range. This should improve security and
5636 robustness, as PID collisions are made less likely (though certainly
5637 still possible). There are rumours this might create compatibility
6af90583
LP
5638 problems, though at this moment no practical ones are known to
5639 us. Downstream distributions are hence advised to undo this change in
5640 their builds if they are concerned about maximum compatibility, but
5641 for everybody else we recommend leaving the value bumped. Besides
5642 improving security and robustness this should also simplify things as
5643 the maximum number of allowed concurrent tasks was previously bounded
4860f5c2
ZJS
5644 by both "kernel.pid_max" and "kernel.threads-max" and now effectively
5645 only a single knob is left ("kernel.threads-max"). There have been
5646 concerns that usability is affected by this change because larger PID
5647 numbers are harder to type, but we believe the change from 5 digits
5648 to 7 digits doesn't hamper usability.
6af90583 5649
2875a36b
LP
5650 * MemoryLow= and MemoryMin= gained hierarchy-aware counterparts,
5651 DefaultMemoryLow= and DefaultMemoryMin=, which can be used to
acdb4b52
CD
5652 hierarchically set default memory protection values for a particular
5653 subtree of the unit hierarchy.
5654
22bf131b
CD
5655 * Memory protection directives can now take a value of zero, allowing
5656 explicit opting out of a default value propagated by an ancestor.
5657
87cf1f8f
LP
5658 * systemd now defaults to the "unified" cgroup hierarchy setup during
5659 build-time, i.e. -Ddefault-hierarchy=unified is now the build-time
5660 default. Previously, -Ddefault-hierarchy=hybrid was the default. This
5661 change reflects the fact that cgroupsv2 support has matured
5662 substantially in both systemd and in the kernel, and is clearly the
5663 way forward. Downstream production distributions might want to
5664 continue to use -Ddefault-hierarchy=hybrid (or even =legacy) for
5665 their builds as unfortunately the popular container managers have not
5666 caught up with the kernel API changes.
5667
51b568f7
ZJS
5668 * Man pages are not built by default anymore (html pages were already
5669 disabled by default), to make development builds quicker. When
5670 building systemd for a full installation with documentation, meson
4860f5c2
ZJS
5671 should be called with -Dman=true and/or -Dhtml=true as appropriate.
5672 The default was changed based on the assumption that quick one-off or
5673 repeated development builds are much more common than full optimized
5674 builds for installation, and people need to pass various other
5675 options to when doing "proper" builds anyway, so the gain from making
5676 development builds quicker is bigger than the one time disruption for
5677 packagers.
51b568f7
ZJS
5678
5679 Two scripts are created in the *build* directory to generate and
5680 preview man and html pages on demand, e.g.:
5681
5682 build/man/man systemctl
5683 build/man/html systemd.index
5684
e110599b 5685 * libidn2 is used by default if both libidn2 and libidn are installed.
4860f5c2 5686 Please use -Dlibidn=true if libidn is preferred.
e110599b 5687
2875a36b 5688 * The D-Bus "wire format" of the CPUAffinity= attribute is changed on
9120e2bf
ZJS
5689 big-endian machines. Before, bytes were written and read in native
5690 machine order as exposed by the native libc __cpu_mask interface.
5691 Now, little-endian order is always used (CPUs 0–7 are described by
5692 bits 0–7 in byte 0, CPUs 8–15 are described by byte 1, and so on).
5693 This change fixes D-Bus calls that cross endianness boundary.
5694
2875a36b
LP
5695 The presentation format used for CPUAffinity= by "systemctl show" and
5696 "systemd-analyze dump" is changed to present CPU indices instead of
5697 the raw __cpu_mask bitmask. For example, CPUAffinity=0-1 would be
5698 shown as CPUAffinity=03000000000000000000000000000… (on
5699 little-endian) or CPUAffinity=00000000000000300000000000000… (on
5700 64-bit big-endian), and is now shown as CPUAffinity=0-1, matching the
5701 input format. The maximum integer that will be printed in the new
5702 format is 8191 (four digits), while the old format always used a very
5703 long number (with the length varying by architecture), so they can be
5704 unambiguously distinguished.
9120e2bf 5705
51b568f7
ZJS
5706 * /usr/sbin/halt.local is no longer supported. Implementation in
5707 distributions was inconsistent and it seems this functionality was
5708 very rarely used.
5709
5710 To replace this functionality, users should:
5711 - either define a new unit and make it a dependency of final.target
5712 (systemctl add-wants final.target my-halt-local.service)
5713 - or move the shutdown script to /usr/lib/systemd/system-shutdown/
5714 and ensure that it accepts "halt", "poweroff", "reboot", and
5715 "kexec" as an argument, see the description in systemd-shutdown(8).
5716
5717 * When a [Match] section in .link or .network file is empty (contains
5718 no match patterns), a warning will be emitted. Please add any "match
9120e2bf 5719 all" pattern instead, e.g. OriginalName=* or Name=* in case all
51b568f7
ZJS
5720 interfaces should really be matched.
5721
b070c7c0 5722 * A new setting NUMAPolicy= may be used to set process memory
08b59539
CR
5723 allocation policy. This setting can be specified in
5724 /etc/systemd/system.conf and hence will set the default policy for
5725 PID1. The default policy can be overridden on a per-service
5726 basis. The related setting NUMAMask= is used to specify NUMA node
5727 mask that should be associated with the selected policy.
2875a36b
LP
5728
5729 * PID 1 will now listen to Out-Of-Memory (OOM) events the kernel
eebaa724 5730 generates when processes it manages are reaching their memory limits,
2875a36b
LP
5731 and will place their units in a special state, and optionally kill or
5732 stop the whole unit.
5733
5734 * The service manager will now expose bus properties for the IO
5735 resources used by units. This information is also shown in "systemctl
5736 status" now (for services that have IOAccounting=yes set). Moreover,
5737 the IO accounting data is included in the resource log message
5738 generated whenever a unit stops.
5739
201632e3 5740 * Units may now configure an explicit timeout to wait for when killed
2875a36b 5741 with SIGABRT, for example when a service watchdog is hit. Previously,
201632e3
ZJS
5742 the regular TimeoutStopSec= timeout was applied in this case too —
5743 now a separate timeout may be set using TimeoutAbortSec=.
2875a36b
LP
5744
5745 * Services may now send a special WATCHDOG=trigger message with
5746 sd_notify() to trigger an immediate "watchdog missed" event, and thus
4860f5c2 5747 trigger service termination. This is useful both for testing watchdog
2875a36b
LP
5748 handling, but also for defining error paths in services, that shall
5749 be handled the same way as watchdog events.
5750
5751 * There are two new per-unit settings IPIngressFilterPath= and
5752 IPEgressFilterPath= which allow configuration of a BPF program
5753 (usually by specifying a path to a program uploaded to /sys/fs/bpf/)
5754 to apply to the IP packet ingress/egress path of all processes of a
5755 unit. This is useful to allow running systemd services with BPF
5756 programs set up externally.
5757
5758 * systemctl gained a new "clean" verb for removing the state, cache,
5759 runtime or logs directories of a service while it is terminated. The
5760 new verb may also be used to remove the state maintained on disk for
5761 timer units that have Persistent= configured.
5762
5763 * During the last phase of shutdown systemd will now automatically
5764 increase the log level configured in the "kernel.printk" sysctl so
5765 that any relevant loggable events happening during late shutdown are
5766 made visible. Previously, loggable events happening so late during
5767 shutdown were generally lost if the "kernel.printk" sysctl was set to
5768 high thresholds, as regular logging daemons are terminated at that
5769 time and thus nothing is written to disk.
5770
5771 * If processes terminated during the last phase of shutdown do not exit
5772 quickly systemd will now show their names after a short time, to make
201632e3 5773 debugging easier. After a longer timeout they are forcibly killed,
2875a36b
LP
5774 as before.
5775
5776 * journalctl (and the other tools that display logs) will now highlight
5777 warnings in yellow (previously, both LOG_NOTICE and LOG_WARNING where
5778 shown in bright bold, now only LOG_NOTICE is). Moreover, audit logs
5779 are now shown in blue color, to separate them visually from regular
5780 logs. References to configuration files are now turned into clickable
5781 links on terminals that support that.
5782
5783 * systemd-journald will now stop logging to /var/log/journal during
5784 shutdown when /var/ is on a separate mount, so that it can be
5785 unmounted safely during shutdown.
5786
5787 * systemd-resolved gained support for a new 'strict' DNS-over-TLS mode.
5788
29db4c3a
LP
5789 * systemd-resolved "Cache=" configuration option in resolved.conf has
5790 been extended to also accept the 'no-negative' value. Previously,
5791 only a boolean option was allowed (yes/no), having yes as the
4860f5c2
ZJS
5792 default. If this option is set to 'no-negative', negative answers are
5793 not cached while the old cache heuristics are used positive answers.
5794 The default remains unchanged.
37d7a7d9 5795
2875a36b
LP
5796 * The predictable naming scheme for network devices now supports
5797 generating predictable names for "netdevsim" devices.
5798
4860f5c2
ZJS
5799 Moreover, the "en" prefix was dropped from the ID_NET_NAME_ONBOARD
5800 udev property.
5801
5802 Those two changes form a new net.naming-policy-scheme= entry.
5803 Distributions which want to preserve naming stability may want to set
5804 the -Ddefault-net-naming-scheme= configuration option.
5805
2875a36b
LP
5806 * systemd-networkd now supports MACsec, nlmon, IPVTAP and Xfrm
5807 interfaces natively.
5808
5809 * systemd-networkd's bridge FDB support now allows configuration of a
5810 destination address for each entry (Destination=), as well as the
5811 VXLAN VNI (VNI=), as well as an option to declare what an entry is
5812 associated with (AssociatedWith=).
5813
5814 * systemd-networkd's DHCPv4 support now understands a new MaxAttempts=
08b59539 5815 option for configuring the maximum number of DHCP lease requests. It
6b000af4 5816 also learnt a new BlackList= option for deny-listing DHCP servers (a
08b59539
CR
5817 similar setting has also been added to the IPv6 RA client), as well
5818 as a SendRelease= option for configuring whether to send a DHCP
5819 RELEASE message when terminating.
2875a36b
LP
5820
5821 * systemd-networkd's DHCPv4 and DHCPv6 stacks can now be configured
29db4c3a
LP
5822 separately in the [DHCPv4] and [DHCPv6] sections.
5823
5824 * systemd-networkd's DHCP support will now optionally create an
5825 implicit host route to the DNS server specified in the DHCP lease, in
5826 addition to the routes listed explicitly in the lease. This should
5827 ensure that in multi-homed systems DNS traffic leaves the systems on
5828 the interface that acquired the DNS server information even if other
5829 routes such as default routes exist. This behaviour may be turned on
5830 with the new RoutesToDNS= option.
2875a36b
LP
5831
5832 * systemd-networkd's VXLAN support gained a new option
eebaa724 5833 GenericProtocolExtension= for enabling VXLAN Generic Protocol
2875a36b
LP
5834 Extension support, as well as IPDoNotFragment= for setting the IP
5835 "Don't fragment" bit on outgoing packets. A similar option has been
5836 added to the GENEVE support.
5837
5838 * In systemd-networkd's [Route] section you may now configure
5839 FastOpenNoCookie= for configuring per-route TCP fast-open support, as
5840 well as TTLPropagate= for configuring Label Switched Path (LSP) TTL
5841 propagation. The Type= setting now supports local, broadcast,
5842 anycast, multicast, any, xresolve routes, too.
5843
5844 * systemd-networkd's [Network] section learnt a new option
5845 DefaultRouteOnDevice= for automatically configuring a default route
5846 onto the network device.
5847
5848 * systemd-networkd's bridging support gained two new options ProxyARP=
5849 and ProxyARPWifi= for configuring proxy ARP behaviour as well as
9f0d45e4
YW
5850 MulticastRouter= for configuring multicast routing behaviour. A new
5851 option MulticastIGMPVersion= may be used to change bridge's multicast
5852 Internet Group Management Protocol (IGMP) version.
2875a36b
LP
5853
5854 * systemd-networkd's FooOverUDP support gained the ability to configure
5855 local and peer IP addresses via Local= and Peer=. A new option
5856 PeerPort= may be used to configure the peer's IP port.
5857
5858 * systemd-networkd's TUN support gained a new setting VnetHeader= for
5859 tweaking Generic Segment Offload support.
5860
70fcda85
ZJS
5861 * The address family for policy rules may be specified using the new
5862 Family= option in the [RoutingPolicyRule] section.
5863
2875a36b
LP
5864 * networkctl gained a new "delete" command for removing virtual network
5865 devices, as well as a new "--stats" switch for showing device
5866 statistics.
5867
13cb62af
YW
5868 * networkd.conf gained a new setting SpeedMeter= and
5869 SpeedMeterIntervalSec=, to measure bitrate of network interfaces. The
5870 measured speed may be shown by 'networkctl status'.
5871
4860f5c2
ZJS
5872 * "networkctl status" now displays MTU and queue lengths, and more
5873 detailed information about VXLAN and bridge devices.
5874
2875a36b
LP
5875 * systemd-networkd's .network and .link files gained a new Property=
5876 setting in the [Match] section, to match against devices with
5877 specific udev properties.
5878
5879 * systemd-networkd's tunnel support gained a new option
5880 AssignToLoopback= for selecting whether to use the loopback device
5881 "lo" as underlying device.
5882
70183735 5883 * systemd-networkd's MACAddress= setting in the [Neighbor] section has
2875a36b
LP
5884 been renamed to LinkLayerAddress=, and it now allows configuration of
5885 IP addresses, too.
5886
efb536d0
ZJS
5887 * systemd-networkd's handling of the kernel's disable_ipv6 sysctl is
5888 simplified: systemd-networkd will disable the sysctl (enable IPv6) if
5889 IPv6 configuration (static or DHCPv6) was found for a given
5890 interface. It will not touch the sysctl otherwise.
5891
5892 * The order of entries is $PATH used by the user manager instance was
5893 changed to put bin/ entries before the corresponding sbin/ entries.
5894 It is recommended to not rely on this order, and only ever have one
5895 binary with a given name in the system paths under /usr.
5896
29db4c3a
LP
5897 * A new tool systemd-network-generator has been added that may generate
5898 .network, .netdev and .link files from IP configuration specified on
4860f5c2 5899 the kernel command line in the format used by Dracut.
29db4c3a 5900
2875a36b
LP
5901 * The CriticalConnection= setting in .network files is now deprecated,
5902 and replaced by a new KeepConfiguration= setting which allows more
5903 detailed configuration of the IP configuration to keep in place.
5904
4860f5c2
ZJS
5905 * systemd-analyze gained a few new verbs:
5906
5907 - "systemd-analyze timestamp" parses and converts timestamps. This is
5908 similar to the existing "systemd-analyze calendar" command which
5909 does the same for recurring calendar events.
5910
5911 - "systemd-analyze timespan" parses and converts timespans (i.e.
5912 durations as opposed to points in time).
5913
5914 - "systemd-analyze condition" will parse and test ConditionXYZ=
5915 expressions.
5916
5917 - "systemd-analyze exit-status" will parse and convert exit status
5918 codes to their names and back.
5919
5920 - "systemd-analyze unit-files" will print a list of all unit
5921 file paths and unit aliases.
5922
5923 * SuccessExitStatus=, RestartPreventExitStatus=, and
5924 RestartForceExitStatus= now accept exit status names (e.g. "DATAERR"
5925 is equivalent to "65"). Those exit status name mappings may be
cc560ac0 5926 displayed with the systemd-analyze exit-status verb describe above.
2875a36b
LP
5927
5928 * systemd-logind now exposes a per-session SetBrightness() bus call,
5929 which may be used to securely change the brightness of a kernel
5930 brightness device, if it belongs to the session's seat. By using this
5931 call unprivileged clients can make changes to "backlight" and "leds"
4860f5c2
ZJS
5932 devices securely with strict requirements on session membership.
5933 Desktop environments may use this to generically make brightness
5934 changes to such devices without shipping private SUID binaries or
5935 udev rules for that purpose.
2875a36b
LP
5936
5937 * "udevadm info" gained a --wait-for-initialization switch to wait for
5938 a device to be initialized.
5939
5940 * systemd-hibernate-resume-generator will now look for resumeflags= on
5941 the kernel command line, which is similar to rootflags= and may be
4860f5c2 5942 used to configure device timeout for the hibernation device.
2875a36b
LP
5943
5944 * sd-event learnt a new API call sd_event_source_disable_unref() for
5945 disabling and unref'ing an event source in a single function. A
5946 related call sd_event_source_disable_unrefp() has been added for use
4860f5c2 5947 with gcc's cleanup extension.
2875a36b
LP
5948
5949 * The sd-id128.h public API gained a new definition
5950 SD_ID128_UUID_FORMAT_STR for formatting a 128bit ID in UUID format
5951 with printf().
5952
5953 * "busctl introspect" gained a new switch --xml-interface for dumping
5954 XML introspection data unmodified.
5955
5956 * PID 1 may now show the unit name instead of the unit description
5957 string in its status output during boot. This may be configured in
5958 the StatusUnitFormat= setting in /etc/systemd/system.conf or the
5959 kernel command line option systemd.status_unit_format=.
5960
907ddcd3 5961 * PID 1 now understands a new option KExecWatchdogSec= in
4860f5c2
ZJS
5962 /etc/systemd/system.conf to set a watchdog timeout for kexec reboots.
5963 Previously watchdog functionality was only available for regular
5964 reboots. The new setting defaults to off, because we don't know in
5965 the general case if the watchdog will be reset after kexec (some
5966 drivers do reset it, but not all), and the new userspace might not be
5967 configured to handle the watchdog.
5968
5969 Moreover, the old ShutdownWatchdogSec= setting has been renamed to
5970 RebootWatchdogSec= to more clearly communicate what it is about. The
5971 old name is still accepted for compatibility.
907ddcd3 5972
2875a36b 5973 * The systemd.debug_shell kernel command line option now optionally
4860f5c2
ZJS
5974 takes a tty name to spawn the debug shell on, which allows a
5975 different tty to be selected than the built-in default.
2875a36b 5976
a4d5848a
AZ
5977 * Service units gained a new ExecCondition= setting which will run
5978 before ExecStartPre= and either continue execution of the unit (for
5979 clean exit codes), stop execution without marking the unit failed
5980 (for exit codes 1 through 254), or stop execution and fail the unit
4860f5c2 5981 (for exit code 255 or abnormal termination).
a4d5848a 5982
29db4c3a 5983 * A new service systemd-pstore.service has been added that pulls data
08b59539 5984 from /sys/fs/pstore/ and saves it to /var/lib/pstore for later
29db4c3a
LP
5985 review.
5986
5987 * timedatectl gained new verbs for configuring per-interface NTP
5988 service configuration for systemd-timesyncd.
5989
5990 * "localectl list-locales" won't list non-UTF-8 locales anymore. It's
a18a3aac 5991 2019. (You can set non-UTF-8 locales though, if you know their name.)
29db4c3a 5992
b64c47c0
LP
5993 * If variable assignments in sysctl.d/ files are prefixed with "-" any
5994 failures to apply them are now ignored.
5995
a18a3aac
LP
5996 * systemd-random-seed.service now optionally credits entropy when
5997 applying the seed to the system. Set $SYSTEMD_RANDOM_SEED_CREDIT to
5998 true for the service to enable this behaviour, but please consult the
5999 documentation first, since this comes with a couple of caveats.
6000
4860f5c2
ZJS
6001 * systemd-random-seed.service is now a synchronization point for full
6002 initialization of the kernel's entropy pool. Services that require
6003 /dev/urandom to be correctly initialized should be ordered after this
6004 service.
a18a3aac
LP
6005
6006 * The systemd-boot boot loader has been updated to optionally maintain
6007 a random seed file in the EFI System Partition (ESP). During the boot
6008 phase, this random seed is read and updated with a new seed
4860f5c2 6009 cryptographically derived from it. Another derived seed is passed to
a18a3aac
LP
6010 the OS. The latter seed is then credited to the kernel's entropy pool
6011 very early during userspace initialization (from PID 1). This allows
6012 systems to boot up with a fully initialized kernel entropy pool from
6013 earliest boot on, and thus entirely removes all entropy pool
6014 initialization delays from systems using systemd-boot. Special care
6015 is taken to ensure different seeds are derived on system images
4860f5c2
ZJS
6016 replicated to multiple systems. "bootctl status" will show whether
6017 a seed was received from the boot loader.
6018
6019 * bootctl gained two new verbs:
6020
6021 - "bootctl random-seed" will generate the file in ESP and an EFI
6022 variable to allow a random seed to be passed to the OS as described
6023 above.
6024
6025 - "bootctl is-installed" checks whether systemd-boot is currently
6026 installed.
a18a3aac 6027
4860f5c2
ZJS
6028 * bootctl will warn if it detects that boot entries are misconfigured
6029 (for example if the kernel image was removed without purging the
6030 bootloader entry).
a18a3aac
LP
6031
6032 * A new document has been added describing systemd's use and support
6033 for the kernel's entropy pool subsystem:
6034
6035 https://systemd.io/RANDOM_SEEDS
6036
48fd50f7
LP
6037 * When the system is hibernated the swap device to write the
6038 hibernation image to is now automatically picked from all available
6039 swap devices, preferring the swap device with the highest configured
6040 priority over all others, and picking the device with the most free
6041 space if there are multiple devices with the highest priority.
6042
6043 * /etc/crypttab support has learnt a new keyfile-timeout= per-device
86b52a39 6044 option that permits selecting the timeout how long to wait for a
48fd50f7
LP
6045 device with an encryption key before asking for the password.
6046
2dbc45ae
KK
6047 * IOWeight= has learnt to properly set the IO weight when using the
6048 BFQ scheduler officially found in kernels 5.0+.
6049
6d8cf864
ZJS
6050 * A new mailing list has been created for reporting of security issues:
6051 systemd-security@redhat.com. For mode details, see
6052 https://systemd.io/CONTRIBUTING#security-vulnerability-reports.
6053
f21e2ecb
ZJS
6054 Contributions from: Aaron Barany, Adrian Bunk, Alan Jenkins, Albrecht
6055 Lohofener, Andrej Valek, Anita Zhang, Arian van Putten, Balint Reczey,
6056 Bastien Nocera, Ben Boeckel, Benjamin Robin, camoz, Chen Qi, Chris
03985d06
ZJS
6057 Chiu, Chris Down, Christian Göttsche, Christian Kellner, Clinton Roy,
6058 Connor Reeder, Daniel Black, Daniel Lublin, Daniele Medri, Dan
6059 Streetman, Dave Reisner, Dave Ross, David Art, David Tardon, Debarshi
6060 Ray, Dimitri John Ledkov, Dominick Grift, Donald Buczek, Douglas
6061 Christman, Eric DeVolder, EtherGraf, Evgeny Vereshchagin, Feldwor,
6062 Felix Riemann, Florian Dollinger, Francesco Pennica, Franck Bui,
6063 Frantisek Sumsal, Franz Pletz, frederik, Hans de Goede, Iago López
6064 Galeiras, Insun Pyo, Ivan Shapovalov, Iwan Timmer, Jack, Jakob
6065 Unterwurzacher, Jan Chren, Jan Klötzke, Jan Losinski, Jan Pokorný, Jan
6066 Synacek, Jan-Michael Brummer, Jeka Pats, Jeremy Soller, Jérémy Rosen,
6067 Jiri Pirko, Joe Lin, Joerg Behrmann, Joe Richey, Jóhann B. Guðmundsson,
6068 Johannes Christ, Johannes Schmitz, Jonathan Rouleau, Jorge Niedbalski,
6069 Jörg Thalheim, Kai Krakow, Kai Lüke, Karel Zak, Kashyap Chamarthy,
f21e2ecb
ZJS
6070 Krayushkin Konstantin, Lennart Poettering, Lubomir Rintel, Luca
6071 Boccassi, Luís Ferreira, Marc-André Lureau, Markus Felten, Martin Pitt,
6072 Matthew Leeds, Mattias Jernberg, Michael Biebl, Michael Olbrich,
6073 Michael Prokop, Michael Stapelberg, Michael Zhivich, Michal Koutný,
6074 Michal Sekletar, Mike Gilbert, Milan Broz, Miroslav Lichvar, mpe85,
6075 Mr-Foo, Network Silence, Oliver Harley, pan93412, Paul Menzel, pEJipE,
03985d06
ZJS
6076 Peter A. Bigot, Philip Withnall, Piotr Drąg, Rafael Fontenelle, Robert
6077 Scheck, Roberto Santalla, Ronan Pigott, root, RussianNeuroMancer,
6078 Sebastian Jennen, shinygold, Shreyas Behera, Simon Schricker, Susant
6079 Sahani, Thadeu Lima de Souza Cascardo, Theo Ouzhinski, Thiebaud
6080 Weksteen, Thomas Haller, Thomas Weißschuh, Tomas Mraz, Tommi Rantala,
6081 Topi Miettinen, VD-Lycos, ven, Vladimir Yerilov, Wieland Hoffmann,
6082 William A. Kennington III, William Wold, Xi Ruoyao, Yuri Chornoivan,
6083 Yu Watanabe, Zach Smith, Zbigniew Jędrzejewski-Szmek, Zhang Xianwei
29db4c3a 6084
efb536d0 6085 – Camerino, 2019-09-03
6af90583 6086
d822bd4e 6087CHANGES WITH 242:
9b89e602
ZJS
6088
6089 * In .link files, MACAddressPolicy=persistent (the default) is changed
6090 to cover more devices. For devices like bridges, tun, tap, bond, and
6091 similar interfaces that do not have other identifying information,
6092 the interface name is used as the basis for persistent seed for MAC
6093 and IPv4LL addresses. The way that devices that were handled
fd9baae8
ZJS
6094 previously is not changed, and this change is about covering more
6095 devices then previously by the "persistent" policy.
9b89e602
ZJS
6096
6097 MACAddressPolicy=random may be used to force randomized MACs and
6098 IPv4LL addresses for a device if desired.
6099
6100 Hint: the log output from udev (at debug level) was enhanced to
6101 clarify what policy is followed and which attributes are used.
6102 `SYSTEMD_LOG_LEVEL=debug udevadm test-builtin net_setup_link /sys/class/net/<name>`
6103 may be used to view this.
6104
c111cd98
YW
6105 Hint: if a bridge interface is created without any slaves, and gains
6106 a slave later, then now the bridge does not inherit slave's MAC.
6107 To inherit slave's MAC, for example, create the following file:
6108 ```
6109 # /etc/systemd/network/98-bridge-inherit-mac.link
6110 [Match]
6111 Type=bridge
6112
6113 [Link]
6114 MACAddressPolicy=none
6115 ```
6116
9b89e602
ZJS
6117 * The .device units generated by systemd-fstab-generator and other
6118 generators do not automatically pull in the corresponding .mount unit
6119 as a Wants= dependency. This means that simply plugging in the device
6120 will not cause the mount unit to be started automatically. But please
5787c509
LP
6121 note that the mount unit may be started for other reasons, in
6122 particular if it is part of local-fs.target, and any unit which
6123 (transitively) depends on local-fs.target is started.
9b89e602 6124
5787c509
LP
6125 * networkctl list/status/lldp now accept globbing wildcards for network
6126 interface names to match against all existing interfaces.
6127
6128 * The $PIDFILE environment variable is set to point the absolute path
6129 configured with PIDFile= for processes of that service.
9b89e602
ZJS
6130
6131 * The fallback DNS server list was augmented with Cloudflare public DNS
6132 servers. Use `-Ddns-servers=` to set a different fallback.
6133
6134 * A new special target usb-gadget.target will be started automatically
6135 when a USB Device Controller is detected (which means that the system
6136 is a USB peripheral).
6137
5787c509
LP
6138 * A new unit setting CPUQuotaPeriodSec= assigns the time period
6139 relatively to which the CPU time quota specified by CPUQuota= is
6140 measured.
9b89e602 6141
5787c509 6142 * A new unit setting ProtectHostname= may be used to prevent services
9b89e602
ZJS
6143 from modifying hostname information (even if they otherwise would
6144 have privileges to do so).
6145
5787c509 6146 * A new unit setting NetworkNamespacePath= may be used to specify a
9b89e602
ZJS
6147 namespace for service or socket units through a path referring to a
6148 Linux network namespace pseudo-file.
6149
5787c509
LP
6150 * The PrivateNetwork= setting and JoinsNamespaceOf= dependencies now
6151 have an effect on .socket units: when used the listening socket is
6152 created within the configured network namespace instead of the host
6153 namespace.
6154
6155 * ExecStart= command lines in unit files may now be prefixed with ':'
6156 in which case environment variable substitution is
6157 disabled. (Supported for the other ExecXYZ= settings, too.)
6158
2eb466fc
LP
6159 * .timer units gained two new boolean settings OnClockChange= and
6160 OnTimezoneChange= which may be used to also trigger a unit when the
6161 system clock is changed or the local timezone is
6162 modified. systemd-run has been updated to make these options easily
6163 accessible from the command line for transient timers.
6164
6165 * Two new conditions for units have been added: ConditionMemory= may be
6166 used to conditionalize a unit based on installed system
6167 RAM. ConditionCPUs= may be used to conditionalize a unit based on
39e445c9 6168 installed CPU cores.
2eb466fc
LP
6169
6170 * The @default system call filter group understood by SystemCallFilter=
6171 has been updated to include the new rseq() system call introduced in
6172 kernel 4.15.
6173
ab80eca1
ZJS
6174 * A new time-set.target has been added that indicates that the system
6175 time has been set from a local source (possibly imprecise). The
6176 existing time-sync.target is stronger and indicates that the time has
6177 been synchronized with a precise external source. Services where
6178 approximate time is sufficient should use the new target.
6179
2eb466fc
LP
6180 * "systemctl start" (and related commands) learnt a new
6181 --show-transaction option. If specified brief information about all
6182 jobs queued because of the requested operation is shown.
6183
5787c509
LP
6184 * systemd-networkd recognizes a new operation state 'enslaved', used
6185 (instead of 'degraded' or 'carrier') for interfaces which form a
6186 bridge, bond, or similar, and an new 'degraded-carrier' operational
6187 state used for the bond or bridge master interface when one of the
6188 enslaved devices is not operational.
9b89e602 6189
5787c509
LP
6190 * .network files learnt the new IgnoreCarrierLoss= option for leaving
6191 networks configured even if the carrier is lost.
6192
6193 * The RequiredForOnline= setting in .network files may now specify a
9b89e602 6194 minimum operational state required for the interface to be considered
5787c509
LP
6195 "online" by systemd-networkd-wait-online. Related to this
6196 systemd-networkd-wait-online gained a new option --operational-state=
6197 to configure the same, and its --interface= option was updated to
6198 optionally also take an operational state specific for an interface.
9b89e602 6199
2eb466fc
LP
6200 * systemd-networkd-wait-online gained a new setting --any for waiting
6201 for only one of the requested interfaces instead of all of them.
6202
9b89e602
ZJS
6203 * systemd-networkd now implements L2TP tunnels.
6204
5787c509
LP
6205 * Two new .network settings UseAutonomousPrefix= and UseOnLinkPrefix=
6206 may be used to cause autonomous and onlink prefixes received in IPv6
9b89e602
ZJS
6207 Router Advertisements to be ignored.
6208
5787c509
LP
6209 * New MulticastFlood=, NeighborSuppression=, and Learning= .network
6210 file settings may be used to tweak bridge behaviour.
6211
6212 * The new TripleSampling= option in .network files may be used to
6213 configure CAN triple sampling.
9b89e602 6214
78bb2866
YW
6215 * A new .netdev settings PrivateKeyFile= and PresharedKeyFile= may be
6216 used to point to private or preshared key for a WireGuard interface.
9b89e602 6217
5787c509
LP
6218 * /etc/crypttab now supports the same-cpu-crypt and
6219 submit-from-crypt-cpus options to tweak encryption work scheduling
6220 details.
9b89e602
ZJS
6221
6222 * systemd-tmpfiles will now take a BSD file lock before operating on a
6223 contents of directory. This may be used to temporarily exclude
6224 directories from aging by taking the same lock (useful for example
6225 when extracting a tarball into /tmp or /var/tmp as a privileged user,
6226 which might create files with really old timestamps, which
5787c509
LP
6227 nevertheless should not be deleted). For further details, see:
6228
6229 https://systemd.io/TEMPORARY_DIRECTORIES
9b89e602 6230
70d8401d
LP
6231 * systemd-tmpfiles' h line type gained support for the
6232 FS_PROJINHERIT_FL ('P') file attribute (introduced in kernel 4.5),
6233 controlling project quota inheritance.
6234
9b89e602
ZJS
6235 * sd-boot and bootctl now implement support for an Extended Boot Loader
6236 (XBOOTLDR) partition, that is intended to be mounted to /boot, in
6237 addition to the ESP partition mounted to /efi or /boot/efi.
6238 Configuration file fragments, kernels, initrds and other EFI images
6239 to boot will be loaded from both the ESP and XBOOTLDR partitions.
6240 The XBOOTLDR partition was previously described by the Boot Loader
5787c509
LP
6241 Specification, but implementation was missing in sd-boot. Support for
6242 this concept allows using the sd-boot boot loader in more
6243 conservative scenarios where the boot loader itself is placed in the
6244 ESP but the kernels to boot (and their metadata) in a separate
6245 partition.
9b89e602 6246
5787c509
LP
6247 * A system may now be booted with systemd.volatile=overlay on the
6248 kernel command line, which causes the root file system to be set up
6249 an overlayfs mount combining the root-only root directory with a
6250 writable tmpfs. In this setup, the underlying root device is not
6251 modified, and any changes are lost at reboot.
9b89e602 6252
5787c509
LP
6253 * Similar, systemd-nspawn can now boot containers with a volatile
6254 overlayfs root with the new --volatile=overlay switch.
9b89e602
ZJS
6255
6256 * systemd-nspawn can now consume OCI runtime bundles using a new
6257 --oci-bundle= option. This implementation is fully usable, with most
6258 features in the specification implemented, but since this a lot of
6259 new code and functionality, this feature should most likely not
6260 be used in production yet.
6261
5787c509
LP
6262 * systemd-nspawn now supports various options described by the OCI
6263 runtime specification on the command-line and in .nspawn files:
9b89e602 6264 --inaccessible=/Inaccessible= may be used to mask parts of the file
5787c509 6265 system tree, --console=/--pipe may be used to configure how standard
9b89e602
ZJS
6266 input, output, and error are set up.
6267
6268 * busctl learned the `emit` verb to generate D-Bus signals.
6269
6270 * systemd-analyze cat-config may be used to gather and display
6271 configuration spread over multiple files, for example system and user
6272 presets, tmpfiles.d, sysusers.d, udev rules, etc.
6273
5787c509
LP
6274 * systemd-analyze calendar now takes an optional new parameter
6275 --iterations= which may be used to show a maximum number of iterations
6276 the specified expression will elapse next.
6277
6278 * The sd-bus C API gained support for naming method parameters in the
6279 introspection data.
6280
6281 * systemd-logind gained D-Bus APIs to specify the "reboot parameter"
6282 the reboot() system call expects.
6283
6284 * journalctl learnt a new --cursor-file= option that points to a file
9b89e602
ZJS
6285 from which a cursor should be loaded in the beginning and to which
6286 the updated cursor should be stored at the end.
6287
6288 * ACRN hypervisor and Windows Subsystem for Linux (WSL) are now
6289 detected by systemd-detect-virt (and may also be used in
6290 ConditionVirtualization=).
6291
6292 * The behaviour of systemd-logind may now be modified with environment
6293 variables $SYSTEMD_REBOOT_TO_FIRMWARE_SETUP,
6294 $SYSTEMD_REBOOT_TO_BOOT_LOADER_MENU, and
6295 $SYSTEMD_REBOOT_TO_BOOT_LOADER_ENTRY. They cause logind to either
6296 skip the relevant operation completely (when set to false), or to
6297 create a flag file in /run/systemd (when set to true), instead of
6298 actually commencing the real operation when requested. The presence
6299 of /run/systemd/reboot-to-firmware-setup,
6300 /run/systemd/reboot-to-boot-loader-menu, and
6301 /run/systemd/reboot-to-boot-loader-entry, may be used by alternative
6302 boot loader implementations to replace some steps logind performs
6303 during reboot with their own operations.
6304
6305 * systemctl can be used to request a reboot into the boot loader menu
5787c509
LP
6306 or a specific boot loader entry with the new --boot-load-menu= and
6307 --boot-loader-entry= options to a reboot command. (This requires a
6308 boot loader that supports this, for example sd-boot.)
9b89e602
ZJS
6309
6310 * kernel-install will no longer unconditionally create the output
6311 directory (e.g. /efi/<machine-id>/<kernel-version>) for boot loader
6312 snippets, but will do only if the machine-specific parent directory
6313 (i.e. /efi/<machine-id>/) already exists. bootctl has been modified
6314 to create this parent directory during sd-boot installation.
6315
6316 This makes it easier to use kernel-install with plugins which support
6317 a different layout of the bootloader partitions (for example grub2).
6318
a3134241 6319 * During package installation (with `ninja install`), we would create
1fa3ba90
PM
6320 symlinks for getty@tty1.service, systemd-networkd.service,
6321 systemd-networkd.socket, systemd-resolved.service,
6322 remote-cryptsetup.target, remote-fs.target,
a3134241
ZJS
6323 systemd-networkd-wait-online.service, and systemd-timesyncd.service
6324 in /etc, as if `systemctl enable` was called for those units, to make
6325 the system usable immediately after installation. Now this is not
6326 done anymore, and instead calling `systemctl preset-all` is
6327 recommended after the first installation of systemd.
6328
bf65b7e0
LP
6329 * A new boolean sandboxing option RestrictSUIDSGID= has been added that
6330 is built on seccomp. When turned on creation of SUID/SGID files is
6331 prohibited.
6332
6333 * The NoNewPrivileges= and the new RestrictSUIDSGID= options are now
6334 implied if DynamicUser= is turned on for a service. This hardens
6335 these services, so that they neither can benefit from nor create
6336 SUID/SGID executables. This is a minor compatibility breakage, given
6337 that when DynamicUser= was first introduced SUID/SGID behaviour was
6338 unaffected. However, the security benefit of these two options is
6339 substantial, and the setting is still relatively new, hence we opted
6340 to make it mandatory for services with dynamic users.
6341
5b2fc74f
LP
6342 Contributions from: Adam Jackson, Alexander Tsoy, Andrey Yashkin,
6343 Andrzej Pietrasiewicz, Anita Zhang, Balint Reczey, Beniamino Galvani,
6344 Ben Iofel, Benjamin Berg, Benjamin Dahlhoff, Chris, Chris Morin,
6345 Christopher Wong, Claudius Ellsel, Clemens Gruber, dana, Daniel Black,
6346 Davide Cavalca, David Michael, David Rheinsberg, emersion, Evgeny
6347 Vereshchagin, Filipe Brandenburger, Franck Bui, Frantisek Sumsal,
6348 Giacinto Cifelli, Hans de Goede, Hugo Kindel, Ignat Korchagin, Insun
c3287a42
LP
6349 Pyo, Jan Engelhardt, Jonas Dorel, Jonathan Lebon, Jonathon Kowalski,
6350 Jörg Sommer, Jörg Thalheim, Jussi Pakkanen, Kai-Heng Feng, Lennart
6351 Poettering, Lubomir Rintel, Luís Ferreira, Martin Pitt, Matthias
6352 Klumpp, Michael Biebl, Michael Niewöhner, Michael Olbrich, Michal
ab80eca1
ZJS
6353 Sekletar, Mike Lothian, Paul Menzel, Piotr Drąg, Riccardo Schirone,
6354 Robin Elvedi, Roman Kulikov, Ronald Tschalär, Ross Burton, Ryan
1e5d2d65
ZJS
6355 Gonzalez, Sebastian Krzyszkowiak, Stephane Chazelas, StKob, Susant
6356 Sahani, Sylvain Plantefève, Szabolcs Fruhwald, Taro Yamada, Theo
6357 Ouzhinski, Thomas Haller, Tobias Jungel, Tom Yan, Tony Asleson, Topi
6358 Miettinen, unixsysadmin, Van Laser, Vesa Jääskeläinen, Yu, Li-Yu,
6359 Yu Watanabe, Zbigniew Jędrzejewski-Szmek
c3287a42 6360
1e5d2d65 6361 — Warsaw, 2019-04-11
bf65b7e0 6362
d0f71749 6363CHANGES WITH 241:
b4ff3dbb
ZJS
6364
6365 * The default locale can now be configured at compile time. Otherwise,
6366 a suitable default will be selected automatically (one of C.UTF-8,
6367 en_US.UTF-8, and C).
6368
6369 * The version string shown by systemd and other tools now includes the
6370 git commit hash when built from git. An override may be specified
6371 during compilation, which is intended to be used by distributions to
6372 include the package release information.
6373
6374 * systemd-cat can now filter standard input and standard error streams
6375 for different syslog priorities using the new --stderr-priority=
6376 option.
6377
6378 * systemd-journald and systemd-journal-remote reject entries which
6379 contain too many fields (CVE-2018-16865) and set limits on the
6380 process' command line length (CVE-2018-16864).
6381
6382 * $DBUS_SESSION_BUS_ADDRESS environment variable is set by pam_systemd
6383 again.
6384
08e1fe42
ZJS
6385 * A new network device NamePolicy "keep" is implemented for link files,
6386 and used by default in 99-default.link (the fallback configuration
6387 provided by systemd). With this policy, if the network device name
6388 was already set by userspace, the device will not be renamed again.
6389 This matches the naming scheme that was implemented before
6390 systemd-240. If naming-scheme < 240 is specified, the "keep" policy
6391 is also enabled by default, even if not specified. Effectively, this
6392 means that if naming-scheme >= 240 is specified, network devices will
6393 be renamed according to the configuration, even if they have been
6394 renamed already, if "keep" is not specified as the naming policy in
6395 the .link file. The 99-default.link file provided by systemd includes
6396 "keep" for backwards compatibility, but it is recommended for user
6397 installed .link files to *not* include it.
6398
6399 The "kernel" policy, which keeps kernel names declared to be
6400 "persistent", now works again as documented.
6401
ba7a6b8c
LP
6402 * kernel-install script now optionally takes the paths to one or more
6403 initrd files, and passes them to all plugins.
bd36ef0a 6404
57c03b1e
LP
6405 * The mincore() system call has been dropped from the @system-service
6406 system call filter group, as it is pretty exotic and may potentially
6407 used for side-channel attacks.
6408
774d6375
ZJS
6409 * -fPIE is dropped from compiler and linker options. Please specify
6410 -Db_pie=true option to meson to build position-independent
bd36ef0a
YW
6411 executables. Note that the meson option is supported since meson-0.49.
6412
27325875
LW
6413 * The fs.protected_regular and fs.protected_fifos sysctls, which were
6414 added in Linux 4.19 to make some data spoofing attacks harder, are
6415 now enabled by default. While this will hopefully improve the
6416 security of most installations, it is technically a backwards
6417 incompatible change; to disable these sysctls again, place the
6418 following lines in /etc/sysctl.d/60-protected.conf or a similar file:
6419
6420 fs.protected_regular = 0
6421 fs.protected_fifos = 0
6422
6423 Note that the similar hardlink and symlink protection has been
6424 enabled since v199, and may be disabled likewise.
6425
a77f438b
LT
6426 * The files read from the EnvironmentFile= setting in unit files now
6427 parse backslashes inside quotes literally, matching the behaviour of
6428 POSIX shells.
6429
ba7a6b8c
LP
6430 * udevadm trigger, udevadm control, udevadm settle and udevadm monitor
6431 now automatically become NOPs when run in a chroot() environment.
6432
6433 * The tmpfiles.d/ "C" line type will now copy directory trees not only
6434 when the destination is so far missing, but also if it already exists
6435 as a directory and is empty. This is useful to cater for systems
6436 where directory trees are put together from multiple separate mount
6437 points but otherwise empty.
6438
6439 * A new function sd_bus_close_unref() (and the associated
6440 sd_bus_close_unrefp()) has been added to libsystemd, that combines
6441 sd_bus_close() and sd_bus_unref() in one.
6442
6443 * udevadm control learnt a new option for --ping for testing whether a
6444 systemd-udevd instance is running and reacting.
6445
ecebd1ec
YW
6446 * udevadm trigger learnt a new option for --wait-daemon for waiting
6447 systemd-udevd daemon to be initialized.
6448
d0f71749
LP
6449 Contributions from: Aaron Plattner, Alberts Muktupāvels, Alex Mayer,
6450 Ayman Bagabas, Beniamino Galvani, Burt P, Chris Down, Chris Lamb, Chris
6451 Morin, Christian Hesse, Claudius Ellsel, dana, Daniel Axtens, Daniele
6452 Medri, Dave Reisner, David Santamaría Rogado, Diego Canuhe, Dimitri
6453 John Ledkov, Evgeny Vereshchagin, Fabrice Fontaine, Filipe
6454 Brandenburger, Franck Bui, Frantisek Sumsal, govwin, Hans de Goede,
6455 James Hilliard, Jan Engelhardt, Jani Uusitalo, Jan Janssen, Jan
6456 Synacek, Jonathan McDowell, Jonathan Roemer, Jonathon Kowalski, Joost
6457 Heitbrink, Jörg Thalheim, Lance, Lennart Poettering, Louis Taylor,
6458 Lucas Werkmeister, Mantas Mikulėnas, Marc-Antoine Perennou,
6459 marvelousblack, Michael Biebl, Michael Sloan, Michal Sekletar, Mike
6460 Auty, Mike Gilbert, Mikhail Kasimov, Neil Brown, Niklas Hambüchen,
6461 Patrick Williams, Paul Seyfert, Peter Hutterer, Philip Withnall, Roger
6462 James, Ronnie P. Thomas, Ryan Gonzalez, Sam Morris, Stephan Edel,
6463 Stephan Gerhold, Susant Sahani, Taro Yamada, Thomas Haller, Topi
6464 Miettinen, YiFei Zhu, YmrDtnJu, YunQiang Su, Yu Watanabe, Zbigniew
6465 Jędrzejewski-Szmek, zsergeant77, Дамјан Георгиевски
6466
36d28ebc 6467 — Berlin, 2019-02-14
ba7a6b8c 6468
32673162 6469CHANGES WITH 240:
fcb97512 6470
e68a35a7
ZJS
6471 * NoNewPrivileges=yes has been set for all long-running services
6472 implemented by systemd. Previously, this was problematic due to
6473 SELinux (as this would also prohibit the transition from PID1's label
6474 to the service's label). This restriction has since been lifted, but
6475 an SELinux policy update is required.
6476 (See e.g. https://github.com/fedora-selinux/selinux-policy/pull/234.)
6477
aa2437e2
YW
6478 * DynamicUser=yes is dropped from systemd-networkd.service,
6479 systemd-resolved.service and systemd-timesyncd.service, which was
6480 enabled in v239 for systemd-networkd.service and systemd-resolved.service,
6481 and since v236 for systemd-timesyncd.service. The users and groups
6482 systemd-network, systemd-resolve and systemd-timesync are created
6483 by systemd-sysusers again. Distributors or system administrators
6484 may need to create these users and groups if they not exist (or need
6485 to re-enable DynamicUser= for those units) while upgrading systemd.
787a133f
YW
6486 Also, the clock file for systemd-timesyncd may need to move from
6487 /var/lib/private/systemd/timesync/clock to /var/lib/systemd/timesync/clock.
aa2437e2 6488
b1a082cd
ZJS
6489 * When unit files are loaded from disk, previously systemd would
6490 sometimes (depending on the unit loading order) load units from the
6491 target path of symlinks in .wants/ or .requires/ directories of other
6492 units. This meant that unit could be loaded from different paths
6493 depending on whether the unit was requested explicitly or as a
6494 dependency of another unit, not honouring the priority of directories
6495 in search path. It also meant that it was possible to successfully
6496 load and start units which are not found in the unit search path, as
6497 long as they were requested as a dependency and linked to from
6498 .wants/ or .requires/. The target paths of those symlinks are not
6499 used for loading units anymore and the unit file must be found in
6500 the search path.
6501
fcb97512 6502 * A new service type has been added: Type=exec. It's very similar to
421e3b45 6503 Type=simple but ensures the service manager will wait for both fork()
fcb97512
LP
6504 and execve() of the main service binary to complete before proceeding
6505 with follow-up units. This is primarily useful so that the manager
6506 propagates any errors in the preparation phase of service execution
6507 back to the job that requested the unit to be started. For example,
6508 consider a service that has ExecStart= set to a file system binary
421e3b45
ZJS
6509 that doesn't exist. With Type=simple starting the unit would be
6510 considered instantly successful, as only fork() has to complete
6511 successfully and the manager does not wait for execve(), and hence
6512 its failure is seen "too late". With the new Type=exec service type
6513 starting the unit will fail, as the manager will wait for the
6514 execve() and notice its failure, which is then propagated back to the
6515 start job.
fcb97512
LP
6516
6517 NOTE: with the next release 241 of systemd we intend to change the
6518 systemd-run tool to default to Type=exec for transient services
6519 started by it. This should be mostly safe, but in specific corner
6520 cases might result in problems, as the systemd-run tool will then
6b1ab752 6521 block on NSS calls (such as user name look-ups due to User=) done
fcb97512
LP
6522 between the fork() and execve(), which under specific circumstances
6523 might cause problems. It is recommended to specify "-p Type=simple"
6524 explicitly in the few cases where this applies. For regular,
6525 non-transient services (i.e. those defined with unit files on disk)
6526 we will continue to default to Type=simple.
6527
0972c1ae
LP
6528 * The Linux kernel's current default RLIMIT_NOFILE resource limit for
6529 userspace processes is set to 1024 (soft) and 4096
6530 (hard). Previously, systemd passed this on unmodified to all
6531 processes it forked off. With this systemd release the hard limit
0abf9492 6532 systemd passes on is increased to 512K, overriding the kernel's
0972c1ae
LP
6533 defaults and substantially increasing the number of simultaneous file
6534 descriptors unprivileged userspace processes can allocate. Note that
6535 the soft limit remains at 1024 for compatibility reasons: the
6536 traditional UNIX select() call cannot deal with file descriptors >=
6537 1024 and increasing the soft limit globally might thus result in
6538 programs unexpectedly allocating a high file descriptor and thus
6539 failing abnormally when attempting to use it with select() (of
6540 course, programs shouldn't use select() anymore, and prefer
6541 poll()/epoll, but the call unfortunately remains undeservedly popular
6542 at this time). This change reflects the fact that file descriptor
6543 handling in the Linux kernel has been optimized in more recent
6544 kernels and allocating large numbers of them should be much cheaper
6545 both in memory and in performance than it used to be. Programs that
6546 want to take benefit of the increased limit have to "opt-in" into
421e3b45
ZJS
6547 high file descriptors explicitly by raising their soft limit. Of
6548 course, when they do that they must acknowledge that they cannot use
6549 select() anymore (and neither can any shared library they use — or
6550 any shared library used by any shared library they use and so on).
6551 Which default hard limit is most appropriate is of course hard to
6552 decide. However, given reports that ~300K file descriptors are used
6553 in real-life applications we believe 512K is sufficiently high as new
6554 default for now. Note that there are also reports that using very
6555 high hard limits (e.g. 1G) is problematic: some software allocates
6556 large arrays with one element for each potential file descriptor
6557 (Java, …) — a high hard limit thus triggers excessively large memory
6558 allocations in these applications. Hopefully, the new default of 512K
6559 is a good middle ground: higher than what real-life applications
6560 currently need, and low enough for avoid triggering excessively large
6561 allocations in problematic software. (And yes, somebody should fix
6562 Java.)
0972c1ae 6563
a8b627aa
LP
6564 * The fs.nr_open and fs.file-max sysctls are now automatically bumped
6565 to the highest possible values, as separate accounting of file
6566 descriptors is no longer necessary, as memcg tracks them correctly as
6567 part of the memory accounting anyway. Thus, from the four limits on
6568 file descriptors currently enforced (fs.file-max, fs.nr_open,
6569 RLIMIT_NOFILE hard, RLIMIT_NOFILE soft) we turn off the first two,
6570 and keep only the latter two. A set of build-time options
a579d42a 6571 (-Dbump-proc-sys-fs-file-max=false and -Dbump-proc-sys-fs-nr-open=false)
a8b627aa
LP
6572 has been added to revert this change in behaviour, which might be
6573 an option for systems that turn off memcg in the kernel.
6574
4f7dc24f
LP
6575 * When no /etc/locale.conf file exists (and hence no locale settings
6576 are in place), systemd will now use the "C.UTF-8" locale by default,
6577 and set LANG= to it. This locale is supported by various
6578 distributions including Fedora, with clear indications that upstream
6579 glibc is going to make it available too. This locale enables UTF-8
6580 mode by default, which appears appropriate for 2018.
6581
230450d4
LR
6582 * The "net.ipv4.conf.all.rp_filter" sysctl will now be set to 2 by
6583 default. This effectively switches the RFC3704 Reverse Path filtering
6584 from Strict mode to Loose mode. This is more appropriate for hosts
6585 that have multiple links with routes to the same networks (e.g.
6586 a client with a Wi-Fi and Ethernet both connected to the internet).
6587
6b1ab752 6588 Consult the kernel documentation for details on this sysctl:
0e685823 6589 https://docs.kernel.org/networking/ip-sysctl.html
195d181c 6590
e447ffe4
SI
6591 * The v239 change to turn on "net.ipv4.tcp_ecn" by default has been
6592 reverted.
230450d4 6593
23305a29
CD
6594 * CPUAccounting=yes no longer enables the CPU controller when using
6595 kernel 4.15+ and the unified cgroup hierarchy, as required accounting
6596 statistics are now provided independently from the CPU controller.
6597
6b1ab752 6598 * Support for disabling a particular cgroup controller within a sub-tree
a8467688
CD
6599 has been added through the DisableControllers= directive.
6600
8f044cf9
CD
6601 * cgroup_no_v1=all on the kernel command line now also implies
6602 using the unified cgroup hierarchy, unless one explicitly passes
6603 systemd.unified_cgroup_hierarchy=0 on the kernel command line.
6604
6b1ab752
LP
6605 * The new "MemoryMin=" unit file property may now be used to set the
6606 memory usage protection limit of processes invoked by the unit. This
4e1dfa45 6607 controls the cgroup v2 memory.min attribute. Similarly, the new
6b1ab752 6608 "IODeviceLatencyTargetSec=" property has been added, wrapping the new
4e1dfa45 6609 cgroup v2 io.latency cgroup property for configuring per-service I/O
6b1ab752
LP
6610 latency.
6611
4e1dfa45
CD
6612 * systemd now supports the cgroup v2 devices BPF logic, as counterpart
6613 to the cgroup v1 "devices" cgroup controller.
6b1ab752
LP
6614
6615 * systemd-escape now is able to combine --unescape with --template. It
6616 also learnt a new option --instance for extracting and unescaping the
6617 instance part of a unit name.
6618
6619 * sd-bus now provides the sd_bus_message_readv() which is similar to
6620 sd_bus_message_read() but takes a va_list object. The pair
6621 sd_bus_set_method_call_timeout() and sd_bus_get_method_call_timeout()
421e3b45 6622 has been added for configuring the default method call timeout to
6b1ab752
LP
6623 use. sd_bus_error_move() may be used to efficiently move the contents
6624 from one sd_bus_error structure to another, invalidating the
6625 source. sd_bus_set_close_on_exit() and sd_bus_get_close_on_exit() may
6626 be used to control whether a bus connection object is automatically
6627 flushed when an sd-event loop is exited.
6628
6629 * When processing classic BSD syslog log messages, journald will now
6630 save the original time-stamp string supplied in the new
6631 SYSLOG_TIMESTAMP= journal field. This permits consumers to
6632 reconstruct the original BSD syslog message more correctly.
6633
6634 * StandardOutput=/StandardError= in service files gained support for
6635 new "append:…" parameters, for connecting STDOUT/STDERR of a service
6636 to a file, and appending to it.
6637
6638 * The signal to use as last step of killing of unit processes is now
6639 configurable. Previously it was hard-coded to SIGKILL, which may now
6640 be overridden with the new KillSignal= setting. Note that this is the
46b028f2 6641 signal used when regular termination (i.e. SIGTERM) does not suffice.
421e3b45
ZJS
6642 Similarly, the signal used when aborting a program in case of a
6643 watchdog timeout may now be configured too (WatchdogSignal=).
6b1ab752
LP
6644
6645 * The XDG_SESSION_DESKTOP environment variable may now be configured in
6646 the pam_systemd argument line, using the new desktop= switch. This is
6647 useful to initialize it properly from a display manager without
6648 having to touch C code.
6649
421e3b45
ZJS
6650 * Most configuration options that previously accepted percentage values
6651 now also accept permille values with the '‰' suffix (instead of '%').
6b1ab752 6652
6b1ab752
LP
6653 * systemd-resolved may now optionally use OpenSSL instead of GnuTLS for
6654 DNS-over-TLS.
6655
6656 * systemd-resolved's configuration file resolved.conf gained a new
6657 option ReadEtcHosts= which may be used to turn off processing and
6658 honoring /etc/hosts entries.
6659
6660 * The "--wait" switch may now be passed to "systemctl
6661 is-system-running", in which case the tool will synchronously wait
6662 until the system finished start-up.
6663
6664 * hostnamed gained a new bus call to determine the DMI product UUID.
6665
6666 * On x86-64 systemd will now prefer using the RDRAND processor
6667 instruction over /dev/urandom whenever it requires randomness that
6668 neither has to be crypto-grade nor should be reproducible. This
6669 should substantially reduce the amount of entropy systemd requests
6670 from the kernel during initialization on such systems, though not
6671 reduce it to zero. (Why not zero? systemd still needs to allocate
6672 UUIDs and such uniquely, which require high-quality randomness.)
6673
6674 * networkd gained support for Foo-Over-UDP, ERSPAN and ISATAP
6675 tunnels. It also gained a new option ForceDHCPv6PDOtherInformation=
6676 for forcing the "Other Information" bit in IPv6 RA messages. The
d6131be9 6677 bonding logic gained four new options AdActorSystemPriority=,
6b1ab752 6678 AdUserPortKey=, AdActorSystem= for configuring various 802.3ad
d6131be9
YW
6679 aspects, and DynamicTransmitLoadBalancing= for enabling dynamic
6680 shuffling of flows. The tunnel logic gained a new
6681 IPv6RapidDeploymentPrefix= option for configuring IPv6 Rapid
6682 Deployment. The policy rule logic gained four new options IPProtocol=,
6683 SourcePort= and DestinationPort=, InvertRule=. The bridge logic gained
6684 support for the MulticastToUnicast= option. networkd also gained
6685 support for configuring static IPv4 ARP or IPv6 neighbor entries.
6b1ab752
LP
6686
6687 * .preset files (as read by 'systemctl preset') may now be used to
6688 instantiate services.
6689
6690 * /etc/crypttab now understands the sector-size= option to configure
6691 the sector size for an encrypted partition.
6692
6693 * Key material for encrypted disks may now be placed on a formatted
421e3b45
ZJS
6694 medium, and referenced from /etc/crypttab by the UUID of the file
6695 system, followed by "=" suffixed by the path to the key file.
6b1ab752
LP
6696
6697 * The "collect" udev component has been removed without replacement, as
421e3b45 6698 it is neither used nor maintained.
6b1ab752
LP
6699
6700 * When the RuntimeDirectory=, StateDirectory=, CacheDirectory=,
6701 LogsDirectory=, ConfigurationDirectory= settings are used in a
6702 service the executed processes will now receive a set of environment
421e3b45
ZJS
6703 variables containing the full paths of these directories.
6704 Specifically, RUNTIME_DIRECTORY=, STATE_DIRECTORY, CACHE_DIRECTORY,
6705 LOGS_DIRECTORY, CONFIGURATION_DIRECTORY are now set if these options
6706 are used. Note that these options may be used multiple times per
6707 service in which case the resulting paths will be concatenated and
6708 separated by colons.
6b1ab752
LP
6709
6710 * Predictable interface naming has been extended to cover InfiniBand
6711 NICs. They will be exposed with an "ib" prefix.
6712
6713 * tmpfiles.d/ line types may now be suffixed with a '-' character, in
6714 which case the respective line failing is ignored.
6715
6716 * .link files may now be used to configure the equivalent to the
6717 "ethtool advertise" commands.
6718
6719 * The sd-device.h and sd-hwdb.h APIs are now exported, as an
6720 alternative to libudev.h. Previously, the latter was just an internal
6721 wrapper around the former, but now these two APIs are exposed
6722 directly.
6723
6724 * sd-id128.h gained a new function sd_id128_get_boot_app_specific()
6725 which calculates an app-specific boot ID similar to how
6726 sd_id128_get_machine_app_specific() generates an app-specific machine
6727 ID.
6728
6729 * A new tool systemd-id128 has been added that can be used to determine
6730 and generate various 128bit IDs.
6731
6732 * /etc/os-release gained two new standardized fields DOCUMENTATION_URL=
6733 and LOGO=.
6734
6735 * systemd-hibernate-resume-generator will now honor the "noresume"
6736 kernel command line option, in which case it will bypass resuming
6737 from any hibernated image.
6738
6739 * The systemd-sleep.conf configuration file gained new options
6740 AllowSuspend=, AllowHibernation=, AllowSuspendThenHibernate=,
6741 AllowHybridSleep= for prohibiting specific sleep modes even if the
421e3b45 6742 kernel exports them.
6b1ab752
LP
6743
6744 * portablectl is now officially supported and has thus moved to
6745 /usr/bin/.
6746
6747 * bootctl learnt the two new commands "set-default" and "set-oneshot"
6748 for setting the default boot loader item to boot to (either
6749 persistently or only for the next boot). This is currently only
6750 compatible with sd-boot, but may be implemented on other boot loaders
6751 too, that follow the boot loader interface. The updated interface is
6752 now documented here:
6753
6754 https://systemd.io/BOOT_LOADER_INTERFACE
6755
6756 * A new kernel command line option systemd.early_core_pattern= is now
6757 understood which may be used to influence the core_pattern PID 1
6758 installs during early boot.
6759
6760 * busctl learnt two new options -j and --json= for outputting method
6761 call replies, properties and monitoring output in JSON.
6762
6763 * journalctl's JSON output now supports simple ANSI coloring as well as
6764 a new "json-seq" mode for generating RFC7464 output.
6765
6766 * Unit files now support the %g/%G specifiers that resolve to the UNIX
6767 group/GID of the service manager runs as, similar to the existing
6768 %u/%U specifiers that resolve to the UNIX user/UID.
6769
6770 * systemd-logind learnt a new global configuration option
6771 UserStopDelaySec= that may be set in logind.conf. It specifies how
6772 long the systemd --user instance shall remain started after a user
6773 logs out. This is useful to speed up repetitive re-connections of the
6774 same user, as it means the user's service manager doesn't have to be
6775 stopped/restarted on each iteration, but can be reused between
6776 subsequent options. This setting defaults to 10s. systemd-logind also
6777 exports two new properties on its Manager D-Bus objects indicating
421e3b45
ZJS
6778 whether the system's lid is currently closed, and whether the system
6779 is on AC power.
6b1ab752
LP
6780
6781 * systemd gained support for a generic boot counting logic, which
6782 generically permits automatic reverting to older boot loader entries
6783 if newer updated ones don't work. The boot loader side is implemented
6784 in sd-boot, but is kept open for other boot loaders too. For details
6785 see:
6786
6787 https://systemd.io/AUTOMATIC_BOOT_ASSESSMENT
6788
6789 * The SuccessAction=/FailureAction= unit file settings now learnt two
6790 new parameters: "exit" and "exit-force", which result in immediate
6791 exiting of the service manager, and are only useful in systemd --user
6792 and container environments.
6793
6794 * Unit files gained support for a pair of options
6795 FailureActionExitStatus=/SuccessActionExitStatus= for configuring the
6796 exit status to use as service manager exit status when
6797 SuccessAction=/FailureAction= is set to exit or exit-force.
6798
6799 * A pair of LogRateLimitIntervalSec=/LogRateLimitBurst= per-service
6800 options may now be used to configure the log rate limiting applied by
6801 journald per-service.
6802
6803 * systemd-analyze gained a new verb "timespan" for parsing and
6804 normalizing time span values (i.e. strings like "5min 7s 8us").
6805
6806 * systemd-analyze also gained a new verb "security" for analyzing the
6807 security and sand-boxing settings of services in order to determine an
6808 "exposure level" for them, indicating whether a service would benefit
6809 from more sand-boxing options turned on for them.
6810
6811 * "systemd-analyze syscall-filter" will now also show system calls
6812 supported by the local kernel but not included in any of the defined
6813 groups.
6814
6815 * .nspawn files now understand the Ephemeral= setting, matching the
6816 --ephemeral command line switch.
6817
6818 * sd-event gained the new APIs sd_event_source_get_floating() and
6819 sd_event_source_set_floating() for controlling whether a specific
6820 event source is "floating", i.e. destroyed along with the even loop
6821 object itself.
6822
6823 * Unit objects on D-Bus gained a new "Refs" property that lists all
421e3b45
ZJS
6824 clients that currently have a reference on the unit (to ensure it is
6825 not unloaded).
6b1ab752
LP
6826
6827 * The JoinControllers= option in system.conf is no longer supported, as
6828 it didn't work correctly, is hard to support properly, is legacy (as
4e1dfa45 6829 the concept only exists on cgroup v1) and apparently wasn't used.
6b1ab752
LP
6830
6831 * Journal messages that are generated whenever a unit enters the failed
421e3b45
ZJS
6832 state are now tagged with a unique MESSAGE_ID. Similarly, messages
6833 generated whenever a service process exits are now made recognizable,
5238e957 6834 too. A tagged message is also emitted whenever a unit enters the
421e3b45 6835 "dead" state on success.
6b1ab752
LP
6836
6837 * systemd-run gained a new switch --working-directory= for configuring
6838 the working directory of the service to start. A shortcut -d is
6839 equivalent, setting the working directory of the service to the
6840 current working directory of the invoking program. The new --shell
6841 (or just -S) option has been added for invoking the $SHELL of the
6842 caller as a service, and implies --pty --same-dir --wait --collect
421e3b45 6843 --service-type=exec. Or in other words, "systemd-run -S" is now the
6b1ab752
LP
6844 quickest way to quickly get an interactive in a fully clean and
6845 well-defined system service context.
6846
6847 * machinectl gained a new verb "import-fs" for importing an OS tree
6848 from a directory. Moreover, when a directory or tarball is imported
6849 and single top-level directory found with the OS itself below the OS
6850 tree is automatically mangled and moved one level up.
6851
421e3b45
ZJS
6852 * systemd-importd will no longer set up an implicit btrfs loop-back
6853 file system on /var/lib/machines. If one is already set up, it will
6854 continue to be used.
6b1ab752
LP
6855
6856 * A new generator "systemd-run-generator" has been added. It will
6857 synthesize a unit from one or more program command lines included in
6858 the kernel command line. This is very useful in container managers
6859 for example:
6860
6861 # systemd-nspawn -i someimage.raw -b systemd.run='"some command line"'
6862
6863 This will run "systemd-nspawn" on an image, invoke the specified
421e3b45
ZJS
6864 command line and immediately shut down the container again, returning
6865 the command line's exit code.
6b1ab752 6866
421e3b45 6867 * The block device locking logic is now documented:
6b1ab752
LP
6868
6869 https://systemd.io/BLOCK_DEVICE_LOCKING
6870
6871 * loginctl and machinectl now optionally output the various tables in
6872 JSON using the --output= switch. It is our intention to add similar
6873 support to systemctl and all other commands.
6874
6875 * udevadm's query and trigger verb now optionally take a .device unit
6876 name as argument.
6877
6878 * systemd-udevd's network naming logic now understands a new
421e3b45 6879 net.naming-scheme= kernel command line switch, which may be used to
6b1ab752
LP
6880 pick a specific version of the naming scheme. This helps stabilizing
6881 interface names even as systemd/udev are updated and the naming logic
6882 is improved.
6883
67081438
LP
6884 * sd-id128.h learnt two new auxiliary helpers: sd_id128_is_allf() and
6885 SD_ID128_ALLF to test if a 128bit ID is set to all 0xFF bytes, and to
6886 initialize one to all 0xFF.
6887
144d7f1d
LP
6888 * After loading the SELinux policy systemd will now recursively relabel
6889 all files and directories listed in
6890 /run/systemd/relabel-extra.d/*.relabel (which should be simple
6891 newline separated lists of paths) in addition to the ones it already
6892 implicitly relabels in /run, /dev and /sys. After the relabelling is
6893 completed the *.relabel files (and /run/systemd/relabel-extra.d/) are
6894 removed. This is useful to permit initrds (i.e. code running before
6895 the SELinux policy is in effect) to generate files in the host
6896 filesystem safely and ensure that the correct label is applied during
6897 the transition to the host OS.
6898
98a7b55a
LP
6899 * KERNEL API BREAKAGE: Linux kernel 4.18 changed behaviour regarding
6900 mknod() handling in user namespaces. Previously mknod() would always
6901 fail with EPERM in user namespaces. Since 4.18 mknod() will succeed
6902 but device nodes generated that way cannot be opened, and attempts to
6903 open them result in EPERM. This breaks the "graceful fallback" logic
6904 in systemd's PrivateDevices= sand-boxing option. This option is
6905 implemented defensively, so that when systemd detects it runs in a
6906 restricted environment (such as a user namespace, or an environment
6907 where mknod() is blocked through seccomp or absence of CAP_SYS_MKNOD)
6908 where device nodes cannot be created the effect of PrivateDevices= is
6909 bypassed (following the logic that 2nd-level sand-boxing is not
6910 essential if the system systemd runs in is itself already sand-boxed
6911 as a whole). This logic breaks with 4.18 in container managers where
6912 user namespacing is used: suddenly PrivateDevices= succeeds setting
6913 up a private /dev/ file system containing devices nodes — but when
6914 these are opened they don't work.
6915
d238709c 6916 At this point it is recommended that container managers utilizing
98a7b55a
LP
6917 user namespaces that intend to run systemd in the payload explicitly
6918 block mknod() with seccomp or similar, so that the graceful fallback
6919 logic works again.
6920
6921 We are very sorry for the breakage and the requirement to change
6922 container configurations for newer kernels. It's purely caused by an
6923 incompatible kernel change. The relevant kernel developers have been
6924 notified about this userspace breakage quickly, but they chose to
6925 ignore it.
6926
455027c9
ZJS
6927 * PermissionsStartOnly= setting is deprecated (but is still supported
6928 for backwards compatibility). The same functionality is provided by
6929 the more flexible "+", "!", and "!!" prefixes to ExecStart= and other
6930 commands.
6931
b4ff3dbb
ZJS
6932 * $DBUS_SESSION_BUS_ADDRESS environment variable is not set by
6933 pam_systemd anymore.
6934
08e1fe42
ZJS
6935 * The naming scheme for network devices was changed to always rename
6936 devices, even if they were already renamed by userspace. The "kernel"
6937 policy was changed to only apply as a fallback, if no other naming
6938 policy took effect.
6939
bd36ef0a
YW
6940 * The requirements to build systemd is bumped to meson-0.46 and
6941 python-3.5.
6942
6b1ab752
LP
6943 Contributions from: afg, Alan Jenkins, Aleksei Timofeyev, Alexander
6944 Filippov, Alexander Kurtz, Alexey Bogdanenko, Andreas Henriksson,
6945 Andrew Jorgensen, Anita Zhang, apnix-uk, Arkan49, Arseny Maslennikov,
6946 asavah, Asbjørn Apeland, aszlig, Bastien Nocera, Ben Boeckel, Benedikt
c37e2358
LP
6947 Morbach, Benjamin Berg, Bruce Zhang, Carlo Caione, Cedric Viou, Chen
6948 Qi, Chris Chiu, Chris Down, Chris Morin, Christian Rebischke, Claudius
6949 Ellsel, Colin Guthrie, dana, Daniel, Daniele Medri, Daniel Kahn
6950 Gillmor, Daniel Rusek, Daniel van Vugt, Dariusz Gadomski, Dave Reisner,
6951 David Anderson, Davide Cavalca, David Leeds, David Malcolm, David
1742aae2
ZJS
6952 Strauss, David Tardon, Dimitri John Ledkov, Dmitry Torokhov, dj-kaktus,
6953 Dongsu Park, Elias Probst, Emil Soleyman, Erik Kooistra, Ervin Peters,
6954 Evgeni Golov, Evgeny Vereshchagin, Fabrice Fontaine, Faheel Ahmad,
6955 Faizal Luthfi, Felix Yan, Filipe Brandenburger, Franck Bui, Frank
6956 Schaefer, Frantisek Sumsal, Gautier Husson, Gianluca Boiano, Giuseppe
6957 Scrivano, glitsj16, Hans de Goede, Harald Hoyer, Harry Mallon, Harshit
6958 Jain, Helmut Grohne, Henry Tung, Hui Yiqun, imayoda, Insun Pyo, Iwan
6959 Timmer, Jan Janssen, Jan Pokorný, Jan Synacek, Jason A. Donenfeld,
6960 javitoom, Jérémy Nouhaud, Jeremy Su, Jiuyang Liu, João Paulo Rechi
6961 Vita, Joe Hershberger, Joe Rayhawk, Joerg Behrmann, Joerg Steffens,
6962 Jonas Dorel, Jon Ringle, Josh Soref, Julian Andres Klode, Jun Bo Bi,
6963 Jürg Billeter, Keith Busch, Khem Raj, Kirill Marinushkin, Larry
6964 Bernstone, Lennart Poettering, Lion Yang, Li Song, Lorenz
6965 Hübschle-Schneider, Lubomir Rintel, Lucas Werkmeister, Ludwin Janvier,
6966 Lukáš Nykrýn, Luke Shumaker, mal, Marc-Antoine Perennou, Marcin
6967 Skarbek, Marco Trevisan (Treviño), Marian Cepok, Mario Hros, Marko
6968 Myllynen, Markus Grimm, Martin Pitt, Martin Sobotka, Martin Wilck,
6969 Mathieu Trudel-Lapierre, Matthew Leeds, Michael Biebl, Michael Olbrich,
6970 Michael 'pbone' Pobega, Michael Scherer, Michal Koutný, Michal
6971 Sekletar, Michal Soltys, Mike Gilbert, Mike Palmer, Muhammet Kara, Neal
6972 Gompa, Neil Brown, Network Silence, Niklas Tibbling, Nikolas Nyby,
6973 Nogisaka Sadata, Oliver Smith, Patrik Flykt, Pavel Hrdina, Paweł
6974 Szewczyk, Peter Hutterer, Piotr Drąg, Ray Strode, Reinhold Mueller,
6975 Renaud Métrich, Roman Gushchin, Ronny Chevalier, Rubén Suárez Alvarez,
6976 Ruixin Bao, RussianNeuroMancer, Ryutaroh Matsumoto, Saleem Rashid, Sam
6977 Morris, Samuel Morris, Sandy Carter, scootergrisen, Sébastien Bacher,
6978 Sergey Ptashnick, Shawn Landden, Shengyao Xue, Shih-Yuan Lee
6979 (FourDollars), Silvio Knizek, Sjoerd Simons, Stasiek Michalski, Stephen
6980 Gallagher, Steven Allen, Steve Ramage, Susant Sahani, Sven Joachim,
6981 Sylvain Plantefève, Tanu Kaskinen, Tejun Heo, Thiago Macieira, Thomas
6982 Blume, Thomas Haller, Thomas H. P. Andersen, Tim Ruffing, TJ, Tobias
6983 Jungel, Todd Walton, Tommi Rantala, Tomsod M, Tony Novak, Tore
6984 Anderson, Trevonn, Victor Laskurain, Victor Tapia, Violet Halo, Vojtech
6985 Trefny, welaq, William A. Kennington III, William Douglas, Wyatt Ward,
6986 Xiang Fan, Xi Ruoyao, Xuanwo, Yann E. Morin, YmrDtnJu, Yu Watanabe,
6987 Zbigniew Jędrzejewski-Szmek, Zhang Xianwei, Zsolt Dollenstein
6988
6989 — Warsaw, 2018-12-21
6b1ab752 6990
e8498f82 6991CHANGES WITH 239:
019cb3ab
SH
6992
6993 * NETWORK INTERFACE DEVICE NAMING CHANGES: systemd-udevd's "net_id"
d69f5282
ZJS
6994 builtin will name network interfaces differently than in previous
6995 versions for virtual network interfaces created with SR-IOV and NPAR
6996 and for devices where the PCI network controller device does not have
6997 a slot number associated.
6998
6999 SR-IOV virtual devices are now named based on the name of the parent
7000 interface, with a suffix of "v<N>", where <N> is the virtual device
7001 number. Previously those virtual devices were named as if completely
7002 independent.
7003
7004 The ninth and later NPAR virtual devices will be named following the
7005 scheme used for the first eight NPAR partitions. Previously those
7006 devices were not renamed and the kernel default (eth<n>) was used.
7007
7008 "net_id" will also generate names for PCI devices where the PCI
7009 network controller device does not have an associated slot number
7010 itself, but one of its parents does. Previously those devices were
7011 not renamed and the kernel default (eth<n>) was used.
019cb3ab 7012
6e2d744b
YW
7013 * AF_INET and AF_INET6 are dropped from RestrictAddressFamilies= in
7014 systemd-logind.service. Since v235, IPAddressDeny=any has been set to
fe903cf4
LP
7015 the unit. So, it is expected that the default behavior of
7016 systemd-logind is not changed. However, if distribution packagers or
7017 administrators disabled or modified IPAddressDeny= setting by a
7018 drop-in config file, then it may be necessary to update the file to
7019 re-enable AF_INET and AF_INET6 to support network user name services,
7020 e.g. NIS.
7021
7022 * When the RestrictNamespaces= unit property is specified multiple
7023 times, then the specified types are merged now. Previously, only the
7024 last assignment was used. So, if distribution packagers or
7025 administrators modified the setting by a drop-in config file, then it
7026 may be necessary to update the file.
e0eee477 7027
1fc83d09
LP
7028 * When OnFailure= is used in combination with Restart= on a service
7029 unit, then the specified units will no longer be triggered on
7030 failures that result in restarting. Previously, the specified units
7031 would be activated each time the unit failed, even when the unit was
7032 going to be restarted automatically. This behaviour contradicted the
7033 documentation. With this release the code is adjusted to match the
7034 documentation.
7035
41a4c3ec
LP
7036 * systemd-tmpfiles will now print a notice whenever it encounters
7037 tmpfiles.d/ lines referencing the /var/run/ directory. It will
7038 recommend reworking them to use the /run/ directory instead (for
5cadf58e
ZJS
7039 which /var/run/ is simply a symlinked compatibility alias). This way
7040 systemd-tmpfiles can properly detect line conflicts and merge lines
7041 referencing the same file by two paths, without having to access
7042 them.
41a4c3ec 7043
ce55bd5e
ZJS
7044 * systemctl disable/unmask/preset/preset-all cannot be used with
7045 --runtime. Previously this was allowed, but resulted in unintuitive
fe903cf4
LP
7046 behaviour that wasn't useful. systemctl disable/unmask will now undo
7047 both runtime and persistent enablement/masking, i.e. it will remove
7048 any relevant symlinks both in /run and /etc.
ce55bd5e 7049
e01d9e21 7050 * Note that all long-running system services shipped with systemd will
6b000af4 7051 now default to a system call allow list (rather than a deny list, as
e01d9e21
LP
7052 before). In particular, systemd-udevd will now enforce one too. For
7053 most cases this should be safe, however downstream distributions
7054 which disabled sandboxing of systemd-udevd (specifically the
7055 MountFlags= setting), might want to disable this security feature
6b000af4 7056 too, as the default allow-listing will prohibit all mount, swap,
e01d9e21
LP
7057 reboot and clock changing operations from udev rules.
7058
5cadf58e
ZJS
7059 * sd-boot acquired new loader configuration settings to optionally turn
7060 off Windows and MacOS boot partition discovery as well as
7061 reboot-into-firmware menu items. It is also able to pick a better
7062 screen resolution for HiDPI systems, and now provides loader
41a4c3ec
LP
7063 configuration settings to change the resolution explicitly.
7064
c9299be2
IT
7065 * systemd-resolved now supports DNS-over-TLS. It's still
7066 turned off by default, use DNSOverTLS=opportunistic to turn it on in
c086ce8c
LP
7067 resolved.conf. We intend to make this the default as soon as couple
7068 of additional techniques for optimizing the initial latency caused by
7069 establishing a TLS/TCP connection are implemented.
7070
73c718a9
YW
7071 * systemd-resolved.service and systemd-networkd.service now set
7072 DynamicUser=yes. The users systemd-resolve and systemd-network are
abc291aa
LP
7073 not created by systemd-sysusers anymore.
7074
7075 NOTE: This has a chance of breaking nss-ldap and similar NSS modules
5238e957 7076 that embed a network facing module into any process using getpwuid()
abc291aa
LP
7077 or related call: the dynamic allocation of the user ID for
7078 systemd-resolved.service means the service manager has to check NSS
7079 if the user name is already taken when forking off the service. Since
7080 the user in the common case won't be defined in /etc/passwd the
7081 lookup is likely to trigger nss-ldap which in turn might use NSS to
7082 ask systemd-resolved for hostname lookups. This will hence result in
7083 a deadlock: a user name lookup in order to start
38b38500 7084 systemd-resolved.service will result in a hostname lookup for which
abc291aa
LP
7085 systemd-resolved.service needs to be started already. There are
7086 multiple ways to work around this problem: pre-allocate the
7087 "systemd-resolve" user on such systems, so that nss-ldap won't be
7088 triggered; or use a different NSS package that doesn't do networking
7089 in-process but provides a local asynchronous name cache; or configure
7090 the NSS package to avoid lookups for UIDs in the range `pkg-config
7091 systemd --variable=dynamicuidmin` … `pkg-config systemd
7092 --variable=dynamicuidmax`, so that it does not consider itself
7093 authoritative for the same UID range systemd allocates dynamic users
7094 from.
73c718a9 7095
41a4c3ec
LP
7096 * The systemd-resolve tool has been renamed to resolvectl (it also
7097 remains available under the old name, for compatibility), and its
7098 interface is now verb-based, similar in style to the other <xyz>ctl
5cadf58e
ZJS
7099 tools, such as systemctl or loginctl.
7100
75da262a
LP
7101 * The resolvectl/systemd-resolve tool also provides 'resolvconf'
7102 compatibility. It may be symlinked under the 'resolvconf' name, in
5cadf58e
ZJS
7103 which case it will take arguments and input compatible with the
7104 Debian and FreeBSD resolvconf tool.
41a4c3ec
LP
7105
7106 * Support for suspend-then-hibernate has been added, i.e. a sleep mode
3f9a0a52 7107 where the system initially suspends, and after a timeout resumes and
41a4c3ec
LP
7108 hibernates again.
7109
7110 * networkd's ClientIdentifier= now accepts a new option "duid-only". If
7111 set the client will only send a DUID as client identifier.
7112
7113 * The nss-systemd glibc NSS module will now enumerate dynamic users and
7114 groups in effect. Previously, it could resolve UIDs/GIDs to user
7115 names/groups and vice versa, but did not support enumeration.
7116
7117 * journald's Compress= configuration setting now optionally accepts a
7118 byte threshold value. All journal objects larger than this threshold
7119 will be compressed, smaller ones will not. Previously this threshold
7120 was not configurable and set to 512.
7121
5cadf58e
ZJS
7122 * A new system.conf setting NoNewPrivileges= is now available which may
7123 be used to turn off acquisition of new privileges system-wide
7124 (i.e. set Linux' PR_SET_NO_NEW_PRIVS for PID 1 itself, and thus also
7125 for all its children). Note that turning this option on means setuid
7126 binaries and file system capabilities lose their special powers.
7127 While turning on this option is a big step towards a more secure
7128 system, doing so is likely to break numerous pre-existing UNIX tools,
7129 in particular su and sudo.
41a4c3ec
LP
7130
7131 * A new service systemd-time-sync-wait.service has been added. If
7132 enabled it will delay the time-sync.target unit at boot until time
bc99dac5 7133 synchronization has been received from the network. This
41a4c3ec
LP
7134 functionality is useful on systems lacking a local RTC or where it is
7135 acceptable that the boot process shall be delayed by external network
7136 services.
7137
7138 * When hibernating, systemd will now inform the kernel of the image
7139 write offset, on kernels new enough to support this. This means swap
7140 files should work for hibernation now.
7141
5cadf58e
ZJS
7142 * When loading unit files, systemd will now look for drop-in unit files
7143 extensions in additional places. Previously, for a unit file name
41a4c3ec
LP
7144 "foo-bar-baz.service" it would look for dropin files in
7145 "foo-bar-baz.service.d/*.conf". Now, it will also look in
7146 "foo-bar-.service.d/*.conf" and "foo-.service.d/", i.e. at the
7147 service name truncated after all inner dashes. This scheme allows
7148 writing drop-ins easily that apply to a whole set of unit files at
7149 once. It's particularly useful for mount and slice units (as their
5cadf58e
ZJS
7150 naming is prefix based), but is also useful for service and other
7151 units, for packages that install multiple unit files at once,
41a4c3ec 7152 following a strict naming regime of beginning the unit file name with
5cadf58e
ZJS
7153 the package's name. Two new specifiers are now supported in unit
7154 files to match this: %j and %J are replaced by the part of the unit
7155 name following the last dash.
7156
7157 * Unit files and other configuration files that support specifier
88099359 7158 expansion now understand another three new specifiers: %T and %V will
5cadf58e 7159 resolve to /tmp and /var/tmp respectively, or whatever temporary
88099359
ZJS
7160 directory has been set for the calling user. %E will expand to either
7161 /etc (for system units) or $XDG_CONFIG_HOME (for user units).
41a4c3ec
LP
7162
7163 * The ExecStart= lines of unit files are no longer required to
7164 reference absolute paths. If non-absolute paths are specified the
7165 specified binary name is searched within the service manager's
5cadf58e
ZJS
7166 built-in $PATH, which may be queried with 'systemd-path
7167 search-binaries-default'. It's generally recommended to continue to
7168 use absolute paths for all binaries specified in unit files.
41a4c3ec 7169
c7f93e28
ZJS
7170 * Units gained a new load state "bad-setting", which is used when a
7171 unit file was loaded, but contained fatal errors which prevent it
ba1dc1a1
LP
7172 from being started (for example, a service unit has been defined
7173 lacking both ExecStart= and ExecStop= lines).
c7f93e28 7174
41a4c3ec
LP
7175 * coredumpctl's "gdb" verb has been renamed to "debug", in order to
7176 support alternative debuggers, for example lldb. The old name
7177 continues to be available however, for compatibility reasons. Use the
5cadf58e
ZJS
7178 new --debugger= switch or the $SYSTEMD_DEBUGGER environment variable
7179 to pick an alternative debugger instead of the default gdb.
41a4c3ec
LP
7180
7181 * systemctl and the other tools will now output escape sequences that
7182 generate proper clickable hyperlinks in various terminal emulators
7183 where useful (for example, in the "systemctl status" output you can
7184 now click on the unit file name to quickly open it in the
7185 editor/viewer of your choice). Note that not all terminal emulators
7186 support this functionality yet, but many do. Unfortunately, the
7187 "less" pager doesn't support this yet, hence this functionality is
7188 currently automatically turned off when a pager is started (which
7189 happens quite often due to auto-paging). We hope to remove this
5cadf58e
ZJS
7190 limitation as soon as "less" learns these escape sequences. This new
7191 behaviour may also be turned off explicitly with the $SYSTEMD_URLIFY
7192 environment variable. For details on these escape sequences see:
41a4c3ec
LP
7193 https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
7194
7195 * networkd's .network files now support a new IPv6MTUBytes= option for
7196 setting the MTU used by IPv6 explicitly as well as a new MTUBytes=
7197 option in the [Route] section to configure the MTU to use for
7198 specific routes. It also gained support for configuration of the DHCP
7199 "UserClass" option through the new UserClass= setting. It gained
7200 three new options in the new [CAN] section for configuring CAN
7201 networks. The MULTICAST and ALLMULTI interface flags may now be
7202 controlled explicitly with the new Multicast= and AllMulticast=
7203 settings.
7204
7205 * networkd will now automatically make use of the kernel's route
7206 expiration feature, if it is available.
7207
5cadf58e
ZJS
7208 * udevd's .link files now support setting the number of receive and
7209 transmit channels, using the RxChannels=, TxChannels=,
7210 OtherChannels=, CombinedChannels= settings.
7211
7212 * Support for UDPSegmentationOffload= has been removed, given its
7213 limited support in hardware, and waning software support.
41a4c3ec
LP
7214
7215 * networkd's .netdev files now support creating "netdevsim" interfaces.
7216
7217 * PID 1 learnt a new bus call GetUnitByControlGroup() which may be used
7218 to query the unit belonging to a specific kernel control group.
7219
5cadf58e 7220 * systemd-analyze gained a new verb "cat-config", which may be used to
41a4c3ec
LP
7221 dump the contents of any configuration file, with all its matching
7222 drop-in files added in, and honouring the usual search and masking
7223 logic applied to systemd configuration files. For example use
7224 "systemd-analyze cat-config systemd/system.conf" to get the complete
7225 system configuration file of systemd how it would be loaded by PID 1
5cadf58e
ZJS
7226 itself. Similar to this, various tools such as systemd-tmpfiles or
7227 systemd-sysusers, gained a new option "--cat-config", which does the
41a4c3ec
LP
7228 corresponding operation for their own configuration settings. For
7229 example, "systemd-tmpfiles --cat-config" will now output the full
7230 list of tmpfiles.d/ lines in place.
7231
704ae536
YW
7232 * timedatectl gained three new verbs: "show" shows bus properties of
7233 systemd-timedated, "timesync-status" shows the current NTP
7234 synchronization state of systemd-timesyncd, and "show-timesync"
7235 shows bus properties of systemd-timesyncd.
41a4c3ec
LP
7236
7237 * systemd-timesyncd gained a bus interface on which it exposes details
7238 about its state.
7239
73c718a9
YW
7240 * A new environment variable $SYSTEMD_TIMEDATED_NTP_SERVICES is now
7241 understood by systemd-timedated. It takes a colon-separated list of
7242 unit names of NTP client services. The list is used by
7243 "timedatectl set-ntp".
7244
41a4c3ec
LP
7245 * systemd-nspawn gained a new --rlimit= switch for setting initial
7246 resource limits for the container payload. There's a new switch
5cadf58e 7247 --hostname= to explicitly override the container's hostname. A new
41a4c3ec
LP
7248 --no-new-privileges= switch may be used to control the
7249 PR_SET_NO_NEW_PRIVS flag for the container payload. A new
7250 --oom-score-adjust= switch controls the OOM scoring adjustment value
7251 for the payload. The new --cpu-affinity= switch controls the CPU
7252 affinity of the container payload. The new --resolv-conf= switch
7253 allows more detailed control of /etc/resolv.conf handling of the
5cadf58e 7254 container. Similarly, the new --timezone= switch allows more detailed
41a4c3ec
LP
7255 control of /etc/localtime handling of the container.
7256
5cadf58e 7257 * systemd-detect-virt gained a new --list switch, which will print a
41a4c3ec
LP
7258 list of all currently known VM and container environments.
7259
5cadf58e 7260 * Support for "Portable Services" has been added, see
41a4c3ec 7261 doc/PORTABLE_SERVICES.md for details. Currently, the support is still
5cadf58e
ZJS
7262 experimental, but this is expected to change soon. Reflecting this
7263 experimental state, the "portablectl" binary is not installed into
41a4c3ec
LP
7264 /usr/bin yet. The binary has to be called with the full path
7265 /usr/lib/systemd/portablectl instead.
7266
7267 * journalctl's and systemctl's -o switch now knows a new log output
7268 mode "with-unit". The output it generates is very similar to the
7269 regular "short" mode, but displays the unit name instead of the
7270 syslog tag for each log line. Also, the date is shown with timezone
7271 information. This mode is probably more useful than the classic
7272 "short" output mode for most purposes, except where pixel-perfect
7273 compatibility with classic /var/log/messages formatting is required.
7274
7275 * A new --dump-bus-properties switch has been added to the systemd
7276 binary, which may be used to dump all supported D-Bus properties.
c7f93e28
ZJS
7277 (Options which are still supported, but are deprecated, are *not*
7278 shown.)
41a4c3ec 7279
41a4c3ec
LP
7280 * sd-bus gained a set of new calls:
7281 sd_bus_slot_set_floating()/sd_bus_slot_get_floating() may be used to
7282 enable/disable the "floating" state of a bus slot object,
7283 i.e. whether the slot object pins the bus it is allocated for into
7284 memory or if the bus slot object gets disconnected when the bus goes
7285 away. sd_bus_open_with_description(),
7286 sd_bus_open_user_with_description(),
7287 sd_bus_open_system_with_description() may be used to allocate bus
7288 objects and set their description string already during allocation.
7289
7290 * sd-event gained support for watching inotify events from the event
7291 loop, in an efficient way, sharing inotify handles between multiple
7292 users. For this a new function sd_event_add_inotify() has been added.
7293
7294 * sd-event and sd-bus gained support for calling special user-supplied
7295 destructor functions for userdata pointers associated with
c7f93e28
ZJS
7296 sd_event_source, sd_bus_slot, and sd_bus_track objects. For this new
7297 functions sd_bus_slot_set_destroy_callback,
7298 sd_bus_slot_get_destroy_callback, sd_bus_track_set_destroy_callback,
7299 sd_bus_track_get_destroy_callback,
7300 sd_event_source_set_destroy_callback,
7301 sd_event_source_get_destroy_callback have been added.
41a4c3ec
LP
7302
7303 * The "net.ipv4.tcp_ecn" sysctl will now be turned on by default.
7304
7305 * PID 1 will now automatically reschedule .timer units whenever the
5cadf58e 7306 local timezone changes. (They previously got rescheduled
41a4c3ec
LP
7307 automatically when the system clock changed.)
7308
7309 * New documentation has been added to document cgroups delegation,
7310 portable services and the various code quality tools we have set up:
7311
a8a27374
SK
7312 https://github.com/systemd/systemd/blob/master/docs/CGROUP_DELEGATION.md
7313 https://github.com/systemd/systemd/blob/master/docs/PORTABLE_SERVICES.md
7314 https://github.com/systemd/systemd/blob/master/docs/CODE_QUALITY.md
41a4c3ec 7315
d6906108
LP
7316 * The Boot Loader Specification has been added to the source tree.
7317
a8a27374 7318 https://github.com/systemd/systemd/blob/master/docs/BOOT_LOADER_SPECIFICATION.md
d6906108
LP
7319
7320 While moving it into our source tree we have updated it and further
7321 changes are now accepted through the usual github PR workflow.
7322
41a4c3ec
LP
7323 * pam_systemd will now look for PAM userdata fields systemd.memory_max,
7324 systemd.tasks_max, systemd.cpu_weight, systemd.io_weight set by
7325 earlier PAM modules. The data in these fields is used to initialize
7326 the session scope's resource properties. Thus external PAM modules
7327 may now configure per-session limits, for example sourced from
7328 external user databases.
7329
7330 * socket units with Accept=yes will now maintain a "refused" counter in
7331 addition to the existing "accepted" counter, counting connections
7332 refused due to the enforced limits.
7333
7334 * The "systemd-path search-binaries-default" command may now be use to
7335 query the default, built-in $PATH PID 1 will pass to the services it
7336 manages.
7337
c49a7cbd
LP
7338 * A new unit file setting PrivateMounts= has been added. It's a boolean
7339 option. If enabled the unit's processes are invoked in their own file
7340 system namespace. Note that this behaviour is also implied if any
7341 other file system namespacing options (such as PrivateTmp=,
7342 PrivateDevices=, ProtectSystem=, …) are used. This option is hence
7343 primarily useful for services that do not use any of the other file
7344 system namespacing options. One such service is systemd-udevd.service
5238e957 7345 where this is now used by default.
c49a7cbd 7346
57ab451e
ZJS
7347 * ConditionSecurity= gained a new value "uefi-secureboot" that is true
7348 when the system is booted in UEFI "secure mode".
7349
c7668c1c
LP
7350 * A new unit "system-update-pre.target" is added, which defines an
7351 optional synchronization point for offline system updates, as
7352 implemented by the pre-existing "system-update.target" unit. It
7353 allows ordering services before the service that executes the actual
7354 update process in a generic way.
7355
f26ad321
ZJS
7356 * Systemd now emits warnings whenever .include syntax is used.
7357
41a4c3ec 7358 Contributions from: Adam Duskett, Alan Jenkins, Alessandro Casale,
ec53d48c 7359 Alexander Kurtz, Alex Gartrell, Anssi Hannula, Arnaud Rebillout, Brian
bb6f071f
LP
7360 J. Murrell, Bruno Vernay, Chris Lamb, Chris Lesiak, Christian Brauner,
7361 Christian Hesse, Christian Rebischke, Colin Guthrie, Daniel Dao, Daniel
7362 Lin, Danylo Korostil, Davide Cavalca, David Tardon, Dimitri John
7363 Ledkov, Dmitriy Geels, Douglas Christman, Elia Geretto, emelenas, Emil
7364 Velikov, Evgeny Vereshchagin, Felipe Sateler, Feng Sun, Filipe
7365 Brandenburger, Franck Bui, futpib, Giuseppe Scrivano, Guillem Jover,
7366 guixxx, Hannes Reinecke, Hans de Goede, Harald Hoyer, Henrique Dante de
7367 Almeida, Hiram van Paassen, Ian Miell, Igor Gnatenko, Ivan Shapovalov,
7368 Iwan Timmer, James Cowgill, Jan Janssen, Jan Synacek, Jared Kazimir,
7369 Jérémy Rosen, João Paulo Rechi Vita, Joost Heitbrink, Jui-Chi Ricky
7370 Liang, Jürg Billeter, Kai-Heng Feng, Karol Augustin, Kay Sievers,
7371 Krzysztof Nowicki, Lauri Tirkkonen, Lennart Poettering, Leonard König,
7372 Long Li, Luca Boccassi, Lucas Werkmeister, Marcel Hoppe, Marc
7373 Kleine-Budde, Mario Limonciello, Martin Jansa, Martin Wilck, Mathieu
7374 Malaterre, Matteo F. Vescovi, Matthew McGinn, Matthias-Christian Ott,
7375 Michael Biebl, Michael Olbrich, Michael Prokop, Michal Koutný, Michal
7376 Sekletar, Mike Gilbert, Mikhail Kasimov, Milan Broz, Milan Pässler,
7377 Mladen Pejaković, Muhammet Kara, Nicolas Boichat, Omer Katz, Paride
7378 Legovini, Paul Menzel, Paul Milliken, Pavel Hrdina, Peter A. Bigot,
7379 Peter D'Hoye, Peter Hutterer, Peter Jones, Philip Sequeira, Philip
61d0025d 7380 Withnall, Piotr Drąg, Radostin Stoyanov, Ricardo Salveti de Araujo,
bb6f071f
LP
7381 Ronny Chevalier, Rosen Penev, Rubén Suárez Alvarez, Ryan Gonzalez,
7382 Salvo Tomaselli, Sebastian Reichel, Sergey Ptashnick, Sergio Lindo
7383 Mansilla, Stefan Schweter, Stephen Hemminger, Stuart Hayes, Susant
7384 Sahani, Sylvain Plantefève, Thomas H. P. Andersen, Tobias Jungel,
7385 Tomasz Torcz, Vito Caputo, Will Dietz, Will Thompson, Wim van Mourik,
7386 Yu Watanabe, Zbigniew Jędrzejewski-Szmek
41a4c3ec 7387
e8498f82 7388 — Berlin, 2018-06-22
41a4c3ec 7389
c657bff1 7390CHANGES WITH 238:
e0c46a73
LP
7391
7392 * The MemoryAccounting= unit property now defaults to on. After
7393 discussions with the upstream control group maintainers we learnt
7394 that the negative impact of cgroup memory accounting on current
7395 kernels is finally relatively minimal, so that it should be safe to
444d5863
ZJS
7396 enable this by default without affecting system performance. Besides
7397 memory accounting only task accounting is turned on by default, all
7398 other forms of resource accounting (CPU, IO, IP) remain off for now,
7399 because it's not clear yet that their impact is small enough to move
7400 from opt-in to opt-out. We recommend downstreams to leave memory
07a35e84 7401 accounting on by default if kernel 4.14 or higher is primarily
444d5863
ZJS
7402 used. On very resource constrained systems or when support for old
7403 kernels is a necessity, -Dmemory-accounting-default=false can be used
7404 to revert this change.
e0c46a73 7405
313c32c3
ZJS
7406 * rpm scriptlets to update the udev hwdb and rules (%udev_hwdb_update,
7407 %udev_rules_update) and the journal catalog (%journal_catalog_update)
7408 from the upgrade scriptlets of individual packages now do nothing.
7409 Transfiletriggers have been added which will perform those updates
7410 once at the end of the transaction.
7411
7412 Similar transfiletriggers have been added to execute any sysctl.d
7413 and binfmt.d rules. Thus, it should be unnecessary to provide any
7414 scriptlets to execute this configuration from package installation
7415 scripts.
7416
7417 * systemd-sysusers gained a mode where the configuration to execute is
7418 specified on the command line, but this configuration is not executed
7419 directly, but instead it is merged with the configuration on disk,
7420 and the result is executed. This is useful for package installation
7421 scripts which want to create the user before installing any files on
7422 disk (in case some of those files are owned by that user), while
7423 still allowing local admin overrides.
7424
07a35e84 7425 This functionality is exposed to rpm scriptlets through a new
313c32c3
ZJS
7426 %sysusers_create_package macro. Old %sysusers_create and
7427 %sysusers_create_inline macros are deprecated.
7428
7429 A transfiletrigger for sysusers.d configuration is now installed,
07a35e84 7430 which means that it should be unnecessary to call systemd-sysusers from
313c32c3
ZJS
7431 package installation scripts, unless the package installs any files
7432 owned by those newly-created users, in which case
7433 %sysusers_create_package should be used.
7434
7435 * Analogous change has been done for systemd-tmpfiles: it gained a mode
7436 where the command-line configuration is merged with the configuration
7437 on disk. This is exposed as the new %tmpfiles_create_package macro,
7438 and %tmpfiles_create is deprecated. A transfiletrigger is installed
7439 for tmpfiles.d, hence it should be unnecessary to call systemd-tmpfiles
7440 from package installation scripts.
7441
7442 * sysusers.d configuration for a user may now also specify the group
7443 number, in addition to the user number ("u username 123:456"), or
7444 without the user number ("u username -:456").
7445
7446 * Configution items for systemd-sysusers can now be specified as
7447 positional arguments when the new --inline switch is used.
7448
7449 * The login shell of users created through sysusers.d may now be
7450 specified (previously, it was always /bin/sh for root and
7451 /sbin/nologin for other users).
7452
7453 * systemd-analyze gained a new --global switch to look at global user
7454 configuration. It also gained a unit-paths verb to list the unit load
7455 paths that are compiled into systemd (which can be used with
7456 --systemd, --user, or --global).
7457
7458 * udevadm trigger gained a new --settle/-w option to wait for any
7459 triggered events to finish (but just those, and not any other events
7460 which are triggered meanwhile).
7461
7462 * The action that systemd-logind takes when the lid is closed and the
7463 machine is connected to external power can now be configured using
7464 HandleLidSwitchExternalPower= in logind.conf. Previously, this action
7465 was determined by HandleLidSwitch=, and, for backwards compatibility,
7466 is still is, if HandleLidSwitchExternalPower= is not explicitly set.
7467
7468 * journalctl will periodically call sd_journal_process() to make it
7469 resilient against inotify queue overruns when journal files are
7470 rotated very quickly.
7471
7472 * Two new functions in libsystemd — sd_bus_get_n_queued_read and
7473 sd_bus_get_n_queued_write — may be used to check the number of
7474 pending bus messages.
7475
7476 * systemd gained a new
7477 org.freedesktop.systemd1.Manager.AttachProcessesToUnit dbus call
7478 which can be used to migrate foreign processes to scope and service
7479 units. The primary user for this new API is systemd itself: the
7480 systemd --user instance uses this call of the systemd --system
7481 instance to migrate processes if it itself gets the request to
7482 migrate processes and the kernel refuses this due to access
7483 restrictions. Thanks to this "systemd-run --scope --user …" works
4e1dfa45 7484 again in pure cgroup v2 environments when invoked from the user
313c32c3
ZJS
7485 session scope.
7486
7487 * A new TemporaryFileSystem= setting can be used to mask out part of
7488 the real file system tree with tmpfs mounts. This may be combined
7489 with BindPaths= and BindReadOnlyPaths= to hide files or directories
7490 not relevant to the unit, while still allowing some paths lower in
7491 the tree to be accessed.
7492
7493 ProtectHome=tmpfs may now be used to hide user home and runtime
7494 directories from units, in a way that is mostly equivalent to
7495 "TemporaryFileSystem=/home /run/user /root".
7496
7497 * Non-service units are now started with KeyringMode=shared by default.
7498 This means that mount and swapon and other mount tools have access
7499 to keys in the main keyring.
7500
7501 * /sys/fs/bpf is now mounted automatically.
7502
7503 * QNX virtualization is now detected by systemd-detect-virt and may
7504 be used in ConditionVirtualization=.
7505
7506 * IPAccounting= may now be enabled also for slice units.
7507
7508 * A new -Dsplit-bin= build configuration switch may be used to specify
7509 whether bin and sbin directories are merged, or if they should be
7510 included separately in $PATH and various listings of executable
7511 directories. The build configuration scripts will try to autodetect
7512 the proper values of -Dsplit-usr= and -Dsplit-bin= based on build
7513 system, but distributions are encouraged to configure this
7514 explicitly.
7515
7516 * A new -Dok-color= build configuration switch may be used to change
7517 the colour of "OK" status messages.
7518
7519 * UPGRADE ISSUE: serialization of units using JoinsNamespaceOf= with
7520 PrivateNetwork=yes was buggy in previous versions of systemd. This
7521 means that after the upgrade and daemon-reexec, any such units must
7522 be restarted.
7523
7524 * INCOMPATIBILITY: as announced in the NEWS for 237, systemd-tmpfiles
7525 will not exclude read-only files owned by root from cleanup.
7526
c657bff1
ZJS
7527 Contributions from: Alan Jenkins, Alexander F Rødseth, Alexis Jeandet,
7528 Andika Triwidada, Andrei Gherzan, Ansgar Burchardt, antizealot1337,
7529 Batuhan Osman Taşkaya, Beniamino Galvani, Bill Yodlowsky, Caio Marcelo
7530 de Oliveira Filho, CuBiC, Daniele Medri, Daniel Mouritzen, Daniel
7531 Rusek, Davide Cavalca, Dimitri John Ledkov, Douglas Christman, Evgeny
7532 Vereshchagin, Faalagorn, Filipe Brandenburger, Franck Bui, futpib,
7533 Giacomo Longo, Gunnar Hjalmarsson, Hans de Goede, Hermann Gausterer,
7534 Iago López Galeiras, Jakub Filak, Jan Synacek, Jason A. Donenfeld,
7535 Javier Martinez Canillas, Jérémy Rosen, Lennart Poettering, Lucas
7536 Werkmeister, Mao Huang, Marco Gulino, Michael Biebl, Michael Vogt,
7537 MilhouseVH, Neal Gompa (ニール・ゴンパ), Oleander Reis, Olof Mogren,
7538 Patrick Uiterwijk, Peter Hutterer, Peter Portante, Piotr Drąg, Robert
7539 Antoni Buj Gelonch, Sergey Ptashnick, Shawn Landden, Shuang Liu, Simon
7540 Fowler, SjonHortensius, snorreflorre, Susant Sahani, Sylvain
7541 Plantefève, Thomas Blume, Thomas Haller, Vito Caputo, Yu Watanabe,
7542 Zbigniew Jędrzejewski-Szmek, Марко М. Костић (Marko M. Kostić)
7543
7544 — Warsaw, 2018-03-05
7545
82c8e3e6 7546CHANGES WITH 237:
2b0c59ba
MP
7547
7548 * Some keyboards come with a zoom see-saw or rocker which until now got
7549 mapped to the Linux "zoomin/out" keys in hwdb. However, these
7550 keycodes are not recognized by any major desktop. They now produce
7551 Up/Down key events so that they can be used for scrolling.
7552
49e87292
LP
7553 * INCOMPATIBILITY: systemd-tmpfiles' "f" lines changed behaviour
7554 slightly: previously, if an argument was specified for lines of this
7555 type (i.e. the right-most column was set) this string was appended to
7556 existing files each time systemd-tmpfiles was run. This behaviour was
7557 different from what the documentation said, and not particularly
7558 useful, as repeated systemd-tmpfiles invocations would not be
7559 idempotent and grow such files without bounds. With this release
15c5594b
ZJS
7560 behaviour has been altered to match what the documentation says:
7561 lines of this type only have an effect if the indicated files don't
7562 exist yet, and only then the argument string is written to the file.
49e87292 7563
82c8e3e6
LP
7564 * FUTURE INCOMPATIBILITY: In systemd v238 we intend to slightly change
7565 systemd-tmpfiles behaviour: previously, read-only files owned by root
7566 were always excluded from the file "aging" algorithm (i.e. the
7567 automatic clean-up of directories like /tmp based on
7568 atime/mtime/ctime). We intend to drop this restriction, and age files
7569 by default even when owned by root and read-only. This behaviour was
7570 inherited from older tools, but there have been requests to remove
7571 it, and it's not obvious why this restriction was made in the first
28423d9a 7572 place. Please speak up now, if you are aware of software that requires
82c8e3e6
LP
7573 this behaviour, otherwise we'll remove the restriction in v238.
7574
95894b91
LP
7575 * A new environment variable $SYSTEMD_OFFLINE is now understood by
7576 systemctl. It takes a boolean argument. If on, systemctl assumes it
7577 operates on an "offline" OS tree, and will not attempt to talk to the
7578 service manager. Previously, this mode was implicitly enabled if a
7579 chroot() environment was detected, and this new environment variable
7580 now provides explicit control.
7581
1a0cd2c7
ZJS
7582 * .path and .socket units may now be created transiently, too.
7583 Previously only service, mount, automount and timer units were
95894b91
LP
7584 supported as transient units. The systemd-run tool has been updated
7585 to expose this new functionality, you may hence use it now to bind
7586 arbitrary commands to path or socket activation on-the-fly from the
1a0cd2c7
ZJS
7587 command line. Moreover, almost all properties are now exposed for the
7588 unit types that already supported transient operation.
95894b91
LP
7589
7590 * The systemd-mount command gained support for a new --owner= parameter
7591 which takes a user name, which is then resolved and included in uid=
7592 and gid= mount options string of the file system to mount.
7593
7594 * A new unit condition ConditionControlGroupController= has been added
7595 that checks whether a specific cgroup controller is available.
7596
7597 * Unit files, udev's .link files, and systemd-networkd's .netdev and
7598 .network files all gained support for a new condition
7599 ConditionKernelVersion= for checking against specific kernel
7600 versions.
7601
7602 * In systemd-networkd, the [IPVLAN] section in .netdev files gained
6cddc792 7603 support for configuring device flags in the Flags= setting. In the
95894b91
LP
7604 same files, the [Tunnel] section gained support for configuring
7605 AllowLocalRemote=. The [Route] section in .network files gained
7606 support for configuring InitialCongestionWindow=,
7607 InitialAdvertisedReceiveWindow= and QuickAck=. The [DHCP] section now
7608 understands RapidCommit=.
7609
7610 * systemd-networkd's DHCPv6 support gained support for Prefix
7611 Delegation.
7612
7613 * sd-bus gained support for a new "watch-bind" feature. When this
7614 feature is enabled, an sd_bus connection may be set up to connect to
7615 an AF_UNIX socket in the file system as soon as it is created. This
7616 functionality is useful for writing early-boot services that
7617 automatically connect to the system bus as soon as it is started,
7618 without ugly time-based polling. systemd-networkd and
7619 systemd-resolved have been updated to make use of this
7620 functionality. busctl exposes this functionality in a new
7621 --watch-bind= command line switch.
7622
7623 * sd-bus will now optionally synthesize a local "Connected" signal as
7624 soon as a D-Bus connection is set up fully. This message mirrors the
7625 already existing "Disconnected" signal which is synthesized when the
7626 connection is terminated. This signal is generally useful but
7627 particularly handy in combination with the "watch-bind" feature
7628 described above. Synthesizing of this message has to be requested
7629 explicitly through the new API call sd_bus_set_connected_signal(). In
7630 addition a new call sd_bus_is_ready() has been added that checks
caf2a2d8 7631 whether a connection is fully set up (i.e. between the "Connected" and
95894b91
LP
7632 "Disconnected" signals).
7633
7634 * sd-bus gained two new calls sd_bus_request_name_async() and
7635 sd_bus_release_name_async() for asynchronously registering bus
7636 names. Similar, there is now sd_bus_add_match_async() for installing
7637 a signal match asynchronously. All of systemd's own services have
7638 been updated to make use of these calls. Doing these operations
7639 asynchronously has two benefits: it reduces the risk of deadlocks in
7640 case of cyclic dependencies between bus services, and it speeds up
7641 service initialization since synchronization points for bus
7642 round-trips are removed.
7643
7644 * sd-bus gained two new calls sd_bus_match_signal() and
7645 sd_bus_match_signal_async(), which are similar to sd_bus_add_match()
7646 and sd_bus_add_match_async() but instead of taking a D-Bus match
7647 string take match fields as normal function parameters.
7648
7649 * sd-bus gained two new calls sd_bus_set_sender() and
7650 sd_bus_message_set_sender() for setting the sender name of outgoing
7651 messages (either for all outgoing messages or for just one specific
7652 one). These calls are only useful in direct connections as on
7653 brokered connections the broker fills in the sender anyway,
7654 overwriting whatever the client filled in.
7655
7656 * sd-event gained a new pseudo-handle that may be specified on all API
7657 calls where an "sd_event*" object is expected: SD_EVENT_DEFAULT. When
7658 used this refers to the default event loop object of the calling
7659 thread. Note however that this does not implicitly allocate one —
6cddc792
CR
7660 which has to be done prior by using sd_event_default(). Similarly
7661 sd-bus gained three new pseudo-handles SD_BUS_DEFAULT,
95894b91
LP
7662 SD_BUS_DEFAULT_USER, SD_BUS_DEFAULT_SYSTEM that may be used to refer
7663 to the default bus of the specified type of the calling thread. Here
7664 too this does not implicitly allocate bus connection objects, this
7665 has to be done prior with sd_bus_default() and friends.
7666
7667 * sd-event gained a new call pair
6cddc792
CR
7668 sd_event_source_{get|set}_io_fd_own(). This may be used to request
7669 automatic closure of the file descriptor an IO event source watches
95894b91
LP
7670 when the event source is destroyed.
7671
7672 * systemd-networkd gained support for natively configuring WireGuard
7673 connections.
7674
6cddc792
CR
7675 * In previous versions systemd synthesized user records both for the
7676 "nobody" (UID 65534) and "root" (UID 0) users in nss-systemd and
7677 internally. In order to simplify distribution-wide renames of the
95894b91
LP
7678 "nobody" user (like it is planned in Fedora: nfsnobody → nobody), a
7679 new transitional flag file has been added: if
7680 /etc/systemd/dont-synthesize-nobody exists synthesizing of the 65534
7681 user and group record within the systemd codebase is disabled.
7682
7683 * systemd-notify gained a new --uid= option for selecting the source
7684 user/UID to use for notification messages sent to the service
7685 manager.
7686
31751f7e 7687 * journalctl gained a new --grep= option to list only entries in which
e6501af8
ZJS
7688 the message matches a certain pattern. By default matching is case
7689 insensitive if the pattern is lowercase, and case sensitive
7690 otherwise. Option --case-sensitive=yes|no can be used to override
7691 this an specify case sensitivity or case insensitivity.
7692
56a29112 7693 * There's now a "systemd-analyze service-watchdogs" command for printing
508058c9 7694 the current state of the service runtime watchdog, and optionally
56a29112 7695 enabling or disabling the per-service watchdogs system-wide if given a
508058c9
LP
7696 boolean argument (i.e. the concept you configure in WatchdogSec=), for
7697 debugging purposes. There's also a kernel command line option
56a29112 7698 systemd.service_watchdogs= for controlling the same.
508058c9
LP
7699
7700 * Two new "log-level" and "log-target" options for systemd-analyze were
bc99dac5 7701 added that merge the now deprecated get-log-level, set-log-level and
508058c9
LP
7702 get-log-target, set-log-target pairs. The deprecated options are still
7703 understood for backwards compatibility. The two new options print the
7704 current value when no arguments are given, and set them when a
56a29112 7705 level/target is given as an argument.
95894b91 7706
508058c9
LP
7707 * sysusers.d's "u" lines now optionally accept both a UID and a GID
7708 specification, separated by a ":" character, in order to create users
7709 where UID and GID do not match.
7710
95894b91 7711 Contributions from: Adam Duskett, Alan Jenkins, Alexander Kuleshov,
508058c9
LP
7712 Alexis Deruelle, Andrew Jeddeloh, Armin Widegreen, Batuhan Osman
7713 Taşkaya, Björn Esser, bleep_blop, Bruce A. Johnson, Chris Down, Clinton
7714 Roy, Colin Walters, Daniel Rusek, Dimitri John Ledkov, Dmitry Rozhkov,
7715 Evgeny Vereshchagin, Ewout van Mansom, Felipe Sateler, Franck Bui,
7716 Frantisek Sumsal, George Gaydarov, Gianluca Boiano, Hans-Christian
7717 Noren Egtvedt, Hans de Goede, Henrik Grindal Bakken, Jan Alexander
7718 Steffens, Jan Klötzke, Jason A. Donenfeld, jdkbx, Jérémy Rosen,
7719 Jerónimo Borque, John Lin, John Paul Herold, Jonathan Rudenberg, Jörg
7720 Thalheim, Ken (Bitsko) MacLeod, Larry Bernstone, Lennart Poettering,
7721 Lucas Werkmeister, Maciej S. Szmigiero, Marek Čermák, Martin Pitt,
7722 Mathieu Malaterre, Matthew Thode, Matthias-Christian Ott, Max Harmathy,
7723 Michael Biebl, Michael Vogt, Michal Koutný, Michal Sekletar, Michał
7724 Szczepański, Mike Gilbert, Nathaniel McCallum, Nicolas Chauvet, Olaf
7725 Hering, Olivier Schwander, Patrik Flykt, Paul Cercueil, Peter Hutterer,
7726 Piotr Drąg, Raphael Vogelgsang, Reverend Homer, Robert Kolchmeyer,
7727 Samuel Dionne-Riel, Sergey Ptashnick, Shawn Landden, Susant Sahani,
7728 Sylvain Plantefève, Thomas H. P. Andersen, Thomas Huth, Tomasz
7729 Bachorski, Vladislav Vishnyakov, Wieland Hoffmann, Yu Watanabe, Zachary
7730 Winnerman, Zbigniew Jędrzejewski-Szmek, Дамјан Георгиевски, Дилян
7731 Палаузов
7732
7733 — Brno, 2018-01-28
2b0c59ba 7734
a1b2c92d 7735CHANGES WITH 236:
195b943d 7736
89780840
ZJS
7737 * The modprobe.d/ drop-in for the bonding.ko kernel module introduced
7738 in v235 has been extended to also set the dummy.ko module option
7739 numdummies=0, preventing the kernel from automatically creating
7740 dummy0. All dummy interfaces must now be explicitly created.
195b943d 7741
3925496a
LP
7742 * Unknown '%' specifiers in configuration files are now rejected. This
7743 applies to units and tmpfiles.d configuration. Any percent characters
7744 that are followed by a letter or digit that are not supposed to be
7745 interpreted as the beginning of a specifier should be escaped by
7746 doubling ("%%"). (So "size=5%" is still accepted, as well as
7747 "size=5%,foo=bar", but not "LABEL=x%y%z" since %y and %z are not
7748 valid specifiers today.)
751223fe 7749
e6b2d948 7750 * systemd-resolved now maintains a new dynamic
89780840
ZJS
7751 /run/systemd/resolve/stub-resolv.conf compatibility file. It is
7752 recommended to make /etc/resolv.conf a symlink to it. This file
7753 points at the systemd-resolved stub DNS 127.0.0.53 resolver and
7754 includes dynamically acquired search domains, achieving more correct
7755 DNS resolution by software that bypasses local DNS APIs such as NSS.
e6b2d948 7756
67eb5b38
LP
7757 * The "uaccess" udev tag has been dropped from /dev/kvm and
7758 /dev/dri/renderD*. These devices now have the 0666 permissions by
7759 default (but this may be changed at build-time). /dev/dri/renderD*
7760 will now be owned by the "render" group along with /dev/kfd.
7761
89780840
ZJS
7762 * "DynamicUser=yes" has been enabled for systemd-timesyncd.service,
7763 systemd-journal-gatewayd.service and
7764 systemd-journal-upload.service. This means "nss-systemd" must be
7765 enabled in /etc/nsswitch.conf to ensure the UIDs assigned to these
7766 services are resolved properly.
67eb5b38 7767
3925496a
LP
7768 * In /etc/fstab two new mount options are now understood:
7769 x-systemd.makefs and x-systemd.growfs. The former has the effect that
7770 the configured file system is formatted before it is mounted, the
7771 latter that the file system is resized to the full block device size
7772 after it is mounted (i.e. if the file system is smaller than the
7773 partition it resides on, it's grown). This is similar to the fsck
7774 logic in /etc/fstab, and pulls in systemd-makefs@.service and
7775 systemd-growfs@.service as necessary, similar to
7776 systemd-fsck@.service. Resizing is currently only supported on ext4
7777 and btrfs.
7778
67eb5b38
LP
7779 * In systemd-networkd, the IPv6 RA logic now optionally may announce
7780 DNS server and domain information.
7781
7782 * Support for the LUKS2 on-disk format for encrypted partitions has
7783 been added. This requires libcryptsetup2 during compilation and
7784 runtime.
7785
89780840 7786 * The systemd --user instance will now signal "readiness" when its
67eb5b38
LP
7787 basic.target unit has been reached, instead of when the run queue ran
7788 empty for the first time.
7789
8ea2dcb0
ZJS
7790 * Tmpfiles.d with user configuration are now also supported.
7791 systemd-tmpfiles gained a new --user switch, and snippets placed in
7792 ~/.config/user-tmpfiles.d/ and corresponding directories will be
7793 executed by systemd-tmpfiles --user running in the new
7794 systemd-tmpfiles-setup.service and systemd-tmpfiles-clean.service
7795 running in the user session.
7796
7797 * Unit files and tmpfiles.d snippets learnt three new % specifiers:
7798 %S resolves to the top-level state directory (/var/lib for the system
7799 instance, $XDG_CONFIG_HOME for the user instance), %C resolves to the
7800 top-level cache directory (/var/cache for the system instance,
7801 $XDG_CACHE_HOME for the user instance), %L resolves to the top-level
7802 logs directory (/var/log for the system instance,
67eb5b38 7803 $XDG_CONFIG_HOME/log/ for the user instance). This matches the
8ea2dcb0 7804 existing %t specifier, that resolves to the top-level runtime
67eb5b38
LP
7805 directory (/run for the system instance, and $XDG_RUNTIME_DIR for the
7806 user instance).
7807
7808 * journalctl learnt a new parameter --output-fields= for limiting the
7809 set of journal fields to output in verbose and JSON output modes.
7810
7811 * systemd-timesyncd's configuration file gained a new option
89780840
ZJS
7812 RootDistanceMaxSec= for setting the maximum root distance of servers
7813 it'll use, as well as the new options PollIntervalMinSec= and
7814 PollIntervalMaxSec= to tweak the minimum and maximum poll interval.
67eb5b38
LP
7815
7816 * bootctl gained a new command "list" for listing all available boot
89780840 7817 menu items on systems that follow the boot loader specification.
67eb5b38
LP
7818
7819 * systemctl gained a new --dry-run switch that shows what would be done
7820 instead of doing it, and is currently supported by the shutdown and
7821 sleep verbs.
7822
e9ad86d5 7823 * ConditionSecurity= can now detect the TOMOYO security module.
67eb5b38
LP
7824
7825 * Unit file [Install] sections are now also respected in unit drop-in
89780840 7826 files. This is intended to be used by drop-ins under /usr/lib/.
67eb5b38 7827
89780840 7828 * systemd-firstboot may now also set the initial keyboard mapping.
67eb5b38 7829
89780840
ZJS
7830 * Udev "changed" events for devices which are exposed as systemd
7831 .device units are now propagated to units specified in
7832 ReloadPropagatedFrom= as reload requests.
67eb5b38 7833
89780840
ZJS
7834 * If a udev device has a SYSTEMD_WANTS= property containing a systemd
7835 unit template name (i.e. a name in the form of 'foobar@.service',
7836 without the instance component between the '@' and - the '.'), then
7837 the escaped sysfs path of the device is automatically used as the
7838 instance.
67eb5b38
LP
7839
7840 * SystemCallFilter= in unit files has been extended so that an "errno"
7841 can be specified individually for each system call. Example:
7842 SystemCallFilter=~uname:EILSEQ.
7843
7844 * The cgroup delegation logic has been substantially updated. Delegate=
7845 now optionally takes a list of controllers (instead of a boolean, as
7846 before), which lists the controllers to delegate at least.
7847
89780840 7848 * The networkd DHCPv6 client now implements the FQDN option (RFC 4704).
67eb5b38 7849
89780840
ZJS
7850 * A new LogLevelMax= setting configures the maximum log level any
7851 process of the service may log at (i.e. anything with a lesser
7852 priority than what is specified is automatically dropped). A new
7853 LogExtraFields= setting allows configuration of additional journal
7854 fields to attach to all log records generated by any of the unit's
7855 processes.
67eb5b38 7856
89780840
ZJS
7857 * New StandardInputData= and StandardInputText= settings along with the
7858 new option StandardInput=data may be used to configure textual or
7859 binary data that shall be passed to the executed service process via
7860 standard input, encoded in-line in the unit file.
67eb5b38
LP
7861
7862 * StandardInput=, StandardOutput= and StandardError= may now be used to
7863 connect stdin/stdout/stderr of executed processes directly with a
7864 file or AF_UNIX socket in the file system, using the new "file:" option.
7865
89780840
ZJS
7866 * A new unit file option CollectMode= has been added, that allows
7867 tweaking the garbage collection logic for units. It may be used to
7868 tell systemd to garbage collect units that have failed automatically
7869 (normally it only GCs units that exited successfully). systemd-run
7870 and systemd-mount expose this new functionality with a new -G option.
7871
67eb5b38
LP
7872 * "machinectl bind" may now be used to bind mount non-directories
7873 (i.e. regularfiles, devices, fifos, sockets).
7874
7875 * systemd-analyze gained a new verb "calendar" for validating and
7876 testing calendar time specifications to use for OnCalendar= in timer
7877 units. Besides validating the expression it will calculate the next
7878 time the specified expression would elapse.
7879
7880 * In addition to the pre-existing FailureAction= unit file setting
89780840
ZJS
7881 there's now SuccessAction=, for configuring a shutdown action to
7882 execute when a unit completes successfully. This is useful in
7883 particular inside containers that shall terminate after some workload
7884 has been completed. Also, both options are now supported for all unit
7885 types, not just services.
67eb5b38
LP
7886
7887 * networkds's IP rule support gained two new options
dd014eeb 7888 IncomingInterface= and OutgoingInterface= for configuring the incoming
67eb5b38
LP
7889 and outgoing interfaces of configured rules. systemd-networkd also
7890 gained support for "vxcan" network devices.
7891
7892 * networkd gained a new setting RequiredForOnline=, taking a
7893 boolean. If set, systemd-wait-online will take it into consideration
7894 when determining that the system is up, otherwise it will ignore the
7895 interface for this purpose.
7896
7897 * The sd_notify() protocol gained support for a new operation: with
7898 FDSTOREREMOVE=1 file descriptors may be removed from the per-service
7899 store again, ahead of POLLHUP or POLLERR when they are removed
7900 anyway.
7901
f09eb768
LP
7902 * A new document doc/UIDS-GIDS.md has been added to the source tree,
7903 that documents the UID/GID range and assignment assumptions and
3925496a
LP
7904 requirements of systemd.
7905
7906 * The watchdog device PID 1 will ping may now be configured through the
7907 WatchdogDevice= configuration file setting, or by setting the
7908 systemd.watchdog_service= kernel commandline option.
7909
7910 * systemd-resolved's gained support for registering DNS-SD services on
7911 the local network using MulticastDNS. Services may either be
7912 registered by dropping in a .dnssd file in /etc/systemd/dnssd/ (or
7913 the same dir below /run, /usr/lib), or through its D-Bus API.
7914
a327431b
DB
7915 * The sd_notify() protocol can now with EXTEND_TIMEOUT_USEC=microsecond
7916 extend the effective start, runtime, and stop time. The service must
7917 continue to send EXTEND_TIMEOUT_USEC within the period specified to
7918 prevent the service manager from making the service as timedout.
7919
ea2a3c9e
LP
7920 * systemd-resolved's DNSSEC support gained support for RFC 8080
7921 (Ed25519 keys and signatures).
7922
a1b2c92d
LP
7923 * The systemd-resolve command line tool gained a new set of options
7924 --set-dns=, --set-domain=, --set-llmnr=, --set-mdns=, --set-dnssec=,
7925 --set-nta= and --revert to configure per-interface DNS configuration
7926 dynamically during runtime. It's useful for pushing DNS information
7927 into systemd-resolved from DNS hook scripts that various interface
7928 managing software supports (such as pppd).
7929
7930 * systemd-nspawn gained a new --network-namespace-path= command line
7931 option, which may be used to make a container join an existing
7932 network namespace, by specifying a path to a "netns" file.
7933
3925496a
LP
7934 Contributions from: Alan Jenkins, Alan Robertson, Alessandro Ghedini,
7935 Andrew Jeddeloh, Antonio Rojas, Ari, asavah, bleep_blop, Carsten
7936 Strotmann, Christian Brauner, Christian Hesse, Clinton Roy, Collin
ea2a3c9e 7937 Eggert, Cong Wang, Daniel Black, Daniel Lockyer, Daniel Rusek, Dimitri
a1b2c92d
LP
7938 John Ledkov, Dmitry Rozhkov, Dongsu Park, Edward A. James, Evgeny
7939 Vereshchagin, Florian Klink, Franck Bui, Gwendal Grignou, Hans de
7940 Goede, Harald Hoyer, Hristo Venev, Iago López Galeiras, Ikey Doherty,
7941 Jakub Wilk, Jérémy Rosen, Jiahui Xie, John Lin, José Bollo, Josef
7942 Andersson, juga0, Krzysztof Nowicki, Kyle Walker, Lars Karlitski, Lars
7943 Kellogg-Stedman, Lauri Tirkkonen, Lennart Poettering, Lubomir Rintel,
7944 Luca Bruno, Lucas Werkmeister, Lukáš Nykrýn, Lukáš Říha, Lukasz
7945 Rubaszewski, Maciej S. Szmigiero, Mantas Mikulėnas, Marcus Folkesson,
7946 Martin Steuer, Mathieu Trudel-Lapierre, Matija Skala,
7947 Matthias-Christian Ott, Max Resch, Michael Biebl, Michael Vogt, Michal
7948 Koutný, Michal Sekletar, Mike Gilbert, Muhammet Kara, Neil Brown, Olaf
7949 Hering, Ondrej Kozina, Patrik Flykt, Patryk Kocielnik, Peter Hutterer,
7950 Piotr Drąg, Razvan Cojocaru, Robin McCorkell, Roland Hieber, Saran
7951 Tunyasuvunakool, Sergey Ptashnick, Shawn Landden, Shuang Liu, Simon
7952 Arlott, Simon Peeters, Stanislav Angelovič, Stefan Agner, Susant
7953 Sahani, Sylvain Plantefève, Thomas Blume, Thomas Haller, Tiago Salem
7954 Herrmann, Tinu Weber, Tom Stellard, Topi Miettinen, Torsten Hilbrich,
7955 Vito Caputo, Vladislav Vishnyakov, WaLyong Cho, Yu Watanabe, Zbigniew
7956 Jędrzejewski-Szmek, Zeal Jagannatha
67eb5b38 7957
ea2a3c9e 7958 — Berlin, 2017-12-14
3754abc5 7959
582faeb4
DJL
7960CHANGES WITH 235:
7961
2bcbffd6
LP
7962 * INCOMPATIBILITY: systemd-logind.service and other long-running
7963 services now run inside an IPv4/IPv6 sandbox, prohibiting them any IP
7964 communication with the outside. This generally improves security of
7965 the system, and is in almost all cases a safe and good choice, as
23d37367 7966 these services do not and should not provide any network-facing
2bcbffd6
LP
7967 functionality. However, systemd-logind uses the glibc NSS API to
7968 query the user database. This creates problems on systems where NSS
7969 is set up to directly consult network services for user database
7970 lookups. In particular, this creates incompatibilities with the
7971 "nss-nis" module, which attempts to directly contact the NIS/YP
7972 network servers it is configured for, and will now consistently
7973 fail. In such cases, it is possible to turn off IP sandboxing for
7974 systemd-logind.service (set IPAddressDeny= in its [Service] section
7975 to the empty string, via a .d/ unit file drop-in). Downstream
7976 distributions might want to update their nss-nis packaging to include
7977 such a drop-in snippet, accordingly, to hide this incompatibility
7978 from the user. Another option is to make use of glibc's nscd service
7979 to proxy such network requests through a privilege-separated, minimal
7980 local caching daemon, or to switch to more modern technologies such
7981 sssd, whose NSS hook-ups generally do not involve direct network
7982 access. In general, we think it's definitely time to question the
7983 implementation choices of nss-nis, i.e. whether it's a good idea
7984 today to embed a network-facing loadable module into all local
7985 processes that need to query the user database, including the most
7986 trivial and benign ones, such as "ls". For more details about
7987 IPAddressDeny= see below.
7988
fccf5419
LP
7989 * A new modprobe.d drop-in is now shipped by default that sets the
7990 bonding module option max_bonds=0. This overrides the kernel default,
7991 to avoid conflicts and ambiguity as to whether or not bond0 should be
7992 managed by systemd-networkd or not. This resolves multiple issues
7993 with bond0 properties not being applied, when bond0 is configured
7994 with systemd-networkd. Distributors may choose to not package this,
7995 however in that case users will be prevented from correctly managing
7996 bond0 interface using systemd-networkd.
582faeb4 7997
ef5a8cb1 7998 * systemd-analyze gained new verbs "get-log-level" and "get-log-target"
21723f53
ZJS
7999 which print the logging level and target of the system manager. They
8000 complement the existing "set-log-level" and "set-log-target" verbs
8001 used to change those values.
ef5a8cb1 8002
fccf5419
LP
8003 * journald.conf gained a new boolean setting ReadKMsg= which defaults
8004 to on. If turned off kernel log messages will not be read by
21723f53
ZJS
8005 systemd-journald or included in the logs. It also gained a new
8006 setting LineMax= for configuring the maximum line length in
8007 STDOUT/STDERR log streams. The new default for this value is 48K, up
8008 from the previous hardcoded 2048.
fccf5419 8009
21723f53
ZJS
8010 * A new unit setting RuntimeDirectoryPreserve= has been added, which
8011 allows more detailed control of what to do with a runtime directory
8012 configured with RuntimeDirectory= (i.e. a directory below /run or
8013 $XDG_RUNTIME_DIR) after a unit is stopped.
fccf5419
LP
8014
8015 * The RuntimeDirectory= setting for units gained support for creating
8016 deeper subdirectories below /run or $XDG_RUNTIME_DIR, instead of just
8017 one top-level directory.
8018
8019 * Units gained new options StateDirectory=, CacheDirectory=,
8020 LogsDirectory= and ConfigurationDirectory= which are closely related
8021 to RuntimeDirectory= but manage per-service directories below
21723f53 8022 /var/lib, /var/cache, /var/log and /etc. By making use of them it is
fccf5419
LP
8023 possible to write unit files which when activated automatically gain
8024 properly owned service specific directories in these locations, thus
8025 making unit files self-contained and increasing compatibility with
8026 stateless systems and factory reset where /etc or /var are
8027 unpopulated at boot. Matching these new settings there's also
8028 StateDirectoryMode=, CacheDirectoryMode=, LogsDirectoryMode=,
8029 ConfigurationDirectoryMode= for configuring the access mode of these
75dfbbac
LP
8030 directories. These settings are particularly useful in combination
8031 with DynamicUser=yes as they provide secure, properly-owned,
8032 writable, and stateful locations for storage, excluded from the
8033 sandbox that such services live in otherwise.
fccf5419
LP
8034
8035 * Automake support has been removed from this release. systemd is now
8036 Meson-only.
8037
8038 * systemd-journald will now aggressively cache client metadata during
8039 runtime, speeding up log write performance under pressure. This comes
8040 at a small price though: as much of the metadata is read
8041 asynchronously from /proc/ (and isn't implicitly attached to log
8042 datagrams by the kernel, like UID/GID/PID/SELinux are) this means the
8043 metadata stored alongside a log entry might be slightly
8044 out-of-date. Previously it could only be slightly newer than the log
8045 message. The time window is small however, and given that the kernel
8046 is unlikely to be improved anytime soon in this regard, this appears
8047 acceptable to us.
8048
8049 * nss-myhostname/systemd-resolved will now by default synthesize an
8050 A/AAAA resource record for the "_gateway" hostname, pointing to the
8051 current default IP gateway. Previously it did that for the "gateway"
8052 name, hampering adoption, as some distributions wanted to leave that
38b38500 8053 hostname open for local use. The old behaviour may still be
fccf5419
LP
8054 requested at build time.
8055
8056 * systemd-networkd's [Address] section in .network files gained a new
8057 Scope= setting for configuring the IP address scope. The [Network]
8058 section gained a new boolean setting ConfigureWithoutCarrier= that
8059 tells systemd-networkd to ignore link sensing when configuring the
8060 device. The [DHCP] section gained a new Anonymize= boolean option for
8061 turning on a number of options suggested in RFC 7844. A new
8062 [RoutingPolicyRule] section has been added for configuring the IP
8063 routing policy. The [Route] section has gained support for a new
8064 Type= setting which permits configuring
8065 blackhole/unreachable/prohibit routes.
8066
8067 * The [VRF] section in .netdev files gained a new Table= setting for
8068 configuring the routing table to use. The [Tunnel] section gained a
8069 new Independent= boolean field for configuring tunnels independent of
8070 an underlying network interface. The [Bridge] section gained a new
8071 GroupForwardMask= option for configuration of propagation of link
8072 local frames between bridge ports.
8073
8074 * The WakeOnLan= setting in .link files gained support for a number of
8075 new modes. A new TCP6SegmentationOffload= setting has been added for
8076 configuring TCP/IPv6 hardware segmentation offload.
8077
8078 * The IPv6 RA sender implementation may now optionally send out RDNSS
21723f53 8079 and RDNSSL records to supply DNS configuration to peers.
fccf5419
LP
8080
8081 * systemd-nspawn gained support for a new --system-call-filter= command
21723f53
ZJS
8082 line option for adding and removing entries in the default system
8083 call filter it applies. Moreover systemd-nspawn has been changed to
6b000af4 8084 implement a system call allow list instead of a deny list.
fccf5419
LP
8085
8086 * systemd-run gained support for a new --pipe command line option. If
8087 used the STDIN/STDOUT/STDERR file descriptors passed to systemd-run
8088 are directly passed on to the activated transient service
21723f53
ZJS
8089 executable. This allows invoking arbitrary processes as systemd
8090 services (for example to take benefit of dependency management,
8091 accounting management, resource management or log management that is
8092 done automatically for services) — while still allowing them to be
fccf5419
LP
8093 integrated in a classic UNIX shell pipeline.
8094
8095 * When a service sends RELOAD=1 via sd_notify() and reload propagation
8096 using ReloadPropagationTo= is configured, a reload is now propagated
8097 to configured units. (Previously this was only done on explicitly
8098 requested reloads, using "systemctl reload" or an equivalent
8099 command.)
8100
8101 * For each service unit a restart counter is now kept: it is increased
8102 each time the service is restarted due to Restart=, and may be
8103 queried using "systemctl show -p NRestarts …".
8104
44898c53
LP
8105 * New system call filter groups @aio, @sync, @chown, @setuid, @memlock,
8106 @signal and @timer have been added, for usage with SystemCallFilter=
fccf5419
LP
8107 in unit files and the new --system-call-filter= command line option
8108 of systemd-nspawn (see above).
8109
8110 * ExecStart= lines in unit files gained two new modifiers: when a
8111 command line is prefixed with "!" the command will be executed as
8112 configured, except for the credentials applied by
8113 setuid()/setgid()/setgroups(). It is very similar to the pre-existing
8114 "+", but does still apply namespacing options unlike "+". There's
8115 also "!!" now, which is mostly identical, but becomes a NOP on
8116 systems that support ambient capabilities. This is useful to write
8117 unit files that work with ambient capabilities where possible but
8118 automatically fall back to traditional privilege dropping mechanisms
8119 on systems where this is not supported.
8120
8121 * ListenNetlink= settings in socket units now support RDMA netlink
8122 sockets.
8123
8124 * A new unit file setting LockPersonality= has been added which permits
8125 locking down the chosen execution domain ("personality") of a service
8126 during runtime.
8127
8128 * A new special target "getty-pre.target" has been added, which is
8129 ordered before all text logins, and may be used to order services
21723f53 8130 before textual logins acquire access to the console.
fccf5419
LP
8131
8132 * systemd will now attempt to load the virtio-rng.ko kernel module very
8133 early on if a VM environment supporting this is detected. This should
8134 improve entropy during early boot in virtualized environments.
8135
8136 * A _netdev option is now supported in /etc/crypttab that operates in a
8137 similar way as the same option in /etc/fstab: it permits configuring
21723f53
ZJS
8138 encrypted devices that need to be ordered after the network is up.
8139 Following this logic, two new special targets
fccf5419 8140 remote-cryptsetup-pre.target and remote-cryptsetup.target have been
21723f53
ZJS
8141 added that are to cryptsetup.target what remote-fs.target and
8142 remote-fs-pre.target are to local-fs.target.
fccf5419
LP
8143
8144 * Service units gained a new UnsetEnvironment= setting which permits
21723f53
ZJS
8145 unsetting specific environment variables for services that are
8146 normally passed to it (for example in order to mask out locale
fccf5419
LP
8147 settings for specific services that can't deal with it).
8148
8149 * Units acquired a new boolean option IPAccounting=. When turned on, IP
8150 traffic accounting (packet count as well as byte count) is done for
8151 the service, and shown as part of "systemctl status" or "systemd-run
8152 --wait".
8153
8154 * Service units acquired two new options IPAddressAllow= and
8155 IPAddressDeny=, taking a list of IPv4 or IPv6 addresses and masks,
8156 for configuring a simple IP access control list for all sockets of
8157 the unit. These options are available also on .slice and .socket
8158 units, permitting flexible access list configuration for individual
8159 services as well as groups of services (as defined by a slice unit),
8160 including system-wide. Note that IP ACLs configured this way are
8161 enforced on every single IPv4 and IPv6 socket created by any process
8162 of the service unit, and apply to ingress as well as egress traffic.
8163
21723f53 8164 * If CPUAccounting= or IPAccounting= is turned on for a unit a new
608f70e6 8165 structured log message is generated each time the unit is stopped,
fccf5419
LP
8166 containing information about the consumed resources of this
8167 invocation.
8168
8169 * A new setting KeyringMode= has been added to unit files, which may be
8170 used to control how the kernel keyring is set up for executed
8171 processes.
8172
e06fafb2
LP
8173 * "systemctl poweroff", "systemctl reboot", "systemctl halt",
8174 "systemctl kexec" and "systemctl exit" are now always asynchronous in
8175 behaviour (that is: these commands return immediately after the
21723f53
ZJS
8176 operation was enqueued instead of waiting for the operation to
8177 complete). Previously, "systemctl poweroff" and "systemctl reboot"
e06fafb2
LP
8178 were asynchronous on systems using systemd-logind (i.e. almost
8179 always, and like they were on sysvinit), and the other three commands
8180 were unconditionally synchronous. With this release this is cleaned
8181 up, and callers will see the same asynchronous behaviour on all
8182 systems for all five operations.
8183
8184 * systemd-logind gained new Halt() and CanHalt() bus calls for halting
8185 the system.
8186
fccf5419
LP
8187 * .timer units now accept calendar specifications in other timezones
8188 than UTC or the local timezone.
8189
f6e64b78 8190 * The tmpfiles snippet var.conf has been changed to create
21723f53
ZJS
8191 /var/log/btmp with access mode 0660 instead of 0600. It was owned by
8192 the "utmp" group already, and it appears to be generally understood
8193 that members of "utmp" can modify/flush the utmp/wtmp/lastlog/btmp
8194 databases. Previously this was implemented correctly for all these
8195 databases excepts btmp, which has been opened up like this now
8196 too. Note that while the other databases are world-readable
8197 (i.e. 0644), btmp is not and remains more restrictive.
f6e64b78 8198
d55b0463
LP
8199 * The systemd-resolve tool gained a new --reset-server-features
8200 switch. When invoked like this systemd-resolved will forget
8201 everything it learnt about the features supported by the configured
8202 upstream DNS servers, and restarts the feature probing logic on the
cf84484a
LP
8203 next resolver look-up for them at the highest feature level
8204 again.
8205
8206 * The status dump systemd-resolved sends to the logs upon receiving
8207 SIGUSR1 now also includes information about all DNS servers it is
8208 configured to use, and the features levels it probed for them.
d55b0463 8209
fccf5419
LP
8210 Contributions from: Abdó Roig-Maranges, Alan Jenkins, Alexander
8211 Kuleshov, Andreas Rammhold, Andrew Jeddeloh, Andrew Soutar, Ansgar
76451c1d
LP
8212 Burchardt, Beniamino Galvani, Benjamin Berg, Benjamin Robin, Charles
8213 Huber, Christian Hesse, Daniel Berrange, Daniel Kahn Gillmor, Daniel
8214 Mack, Daniel Rusek, Daniel Șerbănescu, Davide Cavalca, Dimitri John
8215 Ledkov, Diogo Pereira, Djalal Harouni, Dmitriy Geels, Dmitry Torokhov,
8216 ettavolt, Evgeny Vereshchagin, Fabio Kung, Felipe Sateler, Franck Bui,
8217 Hans de Goede, Harald Hoyer, Insun Pyo, Ivan Kurnosov, Ivan Shapovalov,
8218 Jakub Wilk, Jan Synacek, Jason Gunthorpe, Jeremy Bicha, Jérémy Rosen,
8219 John Lin, jonasBoss, Jonathan Lebon, Jonathan Teh, Jon Ringle, Jörg
8220 Thalheim, Jouke Witteveen, juga0, Justin Capella, Justin Michaud,
8221 Kai-Heng Feng, Lennart Poettering, Lion Yang, Luca Bruno, Lucas
8222 Werkmeister, Lukáš Nykrýn, Marcel Hollerbach, Marcus Lundblad, Martin
8223 Pitt, Michael Biebl, Michael Grzeschik, Michal Sekletar, Mike Gilbert,
8224 Neil Brown, Nicolas Iooss, Patrik Flykt, pEJipE, Piotr Drąg, Russell
8225 Stuart, S. Fan, Shengyao Xue, Stefan Pietsch, Susant Sahani, Tejun Heo,
8226 Thomas Miller, Thomas Sailer, Tobias Hunger, Tomasz Pala, Tom
8227 Gundersen, Tommi Rantala, Topi Miettinen, Torstein Husebø, userwithuid,
8228 Vasilis Liaskovitis, Vito Caputo, WaLyong Cho, William Douglas, Xiang
8229 Fan, Yu Watanabe, Zbigniew Jędrzejewski-Szmek
fccf5419 8230
c1719d8b 8231 — Berlin, 2017-10-06
fccf5419 8232
4b4da299
LP
8233CHANGES WITH 234:
8234
8235 * Meson is now supported as build system in addition to Automake. It is
8236 our plan to remove Automake in one of our next releases, so that
8237 Meson becomes our exclusive build system. Hence, please start using
8238 the Meson build system in your downstream packaging. There's plenty
8239 of documentation around how to use Meson, the extremely brief
8240 summary:
8241
8242 ./autogen.sh && ./configure && make && sudo make install
8243
8244 becomes:
8245
8246 meson build && ninja -C build && sudo ninja -C build install
8247
8248 * Unit files gained support for a new JobRunningTimeoutUSec= setting,
8249 which permits configuring a timeout on the time a job is
8250 running. This is particularly useful for setting timeouts on jobs for
8251 .device units.
8252
8253 * Unit files gained two new options ConditionUser= and ConditionGroup=
8254 for conditionalizing units based on the identity of the user/group
8255 running a systemd user instance.
8256
8257 * systemd-networkd now understands a new FlowLabel= setting in the
8258 [VXLAN] section of .network files, as well as a Priority= in
8259 [Bridge], GVRP= + MVRP= + LooseBinding= + ReorderHeader= in [VLAN]
8260 and GatewayOnlink= + IPv6Preference= + Protocol= in [Route]. It also
8261 gained support for configuration of GENEVE links, and IPv6 address
8262 labels. The [Network] section gained the new IPv6ProxyNDP= setting.
8263
9f09a95a 8264 * .link files now understand a new Port= setting.
4b4da299
LP
8265
8266 * systemd-networkd's DHCP support gained support for DHCP option 119
8267 (domain search list).
8268
8269 * systemd-networkd gained support for serving IPv6 address ranges using
bc99dac5 8270 the Router Advertisement protocol. The new .network configuration
4b4da299
LP
8271 section [IPv6Prefix] may be used to configure the ranges to
8272 serve. This is implemented based on a new, minimal, native server
8273 implementation of RA.
8274
8275 * journalctl's --output= switch gained support for a new parameter
8276 "short-iso-precise" for a mode where timestamps are shown as precise
8277 ISO date values.
8278
8279 * systemd-udevd's "net_id" builtin may now generate stable network
8280 interface names from IBM PowerVM VIO devices as well as ACPI platform
8281 devices.
8282
8283 * MulticastDNS support in systemd-resolved may now be explicitly
8284 enabled/disabled using the new MulticastDNS= configuration file
8285 option.
8286
8287 * systemd-resolved may now optionally use libidn2 instead of the libidn
7f7ab228
ZJS
8288 for processing internationalized domain names. Support for libidn2
8289 should be considered experimental and should not be enabled by
8290 default yet.
4b4da299
LP
8291
8292 * "machinectl pull-tar" and related call may now do verification of
8293 downloaded images using SUSE-style .sha256 checksum files in addition
8294 to the already existing support for validating using Ubuntu-style
8295 SHA256SUMS files.
8296
8297 * sd-bus gained support for a new sd_bus_message_appendv() call which
8298 is va_list equivalent of sd_bus_message_append().
8299
8300 * sd-boot gained support for validating images using SHIM/MOK.
8301
8302 * The SMACK code learnt support for "onlycap".
8303
8304 * systemd-mount --umount is now much smarter in figuring out how to
8305 properly unmount a device given its mount or device path.
5486a31d
ZJS
8306
8307 * The code to call libnss_dns as a fallback from libnss_resolve when
8308 the communication with systemd-resolved fails was removed. This
8309 fallback was redundant and interfered with the [!UNAVAIL=return]
8310 suffix. See nss-resolve(8) for the recommended configuration.
8311
9f09a95a
ZJS
8312 * systemd-logind may now be restarted without losing state. It stores
8313 the file descriptors for devices it manages in the system manager
38d93385 8314 using the FDSTORE= mechanism. Please note that further changes in
9f09a95a
ZJS
8315 other components may be required to make use of this (for example
8316 Xorg has code to listen for stops of systemd-logind and terminate
8317 itself when logind is stopped or restarted, in order to avoid using
8318 stale file descriptors for graphical devices, which is now
8319 counterproductive and must be reverted in order for restarts of
8320 systemd-logind to be safe. See
8321 https://cgit.freedesktop.org/xorg/xserver/commit/?id=dc48bd653c7e101.)
8322
d271c5d3 8323 * All kernel-install plugins are called with the environment variable
9d8813b3 8324 KERNEL_INSTALL_MACHINE_ID which is set to the machine ID given by
d271c5d3
ZJS
8325 /etc/machine-id. If the machine ID could not be determined,
8326 $KERNEL_INSTALL_MACHINE_ID will be empty. Plugins should not put
8327 anything in the entry directory (passed as the second argument) if
5238e957 8328 $KERNEL_INSTALL_MACHINE_ID is empty. For backwards compatibility, a
d271c5d3
ZJS
8329 temporary directory is passed as the entry directory and removed
8330 after all the plugins exit.
9d8813b3 8331
357376d0
DDM
8332 * If KERNEL_INSTALL_MACHINE_ID is set in /etc/machine-info, kernel-install
8333 will now use its value as the machine ID instead of the machine ID
8334 from /etc/machine-id. If KERNEL_INSTALL_MACHINE_ID isn't set in
8335 /etc/machine-info and no machine ID is set in /etc/machine-id,
8336 kernel-install will try to store the current machine ID there as
8337 KERNEL_INSTALL_MACHINE_ID. If there is no machine ID, kernel-install
8338 will generate a new UUID, store it in /etc/machine-info as
8339 KERNEL_INSTALL_MACHINE_ID and use it as the machine ID.
8340
184d2c15 8341 Contributions from: Adrian Heine né Lang, Aggelos Avgerinos, Alexander
ac172e52
LP
8342 Kurtz, Alexandros Frantzis, Alexey Brodkin, Alex Lu, Amir Pakdel, Amir
8343 Yalon, Anchor Cat, Anthony Parsons, Bastien Nocera, Benjamin Gilbert,
8344 Benjamin Robin, Boucman, Charles Plessy, Chris Chiu, Chris Lamb,
8345 Christian Brauner, Christian Hesse, Colin Walters, Daniel Drake,
184d2c15
LP
8346 Danielle Church, Daniel Molkentin, Daniel Rusek, Daniel Wang, Davide
8347 Cavalca, David Herrmann, David Michael, Dax Kelson, Dimitri John
8348 Ledkov, Djalal Harouni, Dušan Kazik, Elias Probst, Evgeny Vereshchagin,
8349 Federico Di Pierro, Felipe Sateler, Felix Zhang, Franck Bui, Gary
ac172e52
LP
8350 Tierney, George McCollister, Giedrius Statkevičius, Hans de Goede,
8351 hecke, Hendrik Westerberg, Hristo Venev, Ian Wienand, Insun Pyo, Ivan
8352 Shapovalov, James Cowgill, James Hemsing, Janne Heß, Jan Synacek, Jason
8353 Reeder, João Paulo Rechi Vita, John Paul Adrian Glaubitz, Jörg
8354 Thalheim, Josef Andersson, Josef Gajdusek, Julian Mehne, Kai Krakow,
8355 Krzysztof Jackiewicz, Lars Karlitski, Lennart Poettering, Lluís Gili,
8356 Lucas Werkmeister, Lukáš Nykrýn, Łukasz Stelmach, Mantas Mikulėnas,
8357 Marcin Bachry, Marcus Cooper, Mark Stosberg, Martin Pitt, Matija Skala,
8358 Matt Clarkson, Matthew Garrett, Matthias Greiner, Matthijs van Duin,
8359 Max Resch, Michael Biebl, Michal Koutný, Michal Sekletar, Michal
8360 Soltys, Michal Suchanek, Mike Gilbert, Nate Clark, Nathaniel R. Lewis,
8361 Neil Brown, Nikolai Kondrashov, Pascal S. de Kloe, Pat Riehecky, Patrik
8362 Flykt, Paul Kocialkowski, Peter Hutterer, Philip Withnall, Piotr
8363 Szydełko, Rafael Fontenelle, Ray Strode, Richard Maw, Roelf Wichertjes,
8364 Ronny Chevalier, Sarang S. Dalal, Sjoerd Simons, slodki, Stefan
8365 Schweter, Susant Sahani, Ted Wood, Thomas Blume, Thomas Haller, Thomas
184d2c15
LP
8366 H. P. Andersen, Timothée Ravier, Tobias Jungel, Tobias Stoeckmann, Tom
8367 Gundersen, Tom Yan, Torstein Husebø, Umut Tezduyar Lindskog,
ac172e52
LP
8368 userwithuid, Vito Caputo, Waldemar Brodkorb, WaLyong Cho, Yu, Li-Yu,
8369 Yusuke Nojima, Yu Watanabe, Zbigniew Jędrzejewski-Szmek, Дамјан
8370 Георгиевски
4b4da299 8371
ac172e52 8372 — Berlin, 2017-07-12
4b4da299 8373
a2b53448 8374CHANGES WITH 233:
d08ee7cb 8375
23eb30b3
ZJS
8376 * The "hybrid" control group mode has been modified to improve
8377 compatibility with "legacy" cgroups-v1 setups. Specifically, the
8378 "hybrid" setup of /sys/fs/cgroup is now pretty much identical to
8379 "legacy" (including /sys/fs/cgroup/systemd as "name=systemd" named
8380 cgroups-v1 hierarchy), the only externally visible change being that
8381 the cgroups-v2 hierarchy is also mounted, to
8382 /sys/fs/cgroup/unified. This should provide a large degree of
8383 compatibility with "legacy" cgroups-v1, while taking benefit of the
8384 better management capabilities of cgroups-v2.
8385
8386 * The default control group setup mode may be selected both a boot-time
8387 via a set of kernel command line parameters (specifically:
8388 systemd.unified_cgroup_hierarchy= and
8389 systemd.legacy_systemd_cgroup_controller=), as well as a compile-time
8390 default selected on the configure command line
8391 (--with-default-hierarchy=). The upstream default is "hybrid"
8392 (i.e. the cgroups-v1 + cgroups-v2 mixture discussed above) now, but
8393 this will change in a future systemd version to be "unified" (pure
8394 cgroups-v2 mode). The third option for the compile time option is
8395 "legacy", to enter pure cgroups-v1 mode. We recommend downstream
8396 distributions to default to "hybrid" mode for release distributions,
8397 starting with v233. We recommend "unified" for development
8398 distributions (specifically: distributions such as Fedora's rawhide)
8399 as that's where things are headed in the long run. Use "legacy" for
8400 greatest stability and compatibility only.
8401
8402 * Note one current limitation of "unified" and "hybrid" control group
8403 setup modes: the kernel currently does not permit the systemd --user
8404 instance (i.e. unprivileged code) to migrate processes between two
8405 disconnected cgroup subtrees, even if both are managed and owned by
8406 the user. This effectively means "systemd-run --user --scope" doesn't
8407 work when invoked from outside of any "systemd --user" service or
8408 scope. Specifically, it is not supported from session scopes. We are
8409 working on fixing this in a future systemd version. (See #3388 for
8410 further details about this.)
8411
fb7c4eff
MG
8412 * DBus policy files are now installed into /usr rather than /etc. Make
8413 sure your system has dbus >= 1.9.18 running before upgrading to this
8414 version, or override the install path with --with-dbuspolicydir= .
8415
23eb30b3
ZJS
8416 * All python scripts shipped with systemd (specifically: the various
8417 tests written in Python) now require Python 3.
8418
d60c5270 8419 * systemd unit tests can now run standalone (without the source or
4dfe64f8
ZJS
8420 build directories), and can be installed into /usr/lib/systemd/tests/
8421 with 'make install-tests'.
8422
23eb30b3
ZJS
8423 * Note that from this version on, CONFIG_CRYPTO_USER_API_HASH,
8424 CONFIG_CRYPTO_HMAC and CONFIG_CRYPTO_SHA256 need to be enabled in the
8425 kernel.
8426
8427 * Support for the %c, %r, %R specifiers in unit files has been
8428 removed. Specifiers are not supposed to be dependent on configuration
8429 in the unit file itself (so that they resolve the same regardless
8430 where used in the unit files), but these specifiers were influenced
8431 by the Slice= option.
8432
5cfc0a84
LP
8433 * The shell invoked by debug-shell.service now defaults to /bin/sh in
8434 all cases. If distributions want to use a different shell for this
8435 purpose (for example Fedora's /sbin/sushell) they need to specify
8436 this explicitly at configure time using --with-debug-shell=.
8437
2bcc3309
FB
8438 * The confirmation spawn prompt has been reworked to offer the
8439 following choices:
8440
b0eb2944 8441 (c)ontinue, proceed without asking anymore
dd6f9ac0 8442 (D)ump, show the state of the unit
2bcc3309 8443 (f)ail, don't execute the command and pretend it failed
d172b175 8444 (h)elp
eedf223a 8445 (i)nfo, show a short summary of the unit
56fde33a 8446 (j)obs, show jobs that are in progress
2bcc3309
FB
8447 (s)kip, don't execute the command and pretend it succeeded
8448 (y)es, execute the command
8449
8450 The 'n' choice for the confirmation spawn prompt has been removed,
8451 because its meaning was confusing.
8452
d08ee7cb
LP
8453 The prompt may now also be redirected to an alternative console by
8454 specifying the console as parameter to systemd.confirm_spawn=.
8455
8e458bfe
JW
8456 * Services of Type=notify require a READY=1 notification to be sent
8457 during startup. If no such message is sent, the service now fails,
8458 even if the main process exited with a successful exit code.
8459
85266f9b
LP
8460 * Services that fail to start up correctly now always have their
8461 ExecStopPost= commands executed. Previously, they'd enter "failed"
8462 state directly, without executing these commands.
8463
baf32786
MP
8464 * The option MulticastDNS= of network configuration files has acquired
8465 an actual implementation. With MulticastDNS=yes a host can resolve
23eb30b3 8466 names of remote hosts and reply to mDNS A and AAAA requests.
fa8b4499 8467
631b676b
LP
8468 * When units are about to be started an additional check is now done to
8469 ensure that all dependencies of type BindsTo= (when used in
8470 combination with After=) have been started.
8471
d08ee7cb
LP
8472 * systemd-analyze gained a new verb "syscall-filter" which shows which
8473 system call groups are defined for the SystemCallFilter= unit file
23eb30b3 8474 setting, and which system calls they contain.
d08ee7cb
LP
8475
8476 * A new system call filter group "@filesystem" has been added,
23eb30b3 8477 consisting of various file system related system calls. Group
d08ee7cb 8478 "@reboot" has been added, covering reboot, kexec and shutdown related
23eb30b3 8479 calls. Finally, group "@swap" has been added covering swap
d08ee7cb
LP
8480 configuration related calls.
8481
8482 * A new unit file option RestrictNamespaces= has been added that may be
8483 used to restrict access to the various process namespace types the
8484 Linux kernel provides. Specifically, it may be used to take away the
23eb30b3
ZJS
8485 right for a service unit to create additional file system, network,
8486 user, and other namespaces. This sandboxing option is particularly
8487 relevant due to the high amount of recently discovered namespacing
8488 related vulnerabilities in the kernel.
d08ee7cb 8489
23eb30b3
ZJS
8490 * systemd-udev's .link files gained support for a new AutoNegotiation=
8491 setting for configuring Ethernet auto-negotiation.
d08ee7cb
LP
8492
8493 * systemd-networkd's .network files gained support for a new
8494 ListenPort= setting in the [DHCP] section to explicitly configure the
8495 UDP client port the DHCP client shall listen on.
8496
23eb30b3
ZJS
8497 * .network files gained a new Unmanaged= boolean setting for explicitly
8498 excluding one or more interfaces from management by systemd-networkd.
8499
8500 * The systemd-networkd ProxyARP= option has been renamed to
8501 IPV4ProxyARP=. Similarly, VXLAN-specific option ARPProxy= has been
8502 renamed to ReduceARPProxy=. The old names continue to be available
8503 for compatibility.
8504
8505 * systemd-networkd gained support for configuring IPv6 Proxy NDP
8506 addresses via the new IPv6ProxyNDPAddress= .network file setting.
8507
8508 * systemd-networkd's bonding device support gained support for two new
8509 configuration options ActiveSlave= and PrimarySlave=.
8510
8511 * The various options in the [Match] section of .network files gained
8512 support for negative matching.
8513
d08ee7cb
LP
8514 * New systemd-specific mount options are now understood in /etc/fstab:
8515
8516 x-systemd.mount-timeout= may be used to configure the maximum
8517 permitted runtime of the mount command.
8518
8519 x-systemd.device-bound may be set to bind a mount point to its
8520 backing device unit, in order to automatically remove a mount point
8521 if its backing device is unplugged. This option may also be
8522 configured through the new SYSTEMD_MOUNT_DEVICE_BOUND udev property
8523 on the block device, which is now automatically set for all CDROM
8524 drives, so that mounted CDs are automatically unmounted when they are
8525 removed from the drive.
8526
23eb30b3
ZJS
8527 x-systemd.after= and x-systemd.before= may be used to explicitly
8528 order a mount after or before another unit or mount point.
d08ee7cb
LP
8529
8530 * Enqueued start jobs for device units are now automatically garbage
8531 collected if there are no jobs waiting for them anymore.
8532
23eb30b3
ZJS
8533 * systemctl list-jobs gained two new switches: with --after, for every
8534 queued job the jobs it's waiting for are shown; with --before the
8535 jobs which it's blocking are shown.
d08ee7cb
LP
8536
8537 * systemd-nspawn gained support for ephemeral boots from disk images
8538 (or in other words: --ephemeral and --image= may now be
8539 combined). Moreover, ephemeral boots are now supported for normal
8540 directories, even if the backing file system is not btrfs. Of course,
baf32786
MP
8541 if the file system does not support file system snapshots or
8542 reflinks, the initial copy operation will be relatively expensive, but
8543 this should still be suitable for many use cases.
d08ee7cb
LP
8544
8545 * Calendar time specifications in .timer units now support
8546 specifications relative to the end of a month by using "~" instead of
8547 "-" as separator between month and day. For example, "*-02~03" means
23eb30b3 8548 "the third last day in February". In addition a new syntax for
d08ee7cb
LP
8549 repeated events has been added using the "/" character. For example,
8550 "9..17/2:00" means "every two hours from 9am to 5pm".
8551
8552 * systemd-socket-proxyd gained a new parameter --connections-max= for
8553 configuring the maximum number of concurrent connections.
8554
23eb30b3
ZJS
8555 * sd-id128 gained a new API for generating unique IDs for the host in a
8556 way that does not leak the machine ID. Specifically,
d08ee7cb 8557 sd_id128_get_machine_app_specific() derives an ID based on the
387f6955 8558 machine ID in a well-defined, non-reversible, stable way. This is
d08ee7cb
LP
8559 useful whenever an identifier for the host is needed but where the
8560 identifier shall not be useful to identify the system beyond the
8561 scope of the application itself. (Internally this uses HMAC-SHA256 as
8562 keyed hash function using the machine ID as input.)
8563
8564 * NotifyAccess= gained a new supported value "exec". When set
8565 notifications are accepted from all processes systemd itself invoked,
8566 including all control processes.
8567
8568 * .nspawn files gained support for defining overlay mounts using the
8569 Overlay= and OverlayReadOnly= options. Previously this functionality
8570 was only available on the systemd-nspawn command line.
8571
8572 * systemd-nspawn's --bind= and --overlay= options gained support for
8573 bind/overlay mounts whose source lies within the container tree by
8574 prefixing the source path with "+".
8575
8576 * systemd-nspawn's --bind= and --overlay= options gained support for
8577 automatically allocating a temporary source directory in /var/tmp
8578 that is removed when the container dies. Specifically, if the source
8579 directory is specified as empty string this mechanism is selected. An
8580 example usage is --overlay=+/var::/var, which creates an overlay
86b52a39 8581 mount based on the original /var contained in the image, overlaid
d08ee7cb
LP
8582 with a temporary directory in the host's /var/tmp. This way changes
8583 to /var are automatically flushed when the container shuts down.
8584
baf32786
MP
8585 * systemd-nspawn --image= option does now permit raw file system block
8586 devices (in addition to images containing partition tables, as
8587 before).
d08ee7cb
LP
8588
8589 * The disk image dissection logic in systemd-nspawn gained support for
8590 automatically setting up LUKS encrypted as well as Verity protected
8591 partitions. When a container is booted from an encrypted image the
8592 passphrase is queried at start-up time. When a container with Verity
8593 data is started, the root hash is search in a ".roothash" file
8594 accompanying the disk image (alternatively, pass the root hash via
8595 the new --root-hash= command line option).
8596
8597 * A new tool /usr/lib/systemd/systemd-dissect has been added that may
8598 be used to dissect disk images the same way as systemd-nspawn does
8599 it, following the Bootable Partition Specification. It may even be
8600 used to mount disk images with complex partition setups (including
8601 LUKS and Verity partitions) to a local host directory, in order to
8602 inspect them. This tool is not considered public API (yet), and is
8603 thus not installed into /usr/bin. Please do not rely on its
3b31c466 8604 existence, since it might go away or be changed in later systemd
d08ee7cb
LP
8605 versions.
8606
8607 * A new generator "systemd-verity-generator" has been added, similar in
baf32786 8608 style to "systemd-cryptsetup-generator", permitting automatic setup of
d08ee7cb
LP
8609 Verity root partitions when systemd boots up. In order to make use of
8610 this your partition setup should follow the Discoverable Partitions
8611 Specification, and the GPT partition ID of the root file system
8612 partition should be identical to the upper 128bit of the Verity root
8613 hash. The GPT partition ID of the Verity partition protecting it
8614 should be the lower 128bit of the Verity root hash. If the partition
8615 image follows this model it is sufficient to specify a single
8616 "roothash=" kernel command line argument to both configure which root
8617 image and verity partition to use as well as the root hash for
8618 it. Note that systemd-nspawn's Verity support follows the same
8619 semantics, meaning that disk images with proper Verity data in place
8620 may be booted in containers with systemd-nspawn as well as on
8621 physical systems via the verity generator. Also note that the "mkosi"
8622 tool available at https://github.com/systemd/mkosi has been updated
8623 to generate Verity protected disk images following this scheme. In
8624 fact, it has been updated to generate disk images that optionally
8625 implement a complete UEFI SecureBoot trust chain, involving a signed
8626 kernel and initrd image that incorporates such a root hash as well as
8627 a Verity-enabled root partition.
8628
d08ee7cb
LP
8629 * The hardware database (hwdb) udev supports has been updated to carry
8630 accelerometer quirks.
8631
8632 * All system services are now run with a fresh kernel keyring set up
8633 for them. The invocation ID is stored by default in it, thus
8634 providing a safe, non-overridable way to determine the invocation
8635 ID of each service.
8636
8637 * Service unit files gained new BindPaths= and BindReadOnlyPaths=
8638 options for bind mounting arbitrary paths in a service-specific
8639 way. When these options are used, arbitrary host or service files and
8640 directories may be mounted to arbitrary locations in the service's
8641 view.
8642
8643 * Documentation has been added that lists all of systemd's low-level
8644 environment variables:
8645
a8a27374 8646 https://github.com/systemd/systemd/blob/master/docs/ENVIRONMENT.md
d08ee7cb
LP
8647
8648 * sd-daemon gained a new API sd_is_socket_sockaddr() for determining
8649 whether a specific socket file descriptor matches a specified socket
8650 address.
8651
8652 * systemd-firstboot has been updated to check for the
8653 systemd.firstboot= kernel command line option. It accepts a boolean
8654 and when set to false the first boot questions are skipped.
8655
d08ee7cb 8656 * systemd-fstab-generator has been updated to check for the
23eb30b3
ZJS
8657 systemd.volatile= kernel command line option, which either takes an
8658 optional boolean parameter or the special value "state". If used the
8659 system may be booted in a "volatile" boot mode. Specifically,
8660 "systemd.volatile" is used, the root directory will be mounted as
d08ee7cb 8661 tmpfs, and only /usr is mounted from the actual root file system. If
23eb30b3
ZJS
8662 "systemd.volatile=state" is used, the root directory will be mounted
8663 as usual, but /var is mounted as tmpfs. This concept provides similar
d08ee7cb
LP
8664 functionality as systemd-nspawn's --volatile= option, but provides it
8665 on physical boots. Use this option for implementing stateless
8666 systems, or testing systems with all state and/or configuration reset
8667 to the defaults. (Note though that many distributions are not
23eb30b3 8668 prepared to boot up without a populated /etc or /var, though.)
d08ee7cb
LP
8669
8670 * systemd-gpt-auto-generator gained support for LUKS encrypted root
8671 partitions. Previously it only supported LUKS encrypted partitions
8672 for all other uses, except for the root partition itself.
8673
8674 * Socket units gained support for listening on AF_VSOCK sockets for
8675 communication in virtualized QEMU environments.
8676
8677 * The "configure" script gained a new option --with-fallback-hostname=
8678 for specifying the fallback hostname to use if none is configured in
8679 /etc/hostname. For example, by specifying
8680 --with-fallback-hostname=fedora it is possible to default to a
23eb30b3 8681 hostname of "fedora" on pristine installations.
d08ee7cb
LP
8682
8683 * systemd-cgls gained support for a new --unit= switch for listing only
8684 the control groups of a specific unit. Similar --user-unit= has been
8685 added for listing only the control groups of a specific user unit.
8686
8687 * systemd-mount gained a new --umount switch for unmounting a mount or
8688 automount point (and all mount/automount points below it).
8689
8690 * systemd will now refuse full configuration reloads (via systemctl
8691 daemon-reload and related calls) unless at least 16MiB of free space
8692 are available in /run. This is a safety precaution in order to ensure
8693 that generators can safely operate after the reload completed.
8694
8695 * A new unit file option RootImage= has been added, which has a similar
8696 effect as RootDirectory= but mounts the service's root directory from
8697 a disk image instead of plain directory. This logic reuses the same
8698 image dissection and mount logic that systemd-nspawn already uses,
8699 and hence supports any disk images systemd-nspawn supports, including
8700 those following the Discoverable Partition Specification, as well as
8701 Verity enabled images. This option enables systemd to run system
8702 services directly off disk images acting as resource bundles,
8703 possibly even including full integrity data.
8704
8705 * A new MountAPIVFS= unit file option has been added, taking a boolean
baf32786 8706 argument. If enabled /proc, /sys and /dev (collectively called the
d08ee7cb
LP
8707 "API VFS") will be mounted for the service. This is only relevant if
8708 RootDirectory= or RootImage= is used for the service, as these mounts
8709 are of course in place in the host mount namespace anyway.
8710
8711 * systemd-nspawn gained support for a new --pivot-root= switch. If
8712 specified the root directory within the container image is pivoted to
8713 the specified mount point, while the original root disk is moved to a
8714 different place. This option enables booting of ostree images
8715 directly with systemd-nspawn.
8716
d08ee7cb 8717 * The systemd build scripts will no longer complain if the NTP server
23eb30b3 8718 addresses are not changed from the defaults. Google now supports
d08ee7cb
LP
8719 these NTP servers officially. We still recommend downstreams to
8720 properly register an NTP pool with the NTP pool project though.
8721
c1ec34d1 8722 * coredumpctl gained a new "--reverse" option for printing the list
d08ee7cb
LP
8723 of coredumps in reverse order.
8724
23eb30b3
ZJS
8725 * coredumpctl will now show additional information about truncated and
8726 inaccessible coredumps, as well as coredumps that are still being
8727 processed. It also gained a new --quiet switch for suppressing
8728 additional informational message in its output.
8729
8730 * coredumpctl gained support for only showing coredumps newer and/or
8731 older than specific timestamps, using the new --since= and --until=
8732 options, reminiscent of journalctl's options by the same name.
8733
d08ee7cb 8734 * The systemd-coredump logic has been improved so that it may be reused
23eb30b3 8735 to collect backtraces in non-compiled languages, for example in
d08ee7cb
LP
8736 scripting languages such as Python.
8737
8738 * machinectl will now show the UID shift of local containers, if user
8739 namespacing is enabled for them.
8740
baf32786 8741 * systemd will now optionally run "environment generator" binaries at
d08ee7cb
LP
8742 configuration load time. They may be used to add environment
8743 variables to the environment block passed to services invoked. One
baf32786 8744 user environment generator is shipped by default that sets up
23eb30b3
ZJS
8745 environment variables based on files dropped into /etc/environment.d
8746 and ~/.config/environment.d/.
d08ee7cb 8747
a2b53448
LP
8748 * systemd-resolved now includes the new, recently published 2017 DNSSEC
8749 root key (KSK).
8750
a2b53448
LP
8751 * hostnamed has been updated to report a new chassis type of
8752 "convertible" to cover "foldable" laptops that can both act as a
8753 tablet and as a laptop, such as various Lenovo Yoga devices.
8754
d08ee7cb
LP
8755 Contributions from: Adrián López, Alexander Galanin, Alexander
8756 Kochetkov, Alexandros Frantzis, Andrey Ulanov, Antoine Eiche, Baruch
8757 Siach, Bastien Nocera, Benjamin Robin, Björn, Brandon Philips, Cédric
8758 Schieli, Charles (Chas) Williams, Christian Hesse, Daniele Medri,
8759 Daniel Drake, Daniel Rusek, Daniel Wagner, Dan Streetman, Dave Reisner,
8760 David Glasser, David Herrmann, David Michael, Djalal Harouni, Dmitry
8761 Khlebnikov, Dmitry Rozhkov, Dongsu Park, Douglas Christman, Earnestly,
8762 Emil Soleyman, Eric Cook, Evgeny Vereshchagin, Felipe Sateler, Fionn
8763 Cleary, Florian Klink, Francesco Brozzu, Franck Bui, Gabriel Rauter,
a2b53448
LP
8764 Gianluca Boiano, Giedrius Statkevičius, Graeme Lawes, Hans de Goede,
8765 Harald Hoyer, Ian Kelling, Ivan Shapovalov, Jakub Wilk, Janne Heß, Jan
8766 Synacek, Jason Reeder, Jonathan Boulle, Jörg Thalheim, Jouke Witteveen,
8767 Karl Kraus, Kees Cook, Keith Busch, Kieran Colford, kilian-k, Lennart
8768 Poettering, Lubomir Rintel, Lucas Werkmeister, Lukas Rusak, Maarten de
8769 Vries, Maks Naumov, Mantas Mikulėnas, Marc-Andre Lureau, Marcin Bachry,
8770 Mark Stosberg, Martin Ejdestig, Martin Pitt, Mauricio Faria de
8771 Oliveira, micah, Michael Biebl, Michael Shields, Michal Schmidt, Michal
8772 Sekletar, Michel Kraus, Mike Gilbert, Mikko Ylinen, Mirza Krak,
8773 Namhyung Kim, nikolaof, peoronoob, Peter Hutterer, Peter Körner, Philip
8774 Withnall, Piotr Drąg, Ray Strode, Reverend Homer, Rike-Benjamin
8775 Schuppner, Robert Kreuzer, Ronny Chevalier, Ruslan Bilovol, sammynx,
8776 Sergey Ptashnick, Sergiusz Urbaniak, Stefan Berger, Stefan Hajnoczi,
8777 Stefan Schweter, Stuart McLaren, Susant Sahani, Sylvain Plantefève,
8778 Taylor Smock, Tejun Heo, Thomas Blume, Thomas H. P. Andersen, Tibor
8779 Nagy, Tobias Stoeckmann, Tom Gundersen, Torstein Husebø, Viktar
8780 Vaŭčkievič, Viktor Mihajlovski, Vitaly Sulimov, Waldemar Brodkorb,
8781 Walter Garcia-Fontes, Wim de With, Yassine Imounachen, Yi EungJun,
8782 YunQiang Su, Yu Watanabe, Zbigniew Jędrzejewski-Szmek, Александр
8783 Тихонов
8784
8785 — Berlin, 2017-03-01
d08ee7cb 8786
54b24597 8787CHANGES WITH 232:
76153ad4 8788
05f426d2
LP
8789 * udev now runs with MemoryDenyWriteExecute=, RestrictRealtime= and
8790 RestrictAddressFamilies= enabled. These sandboxing options should
8791 generally be compatible with the various external udev call-out
8792 binaries we are aware of, however there may be exceptions, in
8793 particular when exotic languages for these call-outs are used. In
8794 this case, consider turning off these settings locally.
8795
4ffe2479
ZJS
8796 * The new RemoveIPC= option can be used to remove IPC objects owned by
8797 the user or group of a service when that service exits.
8798
6fa44114 8799 * The new ProtectKernelModules= option can be used to disable explicit
4c37970d
LP
8800 load and unload operations of kernel modules by a service. In
8801 addition access to /usr/lib/modules is removed if this option is set.
6fa44114 8802
4a77c53d
ZJS
8803 * ProtectSystem= option gained a new value "strict", which causes the
8804 whole file system tree with the exception of /dev, /proc, and /sys,
8805 to be remounted read-only for a service.
8806
e49e2c25 8807 * The new ProtectKernelTunables= option can be used to disable
4a77c53d
ZJS
8808 modification of configuration files in /sys and /proc by a service.
8809 Various directories and files are remounted read-only, so access is
8810 restricted even if the file permissions would allow it.
8811
6fa44114 8812 * The new ProtectControlGroups= option can be used to disable write
4a77c53d
ZJS
8813 access by a service to /sys/fs/cgroup.
8814
8815 * Various systemd services have been hardened with
8816 ProtectKernelTunables=yes, ProtectControlGroups=yes,
8817 RestrictAddressFamilies=.
8818
4ffe2479
ZJS
8819 * Support for dynamically creating users for the lifetime of a service
8820 has been added. If DynamicUser=yes is specified, user and group IDs
1d3a473b 8821 will be allocated from the range 61184…65519 for the lifetime of the
4ffe2479
ZJS
8822 service. They can be resolved using the new nss-systemd.so NSS
8823 module. The module must be enabled in /etc/nsswitch.conf. Services
8824 started in this way have PrivateTmp= and RemoveIPC= enabled, so that
8825 any resources allocated by the service will be cleaned up when the
4a77c53d
ZJS
8826 service exits. They also have ProtectHome=read-only and
8827 ProtectSystem=strict enabled, so they are not able to make any
8828 permanent modifications to the system.
4ffe2479 8829
171ae2cd 8830 * The nss-systemd module also always resolves root and nobody, making
4ffe2479 8831 it possible to have no /etc/passwd or /etc/group files in minimal
171ae2cd 8832 container or chroot environments.
4ffe2479
ZJS
8833
8834 * Services may be started with their own user namespace using the new
171ae2cd
LP
8835 boolean PrivateUsers= option. Only root, nobody, and the uid/gid
8836 under which the service is running are mapped. All other users are
8837 mapped to nobody.
4ffe2479
ZJS
8838
8839 * Support for the cgroup namespace has been added to systemd-nspawn. If
8840 supported by kernel, the container system started by systemd-nspawn
8841 will have its own view of the cgroup hierarchy. This new behaviour
8842 can be disabled using $SYSTEMD_NSPAWN_USE_CGNS environment variable.
8843
8844 * The new MemorySwapMax= option can be used to limit the maximum swap
8845 usage under the unified cgroup hierarchy.
8846
8847 * Support for the CPU controller in the unified cgroup hierarchy has
8848 been added, via the CPUWeight=, CPUStartupWeight=, CPUAccounting=
8849 options. This controller requires out-of-tree patches for the kernel
8850 and the support is provisional.
8851
171ae2cd
LP
8852 * Mount and automount units may now be created transiently
8853 (i.e. dynamically at runtime via the bus API, instead of requiring
8854 unit files in the file system).
8855
8856 * systemd-mount is a new tool which may mount file systems – much like
8857 mount(8), optionally pulling in additional dependencies through
8858 transient .mount and .automount units. For example, this tool
8859 automatically runs fsck on a backing block device before mounting,
8860 and allows the automount logic to be used dynamically from the
8861 command line for establishing mount points. This tool is particularly
8862 useful when dealing with removable media, as it will ensure fsck is
8863 run – if necessary – before the first access and that the file system
8864 is quickly unmounted after each access by utilizing the automount
8865 logic. This maximizes the chance that the file system on the
8866 removable media stays in a clean state, and if it isn't in a clean
8867 state is fixed automatically.
4ffe2479
ZJS
8868
8869 * LazyUnmount=yes option for mount units has been added to expose the
8870 umount --lazy option. Similarly, ForceUnmount=yes exposes the --force
8871 option.
8872
8873 * /efi will be used as the mount point of the EFI boot partition, if
8874 the directory is present, and the mount point was not configured
8875 through other means (e.g. fstab). If /efi directory does not exist,
8876 /boot will be used as before. This makes it easier to automatically
8877 mount the EFI partition on systems where /boot is used for something
8878 else.
8879
171ae2cd
LP
8880 * When operating on GPT disk images for containers, systemd-nspawn will
8881 now mount the ESP to /boot or /efi according to the same rules as PID
8882 1 running on a host. This allows tools like "bootctl" to operate
8883 correctly within such containers, in order to make container images
8884 bootable on physical systems.
8885
4a77c53d 8886 * disk/by-id and disk/by-path symlinks are now created for NVMe drives.
4ffe2479
ZJS
8887
8888 * Two new user session targets have been added to support running
8889 graphical sessions under the systemd --user instance:
8890 graphical-session.target and graphical-session-pre.target. See
8891 systemd.special(7) for a description of how those targets should be
8892 used.
8893
8894 * The vconsole initialization code has been significantly reworked to
d4c08299 8895 use KD_FONT_OP_GET/SET ioctls instead of KD_FONT_OP_COPY and better
4ffe2479
ZJS
8896 support unicode keymaps. Font and keymap configuration will now be
8897 copied to all allocated virtual consoles.
8898
05ecf467 8899 * FreeBSD's bhyve virtualization is now detected.
4ffe2479 8900
d4c08299 8901 * Information recorded in the journal for core dumps now includes the
4ffe2479
ZJS
8902 contents of /proc/mountinfo and the command line of the process at
8903 the top of the process hierarchy (which is usually the init process
8904 of the container).
8905
171ae2cd 8906 * systemd-journal-gatewayd learned the --directory= option to serve
4ffe2479
ZJS
8907 files from the specified location.
8908
8909 * journalctl --root=… can be used to peruse the journal in the
8910 /var/log/ directories inside of a container tree. This is similar to
8911 the existing --machine= option, but does not require the container to
8912 be active.
8913
8914 * The hardware database has been extended to support
8915 ID_INPUT_TRACKBALL, used in addition to ID_INPUT_MOUSE to identify
8916 trackball devices.
8917
8918 MOUSE_WHEEL_CLICK_ANGLE_HORIZONTAL hwdb property has been added to
8919 specify the click rate for mice which include a horizontal wheel with
8920 a click rate that is different than the one for the vertical wheel.
8921
8922 * systemd-run gained a new --wait option that makes service execution
171ae2cd
LP
8923 synchronous. (Specifically, the command will not return until the
8924 specified service binary exited.)
4ffe2479 8925
171ae2cd 8926 * systemctl gained a new --wait option that causes the start command to
4a77c53d
ZJS
8927 wait until the units being started have terminated again.
8928
171ae2cd 8929 * A new journal output mode "short-full" has been added which displays
4ffe2479 8930 timestamps with abbreviated English day names and adds a timezone
171ae2cd
LP
8931 suffix. Those timestamps include more information than the default
8932 "short" output mode, and can be passed directly to journalctl's
8933 --since= and --until= options.
4ffe2479
ZJS
8934
8935 * /etc/resolv.conf will be bind-mounted into containers started by
8936 systemd-nspawn, if possible, so any changes to resolv.conf contents
8937 are automatically propagated to the container.
8938
8939 * The number of instances for socket-activated services originating
171ae2cd
LP
8940 from a single IP address can be limited with
8941 MaxConnectionsPerSource=, extending the existing setting of
8942 MaxConnections=.
4ffe2479 8943
4a77c53d
ZJS
8944 * systemd-networkd gained support for vcan ("Virtual CAN") interface
8945 configuration.
8946
8947 * .netdev and .network configuration can now be extended through
8948 drop-ins.
8949
4ffe2479
ZJS
8950 * UDP Segmentation Offload, TCP Segmentation Offload, Generic
8951 Segmentation Offload, Generic Receive Offload, Large Receive Offload
8952 can be enabled and disabled using the new UDPSegmentationOffload=,
8953 TCPSegmentationOffload=, GenericSegmentationOffload=,
8954 GenericReceiveOffload=, LargeReceiveOffload= options in the
8955 [Link] section of .link files.
8956
171ae2cd
LP
8957 * The Spanning Tree Protocol, Priority, Aging Time, and the Default
8958 Port VLAN ID can be configured for bridge devices using the new STP=,
8959 Priority=, AgeingTimeSec=, and DefaultPVID= settings in the [Bridge]
8960 section of .netdev files.
4ffe2479 8961
171ae2cd 8962 * The route table to which routes received over DHCP or RA should be
4a77c53d
ZJS
8963 added can be configured with the new RouteTable= option in the [DHCP]
8964 and [IPv6AcceptRA] sections of .network files.
8965
171ae2cd 8966 * The Address Resolution Protocol can be disabled on links managed by
4ffe2479
ZJS
8967 systemd-networkd using the ARP=no setting in the [Link] section of
8968 .network files.
8969
171ae2cd
LP
8970 * New environment variables $SERVICE_RESULT, $EXIT_CODE and
8971 $EXIT_STATUS are set for ExecStop= and ExecStopPost= commands, and
8972 encode information about the result and exit codes of the current
8973 service runtime cycle.
4ffe2479 8974
4a77c53d 8975 * systemd-sysctl will now configure kernel parameters in the order
1f4f4cf7 8976 they occur in the configuration files. This matches what sysctl
4a77c53d
ZJS
8977 has been traditionally doing.
8978
8979 * kernel-install "plugins" that are executed to perform various
8980 tasks after a new kernel is added and before an old one is removed
8981 can now return a special value to terminate the procedure and
8982 prevent any later plugins from running.
8983
76153ad4 8984 * Journald's SplitMode=login setting has been deprecated. It has been
d4c08299 8985 removed from documentation, and its use is discouraged. In a future
76153ad4
ZJS
8986 release it will be completely removed, and made equivalent to current
8987 default of SplitMode=uid.
8988
4a77c53d
ZJS
8989 * Storage=both option setting in /etc/systemd/coredump.conf has been
8990 removed. With fast LZ4 compression storing the core dump twice is not
8991 useful.
8992
4ffe2479
ZJS
8993 * The --share-system systemd-nspawn option has been replaced with an
8994 (undocumented) variable $SYSTEMD_NSPAWN_SHARE_SYSTEM, but the use of
8995 this functionality is discouraged. In addition the variables
8996 $SYSTEMD_NSPAWN_SHARE_NS_IPC, $SYSTEMD_NSPAWN_SHARE_NS_PID,
8997 $SYSTEMD_NSPAWN_SHARE_NS_UTS may be used to control the unsharing of
8998 individual namespaces.
8999
171ae2cd
LP
9000 * "machinectl list" now shows the IP address of running containers in
9001 the output, as well as OS release information.
9002
9003 * "loginctl list" now shows the TTY of each session in the output.
9004
9005 * sd-bus gained new API calls sd_bus_track_set_recursive(),
9006 sd_bus_track_get_recursive(), sd_bus_track_count_name(),
9007 sd_bus_track_count_sender(). They permit usage of sd_bus_track peer
9008 tracking objects in a "recursive" mode, where a single client can be
9009 counted multiple times, if it takes multiple references.
9010
9011 * sd-bus gained new API calls sd_bus_set_exit_on_disconnect() and
bc99dac5 9012 sd_bus_get_exit_on_disconnect(). They may be used to make a
171ae2cd
LP
9013 process using sd-bus automatically exit if the bus connection is
9014 severed.
9015
9016 * Bus clients of the service manager may now "pin" loaded units into
9017 memory, by taking an explicit reference on them. This is useful to
9018 ensure the client can retrieve runtime data about the service even
9019 after the service completed execution. Taking such a reference is
9020 available only for privileged clients and should be helpful to watch
9021 running services in a race-free manner, and in particular collect
9022 information about exit statuses and results.
9023
4c37970d
LP
9024 * The nss-resolve module has been changed to strictly return UNAVAIL
9025 when communication via D-Bus with resolved failed, and NOTFOUND when
9026 a lookup completed but was negative. This means it is now possible to
9027 neatly configure fallbacks using nsswitch.conf result checking
9028 expressions. Taking benefit of this, the new recommended
9029 configuration line for the "hosts" entry in /etc/nsswitch.conf is:
9030
9031 hosts: files mymachines resolve [!UNAVAIL=return] dns myhostname
9032
9033 * A new setting CtrlAltDelBurstAction= has been added to
9034 /etc/systemd/system.conf which may be used to configure the precise
9035 behaviour if the user on the console presses Ctrl-Alt-Del more often
9036 than 7 times in 2s. Previously this would unconditionally result in
9037 an expedited, immediate reboot. With this new setting the precise
9038 operation may be configured in more detail, and also turned off
9039 entirely.
9040
9041 * In .netdev files two new settings RemoteChecksumTx= and
9042 RemoteChecksumRx= are now understood that permit configuring the
9043 remote checksumming logic for VXLAN networks.
9044
9045 * The service manager learnt a new "invocation ID" concept for invoked
9046 services. Each runtime cycle of a service will get a new invocation
9047 ID (a 128bit random UUID) assigned that identifies the current
9048 run of the service uniquely and globally. A new invocation ID
9049 is generated each time a service starts up. The journal will store
9050 the invocation ID of a service along with any logged messages, thus
9051 making the invocation ID useful for matching the online runtime of a
9052 service with the offline log data it generated in a safe way without
9053 relying on synchronized timestamps. In many ways this new service
9054 invocation ID concept is similar to the kernel's boot ID concept that
9055 uniquely and globally identifies the runtime of each boot. The
9056 invocation ID of a service is passed to the service itself via an
9057 environment variable ($INVOCATION_ID). A new bus call
9058 GetUnitByInvocationID() has been added that is similar to GetUnit()
9059 but instead of retrieving the bus path for a unit by its name
9060 retrieves it by its invocation ID. The returned path is valid only as
9061 long as the passed invocation ID is current.
9062
9063 * systemd-resolved gained a new "DNSStubListener" setting in
9064 resolved.conf. It either takes a boolean value or the special values
9065 "udp" and "tcp", and configures whether to enable the stub DNS
9066 listener on 127.0.0.53:53.
9067
9068 * IP addresses configured via networkd may now carry additional
9069 configuration settings supported by the kernel. New options include:
9070 HomeAddress=, DuplicateAddressDetection=, ManageTemporaryAddress=,
9071 PrefixRoute=, AutoJoin=.
9072
9073 * The PAM configuration fragment file for "user@.service" shipped with
9074 systemd (i.e. the --user instance of systemd) has been stripped to
9075 the minimum necessary to make the system boot. Previously, it
9076 contained Fedora-specific stanzas that did not apply to other
9077 distributions. It is expected that downstream distributions add
9078 additional configuration lines, matching their needs to this file,
9079 using it only as rough template of what systemd itself needs. Note
9080 that this reduced fragment does not even include an invocation of
9081 pam_limits which most distributions probably want to add, even though
9082 systemd itself does not need it. (There's also the new build time
9083 option --with-pamconfdir=no to disable installation of the PAM
9084 fragment entirely.)
9085
9086 * If PrivateDevices=yes is set for a service the CAP_SYS_RAWIO
9087 capability is now also dropped from its set (in addition to
9088 CAP_SYS_MKNOD as before).
9089
9090 * In service unit files it is now possible to connect a specific named
9091 file descriptor with stdin/stdout/stdout of an executed service. The
9092 name may be specified in matching .socket units using the
9093 FileDescriptorName= setting.
9094
9095 * A number of journal settings may now be configured on the kernel
9096 command line. Specifically, the following options are now understood:
9097 systemd.journald.max_level_console=,
9098 systemd.journald.max_level_store=,
9099 systemd.journald.max_level_syslog=, systemd.journald.max_level_kmsg=,
9100 systemd.journald.max_level_wall=.
9101
9102 * "systemctl is-enabled --full" will now show by which symlinks a unit
9103 file is enabled in the unit dependency tree.
9104
b4eed568
LP
9105 * Support for VeraCrypt encrypted partitions has been added to the
9106 "cryptsetup" logic and /etc/crypttab.
9107
9108 * systemd-detect-virt gained support for a new --private-users switch
9109 that checks whether the invoking processes are running inside a user
9110 namespace. Similar, a new special value "private-users" for the
9111 existing ConditionVirtualization= setting has been added, permitting
9112 skipping of specific units in user namespace environments.
9113
07393b6e
LP
9114 Contributions from: Alban Crequy, Alexander Kuleshov, Alfie John,
9115 Andreas Henriksson, Andrew Jeddeloh, Balázs Úr, Bart Rulon, Benjamin
9116 Richter, Ben Gamari, Ben Harris, Brian J. Murrell, Christian Brauner,
9117 Christian Rebischke, Clinton Roy, Colin Walters, Cristian Rodríguez,
9118 Daniel Hahler, Daniel Mack, Daniel Maixner, Daniel Rusek, Dan Dedrick,
9119 Davide Cavalca, David Herrmann, David Michael, Dennis Wassenberg,
9120 Djalal Harouni, Dongsu Park, Douglas Christman, Elias Probst, Eric
9121 Cook, Erik Karlsson, Evgeny Vereshchagin, Felipe Sateler, Felix Zhang,
9122 Franck Bui, George Hilliard, Giuseppe Scrivano, HATAYAMA Daisuke,
9123 Heikki Kemppainen, Hendrik Brueckner, hi117, Ismo Puustinen, Ivan
9124 Shapovalov, Jakub Filak, Jakub Wilk, Jan Synacek, Jason Kölker,
9125 Jean-Sébastien Bour, Jiří Pírko, Jonathan Boulle, Jorge Niedbalski,
9126 Keith Busch, kristbaum, Kyle Russell, Lans Zhang, Lennart Poettering,
9127 Leonardo Brondani Schenkel, Lucas Werkmeister, Luca Bruno, Lukáš
9128 Nykrýn, Maciek Borzecki, Mantas Mikulėnas, Marc-Antoine Perennou,
9129 Marcel Holtmann, Marcos Mello, Martin Ejdestig, Martin Pitt, Matej
9130 Habrnal, Maxime de Roucy, Michael Biebl, Michael Chapman, Michael Hoy,
9131 Michael Olbrich, Michael Pope, Michal Sekletar, Michal Soltys, Mike
9132 Gilbert, Nick Owens, Patrik Flykt, Paweł Szewczyk, Peter Hutterer,
9133 Piotr Drąg, Reid Price, Richard W.M. Jones, Roman Stingler, Ronny
9134 Chevalier, Seraphime Kirkovski, Stefan Schweter, Steve Muir, Susant
9135 Sahani, Tejun Heo, Thomas Blume, Thomas H. P. Andersen, Tiago Levit,
9136 Tobias Jungel, Tomáš Janoušek, Topi Miettinen, Torstein Husebø, Umut
9137 Tezduyar Lindskog, Vito Caputo, WaLyong Cho, Wilhelm Schuster, Yann
9138 E. MORIN, Yi EungJun, Yuki Inoguchi, Yu Watanabe, Zbigniew
9139 Jędrzejewski-Szmek, Zeal Jagannatha
9140
54b24597 9141 — Santa Fe, 2016-11-03
07393b6e 9142
5cd118ba
MP
9143CHANGES WITH 231:
9144
fcd30826
LP
9145 * In service units the various ExecXYZ= settings have been extended
9146 with an additional special character as first argument of the
43eb109a 9147 assigned value: if the character '+' is used the specified command
fcd30826
LP
9148 line it will be run with full privileges, regardless of User=,
9149 Group=, CapabilityBoundingSet= and similar options. The effect is
9150 similar to the existing PermissionsStartOnly= option, but allows
9151 configuration of this concept for each executed command line
9152 independently.
9153
9154 * Services may now alter the service watchdog timeout at runtime by
9155 sending a WATCHDOG_USEC= message via sd_notify().
9156
9157 * MemoryLimit= and related unit settings now optionally take percentage
9158 specifications. The percentage is taken relative to the amount of
9159 physical memory in the system (or in case of containers, the assigned
9160 amount of memory). This allows scaling service resources neatly with
771de3f5 9161 the amount of RAM available on the system. Similarly, systemd-logind's
fcd30826
LP
9162 RuntimeDirectorySize= option now also optionally takes percentage
9163 values.
9164
9165 * In similar fashion TasksMax= takes percentage values now, too. The
9166 value is taken relative to the configured maximum number of processes
9167 on the system. The per-service task maximum has been changed to 15%
9168 using this functionality. (Effectively this is an increase of 512 →
9169 4915 for service units, given the kernel's default pid_max setting.)
9170
9171 * Calendar time specifications in .timer units now understand a ".."
9172 syntax for time ranges. Example: "4..7:10" may now be used for
9173 defining a timer that is triggered at 4:10am, 5:10am, 6:10am and
9174 7:10am every day.
9175
9176 * The InaccessableDirectories=, ReadOnlyDirectories= and
9177 ReadWriteDirectories= unit file settings have been renamed to
9178 InaccessablePaths=, ReadOnlyPaths= and ReadWritePaths= and may now be
9179 applied to all kinds of file nodes, and not just directories, with
9180 the exception of symlinks. Specifically these settings may now be
9181 used on block and character device nodes, UNIX sockets and FIFOS as
9182 well as regular files. The old names of these settings remain
9183 available for compatibility.
9184
9185 * systemd will now log about all service processes it kills forcibly
9186 (using SIGKILL) because they remained after the clean shutdown phase
9187 of the service completed. This should help identifying services that
9188 shut down uncleanly. Moreover if KillUserProcesses= is enabled in
9189 systemd-logind's configuration a similar log message is generated for
9190 processes killed at the end of each session due to this setting.
9191
9192 * systemd will now set the $JOURNAL_STREAM environment variable for all
9193 services whose stdout/stderr are connected to the Journal (which
9194 effectively means by default: all services). The variable contains
9195 the device and inode number of the file descriptor used for
9196 stdout/stderr. This may be used by invoked programs to detect whether
9197 their stdout/stderr is connected to the Journal, in which case they
9198 can switch over to direct Journal communication, thus being able to
9199 pass extended, structured metadata along with their log messages. As
9200 one example, this is now used by glib's logging primitives.
9201
9202 * When using systemd's default tmp.mount unit for /tmp, the mount point
9203 will now be established with the "nosuid" and "nodev" options. This
9204 avoids privilege escalation attacks that put traps and exploits into
9205 /tmp. However, this might cause problems if you e. g. put container
5cd118ba
MP
9206 images or overlays into /tmp; if you need this, override tmp.mount's
9207 "Options=" with a drop-in, or mount /tmp from /etc/fstab with your
9208 desired options.
9209
fcd30826 9210 * systemd now supports the "memory" cgroup controller also on
4e1dfa45 9211 cgroup v2.
fcd30826
LP
9212
9213 * The systemd-cgtop tool now optionally takes a control group path as
9214 command line argument. If specified, the control group list shown is
9215 limited to subgroups of that group.
9216
9217 * The SystemCallFilter= unit file setting gained support for
9218 pre-defined, named system call filter sets. For example
9219 SystemCallFilter=@clock is now an effective way to make all clock
771de3f5 9220 changing-related system calls unavailable to a service. A number of
fcd30826
LP
9221 similar pre-defined groups are defined. Writing system call filters
9222 for system services is simplified substantially with this new
9223 concept. Accordingly, all of systemd's own, long-running services now
9224 enable system call filtering based on this, by default.
9225
9226 * A new service setting MemoryDenyWriteExecute= has been added, taking
9227 a boolean value. If turned on, a service may no longer create memory
9228 mappings that are writable and executable at the same time. This
9229 enhances security for services where this is enabled as it becomes
9230 harder to dynamically write and then execute memory in exploited
9231 service processes. This option has been enabled for all of systemd's
9232 own long-running services.
9233
9234 * A new RestrictRealtime= service setting has been added, taking a
9235 boolean argument. If set the service's processes may no longer
9236 acquire realtime scheduling. This improves security as realtime
9237 scheduling may otherwise be used to easily freeze the system.
9238
9239 * systemd-nspawn gained a new switch --notify-ready= taking a boolean
9240 value. This may be used for requesting that the system manager inside
9241 of the container reports start-up completion to nspawn which then
9242 propagates this notification further to the service manager
9243 supervising nspawn itself. A related option NotifyReady= in .nspawn
9244 files has been added too. This functionality allows ordering of the
9245 start-up of multiple containers using the usual systemd ordering
9246 primitives.
9247
9248 * machinectl gained a new command "stop" that is an alias for
9249 "terminate".
9250
9251 * systemd-resolved gained support for contacting DNS servers on
9252 link-local IPv6 addresses.
9253
9254 * If systemd-resolved receives the SIGUSR2 signal it will now flush all
9255 its caches. A method call for requesting the same operation has been
9256 added to the bus API too, and is made available via "systemd-resolve
9257 --flush-caches".
9258
771de3f5 9259 * systemd-resolve gained a new --status switch. If passed a brief
fcd30826
LP
9260 summary of the used DNS configuration with per-interface information
9261 is shown.
9262
9263 * resolved.conf gained a new Cache= boolean option, defaulting to
9264 on. If turned off local DNS caching is disabled. This comes with a
9265 performance penalty in particular when DNSSEC is enabled. Note that
771de3f5 9266 resolved disables its internal caching implicitly anyway, when the
fcd30826
LP
9267 configured DNS server is on a host-local IP address such as ::1 or
9268 127.0.0.1, thus automatically avoiding double local caching.
9269
9270 * systemd-resolved now listens on the local IP address 127.0.0.53:53
9271 for DNS requests. This improves compatibility with local programs
9272 that do not use the libc NSS or systemd-resolved's bus APIs for name
9273 resolution. This minimal DNS service is only available to local
9274 programs and does not implement the full DNS protocol, but enough to
9275 cover local DNS clients. A new, static resolv.conf file, listing just
9276 this DNS server is now shipped in /usr/lib/systemd/resolv.conf. It is
9277 now recommended to make /etc/resolv.conf a symlink to this file in
9278 order to route all DNS lookups to systemd-resolved, regardless if
9279 done via NSS, the bus API or raw DNS packets. Note that this local
9280 DNS service is not as fully featured as the libc NSS or
9281 systemd-resolved's bus APIs. For example, as unicast DNS cannot be
9282 used to deliver link-local address information (as this implies
9283 sending a local interface index along), LLMNR/mDNS support via this
9284 interface is severely restricted. It is thus strongly recommended for
9285 all applications to use the libc NSS API or native systemd-resolved
9286 bus API instead.
9287
9288 * systemd-networkd's bridge support learned a new setting
9289 VLANFiltering= for controlling VLAN filtering. Moreover a new section
9290 in .network files has been added for configuring VLAN bridging in
9291 more detail: VLAN=, EgressUntagged=, PVID= in [BridgeVLAN].
9292
9293 * systemd-networkd's IPv6 Router Advertisement code now makes use of
9294 the DNSSL and RDNSS options. This means IPv6 DNS configuration may
9295 now be acquired without relying on DHCPv6. Two new options
9296 UseDomains= and UseDNS= have been added to configure this behaviour.
9297
9298 * systemd-networkd's IPv6AcceptRouterAdvertisements= option has been
9299 renamed IPv6AcceptRA=, without altering its behaviour. The old
9300 setting name remains available for compatibility reasons.
9301
9302 * The systemd-networkd VTI/VTI6 tunneling support gained new options
9303 Key=, InputKey= and OutputKey=.
9304
9305 * systemd-networkd gained support for VRF ("Virtual Routing Function")
9306 interface configuration.
9307
9308 * "systemctl edit" may now be used to create new unit files by
9309 specifying the --force switch.
9310
9311 * sd-event gained a new function sd_event_get_iteration() for
9312 requesting the current iteration counter of the event loop. It starts
9313 at zero and is increased by one with each event loop iteration.
9314
43a569a1
ZJS
9315 * A new rpm macro %systemd_ordering is provided by the macros.systemd
9316 file. It can be used in lieu of %systemd_requires in packages which
9317 don't use any systemd functionality and are intended to be installed
9318 in minimal containers without systemd present. This macro provides
ce830873 9319 ordering dependencies to ensure that if the package is installed in
43a569a1
ZJS
9320 the same rpm transaction as systemd, systemd will be installed before
9321 the scriptlets for the package are executed, allowing unit presets
9322 to be handled.
9323
9324 New macros %_systemdgeneratordir and %_systemdusergeneratordir have
9325 been added to simplify packaging of generators.
9326
9327 * The os-release file gained VERSION_CODENAME field for the
9328 distribution nickname (e.g. VERSION_CODENAME=woody).
9329
9330 * New udev property UDEV_DISABLE_PERSISTENT_STORAGE_RULES_FLAG=1
9331 can be set to disable parsing of metadata and the creation
9332 of persistent symlinks for that device.
9333
0f1da52b
LP
9334 * The v230 change to tag framebuffer devices (/dev/fb*) with "uaccess"
9335 to make them available to logged-in users has been reverted.
9336
9337 * Much of the common code of the various systemd components is now
9338 built into an internal shared library libsystemd-shared-231.so
9339 (incorporating the systemd version number in the name, to be updated
9340 with future releases) that the components link to. This should
9341 decrease systemd footprint both in memory during runtime and on
9342 disk. Note that the shared library is not for public use, and is
ead6bd25 9343 neither API nor ABI stable, but is likely to change with every new
1ecbf32f
ZJS
9344 released update. Packagers need to make sure that binaries
9345 linking to libsystemd-shared.so are updated in step with the
9346 library.
43a569a1 9347
fcd30826
LP
9348 * Configuration for "mkosi" is now part of the systemd
9349 repository. mkosi is a tool to easily build legacy-free OS images,
9350 and is available on github: https://github.com/systemd/mkosi. If
9351 "mkosi" is invoked in the build tree a new raw OS image is generated
9352 incorporating the systemd sources currently being worked on and a
9353 clean, fresh distribution installation. The generated OS image may be
ce830873 9354 booted up with "systemd-nspawn -b -i", qemu-kvm or on any physical
fcd30826
LP
9355 UEFI PC. This functionality is particularly useful to easily test
9356 local changes made to systemd in a pristine, defined environment. See
f09eb768 9357 doc/HACKING for details.
ceeddf79 9358
4ffe2479
ZJS
9359 * configure learned the --with-support-url= option to specify the
9360 distribution's bugtracker.
9361
38b383d9
LP
9362 Contributions from: Alban Crequy, Alessandro Puccetti, Alessio Igor
9363 Bogani, Alexander Kuleshov, Alexander Kurtz, Alex Gaynor, Andika
9364 Triwidada, Andreas Pokorny, Andreas Rammhold, Andrew Jeddeloh, Ansgar
9365 Burchardt, Atrotors, Benjamin Drung, Brian Boylston, Christian Hesse,
9366 Christian Rebischke, Daniele Medri, Daniel Mack, Dave Reisner, David
9367 Herrmann, David Michael, Djalal Harouni, Douglas Christman, Elias
9368 Probst, Evgeny Vereshchagin, Federico Mena Quintero, Felipe Sateler,
9369 Franck Bui, Harald Hoyer, Ian Lee, Ivan Shapovalov, Jakub Wilk, Jan
9370 Janssen, Jean-Sébastien Bour, John Paul Adrian Glaubitz, Jouke
9371 Witteveen, Kai Ruhnau, kpengboy, Kyle Walker, Lénaïc Huard, Lennart
9372 Poettering, Luca Bruno, Lukas Lösche, Lukáš Nykrýn, mahkoh, Marcel
9373 Holtmann, Martin Pitt, Marty Plummer, Matthieu Codron, Max Prokhorov,
9374 Michael Biebl, Michael Karcher, Michael Olbrich, Michał Bartoszkiewicz,
9375 Michal Sekletar, Michal Soltys, Minkyung, Muhammet Kara, mulkieran,
9376 Otto Wallenius, Pablo Lezaeta Reyes, Peter Hutterer, Ronny Chevalier,
9377 Rusty Bird, Stef Walter, Susant Sahani, Tejun Heo, Thomas Blume, Thomas
771de3f5
ZJS
9378 Haller, Thomas H. P. Andersen, Tobias Jungel, Tom Gundersen, Tom Yan,
9379 Topi Miettinen, Torstein Husebø, Valentin Vidić, Viktar Vaŭčkievič,
38b383d9 9380 WaLyong Cho, Weng Xuetian, Werner Fink, Zbigniew Jędrzejewski-Szmek
5cd118ba 9381
38b383d9 9382 — Berlin, 2016-07-25
5cd118ba 9383
46e40fab 9384CHANGES WITH 230:
7f6e8043 9385
61ecb465
LP
9386 * DNSSEC is now turned on by default in systemd-resolved (in
9387 "allow-downgrade" mode), but may be turned off during compile time by
9388 passing "--with-default-dnssec=no" to "configure" (and of course,
9389 during runtime with DNSSEC= in resolved.conf). We recommend
9390 downstreams to leave this on at least during development cycles and
9391 report any issues with the DNSSEC logic upstream. We are very
9392 interested in collecting feedback about the DNSSEC validator and its
9393 limitations in the wild. Note however, that DNSSEC support is
9394 probably nothing downstreams should turn on in stable distros just
96d49011 9395 yet, as it might create incompatibilities with a few DNS servers and
61ecb465
LP
9396 networks. We tried hard to make sure we downgrade to non-DNSSEC mode
9397 automatically whenever we detect such incompatible setups, but there
9398 might be systems we do not cover yet. Hence: please help us testing
9399 the DNSSEC code, leave this on where you can, report back, but then
9400 again don't consider turning this on in your stable, LTS or
e40a326c
LP
9401 production release just yet. (Note that you have to enable
9402 nss-resolve in /etc/nsswitch.conf, to actually use systemd-resolved
38b38500 9403 and its DNSSEC mode for hostname resolution from local
e40a326c 9404 applications.)
61ecb465 9405
96515dbf 9406 * systemd-resolve conveniently resolves DANE records with the --tlsa
e40a326c 9407 option and OPENPGPKEY records with the --openpgp option. It also
e75690c3 9408 supports dumping raw DNS record data via the new --raw= switch.
96515dbf 9409
97e5530c
ZJS
9410 * systemd-logind will now by default terminate user processes that are
9411 part of the user session scope unit (session-XX.scope) when the user
977f2bea 9412 logs out. This behavior is controlled by the KillUserProcesses=
e40a326c
LP
9413 setting in logind.conf, and the previous default of "no" is now
9414 changed to "yes". This means that user sessions will be properly
9415 cleaned up after, but additional steps are necessary to allow
9416 intentionally long-running processes to survive logout.
97e5530c
ZJS
9417
9418 While the user is logged in at least once, user@.service is running,
9419 and any service that should survive the end of any individual login
9420 session can be started at a user service or scope using systemd-run.
e40a326c 9421 systemd-run(1) man page has been extended with an example which shows
8951eaec 9422 how to run screen in a scope unit underneath user@.service. The same
e40a326c 9423 command works for tmux.
97e5530c
ZJS
9424
9425 After the user logs out of all sessions, user@.service will be
9426 terminated too, by default, unless the user has "lingering" enabled.
9427 To effectively allow users to run long-term tasks even if they are
152199f2
ZJS
9428 logged out, lingering must be enabled for them. See loginctl(1) for
9429 details. The default polkit policy was modified to allow users to
9430 set lingering for themselves without authentication.
7f6e8043 9431
95365a57 9432 Previous defaults can be restored at compile time by the
e40a326c 9433 --without-kill-user-processes option to "configure".
7f6e8043 9434
e75690c3
ZJS
9435 * systemd-logind gained new configuration settings SessionsMax= and
9436 InhibitorsMax=, both with a default of 8192. It will not register new
188d3082 9437 user sessions or inhibitors above this limit.
e75690c3
ZJS
9438
9439 * systemd-logind will now reload configuration on SIGHUP.
9440
96515dbf 9441 * The unified cgroup hierarchy added in Linux 4.5 is now supported.
e40a326c 9442 Use systemd.unified_cgroup_hierarchy=1 on the kernel command line to
25b0e6cb
LP
9443 enable. Also, support for the "io" cgroup controller in the unified
9444 hierarchy has been added, so that the "memory", "pids" and "io" are
9445 now the controllers that are supported on the unified hierarchy.
e40a326c 9446
96515dbf
ZJS
9447 WARNING: it is not possible to use previous systemd versions with
9448 systemd.unified_cgroup_hierarchy=1 and the new kernel. Therefore it
9449 is necessary to also update systemd in the initramfs if using the
e40a326c 9450 unified hierarchy. An updated SELinux policy is also required.
96515dbf 9451
e40a326c
LP
9452 * LLDP support has been extended, and both passive (receive-only) and
9453 active (sender) modes are supported. Passive mode ("routers-only") is
8951eaec
ZJS
9454 enabled by default in systemd-networkd. Active LLDP mode is enabled
9455 by default for containers on the internal network. The "networkctl
e40a326c
LP
9456 lldp" command may be used to list information gathered. "networkctl
9457 status" will also show basic LLDP information on connected peers now.
96515dbf 9458
e40a326c
LP
9459 * The IAID and DUID unique identifier sent in DHCP requests may now be
9460 configured for the system and each .network file managed by
e75690c3
ZJS
9461 systemd-networkd using the DUIDType=, DUIDRawData=, IAID= options.
9462
9463 * systemd-networkd gained support for configuring proxy ARP support for
9464 each interface, via the ProxyArp= setting in .network files. It also
9465 gained support for configuring the multicast querier feature of
9466 bridge devices, via the new MulticastQuerier= setting in .netdev
9467 files. Similarly, snooping on the IGMP traffic can be controlled
9468 via the new setting MulticastSnooping=.
9469
9470 A new setting PreferredLifetime= has been added for addresses
9471 configured in .network file to configure the lifetime intended for an
9472 address.
9473
9474 The systemd-networkd DHCP server gained the option EmitRouter=, which
9475 defaults to yes, to configure whether the DHCP Option 3 (Router)
9476 should be emitted.
96515dbf 9477
e40a326c 9478 * The testing tool /usr/lib/systemd/systemd-activate is renamed to
97e5530c
ZJS
9479 systemd-socket-activate and installed into /usr/bin. It is now fully
9480 supported.
9481
e40a326c
LP
9482 * systemd-journald now uses separate threads to flush changes to disk
9483 when closing journal files, thus reducing impact of slow disk I/O on
9484 logging performance.
96515dbf 9485
e75690c3
ZJS
9486 * The sd-journal API gained two new calls
9487 sd_journal_open_directory_fd() and sd_journal_open_files_fd() which
9488 can be used to open journal files using file descriptors instead of
9489 file or directory paths. sd_journal_open_container() has been
9490 deprecated, sd_journal_open_directory_fd() should be used instead
9491 with the flag SD_JOURNAL_OS_ROOT.
9492
9493 * journalctl learned a new output mode "-o short-unix" that outputs log
9494 lines prefixed by their UNIX time (i.e. seconds since Jan 1st, 1970
9495 UTC). It also gained support for a new --no-hostname setting to
9496 suppress the hostname column in the family of "short" output modes.
9497
e40a326c
LP
9498 * systemd-ask-password now optionally skips printing of the password to
9499 stdout with --no-output which can be useful in scripts.
96515dbf
ZJS
9500
9501 * Framebuffer devices (/dev/fb*) and 3D printers and scanners
9502 (devices tagged with ID_MAKER_TOOL) are now tagged with
9503 "uaccess" and are available to logged in users.
9504
e75690c3 9505 * The DeviceAllow= unit setting now supports specifiers (with "%").
e40a326c
LP
9506
9507 * "systemctl show" gained a new --value switch, which allows print a
9508 only the contents of a specific unit property, without also printing
8951eaec
ZJS
9509 the property's name. Similar support was added to "show*" verbs
9510 of loginctl and machinectl that output "key=value" lists.
e40a326c 9511
e75690c3
ZJS
9512 * A new unit type "generated" was added for files dynamically generated
9513 by generator tools. Similarly, a new unit type "transient" is used
9514 for unit files created using the runtime API. "systemctl enable" will
9515 refuse to operate on such files.
9516
e40a326c
LP
9517 * A new command "systemctl revert" has been added that may be used to
9518 revert to the vendor version of a unit file, in case local changes
9519 have been made by adding drop-ins or overriding the unit file.
9520
9521 * "machinectl clean" gained a new verb to automatically remove all or
9522 just hidden container images.
9523
e40a326c
LP
9524 * systemd-tmpfiles gained support for a new line type "e" for emptying
9525 directories, if they exist, without creating them if they don't.
9526
e40a326c
LP
9527 * systemd-nspawn gained support for automatically patching the UID/GIDs
9528 of the owners and the ACLs of all files and directories in a
9529 container tree to match the UID/GID user namespacing range selected
9530 for the container invocation. This mode is enabled via the new
24597ee0
ZJS
9531 --private-users-chown switch. It also gained support for
9532 automatically choosing a free, previously unused UID/GID range when
9533 starting a container, via the new --private-users=pick setting (which
9534 implies --private-users-chown). Together, these options for the first
9535 time make user namespacing for nspawn containers fully automatic and
9536 thus deployable. The systemd-nspawn@.service template unit file has
9537 been changed to use this functionality by default.
e40a326c 9538
25b0e6cb
LP
9539 * systemd-nspawn gained a new --network-zone= switch, that allows
9540 creating ad-hoc virtual Ethernet links between multiple containers,
9541 that only exist as long as at least one container referencing them is
9542 running. This allows easy connecting of multiple containers with a
9543 common link that implements an Ethernet broadcast domain. Each of
9544 these network "zones" may be named relatively freely by the user, and
9545 may be referenced by any number of containers, but each container may
9546 only reference one of these "zones". On the lower level, this is
9547 implemented by an automatically managed bridge network interface for
9548 each zone, that is created when the first container referencing its
9549 zone is created and removed when the last one referencing its zone
9550 terminates.
9551
e40a326c 9552 * The default start timeout may now be configured on the kernel command
8951eaec
ZJS
9553 line via systemd.default_timeout_start_sec=. It was already
9554 configurable via the DefaultTimeoutStartSec= option in
9555 /etc/systemd/system.conf.
e40a326c 9556
030bd839 9557 * Socket units gained a new TriggerLimitIntervalSec= and
e40a326c
LP
9558 TriggerLimitBurst= setting to configure a limit on the activation
9559 rate of the socket unit.
9560
9561 * The LimitNICE= setting now optionally takes normal UNIX nice values
9562 in addition to the raw integer limit value. If the specified
1d3a473b 9563 parameter is prefixed with "+" or "-" and is in the range -20…19 the
e40a326c
LP
9564 value is understood as UNIX nice value. If not prefixed like this it
9565 is understood as raw RLIMIT_NICE limit.
9566
999a43f8
LP
9567 * Note that the effect of the PrivateDevices= unit file setting changed
9568 slightly with this release: the per-device /dev file system will be
9569 mounted read-only from this version on, and will have "noexec"
188d3082 9570 set. This (minor) change of behavior might cause some (exceptional)
999a43f8
LP
9571 legacy software to break, when PrivateDevices=yes is set for its
9572 service. Please leave PrivateDevices= off if you run into problems
9573 with this.
9574
e75690c3
ZJS
9575 * systemd-bootchart has been split out to a separate repository:
9576 https://github.com/systemd/systemd-bootchart
9577
9578 * systemd-bus-proxyd has been removed, as kdbus is unlikely to still be
9579 merged into the kernel in its current form.
9580
9581 * The compatibility libraries libsystemd-daemon.so,
9582 libsystemd-journal.so, libsystemd-id128.so, and libsystemd-login.so
9583 which have been deprecated since systemd-209 have been removed along
9584 with the corresponding pkg-config files. All symbols provided by
9585 those libraries are provided by libsystemd.so.
9586
9587 * The Capabilities= unit file setting has been removed (it is ignored
9588 for backwards compatibility). AmbientCapabilities= and
9589 CapabilityBoundingSet= should be used instead.
9590
4f9020fa
DR
9591 * A new special target has been added, initrd-root-device.target,
9592 which creates a synchronization point for dependencies of the root
9593 device in early userspace. Initramfs builders must ensure that this
9594 target is now included in early userspace.
9595
e75690c3
ZJS
9596 Contributions from: Alban Crequy, Alexander Kuleshov, Alexander Shopov,
9597 Alex Crawford, Andre Klärner, Andrew Eikum, Beniamino Galvani, Benjamin
9598 Robin, Biao Lu, Bjørnar Ness, Calvin Owens, Christian Hesse, Clemens
9599 Gruber, Colin Guthrie, Daniel Drake, Daniele Medri, Daniel J Walsh,
9600 Daniel Mack, Dan Nicholson, daurnimator, David Herrmann, David
9601 R. Hedges, Elias Probst, Emmanuel Gil Peyrot, EMOziko, Evgeny
9602 Vereshchagin, Federico, Felipe Sateler, Filipe Brandenburger, Franck
9603 Bui, frankheckenbach, gdamjan, Georgia Brikis, Harald Hoyer, Hendrik
77ff6022
CG
9604 Brueckner, Hristo Venev, Iago López Galeiras, Ian Kelling, Ismo
9605 Puustinen, Jakub Wilk, Jaroslav Škarvada, Jeff Huang, Joel Holdsworth,
e75690c3
ZJS
9606 John Paul Adrian Glaubitz, Jonathan Boulle, kayrus, Klearchos
9607 Chaloulos, Kyle Russell, Lars Uebernickel, Lennart Poettering, Lubomir
9608 Rintel, Lukáš Nykrýn, Mantas Mikulėnas, Marcel Holtmann, Martin Pitt,
77ff6022
CG
9609 Michael Biebl, michaelolbrich, Michał Bartoszkiewicz, Michal Koutný,
9610 Michal Sekletar, Mike Frysinger, Mike Gilbert, Mingcong Bai, Ming Lin,
9611 mulkieran, muzena, Nalin Dahyabhai, Naohiro Aota, Nathan McSween,
e75690c3
ZJS
9612 Nicolas Braud-Santoni, Patrik Flykt, Peter Hutterer, Peter Mattern,
9613 Petr Lautrbach, Petros Angelatos, Piotr Drąg, Rabin Vincent, Robert
9614 Węcławski, Ronny Chevalier, Samuel Tardieu, Stefan Saraev, Stefan
9615 Schallenberg aka nafets227, Steven Siloti, Susant Sahani, Sylvain
9616 Plantefève, Taylor Smock, Tejun Heo, Thomas Blume, Thomas Haller,
9617 Thomas H. P. Andersen, Tobias Klauser, Tom Gundersen, topimiettinen,
46e40fab
ZJS
9618 Torstein Husebø, Umut Tezduyar Lindskog, Uwe Kleine-König, Victor Toso,
9619 Vinay Kulkarni, Vito Caputo, Vittorio G (VittGam), Vladimir Panteleev,
9620 Wieland Hoffmann, Wouter Verhelst, Yu Watanabe, Zbigniew
9621 Jędrzejewski-Szmek
e40a326c 9622
46e40fab 9623 — Fairfax, 2016-05-21
96515dbf 9624
61f32bff
MP
9625CHANGES WITH 229:
9626
d5f8b295
LP
9627 * The systemd-resolved DNS resolver service has gained a substantial
9628 set of new features, most prominently it may now act as a DNSSEC
9629 validating stub resolver. DNSSEC mode is currently turned off by
ed5f8840
ZJS
9630 default, but is expected to be turned on by default in one of the
9631 next releases. For now, we invite everybody to test the DNSSEC logic
9632 by setting DNSSEC=allow-downgrade in /etc/systemd/resolved.conf. The
9633 service also gained a full set of D-Bus interfaces, including calls
9634 to configure DNS and DNSSEC settings per link (for use by external
9635 network management software). systemd-resolved and systemd-networkd
9636 now distinguish between "search" and "routing" domains. The former
9637 are used to qualify single-label names, the latter are used purely
9638 for routing lookups within certain domains to specific links.
9639 resolved now also synthesizes RRs for all entries from /etc/hosts.
d5f8b295
LP
9640
9641 * The systemd-resolve tool (which is a client utility for
ed5f8840
ZJS
9642 systemd-resolved) has been improved considerably and is now fully
9643 supported and documented. Hence it has moved from /usr/lib/systemd to
9644 /usr/bin.
d5f8b295
LP
9645
9646 * /dev/disk/by-path/ symlink support has been (re-)added for virtio
9647 devices.
9648
a7c723c0
LP
9649 * The coredump collection logic has been reworked: when a coredump is
9650 collected it is now written to disk, compressed and processed
9651 (including stacktrace extraction) from a new instantiated service
9652 systemd-coredump@.service, instead of directly from the
9653 /proc/sys/kernel/core_pattern hook we provide. This is beneficial as
9654 processing large coredumps can take up a substantial amount of
9655 resources and time, and this previously happened entirely outside of
9656 systemd's service supervision. With the new logic the core_pattern
9657 hook only does minimal metadata collection before passing off control
9658 to the new instantiated service, which is configured with a time
9659 limit, a nice level and other settings to minimize negative impact on
9660 the rest of the system. Also note that the new logic will honour the
9661 RLIMIT_CORE setting of the crashed process, which now allows users
9662 and processes to turn off coredumping for their processes by setting
9663 this limit.
9664
9665 * The RLIMIT_CORE resource limit now defaults to "unlimited" for PID 1
9666 and all forked processes by default. Previously, PID 1 would leave
9667 the setting at "0" for all processes, as set by the kernel. Note that
9668 the resource limit traditionally has no effect on the generated
9669 coredumps on the system if the /proc/sys/kernel/core_pattern hook
9670 logic is used. Since the limit is now honoured (see above) its
9671 default has been changed so that the coredumping logic is enabled by
9672 default for all processes, while allowing specific opt-out.
9673
9674 * When the stacktrace is extracted from processes of system users, this
9675 is now done as "systemd-coredump" user, in order to sandbox this
9676 potentially security sensitive parsing operation. (Note that when
9677 processing coredumps of normal users this is done under the user ID
9678 of process that crashed, as before.) Packagers should take notice
9679 that it is now necessary to create the "systemd-coredump" system user
9680 and group at package installation time.
9681
d5f8b295
LP
9682 * The systemd-activate socket activation testing tool gained support
9683 for SOCK_DGRAM and SOCK_SEQPACKET sockets using the new --datagram
9684 and --seqpacket switches. It also has been extended to support both
9685 new-style and inetd-style file descriptor passing. Use the new
9686 --inetd switch to request inetd-style file descriptor passing.
9687
8968aea0
MP
9688 * Most systemd tools now honor a new $SYSTEMD_COLORS environment
9689 variable, which takes a boolean value. If set to false, ANSI color
d5f8b295
LP
9690 output is disabled in the tools even when run on a terminal that
9691 supports it.
9692
9693 * The VXLAN support in networkd now supports two new settings
9694 DestinationPort= and PortRange=.
9695
9696 * A new systemd.machine_id= kernel command line switch has been added,
9697 that may be used to set the machine ID in /etc/machine-id if it is
9698 not initialized yet. This command line option has no effect if the
9699 file is already initialized.
9700
9701 * systemd-nspawn gained a new --as-pid2 switch that invokes any
9702 specified command line as PID 2 rather than PID 1 in the
ed5f8840
ZJS
9703 container. In this mode PID 1 is a minimal stub init process that
9704 implements the special POSIX and Linux semantics of PID 1 regarding
9705 signal and child process management. Note that this stub init process
9706 is implemented in nspawn itself and requires no support from the
9707 container image. This new logic is useful to support running
9708 arbitrary commands in the container, as normal processes are
d5f8b295
LP
9709 generally not prepared to run as PID 1.
9710
9711 * systemd-nspawn gained a new --chdir= switch for setting the current
9712 working directory for the process started in the container.
9713
ed5f8840
ZJS
9714 * "journalctl /dev/sda" will now output all kernel log messages for
9715 specified device from the current boot, in addition to all devices
9716 that are parents of it. This should make log output about devices
9717 pretty useful, as long as kernel drivers attach enough metadata to
9718 the log messages. (The usual SATA drivers do.)
d5f8b295
LP
9719
9720 * The sd-journal API gained two new calls
9721 sd_journal_has_runtime_files() and sd_journal_has_persistent_files()
9722 that report whether log data from /run or /var has been found.
9723
9724 * journalctl gained a new switch "--fields" that prints all journal
9725 record field names currently in use in the journal. This is backed
9726 by two new sd-journal API calls sd_journal_enumerate_fields() and
9727 sd_journal_restart_fields().
9728
9729 * Most configurable timeouts in systemd now expect an argument of
8968aea0
MP
9730 "infinity" to turn them off, instead of "0" as before. The semantics
9731 from now on is that a timeout of "0" means "now", and "infinity"
9732 means "never". To maintain backwards compatibility, "0" continues to
9733 turn off previously existing timeout settings.
d5f8b295
LP
9734
9735 * "systemctl reload-or-try-restart" has been renamed to "systemctl
8968aea0
MP
9736 try-reload-or-restart" to clarify what it actually does: the "try"
9737 logic applies to both reloading and restarting, not just restarting.
9738 The old name continues to be accepted for compatibility.
9739
9740 * On boot-up, when PID 1 detects that the system clock is behind the
9741 release date of the systemd version in use, the clock is now set
9742 to the latter. Previously, this was already done in timesyncd, in order
d5f8b295
LP
9743 to avoid running with clocks set to the various clock epochs such as
9744 1902, 1938 or 1970. With this change the logic is now done in PID 1
9745 in addition to timesyncd during early boot-up, so that it is enforced
9746 before the first process is spawned by systemd. Note that the logic
9747 in timesyncd remains, as it is more comprehensive and ensures
ed5f8840 9748 clock monotonicity by maintaining a persistent timestamp file in
d5f8b295
LP
9749 /var. Since /var is generally not available in earliest boot or the
9750 initrd, this part of the logic remains in timesyncd, and is not done
9751 by PID 1.
9752
50f48ad3
DM
9753 * Support for tweaking details in net_cls.class_id through the
9754 NetClass= configuration directive has been removed, as the kernel
9755 people have decided to deprecate that controller in cgroup v2.
9756 Userspace tools such as nftables are moving over to setting rules
9757 that are specific to the full cgroup path of a task, which obsoletes
9758 these controllers anyway. The NetClass= directive is kept around for
9759 legacy compatibility reasons. For a more in-depth description of the
9760 kernel change, please refer to the respective upstream commit:
9761
9762 https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=bd1060a1d671
9763
d5f8b295 9764 * A new service setting RuntimeMaxSec= has been added that may be used
8968aea0 9765 to specify a maximum runtime for a service. If the timeout is hit, the
d5f8b295
LP
9766 service is terminated and put into a failure state.
9767
8968aea0
MP
9768 * A new service setting AmbientCapabilities= has been added. It allows
9769 configuration of additional Linux process capabilities that are
9770 passed to the activated processes. This is only available on very
d5f8b295
LP
9771 recent kernels.
9772
9773 * The process resource limit settings in service units may now be used
9774 to configure hard and soft limits individually.
9775
8968aea0 9776 * The various libsystemd APIs such as sd-bus or sd-event now publicly
ed5f8840
ZJS
9777 expose support for gcc's __attribute__((cleanup())) C extension.
9778 Specifically, for many object destructor functions alternative
9779 versions have been added that have names suffixed with "p" and take a
9780 pointer to a pointer to the object to destroy, instead of just a
9781 pointer to the object itself. This is useful because these destructor
9782 functions may be used directly as parameters to the cleanup
9783 construct. Internally, systemd has been a heavy user of this GCC
9784 extension for a long time, and with this change similar support is
9785 now available to consumers of the library outside of systemd. Note
8968aea0 9786 that by using this extension in your sources compatibility with old
ed5f8840
ZJS
9787 and strictly ANSI compatible C compilers is lost. However, all gcc or
9788 LLVM versions of recent years support this extension.
d5f8b295
LP
9789
9790 * Timer units gained support for a new setting RandomizedDelaySec= that
8968aea0
MP
9791 allows configuring some additional randomized delay to the configured
9792 time. This is useful to spread out timer events to avoid load peaks in
9793 clusters or larger setups.
d5f8b295
LP
9794
9795 * Calendar time specifications now support sub-second accuracy.
9796
9797 * Socket units now support listening on SCTP and UDP-lite protocol
9798 sockets.
9799
9800 * The sd-event API now comes with a full set of man pages.
9801
9802 * Older versions of systemd contained experimental support for
9803 compressing journal files and coredumps with the LZ4 compressor that
9804 was not compatible with the lz4 binary (due to API limitations of the
9805 lz4 library). This support has been removed; only support for files
9806 compatible with the lz4 binary remains. This LZ4 logic is now
9807 officially supported and no longer considered experimental.
9808
9809 * The dkr image import logic has been removed again from importd. dkr's
9810 micro-services focus doesn't fit into the machine image focus of
9811 importd, and quickly got out of date with the upstream dkr API.
9812
9813 * Creation of the /run/lock/lockdev/ directory was dropped from
9814 tmpfiles.d/legacy.conf. Better locking mechanisms like flock() have
61f32bff
MP
9815 been available for many years. If you still need this, you need to
9816 create your own tmpfiles.d config file with:
d5f8b295
LP
9817
9818 d /run/lock/lockdev 0775 root lock -
61f32bff 9819
dd95b381
LP
9820 * The settings StartLimitBurst=, StartLimitInterval=, StartLimitAction=
9821 and RebootArgument= have been moved from the [Service] section of
9822 unit files to [Unit], and they are now supported on all unit types,
9823 not just service units. Of course, systemd will continue to
9824 understand these settings also at the old location, in order to
9825 maintain compatibility.
9826
3545ab35
LP
9827 Contributions from: Abdo Roig-Maranges, Alban Crequy, Aleksander
9828 Adamowski, Alexander Kuleshov, Andreas Pokorny, Andrei Borzenkov,
9829 Andrew Wilcox, Arthur Clement, Beniamino Galvani, Casey Schaufler,
9830 Chris Atkinson, Chris Mayo, Christian Hesse, Damjan Georgievski, Dan
9831 Dedrick, Daniele Medri, Daniel J Walsh, Daniel Korostil, Daniel Mack,
9832 David Herrmann, Dimitri John Ledkov, Dominik Hannen, Douglas Christman,
9833 Evgeny Vereshchagin, Filipe Brandenburger, Franck Bui, Gabor Kelemen,
9834 Harald Hoyer, Hayden Walles, Helmut Grohne, Henrik Kaare Poulsen,
9835 Hristo Venev, Hui Wang, Indrajit Raychaudhuri, Ismo Puustinen, Jakub
9836 Wilk, Jan Alexander Steffens (heftig), Jan Engelhardt, Jan Synacek,
9837 Joost Bremmer, Jorgen Schaefer, Karel Zak, Klearchos Chaloulos,
9838 lc85446, Lennart Poettering, Lukas Nykryn, Mantas Mikulėnas, Marcel
9839 Holtmann, Martin Pitt, Michael Biebl, Michael Olbrich, Michael Scherer,
9840 Michał Górny, Michal Sekletar, Nicolas Cornu, Nicolas Iooss, Nils
9841 Carlson, nmartensen, nnz1024, Patrick Ohly, Peter Hutterer, Phillip Sz,
9842 Ronny Chevalier, Samu Kallio, Shawn Landden, Stef Walter, Susant
9843 Sahani, Sylvain Plantefève, Tadej Janež, Thomas Hindoe Paaboel
9844 Andersen, Tom Gundersen, Torstein Husebø, Umut Tezduyar Lindskog, Vito
9845 Caputo, WaLyong Cho, Yu Watanabe, Zbigniew Jędrzejewski-Szmek
9846
ccddd104 9847 — Berlin, 2016-02-11
61f32bff 9848
a11c7ea5
LP
9849CHANGES WITH 228:
9850
a11c7ea5
LP
9851 * A number of properties previously only settable in unit
9852 files are now also available as properties to set when
9853 creating transient units programmatically via the bus, as it
9854 is exposed with systemd-run's --property=
9855 setting. Specifically, these are: SyslogIdentifier=,
9856 SyslogLevelPrefix=, TimerSlackNSec=, OOMScoreAdjust=,
9857 EnvironmentFile=, ReadWriteDirectories=,
9858 ReadOnlyDirectories=, InaccessibleDirectories=,
9859 ProtectSystem=, ProtectHome=, RuntimeDirectory=.
9860
28c85daf
LP
9861 * When creating transient services via the bus API it is now
9862 possible to pass in a set of file descriptors to use as
9863 STDIN/STDOUT/STDERR for the invoked process.
a11c7ea5 9864
f1f8a5a5
LP
9865 * Slice units may now be created transiently via the bus APIs,
9866 similar to the way service and scope units may already be
9867 created transiently.
9868
a11c7ea5
LP
9869 * Wherever systemd expects a calendar timestamp specification
9870 (like in journalctl's --since= and --until= switches) UTC
9871 timestamps are now supported. Timestamps suffixed with "UTC"
9872 are now considered to be in Universal Time Coordinated
9873 instead of the local timezone. Also, timestamps may now
815bb5bd 9874 optionally be specified with sub-second accuracy. Both of
a11c7ea5
LP
9875 these additions also apply to recurring calendar event
9876 specification, such as OnCalendar= in timer units.
9877
28c85daf
LP
9878 * journalctl gained a new "--sync" switch that asks the
9879 journal daemon to write all so far unwritten log messages to
9880 disk and sync the files, before returning.
9881
a11c7ea5
LP
9882 * systemd-tmpfiles learned two new line types "q" and "Q" that
9883 operate like "v", but also set up a basic btrfs quota
9884 hierarchy when used on a btrfs file system with quota
9885 enabled.
9886
f1f8a5a5
LP
9887 * tmpfiles' "v", "q" and "Q" will now create a plain directory
9888 instead of a subvolume (even on a btrfs file system) if the
9889 root directory is a plain directory, and not a
9890 subvolume. This should simplify things with certain chroot()
9891 environments which are not aware of the concept of btrfs
9892 subvolumes.
9893
a11c7ea5
LP
9894 * systemd-detect-virt gained a new --chroot switch to detect
9895 whether execution takes place in a chroot() environment.
9896
28c85daf 9897 * CPUAffinity= now takes CPU index ranges in addition to
a11c7ea5
LP
9898 individual indexes.
9899
28c85daf 9900 * The various memory-related resource limit settings (such as
1d3a473b 9901 LimitAS=) now understand the usual K, M, G, … suffixes to
28c85daf 9902 the base of 1024 (IEC). Similar, the time-related resource
1d3a473b
ZJS
9903 limit settings understand the usual min, h, day, … suffixes
9904 now.
28c85daf 9905
f1f8a5a5
LP
9906 * There's a new system.conf setting DefaultTasksMax= to
9907 control the default TasksMax= setting for services and
9908 scopes running on the system. (TasksMax= is the primary
9909 setting that exposes the "pids" cgroup controller on systemd
9910 and was introduced in the previous systemd release.) The
9911 setting now defaults to 512, which means services that are
9912 not explicitly configured otherwise will only be able to
9913 create 512 processes or threads at maximum, from this
9914 version on. Note that this means that thread- or
9915 process-heavy services might need to be reconfigured to set
9916 TasksMax= to a higher value. It is sufficient to set
9917 TasksMax= in these specific unit files to a higher value, or
9918 even "infinity". Similar, there's now a logind.conf setting
9919 UserTasksMax= that defaults to 4096 and limits the total
9920 number of processes or tasks each user may own
9921 concurrently. nspawn containers also have the TasksMax=
9922 value set by default now, to 8192. Note that all of this
9923 only has an effect if the "pids" cgroup controller is
9924 enabled in the kernel. The general benefit of these changes
9925 should be a more robust and safer system, that provides a
9926 certain amount of per-service fork() bomb protection.
9927
28c85daf
LP
9928 * systemd-nspawn gained the new --network-veth-extra= switch
9929 to define additional and arbitrarily-named virtual Ethernet
9930 links between the host and the container.
9931
9932 * A new service execution setting PassEnvironment= has been
9933 added that allows importing select environment variables
9934 from PID1's environment block into the environment block of
9935 the service.
9936
ddb4b0d3 9937 * Timer units gained support for a new RemainAfterElapse=
595bfe7d 9938 setting which takes a boolean argument. It defaults to on,
ddb4b0d3
LP
9939 exposing behaviour unchanged to previous releases. If set to
9940 off, timer units are unloaded after they elapsed if they
9941 cannot elapse again. This is particularly useful for
9942 transient timer units, which shall not stay around longer
9943 than until they first elapse.
9944
a11c7ea5 9945 * systemd will now bump the net.unix.max_dgram_qlen to 512 by
28c85daf
LP
9946 default now (the kernel default is 16). This is beneficial
9947 for avoiding blocking on AF_UNIX/SOCK_DGRAM sockets since it
a11c7ea5
LP
9948 allows substantially larger numbers of queued
9949 datagrams. This should increase the capability of systemd to
9950 parallelize boot-up, as logging and sd_notify() are unlikely
9951 to stall execution anymore. If you need to change the value
9952 from the new defaults, use the usual sysctl.d/ snippets.
9953
28c85daf
LP
9954 * The compression framing format used by the journal or
9955 coredump processing has changed to be in line with what the
9956 official LZ4 tools generate. LZ4 compression support in
9957 systemd was considered unsupported previously, as the format
9958 was not compatible with the normal tools. With this release
9959 this has changed now, and it is hence safe for downstream
9960 distributions to turn it on. While not compressing as well
815bb5bd 9961 as the XZ, LZ4 is substantially faster, which makes
28c85daf
LP
9962 it a good default choice for the compression logic in the
9963 journal and in coredump handling.
a11c7ea5 9964
28c85daf
LP
9965 * Any reference to /etc/mtab has been dropped from
9966 systemd. The file has been obsolete since a while, but
9967 systemd refused to work on systems where it was incorrectly
815bb5bd 9968 set up (it should be a symlink or non-existent). Please make
28c85daf
LP
9969 sure to update to util-linux 2.27.1 or newer in conjunction
9970 with this systemd release, which also drops any reference to
9971 /etc/mtab. If you maintain a distribution make sure that no
9972 software you package still references it, as this is a
9973 likely source of bugs. There's also a glibc bug pending,
9974 asking for removal of any reference to this obsolete file:
9975
9976 https://sourceware.org/bugzilla/show_bug.cgi?id=19108
a11c7ea5 9977
d5bd92bb
LP
9978 Note that only util-linux versions built with
9979 --enable-libmount-force-mountinfo are supported.
9980
a11c7ea5
LP
9981 * Support for the ".snapshot" unit type has been removed. This
9982 feature turned out to be little useful and little used, and
9983 has now been removed from the core and from systemctl.
9984
b9e2f7eb
LP
9985 * The dependency types RequiresOverridable= and
9986 RequisiteOverridable= have been removed from systemd. They
9987 have been used only very sparingly to our knowledge and
9988 other options that provide a similar effect (such as
9989 systemctl --mode=ignore-dependencies) are much more useful
9990 and commonly used. Moreover, they were only half-way
9991 implemented as the option to control behaviour regarding
9992 these dependencies was never added to systemctl. By removing
9993 these dependency types the execution engine becomes a bit
9994 simpler. Unit files that use these dependencies should be
9995 changed to use the non-Overridable dependency types
9996 instead. In fact, when parsing unit files with these
9997 options, that's what systemd will automatically convert them
9998 too, but it will also warn, asking users to fix the unit
9999 files accordingly. Removal of these dependency types should
10000 only affect a negligible number of unit files in the wild.
10001
10002 * Behaviour of networkd's IPForward= option changed
10003 (again). It will no longer maintain a per-interface setting,
10004 but propagate one way from interfaces where this is enabled
10005 to the global kernel setting. The global setting will be
10006 enabled when requested by a network that is set up, but
10007 never be disabled again. This change was made to make sure
10008 IPv4 and IPv6 behaviour regarding packet forwarding is
10009 similar (as the Linux IPv6 stack does not support
10010 per-interface control of this setting) and to minimize
10011 surprises.
10012
28c85daf
LP
10013 * In unit files the behaviour of %u, %U, %h, %s has
10014 changed. These specifiers will now unconditionally resolve
10015 to the various user database fields of the user that the
10016 systemd instance is running as, instead of the user
10017 configured in the specific unit via User=. Note that this
10018 effectively doesn't change much, as resolving of these
10019 specifiers was already turned off in the --system instance
10020 of systemd, as we cannot do NSS lookups from PID 1. In the
10021 --user instance of systemd these specifiers where correctly
10022 resolved, but hardly made any sense, since the user instance
10023 lacks privileges to do user switches anyway, and User= is
ce830873 10024 hence useless. Moreover, even in the --user instance of
28c85daf
LP
10025 systemd behaviour was awkward as it would only take settings
10026 from User= assignment placed before the specifier into
10027 account. In order to unify and simplify the logic around
10028 this the specifiers will now always resolve to the
10029 credentials of the user invoking the manager (which in case
10030 of PID 1 is the root user).
10031
10032 Contributions from: Andrew Jones, Beniamino Galvani, Boyuan
10033 Yang, Daniel Machon, Daniel Mack, David Herrmann, David
10034 Reynolds, David Strauss, Dongsu Park, Evgeny Vereshchagin,
f1f8a5a5
LP
10035 Felipe Sateler, Filipe Brandenburger, Franck Bui, Hristo
10036 Venev, Iago López Galeiras, Jan Engelhardt, Jan Janssen, Jan
10037 Synacek, Jesus Ornelas Aguayo, Karel Zak, kayrus, Kay Sievers,
10038 Lennart Poettering, Liu Yuan Yuan, Mantas Mikulėnas, Marcel
10039 Holtmann, Marcin Bachry, Marcos Alano, Marcos Mello, Mark
10040 Theunissen, Martin Pitt, Michael Marineau, Michael Olbrich,
10041 Michal Schmidt, Michal Sekletar, Mirco Tischler, Nick Owens,
10042 Nicolas Cornu, Patrik Flykt, Peter Hutterer, reverendhomer,
10043 Ronny Chevalier, Sangjung Woo, Seong-ho Cho, Shawn Landden,
10044 Susant Sahani, Thomas Haller, Thomas Hindoe Paaboel Andersen,
10045 Tom Gundersen, Torstein Husebø, Vito Caputo, Zbigniew
10046 Jędrzejewski-Szmek
28c85daf 10047
ccddd104 10048 — Berlin, 2015-11-18
a11c7ea5 10049
c97e586d
DM
10050CHANGES WITH 227:
10051
10052 * systemd now depends on util-linux v2.27. More specifically,
10053 the newly added mount monitor feature in libmount now
10054 replaces systemd's former own implementation.
10055
10056 * libmount mandates /etc/mtab not to be regular file, and
10057 systemd now enforces this condition at early boot.
10058 /etc/mtab has been deprecated and warned about for a very
10059 long time, so systems running systemd should already have
10060 stopped having this file around as anything else than a
10061 symlink to /proc/self/mounts.
10062
d046fb93
LP
10063 * Support for the "pids" cgroup controller has been added. It
10064 allows accounting the number of tasks in a cgroup and
c97e586d
DM
10065 enforcing limits on it. This adds two new setting
10066 TasksAccounting= and TasksMax= to each unit, as well as a
6fd5517b 10067 global option DefaultTasksAccounting=.
c97e586d
DM
10068
10069 * Support for the "net_cls" cgroup controller has been added.
fe08a30b
LP
10070 It allows assigning a net class ID to each task in the
10071 cgroup, which can then be used in firewall rules and traffic
10072 shaping configurations. Note that the kernel netfilter net
10073 class code does not currently work reliably for ingress
10074 packets on unestablished sockets.
c97e586d
DM
10075
10076 This adds a new config directive called NetClass= to CGroup
6fd5517b 10077 enabled units. Allowed values are positive numbers for fixed
c97e586d
DM
10078 assignments and "auto" for picking a free value
10079 automatically.
10080
21d86c61
DM
10081 * 'systemctl is-system-running' now returns 'offline' if the
10082 system is not booted with systemd. This command can now be
10083 used as a substitute for 'systemd-notify --booted'.
10084
10085 * Watchdog timeouts have been increased to 3 minutes for all
10086 in-tree service files. Apparently, disk IO issues are more
10087 frequent than we hoped, and user reported >1 minute waiting
10088 for disk IO.
10089
10090 * 'machine-id-commit' functionality has been merged into
10091 'machine-id-setup --commit'. The separate binary has been
10092 removed.
10093
d046fb93
LP
10094 * The WorkingDirectory= directive in unit files may now be set
10095 to the special value '~'. In this case, the working
10096 directory is set to the home directory of the user
10097 configured in User=.
21d86c61 10098
fe08a30b
LP
10099 * "machinectl shell" will now open the shell in the home
10100 directory of the selected user by default.
10101
21d86c61 10102 * The CrashChVT= configuration file setting is renamed to
d046fb93
LP
10103 CrashChangeVT=, following our usual logic of not
10104 abbreviating unnecessarily. The old directive is still
10105 supported for compat reasons. Also, this directive now takes
10106 an integer value between 1 and 63, or a boolean value. The
10107 formerly supported '-1' value for disabling stays around for
10108 compat reasons.
21d86c61 10109
fe08a30b 10110 * The PrivateTmp=, PrivateDevices=, PrivateNetwork=,
8b5f9d15 10111 NoNewPrivileges=, TTYPath=, WorkingDirectory= and
fe08a30b
LP
10112 RootDirectory= properties can now be set for transient
10113 units.
10114
10115 * The systemd-analyze tool gained a new "set-log-target" verb
10116 to change the logging target the system manager logs to
10117 dynamically during runtime. This is similar to how
10118 "systemd-analyze set-log-level" already changes the log
10119 level.
10120
10121 * In nspawn /sys is now mounted as tmpfs, with only a selected
10122 set of subdirectories mounted in from the real sysfs. This
10123 enhances security slightly, and is useful for ensuring user
10124 namespaces work correctly.
10125
10126 * Support for USB FunctionFS activation has been added. This
10127 allows implementation of USB gadget services that are
10128 activated as soon as they are requested, so that they don't
595bfe7d 10129 have to run continuously, similar to classic socket
fe08a30b
LP
10130 activation.
10131
10132 * The "systemctl exit" command now optionally takes an
10133 additional parameter that sets the exit code to return from
10134 the systemd manager when exiting. This is only relevant when
10135 running the systemd user instance, or when running the
10136 system instance in a container.
10137
10138 * sd-bus gained the new API calls sd_bus_path_encode_many()
10139 and sd_bus_path_decode_many() that allow easy encoding and
10140 decoding of multiple identifier strings inside a D-Bus
10141 object path. Another new call sd_bus_default_flush_close()
10142 has been added to flush and close per-thread default
10143 connections.
10144
10145 * systemd-cgtop gained support for a -M/--machine= switch to
10146 show the control groups within a certain container only.
10147
10148 * "systemctl kill" gained support for an optional --fail
10149 switch. If specified the requested operation will fail of no
10150 processes have been killed, because the unit had no
10151 processes attached, or similar.
10152
bdba9227
DM
10153 * A new systemd.crash_reboot=1 kernel command line option has
10154 been added that triggers a reboot after crashing. This can
10155 also be set through CrashReboot= in systemd.conf.
10156
10157 * The RuntimeDirectory= setting now understands unit
10158 specifiers like %i or %f.
10159
ce830873 10160 * A new (still internal) library API sd-ipv4acd has been added,
fe08a30b
LP
10161 that implements address conflict detection for IPv4. It's
10162 based on code from sd-ipv4ll, and will be useful for
10163 detecting DHCP address conflicts.
10164
bdba9227
DM
10165 * File descriptors passed during socket activation may now be
10166 named. A new API sd_listen_fds_with_names() is added to
a8eaaee7 10167 access the names. The default names may be overridden,
bdba9227
DM
10168 either in the .socket file using the FileDescriptorName=
10169 parameter, or by passing FDNAME= when storing the file
10170 descriptors using sd_notify().
fe08a30b 10171
d046fb93
LP
10172 * systemd-networkd gained support for:
10173
0053598f 10174 - Setting the IPv6 Router Advertisement settings via
edf4126f 10175 IPv6AcceptRouterAdvertisements= in .network files.
d046fb93
LP
10176
10177 - Configuring the HelloTimeSec=, MaxAgeSec= and
10178 ForwardDelaySec= bridge parameters in .netdev files.
10179
10180 - Configuring PreferredSource= for static routes in
edf4126f 10181 .network files.
fe08a30b 10182
bdba9227
DM
10183 * The "ask-password" framework used to query for LUKS harddisk
10184 passwords or SSL passwords during boot gained support for
10185 caching passwords in the kernel keyring, if it is
10186 available. This makes sure that the user only has to type in
10187 a passphrase once if there are multiple objects to unlock
10188 with the same one. Previously, such password caching was
10189 available only when Plymouth was used; this moves the
10190 caching logic into the systemd codebase itself. The
10191 "systemd-ask-password" utility gained a new --keyname=
10192 switch to control which kernel keyring key to use for
10193 caching a password in. This functionality is also useful for
10194 enabling display managers such as gdm to automatically
10195 unlock the user's GNOME keyring if its passphrase, the
10196 user's password and the harddisk password are the same, if
10197 gdm-autologin is used.
fe08a30b
LP
10198
10199 * When downloading tar or raw images using "machinectl
10200 pull-tar" or "machinectl pull-raw", a matching ".nspawn"
10201 file is now also downloaded, if it is available and stored
10202 next to the image file.
c97e586d 10203
91d0d699
LP
10204 * Units of type ".socket" gained a new boolean setting
10205 Writable= which is only useful in conjunction with
10206 ListenSpecial=. If true, enables opening the specified
10207 special file in O_RDWR mode rather than O_RDONLY mode.
10208
10209 * systemd-rfkill has been reworked to become a singleton
10210 service that is activated through /dev/rfkill on each rfkill
10211 state change and saves the settings to disk. This way,
10212 systemd-rfkill is now compatible with devices that exist
10213 only intermittendly, and even restores state if the previous
10214 system shutdown was abrupt rather than clean.
10215
d046fb93
LP
10216 * The journal daemon gained support for vacuuming old journal
10217 files controlled by the number of files that shall remain,
10218 in addition to the already existing control by size and by
10219 date. This is useful as journal interleaving performance
6dd6a9c4 10220 degrades with too many separate journal files, and allows
d046fb93
LP
10221 putting an effective limit on them. The new setting defaults
10222 to 100, but this may be changed by setting SystemMaxFiles=
10223 and RuntimeMaxFiles= in journald.conf. Also, the
10224 "journalctl" tool gained the new --vacuum-files= switch to
10225 manually vacuum journal files to leave only the specified
10226 number of files in place.
c48eb61f 10227
bdba9227
DM
10228 * udev will now create /dev/disk/by-path links for ATA devices
10229 on kernels where that is supported.
c30f086f 10230
efce0ffe 10231 * Galician, Serbian, Turkish and Korean translations were added.
c97e586d 10232
61e6771c
LP
10233 Contributions from: Aaro Koskinen, Alban Crequy, Beniamino
10234 Galvani, Benjamin Robin, Branislav Blaskovic, Chen-Han Hsiao
10235 (Stanley), Daniel Buch, Daniel Machon, Daniel Mack, David
10236 Herrmann, David Milburn, doubleodoug, Evgeny Vereshchagin,
10237 Felipe Franciosi, Filipe Brandenburger, Fran Dieguez, Gabriel
10238 de Perthuis, Georg Müller, Hans de Goede, Hendrik Brueckner,
10239 Ivan Shapovalov, Jacob Keller, Jan Engelhardt, Jan Janssen,
10240 Jan Synacek, Jens Kuske, Karel Zak, Kay Sievers, Krzesimir
10241 Nowak, Krzysztof Kotlenga, Lars Uebernickel, Lennart
10242 Poettering, Lukas Nykryn, Łukasz Stelmach, Maciej Wereski,
10243 Marcel Holtmann, Marius Thesing, Martin Pitt, Michael Biebl,
10244 Michael Gebetsroither, Michal Schmidt, Michal Sekletar, Mike
10245 Gilbert, Muhammet Kara, nazgul77, Nicolas Cornu, NoXPhasma,
10246 Olof Johansson, Patrik Flykt, Pawel Szewczyk, reverendhomer,
10247 Ronny Chevalier, Sangjung Woo, Seong-ho Cho, Susant Sahani,
10248 Sylvain Plantefève, Thomas Haller, Thomas Hindoe Paaboel
10249 Andersen, Tom Gundersen, Tom Lyon, Viktar Vauchkevich,
10250 Zbigniew Jędrzejewski-Szmek, Марко М. Костић
10251
ccddd104 10252 — Berlin, 2015-10-07
c97e586d 10253
c9912c5e
DH
10254CHANGES WITH 226:
10255
5e8d4254
LP
10256 * The DHCP implementation of systemd-networkd gained a set of
10257 new features:
10258
10259 - The DHCP server now supports emitting DNS and NTP
10260 information. It may be enabled and configured via
10261 EmitDNS=, DNS=, EmitNTP=, and NTP=. If transmission of DNS
10262 and NTP information is enabled, but no servers are
10263 configured, the corresponding uplink information (if there
10264 is any) is propagated.
10265
10266 - Server and client now support transmission and reception
10267 of timezone information. It can be configured via the
10268 newly introduced network options UseTimezone=,
10269 EmitTimezone=, and Timezone=. Transmission of timezone
10270 information is enabled between host and containers by
10271 default now: the container will change its local timezone
10272 to what the host has set.
10273
10274 - Lease timeouts can now be configured via
10275 MaxLeaseTimeSec= and DefaultLeaseTimeSec=.
10276
10277 - The DHCP server improved on the stability of
10278 leases. Clients are more likely to get the same lease
10279 information back, even if the server loses state.
10280
10281 - The DHCP server supports two new configuration options to
10282 control the lease address pool metrics, PoolOffset= and
10283 PoolSize=.
10284
10285 * The encapsulation limit of tunnels in systemd-networkd may
10286 now be configured via 'EncapsulationLimit='. It allows
10287 modifying the maximum additional levels of encapsulation
10288 that are permitted to be prepended to a packet.
10289
10290 * systemd now supports the concept of user buses replacing
10291 session buses, if used with dbus-1.10 (and enabled via dbus
10292 --enable-user-session). It previously only supported this on
10293 kdbus-enabled systems, and this release expands this to
10294 'dbus-daemon' systems.
10295
10296 * systemd-networkd now supports predictable interface names
10297 for virtio devices.
10298
10299 * systemd now optionally supports the new Linux kernel
10300 "unified" control group hierarchy. If enabled via the kernel
10301 command-line option 'systemd.unified_cgroup_hierarchy=1',
10302 systemd will try to mount the unified cgroup hierarchy
10303 directly on /sys/fs/cgroup. If not enabled, or not
10304 available, systemd will fall back to the legacy cgroup
10305 hierarchy setup, as before. Host system and containers can
10306 mix and match legacy and unified hierarchies as they
856ca72b 10307 wish. nspawn understands the $UNIFIED_CGROUP_HIERARCHY
5e8d4254
LP
10308 environment variable to individually select the hierarchy to
10309 use for executed containers. By default, nspawn will use the
10310 unified hierarchy for the containers if the host uses the
10311 unified hierarchy, and the legacy hierarchy otherwise.
10312 Please note that at this point the unified hierarchy is an
10313 experimental kernel feature and is likely to change in one
10314 of the next kernel releases. Therefore, it should not be
10315 enabled by default in downstream distributions yet. The
10316 minimum required kernel version for the unified hierarchy to
10317 work is 4.2. Note that when the unified hierarchy is used
10318 for the first time delegated access to controllers is
10319 safe. Because of this systemd-nspawn containers will get
10320 access to controllers now, as will systemd user
10321 sessions. This means containers and user sessions may now
10322 manage their own resources, partitioning up what the system
10323 grants them.
10324
10325 * A new special scope unit "init.scope" has been introduced
10326 that encapsulates PID 1 of the system. It may be used to
10327 determine resource usage and enforce resource limits on PID
10328 1 itself. PID 1 hence moved out of the root of the control
10329 group tree.
10330
10331 * The cgtop tool gained support for filtering out kernel
10332 threads when counting tasks in a control group. Also, the
10333 count of processes is now recursively summed up by
10334 default. Two options -k and --recursive= have been added to
10335 revert to old behaviour. The tool has also been updated to
10336 work correctly in containers now.
10337
10338 * systemd-nspawn's --bind= and --bind-ro= options have been
10339 extended to allow creation of non-recursive bind mounts.
10340
c626bf1d
DM
10341 * libsystemd gained two new calls sd_pid_get_cgroup() and
10342 sd_peer_get_cgroup() which return the control group path of
5e8d4254
LP
10343 a process or peer of a connected AF_UNIX socket. This
10344 function call is particularly useful when implementing
10345 delegated subtrees support in the control group hierarchy.
10346
10347 * The "sd-event" event loop API of libsystemd now supports
10348 correct dequeuing of real-time signals, without losing
10349 signal events.
10350
d35f51ea
ZJS
10351 * When systemd requests a polkit decision when managing units it
10352 will now add additional fields to the request, including unit
10353 name and desired operation. This enables more powerful polkit
10354 policies, that make decisions depending on these parameters.
c9912c5e 10355
47f5a38c
LP
10356 * nspawn learnt support for .nspawn settings files, that may
10357 accompany the image files or directories of containers, and
10358 may contain additional settings for the container. This is
10359 an alternative to configuring container parameters via the
10360 nspawn command line.
10361
2f77decc
LP
10362 Contributions from: Cristian Rodríguez, Daniel Mack, David
10363 Herrmann, Eugene Yakubovich, Evgeny Vereshchagin, Filipe
10364 Brandenburger, Hans de Goede, Jan Alexander Steffens, Jan
10365 Synacek, Kay Sievers, Lennart Poettering, Mangix, Marcel
10366 Holtmann, Martin Pitt, Michael Biebl, Michael Chapman, Michal
10367 Sekletar, Peter Hutterer, Piotr Drąg, reverendhomer, Robin
10368 Hack, Susant Sahani, Sylvain Pasche, Thomas Hindoe Paaboel
23d08d1b 10369 Andersen, Tom Gundersen, Torstein Husebø
c9912c5e 10370
ccddd104 10371 — Berlin, 2015-09-08
c9912c5e 10372
ec5249a2
DM
10373CHANGES WITH 225:
10374
5e8d4254
LP
10375 * machinectl gained a new verb 'shell' which opens a fresh
10376 shell on the target container or the host. It is similar to
10377 the existing 'login' command of machinectl, but spawns the
10378 shell directly without prompting for username or
10379 password. The pseudo machine '.host' now refers to the local
10380 host and is used by default. Hence, 'machinectl shell' can
10381 be used as replacement for 'su -' which spawns a session as
10382 a fresh systemd unit in a way that is fully isolated from
10383 the originating session.
10384
10385 * systemd-networkd learned to cope with private-zone DHCP
10386 options and allows other programs to query the values.
10387
10388 * SELinux access control when enabling/disabling units is no
d35f51ea
ZJS
10389 longer enforced with this release. The previous implementation
10390 was incorrect, and a new corrected implementation is not yet
10391 available. As unit file operations are still protected via
10392 polkit and D-Bus policy this is not a security problem. Yet,
10393 distributions which care about optimal SELinux support should
10394 probably not stabilize on this release.
5e8d4254
LP
10395
10396 * sd-bus gained support for matches of type "arg0has=", that
10397 test for membership of strings in string arrays sent in bus
10398 messages.
10399
10400 * systemd-resolved now dumps the contents of its DNS and LLMNR
10401 caches to the logs on reception of the SIGUSR1 signal. This
10402 is useful to debug DNS behaviour.
10403
10404 * The coredumpctl tool gained a new --directory= option to
10405 operate on journal files in a specific directory.
10406
10407 * "systemctl reboot" and related commands gained a new
10408 "--message=" option which may be used to set a free-text
10409 wall message when shutting down or rebooting the
10410 system. This message is also logged, which is useful for
10411 figuring out the reason for a reboot or shutdown a
10412 posteriori.
10413
10414 * The "systemd-resolve-host" tool's -i switch now takes
10415 network interface numbers as alternative to interface names.
10416
10417 * A new unit file setting for services has been introduced:
10418 UtmpMode= allows configuration of how precisely systemd
10419 handles utmp and wtmp entries for the service if this is
10420 enabled. This allows writing services that appear similar to
10421 user sessions in the output of the "w", "who", "last" and
10422 "lastlog" tools.
10423
10424 * systemd-resolved will now locally synthesize DNS resource
10425 records for the "localhost" and "gateway" domains as well as
10426 the local hostname. This should ensure that clients querying
10427 RRs via resolved will get similar results as those going via
10428 NSS, if nss-myhostname is enabled.
10429
10430 Contributions from: Alastair Hughes, Alex Crawford, Daniel
10431 Mack, David Herrmann, Dimitri John Ledkov, Eric Kostrowski,
10432 Evgeny Vereshchagin, Felipe Sateler, HATAYAMA Daisuke, Jan
10433 Pokorný, Jan Synacek, Johnny Robeson, Karel Zak, Kay Sievers,
10434 Kefeng Wang, Lennart Poettering, Major Hayden, Marcel
10435 Holtmann, Markus Elfring, Martin Mikkelsen, Martin Pitt, Matt
10436 Turner, Maxim Mikityanskiy, Michael Biebl, Namhyung Kim,
10437 Nicolas Cornu, Owen W. Taylor, Patrik Flykt, Peter Hutterer,
10438 reverendhomer, Richard Maw, Ronny Chevalier, Seth Jennings,
10439 Stef Walter, Susant Sahani, Thomas Blume, Thomas Hindoe
10440 Paaboel Andersen, Thomas Meyer, Tom Gundersen, Vincent Batts,
10441 WaLyong Cho, Zbigniew Jędrzejewski-Szmek
e1439a14 10442
ccddd104 10443 — Berlin, 2015-08-27
ec5249a2 10444
11811e85
DH
10445CHANGES WITH 224:
10446
10fa421c
DH
10447 * The systemd-efi-boot-generator functionality was merged into
10448 systemd-gpt-auto-generator.
10449
5e8d4254
LP
10450 * systemd-networkd now supports Group Policy for vxlan
10451 devices. It can be enabled via the new boolean configuration
10452 option called 'GroupPolicyExtension='.
10fa421c 10453
11811e85
DH
10454 Contributions from: Andreas Kempf, Christian Hesse, Daniel Mack, David
10455 Herrmann, Herman Fries, Johannes Nixdorf, Kay Sievers, Lennart
10456 Poettering, Peter Hutterer, Susant Sahani, Tom Gundersen
10457
ccddd104 10458 — Berlin, 2015-07-31
11811e85 10459
e57eaef8
DH
10460CHANGES WITH 223:
10461
10462 * The python-systemd code has been removed from the systemd repository.
10463 A new repository has been created which accommodates the code from
10464 now on, and we kindly ask distributions to create a separate package
10465 for this: https://github.com/systemd/python-systemd
10466
01608bc8 10467 * The systemd daemon will now reload its main configuration
e57eaef8
DH
10468 (/etc/systemd/system.conf) on daemon-reload.
10469
10470 * sd-dhcp now exposes vendor specific extensions via
10471 sd_dhcp_lease_get_vendor_specific().
10472
931618d0
DM
10473 * systemd-networkd gained a number of new configuration options.
10474
10475 - A new boolean configuration option for TAP devices called
37d54b93 10476 'VNetHeader='. If set, the IFF_VNET_HDR flag is set for the
931618d0
DM
10477 device, thus allowing to send and receive GSO packets.
10478
10479 - A new tunnel configuration option called 'CopyDSCP='.
10480 If enabled, the DSCP field of ip6 tunnels is copied into the
10481 decapsulated packet.
10482
10483 - A set of boolean bridge configuration options were added.
10484 'UseBPDU=', 'HairPin=', 'FastLeave=', 'AllowPortToBeRoot=',
10485 and 'UnicastFlood=' are now parsed by networkd and applied to the
10486 respective bridge link device via the respective IFLA_BRPORT_*
10487 netlink attribute.
10488
10489 - A new string configuration option to override the hostname sent
10490 to a DHCP server, called 'Hostname='. If set and 'SendHostname='
10491 is true, networkd will use the configured hostname instead of the
10492 system hostname when sending DHCP requests.
10493
10494 - A new tunnel configuration option called 'IPv6FlowLabel='. If set,
10495 networkd will configure the IPv6 flow-label of the tunnel device
10496 according to RFC2460.
e57eaef8 10497
f5f113f6
DH
10498 - The 'macvtap' virtual network devices are now supported, similar to
10499 the already supported 'macvlan' devices.
10500
e57eaef8 10501 * systemd-resolved now implements RFC5452 to improve resilience against
01608bc8 10502 cache poisoning. Additionally, source port randomization is enabled
e57eaef8
DH
10503 by default to further protect against DNS spoofing attacks.
10504
10505 * nss-mymachines now supports translating UIDs and GIDs of running
10506 containers with user-namespaces enabled. If a container 'foo'
10507 translates a host uid 'UID' to the container uid 'TUID', then
10508 nss-mymachines will also map uid 'UID' to/from username 'vu-foo-TUID'
10509 (with 'foo' and 'TUID' replaced accordingly). Similarly, groups are
10510 mapped as 'vg-foo-TGID'.
10511
10512 Contributions from: Beniamino Galvani, cee1, Christian Hesse, Daniel
e4e66993
DH
10513 Buch, Daniel Mack, daurnimator, David Herrmann, Dimitri John Ledkov,
10514 HATAYAMA Daisuke, Ivan Shapovalov, Jan Alexander Steffens (heftig),
10515 Johan Ouwerkerk, Jose Carlos Venegas Munoz, Karel Zak, Kay Sievers,
10516 Lennart Poettering, Lidong Zhong, Martin Pitt, Michael Biebl, Michael
10517 Olbrich, Michal Schmidt, Michal Sekletar, Mike Gilbert, Namhyung Kim,
10518 Nick Owens, Peter Hutterer, Richard Maw, Steven Allen, Sungbae Yoo,
10519 Susant Sahani, Thomas Blume, Thomas Hindoe Paaboel Andersen, Tom
10520 Gundersen, Torstein Husebø, Umut Tezduyar Lindskog, Vito Caputo,
10521 Vivenzio Pagliari, Zbigniew Jędrzejewski-Szmek
10522
ccddd104 10523 — Berlin, 2015-07-29
e57eaef8 10524
0db83ad7 10525CHANGES WITH 222:
5541c889 10526
861b02eb
KS
10527 * udev does not longer support the WAIT_FOR_SYSFS= key in udev rules.
10528 There are no known issues with current sysfs, and udev does not need
10529 or should be used to work around such bugs.
10530
10531 * udev does no longer enable USB HID power management. Several reports
10532 indicate, that some devices cannot handle that setting.
0db83ad7
DH
10533
10534 * The udev accelerometer helper was removed. The functionality
10535 is now fully included in iio-sensor-proxy. But this means,
10536 older iio-sensor-proxy versions will no longer provide
10537 accelerometer/orientation data with this systemd version.
10538 Please upgrade iio-sensor-proxy to version 1.0.
10539
5541c889
DH
10540 * networkd gained a new configuration option IPv6PrivacyExtensions=
10541 which enables IPv6 privacy extensions (RFC 4941, "Privacy Extensions
10542 for Stateless Address") on selected networks.
10543
9b361114
DM
10544 * For the sake of fewer build-time dependencies and less code in the
10545 main repository, the python bindings are about to be removed in the
10546 next release. A new repository has been created which accommodates
10547 the code from now on, and we kindly ask distributions to create a
10548 separate package for this. The removal will take place in v223.
10549
10550 https://github.com/systemd/python-systemd
10551
0db83ad7
DH
10552 Contributions from: Abdo Roig-Maranges, Andrew Eikum, Bastien Nocera,
10553 Cédric Delmas, Christian Hesse, Christos Trochalakis, Daniel Mack,
10554 daurnimator, David Herrmann, Dimitri John Ledkov, Eric Biggers, Eric
10555 Cook, Felipe Sateler, Geert Jansen, Gerd Hoffmann, Gianpaolo Macario,
5541c889
DH
10556 Greg Kroah-Hartman, Iago López Galeiras, Jan Alexander Steffens
10557 (heftig), Jan Engelhardt, Jay Strict, Kay Sievers, Lennart Poettering,
0db83ad7
DH
10558 Markus Knetschke, Martin Pitt, Michael Biebl, Michael Marineau, Michal
10559 Sekletar, Miguel Bernal Marin, Peter Hutterer, Richard Maw, rinrinne,
2d1ca112
DH
10560 Susant Sahani, Thomas Hindoe Paaboel Andersen, Tom Gundersen, Torstein
10561 Husebø, Vedran Miletić, WaLyong Cho, Zbigniew Jędrzejewski-Szmek
0db83ad7 10562
ccddd104 10563 — Berlin, 2015-07-07
0db83ad7 10564
0f0467e6
MP
10565CHANGES WITH 221:
10566
470e72d4 10567 * The sd-bus.h and sd-event.h APIs have now been declared
5f92d24f 10568 stable and have been added to the official interface of
470e72d4
LP
10569 libsystemd.so. sd-bus implements an alternative D-Bus client
10570 library, that is relatively easy to use, very efficient and
10571 supports both classic D-Bus as well as kdbus as transport
10572 backend. sd-event is a generic event loop abstraction that
10573 is built around Linux epoll, but adds features such as event
0aee49d5 10574 prioritization or efficient timer handling. Both APIs are good
470e72d4
LP
10575 choices for C programs looking for a bus and/or event loop
10576 implementation that is minimal and does not have to be
5f92d24f 10577 portable to other kernels.
0f0467e6 10578
470e72d4
LP
10579 * kdbus support is no longer compile-time optional. It is now
10580 always built-in. However, it can still be disabled at
10581 runtime using the kdbus=0 kernel command line setting, and
c6551464 10582 that setting may be changed to default to off, by specifying
470e72d4
LP
10583 --disable-kdbus at build-time. Note though that the kernel
10584 command line setting has no effect if the kdbus.ko kernel
10585 module is not installed, in which case kdbus is (obviously)
10586 also disabled. We encourage all downstream distributions to
0aee49d5 10587 begin testing kdbus by adding it to the kernel images in the
470e72d4
LP
10588 development distributions, and leaving kdbus support in
10589 systemd enabled.
0f0467e6 10590
470e72d4
LP
10591 * The minimal required util-linux version has been bumped to
10592 2.26.
10593
10594 * Support for chkconfig (--enable-chkconfig) was removed in
0aee49d5 10595 favor of calling an abstraction tool
470e72d4
LP
10596 /lib/systemd/systemd-sysv-install. This needs to be
10597 implemented for your distribution. See "SYSV INIT.D SCRIPTS"
10598 in README for details.
10599
10600 * If there's a systemd unit and a SysV init script for the
10601 same service name, and the user executes "systemctl enable"
10602 for it (or a related call), then this will now enable both
10603 (or execute the related operation on both), not just the
10604 unit.
10605
10606 * The libudev API documentation has been converted from gtkdoc
10607 into man pages.
10608
10609 * gudev has been removed from the systemd tree, it is now an
10610 external project.
10611
10612 * The systemd-cgtop tool learnt a new --raw switch to generate
0aee49d5 10613 "raw" (machine parsable) output.
470e72d4
LP
10614
10615 * networkd's IPForwarding= .network file setting learnt the
10616 new setting "kernel", which ensures that networkd does not
10617 change the IP forwarding sysctl from the default kernel
10618 state.
10619
10620 * The systemd-logind bus API now exposes a new boolean
10621 property "Docked" that reports whether logind considers the
10622 system "docked", i.e. connected to a docking station or not.
10623
10624 Contributions from: Alex Crawford, Andreas Pokorny, Andrei
10625 Borzenkov, Charles Duffy, Colin Guthrie, Cristian Rodríguez,
10626 Daniele Medri, Daniel Hahler, Daniel Mack, David Herrmann,
10627 David Mohr, Dimitri John Ledkov, Djalal Harouni, dslul, Ed
10628 Swierk, Eric Cook, Filipe Brandenburger, Gianpaolo Macario,
10629 Harald Hoyer, Iago López Galeiras, Igor Vuk, Jan Synacek,
10630 Jason Pleau, Jason S. McMullan, Jean Delvare, Jeff Huang,
10631 Jonathan Boulle, Karel Zak, Kay Sievers, kloun, Lennart
10632 Poettering, Marc-Antoine Perennou, Marcel Holtmann, Mario
10633 Limonciello, Martin Pitt, Michael Biebl, Michael Olbrich,
10634 Michal Schmidt, Mike Gilbert, Nick Owens, Pablo Lezaeta Reyes,
b912e251
LP
10635 Patrick Donnelly, Pavel Odvody, Peter Hutterer, Philip
10636 Withnall, Ronny Chevalier, Simon McVittie, Susant Sahani,
10637 Thomas Hindoe Paaboel Andersen, Tom Gundersen, Torstein
10638 Husebø, Umut Tezduyar Lindskog, Viktar Vauchkevich, Werner
10639 Fink, Zbigniew Jędrzejewski-Szmek
470e72d4 10640
ccddd104 10641 — Berlin, 2015-06-19
0f0467e6 10642
481a0aa2
LP
10643CHANGES WITH 220:
10644
f7a73a25
DH
10645 * The gudev library has been extracted into a separate repository
10646 available at: https://git.gnome.org/browse/libgudev/
10647 It is now managed as part of the Gnome project. Distributions
10648 are recommended to pass --disable-gudev to systemd and use
10649 gudev from the Gnome project instead. gudev is still included
10650 in systemd, for now. It will be removed soon, though. Please
10651 also see the announcement-thread on systemd-devel:
56cadcb6 10652 https://lists.freedesktop.org/archives/systemd-devel/2015-May/032070.html
f7a73a25 10653
481a0aa2
LP
10654 * systemd now exposes a CPUUsageNSec= property for each
10655 service unit on the bus, that contains the overall consumed
10656 CPU time of a service (the sum of what each process of the
10657 service consumed). This value is only available if
10658 CPUAccounting= is turned on for a service, and is then shown
10659 in the "systemctl status" output.
10660
10661 * Support for configuring alternative mappings of the old SysV
10662 runlevels to systemd targets has been removed. They are now
29d1fcb4 10663 hardcoded in a way that runlevels 2, 3, 4 all map to
481a0aa2
LP
10664 multi-user.target and 5 to graphical.target (which
10665 previously was already the default behaviour).
10666
10667 * The auto-mounter logic gained support for mount point
10668 expiry, using a new TimeoutIdleSec= setting in .automount
10669 units. (Also available as x-systemd.idle-timeout= in /etc/fstab).
10670
10671 * The EFI System Partition (ESP) as mounted to /boot by
10672 systemd-efi-boot-generator will now be unmounted
29d1fcb4 10673 automatically after 2 minutes of not being used. This should
481a0aa2
LP
10674 minimize the risk of ESP corruptions.
10675
10676 * New /etc/fstab options x-systemd.requires= and
10677 x-systemd.requires-mounts-for= are now supported to express
10678 additional dependencies for mounts. This is useful for
28423d9a 10679 journaling file systems that support external journal
481a0aa2
LP
10680 devices or overlay file systems that require underlying file
10681 systems to be mounted.
10682
10683 * systemd does not support direct live-upgrades (via systemctl
10684 daemon-reexec) from versions older than v44 anymore. As no
10685 distribution we are aware of shipped such old versions in a
10686 stable release this should not be problematic.
10687
10688 * When systemd forks off a new per-connection service instance
10689 it will now set the $REMOTE_ADDR environment variable to the
10690 remote IP address, and $REMOTE_PORT environment variable to
10691 the remote IP port. This behaviour is similar to the
10692 corresponding environment variables defined by CGI.
10693
10694 * systemd-networkd gained support for uplink failure
10695 detection. The BindCarrier= option allows binding interface
10696 configuration dynamically to the link sense of other
10697 interfaces. This is useful to achieve behaviour like in
10698 network switches.
10699
10700 * systemd-networkd gained support for configuring the DHCP
10701 client identifier to use when requesting leases.
10702
10703 * systemd-networkd now has a per-network UseNTP= option to
10704 configure whether NTP server information acquired via DHCP
10705 is passed on to services like systemd-timesyncd.
10706
10707 * systemd-networkd gained support for vti6 tunnels.
10708
1579dd2c
LP
10709 * Note that systemd-networkd manages the sysctl variable
10710 /proc/sys/net/ipv[46]/conf/*/forwarding for each interface
10711 it is configured for since v219. The variable controls IP
10712 forwarding, and is a per-interface alternative to the global
10713 /proc/sys/net/ipv[46]/ip_forward. This setting is
10714 configurable in the IPForward= option, which defaults to
10715 "no". This means if networkd is used for an interface it is
10716 no longer sufficient to set the global sysctl option to turn
10717 on IP forwarding! Instead, the .network file option
10718 IPForward= needs to be turned on! Note that the
10719 implementation of this behaviour was broken in v219 and has
10720 been fixed in v220.
10721
481a0aa2
LP
10722 * Many bonding and vxlan options are now configurable in
10723 systemd-networkd.
10724
10725 * systemd-nspawn gained a new --property= setting to set unit
10726 properties for the container scope. This is useful for
ce830873 10727 setting resource parameters (e.g. "CPUShares=500") on
481a0aa2
LP
10728 containers started from the command line.
10729
10730 * systemd-nspawn gained a new --private-users= switch to make
10731 use of user namespacing available on recent Linux kernels.
10732
10733 * systemd-nspawn may now be called as part of a shell pipeline
10734 in which case the pipes used for stdin and stdout are passed
10735 directly to the process invoked in the container, without
10736 indirection via a pseudo tty.
10737
10738 * systemd-nspawn gained a new switch to control the UNIX
10739 signal to use when killing the init process of the container
10740 when shutting down.
10741
10742 * systemd-nspawn gained a new --overlay= switch for mounting
10743 overlay file systems into the container using the new kernel
10744 overlayfs support.
10745
10746 * When a container image is imported via systemd-importd and
10747 the host file system is not btrfs, a loopback block device
10748 file is created in /var/lib/machines.raw with a btrfs file
10749 system inside. It is then mounted to /var/lib/machines to
10750 enable btrfs features for container management. The loopback
10751 file and btrfs file system is grown as needed when container
10752 images are imported via systemd-importd.
10753
10754 * systemd-machined/systemd-importd gained support for btrfs
10755 quota, to enforce container disk space limits on disk. This
10756 is exposed in "machinectl set-limit".
10757
10758 * systemd-importd now can import containers from local .tar,
10759 .raw and .qcow2 images, and export them to .tar and .raw. It
10760 can also import dkr v2 images now from the network (on top
10761 of v1 as before).
10762
10763 * systemd-importd gained support for verifying downloaded
10764 images with gpg2 (previously only gpg1 was supported).
10765
d35f51ea
ZJS
10766 * systemd-machined, systemd-logind, systemd: most bus calls are
10767 now accessible to unprivileged processes via polkit. Also,
10768 systemd-logind will now allow users to kill their own sessions
10769 without further privileges or authorization.
481a0aa2
LP
10770
10771 * systemd-shutdownd has been removed. This service was
10772 previously responsible for implementing scheduled shutdowns
10773 as exposed in /usr/bin/shutdown's time parameter. This
10774 functionality has now been moved into systemd-logind and is
10775 accessible via a bus interface.
10776
10777 * "systemctl reboot" gained a new switch --firmware-setup that
10778 can be used to reboot into the EFI firmware setup, if that
10779 is available. systemd-logind now exposes an API on the bus
10780 to trigger such reboots, in case graphical desktop UIs want
10781 to cover this functionality.
10782
10783 * "systemctl enable", "systemctl disable" and "systemctl mask"
1579dd2c 10784 now support a new "--now" switch. If specified the units
481a0aa2
LP
10785 that are enabled will also be started, and the ones
10786 disabled/masked also stopped.
10787
10788 * The Gummiboot EFI boot loader tool has been merged into
1a2d5fbe
DH
10789 systemd, and renamed to "systemd-boot". The bootctl tool has been
10790 updated to support systemd-boot.
481a0aa2
LP
10791
10792 * An EFI kernel stub has been added that may be used to create
10793 kernel EFI binaries that contain not only the actual kernel,
10794 but also an initrd, boot splash, command line and OS release
10795 information. This combined binary can then be signed as a
10796 single image, so that the firmware can verify it all in one
1a2d5fbe 10797 step. systemd-boot has special support for EFI binaries created
481a0aa2
LP
10798 like this and can extract OS release information from them
10799 and show them in the boot menu. This functionality is useful
10800 to implement cryptographically verified boot schemes.
10801
10802 * Optional support has been added to systemd-fsck to pass
10803 fsck's progress report to an AF_UNIX socket in the file
10804 system.
10805
6b000af4
LP
10806 * udev will no longer create device symlinks for all block devices by
10807 default. A deny list for excluding special block devices from this
387f6955 10808 logic has been turned into an allow list that requires picking block
6b000af4 10809 devices explicitly that require device symlinks.
481a0aa2
LP
10810
10811 * A new (currently still internal) API sd-device.h has been
10812 added to libsystemd. This modernized API is supposed to
10813 replace libudev eventually. In fact, already much of libudev
10814 is now just a wrapper around sd-device.h.
10815
10816 * A new hwdb database for storing metadata about pointing
10817 stick devices has been added.
10818
10819 * systemd-tmpfiles gained support for setting file attributes
10820 similar to the "chattr" tool with new 'h' and 'H' lines.
10821
10822 * systemd-journald will no longer unconditionally set the
10823 btrfs NOCOW flag on new journal files. This is instead done
10824 with tmpfiles snippet using the new 'h' line type. This
10825 allows easy disabling of this logic, by masking the
10826 journal-nocow.conf tmpfiles file.
10827
10828 * systemd-journald will now translate audit message types to
10829 human readable identifiers when writing them to the
10830 journal. This should improve readability of audit messages.
10831
10832 * The LUKS logic gained support for the offset= and skip=
10833 options in /etc/crypttab, as previously implemented by
10834 Debian.
10835
10836 * /usr/lib/os-release gained a new optional field VARIANT= for
10837 distributions that support multiple variants (such as a
1d3a473b 10838 desktop edition, a server edition, …)
481a0aa2
LP
10839
10840 Contributions from: Aaro Koskinen, Adam Goode, Alban Crequy,
10841 Alberto Fanjul Alonso, Alexander Sverdlin, Alex Puchades, Alin
10842 Rauta, Alison Chaiken, Andrew Jones, Arend van Spriel,
10843 Benedikt Morbach, Benjamin Franzke, Benjamin Tissoires, Blaž
10844 Tomažič, Chris Morgan, Chris Morin, Colin Walters, Cristian
10845 Rodríguez, Daniel Buch, Daniel Drake, Daniele Medri, Daniel
10846 Mack, Daniel Mustieles, daurnimator, Davide Bettio, David
10847 Herrmann, David Strauss, Didier Roche, Dimitri John Ledkov,
10848 Eric Cook, Gavin Li, Goffredo Baroncelli, Hannes Reinecke,
10849 Hans de Goede, Hans-Peter Deifel, Harald Hoyer, Iago López
10850 Galeiras, Ivan Shapovalov, Jan Engelhardt, Jan Janssen, Jan
10851 Pazdziora, Jan Synacek, Jasper St. Pierre, Jay Faulkner, John
10852 Paul Adrian Glaubitz, Jonathon Gilbert, Karel Zak, Kay
10853 Sievers, Koen Kooi, Lennart Poettering, Lubomir Rintel, Lucas
10854 De Marchi, Lukas Nykryn, Lukas Rusak, Lukasz Skalski, Łukasz
10855 Stelmach, Mantas Mikulėnas, Marc-Antoine Perennou, Marcel
10856 Holtmann, Martin Pitt, Mathieu Chevrier, Matthew Garrett,
10857 Michael Biebl, Michael Marineau, Michael Olbrich, Michal
10858 Schmidt, Michal Sekletar, Mirco Tischler, Nir Soffer, Patrik
10859 Flykt, Pavel Odvody, Peter Hutterer, Peter Lemenkov, Peter
10860 Waller, Piotr Drąg, Raul Gutierrez S, Richard Maw, Ronny
10861 Chevalier, Ross Burton, Sebastian Rasmussen, Sergey Ptashnick,
10862 Seth Jennings, Shawn Landden, Simon Farnsworth, Stefan Junker,
10863 Stephen Gallagher, Susant Sahani, Sylvain Plantefève, Thomas
10864 Haller, Thomas Hindoe Paaboel Andersen, Tobias Hunger, Tom
10865 Gundersen, Torstein Husebø, Umut Tezduyar Lindskog, Will
10866 Woods, Zachary Cook, Zbigniew Jędrzejewski-Szmek
10867
ccddd104 10868 — Berlin, 2015-05-22
481a0aa2 10869
615aaf41
LP
10870CHANGES WITH 219:
10871
615aaf41
LP
10872 * Introduce a new API "sd-hwdb.h" for querying the hardware
10873 metadata database. With this minimal interface one can query
10874 and enumerate the udev hwdb, decoupled from the old libudev
10875 library. libudev's interface for this is now only a wrapper
10876 around sd-hwdb. A new tool systemd-hwdb has been added to
10877 interface with and update the database.
10878
10879 * When any of systemd's tools copies files (for example due to
10880 tmpfiles' C lines) a btrfs reflink will attempted first,
10881 before bytewise copying is done.
10882
10883 * systemd-nspawn gained a new --ephemeral switch. When
10884 specified a btrfs snapshot is taken of the container's root
10885 directory, and immediately removed when the container
10886 terminates again. Thus, a container can be started whose
10887 changes never alter the container's root directory, and are
10888 lost on container termination. This switch can also be used
10889 for starting a container off the root file system of the
10890 host without affecting the host OS. This switch is only
10891 available on btrfs file systems.
10892
10893 * systemd-nspawn gained a new --template= switch. It takes the
10894 path to a container tree to use as template for the tree
7edecf21 10895 specified via --directory=, should that directory be
615aaf41
LP
10896 missing. This allows instantiating containers dynamically,
10897 on first run. This switch is only available on btrfs file
10898 systems.
10899
10900 * When a .mount unit refers to a mount point on which multiple
10901 mounts are stacked, and the .mount unit is stopped all of
10902 the stacked mount points will now be unmounted until no
10903 mount point remains.
10904
10905 * systemd now has an explicit notion of supported and
10906 unsupported unit types. Jobs enqueued for unsupported unit
10907 types will now fail with an "unsupported" error code. More
10908 specifically .swap, .automount and .device units are not
10909 supported in containers, .busname units are not supported on
10910 non-kdbus systems. .swap and .automount are also not
10911 supported if their respective kernel compile time options
10912 are disabled.
10913
10914 * machinectl gained support for two new "copy-from" and
10915 "copy-to" commands for copying files from a running
10916 container to the host or vice versa.
10917
10918 * machinectl gained support for a new "bind" command to bind
10919 mount host directories into local containers. This is
10920 currently only supported for nspawn containers.
10921
10922 * networkd gained support for configuring bridge forwarding
10923 database entries (fdb) from .network files.
10924
10925 * A new tiny daemon "systemd-importd" has been added that can
10926 download container images in tar, raw, qcow2 or dkr formats,
10927 and make them available locally in /var/lib/machines, so
10928 that they can run as nspawn containers. The daemon can GPG
10929 verify the downloads (not supported for dkr, since it has no
10930 provisions for verifying downloads). It will transparently
10931 decompress bz2, xz, gzip compressed downloads if necessary,
10932 and restore sparse files on disk. The daemon uses privilege
10933 separation to ensure the actual download logic runs with
94e5ba37 10934 fewer privileges than the daemon itself. machinectl has
615aaf41
LP
10935 gained new commands "pull-tar", "pull-raw" and "pull-dkr" to
10936 make the functionality of importd available to the
10937 user. With this in place the Fedora and Ubuntu "Cloud"
10938 images can be downloaded and booted as containers unmodified
10939 (the Fedora images lack the appropriate GPG signature files
10940 currently, so they cannot be verified, but this will change
10941 soon, hopefully). Note that downloading images is currently
10942 only fully supported on btrfs.
10943
10944 * machinectl is now able to list container images found in
10945 /var/lib/machines, along with some metadata about sizes of
10946 disk and similar. If the directory is located on btrfs and
10947 quota is enabled, this includes quota display. A new command
10948 "image-status" has been added that shows additional
10949 information about images.
10950
10951 * machinectl is now able to clone container images
10952 efficiently, if the underlying file system (btrfs) supports
f59dba26 10953 it, with the new "machinectl clone" command. It also
615aaf41
LP
10954 gained commands for renaming and removing images, as well as
10955 marking them read-only or read-write (supported also on
10956 legacy file systems).
10957
10958 * networkd gained support for collecting LLDP network
10959 announcements, from hardware that supports this. This is
10960 shown in networkctl output.
10961
10962 * systemd-run gained support for a new -t (--pty) switch for
10963 invoking a binary on a pty whose input and output is
10964 connected to the invoking terminal. This allows executing
10965 processes as system services while interactively
10966 communicating with them via the terminal. Most interestingly
10967 this is supported across container boundaries. Invoking
10968 "systemd-run -t /bin/bash" is an alternative to running a
10969 full login session, the difference being that the former
10970 will not register a session, nor go through the PAM session
10971 setup.
10972
10973 * tmpfiles gained support for a new "v" line type for creating
10974 btrfs subvolumes. If the underlying file system is a legacy
10975 file system, this automatically degrades to creating a
10976 normal directory. Among others /var/lib/machines is now
10977 created like this at boot, should it be missing.
10978
10979 * The directory /var/lib/containers/ has been deprecated and
10980 been replaced by /var/lib/machines. The term "machines" has
10981 been used in the systemd context as generic term for both
10982 VMs and containers, and hence appears more appropriate for
10983 this, as the directory can also contain raw images bootable
10984 via qemu/kvm.
10985
10986 * systemd-nspawn when invoked with -M but without --directory=
10987 or --image= is now capable of searching for the container
10988 root directory, subvolume or disk image automatically, in
10989 /var/lib/machines. systemd-nspawn@.service has been updated
10990 to make use of this, thus allowing it to be used for raw
10991 disk images, too.
10992
10993 * A new machines.target unit has been introduced that is
10994 supposed to group all containers/VMs invoked as services on
10995 the system. systemd-nspawn@.service has been updated to
10996 integrate with that.
10997
10998 * machinectl gained a new "start" command, for invoking a
10999 container as a service. "machinectl start foo" is mostly
11000 equivalent to "systemctl start systemd-nspawn@foo.service",
11001 but handles escaping in a nicer way.
11002
11003 * systemd-nspawn will now mount most of the cgroupfs tree
11004 read-only into each container, with the exception of the
11005 container's own subtree in the name=systemd hierarchy.
11006
11007 * journald now sets the special FS_NOCOW file flag for its
11008 journal files. This should improve performance on btrfs, by
11009 avoiding heavy fragmentation when journald's write-pattern
11010 is used on COW file systems. It degrades btrfs' data
11011 integrity guarantees for the files to the same levels as for
11012 ext3/ext4 however. This should be OK though as journald does
11013 its own data integrity checks and all its objects are
11014 checksummed on disk. Also, journald should handle btrfs disk
11015 full events a lot more gracefully now, by processing SIGBUS
11016 errors, and not relying on fallocate() anymore.
11017
11018 * When journald detects that journal files it is writing to
11019 have been deleted it will immediately start new journal
11020 files.
11021
11022 * systemd now provides a way to store file descriptors
4c37970d 11023 per-service in PID 1. This is useful for daemons to ensure
615aaf41 11024 that fds they require are not lost during a daemon
94e5ba37 11025 restart. The fds are passed to the daemon on the next
615aaf41
LP
11026 invocation in the same way socket activation fds are
11027 passed. This is now used by journald to ensure that the
11028 various sockets connected to all the system's stdout/stderr
11029 are not lost when journald is restarted. File descriptors
11030 may be stored in PID 1 via the sd_pid_notify_with_fds() API,
11031 an extension to sd_notify(). Note that a limit is enforced
11032 on the number of fds a service can store in PID 1, and it
11033 defaults to 0, so that no fds may be stored, unless this is
11034 explicitly turned on.
11035
11036 * The default TERM variable to use for units connected to a
11037 terminal, when no other value is explicitly is set is now
11038 vt220 rather than vt102. This should be fairly safe still,
11039 but allows PgUp/PgDn work.
11040
11041 * The /etc/crypttab option header= as known from Debian is now
11042 supported.
11043
11044 * "loginctl user-status" and "loginctl session-status" will
11045 now show the last 10 lines of log messages of the
11046 user/session following the status output. Similar,
11047 "machinectl status" will show the last 10 log lines
11048 associated with a virtual machine or container
11049 service. (Note that this is usually not the log messages
11050 done in the VM/container itself, but simply what the
11051 container manager logs. For nspawn this includes all console
11052 output however.)
11053
11054 * "loginctl session-status" without further argument will now
11055 show the status of the session of the caller. Similar,
11056 "lock-session", "unlock-session", "activate",
11057 "enable-linger", "disable-linger" may now be called without
11058 session/user parameter in which case they apply to the
11059 caller's session/user.
11060
11061 * An X11 session scriptlet is now shipped that uploads
11062 $DISPLAY and $XAUTHORITY into the environment of the systemd
11063 --user daemon if a session begins. This should improve
11064 compatibility with X11 enabled applications run as systemd
11065 user services.
11066
11067 * Generators are now subject to masking via /etc and /run, the
11068 same way as unit files.
11069
11070 * networkd .network files gained support for configuring
11071 per-link IPv4/IPv6 packet forwarding as well as IPv4
11072 masquerading. This is by default turned on for veth links to
11073 containers, as registered by systemd-nspawn. This means that
11074 nspawn containers run with --network-veth will now get
11075 automatic routed access to the host's networks without any
11076 further configuration or setup, as long as networkd runs on
11077 the host.
11078
11079 * systemd-nspawn gained the --port= (-p) switch to expose TCP
11080 or UDP posts of a container on the host. With this in place
11081 it is possible to run containers with private veth links
11082 (--network-veth), and have their functionality exposed on
11083 the host as if their services were running directly on the
11084 host.
11085
dd2fd155 11086 * systemd-nspawn's --network-veth switch now gained a short
615aaf41
LP
11087 version "-n", since with the changes above it is now truly
11088 useful out-of-the-box. The systemd-nspawn@.service has been
11089 updated to make use of it too by default.
11090
11091 * systemd-nspawn will now maintain a per-image R/W lock, to
11092 ensure that the same image is not started more than once
11093 writable. (It's OK to run an image multiple times
11094 simultaneously in read-only mode.)
11095
11096 * systemd-nspawn's --image= option is now capable of
11097 dissecting and booting MBR and GPT disk images that contain
11098 only a single active Linux partition. Previously it
11099 supported only GPT disk images with proper GPT type
11100 IDs. This allows running cloud images from major
11101 distributions directly with systemd-nspawn, without
11102 modification.
11103
11104 * In addition to collecting mouse dpi data in the udev
11105 hardware database, there's now support for collecting angle
11106 information for mouse scroll wheels. The database is
7edecf21 11107 supposed to guarantee similar scrolling behavior on mice
615aaf41
LP
11108 that it knows about. There's also support for collecting
11109 information about Touchpad types.
11110
11111 * udev's input_id built-in will now also collect touch screen
11112 dimension data and attach it to probed devices.
11113
11114 * /etc/os-release gained support for a Distribution Privacy
11115 Policy link field.
11116
11117 * networkd gained support for creating "ipvlan", "gretap",
11118 "ip6gre", "ip6gretap" and "ip6tnl" network devices.
11119
11120 * systemd-tmpfiles gained support for "a" lines for setting
11121 ACLs on files.
11122
11123 * systemd-nspawn will now mount /tmp in the container to
11124 tmpfs, automatically.
11125
11126 * systemd now exposes the memory.usage_in_bytes cgroup
11127 attribute and shows it for each service in the "systemctl
11128 status" output, if available.
11129
11130 * When the user presses Ctrl-Alt-Del more than 7x within 2s an
11131 immediate reboot is triggered. This useful if shutdown is
11132 hung and is unable to complete, to expedite the
11133 operation. Note that this kind of reboot will still unmount
11134 all file systems, and hence should not result in fsck being
11135 run on next reboot.
11136
11137 * A .device unit for an optical block device will now be
11138 considered active only when a medium is in the drive. Also,
11139 mount units are now bound to their backing devices thus
11140 triggering automatic unmounting when devices become
11141 unavailable. With this in place systemd will now
11142 automatically unmount left-over mounts when a CD-ROM is
11143 ejected or an USB stick is yanked from the system.
11144
11145 * networkd-wait-online now has support for waiting for
11146 specific interfaces only (with globbing), and for giving up
11147 after a configurable timeout.
11148
11149 * networkd now exits when idle. It will be automatically
11150 restarted as soon as interfaces show up, are removed or
11151 change state. networkd will stay around as long as there is
11152 at least one DHCP state machine or similar around, that keep
11153 it non-idle.
11154
11155 * networkd may now configure IPv6 link-local addressing in
11156 addition to IPv4 link-local addressing.
11157
11158 * The IPv6 "token" for use in SLAAC may now be configured for
11159 each .network interface in networkd.
11160
11161 * Routes configured with networkd may now be assigned a scope
11162 in .network files.
11163
11164 * networkd's [Match] sections now support globbing and lists
11165 of multiple space-separated matches per item.
11166
11ea2781 11167 Contributions from: Alban Crequy, Alin Rauta, Andrey Chaser,
d2c643c6
LP
11168 Bastien Nocera, Bruno Bottazzini, Carlos Garnacho, Carlos
11169 Morata Castillo, Chris Atkinson, Chris J. Arges, Christian
11170 Kirbach, Christian Seiler, Christoph Brill, Colin Guthrie,
11171 Colin Walters, Cristian Rodríguez, Daniele Medri, Daniel Mack,
11172 Dave Reisner, David Herrmann, Djalal Harouni, Erik Auerswald,
11173 Filipe Brandenburger, Frank Theile, Gabor Kelemen, Gabriel de
11174 Perthuis, Harald Hoyer, Hui Wang, Ivan Shapovalov, Jan
11175 Engelhardt, Jan Synacek, Jay Faulkner, Johannes Hölzl, Jonas
11176 Ådahl, Jonathan Boulle, Josef Andersson, Kay Sievers, Ken
11177 Werner, Lennart Poettering, Lucas De Marchi, Lukas Märdian,
11178 Lukas Nykryn, Lukasz Skalski, Luke Shumaker, Mantas Mikulėnas,
11179 Manuel Mendez, Marcel Holtmann, Marc Schmitzer, Marko
11180 Myllynen, Martin Pitt, Maxim Mikityanskiy, Michael Biebl,
11181 Michael Marineau, Michael Olbrich, Michal Schmidt, Mindaugas
11ea2781
LP
11182 Baranauskas, Moez Bouhlel, Naveen Kumar, Patrik Flykt, Paul
11183 Martin, Peter Hutterer, Peter Mattern, Philippe De Swert,
11184 Piotr Drąg, Rafael Ferreira, Rami Rosen, Robert Milasan, Ronny
11185 Chevalier, Sangjung Woo, Sebastien Bacher, Sergey Ptashnick,
11186 Shawn Landden, Stéphane Graber, Susant Sahani, Sylvain
11187 Plantefève, Thomas Hindoe Paaboel Andersen, Tim JP, Tom
11188 Gundersen, Topi Miettinen, Torstein Husebø, Umut Tezduyar
d2c643c6
LP
11189 Lindskog, Veres Lajos, Vincent Batts, WaLyong Cho, Wieland
11190 Hoffmann, Zbigniew Jędrzejewski-Szmek
11ea2781 11191
ccddd104 11192 — Berlin, 2015-02-16
11ea2781 11193
d4f5a1f4
DH
11194CHANGES WITH 218:
11195
f9e00a9f
LP
11196 * When querying unit file enablement status (for example via
11197 "systemctl is-enabled"), a new state "indirect" is now known
11198 which indicates that a unit might not be enabled itself, but
c7683ffb 11199 another unit listed in its Also= setting might be.
f9e00a9f
LP
11200
11201 * Similar to the various existing ConditionXYZ= settings for
b938cb90 11202 units, there are now matching AssertXYZ= settings. While
f9e00a9f
LP
11203 failing conditions cause a unit to be skipped, but its job
11204 to succeed, failing assertions declared like this will cause
11205 a unit start operation and its job to fail.
11206
11207 * hostnamed now knows a new chassis type "embedded".
11208
11209 * systemctl gained a new "edit" command. When used on a unit
b938cb90 11210 file, this allows extending unit files with .d/ drop-in
f9e00a9f
LP
11211 configuration snippets or editing the full file (after
11212 copying it from /usr/lib to /etc). This will invoke the
11213 user's editor (as configured with $EDITOR), and reload the
11214 modified configuration after editing.
11215
11216 * "systemctl status" now shows the suggested enablement state
11217 for a unit, as declared in the (usually vendor-supplied)
11218 system preset files.
11219
38b38500 11220 * nss-myhostname will now resolve the single-label hostname
f9e00a9f
LP
11221 "gateway" to the locally configured default IP routing
11222 gateways, ordered by their metrics. This assigns a stable
11223 name to the used gateways, regardless which ones are
11224 currently configured. Note that the name will only be
11225 resolved after all other name sources (if nss-myhostname is
11226 configured properly) and should hence not negatively impact
38b38500 11227 systems that use the single-label hostname "gateway" in
f9e00a9f
LP
11228 other contexts.
11229
11230 * systemd-inhibit now allows filtering by mode when listing
11231 inhibitors.
11232
122676c9 11233 * Scope and service units gained a new "Delegate" boolean
b938cb90 11234 property, which, when set, allows processes running inside the
122676c9
LP
11235 unit to further partition resources. This is primarily
11236 useful for systemd user instances as well as container
11237 managers.
f9e00a9f
LP
11238
11239 * journald will now pick up audit messages directly from
11240 the kernel, and log them like any other log message. The
11241 audit fields are split up and fully indexed. This means that
11242 journalctl in many ways is now a (nicer!) alternative to
11243 ausearch, the traditional audit client. Note that this
b938cb90 11244 implements only a minimal audit client. If you want the
f9e00a9f
LP
11245 special audit modes like reboot-on-log-overflow, please use
11246 the traditional auditd instead, which can be used in
11247 parallel to journald.
11248
11249 * The ConditionSecurity= unit file option now understands the
11250 special string "audit" to check whether auditing is
11251 available.
11252
11253 * journalctl gained two new commands --vacuum-size= and
11254 --vacuum-time= to delete old journal files until the
a8eaaee7 11255 remaining ones take up no more than the specified size on disk,
f9e00a9f
LP
11256 or are not older than the specified time.
11257
11258 * A new, native PPPoE library has been added to sd-network,
11259 systemd's library of light-weight networking protocols. This
11260 library will be used in a future version of networkd to
11261 enable PPPoE communication without an external pppd daemon.
11262
11263 * The busctl tool now understands a new "capture" verb that
11264 works similar to "monitor", but writes a packet capture
11265 trace to STDOUT that can be redirected to a file which is
11266 compatible with libcap's capture file format. This can then
11267 be loaded in Wireshark and similar tools to inspect bus
11268 communication.
11269
11270 * The busctl tool now understands a new "tree" verb that shows
11271 the object trees of a specific service on the bus, or of all
11272 services.
11273
11274 * The busctl tool now understands a new "introspect" verb that
11275 shows all interfaces and members of objects on the bus,
11276 including their signature and values. This is particularly
11277 useful to get more information about bus objects shown by
11278 the new "busctl tree" command.
11279
11280 * The busctl tool now understands new verbs "call",
11281 "set-property" and "get-property" for invoking bus method
11282 calls, setting and getting bus object properties in a
11283 friendly way.
11284
11285 * busctl gained a new --augment-creds= argument that controls
11286 whether the tool shall augment credential information it
11287 gets from the bus with data from /proc, in a possibly
11288 race-ful way.
11289
11290 * nspawn's --link-journal= switch gained two new values
11291 "try-guest" and "try-host" that work like "guest" and
17c29493 11292 "host", but do not fail if the host has no persistent
28423d9a 11293 journaling enabled. -j is now equivalent to
f9e00a9f
LP
11294 --link-journal=try-guest.
11295
11296 * macvlan network devices created by nspawn will now have
11297 stable MAC addresses.
11298
11299 * A new SmackProcessLabel= unit setting has been added, which
11300 controls the SMACK security label processes forked off by
11301 the respective unit shall use.
11302
d4f5a1f4
DH
11303 * If compiled with --enable-xkbcommon, systemd-localed will
11304 verify x11 keymap settings by compiling the given keymap. It
11305 will spew out warnings if the compilation fails. This
11306 requires libxkbcommon to be installed.
11307
b938cb90 11308 * When a coredump is collected, a larger number of metadata
f9e00a9f 11309 fields is now collected and included in the journal records
b938cb90 11310 created for it. More specifically, control group membership,
f9e00a9f
LP
11311 environment variables, memory maps, working directory,
11312 chroot directory, /proc/$PID/status, and a list of open file
11313 descriptors is now stored in the log entry.
11314
17c29493 11315 * The udev hwdb now contains DPI information for mice. For
f9e00a9f
LP
11316 details see:
11317
11318 http://who-t.blogspot.de/2014/12/building-a-dpi-database-for-mice.html
11319
11320 * All systemd programs that read standalone configuration
11321 files in /etc now also support a corresponding series of
997b2b43
JT
11322 .conf.d configuration directories in /etc/, /run/,
11323 /usr/local/lib/, /usr/lib/, and (if configured with
11324 --enable-split-usr) /lib/. In particular, the following
11325 configuration files now have corresponding configuration
11326 directories: system.conf user.conf, logind.conf,
11327 journald.conf, sleep.conf, bootchart.conf, coredump.conf,
11328 resolved.conf, timesyncd.conf, journal-remote.conf, and
11329 journal-upload.conf. Note that distributions should use the
11330 configuration directories in /usr/lib/; the directories in
11331 /etc/ are reserved for the system administrator.
11332
f9e00a9f
LP
11333 * systemd-rfkill will no longer take the rfkill device name
11334 into account when storing rfkill state on disk, as the name
11335 might be dynamically assigned and not stable. Instead, the
11336 ID_PATH udev variable combined with the rfkill type (wlan,
1d3a473b 11337 bluetooth, …) is used.
f9e00a9f
LP
11338
11339 * A new service systemd-machine-id-commit.service has been
11340 added. When used on systems where /etc is read-only during
11341 boot, and /etc/machine-id is not initialized (but an empty
11342 file), this service will copy the temporary machine ID
11343 created as replacement into /etc after the system is fully
11344 booted up. This is useful for systems that are freshly
11345 installed with a non-initialized machine ID, but should get
11346 a fixed machine ID for subsequent boots.
11347
11348 * networkd's .netdev files now provide a large set of
a8eaaee7 11349 configuration parameters for VXLAN devices. Similarly, the
f9e00a9f
LP
11350 bridge port cost parameter is now configurable in .network
11351 files. There's also new support for configuring IP source
11352 routing. networkd .link files gained support for a new
11353 OriginalName= match that is useful to match against the
11354 original interface name the kernel assigned. .network files
11355 may include MTU= and MACAddress= fields for altering the MTU
11356 and MAC address while being connected to a specific network
11357 interface.
11358
11359 * The LUKS logic gained supported for configuring
11360 UUID-specific key files. There's also new support for naming
11361 LUKS device from the kernel command line, using the new
11362 luks.name= argument.
11363
11364 * Timer units may now be transiently created via the bus API
11365 (this was previously already available for scope and service
11366 units). In addition it is now possible to create multiple
11367 transient units at the same time with a single bus call. The
11368 "systemd-run" tool has been updated to make use of this for
11369 running commands on a specified time, in at(1)-style.
11370
11371 * tmpfiles gained support for "t" lines, for assigning
11372 extended attributes to files. Among other uses this may be
11373 used to assign SMACK labels to files.
11374
13e92f39
LP
11375 Contributions from: Alin Rauta, Alison Chaiken, Andrej
11376 Manduch, Bastien Nocera, Chris Atkinson, Chris Leech, Chris
11377 Mayo, Colin Guthrie, Colin Walters, Cristian Rodríguez,
11378 Daniele Medri, Daniel Mack, Dan Williams, Dan Winship, Dave
11379 Reisner, David Herrmann, Didier Roche, Felipe Sateler, Gavin
11380 Li, Hans de Goede, Harald Hoyer, Iago López Galeiras, Ivan
11381 Shapovalov, Jakub Filak, Jan Janssen, Jan Synacek, Joe
11382 Lawrence, Josh Triplett, Kay Sievers, Lennart Poettering,
11383 Lukas Nykryn, Łukasz Stelmach, Maciej Wereski, Mantas
11384 Mikulėnas, Marcel Holtmann, Martin Pitt, Maurizio Lombardi,
11385 Michael Biebl, Michael Chapman, Michael Marineau, Michal
7da81d33
LP
11386 Schmidt, Michal Sekletar, Olivier Brunel, Patrik Flykt, Peter
11387 Hutterer, Przemyslaw Kedzierski, Rami Rosen, Ray Strode,
11388 Richard Schütz, Richard W.M. Jones, Ronny Chevalier, Ross
11389 Lagerwall, Sean Young, Stanisław Pitucha, Susant Sahani,
11390 Thomas Haller, Thomas Hindoe Paaboel Andersen, Tom Gundersen,
11391 Torstein Husebø, Umut Tezduyar Lindskog, Vicente Olivert
11392 Riera, WaLyong Cho, Wesley Dawson, Zbigniew Jędrzejewski-Szmek
13e92f39 11393
ccddd104 11394 — Berlin, 2014-12-10
f9e00a9f 11395
b62a309a
ZJS
11396CHANGES WITH 217:
11397
78b6b7ce
LP
11398 * journalctl gained the new options -t/--identifier= to match
11399 on the syslog identifier (aka "tag"), as well as --utc to
11400 show log timestamps in the UTC timezone. journalctl now also
11401 accepts -n/--lines=all to disable line capping in a pager.
b62a309a 11402
a65b8245
ZJS
11403 * journalctl gained a new switch, --flush, that synchronously
11404 flushes logs from /run/log/journal to /var/log/journal if
11405 persistent storage is enabled. systemd-journal-flush.service
11406 now waits until the operation is complete.
2a97b03b 11407
b62a309a
ZJS
11408 * Services can notify the manager before they start a reload
11409 (by sending RELOADING=1) or shutdown (by sending
4bdc60cb
LP
11410 STOPPING=1). This allows the manager to track and show the
11411 internal state of daemons and closes a race condition when
78b6b7ce 11412 the process is still running but has closed its D-Bus
4bdc60cb 11413 connection.
b62a309a 11414
78b6b7ce
LP
11415 * Services with Type=oneshot do not have to have any ExecStart
11416 commands anymore.
b62a309a
ZJS
11417
11418 * User units are now loaded also from
11419 $XDG_RUNTIME_DIR/systemd/user/. This is similar to the
11420 /run/systemd/user directory that was already previously
11421 supported, but is under the control of the user.
11422
3f9a0a52 11423 * Job timeouts (i.e. timeouts on the time a job that is
4ffd29fd
LP
11424 queued stays in the run queue) can now optionally result in
11425 immediate reboot or power-off actions (JobTimeoutAction= and
11426 JobTimeoutRebootArgument=). This is useful on ".target"
11427 units, to limit the maximum time a target remains
11428 undispatched in the run queue, and to trigger an emergency
11429 operation in such a case. This is now used by default to
11430 turn off the system if boot-up (as defined by everything in
11431 basic.target) hangs and does not complete for at least
11432 15min. Also, if power-off or reboot hang for at least 30min
11433 an immediate power-off/reboot operation is triggered. This
11434 functionality is particularly useful to increase reliability
11435 on embedded devices, but also on laptops which might
11436 accidentally get powered on when carried in a backpack and
11437 whose boot stays stuck in a hard disk encryption passphrase
11438 question.
11439
b62a309a
ZJS
11440 * systemd-logind can be configured to also handle lid switch
11441 events even when the machine is docked or multiple displays
11442 are attached (HandleLidSwitchDocked= option).
11443
11444 * A helper binary and a service have been added which can be
11445 used to resume from hibernation in the initramfs. A
11446 generator will parse the resume= option on the kernel
81c7dd89 11447 command line to trigger resume.
b62a309a 11448
78b6b7ce
LP
11449 * A user console daemon systemd-consoled has been
11450 added. Currently, it is a preview, and will so far open a
11451 single terminal on each session of the user marked as
09077149 11452 Desktop=systemd-console.
b62a309a
ZJS
11453
11454 * Route metrics can be specified for DHCP routes added by
11455 systemd-networkd.
11456
ba8df74b 11457 * The SELinux context of socket-activated services can be set
78b6b7ce 11458 from the information provided by the networking stack
b62a309a
ZJS
11459 (SELinuxContextFromNet= option).
11460
11461 * Userspace firmware loading support has been removed and
11462 the minimum supported kernel version is thus bumped to 3.7.
11463
11464 * Timeout for udev workers has been increased from 1 to 3
11465 minutes, but a warning will be printed after 1 minute to
11466 help diagnose kernel modules that take a long time to load.
11467
78b6b7ce 11468 * Udev rules can now remove tags on devices with TAG-="foobar".
b62a309a 11469
4bdc60cb 11470 * systemd's readahead implementation has been removed. In many
f6d1de85 11471 circumstances it didn't give expected benefits even for
b62a309a 11472 rotational disk drives and was becoming less relevant in the
78b6b7ce
LP
11473 age of SSDs. As none of the developers has been using
11474 rotating media anymore, and nobody stepped up to actively
11475 maintain this component of systemd it has now been removed.
b62a309a 11476
c4ac9900 11477 * Swap units can use Options= to specify discard options.
b62a309a
ZJS
11478 Discard options specified for swaps in /etc/fstab are now
11479 respected.
11480
11481 * Docker containers are now detected as a separate type of
11482 virtualization.
11483
11484 * The Password Agent protocol gained support for queries where
ba8df74b 11485 the user input is shown, useful e.g. for user names.
78b6b7ce
LP
11486 systemd-ask-password gained a new --echo option to turn that
11487 on.
b62a309a 11488
e6c253e3
MS
11489 * The default sysctl.d/ snippets will now set:
11490
11491 net.core.default_qdisc = fq_codel
11492
ba8df74b
KS
11493 This selects Fair Queuing Controlled Delay as the default
11494 queuing discipline for network interfaces. fq_codel helps
e6c253e3
MS
11495 fight the network bufferbloat problem. It is believed to be
11496 a good default with no tuning required for most workloads.
11497 Downstream distributions may override this choice. On 10Gbit
11498 servers that do not do forwarding, "fq" may perform better.
11499 Systems without a good clocksource should use "pfifo_fast".
11500
4bdc60cb
LP
11501 * If kdbus is enabled during build a new option BusPolicy= is
11502 available for service units, that allows locking all service
11503 processes into a stricter bus policy, in order to limit
11504 access to various bus services, or even hide most of them
11505 from the service's view entirely.
11506
11507 * networkctl will now show the .network and .link file
11508 networkd has applied to a specific interface.
11509
11510 * sd-login gained a new API call sd_session_get_desktop() to
11511 query which desktop environment has been selected for a
11512 session.
11513
11514 * UNIX utmp support is now compile-time optional to support
11515 legacy-free systems.
11516
78b6b7ce
LP
11517 * systemctl gained two new commands "add-wants" and
11518 "add-requires" for pulling in units from specific targets
11519 easily.
11520
11521 * If the word "rescue" is specified on the kernel command line
11522 the system will now boot into rescue mode (aka
11523 rescue.target), which was previously available only by
11524 specifying "1" or "systemd.unit=rescue.target" on the kernel
11525 command line. This new kernel command line option nicely
11526 mirrors the already existing "emergency" kernel command line
11527 option.
11528
11529 * New kernel command line options mount.usr=, mount.usrflags=,
d4474c41 11530 mount.usrfstype= have been added that match root=, rootflags=,
78b6b7ce
LP
11531 rootfstype= but allow mounting a specific file system to
11532 /usr.
11533
f6d1de85 11534 * The $NOTIFY_SOCKET is now also passed to control processes of
78b6b7ce
LP
11535 services, not only the main process.
11536
11537 * This version reenables support for fsck's -l switch. This
11538 means at least version v2.25 of util-linux is required for
11539 operation, otherwise dead-locks on device nodes may
11540 occur. Again: you need to update util-linux to at least
11541 v2.25 when updating systemd to v217.
11542
3769415e
TT
11543 * The "multi-seat-x" tool has been removed from systemd, as
11544 its functionality has been integrated into X servers 1.16,
11545 and the tool is hence redundant. It is recommended to update
11546 display managers invoking this tool to simply invoke X
11547 directly from now on, again.
11548
fae9332b 11549 * Support for the new ALLOW_INTERACTIVE_AUTHORIZATION D-Bus
d35f51ea
ZJS
11550 message flag has been added for all of systemd's polkit
11551 authenticated method calls has been added. In particular this
11552 now allows optional interactive authorization via polkit for
11553 many of PID1's privileged operations such as unit file
11554 enabling and disabling.
fae9332b 11555
cfa1571b
LP
11556 * "udevadm hwdb --update" learnt a new switch "--usr" for
11557 placing the rebuilt hardware database in /usr instead of
11558 /etc. When used only hardware database entries stored in
11559 /usr will be used, and any user database entries in /etc are
11560 ignored. This functionality is useful for vendors to ship a
11561 pre-built database on systems where local configuration is
11562 unnecessary or unlikely.
11563
7e63dd10
LP
11564 * Calendar time specifications in .timer units now also
11565 understand the strings "semi-annually", "quarterly" and
ba8df74b 11566 "minutely" as shortcuts (in addition to the preexisting
1d3a473b 11567 "annually", "hourly", …).
7e63dd10 11568
d4474c41
TG
11569 * systemd-tmpfiles will now correctly create files in /dev
11570 at boot which are marked for creation only at boot. It is
11571 recommended to always create static device nodes with 'c!'
11572 and 'b!', so that they are created only at boot and not
11573 overwritten at runtime.
11574
3b187c5c
LP
11575 * When the watchdog logic is used for a service (WatchdogSec=)
11576 and the watchdog timeout is hit the service will now be
11577 terminated with SIGABRT (instead of just SIGTERM), in order
11578 to make sure a proper coredump and backtrace is
11579 generated. This ensures that hanging services will result in
11580 similar coredump/backtrace behaviour as services that hit a
11581 segmentation fault.
11582
4b08dd87
LP
11583 Contributions from: Andreas Henriksson, Andrei Borzenkov,
11584 Angus Gibson, Ansgar Burchardt, Ben Wolsieffer, Brandon L.
11585 Black, Christian Hesse, Cristian Rodríguez, Daniel Buch,
11586 Daniele Medri, Daniel Mack, Dan Williams, Dave Reisner, David
11587 Herrmann, David Sommerseth, David Strauss, Emil Renner
11588 Berthing, Eric Cook, Evangelos Foutras, Filipe Brandenburger,
11589 Gustavo Sverzut Barbieri, Hans de Goede, Harald Hoyer, Hristo
11590 Venev, Hugo Grostabussiat, Ivan Shapovalov, Jan Janssen, Jan
11591 Synacek, Jonathan Liu, Juho Son, Karel Zak, Kay Sievers, Klaus
11592 Purer, Koen Kooi, Lennart Poettering, Lukas Nykryn, Lukasz
11593 Skalski, Łukasz Stelmach, Mantas Mikulėnas, Marcel Holtmann,
11594 Marius Tessmann, Marko Myllynen, Martin Pitt, Michael Biebl,
11595 Michael Marineau, Michael Olbrich, Michael Scherer, Michal
11596 Schmidt, Michal Sekletar, Miroslav Lichvar, Patrik Flykt,
11597 Philippe De Swert, Piotr Drąg, Rahul Sundaram, Richard
11598 Weinberger, Robert Milasan, Ronny Chevalier, Ruben Kerkhof,
11599 Santiago Vila, Sergey Ptashnick, Simon McVittie, Sjoerd
11600 Simons, Stefan Brüns, Steven Allen, Steven Noonan, Susant
11601 Sahani, Sylvain Plantefève, Thomas Hindoe Paaboel Andersen,
11602 Timofey Titovets, Tobias Hunger, Tom Gundersen, Torstein
11603 Husebø, Umut Tezduyar Lindskog, WaLyong Cho, Zbigniew
13e92f39 11604 Jędrzejewski-Szmek
4b08dd87 11605
ccddd104 11606 — Berlin, 2014-10-28
4b08dd87 11607
b72ddf0f 11608CHANGES WITH 216:
b2ca0d63
LP
11609
11610 * timedated no longer reads NTP implementation unit names from
b72ddf0f 11611 /usr/lib/systemd/ntp-units.d/*.list. Alternative NTP
b2ca0d63
LP
11612 implementations should add a
11613
b72ddf0f 11614 Conflicts=systemd-timesyncd.service
b2ca0d63
LP
11615
11616 to their unit files to take over and replace systemd's NTP
11617 default functionality.
11618
11619 * systemd-sysusers gained a new line type "r" for configuring
11620 which UID/GID ranges to allocate system users/groups
11621 from. Lines of type "u" may now add an additional column
11622 that specifies the home directory for the system user to be
11623 created. Also, systemd-sysusers may now optionally read user
11624 information from STDIN instead of a file. This is useful for
11625 invoking it from RPM preinst scriptlets that need to create
11626 users before the first RPM file is installed since these
11627 files might need to be owned by them. A new
11628 %sysusers_create_inline RPM macro has been introduced to do
11629 just that. systemd-sysusers now updates the shadow files as
11630 well as the user/group databases, which should enhance
11631 compatibility with certain tools like grpck.
11632
d35f51ea
ZJS
11633 * A number of bus APIs of PID 1 now optionally consult polkit to
11634 permit access for otherwise unprivileged clients under certain
11635 conditions. Note that this currently doesn't support
11636 interactive authentication yet, but this is expected to be
11637 added eventually, too.
b2ca0d63
LP
11638
11639 * /etc/machine-info now has new fields for configuring the
11640 deployment environment of the machine, as well as the
11641 location of the machine. hostnamectl has been updated with
11642 new command to update these fields.
11643
11644 * systemd-timesyncd has been updated to automatically acquire
11645 NTP server information from systemd-networkd, which might
11646 have been discovered via DHCP.
11647
11648 * systemd-resolved now includes a caching DNS stub resolver
11649 and a complete LLMNR name resolution implementation. A new
daa05349
AB
11650 NSS module "nss-resolve" has been added which can be used
11651 instead of glibc's own "nss-dns" to resolve hostnames via
b2ca0d63
LP
11652 systemd-resolved. Hostnames, addresses and arbitrary RRs may
11653 be resolved via systemd-resolved D-Bus APIs. In contrast to
11654 the glibc internal resolver systemd-resolved is aware of
11655 multi-homed system, and keeps DNS server and caches separate
5f02e26c 11656 and per-interface. Queries are sent simultaneously on all
b2ca0d63
LP
11657 interfaces that have DNS servers configured, in order to
11658 properly handle VPNs and local LANs which might resolve
11659 separate sets of domain names. systemd-resolved may acquire
a1a4a25e 11660 DNS server information from systemd-networkd automatically,
b2ca0d63
LP
11661 which in turn might have discovered them via DHCP. A tool
11662 "systemd-resolve-host" has been added that may be used to
11663 query the DNS logic in resolved. systemd-resolved implements
11664 IDNA and automatically uses IDNA or UTF-8 encoding depending
11665 on whether classic DNS or LLMNR is used as transport. In the
11666 next releases we intend to add a DNSSEC and mDNS/DNS-SD
11667 implementation to systemd-resolved.
11668
11669 * A new NSS module nss-mymachines has been added, that
11670 automatically resolves the names of all local registered
11671 containers to their respective IP addresses.
11672
11673 * A new client tool "networkctl" for systemd-networkd has been
11674 added. It currently is entirely passive and will query
11675 networking configuration from udev, rtnetlink and networkd,
5f02e26c 11676 and present it to the user in a very friendly
b2ca0d63
LP
11677 way. Eventually, we hope to extend it to become a full
11678 control utility for networkd.
11679
11680 * .socket units gained a new DeferAcceptSec= setting that
11681 controls the kernels' TCP_DEFER_ACCEPT sockopt for
a8eaaee7 11682 TCP. Similarly, support for controlling TCP keep-alive
b2ca0d63
LP
11683 settings has been added (KeepAliveTimeSec=,
11684 KeepAliveIntervalSec=, KeepAliveProbes=). Also, support for
11685 turning off Nagle's algorithm on TCP has been added
11686 (NoDelay=).
11687
a1a4a25e 11688 * logind learned a new session type "web", for use in projects
b2ca0d63
LP
11689 like Cockpit which register web clients as PAM sessions.
11690
11691 * timer units with at least one OnCalendar= setting will now
46ae28d8 11692 be started only after time-sync.target has been
b2ca0d63
LP
11693 reached. This way they will not elapse before the system
11694 clock has been corrected by a local NTP client or
11695 similar. This is particular useful on RTC-less embedded
11696 machines, that come up with an invalid system clock.
11697
11698 * systemd-nspawn's --network-veth= switch should now result in
11699 stable MAC addresses for both the outer and the inner side
11700 of the link.
11701
11702 * systemd-nspawn gained a new --volatile= switch for running
11703 container instances with /etc or /var unpopulated.
11704
11705 * The kdbus client code has been updated to use the new Linux
11706 3.17 memfd subsystem instead of the old kdbus-specific one.
11707
11708 * systemd-networkd's DHCP client and server now support
01da80b1
LP
11709 FORCERENEW. There are also new configuration options to
11710 configure the vendor client identifier and broadcast mode
11711 for DHCP.
b2ca0d63
LP
11712
11713 * systemd will no longer inform the kernel about the current
11714 timezone, as this is necessarily incorrect and racy as the
11715 kernel has no understanding of DST and similar
11716 concepts. This hence means FAT timestamps will be always
11717 considered UTC, similar to what Android is already
11718 doing. Also, when the RTC is configured to the local time
11719 (rather than UTC) systemd will never synchronize back to it,
11720 as this might confuse Windows at a later boot.
11721
11722 * systemd-analyze gained a new command "verify" for offline
11723 validation of unit files.
11724
11725 * systemd-networkd gained support for a couple of additional
11726 settings for bonding networking setups. Also, the metric for
11727 statically configured routes may now be configured. For
11728 network interfaces where this is appropriate the peer IP
11729 address may now be configured.
11730
26568403
TG
11731 * systemd-networkd's DHCP client will no longer request
11732 broadcasting by default, as this tripped up some networks.
11733 For hardware where broadcast is required the feature should
11734 be switched back on using RequestBroadcast=yes.
11735
11736 * systemd-networkd will now set up IPv4LL addresses (when
11737 enabled) even if DHCP is configured successfully.
11738
11739 * udev will now default to respect network device names given
11740 by the kernel when the kernel indicates that these are
11741 predictable. This behavior can be tweaked by changing
11742 NamePolicy= in the relevant .link file.
11743
b2ca0d63
LP
11744 * A new library systemd-terminal has been added that
11745 implements full TTY stream parsing and rendering. This
11746 library is supposed to be used later on for implementing a
11747 full userspace VT subsystem, replacing the current kernel
11748 implementation.
11749
11750 * A new tool systemd-journal-upload has been added to push
11751 journal data to a remote system running
11752 systemd-journal-remote.
11753
11754 * journald will no longer forward all local data to another
11755 running syslog daemon. This change has been made because
11756 rsyslog (which appears to be the most commonly used syslog
11757 implementation these days) no longer makes use of this, and
11758 instead pulls the data out of the journal on its own. Since
5f02e26c 11759 forwarding the messages to a non-existent syslog server is
b2ca0d63
LP
11760 more expensive than we assumed we have now turned this
11761 off. If you run a syslog server that is not a recent rsyslog
11762 version, you have to turn this option on again
11763 (ForwardToSyslog= in journald.conf).
11764
11765 * journald now optionally supports the LZ4 compressor for
11766 larger journal fields. This compressor should perform much
11767 better than XZ which was the previous default.
11768
11769 * machinectl now shows the IP addresses of local containers,
11770 if it knows them, plus the interface name of the container.
11771
11772 * A new tool "systemd-escape" has been added that makes it
11773 easy to escape strings to build unit names and similar.
11774
11775 * sd_notify() messages may now include a new ERRNO= field
11776 which is parsed and collected by systemd and shown among the
11777 "systemctl status" output for a service.
11778
11779 * A new component "systemd-firstboot" has been added that
11780 queries the most basic systemd information (timezone,
a1a4a25e 11781 hostname, root password) interactively on first
b2ca0d63
LP
11782 boot. Alternatively it may also be used to provision these
11783 things offline on OS images installed into directories.
11784
01da80b1
LP
11785 * The default sysctl.d/ snippets will now set
11786
11787 net.ipv4.conf.default.promote_secondaries=1
11788
11789 This has the benefit of no flushing secondary IP addresses
11790 when primary addresses are removed.
11791
b2ca0d63
LP
11792 Contributions from: Ansgar Burchardt, Bastien Nocera, Colin
11793 Walters, Dan Dedrick, Daniel Buch, Daniel Korostil, Daniel
11794 Mack, Dan Williams, Dave Reisner, David Herrmann, Denis
11795 Kenzior, Eelco Dolstra, Eric Cook, Hannes Reinecke, Harald
11796 Hoyer, Hong Shick Pak, Hui Wang, Jean-André Santoni, Jóhann
11797 B. Guðmundsson, Jon Severinsson, Karel Zak, Kay Sievers, Kevin
11798 Wells, Lennart Poettering, Lukas Nykryn, Mantas Mikulėnas,
11799 Marc-Antoine Perennou, Martin Pitt, Michael Biebl, Michael
11800 Marineau, Michael Olbrich, Michal Schmidt, Michal Sekletar,
11801 Miguel Angel Ajo, Mike Gilbert, Olivier Brunel, Robert
11802 Schiele, Ronny Chevalier, Simon McVittie, Sjoerd Simons, Stef
11803 Walter, Steven Noonan, Susant Sahani, Tanu Kaskinen, Thomas
11804 Blume, Thomas Hindoe Paaboel Andersen, Timofey Titovets,
11805 Tobias Geerinckx-Rice, Tomasz Torcz, Tom Gundersen, Umut
11806 Tezduyar Lindskog, Zbigniew Jędrzejewski-Szmek
11807
ccddd104 11808 — Berlin, 2014-08-19
b72ddf0f 11809
3dff3e00 11810CHANGES WITH 215:
24a2bf4c
LP
11811
11812 * A new tool systemd-sysusers has been added. This tool
11813 creates system users and groups in /etc/passwd and
11814 /etc/group, based on static declarative system user/group
11815 definitions in /usr/lib/sysusers.d/. This is useful to
11816 enable factory resets and volatile systems that boot up with
11817 an empty /etc directory, and thus need system users and
11818 groups created during early boot. systemd now also ships
11819 with two default sysusers.d/ files for the most basic
11820 users and groups systemd and the core operating system
11821 require.
11822
11823 * A new tmpfiles snippet has been added that rebuilds the
11824 essential files in /etc on boot, should they be missing.
11825
11826 * A directive for ensuring automatic clean-up of
11827 /var/cache/man/ has been removed from the default
11828 configuration. This line should now be shipped by the man
11829 implementation. The necessary change has been made to the
11830 man-db implementation. Note that you need to update your man
11831 implementation to one that ships this line, otherwise no
11832 automatic clean-up of /var/cache/man will take place.
11833
11834 * A new condition ConditionNeedsUpdate= has been added that
11835 may conditionalize services to only run when /etc or /var
11836 are "older" than the vendor operating system resources in
11837 /usr. This is useful for reconstructing or updating /etc
11838 after an offline update of /usr or a factory reset, on the
11839 next reboot. Services that want to run once after such an
11840 update or reset should use this condition and order
11841 themselves before the new systemd-update-done.service, which
11842 will mark the two directories as fully updated. A number of
11843 service files have been added making use of this, to rebuild
11844 the udev hardware database, the journald message catalog and
11845 dynamic loader cache (ldconfig). The systemd-sysusers tool
11846 described above also makes use of this now. With this in
11847 place it is now possible to start up a minimal operating
ce1dde29 11848 system with /etc empty cleanly. For more information on the
24a2bf4c
LP
11849 concepts involved see this recent blog story:
11850
11851 http://0pointer.de/blog/projects/stateless.html
11852
11853 * A new system group "input" has been introduced, and all
11854 input device nodes get this group assigned. This is useful
11855 for system-level software to get access to input devices. It
3dff3e00
KS
11856 complements what is already done for "audio" and "video".
11857
24a2bf4c
LP
11858 * systemd-networkd learnt minimal DHCPv4 server support in
11859 addition to the existing DHCPv4 client support. It also
11860 learnt DHCPv6 client and IPv6 Router Solicitation client
11861 support. The DHCPv4 client gained support for static routes
11862 passed in from the server. Note that the [DHCPv4] section
11863 known in older systemd-networkd versions has been renamed to
11864 [DHCP] and is now also used by the DHCPv6 client. Existing
c7435cc9
LP
11865 .network files using settings of this section should be
11866 updated, though compatibility is maintained. Optionally, the
11867 client hostname may now be sent to the DHCP server.
24a2bf4c 11868
c7435cc9
LP
11869 * networkd gained support for vxlan virtual networks as well
11870 as tun/tap and dummy devices.
24a2bf4c
LP
11871
11872 * networkd gained support for automatic allocation of address
11873 ranges for interfaces from a system-wide pool of
11874 addresses. This is useful for dynamically managing a large
11875 number of interfaces with a single network configuration
11876 file. In particular this is useful to easily assign
11877 appropriate IP addresses to the veth links of a large number
11878 of nspawn instances.
11879
11880 * RPM macros for processing sysusers, sysctl and binfmt
11881 drop-in snippets at package installation time have been
11882 added.
11883
11884 * The /etc/os-release file should now be placed in
11885 /usr/lib/os-release. The old location is automatically
11886 created as symlink. /usr/lib is the more appropriate
11887 location of this file, since it shall actually describe the
11888 vendor operating system shipped in /usr, and not the
11889 configuration stored in /etc.
11890
11891 * .mount units gained a new boolean SloppyOptions= setting
11892 that maps to mount(8)'s -s option which enables permissive
11893 parsing of unknown mount options.
11894
11895 * tmpfiles learnt a new "L+" directive which creates a symlink
11896 but (unlike "L") deletes a pre-existing file first, should
11897 it already exist and not already be the correct
a8eaaee7 11898 symlink. Similarly, "b+", "c+" and "p+" directives have been
24a2bf4c
LP
11899 added as well, which create block and character devices, as
11900 well as fifos in the filesystem, possibly removing any
11901 pre-existing files of different types.
11902
11903 * For tmpfiles' "L", "L+", "C" and "C+" directives the final
11904 'argument' field (which so far specified the source to
ce1dde29 11905 symlink/copy the files from) is now optional. If omitted the
24a2bf4c
LP
11906 same file os copied from /usr/share/factory/ suffixed by the
11907 full destination path. This is useful for populating /etc
11908 with essential files, by copying them from vendor defaults
11909 shipped in /usr/share/factory/etc.
11910
11911 * A new command "systemctl preset-all" has been added that
11912 applies the service preset settings to all installed unit
11913 files. A new switch --preset-mode= has been added that
11914 controls whether only enable or only disable operations
11915 shall be executed.
11916
11917 * A new command "systemctl is-system-running" has been added
11918 that allows checking the overall state of the system, for
ce1dde29 11919 example whether it is fully up and running.
24a2bf4c
LP
11920
11921 * When the system boots up with an empty /etc, the equivalent
11922 to "systemctl preset-all" is executed during early boot, to
11923 make sure all default services are enabled after a factory
11924 reset.
11925
11926 * systemd now contains a minimal preset file that enables the
11927 most basic services systemd ships by default.
11928
11929 * Unit files' [Install] section gained a new DefaultInstance=
11930 field for defining the default instance to create if a
11931 template unit is enabled with no instance specified.
11932
11933 * A new passive target cryptsetup-pre.target has been added
11934 that may be used by services that need to make they run and
11935 finish before the first LUKS cryptographic device is set up.
11936
11937 * The /dev/loop-control and /dev/btrfs-control device nodes
11938 are now owned by the "disk" group by default, opening up
11939 access to this group.
11940
11941 * systemd-coredump will now automatically generate a
11942 stack trace of all core dumps taking place on the system,
11943 based on elfutils' libdw library. This stack trace is logged
11944 to the journal.
11945
11946 * systemd-coredump may now optionally store coredumps directly
11947 on disk (in /var/lib/systemd/coredump, possibly compressed),
11948 instead of storing them unconditionally in the journal. This
11949 mode is the new default. A new configuration file
11950 /etc/systemd/coredump.conf has been added to configure this
11951 and other parameters of systemd-coredump.
11952
11953 * coredumpctl gained a new "info" verb to show details about a
11954 specific coredump. A new switch "-1" has also been added
11955 that makes sure to only show information about the most
11956 recent entry instead of all entries. Also, as the tool is
11957 generally useful now the "systemd-" prefix of the binary
11958 name has been removed. Distributions that want to maintain
11959 compatibility with the old name should add a symlink from
11960 the old name to the new name.
11961
11962 * journald's SplitMode= now defaults to "uid". This makes sure
ce1dde29 11963 that unprivileged users can access their own coredumps with
24a2bf4c
LP
11964 coredumpctl without restrictions.
11965
11966 * New kernel command line options "systemd.wants=" (for
11967 pulling an additional unit during boot), "systemd.mask="
11968 (for masking a specific unit for the boot), and
11969 "systemd.debug-shell" (for enabling the debug shell on tty9)
11970 have been added. This is implemented in the new generator
11971 "systemd-debug-generator".
11972
11973 * systemd-nspawn will now by default filter a couple of
11974 syscalls for containers, among them those required for
11975 kernel module loading, direct x86 IO port access, swap
11976 management, and kexec. Most importantly though
11977 open_by_handle_at() is now prohibited for containers,
11978 closing a hole similar to a recently discussed vulnerability
11979 in docker regarding access to files on file hierarchies the
b938cb90
JE
11980 container should normally not have access to. Note that, for
11981 nspawn, we generally make no security claims anyway (and
24a2bf4c
LP
11982 this is explicitly documented in the man page), so this is
11983 just a fix for one of the most obvious problems.
11984
11985 * A new man page file-hierarchy(7) has been added that
11986 contains a minimized, modernized version of the file system
11987 layout systemd expects, similar in style to the FHS
c7435cc9
LP
11988 specification or hier(5). A new tool systemd-path(1) has
11989 been added to query many of these paths for the local
11990 machine and user.
24a2bf4c
LP
11991
11992 * Automatic time-based clean-up of $XDG_RUNTIME_DIR is no
11993 longer done. Since the directory now has a per-user size
11994 limit, and is cleaned on logout this appears unnecessary,
11995 in particular since this now brings the lifecycle of this
11996 directory closer in line with how IPC objects are handled.
11997
11998 * systemd.pc now exports a number of additional directories,
11999 including $libdir (which is useful to identify the library
12000 path for the primary architecture of the system), and a
12001 couple of drop-in directories.
12002
3058e017
TLSC
12003 * udev's predictable network interface names now use the dev_port
12004 sysfs attribute, introduced in linux 3.15 instead of dev_id to
12005 distinguish between ports of the same PCI function. dev_id should
12006 only be used for ports using the same HW address, hence the need
12007 for dev_port.
12008
c7435cc9
LP
12009 * machined has been updated to export the OS version of a
12010 container (read from /etc/os-release and
12011 /usr/lib/os-release) on the bus. This is now shown in
12012 "machinectl status" for a machine.
12013
12014 * A new service setting RestartForceExitStatus= has been
12015 added. If configured to a set of exit signals or process
12016 return values, the service will be restarted when the main
12017 daemon process exits with any of them, regardless of the
12018 Restart= setting.
12019
12020 * systemctl's -H switch for connecting to remote systemd
12021 machines has been extended so that it may be used to
12022 directly connect to a specific container on the
12023 host. "systemctl -H root@foobar:waldi" will now connect as
12024 user "root" to host "foobar", and then proceed directly to
12025 the container named "waldi". Note that currently you have to
12026 authenticate as user "root" for this to work, as entering
12027 containers is a privileged operation.
12028
12029 Contributions from: Andreas Henriksson, Benjamin Steinwender,
12030 Carl Schaefer, Christian Hesse, Colin Ian King, Cristian
12031 Rodríguez, Daniel Mack, Dave Reisner, David Herrmann, Eugene
12032 Yakubovich, Filipe Brandenburger, Frederic Crozat, Hristo
12033 Venev, Jan Engelhardt, Jonathan Boulle, Kay Sievers, Lennart
12034 Poettering, Luke Shumaker, Mantas Mikulėnas, Marc-Antoine
12035 Perennou, Marcel Holtmann, Michael Marineau, Michael Olbrich,
12036 Michał Bartoszkiewicz, Michal Sekletar, Patrik Flykt, Ronan Le
12037 Martret, Ronny Chevalier, Ruediger Oertel, Steven Noonan,
12038 Susant Sahani, Thadeu Lima de Souza Cascardo, Thomas Hindoe
12039 Paaboel Andersen, Tom Gundersen, Tom Hirst, Umut Tezduyar
12040 Lindskog, Uoti Urpala, Zbigniew Jędrzejewski-Szmek
12041
ccddd104 12042 — Berlin, 2014-07-03
c7435cc9 12043
4196a3ea
KS
12044CHANGES WITH 214:
12045
12046 * As an experimental feature, udev now tries to lock the
12047 disk device node (flock(LOCK_SH|LOCK_NB)) while it
12048 executes events for the disk or any of its partitions.
12049 Applications like partitioning programs can lock the
12050 disk device node (flock(LOCK_EX)) and claim temporary
12051 device ownership that way; udev will entirely skip all event
12052 handling for this disk and its partitions. If the disk
12053 was opened for writing, the close will trigger a partition
12054 table rescan in udev's "watch" facility, and if needed
71449caf 12055 synthesize "change" events for the disk and all its partitions.
8d0e0ddd 12056 This is now unconditionally enabled, and if it turns out to
4196a3ea 12057 cause major problems, we might turn it on only for specific
45df8656 12058 devices, or might need to disable it entirely. Device Mapper
4196a3ea
KS
12059 devices are excluded from this logic.
12060
04e91da2
LP
12061 * We temporarily dropped the "-l" switch for fsck invocations,
12062 since they collide with the flock() logic above. util-linux
12063 upstream has been changed already to avoid this conflict,
5238e957 12064 and we will re-add "-l" as soon as util-linux with this
04e91da2
LP
12065 change has been released.
12066
12067 * The dependency on libattr has been removed. Since a long
8d0e0ddd 12068 time, the extended attribute calls have moved to glibc, and
04e91da2
LP
12069 libattr is thus unnecessary.
12070
ce830873 12071 * Virtualization detection works without privileges now. This
04e91da2
LP
12072 means the systemd-detect-virt binary no longer requires
12073 CAP_SYS_PTRACE file capabilities, and our daemons can run
71449caf 12074 with fewer privileges.
04e91da2
LP
12075
12076 * systemd-networkd now runs under its own "systemd-network"
12077 user. It retains the CAP_NET_ADMIN, CAP_NET_BIND_SERVICE,
12078 CAP_NET_BROADCAST, CAP_NET_RAW capabilities though, but
12079 loses the ability to write to files owned by root this way.
12080
a8eaaee7 12081 * Similarly, systemd-resolved now runs under its own
04e91da2
LP
12082 "systemd-resolve" user with no capabilities remaining.
12083
a8eaaee7 12084 * Similarly, systemd-bus-proxyd now runs under its own
04e91da2
LP
12085 "systemd-bus-proxy" user with only CAP_IPC_OWNER remaining.
12086
12087 * systemd-networkd gained support for setting up "veth"
a8eaaee7 12088 virtual Ethernet devices for container connectivity, as well
04e91da2
LP
12089 as GRE and VTI tunnels.
12090
12091 * systemd-networkd will no longer automatically attempt to
12092 manually load kernel modules necessary for certain tunnel
8d0e0ddd 12093 transports. Instead, it is assumed the kernel loads them
04e91da2
LP
12094 automatically when required. This only works correctly on
12095 very new kernels. On older kernels, please consider adding
c54bed5d 12096 the kernel modules to /etc/modules-load.d/ as a work-around.
04e91da2 12097
cd14eda3 12098 * The resolv.conf file systemd-resolved generates has been
8d0e0ddd
JE
12099 moved to /run/systemd/resolve/. If you have a symlink from
12100 /etc/resolv.conf, it might be necessary to correct it.
cd14eda3 12101
ef392da6 12102 * Two new service settings, ProtectHome= and ProtectSystem=,
8d0e0ddd 12103 have been added. When enabled, they will make the user data
04e91da2
LP
12104 (such as /home) inaccessible or read-only and the system
12105 (such as /usr) read-only, for specific services. This allows
12106 very light-weight per-service sandboxing to avoid
12107 modifications of user data or system files from
12108 services. These two new switches have been enabled for all
12109 of systemd's long-running services, where appropriate.
12110
12111 * Socket units gained new SocketUser= and SocketGroup=
12112 settings to set the owner user and group of AF_UNIX sockets
12113 and FIFOs in the file system.
12114
8d0e0ddd 12115 * Socket units gained a new RemoveOnStop= setting. If enabled,
04e91da2
LP
12116 all FIFOS and sockets in the file system will be removed
12117 when the specific socket unit is stopped.
12118
12119 * Socket units gained a new Symlinks= setting. It takes a list
12120 of symlinks to create to file system sockets or FIFOs
45df8656 12121 created by the specific Unix sockets. This is useful to
de04bbdc 12122 manage symlinks to socket nodes with the same lifecycle as
04e91da2
LP
12123 the socket itself.
12124
12125 * The /dev/log socket and /dev/initctl FIFO have been moved to
12126 /run, and have been replaced by symlinks. This allows
12127 connecting to these facilities even if PrivateDevices=yes is
12128 used for a service (which makes /dev/log itself unavailable,
12129 but /run is left). This also has the benefit of ensuring
12130 that /dev only contains device nodes, directories and
12131 symlinks, and nothing else.
12132
12133 * sd-daemon gained two new calls sd_pid_notify() and
12134 sd_pid_notifyf(). They are similar to sd_notify() and
12135 sd_notifyf(), but allow overriding of the source PID of
12136 notification messages if permissions permit this. This is
12137 useful to send notify messages on behalf of a different
12138 process (for example, the parent process). The
12139 systemd-notify tool has been updated to make use of this
12140 when sending messages (so that notification messages now
12141 originate from the shell script invoking systemd-notify and
12142 not the systemd-notify process itself. This should minimize
12143 a race where systemd fails to associate notification
12144 messages to services when the originating process already
12145 vanished.
12146
12147 * A new "on-abnormal" setting for Restart= has been added. If
8d0e0ddd 12148 set, it will result in automatic restarts on all "abnormal"
04e91da2
LP
12149 reasons for a process to exit, which includes unclean
12150 signals, core dumps, timeouts and watchdog timeouts, but
12151 does not include clean and unclean exit codes or clean
12152 signals. Restart=on-abnormal is an alternative for
12153 Restart=on-failure for services that shall be able to
12154 terminate and avoid restarts on certain errors, by
12155 indicating so with an unclean exit code. Restart=on-failure
12156 or Restart=on-abnormal is now the recommended setting for
12157 all long-running services.
12158
12159 * If the InaccessibleDirectories= service setting points to a
12160 mount point (or if there are any submounts contained within
12161 it), it is now attempted to completely unmount it, to make
12162 the file systems truly unavailable for the respective
12163 service.
12164
12165 * The ReadOnlyDirectories= service setting and
12166 systemd-nspawn's --read-only parameter are now recursively
12167 applied to all submounts, too.
12168
12169 * Mount units may now be created transiently via the bus APIs.
12170
12171 * The support for SysV and LSB init scripts has been removed
12172 from the systemd daemon itself. Instead, it is now
12173 implemented as a generator that creates native systemd units
12174 from these scripts when needed. This enables us to remove a
12175 substantial amount of legacy code from PID 1, following the
12176 fact that many distributions only ship a very small number
12177 of LSB/SysV init scripts nowadays.
12178
cc98b302 12179 * Privileged Xen (dom0) domains are not considered
04e91da2
LP
12180 virtualization anymore by the virtualization detection
12181 logic. After all, they generally have unrestricted access to
71449caf 12182 the hardware and usually are used to manage the unprivileged
04e91da2
LP
12183 (domU) domains.
12184
12185 * systemd-tmpfiles gained a new "C" line type, for copying
12186 files or entire directories.
12187
12188 * systemd-tmpfiles "m" lines are now fully equivalent to "z"
8d0e0ddd
JE
12189 lines. So far, they have been non-globbing versions of the
12190 latter, and have thus been redundant. In future, it is
12191 recommended to only use "z". "m" has hence been removed
04e91da2
LP
12192 from the documentation, even though it stays supported.
12193
12194 * A tmpfiles snippet to recreate the most basic structure in
12195 /var has been added. This is enough to create the /var/run →
12196 /run symlink and create a couple of structural
12197 directories. This allows systems to boot up with an empty or
8d0e0ddd
JE
12198 volatile /var. Of course, while with this change, the core OS
12199 now is capable with dealing with a volatile /var, not all
04e91da2 12200 user services are ready for it. However, we hope that sooner
8d0e0ddd 12201 or later, many service daemons will be changed upstream so
04e91da2
LP
12202 that they are able to automatically create their necessary
12203 directories in /var at boot, should they be missing. This is
12204 the first step to allow state-less systems that only require
12205 the vendor image for /usr to boot.
12206
12207 * systemd-nspawn has gained a new --tmpfs= switch to mount an
12208 empty tmpfs instance to a specific directory. This is
12209 particularly useful for making use of the automatic
12210 reconstruction of /var (see above), by passing --tmpfs=/var.
12211
12212 * Access modes specified in tmpfiles snippets may now be
12213 prefixed with "~", which indicates that they shall be masked
daa05349 12214 by whether the existing file or directory is currently
8d0e0ddd 12215 writable, readable or executable at all. Also, if specified,
04e91da2
LP
12216 the sgid/suid/sticky bits will be masked for all
12217 non-directories.
12218
12219 * A new passive target unit "network-pre.target" has been
12220 added which is useful for services that shall run before any
12221 network is configured, for example firewall scripts.
12222
4c0d13bd
LP
12223 * The "floppy" group that previously owned the /dev/fd*
12224 devices is no longer used. The "disk" group is now used
12225 instead. Distributions should probably deprecate usage of
12226 this group.
12227
dc1d6c02
LP
12228 Contributions from: Camilo Aguilar, Christian Hesse, Colin Ian
12229 King, Cristian Rodríguez, Daniel Buch, Dave Reisner, David
12230 Strauss, Denis Tikhomirov, John, Jonathan Liu, Kay Sievers,
12231 Lennart Poettering, Mantas Mikulėnas, Mark Eichin, Ronny
12232 Chevalier, Susant Sahani, Thomas Blume, Thomas Hindoe Paaboel
12233 Andersen, Tom Gundersen, Umut Tezduyar Lindskog, Zbigniew
12234 Jędrzejewski-Szmek
12235
ccddd104 12236 — Berlin, 2014-06-11
dc1d6c02 12237
6936cd89
LP
12238CHANGES WITH 213:
12239
12240 * A new "systemd-timesyncd" daemon has been added for
69beda1f 12241 synchronizing the system clock across the network. It
6936cd89 12242 implements an SNTP client. In contrast to NTP
8d0e0ddd 12243 implementations such as chrony or the NTP reference server,
6936cd89 12244 this only implements a client side, and does not bother with
c9679c65
LP
12245 the full NTP complexity, focusing only on querying time from
12246 one remote server and synchronizing the local clock to
6936cd89 12247 it. Unless you intend to serve NTP to networked clients or
8d0e0ddd 12248 want to connect to local hardware clocks, this simple NTP
6936cd89
LP
12249 client should be more than appropriate for most
12250 installations. The daemon runs with minimal privileges, and
12251 has been hooked up with networkd to only operate when
12252 network connectivity is available. The daemon saves the
12253 current clock to disk every time a new NTP sync has been
12254 acquired, and uses this to possibly correct the system clock
69beda1f 12255 early at bootup, in order to accommodate for systems that
6936cd89 12256 lack an RTC such as the Raspberry Pi and embedded devices,
8d0e0ddd 12257 and to make sure that time monotonically progresses on these
c9679c65 12258 systems, even if it is not always correct. To make use of
8d0e0ddd 12259 this daemon, a new system user and group "systemd-timesync"
c9679c65 12260 needs to be created on installation of systemd.
6936cd89 12261
69beda1f
KS
12262 * The queue "seqnum" interface of libudev has been disabled, as
12263 it was generally incompatible with device namespacing as
6936cd89
LP
12264 sequence numbers of devices go "missing" if the devices are
12265 part of a different namespace.
12266
12267 * "systemctl list-timers" and "systemctl list-sockets" gained
12268 a --recursive switch for showing units of these types also
499b604b
ZJS
12269 for all local containers, similar in style to the already
12270 supported --recursive switch for "systemctl list-units".
6936cd89
LP
12271
12272 * A new RebootArgument= setting has been added for service
12273 units, which may be used to specify a kernel reboot argument
499b604b 12274 to use when triggering reboots with StartLimitAction=.
6936cd89
LP
12275
12276 * A new FailureAction= setting has been added for service
12277 units which may be used to specify an operation to trigger
499b604b 12278 when a service fails. This works similarly to
8d0e0ddd 12279 StartLimitAction=, but unlike it, controls what is done
6936cd89
LP
12280 immediately rather than only after several attempts to
12281 restart the service in question.
12282
12283 * hostnamed got updated to also expose the kernel name,
499b604b
ZJS
12284 release, and version on the bus. This is useful for
12285 executing commands like hostnamectl with the -H switch.
12286 systemd-analyze makes use of this to properly display
12287 details when running non-locally.
6936cd89
LP
12288
12289 * The bootchart tool can now show cgroup information in the
12290 graphs it generates.
12291
12292 * The CFS CPU quota cgroup attribute is now exposed for
12293 services. The new CPUQuota= switch has been added for this
12294 which takes a percentage value. Setting this will have the
12295 result that a service may never get more CPU time than the
12296 specified percentage, even if the machine is otherwise idle.
12297
12298 * systemd-networkd learned IPIP and SIT tunnel support.
12299
12300 * LSB init scripts exposing a dependency on $network will now
12301 get a dependency on network-online.target rather than simply
12302 network.target. This should bring LSB handling closer to
12303 what it was on SysV systems.
12304
12305 * A new fsck.repair= kernel option has been added to control
12306 how fsck shall deal with unclean file systems at boot.
12307
2ad98889
ZJS
12308 * The (.ini) configuration file parser will now silently ignore
12309 sections whose names begin with "X-". This may be used to maintain
12310 application-specific extension sections in unit files.
6936cd89
LP
12311
12312 * machined gained a new API to query the IP addresses of
12313 registered containers. "machinectl status" has been updated
12314 to show these addresses in its output.
12315
12316 * A new call sd_uid_get_display() has been added to the
12317 sd-login APIs for querying the "primary" session of a
12318 user. The "primary" session of the user is elected from the
12319 user's sessions and generally a graphical session is
12320 preferred over a text one.
12321
12322 * A minimal systemd-resolved daemon has been added. It
12323 currently simply acts as a companion to systemd-networkd and
12324 manages resolv.conf based on per-interface DNS
12325 configuration, possibly supplied via DHCP. In the long run
12326 we hope to extend this into a local DNSSEC enabled DNS and
12327 mDNS cache.
12328
68dd0956
TG
12329 * The systemd-networkd-wait-online tool is now enabled by
12330 default. It will delay network-online.target until a network
12331 connection has been configured. The tool primarily integrates
12332 with networkd, but will also make a best effort to make sense
12333 of network configuration performed in some other way.
12334
6936cd89 12335 * Two new service options StartupCPUShares= and
499b604b 12336 StartupBlockIOWeight= have been added that work similarly to
6936cd89 12337 CPUShares= and BlockIOWeight= however only apply during
69beda1f 12338 system startup. This is useful to prioritize certain services
6936cd89
LP
12339 differently during bootup than during normal runtime.
12340
8e7acf67
LP
12341 * hostnamed has been changed to prefer the statically
12342 configured hostname in /etc/hostname (unless set to
12343 'localhost' or empty) over any dynamic one supplied by
8d0e0ddd 12344 dhcp. With this change, the rules for picking the hostname
8e7acf67
LP
12345 match more closely the rules of other configuration settings
12346 where the local administrator's configuration in /etc always
12347 overrides any other settings.
12348
5238e957 12349 Contributions from: Ali H. Caliskan, Alison Chaiken, Bas van
6936cd89
LP
12350 den Berg, Brandon Philips, Cristian Rodríguez, Daniel Buch,
12351 Dan Kilman, Dave Reisner, David Härdeman, David Herrmann,
12352 David Strauss, Dimitris Spingos, Djalal Harouni, Eelco
12353 Dolstra, Evan Nemerson, Florian Albrechtskirchinger, Greg
12354 Kroah-Hartman, Harald Hoyer, Holger Hans Peter Freyther, Jan
12355 Engelhardt, Jani Nikula, Jason St. John, Jeffrey Clark,
12356 Jonathan Boulle, Kay Sievers, Lennart Poettering, Lukas
12357 Nykryn, Lukasz Skalski, Łukasz Stelmach, Mantas Mikulėnas,
8e7acf67
LP
12358 Marcel Holtmann, Martin Pitt, Matthew Monaco, Michael
12359 Marineau, Michael Olbrich, Michal Sekletar, Mike Gilbert, Nis
12360 Martensen, Patrik Flykt, Philip Lorenz, poma, Ray Strode,
12361 Reyad Attiyat, Robert Milasan, Scott Thrasher, Stef Walter,
12362 Steven Siloti, Susant Sahani, Tanu Kaskinen, Thomas Bächler,
12363 Thomas Hindoe Paaboel Andersen, Tom Gundersen, Umut Tezduyar
12364 Lindskog, WaLyong Cho, Will Woods, Zbigniew
6936cd89
LP
12365 Jędrzejewski-Szmek
12366
ccddd104 12367 — Beijing, 2014-05-28
6936cd89 12368
51c61cda
LP
12369CHANGES WITH 212:
12370
12371 * When restoring the screen brightness at boot, stay away from
12372 the darkest setting or from the lowest 5% of the available
12373 range, depending on which is the larger value of both. This
12374 should effectively protect the user from rebooting into a
12375 black screen, should the brightness have been set to minimum
12376 by accident.
12377
12378 * sd-login gained a new sd_machine_get_class() call to
12379 determine the class ("vm" or "container") of a machine
12380 registered with machined.
12381
12382 * sd-login gained new calls
12383 sd_peer_get_{session,owner_uid,unit,user_unit,slice,machine_name}(),
12384 to query the identity of the peer of a local AF_UNIX
499b604b 12385 connection. They operate similarly to their sd_pid_get_xyz()
51c61cda
LP
12386 counterparts.
12387
12388 * PID 1 will now maintain a system-wide system state engine
12389 with the states "starting", "running", "degraded",
12390 "maintenance", "stopping". These states are bound to system
12391 startup, normal runtime, runtime with at least one failed
12392 service, rescue/emergency mode and system shutdown. This
12393 state is shown in the "systemctl status" output when no unit
12394 name is passed. It is useful to determine system state, in
12395 particularly when doing so for many systems or containers at
12396 once.
12397
12398 * A new command "list-machines" has been added to "systemctl"
12399 that lists all local OS containers and shows their system
12400 state (see above), if systemd runs inside of them.
12401
12402 * systemctl gained a new "-r" switch to recursively enumerate
12403 units on all local containers, when used with the
12404 "list-unit" command (which is the default one that is
12405 executed when no parameters are specified).
12406
12407 * The GPT automatic partition discovery logic will now honour
12408 two GPT partition flags: one may be set on a partition to
12409 cause it to be mounted read-only, and the other may be set
12410 on a partition to ignore it during automatic discovery.
12411
12412 * Two new GPT type UUIDs have been added for automatic root
70a44afe 12413 partition discovery, for 32-bit and 64-bit ARM. This is not
51c61cda
LP
12414 particularly useful for discovering the root directory on
12415 these architectures during bare-metal boots (since UEFI is
12416 not common there), but still very useful to allow booting of
12417 ARM disk images in nspawn with the -i option.
12418
12419 * MAC addresses of interfaces created with nspawn's
12420 --network-interface= switch will now be generated from the
12421 machine name, and thus be stable between multiple invocations
12422 of the container.
12423
12424 * logind will now automatically remove all IPC objects owned
12425 by a user if she or he fully logs out. This makes sure that
12426 users who are logged out cannot continue to consume IPC
12427 resources. This covers SysV memory, semaphores and message
12428 queues as well as POSIX shared memory and message
de04bbdc 12429 queues. Traditionally, SysV and POSIX IPC had no lifecycle
b8bde116
JE
12430 limits. With this functionality, that is corrected. This may
12431 be turned off by using the RemoveIPC= switch of logind.conf.
51c61cda
LP
12432
12433 * The systemd-machine-id-setup and tmpfiles tools gained a
12434 --root= switch to operate on a specific root directory,
12435 instead of /.
12436
12437 * journald can now forward logged messages to the TTYs of all
12438 logged in users ("wall"). This is the default for all
12439 emergency messages now.
12440
12441 * A new tool systemd-journal-remote has been added to stream
12442 journal log messages across the network.
12443
12444 * /sys/fs/cgroup/ is now mounted read-only after all cgroup
12445 controller trees are mounted into it. Note that the
12446 directories mounted beneath it are not read-only. This is a
12447 security measure and is particularly useful because glibc
12448 actually includes a search logic to pick any tmpfs it can
12449 find to implement shm_open() if /dev/shm is not available
12450 (which it might very well be in namespaced setups).
12451
12452 * machinectl gained a new "poweroff" command to cleanly power
12453 down a local OS container.
12454
12455 * The PrivateDevices= unit file setting will now also drop the
12456 CAP_MKNOD capability from the capability bound set, and
12457 imply DevicePolicy=closed.
12458
12459 * PrivateDevices=, PrivateNetwork= and PrivateTmp= is now used
12460 comprehensively on all long-running systemd services where
12461 this is appropriate.
12462
12463 * systemd-udevd will now run in a disassociated mount
b8bde116 12464 namespace. To mount directories from udev rules, make sure to
51c61cda
LP
12465 pull in mount units via SYSTEMD_WANTS properties.
12466
12467 * The kdbus support gained support for uploading policy into
12468 the kernel. sd-bus gained support for creating "monitoring"
12469 connections that can eavesdrop into all bus communication
12470 for debugging purposes.
12471
12472 * Timestamps may now be specified in seconds since the UNIX
12473 epoch Jan 1st, 1970 by specifying "@" followed by the value
12474 in seconds.
12475
12476 * Native tcpwrap support in systemd has been removed. tcpwrap
12477 is old code, not really maintained anymore and has serious
12478 shortcomings, and better options such as firewalls
12479 exist. For setups that require tcpwrap usage, please
12480 consider invoking your socket-activated service via tcpd,
12481 like on traditional inetd.
12482
12483 * A new system.conf configuration option
12484 DefaultTimerAccuracySec= has been added that controls the
12485 default AccuracySec= setting of .timer units.
12486
b8bde116 12487 * Timer units gained a new WakeSystem= switch. If enabled,
51c61cda
LP
12488 timers configured this way will cause the system to resume
12489 from system suspend (if the system supports that, which most
12490 do these days).
12491
b8bde116 12492 * Timer units gained a new Persistent= switch. If enabled,
51c61cda
LP
12493 timers configured this way will save to disk when they have
12494 been last triggered. This information is then used on next
12495 reboot to possible execute overdue timer events, that
d28315e4
JE
12496 could not take place because the system was powered off.
12497 This enables simple anacron-like behaviour for timer units.
51c61cda
LP
12498
12499 * systemctl's "list-timers" will now also list the time a
12500 timer unit was last triggered in addition to the next time
12501 it will be triggered.
12502
12503 * systemd-networkd will now assign predictable IPv4LL
12504 addresses to its local interfaces.
12505
12506 Contributions from: Brandon Philips, Daniel Buch, Daniel Mack,
12507 Dave Reisner, David Herrmann, Gerd Hoffmann, Greg
12508 Kroah-Hartman, Hendrik Brueckner, Jason St. John, Josh
12509 Triplett, Kay Sievers, Lennart Poettering, Marc-Antoine
12510 Perennou, Michael Marineau, Michael Olbrich, Miklos Vajna,
12511 Patrik Flykt, poma, Sebastian Thorarensen, Thomas Bächler,
12512 Thomas Hindoe Paaboel Andersen, Tomasz Torcz, Tom Gundersen,
12513 Umut Tezduyar Lindskog, Wieland Hoffmann, Zbigniew
12514 Jędrzejewski-Szmek
12515
ccddd104 12516 — Berlin, 2014-03-25
51c61cda 12517
699b6b34
LP
12518CHANGES WITH 211:
12519
12520 * A new unit file setting RestrictAddressFamilies= has been
12521 added to restrict which socket address families unit
12522 processes gain access to. This takes address family names
12523 like "AF_INET" or "AF_UNIX", and is useful to minimize the
12524 attack surface of services via exotic protocol stacks. This
12525 is built on seccomp system call filters.
12526
12527 * Two new unit file settings RuntimeDirectory= and
12528 RuntimeDirectoryMode= have been added that may be used to
12529 manage a per-daemon runtime directories below /run. This is
12530 an alternative for setting up directory permissions with
12531 tmpfiles snippets, and has the advantage that the runtime
12532 directory's lifetime is bound to the daemon runtime and that
12533 the daemon starts up with an empty directory each time. This
12534 is particularly useful when writing services that drop
f1721625 12535 privileges using the User= or Group= setting.
699b6b34
LP
12536
12537 * The DeviceAllow= unit setting now supports globbing for
12538 matching against device group names.
12539
12540 * The systemd configuration file system.conf gained new
12541 settings DefaultCPUAccounting=, DefaultBlockIOAccounting=,
12542 DefaultMemoryAccounting= to globally turn on/off accounting
12543 for specific resources (cgroups) for all units. These
22e7062d 12544 settings may still be overridden individually in each unit
699b6b34
LP
12545 though.
12546
12547 * systemd-gpt-auto-generator is now able to discover /srv and
12548 root partitions in addition to /home and swap partitions. It
12549 also supports LUKS-encrypted partitions now. With this in
b8bde116 12550 place, automatic discovery of partitions to mount following
699b6b34 12551 the Discoverable Partitions Specification
a794a4d8 12552 (https://systemd.io/DISCOVERABLE_PARTITIONS/)
699b6b34
LP
12553 is now a lot more complete. This allows booting without
12554 /etc/fstab and without root= on the kernel command line on
b8bde116 12555 systems prepared appropriately.
699b6b34
LP
12556
12557 * systemd-nspawn gained a new --image= switch which allows
12558 booting up disk images and Linux installations on any block
12559 device that follow the Discoverable Partitions Specification
12560 (see above). This means that installations made with
12561 appropriately updated installers may now be started and
12562 deployed using container managers, completely
12563 unmodified. (We hope that libvirt-lxc will add support for
12564 this feature soon, too.)
12565
12566 * systemd-nspawn gained a new --network-macvlan= setting to
12567 set up a private macvlan interface for the
499b604b 12568 container. Similarly, systemd-networkd gained a new
699b6b34
LP
12569 Kind=macvlan setting in .netdev files.
12570
12571 * systemd-networkd now supports configuring local addresses
12572 using IPv4LL.
12573
12574 * A new tool systemd-network-wait-online has been added to
12575 synchronously wait for network connectivity using
12576 systemd-networkd.
12577
12578 * The sd-bus.h bus API gained a new sd_bus_track object for
de04bbdc 12579 tracking the lifecycle of bus peers. Note that sd-bus.h is
699b6b34
LP
12580 still not a public API though (unless you specify
12581 --enable-kdbus on the configure command line, which however
12582 voids your warranty and you get no API stability guarantee).
12583
12584 * The $XDG_RUNTIME_DIR runtime directories for each user are
12585 now individual tmpfs instances, which has the benefit of
12586 introducing separate pools for each user, with individual
4ef6e535 12587 size limits, and thus making sure that unprivileged clients
699b6b34
LP
12588 can no longer negatively impact the system or other users by
12589 filling up their $XDG_RUNTIME_DIR. A new logind.conf setting
12590 RuntimeDirectorySize= has been introduced that allows
12591 controlling the default size limit for all users. It
12592 defaults to 10% of the available physical memory. This is no
12593 replacement for quotas on tmpfs though (which the kernel
12594 still does not support), as /dev/shm and /tmp are still
4ef6e535 12595 shared resources used by both the system and unprivileged
699b6b34
LP
12596 users.
12597
12598 * logind will now automatically turn off automatic suspending
12599 on laptop lid close when more than one display is
12600 connected. This was previously expected to be implemented
12601 individually in desktop environments (such as GNOME),
12602 however has been added to logind now, in order to fix a
12603 boot-time race where a desktop environment might not have
12604 been started yet and thus not been able to take an inhibitor
12605 lock at the time where logind already suspends the system
12606 due to a closed lid.
12607
12608 * logind will now wait at least 30s after each system
12609 suspend/resume cycle, and 3min after system boot before
12610 suspending the system due to a closed laptop lid. This
12611 should give USB docking stations and similar enough time to
4ef6e535 12612 be probed and configured after system resume and boot in
699b6b34
LP
12613 order to then act as suspend blocker.
12614
12615 * systemd-run gained a new --property= setting which allows
12616 initialization of resource control properties (and others)
12617 for the created scope or service unit. Example: "systemd-run
12618 --property=BlockIOWeight=10 updatedb" may be used to run
12619 updatedb at a low block IO scheduling weight.
12620
12621 * systemd-run's --uid=, --gid=, --setenv=, --setenv= switches
12622 now also work in --scope mode.
12623
12624 * When systemd is compiled with kdbus support, basic support
12625 for enforced policies is now in place. (Note that enabling
12626 kdbus still voids your warranty and no API compatibility
12627 promises are made.)
12628
12629 Contributions from: Andrey Borzenkov, Ansgar Burchardt, Armin
12630 K., Daniel Mack, Dave Reisner, David Herrmann, Djalal Harouni,
12631 Harald Hoyer, Henrik Grindal Bakken, Jasper St. Pierre, Kay
12632 Sievers, Kieran Clancy, Lennart Poettering, Lukas Nykryn,
12633 Mantas Mikulėnas, Marcel Holtmann, Mark Oteiza, Martin Pitt,
12634 Mike Gilbert, Peter Rajnoha, poma, Samuli Suominen, Stef
12635 Walter, Susant Sahani, Tero Roponen, Thomas Andersen, Thomas
12636 Bächler, Thomas Hindoe Paaboel Andersen, Tomasz Torcz, Tom
12637 Gundersen, Umut Tezduyar Lindskog, Uoti Urpala, Zachary Cook,
12638 Zbigniew Jędrzejewski-Szmek
12639
ccddd104 12640 — Berlin, 2014-03-12
699b6b34 12641
43c71255
LP
12642CHANGES WITH 210:
12643
12644 * systemd will now relabel /dev after loading the SMACK policy
12645 according to SMACK rules.
12646
67dd87c5 12647 * A new unit file option AppArmorProfile= has been added to
43c71255
LP
12648 set the AppArmor profile for the processes of a unit.
12649
12650 * A new condition check ConditionArchitecture= has been added
12651 to conditionalize units based on the system architecture, as
12652 reported by uname()'s "machine" field.
12653
12654 * systemd-networkd now supports matching on the system
38b38500 12655 virtualization, architecture, kernel command line, hostname
43c71255
LP
12656 and machine ID.
12657
ed28905e 12658 * logind is now a lot more aggressive when suspending the
43c71255 12659 machine due to a closed laptop lid. Instead of acting only
b8bde116 12660 on the lid close action, it will continuously watch the lid
43c71255
LP
12661 status and act on it. This is useful for laptops where the
12662 power button is on the outside of the chassis so that it can
ed28905e 12663 be reached without opening the lid (such as the Lenovo
b8bde116 12664 Yoga). On those machines, logind will now immediately
ed28905e 12665 re-suspend the machine if the power button has been
43c71255
LP
12666 accidentally pressed while the laptop was suspended and in a
12667 backpack or similar.
12668
12669 * logind will now watch SW_DOCK switches and inhibit reaction
12670 to the lid switch if it is pressed. This means that logind
d27893ef 12671 will not suspend the machine anymore if the lid is closed
949138cc 12672 and the system is docked, if the laptop supports SW_DOCK
43c71255
LP
12673 notifications via the input layer. Note that ACPI docking
12674 stations do not generate this currently. Also note that this
12675 logic is usually not fully sufficient and Desktop
12676 Environments should take a lid switch inhibitor lock when an
12677 external display is connected, as systemd will not watch
12678 this on its own.
12679
12680 * nspawn will now make use of the devices cgroup controller by
12681 default, and only permit creation of and access to the usual
12682 API device nodes like /dev/null or /dev/random, as well as
12683 access to (but not creation of) the pty devices.
12684
12685 * We will now ship a default .network file for
12686 systemd-networkd that automatically configures DHCP for
12687 network interfaces created by nspawn's --network-veth or
12688 --network-bridge= switches.
12689
12690 * systemd will now understand the usual M, K, G, T suffixes
12691 according to SI conventions (i.e. to the base 1000) when
12692 referring to throughput and hardware metrics. It will stay
12693 with IEC conventions (i.e. to the base 1024) for software
12694 metrics, according to what is customary according to
12695 Wikipedia. We explicitly document which base applies for
12696 each configuration option.
12697
6b000af4
LP
12698 * The DeviceAllow= setting in unit files now supports a syntax to
12699 allow-list an entire group of devices node majors at once, based on
12700 the /proc/devices listing. For example, with the string "char-pts",
12701 it is now possible to allow-list all current and future pseudo-TTYs
12702 at once.
43c71255
LP
12703
12704 * sd-event learned a new "post" event source. Event sources of
12705 this type are triggered by the dispatching of any event
12706 source of a type that is not "post". This is useful for
12707 implementing clean-up and check event sources that are
12708 triggered by other work being done in the program.
12709
12710 * systemd-networkd is no longer statically enabled, but uses
12711 the usual [Install] sections so that it can be
12712 enabled/disabled using systemctl. It still is enabled by
12713 default however.
12714
b8bde116 12715 * When creating a veth interface pair with systemd-nspawn, the
43c71255
LP
12716 host side will now be prefixed with "vb-" if
12717 --network-bridge= is used, and with "ve-" if --network-veth
b8bde116 12718 is used. This way, it is easy to distinguish these cases on
43c71255
LP
12719 the host, for example to apply different configuration to
12720 them with systemd-networkd.
12721
d27893ef
LP
12722 * The compatibility libraries for libsystemd-journal.so,
12723 libsystem-id128.so, libsystemd-login.so and
12724 libsystemd-daemon.so do not make use of IFUNC
b8bde116 12725 anymore. Instead, we now build libsystemd.so multiple times
d27893ef
LP
12726 under these alternative names. This means that the footprint
12727 is drastically increased, but given that these are
b8bde116 12728 transitional compatibility libraries, this should not matter
d27893ef
LP
12729 much. This change has been made necessary to support the ARM
12730 platform for these compatibility libraries, as the ARM
d28315e4 12731 toolchain is not really at the same level as the toolchain
ed28905e 12732 for other architectures like x86 and does not support
d27893ef
LP
12733 IFUNC. Please make sure to use --enable-compat-libs only
12734 during a transitional period!
12735
f26ad321
ZJS
12736 * The .include syntax has been deprecated and is not documented
12737 anymore. Drop-in files in .d directories should be used instead.
12738
13b28d82 12739 Contributions from: Andreas Fuchs, Armin K., Colin Walters,
43c71255
LP
12740 Daniel Mack, Dave Reisner, David Herrmann, Djalal Harouni,
12741 Holger Schurig, Jason A. Donenfeld, Jason St. John, Jasper
12742 St. Pierre, Kay Sievers, Lennart Poettering, Łukasz Stelmach,
12743 Marcel Holtmann, Michael Scherer, Michal Sekletar, Mike
12744 Gilbert, Samuli Suominen, Thomas Bächler, Thomas Hindoe
12745 Paaboel Andersen, Tom Gundersen, Umut Tezduyar Lindskog,
12746 Zbigniew Jędrzejewski-Szmek
12747
ccddd104 12748 — Berlin, 2014-02-24
43c71255 12749
e49b5aad
LP
12750CHANGES WITH 209:
12751
12752 * A new component "systemd-networkd" has been added that can
12753 be used to configure local network interfaces statically or
8b7d0494
JSJ
12754 via DHCP. It is capable of bringing up bridges, VLANs, and
12755 bonding. Currently, no hook-ups for interactive network
4670e9d5 12756 configuration are provided. Use this for your initrd,
8b7d0494
JSJ
12757 container, embedded, or server setup if you need a simple,
12758 yet powerful, network configuration solution. This
4670e9d5 12759 configuration subsystem is quite nifty, as it allows wildcard
1e190502 12760 hotplug matching in interfaces. For example, with a single
4670e9d5 12761 configuration snippet, you can configure that all Ethernet
1e190502
ZJS
12762 interfaces showing up are automatically added to a bridge,
12763 or similar. It supports link-sensing and more.
e49b5aad
LP
12764
12765 * A new tool "systemd-socket-proxyd" has been added which can
4c2413bf 12766 act as a bidirectional proxy for TCP sockets. This is
e49b5aad
LP
12767 useful for adding socket activation support to services that
12768 do not actually support socket activation, including virtual
4c2413bf 12769 machines and the like.
e49b5aad
LP
12770
12771 * Add a new tool to save/restore rfkill state on
12772 shutdown/boot.
12773
8b7d0494
JSJ
12774 * Save/restore state of keyboard backlights in addition to
12775 display backlights on shutdown/boot.
e49b5aad
LP
12776
12777 * udev learned a new SECLABEL{} construct to label device
12778 nodes with a specific security label when they appear. For
4c2413bf 12779 now, only SECLABEL{selinux} is supported, but the syntax is
e49b5aad
LP
12780 prepared for additional security frameworks.
12781
12782 * udev gained a new scheme to configure link-level attributes
12783 from files in /etc/systemd/network/*.link. These files can
8b7d0494 12784 match against MAC address, device path, driver name and type,
4c2413bf 12785 and will apply attributes like the naming policy, link speed,
8b7d0494 12786 MTU, duplex settings, Wake-on-LAN settings, MAC address, MAC
1d3a473b 12787 address assignment policy (randomized, …).
e49b5aad 12788
dfb08b05
ZJS
12789 * The configuration of network interface naming rules for
12790 "permanent interface names" has changed: a new NamePolicy=
12791 setting in the [Link] section of .link files determines the
a8eaaee7 12792 priority of possible naming schemes (onboard, slot, MAC,
dfb08b05
ZJS
12793 path). The default value of this setting is determined by
12794 /usr/lib/net/links/99-default.link. Old
12795 80-net-name-slot.rules udev configuration file has been
12796 removed, so local configuration overriding this file should
ce830873 12797 be adapted to override 99-default.link instead.
dfb08b05 12798
e49b5aad 12799 * When the User= switch is used in a unit file, also
4c2413bf 12800 initialize $SHELL= based on the user database entry.
e49b5aad
LP
12801
12802 * systemd no longer depends on libdbus. All communication is
12803 now done with sd-bus, systemd's low-level bus library
12804 implementation.
12805
12806 * kdbus support has been added to PID 1 itself. When kdbus is
4c2413bf 12807 enabled, this causes PID 1 to set up the system bus and
e49b5aad
LP
12808 enable support for a new ".busname" unit type that
12809 encapsulates bus name activation on kdbus. It works a little
12810 bit like ".socket" units, except for bus names. A new
12811 generator has been added that converts classic dbus1 service
12812 activation files automatically into native systemd .busname
12813 and .service units.
12814
12815 * sd-bus: add a light-weight vtable implementation that allows
12816 defining objects on the bus with a simple static const
12817 vtable array of its methods, signals and properties.
12818
8b7d0494 12819 * systemd will not generate or install static dbus
e49b5aad 12820 introspection data anymore to /usr/share/dbus-1/interfaces,
1e190502 12821 as the precise format of these files is unclear, and
e49b5aad
LP
12822 nothing makes use of it.
12823
12824 * A proxy daemon is now provided to proxy clients connecting
12825 via classic D-Bus AF_UNIX sockets to kdbus, to provide full
12826 compatibility with classic D-Bus.
12827
12828 * A bus driver implementation has been added that supports the
12829 classic D-Bus bus driver calls on kdbus, also for
12830 compatibility purposes.
12831
12832 * A new API "sd-event.h" has been added that implements a
12833 minimal event loop API built around epoll. It provides a
12834 couple of features that direct epoll usage is lacking:
b9761003 12835 prioritization of events, scales to large numbers of timer
e49b5aad
LP
12836 events, per-event timer slack (accuracy), system-wide
12837 coalescing of timer events, exit handlers, watchdog
12838 supervision support using systemd's sd_notify() API, child
12839 process handling.
12840
12841 * A new API "sd-rntl.h" has been added that provides an API
12842 around the route netlink interface of the kernel, similar in
12843 style to "sd-bus.h".
12844
7e95eda5
PF
12845 * A new API "sd-dhcp-client.h" has been added that provides a
12846 small DHCPv4 client-side implementation. This is used by
e49b5aad
LP
12847 "systemd-networkd".
12848
4c2413bf 12849 * There is a new kernel command line option
8b7d0494
JSJ
12850 "systemd.restore_state=0|1". When set to "0", none of the
12851 systemd tools will restore saved runtime state to hardware
12852 devices. More specifically, the rfkill and backlight states
12853 are not restored.
e49b5aad
LP
12854
12855 * The FsckPassNo= compatibility option in mount/service units
12856 has been removed. The fstab generator will now add the
12857 necessary dependencies automatically, and does not require
12858 PID1's support for that anymore.
12859
8b7d0494 12860 * journalctl gained a new switch, --list-boots, that lists
e49b5aad
LP
12861 recent boots with their times and boot IDs.
12862
12863 * The various tools like systemctl, loginctl, timedatectl,
1d3a473b 12864 busctl, systemd-run, … have gained a new switch "-M" to
e49b5aad
LP
12865 connect to a specific, local OS container (as direct
12866 connection, without requiring SSH). This works on any
12867 container that is registered with machined, such as those
12868 created by libvirt-lxc or nspawn.
12869
12870 * systemd-run and systemd-analyze also gained support for "-H"
4c2413bf 12871 to connect to remote hosts via SSH. This is particularly
8b7d0494
JSJ
12872 useful for systemd-run because it enables queuing of jobs
12873 onto remote systems.
e49b5aad
LP
12874
12875 * machinectl gained a new command "login" to open a getty
12876 login in any local container. This works with any container
12877 that is registered with machined (such as those created by
8e420494 12878 libvirt-lxc or nspawn), and which runs systemd inside.
e49b5aad
LP
12879
12880 * machinectl gained a new "reboot" command that may be used to
12881 trigger a reboot on a specific container that is registered
12882 with machined. This works on any container that runs an init
12883 system of some kind.
12884
12885 * systemctl gained a new "list-timers" command to print a nice
12886 listing of installed timer units with the times they elapse
12887 next.
12888
12889 * Alternative reboot() parameters may now be specified on the
12890 "systemctl reboot" command line and are passed to the
12891 reboot() system call.
12892
12893 * systemctl gained a new --job-mode= switch to configure the
12894 mode to queue a job with. This is a more generic version of
8b7d0494 12895 --fail, --irreversible, and --ignore-dependencies, which are
e49b5aad
LP
12896 still available but not advertised anymore.
12897
e49b5aad
LP
12898 * /etc/systemd/system.conf gained new settings to configure
12899 various default timeouts of units, as well as the default
b9761003 12900 start limit interval and burst. These may still be overridden
e49b5aad
LP
12901 within each Unit.
12902
270f1624
LP
12903 * PID1 will now export on the bus profile data of the security
12904 policy upload process (such as the SELinux policy upload to
8e420494 12905 the kernel).
e49b5aad 12906
4670e9d5 12907 * journald: when forwarding logs to the console, include
1e190502
ZJS
12908 timestamps (following the setting in
12909 /sys/module/printk/parameters/time).
e49b5aad
LP
12910
12911 * OnCalendar= in timer units now understands the special
12912 strings "yearly" and "annually". (Both are equivalent)
12913
12914 * The accuracy of timer units is now configurable with the new
12915 AccuracySec= setting. It defaults to 1min.
12916
12917 * A new dependency type JoinsNamespaceOf= has been added that
12918 allows running two services within the same /tmp and network
12919 namespace, if PrivateNetwork= or PrivateTmp= are used.
12920
12921 * A new command "cat" has been added to systemctl. It outputs
12922 the original unit file of a unit, and concatenates the
1e190502
ZJS
12923 contents of additional "drop-in" unit file snippets, so that
12924 the full configuration is shown.
e49b5aad
LP
12925
12926 * systemctl now supports globbing on the various "list-xyz"
12927 commands, like "list-units" or "list-sockets", as well as on
1e190502
ZJS
12928 those commands which take multiple unit names.
12929
12930 * journalctl's --unit= switch gained support for globbing.
e49b5aad
LP
12931
12932 * All systemd daemons now make use of the watchdog logic so
12933 that systemd automatically notices when they hang.
12934
4c2413bf 12935 * If the $container_ttys environment variable is set,
e49b5aad
LP
12936 getty-generator will automatically spawn a getty for each
12937 listed tty. This is useful for container managers to request
12938 login gettys to be spawned on as many ttys as needed.
12939
12940 * %h, %s, %U specifier support is not available anymore when
12941 used in unit files for PID 1. This is because NSS calls are
12942 not safe from PID 1. They stay available for --user
12943 instances of systemd, and as special case for the root user.
12944
e49b5aad
LP
12945 * loginctl gained a new "--no-legend" switch to turn off output
12946 of the legend text.
12947
12948 * The "sd-login.h" API gained three new calls:
12949 sd_session_is_remote(), sd_session_get_remote_user(),
12950 sd_session_get_remote_host() to query information about
12951 remote sessions.
12952
8e420494
LP
12953 * The udev hardware database now also carries vendor/product
12954 information of SDIO devices.
e49b5aad
LP
12955
12956 * The "sd-daemon.h" API gained a new sd_watchdog_enabled() to
12957 determine whether watchdog notifications are requested by
12958 the system manager.
12959
1e190502 12960 * Socket-activated per-connection services now include a
e49b5aad
LP
12961 short description of the connection parameters in the
12962 description.
12963
4c2413bf 12964 * tmpfiles gained a new "--boot" option. When this is not used,
e49b5aad 12965 only lines where the command character is not suffixed with
4670e9d5 12966 "!" are executed. When this option is specified, those
1e190502
ZJS
12967 options are executed too. This partitions tmpfiles
12968 directives into those that can be safely executed at any
12969 time, and those which should be run only at boot (for
12970 example, a line that creates /run/nologin).
e49b5aad 12971
c0c5af00 12972 * A new API "sd-resolve.h" has been added which provides a simple
38b38500 12973 asynchronous wrapper around glibc NSS hostname resolution
e49b5aad 12974 calls, such as getaddrinfo(). In contrast to glibc's
4c2413bf
JE
12975 getaddrinfo_a(), it does not use signals. In contrast to most
12976 other asynchronous name resolution libraries, this one does
12977 not reimplement DNS, but reuses NSS, so that alternate
38b38500 12978 hostname resolution systems continue to work, such as mDNS,
8b7d0494 12979 LDAP, etc. This API is based on libasyncns, but it has been
e49b5aad
LP
12980 cleaned up for inclusion in systemd.
12981
6300b3ec
LP
12982 * The APIs "sd-journal.h", "sd-login.h", "sd-id128.h",
12983 "sd-daemon.h" are no longer found in individual libraries
12984 libsystemd-journal.so, libsystemd-login.so,
12985 libsystemd-id128.so, libsystemd-daemon.so. Instead, we have
8b7d0494
JSJ
12986 merged them into a single library, libsystemd.so, which
12987 provides all symbols. The reason for this is cyclic
e49b5aad 12988 dependencies, as these libraries tend to use each other's
d28315e4 12989 symbols. So far, we have managed to workaround that by linking
6300b3ec
LP
12990 a copy of a good part of our code into each of these
12991 libraries again and again, which, however, makes certain
12992 things hard to do, like sharing static variables. Also, it
12993 substantially increases footprint. With this change, there
12994 is only one library for the basic APIs systemd
12995 provides. Also, "sd-bus.h", "sd-memfd.h", "sd-event.h",
12996 "sd-rtnl.h", "sd-resolve.h", "sd-utf8.h" are found in this
12997 library as well, however are subject to the --enable-kdbus
12998 switch (see below). Note that "sd-dhcp-client.h" is not part
12999 of this library (this is because it only consumes, never
13000 provides, services of/to other APIs). To make the transition
8b7d0494 13001 easy from the separate libraries to the unified one, we
4c2413bf 13002 provide the --enable-compat-libs compile-time switch which
e49b5aad
LP
13003 will generate stub libraries that are compatible with the
13004 old ones but redirect all calls to the new one.
13005
8b7d0494 13006 * All of the kdbus logic and the new APIs "sd-bus.h",
e49b5aad 13007 "sd-memfd.h", "sd-event.h", "sd-rtnl.h", "sd-resolve.h",
8b7d0494
JSJ
13008 and "sd-utf8.h" are compile-time optional via the
13009 "--enable-kdbus" switch, and they are not compiled in by
13010 default. To make use of kdbus, you have to explicitly enable
4c2413bf 13011 the switch. Note however, that neither the kernel nor the
e49b5aad
LP
13012 userspace API for all of this is considered stable yet. We
13013 want to maintain the freedom to still change the APIs for
4c2413bf 13014 now. By specifying this build-time switch, you acknowledge
e49b5aad 13015 that you are aware of the instability of the current
ad42cf73
KS
13016 APIs.
13017
13018 * Also, note that while kdbus is pretty much complete,
e49b5aad 13019 it lacks one thing: proper policy support. This means you
8b7d0494 13020 can build a fully working system with all features; however,
4c2413bf
JE
13021 it will be highly insecure. Policy support will be added in
13022 one of the next releases, at the same time that we will
13023 declare the APIs stable.
e49b5aad 13024
81c7dd89 13025 * When the kernel command line argument "kdbus" is specified,
ad42cf73 13026 systemd will automatically load the kdbus.ko kernel module. At
8b7d0494 13027 this stage of development, it is only useful for testing kdbus
ad42cf73 13028 and should not be used in production. Note: if "--enable-kdbus"
8b7d0494 13029 is specified, and the kdbus.ko kernel module is available, and
ad42cf73
KS
13030 "kdbus" is added to the kernel command line, the entire system
13031 runs with kdbus instead of dbus-daemon, with the above mentioned
13032 problem of missing the system policy enforcement. Also a future
13033 version of kdbus.ko or a newer systemd will not be compatible with
13034 each other, and will unlikely be able to boot the machine if only
13035 one of them is updated.
13036
e49b5aad 13037 * systemctl gained a new "import-environment" command which
4c2413bf 13038 uploads the caller's environment (or parts thereof) into the
e49b5aad
LP
13039 service manager so that it is inherited by services started
13040 by the manager. This is useful to upload variables like
13041 $DISPLAY into the user service manager.
13042
13043 * A new PrivateDevices= switch has been added to service units
13044 which allows running a service with a namespaced /dev
13045 directory that does not contain any device nodes for
4c2413bf 13046 physical devices. More specifically, it only includes devices
8b7d0494 13047 such as /dev/null, /dev/urandom, and /dev/zero which are API
e49b5aad
LP
13048 entry points.
13049
13050 * logind has been extended to support behaviour like VT
13051 switching on seats that do not support a VT. This makes
13052 multi-session available on seats that are not the first seat
13053 (seat0), and on systems where kernel support for VTs has
8b7d0494 13054 been disabled at compile-time.
e49b5aad
LP
13055
13056 * If a process holds a delay lock for system sleep or shutdown
1e190502 13057 and fails to release it in time, we will now log its
e49b5aad
LP
13058 identity. This makes it easier to identify processes that
13059 cause slow suspends or power-offs.
13060
1e190502
ZJS
13061 * When parsing /etc/crypttab, support for a new key-slot=
13062 option as supported by Debian is added. It allows indicating
13063 which LUKS slot to use on disk, speeding up key loading.
e49b5aad 13064
000b1ba5 13065 * The sd_journal_sendv() API call has been checked and
1e190502
ZJS
13066 officially declared to be async-signal-safe so that it may
13067 be invoked from signal handlers for logging purposes.
e49b5aad
LP
13068
13069 * Boot-time status output is now enabled automatically after a
13070 short timeout if boot does not progress, in order to give
8e420494 13071 the user an indication what she or he is waiting for.
1e190502
ZJS
13072
13073 * The boot-time output has been improved to show how much time
13074 remains until jobs expire.
e49b5aad
LP
13075
13076 * The KillMode= switch in service units gained a new possible
8b7d0494 13077 value "mixed". If set, and the unit is shut down, then the
e49b5aad 13078 initial SIGTERM signal is sent only to the main daemon
8e420494 13079 process, while the following SIGKILL signal is sent to
e49b5aad
LP
13080 all remaining processes of the service.
13081
4c2413bf
JE
13082 * When a scope unit is registered, a new property "Controller"
13083 may be set. If set to a valid bus name, systemd will send a
e49b5aad
LP
13084 RequestStop() signal to this name when it would like to shut
13085 down the scope. This may be used to hook manager logic into
13086 the shutdown logic of scope units. Also, scope units may now
8b7d0494 13087 be put in a special "abandoned" state, in which case the
e49b5aad
LP
13088 manager process which created them takes no further
13089 responsibilities for it.
13090
1e190502 13091 * When reading unit files, systemd will now verify
e49b5aad
LP
13092 the access mode of these files, and warn about certain
13093 suspicious combinations. This has been added to make it
13094 easier to track down packaging bugs where unit files are
13095 marked executable or world-writable.
13096
13097 * systemd-nspawn gained a new "--setenv=" switch to set
8b7d0494 13098 container-wide environment variables. The similar option in
1e190502
ZJS
13099 systemd-activate was renamed from "--environment=" to
13100 "--setenv=" for consistency.
e49b5aad
LP
13101
13102 * systemd-nspawn has been updated to create a new kdbus domain
13103 for each container that is invoked, thus allowing each
b9761003 13104 container to have its own set of system and user buses,
8b7d0494 13105 independent of the host.
e49b5aad
LP
13106
13107 * systemd-nspawn gained a new --drop-capability= switch to run
13108 the container with less capabilities than the default. Both
b9761003 13109 --drop-capability= and --capability= now take the special
e49b5aad
LP
13110 string "all" for dropping or keeping all capabilities.
13111
13112 * systemd-nspawn gained new switches for executing containers
13113 with specific SELinux labels set.
13114
13115 * systemd-nspawn gained a new --quiet switch to not generate
13116 any additional output but the container's own console
13117 output.
13118
13119 * systemd-nspawn gained a new --share-system switch to run a
13120 container without PID namespacing enabled.
13121
13122 * systemd-nspawn gained a new --register= switch to control
1e190502 13123 whether the container is registered with systemd-machined or
8e420494 13124 not. This is useful for containers that do not run full
e49b5aad
LP
13125 OS images, but only specific apps.
13126
13127 * systemd-nspawn gained a new --keep-unit which may be used
8b7d0494 13128 when invoked as the only program from a service unit, and
e49b5aad 13129 results in registration of the unit service itself in
1e190502 13130 systemd-machined, instead of a newly opened scope unit.
e49b5aad
LP
13131
13132 * systemd-nspawn gained a new --network-interface= switch for
13133 moving arbitrary interfaces to the container. The new
4c2413bf 13134 --network-veth switch creates a virtual Ethernet connection
8b7d0494
JSJ
13135 between host and container. The new --network-bridge=
13136 switch then allows assigning the host side of this virtual
13137 Ethernet connection to a bridge device.
e49b5aad 13138
6afc95b7
LP
13139 * systemd-nspawn gained a new --personality= switch for
13140 setting the kernel personality for the container. This is
70a44afe 13141 useful when running a 32-bit container on a 64-bit host. A
b8bde116
JE
13142 similar option Personality= is now also available for service
13143 units to use.
6afc95b7 13144
e49b5aad
LP
13145 * logind will now also track a "Desktop" identifier for each
13146 session which encodes the desktop environment of it. This is
13147 useful for desktop environments that want to identify
13148 multiple running sessions of itself easily.
13149
13150 * A new SELinuxContext= setting for service units has been
13151 added that allows setting a specific SELinux execution
13152 context for a service.
13153
13154 * Most systemd client tools will now honour $SYSTEMD_LESS for
13155 settings of the "less" pager. By default, these tools will
8b7d0494
JSJ
13156 override $LESS to allow certain operations to work, such as
13157 jump-to-the-end. With $SYSTEMD_LESS, it is possible to
e49b5aad
LP
13158 influence this logic.
13159
13160 * systemd's "seccomp" hook-up has been changed to make use of
13161 the libseccomp library instead of using its own
13162 implementation. This has benefits for portability among
13163 other things.
13164
4c2413bf 13165 * For usage together with SystemCallFilter=, a new
8b7d0494 13166 SystemCallErrorNumber= setting has been introduced that
b8bde116
JE
13167 allows configuration of a system error number to be returned
13168 on filtered system calls, instead of immediately killing the
e49b5aad
LP
13169 process. Also, SystemCallArchitectures= has been added to
13170 limit access to system calls of a particular architecture
13171 (in order to turn off support for unused secondary
4c2413bf 13172 architectures). There is also a global
8b7d0494 13173 SystemCallArchitectures= setting in system.conf now to turn
e49b5aad
LP
13174 off support for non-native system calls system-wide.
13175
210054d7
KS
13176 * systemd requires a kernel with a working name_to_handle_at(),
13177 please see the kernel config requirements in the README file.
13178
e49b5aad
LP
13179 Contributions from: Adam Williamson, Alex Jia, Anatol Pomozov,
13180 Ansgar Burchardt, AppleBloom, Auke Kok, Bastien Nocera,
13181 Chengwei Yang, Christian Seiler, Colin Guthrie, Colin Walters,
13182 Cristian Rodríguez, Daniel Buch, Daniele Medri, Daniel J
13183 Walsh, Daniel Mack, Dan McGee, Dave Reisner, David Coppa,
13184 David Herrmann, David Strauss, Djalal Harouni, Dmitry Pisklov,
13185 Elia Pinto, Florian Weimer, George McCollister, Goffredo
13186 Baroncelli, Greg Kroah-Hartman, Hendrik Brueckner, Igor
13187 Zhbanov, Jan Engelhardt, Jan Janssen, Jason A. Donenfeld,
13188 Jason St. John, Jasper St. Pierre, Jóhann B. Guðmundsson, Jose
13189 Ignacio Naranjo, Karel Zak, Kay Sievers, Kristian Høgsberg,
13190 Lennart Poettering, Lubomir Rintel, Lukas Nykryn, Lukasz
13191 Skalski, Łukasz Stelmach, Luke Shumaker, Mantas Mikulėnas,
13192 Marc-Antoine Perennou, Marcel Holtmann, Marcos Felipe Rasia de
13193 Mello, Marko Myllynen, Martin Pitt, Matthew Monaco, Michael
13194 Marineau, Michael Scherer, Michał Górny, Michal Sekletar,
13195 Michele Curti, Oleksii Shevchuk, Olivier Brunel, Patrik Flykt,
13196 Pavel Holica, Raudi, Richard Marko, Ronny Chevalier, Sébastien
13197 Luttringer, Sergey Ptashnick, Shawn Landden, Simon Peeters,
13198 Stefan Beller, Susant Sahani, Sylvain Plantefeve, Sylvia Else,
13199 Tero Roponen, Thomas Bächler, Thomas Hindoe Paaboel Andersen,
13200 Tom Gundersen, Umut Tezduyar Lindskog, Unai Uribarri, Václav
13201 Pavlín, Vincent Batts, WaLyong Cho, William Giokas, Yang
13202 Zhiyong, Yin Kangkai, Yuxuan Shui, Zbigniew Jędrzejewski-Szmek
13203
ccddd104 13204 — Berlin, 2014-02-20
e49b5aad 13205
cd4010b3
LP
13206CHANGES WITH 208:
13207
13208 * logind has gained support for facilitating privileged input
13209 and drm device access for unprivileged clients. This work is
13210 useful to allow Wayland display servers (and similar
13211 programs, such as kmscon) to run under the user's ID and
13212 access input and drm devices which are normally
13213 protected. When this is used (and the kernel is new enough)
13214 logind will "mute" IO on the file descriptors passed to
13215 Wayland as long as it is in the background and "unmute" it
13216 if it returns into the foreground. This allows secure
13217 session switching without allowing background sessions to
13218 eavesdrop on input and display data. This also introduces
13219 session switching support if VT support is turned off in the
13220 kernel, and on seats that are not seat0.
13221
13222 * A new kernel command line option luks.options= is understood
06b643e7 13223 now which allows specifying LUKS options for usage for LUKS
cd4010b3
LP
13224 encrypted partitions specified with luks.uuid=.
13225
13226 * tmpfiles.d(5) snippets may now use specifier expansion in
13227 path names. More specifically %m, %b, %H, %v, are now
13228 replaced by the local machine id, boot id, hostname, and
13229 kernel version number.
13230
13231 * A new tmpfiles.d(5) command "m" has been introduced which
13232 may be used to change the owner/group/access mode of a file
d28315e4 13233 or directory if it exists, but do nothing if it does not.
cd4010b3
LP
13234
13235 * This release removes high-level support for the
13236 MemorySoftLimit= cgroup setting. The underlying kernel
13237 cgroup attribute memory.soft_limit= is currently badly
13238 designed and likely to be removed from the kernel API in its
d28315e4 13239 current form, hence we should not expose it for now.
cd4010b3
LP
13240
13241 * The memory.use_hierarchy cgroup attribute is now enabled for
13242 all cgroups systemd creates in the memory cgroup
13243 hierarchy. This option is likely to be come the built-in
cc98b302
TH
13244 default in the kernel anyway, and the non-hierarchical mode
13245 never made much sense in the intrinsically hierarchical
cd4010b3
LP
13246 cgroup system.
13247
13248 * A new field _SYSTEMD_SLICE= is logged along with all journal
13249 messages containing the slice a message was generated
13250 from. This is useful to allow easy per-customer filtering of
13251 logs among other things.
13252
13253 * systemd-journald will no longer adjust the group of journal
13254 files it creates to the "systemd-journal" group. Instead we
13255 rely on the journal directory to be owned by the
13256 "systemd-journal" group, and its setgid bit set, so that the
13257 kernel file system layer will automatically enforce that
13258 journal files inherit this group assignment. The reason for
13259 this change is that we cannot allow NSS look-ups from
13260 journald which would be necessary to resolve
13261 "systemd-journal" to a numeric GID, because this might
13262 create deadlocks if NSS involves synchronous queries to
13263 other daemons (such as nscd, or sssd) which in turn are
13264 logging clients of journald and might block on it, which
13265 would then dead lock. A tmpfiles.d(5) snippet included in
13266 systemd will make sure the setgid bit and group are
13267 properly set on the journal directory if it exists on every
13268 boot. However, we recommend adjusting it manually after
13269 upgrades too (or from RPM scriptlets), so that the change is
13270 not delayed until next reboot.
13271
13272 * Backlight and random seed files in /var/lib/ have moved into
13273 the /var/lib/systemd/ directory, in order to centralize all
13274 systemd generated files in one directory.
13275
13276 * Boot time performance measurements (as displayed by
13277 "systemd-analyze" for example) will now read ACPI 5.0 FPDT
13278 performance information if that's available to determine how
13279 much time BIOS and boot loader initialization required. With
13280 a sufficiently new BIOS you hence no longer need to boot
13281 with Gummiboot to get access to such information.
13282
13283 Contributions from: Andrey Borzenkov, Chen Jie, Colin Walters,
13284 Cristian Rodríguez, Dave Reisner, David Herrmann, David
13285 Mackey, David Strauss, Eelco Dolstra, Evan Callicoat, Gao
13286 feng, Harald Hoyer, Jimmie Tauriainen, Kay Sievers, Lennart
13287 Poettering, Lukas Nykryn, Mantas Mikulėnas, Martin Pitt,
13288 Michael Scherer, Michał Górny, Mike Gilbert, Patrick McCarty,
13289 Sebastian Ott, Tom Gundersen, Zbigniew Jędrzejewski-Szmek
13290
ccddd104 13291 — Berlin, 2013-10-02
cd4010b3 13292
4f0be680
LP
13293CHANGES WITH 207:
13294
13295 * The Restart= option for services now understands a new
f3a165b0 13296 on-watchdog setting, which will restart the service
4f0be680
LP
13297 automatically if the service stops sending out watchdog keep
13298 alive messages (as configured with WatchdogSec=).
13299
13300 * The getty generator (which is responsible for bringing up a
13301 getty on configured serial consoles) will no longer only
13302 start a getty on the primary kernel console but on all
13303 others, too. This makes the order in which console= is
13304 specified on the kernel command line less important.
13305
13306 * libsystemd-logind gained a new sd_session_get_vt() call to
13307 retrieve the VT number of a session.
13308
13309 * If the option "tries=0" is set for an entry of /etc/crypttab
13310 its passphrase is queried indefinitely instead of any
13311 maximum number of tries.
13312
13313 * If a service with a configure PID file terminates its PID
13314 file will now be removed automatically if it still exists
13315 afterwards. This should put an end to stale PID files.
13316
13317 * systemd-run will now also take relative binary path names
13318 for execution and no longer insists on absolute paths.
13319
13320 * InaccessibleDirectories= and ReadOnlyDirectories= now take
13321 paths that are optionally prefixed with "-" to indicate that
d28315e4 13322 it should not be considered a failure if they do not exist.
4f0be680 13323
f3a165b0
KS
13324 * journalctl -o (and similar commands) now understands a new
13325 output mode "short-precise", it is similar to "short" but
4f0be680
LP
13326 shows timestamps with usec accuracy.
13327
13328 * The option "discard" (as known from Debian) is now
13329 synonymous to "allow-discards" in /etc/crypttab. In fact,
387abf80 13330 "discard" is preferred now (since it is easier to remember
4f0be680
LP
13331 and type).
13332
f3a165b0 13333 * Some licensing clean-ups were made, so that more code is now
4f0be680
LP
13334 LGPL-2.1 licensed than before.
13335
13336 * A minimal tool to save/restore the display backlight
13337 brightness across reboots has been added. It will store the
f3a165b0 13338 backlight setting as late as possible at shutdown, and
4f0be680
LP
13339 restore it as early as possible during reboot.
13340
13341 * A logic to automatically discover and enable home and swap
13342 partitions on GPT disks has been added. With this in place
13343 /etc/fstab becomes optional for many setups as systemd can
13344 discover certain partitions located on the root disk
13345 automatically. Home partitions are recognized under their
13346 GPT type ID 933ac7e12eb44f13b8440e14e2aef915. Swap
13347 partitions are recognized under their GPT type ID
13348 0657fd6da4ab43c484e50933c84b4f4f.
13349
13350 * systemd will no longer pass any environment from the kernel
13351 or initrd to system services. If you want to set an
13352 environment for all services, do so via the kernel command
13353 line systemd.setenv= assignment.
13354
387abf80
LP
13355 * The systemd-sysctl tool no longer natively reads the file
13356 /etc/sysctl.conf. If desired, the file should be symlinked
13357 from /etc/sysctl.d/99-sysctl.conf. Apart from providing
13358 legacy support by a symlink rather than built-in code, it
13359 also makes the otherwise hidden order of application of the
13360 different files visible. (Note that this partly reverts to a
13361 pre-198 application order of sysctl knobs!)
04bf3c1a 13362
4f0be680
LP
13363 * The "systemctl set-log-level" and "systemctl dump" commands
13364 have been moved to systemd-analyze.
13365
13366 * systemd-run learned the new --remain-after-exit switch,
13367 which causes the scope unit not to be cleaned up
13368 automatically after the process terminated.
13369
13370 * tmpfiles learned a new --exclude-prefix= switch to exclude
13371 certain paths from operation.
13372
13373 * journald will now automatically flush all messages to disk
f47ad593
ZJS
13374 as soon as a message at the log level CRIT, ALERT or EMERG
13375 is received.
4f0be680
LP
13376
13377 Contributions from: Andrew Cook, Brandon Philips, Christian
13378 Hesse, Christoph Junghans, Colin Walters, Daniel Schaal,
13379 Daniel Wallace, Dave Reisner, David Herrmann, Gao feng, George
13380 McCollister, Giovanni Campagna, Hannes Reinecke, Harald Hoyer,
13381 Herczeg Zsolt, Holger Hans Peter Freyther, Jan Engelhardt,
13382 Jesper Larsen, Kay Sievers, Khem Raj, Lennart Poettering,
13383 Lukas Nykryn, Maciej Wereski, Mantas Mikulėnas, Marcel
13384 Holtmann, Martin Pitt, Michael Biebl, Michael Marineau,
13385 Michael Scherer, Michael Stapelberg, Michal Sekletar, Michał
13386 Górny, Olivier Brunel, Ondrej Balaz, Ronny Chevalier, Shawn
13387 Landden, Steven Hiscocks, Thomas Bächler, Thomas Hindoe
13388 Paaboel Andersen, Tom Gundersen, Umut Tezduyar, WANG Chao,
13389 William Giokas, Zbigniew Jędrzejewski-Szmek
13390
ccddd104 13391 — Berlin, 2013-09-13
4f0be680 13392
408f281b
LP
13393CHANGES WITH 206:
13394
13395 * The documentation has been updated to cover the various new
13396 concepts introduced with 205.
13397
13398 * Unit files now understand the new %v specifier which
13399 resolves to the kernel version string as returned by "uname
13400 -r".
13401
13402 * systemctl now supports filtering the unit list output by
13403 load state, active state and sub state, using the new
33b521be 13404 --state= parameter.
408f281b
LP
13405
13406 * "systemctl status" will now show the results of the
13407 condition checks (like ConditionPathExists= and similar) of
13408 the last start attempts of the unit. They are also logged to
13409 the journal.
13410
13411 * "journalctl -b" may now be used to look for boot output of a
13412 specific boot. Try "journalctl -b -1" for the previous boot,
13413 but the syntax is substantially more powerful.
13414
13415 * "journalctl --show-cursor" has been added which prints the
13416 cursor string the last shown log line. This may then be used
13417 with the new "journalctl --after-cursor=" switch to continue
13418 browsing logs from that point on.
13419
13420 * "journalctl --force" may now be used to force regeneration
13421 of an FSS key.
13422
251cc819
LP
13423 * Creation of "dead" device nodes has been moved from udev
13424 into kmod and tmpfiles. Previously, udev would read the kmod
13425 databases to pre-generate dead device nodes based on meta
13426 information contained in kernel modules, so that these would
13427 be auto-loaded on access rather then at boot. As this
d28315e4 13428 does not really have much to do with the exposing actual
251cc819
LP
13429 kernel devices to userspace this has always been slightly
13430 alien in the udev codebase. Following the new scheme kmod
13431 will now generate a runtime snippet for tmpfiles from the
13432 module meta information and it now is tmpfiles' job to the
13433 create the nodes. This also allows overriding access and
13434 other parameters for the nodes using the usual tmpfiles
13435 facilities. As side effect this allows us to remove the
13436 CAP_SYS_MKNOD capability bit from udevd entirely.
13437
13438 * logind's device ACLs may now be applied to these "dead"
13439 devices nodes too, thus finally allowing managed access to
ce830873 13440 devices such as /dev/snd/sequencer without loading the
251cc819 13441 backing module right-away.
408f281b
LP
13442
13443 * A new RPM macro has been added that may be used to apply
13444 tmpfiles configuration during package installation.
13445
13446 * systemd-detect-virt and ConditionVirtualization= now can
13447 detect User-Mode-Linux machines (UML).
13448
251cc819
LP
13449 * journald will now implicitly log the effective capabilities
13450 set of processes in the message metadata.
408f281b
LP
13451
13452 * systemd-cryptsetup has gained support for TrueCrypt volumes.
13453
13454 * The initrd interface has been simplified (more specifically,
13455 support for passing performance data via environment
13456 variables and fsck results via files in /run has been
13457 removed). These features were non-essential, and are
13458 nowadays available in a much nicer way by having systemd in
13459 the initrd serialize its state and have the hosts systemd
13460 deserialize it again.
13461
28f5c779
KS
13462 * The udev "keymap" data files and tools to apply keyboard
13463 specific mappings of scan to key codes, and force-release
13464 scan code lists have been entirely replaced by a udev
13465 "keyboard" builtin and a hwdb data file.
408f281b 13466
251cc819
LP
13467 * systemd will now honour the kernel's "quiet" command line
13468 argument also during late shutdown, resulting in a
13469 completely silent shutdown when used.
13470
13471 * There's now an option to control the SO_REUSEPORT socket
13472 option in .socket units.
13473
13474 * Instance units will now automatically get a per-template
13475 subslice of system.slice unless something else is explicitly
13476 configured. For example, instances of sshd@.service will now
13477 implicitly be placed in system-sshd.slice rather than
13478 system.slice as before.
13479
13480 * Test coverage support may now be enabled at build time.
13481
13482 Contributions from: Dave Reisner, Frederic Crozat, Harald
13483 Hoyer, Holger Hans Peter Freyther, Jan Engelhardt, Jan
13484 Janssen, Jason St. John, Jesper Larsen, Kay Sievers, Lennart
13485 Poettering, Lukas Nykryn, Maciej Wereski, Martin Pitt, Michael
13486 Olbrich, Ramkumar Ramachandra, Ross Lagerwall, Shawn Landden,
13487 Thomas H.P. Andersen, Tom Gundersen, Tomasz Torcz, William
13488 Giokas, Zbigniew Jędrzejewski-Szmek
13489
ccddd104 13490 — Berlin, 2013-07-23
4f0be680 13491
00aa832b
LP
13492CHANGES WITH 205:
13493
13494 * Two new unit types have been introduced:
13495
13496 Scope units are very similar to service units, however, are
ccddd104 13497 created out of pre-existing processes — instead of PID 1
00aa832b
LP
13498 forking off the processes. By using scope units it is
13499 possible for system services and applications to group their
13500 own child processes (worker processes) in a powerful way
13501 which then maybe used to organize them, or kill them
13502 together, or apply resource limits on them.
13503
13504 Slice units may be used to partition system resources in an
cc98b302 13505 hierarchical fashion and then assign other units to them. By
00aa832b
LP
13506 default there are now three slices: system.slice (for all
13507 system services), user.slice (for all user sessions),
13508 machine.slice (for VMs and containers).
13509
13510 Slices and scopes have been introduced primarily in
13511 context of the work to move cgroup handling to a
13512 single-writer scheme, where only PID 1
13513 creates/removes/manages cgroups.
13514
13515 * There's a new concept of "transient" units. In contrast to
13516 normal units these units are created via an API at runtime,
13517 not from configuration from disk. More specifically this
13518 means it is now possible to run arbitrary programs as
13519 independent services, with all execution parameters passed
13520 in via bus APIs rather than read from disk. Transient units
13521 make systemd substantially more dynamic then it ever was,
13522 and useful as a general batch manager.
13523
13524 * logind has been updated to make use of scope and slice units
13525 for managing user sessions. As a user logs in he will get
13526 his own private slice unit, to which all sessions are added
13527 as scope units. We also added support for automatically
13528 adding an instance of user@.service for the user into the
13529 slice. Effectively logind will no longer create cgroup
13530 hierarchies on its own now, it will defer entirely to PID 1
13531 for this by means of scope, service and slice units. Since
13532 user sessions this way become entities managed by PID 1
13533 the output of "systemctl" is now a lot more comprehensive.
13534
13535 * A new mini-daemon "systemd-machined" has been added which
13536 may be used by virtualization managers to register local
13537 VMs/containers. nspawn has been updated accordingly, and
13538 libvirt will be updated shortly. machined will collect a bit
13539 of meta information about the VMs/containers, and assign
13540 them their own scope unit (see above). The collected
13541 meta-data is then made available via the "machinectl" tool,
13542 and exposed in "ps" and similar tools. machined/machinectl
13543 is compile-time optional.
13544
13545 * As discussed earlier, the low-level cgroup configuration
13546 options ControlGroup=, ControlGroupModify=,
13547 ControlGroupPersistent=, ControlGroupAttribute= have been
13548 removed. Please use high-level attribute settings instead as
13549 well as slice units.
13550
13551 * A new bus call SetUnitProperties() has been added to alter
13552 various runtime parameters of a unit. This is primarily
13553 useful to alter cgroup parameters dynamically in a nice way,
13554 but will be extended later on to make more properties
13555 modifiable at runtime. systemctl gained a new set-properties
13556 command that wraps this call.
13557
13558 * A new tool "systemd-run" has been added which can be used to
13559 run arbitrary command lines as transient services or scopes,
13560 while configuring a number of settings via the command
13561 line. This tool is currently very basic, however already
13562 very useful. We plan to extend this tool to even allow
13563 queuing of execution jobs with time triggers from the
13564 command line, similar in fashion to "at".
13565
13566 * nspawn will now inform the user explicitly that kernels with
13567 audit enabled break containers, and suggest the user to turn
13568 off audit.
13569
13570 * Support for detecting the IMA and AppArmor security
13571 frameworks with ConditionSecurity= has been added.
13572
13573 * journalctl gained a new "-k" switch for showing only kernel
1fda0ab5
ZJS
13574 messages, mimicking dmesg output; in addition to "--user"
13575 and "--system" switches for showing only user's own logs
13576 and system logs.
00aa832b
LP
13577
13578 * systemd-delta can now show information about drop-in
13579 snippets extending unit files.
13580
13581 * libsystemd-bus has been substantially updated but is still
13582 not available as public API.
13583
13584 * systemd will now look for the "debug" argument on the kernel
499b604b 13585 command line and enable debug logging, similar to what
00aa832b
LP
13586 "systemd.log_level=debug" already did before.
13587
13588 * "systemctl set-default", "systemctl get-default" has been
13589 added to configure the default.target symlink, which
13590 controls what to boot into by default.
13591
1fda0ab5
ZJS
13592 * "systemctl set-log-level" has been added as a convenient
13593 way to raise and lower systemd logging threshold.
13594
00aa832b
LP
13595 * "systemd-analyze plot" will now show the time the various
13596 generators needed for execution, as well as information
13597 about the unit file loading.
13598
00aa832b
LP
13599 * libsystemd-journal gained a new sd_journal_open_files() call
13600 for opening specific journal files. journactl also gained a
13601 new switch to expose this new functionality. Previously we
13602 only supported opening all files from a directory, or all
13603 files from the system, as opening individual files only is
13604 racy due to journal file rotation.
13605
13606 * systemd gained the new DefaultEnvironment= setting in
13607 /etc/systemd/system.conf to set environment variables for
13608 all services.
13609
13610 * If a privileged process logs a journal message with the
13611 OBJECT_PID= field set, then journald will automatically
13612 augment this with additional OBJECT_UID=, OBJECT_GID=,
1d3a473b 13613 OBJECT_COMM=, OBJECT_EXE=, … fields. This is useful if
00aa832b
LP
13614 system services want to log events about specific client
13615 processes. journactl/systemctl has been updated to make use
13616 of this information if all log messages regarding a specific
13617 unit is requested.
13618
13619 Contributions from: Auke Kok, Chengwei Yang, Colin Walters,
13620 Cristian Rodríguez, Daniel Albers, Daniel Wallace, Dave
13621 Reisner, David Coppa, David King, David Strauss, Eelco
13622 Dolstra, Gabriel de Perthuis, Harald Hoyer, Jan Alexander
13623 Steffens, Jan Engelhardt, Jan Janssen, Jason St. John, Johan
13624 Heikkilä, Karel Zak, Karol Lewandowski, Kay Sievers, Lennart
13625 Poettering, Lukas Nykryn, Mantas Mikulėnas, Marius Vollmer,
13626 Martin Pitt, Michael Biebl, Michael Olbrich, Michael Tremer,
13627 Michal Schmidt, Michał Bartoszkiewicz, Nirbheek Chauhan,
13628 Pierre Neidhardt, Ross Burton, Ross Lagerwall, Sean McGovern,
13629 Thomas Hindoe Paaboel Andersen, Tom Gundersen, Umut Tezduyar,
13630 Václav Pavlín, Zachary Cook, Zbigniew Jędrzejewski-Szmek,
13631 Łukasz Stelmach, 장동준
13632
606c24e3
LP
13633CHANGES WITH 204:
13634
13635 * The Python bindings gained some minimal support for the APIs
13636 exposed by libsystemd-logind.
13637
13638 * ConditionSecurity= gained support for detecting SMACK. Since
13639 this condition already supports SELinux and AppArmor we only
13640 miss IMA for this. Patches welcome!
13641
13642 Contributions from: Karol Lewandowski, Lennart Poettering,
13643 Zbigniew Jędrzejewski-Szmek
13644
2f3fcf85
LP
13645CHANGES WITH 203:
13646
13647 * systemd-nspawn will now create /etc/resolv.conf if
13648 necessary, before bind-mounting the host's file onto it.
13649
13650 * systemd-nspawn will now store meta information about a
13651 container on the container's cgroup as extended attribute
13652 fields, including the root directory.
13653
13654 * The cgroup hierarchy has been reworked in many ways. All
13655 objects any of the components systemd creates in the cgroup
b82eed9a 13656 tree are now suffixed. More specifically, user sessions are
2f3fcf85
LP
13657 now placed in cgroups suffixed with ".session", users in
13658 cgroups suffixed with ".user", and nspawn containers in
13659 cgroups suffixed with ".nspawn". Furthermore, all cgroup
13660 names are now escaped in a simple scheme to avoid collision
13661 of userspace object names with kernel filenames. This work
13662 is preparation for making these objects relocatable in the
13663 cgroup tree, in order to allow easy resource partitioning of
13664 these objects without causing naming conflicts.
13665
13666 * systemctl list-dependencies gained the new switches
13667 --plain, --reverse, --after and --before.
13668
13669 * systemd-inhibit now shows the process name of processes that
13670 have taken an inhibitor lock.
13671
13672 * nss-myhostname will now also resolve "localhost"
13673 implicitly. This makes /etc/hosts an optional file and
13674 nicely handles that on IPv6 ::1 maps to both "localhost" and
13675 the local hostname.
13676
13677 * libsystemd-logind.so gained a new call
13678 sd_get_machine_names() to enumerate running containers and
13679 VMs (currently only supported by very new libvirt and
13680 nspawn). sd_login_monitor can now be used to watch
13681 VMs/containers coming and going.
13682
13683 * .include is not allowed recursively anymore, and only in
13684 unit files. Usually it is better to use drop-in snippets in
13685 .d/*.conf anyway, as introduced with systemd 198.
13686
13687 * systemd-analyze gained a new "critical-chain" command that
13688 determines the slowest chain of units run during system
13689 boot-up. It is very useful for tracking down where
13690 optimizing boot time is the most beneficial.
13691
13692 * systemd will no longer allow manipulating service paths in
13693 the name=systemd:/system cgroup tree using ControlGroup= in
13694 units. (But is still fine with it in all other dirs.)
13695
13696 * There's a new systemd-nspawn@.service service file that may
13697 be used to easily run nspawn containers as system
13698 services. With the container's root directory in
13699 /var/lib/container/foobar it is now sufficient to run
13700 "systemctl start systemd-nspawn@foobar.service" to boot it.
13701
13702 * systemd-cgls gained a new parameter "--machine" to list only
13703 the processes within a certain container.
13704
13705 * ConditionSecurity= now can check for "apparmor". We still
13706 are lacking checks for SMACK and IMA for this condition
13707 check though. Patches welcome!
13708
13709 * A new configuration file /etc/systemd/sleep.conf has been
13710 added that may be used to configure which kernel operation
13711 systemd is supposed to execute when "suspend", "hibernate"
13712 or "hybrid-sleep" is requested. This makes the new kernel
13713 "freeze" state accessible to the user.
13714
13715 * ENV{SYSTEMD_WANTS} in udev rules will now implicitly escape
13716 the passed argument if applicable.
13717
13718 Contributions from: Auke Kok, Colin Guthrie, Colin Walters,
13719 Cristian Rodríguez, Daniel Buch, Daniel Wallace, Dave Reisner,
13720 Evangelos Foutras, Greg Kroah-Hartman, Harald Hoyer, Josh
13721 Triplett, Kay Sievers, Lennart Poettering, Lukas Nykryn,
13722 MUNEDA Takahiro, Mantas Mikulėnas, Mirco Tischler, Nathaniel
13723 Chen, Nirbheek Chauhan, Ronny Chevalier, Ross Lagerwall, Tom
13724 Gundersen, Umut Tezduyar, Ville Skyttä, Zbigniew
13725 Jędrzejewski-Szmek
13726
ef3b5246
LP
13727CHANGES WITH 202:
13728
13729 * The output of 'systemctl list-jobs' got some polishing. The
13730 '--type=' argument may now be passed more than once. A new
13731 command 'systemctl list-sockets' has been added which shows
13732 a list of kernel sockets systemd is listening on with the
13733 socket units they belong to, plus the units these socket
13734 units activate.
13735
13736 * The experimental libsystemd-bus library got substantial
13737 updates to work in conjunction with the (also experimental)
13738 kdbus kernel project. It works well enough to exchange
13739 messages with some sophistication. Note that kdbus is not
13740 ready yet, and the library is mostly an elaborate test case
13741 for now, and not installable.
13742
13743 * systemd gained a new unit 'systemd-static-nodes.service'
13744 that generates static device nodes earlier during boot, and
13745 can run in conjunction with udev.
13746
13747 * libsystemd-login gained a new call sd_pid_get_user_unit()
13748 to retrieve the user systemd unit a process is running
13749 in. This is useful for systems where systemd is used as
13750 session manager.
13751
13752 * systemd-nspawn now places all containers in the new /machine
13753 top-level cgroup directory in the name=systemd
13754 hierarchy. libvirt will soon do the same, so that we get a
13755 uniform separation of /system, /user and /machine for system
13756 services, user processes and containers/virtual
13757 machines. This new cgroup hierarchy is also useful to stick
13758 stable names to specific container instances, which can be
7c04ad2d 13759 recognized later this way (this name may be controlled
ef3b5246
LP
13760 via systemd-nspawn's new -M switch). libsystemd-login also
13761 gained a new call sd_pid_get_machine_name() to retrieve the
13762 name of the container/VM a specific process belongs to.
13763
13764 * bootchart can now store its data in the journal.
13765
13766 * libsystemd-journal gained a new call
13767 sd_journal_add_conjunction() for AND expressions to the
13768 matching logic. This can be used to express more complex
13769 logical expressions.
13770
13771 * journactl can now take multiple --unit= and --user-unit=
13772 switches.
13773
13774 * The cryptsetup logic now understands the "luks.key=" kernel
13775 command line switch for specifying a file to read the
7c04ad2d 13776 decryption key from. Also, if a configured key file is not
ef3b5246
LP
13777 found the tool will now automatically fall back to prompting
13778 the user.
13779
cbeabcfb
ZJS
13780 * Python systemd.journal module was updated to wrap recently
13781 added functions from libsystemd-journal. The interface was
13782 changed to bring the low level interface in s.j._Reader
13783 closer to the C API, and the high level interface in
13784 s.j.Reader was updated to wrap and convert all data about
13785 an entry.
13786
ef3b5246
LP
13787 Contributions from: Anatol Pomozov, Auke Kok, Harald Hoyer,
13788 Henrik Grindal Bakken, Josh Triplett, Kay Sievers, Lennart
13789 Poettering, Lukas Nykryn, Mantas Mikulėnas Marius Vollmer,
13790 Martin Jansa, Martin Pitt, Michael Biebl, Michal Schmidt,
13791 Mirco Tischler, Pali Rohar, Simon Peeters, Steven Hiscocks,
13792 Tom Gundersen, Zbigniew Jędrzejewski-Szmek
13793
d3a86981
LP
13794CHANGES WITH 201:
13795
13796 * journalctl --update-catalog now understands a new --root=
13797 option to operate on catalogs found in a different root
13798 directory.
13799
13800 * During shutdown after systemd has terminated all running
13801 services a final killing loop kills all remaining left-over
13802 processes. We will now print the name of these processes
13803 when we send SIGKILL to them, since this usually indicates a
13804 problem.
13805
13806 * If /etc/crypttab refers to password files stored on
13807 configured mount points automatic dependencies will now be
13808 generated to ensure the specific mount is established first
13809 before the key file is attempted to be read.
13810
13811 * 'systemctl status' will now show information about the
13812 network sockets a socket unit is listening on.
13813
13814 * 'systemctl status' will also shown information about any
13815 drop-in configuration file for units. (Drop-In configuration
13816 files in this context are files such as
5ada98cd 13817 /etc/systemd/system/foobar.service.d/*.conf)
d3a86981
LP
13818
13819 * systemd-cgtop now optionally shows summed up CPU times of
13820 cgroups. Press '%' while running cgtop to switch between
13821 percentage and absolute mode. This is useful to determine
13822 which cgroups use up the most CPU time over the entire
13823 runtime of the system. systemd-cgtop has also been updated
13824 to be 'pipeable' for processing with further shell tools.
13825
13826 * 'hostnamectl set-hostname' will now allow setting of FQDN
13827 hostnames.
13828
13829 * The formatting and parsing of time span values has been
13830 changed. The parser now understands fractional expressions
13831 such as "5.5h". The formatter will now output fractional
13832 expressions for all time spans under 1min, i.e. "5.123456s"
13833 rather than "5s 123ms 456us". For time spans under 1s
13834 millisecond values are shown, for those under 1ms
13835 microsecond values are shown. This should greatly improve
13836 all time-related output of systemd.
13837
13838 * libsystemd-login and libsystemd-journal gained new
13839 functions for querying the poll() events mask and poll()
13840 timeout value for integration into arbitrary event
13841 loops.
13842
13843 * localectl gained the ability to list available X11 keymaps
13844 (models, layouts, variants, options).
13845
13846 * 'systemd-analyze dot' gained the ability to filter for
13847 specific units via shell-style globs, to create smaller,
d28315e4 13848 more useful graphs. I.e. it is now possible to create simple
d3a86981
LP
13849 graphs of all the dependencies between only target units, or
13850 of all units that Avahi has dependencies with.
13851
13852 Contributions from: Cristian Rodríguez, Dr. Tilmann Bubeck,
13853 Harald Hoyer, Holger Hans Peter Freyther, Kay Sievers, Kelly
13854 Anderson, Koen Kooi, Lennart Poettering, Maksim Melnikau,
13855 Marc-Antoine Perennou, Marius Vollmer, Martin Pitt, Michal
13856 Schmidt, Oleksii Shevchuk, Ronny Chevalier, Simon McVittie,
13857 Steven Hiscocks, Thomas Weißschuh, Umut Tezduyar, Václav
13858 Pavlín, Zbigniew Jędrzejewski-Szmek, Łukasz Stelmach
13859
9ca3c17f
LP
13860CHANGES WITH 200:
13861
13862 * The boot-time readahead implementation for rotating media
13863 will now read the read-ahead data in multiple passes which
13864 consist of all read requests made in equidistant time
13865 intervals. This means instead of strictly reading read-ahead
13866 data in its physical order on disk we now try to find a
13867 middle ground between physical and access time order.
13868
13869 * /etc/os-release files gained a new BUILD_ID= field for usage
13870 on operating systems that provide continuous builds of OS
13871 images.
13872
13873 Contributions from: Auke Kok, Eelco Dolstra, Kay Sievers,
13874 Lennart Poettering, Lukas Nykryn, Martin Pitt, Václav Pavlín
13875 William Douglas, Zbigniew Jędrzejewski-Szmek
13876
35911459
LP
13877CHANGES WITH 199:
13878
13879 * systemd-python gained an API exposing libsystemd-daemon.
13880
13881 * The SMACK setup logic gained support for uploading CIPSO
13882 security policy.
13883
13884 * Behaviour of PrivateTmp=, ReadWriteDirectories=,
13885 ReadOnlyDirectories= and InaccessibleDirectories= has
13886 changed. The private /tmp and /var/tmp directories are now
13887 shared by all processes of a service (which means
13888 ExecStartPre= may now leave data in /tmp that ExecStart= of
13889 the same service can still access). When a service is
13890 stopped its temporary directories are immediately deleted
a87197f5 13891 (normal clean-up with tmpfiles is still done in addition to
35911459
LP
13892 this though).
13893
13894 * By default, systemd will now set a couple of sysctl
13895 variables in the kernel: the safe sysrq options are turned
13896 on, IP route verification is turned on, and source routing
13897 disabled. The recently added hardlink and softlink
13898 protection of the kernel is turned on. These settings should
13899 be reasonably safe, and good defaults for all new systems.
13900
13901 * The predictable network naming logic may now be turned off
a87197f5 13902 with a new kernel command line switch: net.ifnames=0.
35911459
LP
13903
13904 * A new libsystemd-bus module has been added that implements a
13905 pretty complete D-Bus client library. For details see:
13906
56cadcb6 13907 https://lists.freedesktop.org/archives/systemd-devel/2013-March/009797.html
35911459 13908
c20d8298 13909 * journald will now explicitly flush the journal files to disk
a87197f5
ZJS
13910 at the latest 5min after each write. The file will then also
13911 be marked offline until the next write. This should increase
13912 reliability in case of a crash. The synchronization delay
13913 can be configured via SyncIntervalSec= in journald.conf.
35911459
LP
13914
13915 * There's a new remote-fs-setup.target unit that can be used
13916 to pull in specific services when at least one remote file
13917 system is to be mounted.
13918
13919 * There are new targets timers.target and paths.target as
13920 canonical targets to pull user timer and path units in
13921 from. This complements sockets.target with a similar
13922 purpose for socket units.
13923
6a7d3d68
LP
13924 * libudev gained a new call udev_device_set_attribute_value()
13925 to set sysfs attributes of a device.
13926
a87197f5
ZJS
13927 * The udev daemon now sets the default number of worker
13928 processes executed in parallel based on the number of available
c20d8298 13929 CPUs instead of the amount of available RAM. This is supposed
ab06eef8 13930 to provide a more reliable default and limit a too aggressive
ce830873 13931 parallelism for setups with 1000s of devices connected.
c20d8298 13932
35911459
LP
13933 Contributions from: Auke Kok, Colin Walters, Cristian
13934 Rodríguez, Daniel Buch, Dave Reisner, Frederic Crozat, Hannes
13935 Reinecke, Harald Hoyer, Jan Alexander Steffens, Jan
13936 Engelhardt, Josh Triplett, Kay Sievers, Lennart Poettering,
13937 Mantas Mikulėnas, Martin Pitt, Mathieu Bridon, Michael Biebl,
13938 Michal Schmidt, Michal Sekletar, Miklos Vajna, Nathaniel Chen,
13939 Oleksii Shevchuk, Ozan Çağlayan, Thomas Hindoe Paaboel
13940 Andersen, Tollef Fog Heen, Tom Gundersen, Umut Tezduyar,
13941 Zbigniew Jędrzejewski-Szmek
13942
85d68397
LP
13943CHANGES WITH 198:
13944
13945 * Configuration of unit files may now be extended via drop-in
13946 files without having to edit/override the unit files
13947 themselves. More specifically, if the administrator wants to
13948 change one value for a service file foobar.service he can
13949 now do so by dropping in a configuration snippet into
ad88e758 13950 /etc/systemd/system/foobar.service.d/*.conf. The unit logic
85d68397
LP
13951 will load all these snippets and apply them on top of the
13952 main unit configuration file, possibly extending or
13953 overriding its settings. Using these drop-in snippets is
40e21da8
KS
13954 generally nicer than the two earlier options for changing
13955 unit files locally: copying the files from
85d68397
LP
13956 /usr/lib/systemd/system/ to /etc/systemd/system/ and editing
13957 them there; or creating a new file in /etc/systemd/system/
13958 that incorporates the original one via ".include". Drop-in
13959 snippets into these .d/ directories can be placed in any
fd868975 13960 directory systemd looks for units in, and the usual
85d68397
LP
13961 overriding semantics between /usr/lib, /etc and /run apply
13962 for them too.
13963
13964 * Most unit file settings which take lists of items can now be
6aa8d43a 13965 reset by assigning the empty string to them. For example,
85d68397
LP
13966 normally, settings such as Environment=FOO=BAR append a new
13967 environment variable assignment to the environment block,
13968 each time they are used. By assigning Environment= the empty
13969 string the environment block can be reset to empty. This is
13970 particularly useful with the .d/*.conf drop-in snippets
156f7d09
KS
13971 mentioned above, since this adds the ability to reset list
13972 settings from vendor unit files via these drop-ins.
85d68397
LP
13973
13974 * systemctl gained a new "list-dependencies" command for
13975 listing the dependencies of a unit recursively.
13976
40e21da8 13977 * Inhibitors are now honored and listed by "systemctl
85d68397
LP
13978 suspend", "systemctl poweroff" (and similar) too, not only
13979 GNOME. These commands will also list active sessions by
13980 other users.
13981
13982 * Resource limits (as exposed by the various control group
13983 controllers) can now be controlled dynamically at runtime
13984 for all units. More specifically, you can now use a command
13985 like "systemctl set-cgroup-attr foobar.service cpu.shares
13986 2000" to alter the CPU shares a specific service gets. These
6aa8d43a 13987 settings are stored persistently on disk, and thus allow the
85d68397
LP
13988 administrator to easily adjust the resource usage of
13989 services with a few simple commands. This dynamic resource
6aa8d43a 13990 management logic is also available to other programs via the
85d68397
LP
13991 bus. Almost any kernel cgroup attribute and controller is
13992 supported.
13993
13994 * systemd-vconsole-setup will now copy all font settings to
6aa8d43a
LP
13995 all allocated VTs, where it previously applied them only to
13996 the foreground VT.
85d68397
LP
13997
13998 * libsystemd-login gained the new sd_session_get_tty() API
13999 call.
14000
6aa8d43a
LP
14001 * This release drops support for a few legacy or
14002 distribution-specific LSB facility names when parsing init
14003 scripts: $x-display-manager, $mail-transfer-agent,
85d68397
LP
14004 $mail-transport-agent, $mail-transfer-agent, $smtp,
14005 $null. Also, the mail-transfer-agent.target unit backing
14006 this has been removed. Distributions which want to retain
6aa8d43a
LP
14007 compatibility with this should carry the burden for
14008 supporting this themselves and patch support for these back
14009 in, if they really need to. Also, the facilities $syslog and
14010 $local_fs are now ignored, since systemd does not support
14011 early-boot LSB init scripts anymore, and these facilities
14012 are implied anyway for normal services. syslog.target has
14013 also been removed.
85d68397 14014
40e21da8 14015 * There are new bus calls on PID1's Manager object for
6aa8d43a 14016 cancelling jobs, and removing snapshot units. Previously,
85d68397
LP
14017 both calls were only available on the Job and Snapshot
14018 objects themselves.
14019
14020 * systemd-journal-gatewayd gained SSL support.
14021
14022 * The various "environment" files, such as /etc/locale.conf
14023 now support continuation lines with a backslash ("\") as
499b604b 14024 last character in the line, similarly in style (but different)
85d68397
LP
14025 to how this is supported in shells.
14026
14027 * For normal user processes the _SYSTEMD_USER_UNIT= field is
14028 now implicitly appended to every log entry logged. systemctl
14029 has been updated to filter by this field when operating on a
14030 user systemd instance.
14031
14032 * nspawn will now implicitly add the CAP_AUDIT_WRITE and
14033 CAP_AUDIT_CONTROL capabilities to the capabilities set for
14034 the container. This makes it easier to boot unmodified
14035 Fedora systems in a container, which however still requires
14036 audit=0 to be passed on the kernel command line. Auditing in
14037 kernel and userspace is unfortunately still too broken in
14038 context of containers, hence we recommend compiling it out
14039 of the kernel or using audit=0. Hopefully this will be fixed
14040 one day for good in the kernel.
14041
14042 * nspawn gained the new --bind= and --bind-ro= parameters to
14043 bind mount specific directories from the host into the
14044 container.
14045
40e21da8 14046 * nspawn will now mount its own devpts file system instance
6aa8d43a 14047 into the container, in order not to leak pty devices from
85d68397
LP
14048 the host into the container.
14049
14050 * systemd will now read the firmware boot time performance
6aa8d43a
LP
14051 information from the EFI variables, if the used boot loader
14052 supports this, and takes it into account for boot performance
14053 analysis via "systemd-analyze". This is currently supported
14054 only in conjunction with Gummiboot, but could be supported
14055 by other boot loaders too. For details see:
85d68397 14056
a794a4d8 14057 https://systemd.io/BOOT_LOADER_INTERFACE
85d68397
LP
14058
14059 * A new generator has been added that automatically mounts the
14060 EFI System Partition (ESP) to /boot, if that directory
6aa8d43a
LP
14061 exists, is empty, and no other file system has been
14062 configured to be mounted there.
85d68397
LP
14063
14064 * logind will now send out PrepareForSleep(false) out
14065 unconditionally, after coming back from suspend. This may be
14066 used by applications as asynchronous notification for
14067 system resume events.
14068
14069 * "systemctl unlock-sessions" has been added, that allows
14070 unlocking the screens of all user sessions at once, similar
499b604b 14071 to how "systemctl lock-sessions" already locked all users
40e21da8 14072 sessions. This is backed by a new D-Bus call UnlockSessions().
85d68397
LP
14073
14074 * "loginctl seat-status" will now show the master device of a
14075 seat. (i.e. the device of a seat that needs to be around for
14076 the seat to be considered available, usually the graphics
14077 card).
14078
14079 * tmpfiles gained a new "X" line type, that allows
14080 configuration of files and directories (with wildcards) that
14081 shall be excluded from automatic cleanup ("aging").
14082
bf933560
KS
14083 * udev default rules set the device node permissions now only
14084 at "add" events, and do not change them any longer with a
14085 later "change" event.
85d68397
LP
14086
14087 * The log messages for lid events and power/sleep keypresses
14088 now carry a message ID.
14089
14090 * We now have a substantially larger unit test suite, but this
14091 continues to be work in progress.
14092
14093 * udevadm hwdb gained a new --root= parameter to change the
14094 root directory to operate relative to.
14095
40e21da8
KS
14096 * logind will now issue a background sync() request to the kernel
14097 early at shutdown, so that dirty buffers are flushed to disk early
85d68397
LP
14098 instead of at the last moment, in order to optimize shutdown
14099 times a little.
14100
14101 * A new bootctl tool has been added that is an interface for
14102 certain boot loader operations. This is currently a preview
14103 and is likely to be extended into a small mechanism daemon
14104 like timedated, localed, hostnamed, and can be used by
14105 graphical UIs to enumerate available boot options, and
14106 request boot into firmware operations.
14107
14108 * systemd-bootchart has been relicensed to LGPLv2.1+ to match
14109 the rest of the package. It also has been updated to work
14110 correctly in initrds.
14111
d35f51ea
ZJS
14112 * polkit previously has been runtime optional, and is now also
14113 compile time optional via a configure switch.
85d68397
LP
14114
14115 * systemd-analyze has been reimplemented in C. Also "systemctl
14116 dot" has moved into systemd-analyze.
14117
14118 * "systemctl status" with no further parameters will now print
14119 the status of all active or failed units.
14120
14121 * Operations such as "systemctl start" can now be executed
14122 with a new mode "--irreversible" which may be used to queue
14123 operations that cannot accidentally be reversed by a later
6aa8d43a 14124 job queuing. This is by default used to make shutdown
85d68397
LP
14125 requests more robust.
14126
14127 * The Python API of systemd now gained a new module for
14128 reading journal files.
14129
14130 * A new tool kernel-install has been added that can install
14131 kernel images according to the Boot Loader Specification:
14132
a794a4d8 14133 https://systemd.io/BOOT_LOADER_SPECIFICATION
85d68397
LP
14134
14135 * Boot time console output has been improved to provide
6aa8d43a 14136 animated boot time output for hanging jobs.
85d68397
LP
14137
14138 * A new tool systemd-activate has been added which can be used
14139 to test socket activation with, directly from the command
14140 line. This should make it much easier to test and debug
14141 socket activation in daemons.
14142
14143 * journalctl gained a new "--reverse" (or -r) option to show
14144 journal output in reverse order (i.e. newest line first).
14145
43447fb7
LP
14146 * journalctl gained a new "--pager-end" (or -e) option to jump
14147 to immediately jump to the end of the journal in the
14148 pager. This is only supported in conjunction with "less".
14149
85d68397 14150 * journalctl gained a new "--user-unit=" option, that works
499b604b 14151 similarly to "--unit=" but filters for user units rather than
85d68397
LP
14152 system units.
14153
14154 * A number of unit files to ease adoption of systemd in
14155 initrds has been added. This moves some minimal logic from
14156 the various initrd implementations into systemd proper.
14157
14158 * The journal files are now owned by a new group
14159 "systemd-journal", which exists specifically to allow access
14160 to the journal, and nothing else. Previously, we used the
6aa8d43a 14161 "adm" group for that, which however possibly covers more
85d68397
LP
14162 than just journal/log file access. This new group is now
14163 already used by systemd-journal-gatewayd to ensure this
14164 daemon gets access to the journal files and as little else
14165 as possible. Note that "make install" will also set FS ACLs
14166 up for /var/log/journal to give "adm" and "wheel" read
14167 access to it, in addition to "systemd-journal" which owns
14168 the journal files. We recommend that packaging scripts also
6aa8d43a 14169 add read access to "adm" + "wheel" to /var/log/journal, and
85d68397
LP
14170 all existing/future journal files. To normal users and
14171 administrators little changes, however packagers need to
14172 ensure to create the "systemd-journal" system group at
14173 package installation time.
14174
14175 * The systemd-journal-gatewayd now runs as unprivileged user
14176 systemd-journal-gateway:systemd-journal-gateway. Packaging
14177 scripts need to create these system user/group at
14178 installation time.
14179
14180 * timedated now exposes a new boolean property CanNTP that
14181 indicates whether a local NTP service is available or not.
14182
14183 * systemd-detect-virt will now also detect xen PVs
14184
40e21da8
KS
14185 * The pstore file system is now mounted by default, if it is
14186 available.
85d68397 14187
1aed4590
LP
14188 * In addition to the SELinux and IMA policies we will now also
14189 load SMACK policies at early boot.
14190
85d68397
LP
14191 Contributions from: Adel Gadllah, Aleksander Morgado, Auke
14192 Kok, Ayan George, Bastien Nocera, Colin Walters, Daniel Buch,
14193 Daniel Wallace, Dave Reisner, David Herrmann, David Strauss,
14194 Eelco Dolstra, Enrico Scholz, Frederic Crozat, Harald Hoyer,
14195 Jan Janssen, Jonathan Callen, Kay Sievers, Lennart Poettering,
14196 Lukas Nykryn, Mantas Mikulėnas, Marc-Antoine Perennou, Martin
14197 Pitt, Mauro Dreissig, Max F. Albrecht, Michael Biebl, Michael
14198 Olbrich, Michal Schmidt, Michal Sekletar, Michal Vyskocil,
14199 Michał Bartoszkiewicz, Mirco Tischler, Nathaniel Chen, Nestor
14200 Ovroy, Oleksii Shevchuk, Paul W. Frields, Piotr Drąg, Rob
14201 Clark, Ryan Lortie, Simon McVittie, Simon Peeters, Steven
14202 Hiscocks, Thomas Hindoe Paaboel Andersen, Tollef Fog Heen, Tom
14203 Gundersen, Umut Tezduyar, William Giokas, Zbigniew
14204 Jędrzejewski-Szmek, Zeeshan Ali (Khattak)
14205
8ad26859
LP
14206CHANGES WITH 197:
14207
14208 * Timer units now support calendar time events in addition to
14209 monotonic time events. That means you can now trigger a unit
14210 based on a calendar time specification such as "Thu,Fri
14211 2013-*-1,5 11:12:13" which refers to 11:12:13 of the first
14212 or fifth day of any month of the year 2013, given that it is
c3fb1e43 14213 a Thursday or a Friday. This brings timer event support
8ad26859
LP
14214 considerably closer to cron's capabilities. For details on
14215 the supported calendar time specification language see
14216 systemd.time(7).
14217
14218 * udev now supports a number of different naming policies for
14219 network interfaces for predictable names, and a combination
14220 of these policies is now the default. Please see this wiki
14221 document for details:
14222
a794a4d8 14223 https://www.freedesktop.org/software/systemd/man/systemd.net-naming-scheme.html
8ad26859
LP
14224
14225 * Auke Kok's bootchart implementation has been added to the
d28315e4
JE
14226 systemd tree. It is an optional component that can graph the
14227 boot in quite some detail. It is one of the best bootchart
8ad26859
LP
14228 implementations around and minimal in its code and
14229 dependencies.
14230
14231 * nss-myhostname has been integrated into the systemd source
14232 tree. nss-myhostname guarantees that the local hostname
14233 always stays resolvable via NSS. It has been a weak
14234 requirement of systemd-hostnamed since a long time, and
14235 since its code is actually trivial we decided to just
14236 include it in systemd's source tree. It can be turned off
14237 with a configure switch.
14238
14239 * The read-ahead logic is now capable of properly detecting
14240 whether a btrfs file system is on SSD or rotating media, in
14241 order to optimize the read-ahead scheme. Previously, it was
14242 only capable of detecting this on traditional file systems
14243 such as ext4.
14244
14245 * In udev, additional device properties are now read from the
14246 IAB in addition to the OUI database. Also, Bluetooth company
14247 identities are attached to the devices as well.
14248
14249 * In service files %U may be used as specifier that is
14250 replaced by the configured user name of the service.
14251
14252 * nspawn may now be invoked without a controlling TTY. This
14253 makes it suitable for invocation as its own service. This
14254 may be used to set up a simple containerized server system
14255 using only core OS tools.
14256
14257 * systemd and nspawn can now accept socket file descriptors
14258 when they are started for socket activation. This enables
14259 implementation of socket activated nspawn
14260 containers. i.e. think about autospawning an entire OS image
14261 when the first SSH or HTTP connection is received. We expect
14262 that similar functionality will also be added to libvirt-lxc
14263 eventually.
14264
14265 * journalctl will now suppress ANSI color codes when
14266 presenting log data.
14267
14268 * systemctl will no longer show control group information for
ce830873 14269 a unit if the control group is empty anyway.
8ad26859
LP
14270
14271 * logind can now automatically suspend/hibernate/shutdown the
14272 system on idle.
14273
14274 * /etc/machine-info and hostnamed now also expose the chassis
14275 type of the system. This can be used to determine whether
14276 the local system is a laptop, desktop, handset or
14277 tablet. This information may either be configured by the
14278 user/vendor or is automatically determined from ACPI and DMI
14279 information if possible.
14280
d35f51ea
ZJS
14281 * A number of polkit actions are now bound together with "imply"
14282 rules. This should simplify creating UIs because many actions
14283 will now authenticate similar ones as well.
8ad26859
LP
14284
14285 * Unit files learnt a new condition ConditionACPower= which
14286 may be used to conditionalize a unit depending on whether an
14287 AC power source is connected or not, of whether the system
14288 is running on battery power.
14289
14290 * systemctl gained a new "is-failed" verb that may be used in
14291 shell scripts and suchlike to check whether a specific unit
14292 is in the "failed" state.
14293
14294 * The EnvironmentFile= setting in unit files now supports file
14295 globbing, and can hence be used to easily read a number of
14296 environment files at once.
14297
14298 * systemd will no longer detect and recognize specific
14299 distributions. All distribution-specific #ifdeffery has been
14300 removed, systemd is now fully generic and
14301 distribution-agnostic. Effectively, not too much is lost as
14302 a lot of the code is still accessible via explicit configure
14303 switches. However, support for some distribution specific
14304 legacy configuration file formats has been dropped. We
14305 recommend distributions to simply adopt the configuration
14306 files everybody else uses now and convert the old
14307 configuration from packaging scripts. Most distributions
14308 already did that. If that's not possible or desirable,
14309 distributions are welcome to forward port the specific
14310 pieces of code locally from the git history.
14311
14312 * When logging a message about a unit systemd will now always
14313 log the unit name in the message meta data.
14314
14315 * localectl will now also discover system locale data that is
14316 not stored in locale archives, but directly unpacked.
14317
14318 * logind will no longer unconditionally use framebuffer
14319 devices as seat masters, i.e. as devices that are required
14320 to be existing before a seat is considered preset. Instead,
14321 it will now look for all devices that are tagged as
b938cb90
JE
14322 "seat-master" in udev. By default, framebuffer devices will
14323 be marked as such, but depending on local systems, other
8ad26859
LP
14324 devices might be marked as well. This may be used to
14325 integrate graphics cards using closed source drivers (such
14326 as NVidia ones) more nicely into logind. Note however, that
14327 we recommend using the open source NVidia drivers instead,
14328 and no udev rules for the closed-source drivers will be
14329 shipped from us upstream.
14330
14331 Contributions from: Adam Williamson, Alessandro Crismani, Auke
14332 Kok, Colin Walters, Daniel Wallace, Dave Reisner, David
14333 Herrmann, David Strauss, Dimitrios Apostolou, Eelco Dolstra,
14334 Eric Benoit, Giovanni Campagna, Hannes Reinecke, Henrik
14335 Grindal Bakken, Hermann Gausterer, Kay Sievers, Lennart
14336 Poettering, Lukas Nykryn, Mantas Mikulėnas, Marcel Holtmann,
14337 Martin Pitt, Matthew Monaco, Michael Biebl, Michael Terry,
14338 Michal Schmidt, Michal Sekletar, Michał Bartoszkiewicz, Oleg
14339 Samarin, Pekka Lundstrom, Philip Nilsson, Ramkumar
14340 Ramachandra, Richard Yao, Robert Millan, Sami Kerola, Shawn
14341 Landden, Thomas Hindoe Paaboel Andersen, Thomas Jarosch,
14342 Tollef Fog Heen, Tom Gundersen, Umut Tezduyar, Zbigniew
14343 Jędrzejewski-Szmek
14344
0428ddb7
LP
14345CHANGES WITH 196:
14346
14347 * udev gained support for loading additional device properties
14348 from an indexed database that is keyed by vendor/product IDs
14349 and similar device identifiers. For the beginning this
14350 "hwdb" is populated with data from the well-known PCI and
14351 USB database, but also includes PNP, ACPI and OID data. In
14352 the longer run this indexed database shall grow into
14353 becoming the one central database for non-essential
14354 userspace device metadata. Previously, data from the PCI/USB
96ec33c0 14355 database was only attached to select devices, since the
0428ddb7 14356 lookup was a relatively expensive operation due to O(n) time
96ec33c0
LP
14357 complexity (with n being the number of entries in the
14358 database). Since this is now O(1), we decided to add in this
14359 data for all devices where this is available, by
0428ddb7
LP
14360 default. Note that the indexed database needs to be rebuilt
14361 when new data files are installed. To achieve this you need
14362 to update your packaging scripts to invoke "udevadm hwdb
14363 --update" after installation of hwdb data files. For
14364 RPM-based distributions we introduced the new
14365 %udev_hwdb_update macro for this purpose.
14366
14367 * The Journal gained support for the "Message Catalog", an
14368 indexed database to link up additional information with
14369 journal entries. For further details please check:
14370
56cadcb6 14371 https://www.freedesktop.org/wiki/Software/systemd/catalog
0428ddb7
LP
14372
14373 The indexed message catalog database also needs to be
14374 rebuilt after installation of message catalog files. Use
14375 "journalctl --update-catalog" for this. For RPM-based
14376 distributions we introduced the %journal_catalog_update
14377 macro for this purpose.
14378
14379 * The Python Journal bindings gained support for the standard
14380 Python logging framework.
14381
14382 * The Journal API gained new functions for checking whether
14383 the underlying file system of a journal file is capable of
14384 properly reporting file change notifications, or whether
14385 applications that want to reflect journal changes "live"
ab06eef8 14386 need to recheck journal files continuously in appropriate
0428ddb7
LP
14387 time intervals.
14388
14389 * It is now possible to set the "age" field for tmpfiles
14390 entries to 0, indicating that files matching this entry
14391 shall always be removed when the directories are cleaned up.
14392
14393 * coredumpctl gained a new "gdb" verb which invokes gdb
14394 right-away on the selected coredump.
14395
14396 * There's now support for "hybrid sleep" on kernels that
14397 support this, in addition to "suspend" and "hibernate". Use
14398 "systemctl hybrid-sleep" to make use of this.
14399
14400 * logind's HandleSuspendKey= setting (and related settings)
14401 now gained support for a new "lock" setting to simply
14402 request the screen lock on all local sessions, instead of
14403 actually executing a suspend or hibernation.
14404
14405 * systemd will now mount the EFI variables file system by
14406 default.
14407
14408 * Socket units now gained support for configuration of the
14409 SMACK security label.
14410
14411 * timedatectl will now output the time of the last and next
14412 daylight saving change.
14413
14414 * We dropped support for various legacy and distro-specific
14415 concepts, such as insserv, early-boot SysV services
14416 (i.e. those for non-standard runlevels such as 'b' or 'S')
14417 or ArchLinux /etc/rc.conf support. We recommend the
14418 distributions who still need support this to either continue
14419 to maintain the necessary patches downstream, or find a
14420 different solution. (Talk to us if you have questions!)
14421
d35f51ea
ZJS
14422 * Various systemd components will now bypass polkit checks for
14423 root and otherwise handle properly if polkit is not found to
14424 be around. This should fix most issues for polkit-less
14425 systems. Quite frankly this should have been this way since
14426 day one. It is absolutely our intention to make systemd work
14427 fine on polkit-less systems, and we consider it a bug if
14428 something does not work as it should if polkit is not around.
0428ddb7
LP
14429
14430 * For embedded systems it is now possible to build udev and
14431 systemd without blkid and/or kmod support.
14432
14433 * "systemctl switch-root" is now capable of switching root
14434 more than once. I.e. in addition to transitions from the
14435 initrd to the host OS it is now possible to transition to
14436 further OS images from the host. This is useful to implement
14437 offline updating tools.
14438
14439 * Various other additions have been made to the RPM macros
14440 shipped with systemd. Use %udev_rules_update() after
14441 installing new udev rules files. %_udevhwdbdir,
14442 %_udevrulesdir, %_journalcatalogdir, %_tmpfilesdir,
14443 %_sysctldir are now available which resolve to the right
14444 directories for packages to place various data files in.
14445
14446 * journalctl gained the new --full switch (in addition to
14447 --all, to disable ellipsation for long messages.
14448
14449 Contributions from: Anders Olofsson, Auke Kok, Ben Boeckel,
14450 Colin Walters, Cosimo Cecchi, Daniel Wallace, Dave Reisner,
14451 Eelco Dolstra, Holger Hans Peter Freyther, Kay Sievers,
14452 Chun-Yi Lee, Lekensteyn, Lennart Poettering, Mantas Mikulėnas,
14453 Marti Raudsepp, Martin Pitt, Mauro Dreissig, Michael Biebl,
14454 Michal Schmidt, Michal Sekletar, Miklos Vajna, Nis Martensen,
14455 Oleksii Shevchuk, Olivier Brunel, Ramkumar Ramachandra, Thomas
14456 Bächler, Thomas Hindoe Paaboel Andersen, Tom Gundersen, Tony
14457 Camuso, Umut Tezduyar, Zbigniew Jędrzejewski-Szmek
14458
139ee8cc
LP
14459CHANGES WITH 195:
14460
6827101a 14461 * journalctl gained new --since= and --until= switches to
139ee8cc
LP
14462 filter by time. It also now supports nice filtering for
14463 units via --unit=/-u.
14464
6827101a 14465 * Type=oneshot services may use ExecReload= and do the
139ee8cc
LP
14466 right thing.
14467
14468 * The journal daemon now supports time-based rotation and
14469 vacuuming, in addition to the usual disk-space based
14470 rotation.
14471
14472 * The journal will now index the available field values for
14473 each field name. This enables clients to show pretty drop
14474 downs of available match values when filtering. The bash
14475 completion of journalctl has been updated
14476 accordingly. journalctl gained a new switch -F to list all
14477 values a certain field takes in the journal database.
14478
14479 * More service events are now written as structured messages
14480 to the journal, and made recognizable via message IDs.
14481
14482 * The timedated, localed and hostnamed mini-services which
14483 previously only provided support for changing time, locale
14484 and hostname settings from graphical DEs such as GNOME now
14485 also have a minimal (but very useful) text-based client
14486 utility each. This is probably the nicest way to changing
14487 these settings from the command line now, especially since
14488 it lists available options and is fully integrated with bash
14489 completion.
14490
14491 * There's now a new tool "systemd-coredumpctl" to list and
14492 extract coredumps from the journal.
14493
14494 * We now install a README each in /var/log/ and
14495 /etc/rc.d/init.d explaining where the system logs and init
14496 scripts went. This hopefully should help folks who go to
14497 that dirs and look into the otherwise now empty void and
14498 scratch their heads.
14499
14500 * When user-services are invoked (by systemd --user) the
14501 $MANAGERPID env var is set to the PID of systemd.
14502
14503 * SIGRTMIN+24 when sent to a --user instance will now result
14504 in immediate termination of systemd.
14505
14506 * gatewayd received numerous feature additions such as a
14507 "follow" mode, for live syncing and filtering.
14508
14509 * browse.html now allows filtering and showing detailed
14510 information on specific entries. Keyboard navigation and
14511 mouse screen support has been added.
14512
14513 * gatewayd/journalctl now supports HTML5/JSON
14514 Server-Sent-Events as output.
14515
1cb88f2c 14516 * The SysV init script compatibility logic will now
139ee8cc
LP
14517 heuristically determine whether a script supports the
14518 "reload" verb, and only then make this available as
14519 "systemctl reload".
14520
15f47220 14521 * "systemctl status --follow" has been removed, use "journalctl
139ee8cc
LP
14522 -u" instead.
14523
14524 * journald.conf's RuntimeMinSize=, PersistentMinSize= settings
14525 have been removed since they are hardly useful to be
14526 configured.
14527
14528 * And I'd like to take the opportunity to specifically mention
14529 Zbigniew for his great contributions. Zbigniew, you rock!
14530
14531 Contributions from: Andrew Eikum, Christian Hesse, Colin
14532 Guthrie, Daniel J Walsh, Dave Reisner, Eelco Dolstra, Ferenc
4d92e078
LP
14533 Wágner, Kay Sievers, Lennart Poettering, Lukas Nykryn, Mantas
14534 Mikulėnas, Martin Mikkelsen, Martin Pitt, Michael Olbrich,
14535 Michael Stapelberg, Michal Schmidt, Sebastian Ott, Thomas
14536 Bächler, Umut Tezduyar, Will Woods, Wulf C. Krueger, Zbigniew
14537 Jędrzejewski-Szmek, Сковорода Никита Андреевич
139ee8cc 14538
f9b55720
LP
14539CHANGES WITH 194:
14540
14541 * If /etc/vconsole.conf is non-existent or empty we will no
14542 longer load any console font or key map at boot by
14543 default. Instead the kernel defaults will be left
14544 intact. This is definitely the right thing to do, as no
14545 configuration should mean no configuration, and hard-coding
14546 font names that are different on all archs is probably a bad
14547 idea. Also, the kernel default key map and font should be
14548 good enough for most cases anyway, and mostly identical to
14549 the userspace fonts/key maps we previously overloaded them
14550 with. If distributions want to continue to default to a
14551 non-kernel font or key map they should ship a default
14552 /etc/vconsole.conf with the appropriate contents.
14553
14554 Contributions from: Colin Walters, Daniel J Walsh, Dave
14555 Reisner, Kay Sievers, Lennart Poettering, Lukas Nykryn, Tollef
14556 Fog Heen, Tom Gundersen, Zbigniew Jędrzejewski-Szmek
14557
597c52cf
LP
14558CHANGES WITH 193:
14559
14560 * journalctl gained a new --cursor= switch to show entries
14561 starting from the specified location in the journal.
14562
14563 * We now enforce a size limit on journal entry fields exported
14564 with "-o json" in journalctl. Fields larger than 4K will be
14565 assigned null. This can be turned off with --all.
14566
14567 * An (optional) journal gateway daemon is now available as
14568 "systemd-journal-gatewayd.service". This service provides
14569 access to the journal via HTTP and JSON. This functionality
14570 will be used to implement live log synchronization in both
14571 pull and push modes, but has various other users too, such
14572 as easy log access for debugging of embedded devices. Right
14573 now it is already useful to retrieve the journal via HTTP:
14574
14575 # systemctl start systemd-journal-gatewayd.service
14576 # wget http://localhost:19531/entries
14577
14578 This will download the journal contents in a
14579 /var/log/messages compatible format. The same as JSON:
14580
14581 # curl -H"Accept: application/json" http://localhost:19531/entries
14582
14583 This service is also accessible via a web browser where a
14584 single static HTML5 app is served that uses the JSON logic
14585 to enable the user to do some basic browsing of the
14586 journal. This will be extended later on. Here's an example
14587 screenshot of this app in its current state:
14588
14589 http://0pointer.de/public/journal-gatewayd
14590
14591 Contributions from: Kay Sievers, Lennart Poettering, Robert
14592 Milasan, Tom Gundersen
14593
075d4ecb
LP
14594CHANGES WITH 192:
14595
14596 * The bash completion logic is now available for journalctl
14597 too.
14598
d28315e4 14599 * We do not mount the "cpuset" controller anymore together with
075d4ecb
LP
14600 "cpu" and "cpuacct", as "cpuset" groups generally cannot be
14601 started if no parameters are assigned to it. "cpuset" hence
61233823 14602 broke code that assumed it could create "cpu" groups and
075d4ecb
LP
14603 just start them.
14604
14605 * journalctl -f will now subscribe to terminal size changes,
14606 and line break accordingly.
14607
597c52cf
LP
14608 Contributions from: Dave Reisner, Kay Sievers, Lennart
14609 Poettering, Lukas Nykrynm, Mirco Tischler, Václav Pavlín
075d4ecb 14610
b6a86739
LP
14611CHANGES WITH 191:
14612
14613 * nspawn will now create a symlink /etc/localtime in the
14614 container environment, copying the host's timezone
14615 setting. Previously this has been done via a bind mount, but
14616 since symlinks cannot be bind mounted this has now been
14617 changed to create/update the appropriate symlink.
14618
14619 * journalctl -n's line number argument is now optional, and
14620 will default to 10 if omitted.
14621
14622 * journald will now log the maximum size the journal files may
14623 take up on disk. This is particularly useful if the default
14624 built-in logic of determining this parameter from the file
14625 system size is used. Use "systemctl status
6563b535 14626 systemd-journald.service" to see this information.
b6a86739
LP
14627
14628 * The multi-seat X wrapper tool has been stripped down. As X
14629 is now capable of enumerating graphics devices via udev in a
14630 seat-aware way the wrapper is not strictly necessary
14631 anymore. A stripped down temporary stop-gap is still shipped
14632 until the upstream display managers have been updated to
14633 fully support the new X logic. Expect this wrapper to be
6563b535 14634 removed entirely in one of the next releases.
b6a86739
LP
14635
14636 * HandleSleepKey= in logind.conf has been split up into
14637 HandleSuspendKey= and HandleHibernateKey=. The old setting
6563b535 14638 is not available anymore. X11 and the kernel are
45afd519 14639 distinguishing between these keys and we should too. This
b6a86739
LP
14640 also means the inhibition lock for these keys has been split
14641 into two.
14642
597c52cf
LP
14643 Contributions from: Dave Airlie, Eelco Dolstra, Lennart
14644 Poettering, Lukas Nykryn, Václav Pavlín
b6a86739 14645
0c11f949
LP
14646CHANGES WITH 190:
14647
d28315e4 14648 * Whenever a unit changes state we will now log this to the
0c11f949
LP
14649 journal and show along the unit's own log output in
14650 "systemctl status".
14651
14652 * ConditionPathIsMountPoint= can now properly detect bind
14653 mount points too. (Previously, a bind mount of one file
8d0256b7 14654 system to another place in the same file system could not be
0c11f949
LP
14655 detected as mount, since they shared struct stat's st_dev
14656 field.)
14657
14658 * We will now mount the cgroup controllers cpu, cpuacct,
14659 cpuset and the controllers net_cls, net_prio together by
14660 default.
14661
14662 * nspawn containers will now have a virtualized boot
14663 ID. (i.e. /proc/sys/kernel/random/boot_id is now mounted
14664 over with a randomized ID at container initialization). This
14665 has the effect of making "journalctl -b" do the right thing
14666 in a container.
14667
14668 * The JSON output journal serialization has been updated not
14669 to generate "endless" list objects anymore, but rather one
14670 JSON object per line. This is more in line how most JSON
14671 parsers expect JSON objects. The new output mode
14672 "json-pretty" has been added to provide similar output, but
14673 neatly aligned for readability by humans.
14674
14675 * We dropped all explicit sync() invocations in the shutdown
14676 code. The kernel does this implicitly anyway in the kernel
14677 reboot() syscall. halt(8)'s -n option is now a compatibility
14678 no-op.
14679
14680 * We now support virtualized reboot() in containers, as
14681 supported by newer kernels. We will fall back to exit() if
14682 CAP_SYS_REBOOT is not available to the container. Also,
14683 nspawn makes use of this now and will actually reboot the
14684 container if the containerized OS asks for that.
14685
14686 * journalctl will only show local log output by default
14687 now. Use --merge (-m) to show remote log output, too.
14688
14689 * libsystemd-journal gained the new sd_journal_get_usage()
14690 call to determine the current disk usage of all journal
14691 files. This is exposed in the new "journalctl --disk-usage"
14692 command.
14693
14694 * journald gained a new configuration setting SplitMode= in
14695 journald.conf which may be used to control how user journals
14696 are split off. See journald.conf(5) for details.
14697
14698 * A new condition type ConditionFileNotEmpty= has been added.
14699
14700 * tmpfiles' "w" lines now support file globbing, to write
14701 multiple files at once.
14702
14703 * We added Python bindings for the journal submission
14704 APIs. More Python APIs for a number of selected APIs will
14705 likely follow. Note that we intend to add native bindings
14706 only for the Python language, as we consider it common
14707 enough to deserve bindings shipped within systemd. There are
14708 various projects outside of systemd that provide bindings
14709 for languages such as PHP or Lua.
14710
a98d5d64
LP
14711 * Many conditions will now resolve specifiers such as %i. In
14712 addition, PathChanged= and related directives of .path units
14713 now support specifiers as well.
0c11f949
LP
14714
14715 * There's now a new RPM macro definition for the system preset
14716 dir: %_presetdir.
14717
d28315e4 14718 * journald will now warn if it ca not forward a message to the
dca348bc 14719 syslog daemon because its socket is full.
0c11f949
LP
14720
14721 * timedated will no longer write or process /etc/timezone,
14722 except on Debian. As we do not support late mounted /usr
14723 anymore /etc/localtime always being a symlink is now safe,
14724 and hence the information in /etc/timezone is not necessary
14725 anymore.
14726
aaccc32c 14727 * logind will now always reserve one VT for a text getty (VT6
0c11f949
LP
14728 by default). Previously if more than 6 X sessions where
14729 started they took up all the VTs with auto-spawned gettys,
14730 so that no text gettys were available anymore.
14731
14732 * udev will now automatically inform the btrfs kernel logic
14733 about btrfs RAID components showing up. This should make
14734 simple hotplug based btrfs RAID assembly work.
14735
14736 * PID 1 will now increase its RLIMIT_NOFILE to 64K by default
14737 (but not for its children which will stay at the kernel
14738 default). This should allow setups with a lot more listening
14739 sockets.
14740
14741 * systemd will now always pass the configured timezone to the
14742 kernel at boot. timedated will do the same when the timezone
14743 is changed.
14744
14745 * logind's inhibition logic has been updated. By default,
14746 logind will now handle the lid switch, the power and sleep
14747 keys all the time, even in graphical sessions. If DEs want
14748 to handle these events on their own they should take the new
14749 handle-power-key, handle-sleep-key and handle-lid-switch
f131770b 14750 inhibitors during their runtime. A simple way to achieve
0c11f949
LP
14751 that is to invoke the DE wrapped in an invocation of:
14752
1d3a473b 14753 systemd-inhibit --what=handle-power-key:handle-sleep-key:handle-lid-switch …
0c11f949
LP
14754
14755 * Access to unit operations is now checked via SELinux taking
14756 the unit file label and client process label into account.
14757
aad803af
LP
14758 * systemd will now notify the administrator in the journal
14759 when he over-mounts a non-empty directory.
14760
14761 * There are new specifiers that are resolved in unit files,
38b38500 14762 for the hostname (%H), the machine ID (%m) and the boot ID
aad803af
LP
14763 (%b).
14764
b6a86739 14765 Contributions from: Allin Cottrell, Auke Kok, Brandon Philips,
0c11f949
LP
14766 Colin Guthrie, Colin Walters, Daniel J Walsh, Dave Reisner,
14767 Eelco Dolstra, Jan Engelhardt, Kay Sievers, Lennart
14768 Poettering, Lucas De Marchi, Lukas Nykryn, Mantas Mikulėnas,
14769 Martin Pitt, Matthias Clasen, Michael Olbrich, Pierre Schmitz,
14770 Shawn Landden, Thomas Hindoe Paaboel Andersen, Tom Gundersen,
14771 Václav Pavlín, Yin Kangkai, Zbigniew Jędrzejewski-Szmek
14772
38a60d71
LP
14773CHANGES WITH 189:
14774
14775 * Support for reading structured kernel messages from
14776 /dev/kmsg has now been added and is enabled by default.
14777
14778 * Support for reading kernel messages from /proc/kmsg has now
14779 been removed. If you want kernel messages in the journal
14780 make sure to run a recent kernel (>= 3.5) that supports
14781 reading structured messages from /dev/kmsg (see
14782 above). /proc/kmsg is now exclusive property of classic
14783 syslog daemons again.
14784
14785 * The libudev API gained the new
14786 udev_device_new_from_device_id() call.
14787
14788 * The logic for file system namespace (ReadOnlyDirectory=,
14789 ReadWriteDirectoy=, PrivateTmp=) has been reworked not to
14790 require pivot_root() anymore. This means fewer temporary
14791 directories are created below /tmp for this feature.
14792
14793 * nspawn containers will now see and receive all submounts
14794 made on the host OS below the root file system of the
14795 container.
14796
14797 * Forward Secure Sealing is now supported for Journal files,
14798 which provide cryptographical sealing of journal files so
14799 that attackers cannot alter log history anymore without this
14800 being detectable. Lennart will soon post a blog story about
14801 this explaining it in more detail.
14802
14803 * There are two new service settings RestartPreventExitStatus=
14804 and SuccessExitStatus= which allow configuration of exit
14805 status (exit code or signal) which will be excepted from the
14806 restart logic, resp. consider successful.
14807
14808 * journalctl gained the new --verify switch that can be used
14809 to check the integrity of the structure of journal files and
14810 (if Forward Secure Sealing is enabled) the contents of
14811 journal files.
14812
14813 * nspawn containers will now be run with /dev/stdin, /dev/fd/
14814 and similar symlinks pre-created. This makes running shells
14815 as container init process a lot more fun.
14816
14817 * The fstab support can now handle PARTUUID= and PARTLABEL=
14818 entries.
14819
14820 * A new ConditionHost= condition has been added to match
14821 against the hostname (with globs) and machine ID. This is
14822 useful for clusters where a single OS image is used to
14823 provision a large number of hosts which shall run slightly
14824 different sets of services.
14825
14826 * Services which hit the restart limit will now be placed in a
14827 failure state.
14828
b6a86739 14829 Contributions from: Bertram Poettering, Dave Reisner, Huang
38a60d71
LP
14830 Hang, Kay Sievers, Lennart Poettering, Lukas Nykryn, Martin
14831 Pitt, Simon Peeters, Zbigniew Jędrzejewski-Szmek
14832
c269cec3
LP
14833CHANGES WITH 188:
14834
14835 * When running in --user mode systemd will now become a
14836 subreaper (PR_SET_CHILD_SUBREAPER). This should make the ps
14837 tree a lot more organized.
14838
14839 * A new PartOf= unit dependency type has been introduced that
14840 may be used to group services in a natural way.
14841
14842 * "systemctl enable" may now be used to enable instances of
14843 services.
14844
14845 * journalctl now prints error log levels in red, and
14846 warning/notice log levels in bright white. It also supports
14847 filtering by log level now.
14848
14849 * cgtop gained a new -n switch (similar to top), to configure
14850 the maximum number of iterations to run for. It also gained
14851 -b, to run in batch mode (accepting no input).
14852
ab06eef8 14853 * The suffix ".service" may now be omitted on most systemctl
c269cec3
LP
14854 command lines involving service unit names.
14855
14856 * There's a new bus call in logind to lock all sessions, as
14857 well as a loginctl verb for it "lock-sessions".
14858
14859 * libsystemd-logind.so gained a new call sd_journal_perror()
14860 that works similar to libc perror() but logs to the journal
14861 and encodes structured information about the error number.
14862
14863 * /etc/crypttab entries now understand the new keyfile-size=
14864 option.
14865
14866 * shutdown(8) now can send a (configurable) wall message when
14867 a shutdown is cancelled.
14868
14869 * The mount propagation mode for the root file system will now
14870 default to "shared", which is useful to make containers work
14871 nicely out-of-the-box so that they receive new mounts from
14872 the host. This can be undone locally by running "mount
14873 --make-rprivate /" if needed.
14874
14875 * The prefdm.service file has been removed. Distributions
14876 should maintain this unit downstream if they intend to keep
14877 it around. However, we recommend writing normal unit files
14878 for display managers instead.
14879
14880 * Since systemd is a crucial part of the OS we will now
14881 default to a number of compiler switches that improve
14882 security (hardening) such as read-only relocations, stack
14883 protection, and suchlike.
14884
14885 * The TimeoutSec= setting for services is now split into
14886 TimeoutStartSec= and TimeoutStopSec= to allow configuration
14887 of individual time outs for the start and the stop phase of
14888 the service.
14889
14890 Contributions from: Artur Zaprzala, Arvydas Sidorenko, Auke
14891 Kok, Bryan Kadzban, Dave Reisner, David Strauss, Harald Hoyer,
14892 Jim Meyering, Kay Sievers, Lennart Poettering, Mantas
14893 Mikulėnas, Martin Pitt, Michal Schmidt, Michal Sekletar, Peter
14894 Alfredsen, Shawn Landden, Simon Peeters, Terence Honles, Tom
14895 Gundersen, Zbigniew Jędrzejewski-Szmek
14896
c4f1b862
LP
14897CHANGES WITH 187:
14898
14899 * The journal and id128 C APIs are now fully documented as man
14900 pages.
14901
14902 * Extra safety checks have been added when transitioning from
14903 the initial RAM disk to the main system to avoid accidental
14904 data loss.
14905
c269cec3 14906 * /etc/crypttab entries now understand the new keyfile-offset=
c4f1b862
LP
14907 option.
14908
14909 * systemctl -t can now be used to filter by unit load state.
14910
14911 * The journal C API gained the new sd_journal_wait() call to
14912 make writing synchronous journal clients easier.
14913
14914 * journalctl gained the new -D switch to show journals from a
14915 specific directory.
14916
14917 * journalctl now displays a special marker between log
14918 messages of two different boots.
14919
14920 * The journal is now explicitly flushed to /var via a service
14921 systemd-journal-flush.service, rather than implicitly simply
14922 by seeing /var/log/journal to be writable.
14923
14924 * journalctl (and the journal C APIs) can now match for much
14925 more complex expressions, with alternatives and
14926 disjunctions.
14927
14928 * When transitioning from the initial RAM disk to the main
14929 system we will now kill all processes in a killing spree to
14930 ensure no processes stay around by accident.
14931
14932 * Three new specifiers may be used in unit files: %u, %h, %s
14933 resolve to the user name, user home directory resp. user
14934 shell. This is useful for running systemd user instances.
14935
14936 * We now automatically rotate journal files if their data
14937 object hash table gets a fill level > 75%. We also size the
14938 hash table based on the configured maximum file size. This
14939 together should lower hash collisions drastically and thus
14940 speed things up a bit.
14941
14942 * journalctl gained the new "--header" switch to introspect
14943 header data of journal files.
14944
6b000af4
LP
14945 * A new setting SystemCallFilters= has been added to services which may
14946 be used to apply deny lists or allow lists to system calls. This is
14947 based on SECCOMP Mode 2 of Linux 3.5.
c4f1b862
LP
14948
14949 * nspawn gained a new --link-journal= switch (and quicker: -j)
14950 to link the container journal with the host. This makes it
14951 very easy to centralize log viewing on the host for all
14952 guests while still keeping the journal files separated.
14953
14954 * Many bugfixes and optimizations
14955
14956 Contributions from: Auke Kok, Eelco Dolstra, Harald Hoyer, Kay
14957 Sievers, Lennart Poettering, Malte Starostik, Paul Menzel, Rex
14958 Tsai, Shawn Landden, Tom Gundersen, Ville Skyttä, Zbigniew
14959 Jędrzejewski-Szmek
14960
b5b4c94a
LP
14961CHANGES WITH 186:
14962
14963 * Several tools now understand kernel command line arguments,
14964 which are only read when run in an initial RAM disk. They
14965 usually follow closely their normal counterparts, but are
14966 prefixed with rd.
14967
14968 * There's a new tool to analyze the readahead files that are
14969 automatically generated at boot. Use:
14970
14971 /usr/lib/systemd/systemd-readahead analyze /.readahead
14972
14973 * We now provide an early debug shell on tty9 if this enabled. Use:
14974
d1f9edaf 14975 systemctl enable debug-shell.service
b5b4c94a
LP
14976
14977 * All plymouth related units have been moved into the Plymouth
14978 package. Please make sure to upgrade your Plymouth version
14979 as well.
14980
14981 * systemd-tmpfiles now supports getting passed the basename of
14982 a configuration file only, in which case it will look for it
14983 in all appropriate directories automatically.
14984
14985 * udevadm info now takes a /dev or /sys path as argument, and
14986 does the right thing. Example:
14987
14988 udevadm info /dev/sda
14989 udevadm info /sys/class/block/sda
14990
14991 * systemctl now prints a warning if a unit is stopped but a
14992 unit that might trigger it continues to run. Example: a
14993 service is stopped but the socket that activates it is left
14994 running.
14995
14996 * "systemctl status" will now mention if the log output was
14997 shortened due to rotation since a service has been started.
14998
14999 * The journal API now exposes functions to determine the
15000 "cutoff" times due to rotation.
15001
15002 * journald now understands SIGUSR1 and SIGUSR2 for triggering
15003 immediately flushing of runtime logs to /var if possible,
15004 resp. for triggering immediate rotation of the journal
15005 files.
15006
15007 * It is now considered an error if a service is attempted to
15008 be stopped that is not loaded.
15009
15010 * XDG_RUNTIME_DIR now uses numeric UIDs instead of usernames.
15011
15012 * systemd-analyze now supports Python 3
15013
15014 * tmpfiles now supports cleaning up directories via aging
15015 where the first level dirs are always kept around but
15016 directories beneath it automatically aged. This is enabled
15017 by prefixing the age field with '~'.
15018
15019 * Seat objects now expose CanGraphical, CanTTY properties
15020 which is required to deal with very fast bootups where the
15021 display manager might be running before the graphics drivers
15022 completed initialization.
15023
15024 * Seat objects now expose a State property.
15025
15026 * We now include RPM macros for service enabling/disabling
15027 based on the preset logic. We recommend RPM based
15028 distributions to make use of these macros if possible. This
15029 makes it simpler to reuse RPM spec files across
15030 distributions.
15031
15032 * We now make sure that the collected systemd unit name is
15033 always valid when services log to the journal via
15034 STDOUT/STDERR.
15035
15036 * There's a new man page kernel-command-line(7) detailing all
15037 command line options we understand.
15038
15039 * The fstab generator may now be disabled at boot by passing
15040 fstab=0 on the kernel command line.
15041
91ac7425 15042 * A new kernel command line option modules-load= is now understood
b5b4c94a
LP
15043 to load a specific kernel module statically, early at boot.
15044
15045 * Unit names specified on the systemctl command line are now
15046 automatically escaped as needed. Also, if file system or
15047 device paths are specified they are automatically turned
15048 into the appropriate mount or device unit names. Example:
15049
15050 systemctl status /home
15051 systemctl status /dev/sda
15052
15053 * The SysVConsole= configuration option has been removed from
15054 system.conf parsing.
15055
15056 * The SysV search path is no longer exported on the D-Bus
15057 Manager object.
15058
ce830873 15059 * The Names= option has been removed from unit file parsing.
b5b4c94a
LP
15060
15061 * There's a new man page bootup(7) detailing the boot process.
15062
15063 * Every unit and every generator we ship with systemd now
15064 comes with full documentation. The self-explanatory boot is
15065 complete.
15066
15067 * A couple of services gained "systemd-" prefixes in their
15068 name if they wrap systemd code, rather than only external
15069 code. Among them fsck@.service which is now
15070 systemd-fsck@.service.
15071
15072 * The HaveWatchdog property has been removed from the D-Bus
15073 Manager object.
15074
15075 * systemd.confirm_spawn= on the kernel command line should now
15076 work sensibly.
15077
15078 * There's a new man page crypttab(5) which details all options
15079 we actually understand.
15080
15081 * systemd-nspawn gained a new --capability= switch to pass
15082 additional capabilities to the container.
15083
15084 * timedated will now read known NTP implementation unit names
5b00c016 15085 from /usr/lib/systemd/ntp-units.d/*.list,
b5b4c94a
LP
15086 systemd-timedated-ntp.target has been removed.
15087
15088 * journalctl gained a new switch "-b" that lists log data of
15089 the current boot only.
15090
15091 * The notify socket is in the abstract namespace again, in
15092 order to support daemons which chroot() at start-up.
15093
15094 * There is a new Storage= configuration option for journald
15095 which allows configuration of where log data should go. This
15096 also provides a way to disable journal logging entirely, so
15097 that data collected is only forwarded to the console, the
15098 kernel log buffer or another syslog implementation.
15099
c4f1b862 15100 * Many bugfixes and optimizations
b5b4c94a 15101
2d938ac7
LP
15102 Contributions from: Auke Kok, Colin Guthrie, Dave Reisner,
15103 David Strauss, Eelco Dolstra, Kay Sievers, Lennart Poettering,
15104 Lukas Nykryn, Michal Schmidt, Michal Sekletar, Paul Menzel,
15105 Shawn Landden, Tom Gundersen
b5b4c94a 15106
2d197285 15107CHANGES WITH 185:
b6a86739 15108
2d197285
KS
15109 * "systemctl help <unit>" now shows the man page if one is
15110 available.
15111
15112 * Several new man pages have been added.
15113
b5b4c94a
LP
15114 * MaxLevelStore=, MaxLevelSyslog=, MaxLevelKMsg=,
15115 MaxLevelConsole= can now be specified in
15116 journald.conf. These options allow reducing the amount of
15117 data stored on disk or forwarded by the log level.
2d197285 15118
b5b4c94a
LP
15119 * TimerSlackNSec= can now be specified in system.conf for
15120 PID1. This allows system-wide power savings.
2d197285
KS
15121
15122 Contributions from: Dave Reisner, Kay Sievers, Lauri Kasanen,
15123 Lennart Poettering, Malte Starostik, Marc-Antoine Perennou,
15124 Matthias Clasen
15125
4c8cd173 15126CHANGES WITH 184:
b6a86739 15127
4c8cd173
LP
15128 * logind is now capable of (optionally) handling power and
15129 sleep keys as well as the lid switch.
15130
15131 * journalctl now understands the syntax "journalctl
15132 /usr/bin/avahi-daemon" to get all log output of a specific
15133 daemon.
15134
15135 * CapabilityBoundingSet= in system.conf now also influences
15136 the capability bound set of usermode helpers of the kernel.
15137
15138 Contributions from: Daniel Drake, Daniel J. Walsh, Gert
15139 Michael Kulyk, Harald Hoyer, Jean Delvare, Kay Sievers,
15140 Lennart Poettering, Matthew Garrett, Matthias Clasen, Paul
15141 Menzel, Shawn Landden, Tero Roponen, Tom Gundersen
15142
ea5943d3 15143CHANGES WITH 183:
b6a86739 15144
187076d4
LP
15145 * Note that we skipped 139 releases here in order to set the
15146 new version to something that is greater than both udev's
15147 and systemd's most recent version number.
15148
194bbe33
KS
15149 * udev: all udev sources are merged into the systemd source tree now.
15150 All future udev development will happen in the systemd tree. It
15151 is still fully supported to use the udev daemon and tools without
15152 systemd running, like in initramfs or other init systems. Building
15153 udev though, will require the *build* of the systemd tree, but
ea5943d3 15154 udev can be properly *run* without systemd.
07cd4fc1 15155
91cf7e5c 15156 * udev: /lib/udev/devices/ are not read anymore; systemd-tmpfiles
f13b388f
KS
15157 should be used to create dead device nodes as workarounds for broken
15158 subsystems.
64661ee7 15159
1d3a473b 15160 * udev: RUN+="socket:…" and udev_monitor_new_from_socket() is
2d13da88
KS
15161 no longer supported. udev_monitor_new_from_netlink() needs to be
15162 used to subscribe to events.
15163
194bbe33
KS
15164 * udev: when udevd is started by systemd, processes which are left
15165 behind by forking them off of udev rules, are unconditionally cleaned
15166 up and killed now after the event handling has finished. Services or
15167 daemons must be started as systemd services. Services can be
ea5943d3 15168 pulled-in by udev to get started, but they can no longer be directly
194bbe33
KS
15169 forked by udev rules.
15170
f13b388f
KS
15171 * udev: the daemon binary is called systemd-udevd now and installed
15172 in /usr/lib/systemd/. Standalone builds or non-systemd systems need
15173 to adapt to that, create symlink, or rename the binary after building
15174 it.
15175
ea5943d3 15176 * libudev no longer provides these symbols:
c1959569
KS
15177 udev_monitor_from_socket()
15178 udev_queue_get_failed_list_entry()
15179 udev_get_{dev,sys,run}_path()
ea5943d3 15180 The versions number was bumped and symbol versioning introduced.
c1959569 15181
ea5943d3 15182 * systemd-loginctl and systemd-journalctl have been renamed
9ae9afce 15183 to loginctl and journalctl to match systemctl.
18b754d3
KS
15184
15185 * The config files: /etc/systemd/systemd-logind.conf and
15186 /etc/systemd/systemd-journald.conf have been renamed to
15187 logind.conf and journald.conf. Package updates should rename
15188 the files to the new names on upgrade.
15189
ea5943d3
LP
15190 * For almost all files the license is now LGPL2.1+, changed
15191 from the previous GPL2.0+. Exceptions are some minor stuff
15192 of udev (which will be changed to LGPL2.1 eventually, too),
15193 and the MIT licensed sd-daemon.[ch] library that is suitable
15194 to be used as drop-in files.
15195
15196 * systemd and logind now handle system sleep states, in
49f43d5f 15197 particular suspending and hibernating.
ea5943d3
LP
15198
15199 * logind now implements a sleep/shutdown/idle inhibiting logic
15200 suitable for a variety of uses. Soonishly Lennart will blog
15201 about this in more detail.
15202
15203 * var-run.mount and var-lock.mount are no longer provided
ce830873 15204 (which previously bind mounted these directories to their new
ea5943d3
LP
15205 places). Distributions which have not converted these
15206 directories to symlinks should consider stealing these files
15207 from git history and add them downstream.
15208
15209 * We introduced the Documentation= field for units and added
15210 this to all our shipped units. This is useful to make it
3943231c 15211 easier to explore the boot and the purpose of the various
ea5943d3
LP
15212 units.
15213
15214 * All smaller setup units (such as
15215 systemd-vconsole-setup.service) now detect properly if they
15216 are run in a container and are skipped when
15217 appropriate. This guarantees an entirely noise-free boot in
15218 Linux container environments such as systemd-nspawn.
15219
15220 * A framework for implementing offline system updates is now
15221 integrated, for details see:
a794a4d8 15222 https://www.freedesktop.org/software/systemd/man/systemd.offline-updates.html
ea5943d3
LP
15223
15224 * A new service type Type=idle is available now which helps us
15225 avoiding ugly interleaving of getty output and boot status
15226 messages.
15227
439d6dfd
LP
15228 * There's now a system-wide CapabilityBoundingSet= option to
15229 globally reduce the set of capabilities for the
ea5943d3
LP
15230 system. This is useful to drop CAP_SYS_MKNOD, CAP_SYS_RAWIO,
15231 CAP_NET_RAW, CAP_SYS_MODULE, CAP_SYS_TIME, CAP_SYS_PTRACE or
15232 even CAP_NET_ADMIN system-wide for secure systems.
15233
15234 * There are now system-wide DefaultLimitXXX= options to
15235 globally change the defaults of the various resource limits
15236 for all units started by PID 1.
15237
15238 * Harald Hoyer's systemd test suite has been integrated into
15239 systemd which allows easy testing of systemd builds in qemu
15240 and nspawn. (This is really awesome! Ask us for details!)
15241
3943231c
LP
15242 * The fstab parser is now implemented as generator, not inside
15243 of PID 1 anymore.
ea5943d3
LP
15244
15245 * systemctl will now warn you if .mount units generated from
15246 /etc/fstab are out of date due to changes in fstab that
d28315e4 15247 have not been read by systemd yet.
ea5943d3
LP
15248
15249 * systemd is now suitable for usage in initrds. Dracut has
15250 already been updated to make use of this. With this in place
15251 initrds get a slight bit faster but primarily are much
15252 easier to introspect and debug since "systemctl status" in
15253 the host system can be used to introspect initrd services,
15254 and the journal from the initrd is kept around too.
15255
15256 * systemd-delta has been added, a tool to explore differences
15257 between user/admin configuration and vendor defaults.
15258
15259 * PrivateTmp= now affects both /tmp and /var/tmp.
15260
15261 * Boot time status messages are now much prettier and feature
15262 proper english language. Booting up systemd has never been
15263 so sexy.
15264
15265 * Read-ahead pack files now include the inode number of all
15266 files to pre-cache. When the inode changes the pre-caching
15267 is not attempted. This should be nicer to deal with updated
15268 packages which might result in changes of read-ahead
15269 patterns.
15270
15271 * We now temporaritly lower the kernel's read_ahead_kb variable
15272 when collecting read-ahead data to ensure the kernel's
15273 built-in read-ahead does not add noise to our measurements
15274 of necessary blocks to pre-cache.
15275
15276 * There's now RequiresMountsFor= to add automatic dependencies
15277 for all mounts necessary for a specific file system path.
15278
15279 * MountAuto= and SwapAuto= have been removed from
15280 system.conf. Mounting file systems at boot has to take place
15281 in systemd now.
15282
15283 * nspawn now learned a new switch --uuid= to set the machine
15284 ID on the command line.
15285
f8c0a2cb 15286 * nspawn now learned the -b switch to automatically search
ea5943d3
LP
15287 for an init system.
15288
15289 * vt102 is now the default TERM for serial TTYs, upgraded from
15290 vt100.
15291
15292 * systemd-logind now works on VT-less systems.
15293
15294 * The build tree has been reorganized. The individual
3943231c 15295 components now have directories of their own.
ea5943d3
LP
15296
15297 * A new condition type ConditionPathIsReadWrite= is now available.
15298
15299 * nspawn learned the new -C switch to create cgroups for the
15300 container in other hierarchies.
15301
15302 * We now have support for hardware watchdogs, configurable in
15303 system.conf.
15304
15305 * The scheduled shutdown logic now has a public API.
15306
15307 * We now mount /tmp as tmpfs by default, but this can be
15308 masked and /etc/fstab can override it.
15309
d28315e4 15310 * Since udisks does not make use of /media anymore we are not
ea5943d3
LP
15311 mounting a tmpfs on it anymore.
15312
15313 * journalctl gained a new --local switch to only interleave
15314 locally generated journal files.
15315
15316 * We can now load the IMA policy at boot automatically.
15317
15318 * The GTK tools have been split off into a systemd-ui.
15319
79849bf9
LP
15320 Contributions from: Andreas Schwab, Auke Kok, Ayan George,
15321 Colin Guthrie, Daniel Mack, Dave Reisner, David Ward, Elan
15322 Ruusamäe, Frederic Crozat, Gergely Nagy, Guillermo Vidal,
15323 Hannes Reinecke, Harald Hoyer, Javier Jardón, Kay Sievers,
15324 Lennart Poettering, Lucas De Marchi, Léo Gillot-Lamure,
15325 Marc-Antoine Perennou, Martin Pitt, Matthew Monaco, Maxim
15326 A. Mikityanskiy, Michael Biebl, Michael Olbrich, Michal
15327 Schmidt, Nis Martensen, Patrick McCarty, Roberto Sassu, Shawn
15328 Landden, Sjoerd Simons, Sven Anders, Tollef Fog Heen, Tom
15329 Gundersen
15330
16f1239e 15331CHANGES WITH 44:
b6a86739 15332
16f1239e
LP
15333 * This is mostly a bugfix release
15334
15335 * Support optional initialization of the machine ID from the
15336 KVM or container configured UUID.
15337
15338 * Support immediate reboots with "systemctl reboot -ff"
15339
15340 * Show /etc/os-release data in systemd-analyze output
15341
ab06eef8 15342 * Many bugfixes for the journal, including endianness fixes and
16f1239e
LP
15343 ensuring that disk space enforcement works
15344
ce830873 15345 * sd-login.h is C++ compatible again
16f1239e
LP
15346
15347 * Extend the /etc/os-release format on request of the Debian
15348 folks
15349
15350 * We now refuse non-UTF8 strings used in various configuration
d28315e4 15351 and unit files. This is done to ensure we do not pass invalid
16f1239e
LP
15352 data over D-Bus or expose it elsewhere.
15353
15354 * Register Mimo USB Screens as suitable for automatic seat
15355 configuration
15356
15357 * Read SELinux client context from journal clients in a race
15358 free fashion
15359
15360 * Reorder configuration file lookup order. /etc now always
15361 overrides /run in order to allow the administrator to always
b938cb90 15362 and unconditionally override vendor-supplied or
16f1239e
LP
15363 automatically generated data.
15364
15365 * The various user visible bits of the journal now have man
15366 pages. We still lack man pages for the journal API calls
15367 however.
15368
15369 * We now ship all man pages in HTML format again in the
15370 tarball.
15371
15372 Contributions from: Dave Reisner, Dirk Eibach, Frederic
15373 Crozat, Harald Hoyer, Kay Sievers, Lennart Poettering, Marti
15374 Raudsepp, Michal Schmidt, Shawn Landden, Tero Roponen, Thierry
15375 Reding
15376
437b7dee 15377CHANGES WITH 43:
b6a86739 15378
437b7dee
LP
15379 * This is mostly a bugfix release
15380
15381 * systems lacking /etc/os-release are no longer supported.
15382
15383 * Various functionality updates to libsystemd-login.so
15384
45afd519 15385 * Track class of PAM logins to distinguish greeters from
437b7dee
LP
15386 normal user logins.
15387
15388 Contributions from: Kay Sievers, Lennart Poettering, Michael
15389 Biebl
15390
204fa33c 15391CHANGES WITH 42:
b6a86739 15392
204fa33c
LP
15393 * This is an important bugfix release for v41.
15394
15395 * Building man pages is now optional which should be useful
15396 for those building systemd from git but unwilling to install
15397 xsltproc.
15398
15399 * Watchdog support for supervising services is now usable. In
15400 a future release support for hardware watchdogs
15401 (i.e. /dev/watchdog) will be added building on this.
15402
15403 * Service start rate limiting is now configurable and can be
15404 turned off per service. When a start rate limit is hit a
15405 reboot can automatically be triggered.
15406
15407 * New CanReboot(), CanPowerOff() bus calls in systemd-logind.
15408
15409 Contributions from: Benjamin Franzke, Bill Nottingham,
15410 Frederic Crozat, Lennart Poettering, Michael Olbrich, Michal
15411 Schmidt, Michał Górny, Piotr Drąg
15412
e0d25329 15413CHANGES WITH 41:
b6a86739 15414
e0d25329
KS
15415 * The systemd binary is installed /usr/lib/systemd/systemd now;
15416 An existing /sbin/init symlink needs to be adapted with the
15417 package update.
15418
b13df964
LP
15419 * The code that loads kernel modules has been ported to invoke
15420 libkmod directly, instead of modprobe. This means we do not
15421 support systems with module-init-tools anymore.
15422
15423 * Watchdog support is now already useful, but still not
15424 complete.
15425
15426 * A new kernel command line option systemd.setenv= is
15427 understood to set system wide environment variables
15428 dynamically at boot.
15429
e9c1ea9d 15430 * We now limit the set of capabilities of systemd-journald.
ccd07a08 15431
353e12c2
LP
15432 * We now set SIGPIPE to ignore by default, since it only is
15433 useful in shell pipelines, and has little use in general
15434 code. This can be disabled with IgnoreSIPIPE=no in unit
15435 files.
15436
b13df964
LP
15437 Contributions from: Benjamin Franzke, Kay Sievers, Lennart
15438 Poettering, Michael Olbrich, Michal Schmidt, Tom Gundersen,
15439 William Douglas
15440
d26e4270 15441CHANGES WITH 40:
b6a86739 15442
d26e4270
LP
15443 * This is mostly a bugfix release
15444
15445 * We now expose the reason why a service failed in the
15446 "Result" D-Bus property.
15447
15448 * Rudimentary service watchdog support (will be completed over
15449 the next few releases.)
15450
15451 * When systemd forks off in order execute some service we will
15452 now immediately changes its argv[0] to reflect which process
15453 it will execute. This is useful to minimize the time window
15454 with a generic argv[0], which makes bootcharts more useful
15455
b13df964
LP
15456 Contributions from: Alvaro Soliverez, Chris Paulson-Ellis, Kay
15457 Sievers, Lennart Poettering, Michael Olbrich, Michal Schmidt,
15458 Mike Kazantsev, Ray Strode
15459
220a21d3 15460CHANGES WITH 39:
b6a86739 15461
220a21d3
LP
15462 * This is mostly a test release, but incorporates many
15463 bugfixes.
15464
15465 * New systemd-cgtop tool to show control groups by their
15466 resource usage.
15467
15468 * Linking against libacl for ACLs is optional again. If
15469 disabled, support tracking device access for active logins
15470 goes becomes unavailable, and so does access to the user
15471 journals by the respective users.
15472
15473 * If a group "adm" exists, journal files are automatically
15474 owned by them, thus allow members of this group full access
15475 to the system journal as well as all user journals.
15476
15477 * The journal now stores the SELinux context of the logging
15478 client for all entries.
15479
15480 * Add C++ inclusion guards to all public headers
15481
15482 * New output mode "cat" in the journal to print only text
15483 messages, without any meta data like date or time.
15484
15485 * Include tiny X server wrapper as a temporary stop-gap to
15486 teach XOrg udev display enumeration. This is used by display
15487 managers such as gdm, and will go away as soon as XOrg
15488 learned native udev hotplugging for display devices.
15489
15490 * Add new systemd-cat tool for executing arbitrary programs
15491 with STDERR/STDOUT connected to the journal. Can also act as
15492 BSD logger replacement, and does so by default.
15493
15494 * Optionally store all locally generated coredumps in the
15495 journal along with meta data.
15496
15497 * systemd-tmpfiles learnt four new commands: n, L, c, b, for
15498 writing short strings to files (for usage for /sys), and for
15499 creating symlinks, character and block device nodes.
15500
15501 * New unit file option ControlGroupPersistent= to make cgroups
15502 persistent, following the mechanisms outlined in
56cadcb6 15503 https://www.freedesktop.org/wiki/Software/systemd/PaxControlGroups
220a21d3
LP
15504
15505 * Support multiple local RTCs in a sane way
15506
15507 * No longer monopolize IO when replaying readahead data on
15508 rotating disks, since we might starve non-file-system IO to
15509 death, since fanotify() will not see accesses done by blkid,
15510 or fsck.
15511
d28315e4 15512 * Do not show kernel threads in systemd-cgls anymore, unless
220a21d3
LP
15513 requested with new -k switch.
15514
15515 Contributions from: Dan Horák, Kay Sievers, Lennart
15516 Poettering, Michal Schmidt
15517
15518CHANGES WITH 38:
b6a86739 15519
220a21d3
LP
15520 * This is mostly a test release, but incorporates many
15521 bugfixes.
15522
15523 * The git repository moved to:
15524 git://anongit.freedesktop.org/systemd/systemd
15525 ssh://git.freedesktop.org/git/systemd/systemd
15526
15527 * First release with the journal
15528 http://0pointer.de/blog/projects/the-journal.html
15529
15530 * The journal replaces both systemd-kmsg-syslogd and
15531 systemd-stdout-bridge.
15532
15533 * New sd_pid_get_unit() API call in libsystemd-logind
15534
15535 * Many systemadm clean-ups
15536
15537 * Introduce remote-fs-pre.target which is ordered before all
15538 remote mounts and may be used to start services before all
15539 remote mounts.
15540
15541 * Added Mageia support
15542
15543 * Add bash completion for systemd-loginctl
15544
15545 * Actively monitor PID file creation for daemons which exit in
15546 the parent process before having finished writing the PID
15547 file in the daemon process. Daemons which do this need to be
15548 fixed (i.e. PID file creation must have finished before the
15549 parent exits), but we now react a bit more gracefully to them.
15550
15551 * Add colourful boot output, mimicking the well-known output
15552 of existing distributions.
15553
15554 * New option PassCredentials= for socket units, for
15555 compatibility with a recent kernel ABI breakage.
15556
15557 * /etc/rc.local is now hooked in via a generator binary, and
15558 thus will no longer act as synchronization point during
15559 boot.
15560
15561 * systemctl list-unit-files now supports --root=.
15562
15563 * systemd-tmpfiles now understands two new commands: z, Z for
15564 relabelling files according to the SELinux database. This is
15565 useful to apply SELinux labels to specific files in /sys,
15566 among other things.
15567
15568 * Output of SysV services is now forwarded to both the console
15569 and the journal by default, not only just the console.
15570
15571 * New man pages for all APIs from libsystemd-login.
15572
ce830873 15573 * The build tree got reorganized and the build system is a
220a21d3
LP
15574 lot more modular allowing embedded setups to specifically
15575 select the components of systemd they are interested in.
15576
15577 * Support for Linux systems lacking the kernel VT subsystem is
15578 restored.
15579
15580 * configure's --with-rootdir= got renamed to
15581 --with-rootprefix= to follow the naming used by udev and
15582 kmod
15583
d28315e4 15584 * Unless specified otherwise we will now install to /usr instead
220a21d3
LP
15585 of /usr/local by default.
15586
15587 * Processes with '@' in argv[0][0] are now excluded from the
15588 final shut-down killing spree, following the logic explained
15589 in:
a794a4d8 15590 https://systemd.io/ROOT_STORAGE_DAEMONS/
220a21d3
LP
15591
15592 * All processes remaining in a service cgroup when we enter
15593 the START or START_PRE states are now killed with
15594 SIGKILL. That means it is no longer possible to spawn
15595 background processes from ExecStart= lines (which was never
15596 supported anyway, and bad style).
15597
15598 * New PropagateReloadTo=/PropagateReloadFrom= options to bind
15599 reloading of units together.
15600
4c8cd173 15601 Contributions from: Bill Nottingham, Daniel J. Walsh, Dave
220a21d3
LP
15602 Reisner, Dexter Morgan, Gregs Gregs, Jonathan Nieder, Kay
15603 Sievers, Lennart Poettering, Michael Biebl, Michal Schmidt,
15604 Michał Górny, Ran Benita, Thomas Jarosch, Tim Waugh, Tollef
15605 Fog Heen, Tom Gundersen, Zbigniew Jędrzejewski-Szmek