]> git.ipfire.org Git - thirdparty/systemd.git/blame - NEWS
Merge pull request #23412 from yuwata/network-bond-param
[thirdparty/systemd.git] / NEWS
CommitLineData
d657c51f 1systemd System and Service Manager
220a21d3 2
73849408 3CHANGES WITH 251:
00b29ca1
ZJS
4
5 Backwards-incompatible changes:
6
61ade257 7 * The minimum kernel version required has been bumped from 3.13 to 4.15,
b586cbde
LB
8 and CLOCK_BOOTTIME is now assumed to always exist.
9
7503fbd4 10 * C11 with GNU extensions (aka "gnu11") is now used to build our
8c70e802 11 components. Public API headers are still restricted to ISO C89.
7503fbd4 12
00b29ca1
ZJS
13 * In v250, a systemd-networkd feature that automatically configures
14 routes to addresses specified in AllowedIPs= was added and enabled by
15 default. However, this causes network connectivity issues in many
16 existing setups. Hence, it has been disabled by default since
17 systemd-stable 250.3. The feature can still be used by explicitly
18 configuring RouteTable= setting in .netdev files.
1d2842d1 19
169bb1de
LB
20 * Jobs started via StartUnitWithFlags() will no longer return 'skipped'
21 when a Condition*= check does not succeed, restoring the JobRemoved
22 signal to the behaviour it had before v250.
23
e1f0c136
LP
24 * The org.freedesktop.portable1 methods GetMetadataWithExtensions() and
25 GetImageMetadataWithExtensions() have been fixed to provide an extra
00b29ca1
ZJS
26 return parameter, containing the actual extension release metadata.
27 The current implementation was judged to be broken and unusable, and
28 thus the usual procedure of adding a new set of methods was skipped,
29 and backward compatibility broken instead on the assumption that
30 nobody can be affected given the current state of this interface.
ce3ca32c 31
00b29ca1
ZJS
32 * All kernels supported by systemd mix RDRAND (or similar) into the
33 entropy pool at early boot. This means that on those systems, even if
34 /dev/urandom is not yet initialized, it still returns bytes that that
35 are at least as high quality as RDRAND. For that reason, we no longer
36 have reason to invoke RDRAND from systemd itself, which has
37 historically been a source of bugs. Furthermore, kernels ≥5.6 provide
38 the getrandom(GRND_INSECURE) interface for returning random bytes
39 before the entropy pool is initialized without warning into kmsg,
40 which is what we attempt to use if available. systemd's direct usage
41 of RDRAND has been removed. x86 systems ≥Broadwell that are running
42 an older kernel may experience kmsg warnings that were not seen with
43 250. For newer kernels, non-x86 systems, or older x86 systems, there
44 should be no visible changes.
45
46 * sd-boot will now measure the kernel command line into TPM PCR 12
47 rather than PCR 8. This improves usefulness of the measurements on
60f53dd5 48 systems where sd-boot is chainloaded from Grub. Grub measures all
00b29ca1
ZJS
49 commands its executes into PCR 8, which makes it very hard to use
50 reasonably, hence separate ourselves from that and use PCR 12
51 instead, which is what certain Ubuntu editions already do. To retain
0f6f9dc6 52 compatibility with systems running older systemd systems a new meson
00b29ca1
ZJS
53 option 'efi-tpm-pcr-compat' has been added (which defaults to false).
54 If enabled, the measurement is done twice: into the new-style PCR 12
55 *and* the old-style PCR 8. It's strongly advised to migrate all users
56 to PCR 12 for this purpose in the long run, as we intend to remove
57 this compatibility feature in two year's time.
58
59 * busctl capture now writes output in the newer pcapng format instead
60 of pcap.
61
62 * An udev rule that imported hwdb matches for USB devices with
60a777b5
LP
63 lowercase hexadecimal vendor/product ID digits was added in systemd
64 250. This has been reverted, since uppercase hexadecimal digits are
65 supposed to be used, and we already had a rule that with the
66 appropriate match.
00b29ca1
ZJS
67
68 Users might need to adjust their local hwdb entries.
69
e1f0c136
LP
70 * arch_prctl(2) has been moved to the @default set in the syscall filters
71 (as exposed via the SystemCallFilter= setting in service unit files).
00b29ca1
ZJS
72 It is apparently used by the linker now.
73
eb1446f8
DDM
74 * The tmpfiles entries that create the /run/systemd/netif directory and
75 its subdirectories were moved from tmpfiles.d/systemd.conf to
76 tmpfiles.d/systemd-network.conf.
77
78 Users might need to adjust their files that override tmpfiles.d/systemd.conf
79 to account for this change.
80
942473dc 81 Changes in the Boot Loader Specification, kernel-install and sd-boot:
00b29ca1 82
5e9c57d2
LP
83 * kernel-install's and bootctl's Boot Loader Specification Type #1
84 entry generation logic has been reworked. The user may now pick
85 explicitly by which "token" string to name the installation's boot
00b29ca1 86 entries, via the new /etc/kernel/entry-token file or the new
5e9c57d2
LP
87 --entry-token= switch to bootctl. By default — as before — the
88 entries are named after the local machine ID. However, in "golden
89 image" environments, where the machine ID shall be initialized on
90 first boot (as opposed to at installation time before first boot) the
e1f0c136 91 machine ID will not be available at build time. In this case the
00b29ca1
ZJS
92 --entry-token= switch to bootctl (or the /etc/kernel/entry-token
93 file) may be used to override the "token" for the entries, for
94 example the IMAGE_ID= or ID= fields from /etc/os-release. This will
95 make the OS images independent of any machine ID, and ensure that the
96 images will not carry any identifiable information before first boot,
97 but on the other hand means that multiple parallel installations of
98 the very same image on the same disk cannot be supported.
5e9c57d2 99
00b29ca1
ZJS
100 Summary: if you are building golden images that shall acquire
101 identity information exclusively on first boot, make sure to both
102 remove /etc/machine-id *and* to write /etc/kernel/entry-token to the
e1f0c136 103 value of the IMAGE_ID= or ID= field of /etc/os-release or another
00b29ca1 104 suitable identifier before deploying the image.
deb5c820 105
00b29ca1 106 * The Boot Loader Specification has been extended with
e1f0c136
LP
107 /loader/entries.srel file located in the EFI System Partition (ESP)
108 that disambiguates the format of the entries in the /loader/entries/
109 directory (in order to discern them from incompatible uses of this
110 directory by other projects). For entries that follow the
111 Specification, the string "type1" is stored in this file.
3fbd5f20 112
e1f0c136
LP
113 bootctl will now write this file automatically when installing the
114 systemd-boot boot loader.
00b29ca1
ZJS
115
116 * kernel-install supports a new initrd_generator= setting in
117 /etc/kernel/install.conf, that is exported as
118 $KERNEL_INSTALL_INITRD_GENERATOR to kernel-install plugins. This
e1f0c136 119 allows choosing different initrd generators.
00b29ca1
ZJS
120
121 * kernel-install will now create a "staging area" (an initially-empty
122 directory to gather files for a Boot Loader Specification Type #1
123 entry). The path to this directory is exported as
124 $KERNEL_INSTALL_STAGING_AREA to kernel-install plugins, which should
125 drop files there instead of writing them directly to the final
126 location. kernel-install will move them when all files have been
127 prepared successfully.
429cddba 128
0c6e746b
YW
129 * New option sort-key= has been added to the Boot Loader Specification
130 to override the sorting order of the entries in the boot menu. It is
131 read by sd-boot and bootctl, and will be written by kernel-install,
132 with the default value of IMAGE_ID= or ID= fields from
133 os-release. Together, this means that on multiboot installations,
134 entries should be grouped and sorted in a predictable way.
135
942473dc
ZJS
136 * The sort order of boot entries has been updated: entries which have
137 the new field sort-key= are sorted by it first, and all entries
138 without it are ordered later. After that, entries are sorted by
139 version so that newest entries are towards the beginning of the list.
140
0c6e746b
YW
141 * The kernel-install tool gained a new 'inspect' verb which shows the
142 paths and other settings used.
143
144 * sd-boot can now optionally beep when the menu is shown and menu
145 entries are selected, which can be useful on machines without a
146 working display. (Controllable via a loader.conf setting.)
147
148 * The --make-machine-id-directory= switch to bootctl has been replaced
149 by --make-entry-directory=, given that the entry directory is not
150 necessarily named after the machine ID, but after some other suitable
151 ID as selected via --entry-token= described above. The old name of
152 the option is still understood to maximize compatibility.
153
154 * 'bootctl list' gained support for a new --json= switch to output boot
155 menu entries in JSON format.
156
211b564a
ZJS
157 * 'bootctl is-installed' now supports the --graceful, and various verbs
158 omit output with the new option --quiet.
159
942473dc 160 Changes in systemd-homed:
0c6e746b 161
dfdaf9f2
LP
162 * Starting with v250 systemd-homed uses UID/GID mapping on the mounts
163 of activated home directories it manages (if the kernel and selected
164 file systems support it). So far it mapped three UID ranges: the
165 range from 0…60000, the user's own UID, and the range 60514…65534,
166 leaving everything else unmapped (in other words, the 16bit UID range
167 is mapped almost fully, with the exception of the UID subrange used
00b29ca1
ZJS
168 for systemd-homed users, with one exception: the user's own UID).
169 Unmapped UIDs may not be used for file ownership in the home
5cf84d25 170 directory — any chown() attempts with them will fail. With this
dfdaf9f2
LP
171 release a fourth range is added to these mappings:
172 524288…1879048191. This range is the UID range intended for container
173 uses, see:
174
175 https://systemd.io/UIDS-GIDS
176
177 This range may be used for container managers that place container OS
178 trees in the home directory (which is a questionable approach, for
179 quota, permission, SUID handling and network file system
180 compatibility reasons, but nonetheless apparently commonplace). Note
181 that this mapping is mapped 1:1 in a pass-through fashion, i.e. the
182 UID assignments from the range are not managed or mapped by
183 `systemd-homed`, and must be managed with other mechanisms, in the
184 context of the local system.
185
186 Typically, a better approach to user namespacing in relevant
187 container managers would be to leave container OS trees on disk at
188 UID offset 0, but then map them to a dynamically allocated runtime
189 UID range via another UID mount map at container invocation
190 time. That way user namespace UID ranges become strictly a runtime
191 concept, and do not leak into persistent file systems, persistent
192 user databases or persistent configuration, thus greatly simplifying
193 handling, and improving compatibility with home directories intended
194 to be portable like the ones managed by systemd-homed.
7e7a9f9c 195
942473dc 196 Changes in shared libraries:
00b29ca1
ZJS
197
198 * A new libsystemd-core-<version>.so private shared library is
199 installed under /usr/lib/systemd/system, mirroring the existing
200 libsystemd-shared-<version>.so library. This allows the total
e1f0c136 201 installation size to be reduced by binary code reuse.
00b29ca1 202
e1f0c136 203 * The <version> tag used in the name of libsystemd-shared.so and
0f6f9dc6
ZJS
204 libsystemd-core.so can be configured via the meson option
205 'shared-lib-tag'. Distributions may build subsequent versions of the
206 systemd package with unique tags (e.g. the full package version),
207 thus allowing multiple installations of those shared libraries to be
208 available at the same time. This is intended to fix an issue where
209 programs that link to those libraries would fail to execute because
210 they were installed earlier or later than the appropriate version of
211 the library.
00b29ca1 212
0c6e746b
YW
213 * The sd-id128 API gained a new call sd_id128_to_uuid_string() that is
214 similar to sd_id128_to_string() but formats the ID in RFC 4122 UUID
215 format instead of simple series of hex characters.
216
61ade257
LP
217 * The sd-device API gained two new calls sd_device_new_from_devname()
218 and sd_device_new_from_path() which permit allocating an sd_device
219 object from a device node name or file system path.
220
221 * sd-device also gained a new call sd_device_open() which will open the
222 device node associated with a device for which an sd_device object
223 has been allocated. The call is supposed to address races around
224 device nodes being removed/recycled due to hotplug events, or media
225 change events: the call checks internally whether the major/minor of
226 the device node and the "diskseq" (in case of block devices) match
227 with the metadata loaded in the sd_device object, thus ensuring that
228 the device once opened really matches the provided sd_device object.
229
942473dc 230 Changes in PID1, systemctl, and systemd-oomd:
0c6e746b 231
a8c122c4
LB
232 * A new set of service monitor environment variables will be passed to
233 OnFailure=/OnSuccess= handlers, but only if exactly one unit lists the
234 handler unit as OnFailure=/OnSuccess=. The variables are:
235 $MONITOR_SERVICE_RESULT, $MONITOR_EXIT_CODE, $MONITOR_EXIT_STATUS,
236 $MONITOR_INVOCATION_ID and $MONITOR_UNIT. For cases when a single
237 handler needs to watch multiple units, use a templated handler.
238
e1f0c136
LP
239 * A new ExtensionDirectories= setting in service unit files allows
240 system extensions to be loaded from a directory. (It is similar to
241 ExtensionImages=, but takes paths to directories, instead of
242 disk image files.)
00b29ca1 243
e1f0c136 244 'portablectl attach --extension=' now also accepts directory paths.
00b29ca1 245
e1f0c136
LP
246 * The user.delegate and user.invocation_id extended attributes on
247 cgroups are used in addition to trusted.delegate and
248 trusted.invocation_id. The latter pair requires privileges to set,
249 but the former doesn't and can be also set by the unprivileged user
250 manager.
00b29ca1
ZJS
251
252 (Only supported on kernels ≥5.6.)
253
942473dc
ZJS
254 * Units that were killed by systemd-oomd will now have a service result
255 of 'oom-kill'. The number of times a service was killed is tallied
256 in the 'user.oomd_ooms' extended attribute.
257
258 The OOMPolicy= unit file setting is now also honoured by
259 systemd-oomd.
260
e1f0c136
LP
261 * In unit files the new %y/%Y specifiers can be used to refer to
262 normalized unit file path, which is particularly useful for symlinked
263 unit files.
00b29ca1 264
d0aba07f 265 The new %q specifier resolves to the pretty hostname
e1f0c136 266 (i.e. PRETTY_HOSTNAME= from /etc/machine-info).
00b29ca1 267
e1f0c136
LP
268 The new %d specifier resolves to the credentials directory of a
269 service (same as $CREDENTIALS_DIRECTORY).
00b29ca1 270
f72f8021
LB
271 * The RootDirectory=, MountAPIVFS=, ExtensionDirectories=,
272 *Capabilities*=, ProtectHome=, *Directory=, TemporaryFileSystem=,
273 PrivateTmp=, PrivateDevices=, PrivateNetwork=, NetworkNamespacePath=,
274 PrivateIPC=, IPCNamespacePath=, PrivateUsers=, ProtectClock=,
275 ProtectKernelTunables=, ProtectKernelModules=, ProtectKernelLogs=,
276 MountFlags= service settings now also work in unprivileged user
277 services, i.e. those run by the user's --user service manager, as long
278 as user namespaces are enabled on the system.
60a777b5 279
e1f0c136
LP
280 * Services with Restart=always and a failing ExecCondition= will no
281 longer be restarted, to bring ExecCondition= behaviour in line with
282 Condition*= settings.
00b29ca1
ZJS
283
284 * LoadCredential= now accepts a directory as the argument; all files
e1f0c136 285 from the directory will be loaded as credentials.
00b29ca1 286
60a777b5
LP
287 * A new D-Bus property ControlGroupId is now exposed on service units,
288 that encapsulates the service's numeric cgroup ID that newer kernels
d6297626 289 assign to each cgroup.
60a777b5 290
0c6e746b
YW
291 * PID 1 gained support for configuring the "pre-timeout" of watchdog
292 devices and the associated governor, via the new
293 RuntimeWatchdogPreSec= and RuntimeWatchdogPreGovernor= configuration
294 options in /etc/systemd/system.conf.
00b29ca1 295
0c6e746b
YW
296 * systemctl's --timestamp= option gained a new choice "unix", to show
297 timestamp as unix times, i.e. seconds since 1970, Jan 1st.
298
61ade257
LP
299 * A new "taint" flag named "old-kernel" is introduced which is set when
300 the kernel systemd runs on is older then the current baseline version
301 (see above). The flag is shown in "systemctl status" output.
302
303 * Two additional taint flags "short-uid-range" and "short-gid-range"
304 have been added as well, which are set when systemd notices it is run
305 within a userns namespace that does not define the full 0…65535 UID
306 range
307
308 * A new "unmerged-usr" taint flag has been added that is set whenever
309 running on systems where /bin/ + /sbin/ are *not* symlinks to their
310 counterparts in /usr/, i.e. on systems where the /usr/-merge has been
311 completed.
312
313 * Generators invoked by PID 1 will now have a couple of useful
314 environment variables set describing the execution context a
315 bit. $SYSTEMD_SCOPE encodes whether the generator is called from the
316 system service manager, or from the per-user service
317 manager. $SYSTEMD_IN_INITRD encodes whether the generator is invoked
318 in initrd context or on the host. $SYSTEMD_FIRST_BOOT encodes whether
319 systemd considers the current boot to be a "first"
320 boot. $SYSTEMD_VIRTUALIZATION encode whether virtualization is
321 detected and which type of hypervisor/container
322 manager. $SYSTEMD_ARCHITECTURE indicates which architecture the
323 kernel is built for.
324
be1e6592
LP
325 * PID 1 will now automatically pick up system credentials from qemu's
326 fw_cfg interface, thus allowing passing arbitrary data into VM
327 systems similar to how this is already supported for passing them
328 into `systemd-nspawn` containers. Credentials may now also be passed
329 in via the new kernel command line option `systemd.set_credential=`
330 (note that kernel command line options are world-readable during
331 runtime, and only useful for credentials that require no
332 confidentiality). The credentials that can be passed to unified
333 kernels that use the `systemd-stub` UEFI stub are now similarly
334 picked up automatically. Automatic importing of system credentials
335 this way can be turned off via the new
336 `systemd.import_credentials=no` kernel command line option.
337
338 * LoadCredential= will now automatically search for credentials to
339 import in the /etc/credstore/, /run/credstore/, /usr/lib/credstore/
340 directories if no or a relative source filename is passed. Similar
341 LoadCredentialEncrypted= will search in these same directories, plus
342 /etc/credstore.encrypted/, /run/credstore.encrypted/ and
343 /usr/lib/credstore.encrypted/. The idea is that these directories are
344 now the recommended system-wide location to place credentials for
345 automatic pick-up by services in.
346
347 * System and service credentials are described in great detail in a new
348 document:
349
350 https://systemd.io/CREDENTIALS
351
942473dc 352 Changes in systemd-journald:
0c6e746b
YW
353
354 * The journal JSON export format has been added to listed of stable
355 interfaces (https://systemd.io/PORTABILITY_AND_STABILITY/).
356
357 * journalctl --list-boots now supports JSON output and the --reverse option.
358
359 * Under docs/: JOURNAL_EXPORT_FORMATS was imported from the wiki and
360 updated, BUILDING_IMAGES is new:
361
362 https://systemd.io/JOURNAL_EXPORT_FORMATS
363 https://systemd.io/BUILDING_IMAGES
364
942473dc 365 Changes in udev:
0c6e746b
YW
366
367 * Two new hwdb files have been added. One lists "handhelds" (PDAs,
368 calculators, etc.), the other AV production devices (DJ tables,
369 keypads, etc.) that should accessible to the seat owner user by
370 default.
371
372 * udevadm trigger gained a new --prioritized-subsystem= option to
373 process certain subsystems (and all their parent devices) earlier.
374
375 systemd-udev-trigger.service now uses this new option to trigger
376 block and TPM devices first, hopefully making the boot a bit faster.
377
378 * udevadm trigger now implements --type=all, --initialized-match,
379 --initialized-nomatch to trigger both subsystems and devices, only
380 already-initialized devices, and only devices which haven't been
381 initialized yet, respectively.
382
61ade257
LP
383 * udevadm gained a new "wait" command for safely waiting for a specific
384 device to show up in the udev device database. This is useful in
385 scripts that asynchronously allocate a block device (e.g. through
386 repartitioning, or allocating a loopback device or similar) and need
387 to synchronize on the creation to complete.
388
389 * udevadm gained a new "lock" command for locking one or more block
390 devices while formatting it or writing a partition table to it. It is
391 an implementation of https://systemd.io/BLOCK_DEVICE_LOCKING and
392 usable in scripts dealing with block devices.
393
394 * udevadm info will show a couple of additional device fields in its
395 output, and will not apply a limited set of coloring to line types.
396
397 * udevadm info --tree will now show a tree of objects (i.e. devices and
398 suchlike) in the /sys/ hierarchy.
399
400 * Block devices will now get a new set of device symlinks in
401 /dev/disk/by-diskseq/<nr>, which may be used to reference block
402 device nodes via the kernel's "diskseq" value. Note that this does
403 not guarantee that opening a device by a symlink like this will
404 guarantee that the opened device actually matches the specified
405 diskseq value. To be safe against races, the actual diskseq value of
406 the opened device (BLKGETDISKSEQ ioctl()) must still be compred with
407 the one in the symlink path.
408
0c6e746b 409 * .link files gained support for setting MDI/MID-X on a link.
60a777b5 410
00b29ca1
ZJS
411 * .link files gained support for [Match] Firmware= setting to match on
412 the device firmware description string. By mistake, it was previously
413 only supported in .network files.
414
0c6e746b
YW
415 * .link files gained support for [Link] SR-IOVVirtualFunctions= setting
416 and [SR-IOV] section to configure SR-IOV virtual functions.
417
942473dc 418 Changes in systemd-networkd:
0c6e746b
YW
419
420 * The default scope for unicast routes configured through [Route]
421 section is changed to "link", to make the behavior consistent with
422 "ip route" command. The manual configuration of [Route] Scope= is
423 still honored.
424
425 * A new unit systemd-networkd-wait-online@<interface>.service has been
426 added that can be used to wait for a specific network interface to be
427 up.
428
429 * systemd-networkd gained a new [Bridge] Isolated=true|false setting
430 that configures the eponymous kernel attribute on the bridge.
431
432 * .netdev files now can be used to create virtual WLAN devices, and
433 configure various settings on them, via the [WLAN] section.
434
00b29ca1
ZJS
435 * .link/.network files gained support for [Match] Kind= setting to match
436 on device kind ("bond", "bridge", "gre", "tun", "veth", etc.)
437
438 This value is also shown by 'networkctl status'.
439
0c6e746b
YW
440 * The Local= setting in .netdev files for various virtual network
441 devices gained support for specifying, in addition to the network
442 address, the name of a local interface which must have the specified
443 address.
60a777b5 444
0c6e746b
YW
445 * systemd-networkd gained a new [Tunnel] External= setting in .netdev
446 files, to configure tunnels in external mode (a.k.a. collect metadata
447 mode).
448
449 * [Network] L2TP= setting was removed. Please use interface specifier in
450 Local= setting in .netdev files of corresponding L2TP interface.
00b29ca1
ZJS
451
452 * New [DHCPServer] BootServerName=, BootServerAddress=, and
453 BootFilename= settings can be used to configure the server address,
454 server name, and file name sent in the DHCP packet (e.g. to configure
455 PXE boot).
456
942473dc 457 Changes in systemd-resolved:
00b29ca1 458
0c6e746b
YW
459 * systemd-resolved is started earlier (in sysinit.target), so it
460 available earlier and will also be started in the initrd if installed
461 there.
e1f0c136 462
942473dc 463 Changes in disk encryption:
00b29ca1 464
0c6e746b
YW
465 * systemd-cryptenroll can now control whether to require the user to
466 enter a PIN when using TPM-based unlocking of a volume via the new
467 --tpm2-with-pin= option.
60a777b5 468
0c6e746b 469 Option tpm2-pin= can be used in /etc/crypttab.
60a777b5 470
0c6e746b
YW
471 * When unlocking devices via TPM, TPM2 parameter encryption is now
472 used, to ensure that communication between CPU and discrete TPM chips
473 cannot be eavesdropped to acquire disk encryption keys.
60a777b5 474
61ade257
LP
475 * A new switch --fido2-credential-algorithm= has been added to
476 systemd-cryptenroll allowing selection of the credential algorithm to
477 use when binding encryption to FIDO2 tokens.
478
942473dc 479 Changes in systemd-hostnamed:
60a777b5 480
0c6e746b
YW
481 * HARDWARE_VENDOR= and HARDWARE_MODEL= can be set in /etc/machine-info
482 to override the values gleaned from the hwdb.
483
484 * A ID_CHASSIS property can be set in the hwdb (for the DMI device
485 /sys/class/dmi/id) to override the chassis that is reported by
486 hostnamed.
487
488 * hostnamed's D-Bus interface gained a new method GetHardwareSerial()
61ade257
LP
489 for reading the hardware serial number, as reportd by DMI. It also
490 exposes a new method D-Bus property FirmwareVersion that encode the
491 firmware version of the system.
0c6e746b 492
942473dc 493 Changes in other components:
0c6e746b
YW
494
495 * /etc/locale.conf is now populated through tmpfiles.d factory /etc/
496 handling with the values that were configured during systemd build
497 (if /etc/locale.conf has not been created through some other
498 mechanism). This means that /etc/locale.conf should always have
499 reasonable contents and we avoid a potential mismatch in defaults.
500
501 * The userdbctl tool will now show UID range information as part of the
502 list of known users.
60a777b5 503
942473dc
ZJS
504 * A new build-time configuration setting default-user-shell= can be
505 used to set the default shell for user records and nspawn shell
506 invocations (instead of of the default /bin/bash).
507
61ade257
LP
508 * systemd-timesyncd now provides a D-Bus API for receiving NTP server
509 information dynamically at runtime via IPC.
510
511 * The systemd-creds tool gained a new "has-tpm2" verb, which reports
512 whether a functioning TPM2 infrastructure is available, i.e. if
513 firmware, kernel driver and systemd all have TPM2 support enabled and
514 a device found.
515
516 * The systemd-creds tool gained support for generating encrypted
517 credentials that are using an empty encryption key. While this
518 provides no integrity nor confidentiality it's useful to implement
519 codeflows that work the same on TPM-ful and TPM2-less systems. The
520 service manager will only accept credentials "encrypted" that way if
521 a TPM2 device cannot be detected, to ensure that credentials
522 "encrypted" like that cannot be used to trick TPM2 systems.
523
211b564a
ZJS
524 * When deciding whether to colorize output, all systemd programs now
525 also check $COLORTERM (in addition to $NO_COLOR, $SYSTEMD_COLORS, and
526 $TERM).
527
00b29ca1
ZJS
528 Experimental features:
529
530 * sd-boot gained a new *experimental* setting "reboot-for-bitlocker" in
531 loader.conf that implements booting Microsoft Windows from the
532 sd-boot in a way that first reboots the system, to reset the TPM
533 PCRs. This improves compatibility with BitLocker's TPM use, as the
534 PCRs will only record the Windows boot process, and not sd-boot
535 itself, thus retaining the PCR measurements not involving sd-boot.
536 Note that this feature is experimental for now, and is likely going
537 to be generalized and renamed in a future release, without retaining
538 compatibility with the current implementation.
539
540 * A new systemd-sysupdate component has been added that automatically
541 discovers, downloads, and installs A/B-style updates for the host
542 installation itself, or container images, portable service images,
543 and other assets. See the new systemd-sysupdate man page for updates.
ffa047a0 544
73849408 545 Contributions from: 4piu, Adam Williamson, adrian5, Albert Brox,
0950eee5
LB
546 AlexCatze, Alex Henrie, Alfonso Sánchez-Beato, Alice S,
547 Alvin Šipraga, amarjargal, Amarjargal, Andrea Pappacoda,
548 Andreas Rammhold, Andy Chi, Anita Zhang, Antonio Alvarez Feijoo,
549 Arfrever Frehtes Taifersar Arahesis, ash, Bastien Nocera, Be,
550 bearhoney, Ben Efros, Benjamin Berg, Brett Holman,
211b564a
ZJS
551 Christian Brauner, Clyde Byrd III, Curtis Klein, Daan De Meyer,
552 Daniele Medri, Daniel Mack, Danilo Krummrich, David, David Bond,
0950eee5
LB
553 Davide Cavalca, David Tardon, davijosw, dependabot[bot],
554 Donald Chan, Dorian Clay, Eduard Tolosa, Elias Probst,
555 Erik Sjölund, Evgeny Vereshchagin, Federico Ceratto, Franck Bui,
556 Frantisek Sumsal, Gaël PORTAY, Georges Basile Stavracas Neto,
557 Gibeom Gwon, Goffredo Baroncelli, Grigori Goronzy, Hans de Goede,
558 Heiko Becker, Hugo Carvalho, Jakob Lell, James Hilliard,
559 Jan Janssen, Jason A. Donenfeld, Joan Bruguera, Joerie de Gram,
560 Josh Triplett, Julia Kartseva, Kazuo Moriwaka, Khem Raj,
561 ksa678491784, Lance, Lan Tian, Laura Barcziova, Lennart Poettering,
562 Leviticoh, licunlong, Lidong Zhong, lincoln auster, Lubomir Rintel,
563 Luca Boccassi, Luca BRUNO, lucagoc, Ludwig Nussel, Marcel Hellwig,
564 march1993, Marco Scardovi, Mario Limonciello, Mariusz Tkaczyk,
565 Markus Weippert, Martin Liska, Martin Wilck, Matija Skala,
566 Matthew Blythe, Matthias Lisin, Matthijs van Duin, Matt Walton,
567 Max Gautier, Michael Biebl, Michael Olbrich, Michal Koutný,
568 Michal Sekletár, Mike Gilbert, MkfsSion, Morten Linderud,
569 Nick Rosbrook, Nishal Kulkarni, Noel Kuntze, Peter Hutterer,
570 Peter Morrow, Pigmy-penguin, prumian, Richard Neill,
211b564a
ZJS
571 Rike-Benjamin Schuppner, rodin-ia, Romain Naour, Ruben Kerkhof,
572 Ryan Hendrickson, Santa Wiryaman, Sebastian Pucilowski, Seth Falco,
0950eee5
LB
573 Simon Ellmann, Sonali Srivastava, Stefan Seering,
574 Stephen Hemminger, tawefogo, techtino, Temuri Doghonadze,
575 Thomas Batten, Thomas Haller, Thomas Weißschuh, Tobias Stoeckmann,
576 Tyson Whitehead, Vishal Chillara Srinivas, Vivien Didelot,
577 w30023233, wangyuhang, Weblate, Xiaotian Wu, yangmingtai, YmrDtnJu,
578 Yonathan Randolph, Yutsuten, Yu Watanabe,
73849408
ZJS
579 Zbigniew Jędrzejewski-Szmek, наб
580
581 — Warsaw, 2022-03---
bbfabc44 582
a420d717 583CHANGES WITH 250:
195d181c 584
dcdc652f
ZJS
585 * Support for encrypted and authenticated credentials has been added.
586 This extends the credential logic introduced with v247 to support
587 non-interactive symmetric encryption and authentication, based on a
588 key that is stored on the /var/ file system or in the TPM2 chip (if
589 available), or the combination of both (by default if a TPM2 chip
590 exists the combination is used, otherwise the /var/ key only). The
591 credentials are automatically decrypted at the moment a service is
592 started, and are made accessible to the service itself in unencrypted
593 form. A new tool 'systemd-creds' encrypts credentials for this
594 purpose, and two new service file settings LoadCredentialEncrypted=
595 and SetCredentialEncrypted= configure such credentials.
596
597 This feature is useful to store sensitive material such as SSL
598 certificates, passwords and similar securely at rest and only decrypt
599 them when needed, and in a way that is tied to the local OS
600 installation or hardware.
195d181c
LP
601
602 * systemd-gpt-auto-generator can now automatically set up discoverable
603 LUKS2 encrypted swap partitions.
604
dcdc652f
ZJS
605 * The GPT Discoverable Partitions Specification has been substantially
606 extended with support for root and /usr/ partitions for the majority
607 of architectures systemd supports. This includes platforms that do
608 not natively support UEFI, because even though GPT is specified under
609 UEFI umbrella, it is useful on other systems too. Specifically,
195d181c 610 systemd-nspawn, systemd-sysext, systemd-gpt-auto-generator and
dcdc652f
ZJS
611 Portable Services use the concept without requiring UEFI.
612
613 * The GPT Discoverable Partitions Specifications has been extended with
614 a new set of partitions that may carry PKCS#7 signatures for Verity
615 partitions, encoded in a simple JSON format. This implements a simple
616 mechanism for building disk images that are fully authenticated and
617 can be tested against a set of cryptographic certificates. This is
618 now implemented for the various systemd tools that can operate with
619 disk images, such as systemd-nspawn, systemd-sysext, systemd-dissect,
620 Portable services/RootImage=, systemd-tmpfiles, and systemd-sysusers.
621 The PKCS#7 signatures are passed to the kernel (where they are
195d181c
LP
622 checked against certificates from the kernel keyring), or can be
623 verified against certificates provided in userspace (via a simple
624 drop-in file mechanism).
625
626 * systemd-dissect's inspection logic will now report for which uses a
627 disk image is intended. Specifically, it will display whether an
628 image is suitable for booting on UEFI or in a container (using
629 systemd-nspawn's --image= switch), whether it can be used as portable
630 service, or attached as system extension.
631
632 * The system-extension.d/ drop-in files now support a new field
633 SYSEXT_SCOPE= that may encode which purpose a system extension image
634 is for: one of "initrd", "system" or "portable". This is useful to
635 make images more self-descriptive, and to ensure system extensions
636 cannot be attached in the wrong contexts.
637
638 * The os-release file learnt a new PORTABLE_PREFIXES= field which may
639 be used in portable service images to indicate which unit prefixes
640 are supported.
641
642 * The GPT image dissection logic in systemd-nspawn/systemd-dissect/…
643 now is able to decode images for non-native architectures as well.
dcdc652f
ZJS
644 This allows systemd-nspawn to boot images of non-native architectures
645 if the corresponding user mode emulator is installed and
646 systemd-binfmtd is running.
195d181c 647
dcdc652f 648 * systemd-logind gained new settings HandlePowerKeyLongPress=,
195d181c
LP
649 HandleRebootKeyLongPress=, HandleSuspendKeyLongPress= and
650 HandleHibernateKeyLongPress= which may be used to configure actions
651 when the relevant keys are pressed for more than 5s. This is useful
652 on devices that only have hardware for a subset of these keys. By
653 default, if the reboot key is pressed long the poweroff operation is
654 now triggered, and when the suspend key is pressed long the hibernate
655 operation is triggered. Long pressing the other two keys currently
656 does not trigger any operation by default.
657
658 * When showing unit status updates on the console during boot and
368910b1 659 shutdown, and a service is slow to start so that the cylon animation
195d181c
LP
660 is shown, the most recent sd_notify() STATUS= text is now shown as
661 well. Services may use this to make the boot/shutdown output easier
662 to understand, and to indicate what precisely a service that is slow
dcdc652f 663 to start or stop is waiting for. In particular, the per-user service
195d181c
LP
664 manager instance now reports what it is doing and which service it is
665 waiting for this way to the system service manager.
666
667 * The service manager will now re-execute on reception of the
668 SIGRTMIN+25 signal. It previously already did that on SIGTERM — but
669 only when running as PID 1. There was no signal to request this when
dcdc652f
ZJS
670 running as per-user service manager, i.e. as any other PID than 1.
671 SIGRTMIN+25 works for both system and user managers.
195d181c
LP
672
673 * The hardware watchdog logic in PID 1 gained support for operating
674 with the default timeout configured in the hardware, instead of
675 insisting on re-configuring it. Set RuntimeWatchdogSec=default to
676 request this behavior.
677
678 * A new kernel command line option systemd.watchdog_sec= is now
679 understood which may be used to override the hardware watchdog
680 time-out for the boot.
681
682 * A new setting DefaultOOMScoreAdjust= is now supported in
942473dc
ZJS
683 /etc/systemd/system.conf and /etc/systemd/user.conf. It may be used
684 to set the default process OOM score adjustment value for processes
685 started by the service manager. For per-user service managers this
195d181c
LP
686 now defaults to 100, but for per-system service managers is left as
687 is. This means that by default now services forked off the user
688 service manager are more likely to be killed by the OOM killer than
689 system services or the managers themselves.
690
691 * A new per-service setting RestrictFileSystems= as been added that
dcdc652f
ZJS
692 restricts the file systems a service has access to by their type.
693 This is based on the new BPF LSM of the Linux kernel. It provides an
694 effective way to make certain API file systems unavailable to
195d181c
LP
695 services (and thus minimizing attack surface). A new command
696 "systemd-analyze filesystems" has been added that lists all known
697 file system types (and how they are grouped together under useful
698 group handles).
699
700 * Services now support a new setting RestrictNetworkInterfaces= for
701 restricting access to specific network interfaces.
702
dcdc652f 703 * Service unit files gained new settings StartupAllowedCPUs= and
195d181c
LP
704 StartupAllowedMemoryNodes=. These are similar to their counterparts
705 without the "Startup" prefix and apply during the boot process
706 only. This is useful to improve boot-time behavior of the system and
707 assign resources differently during boot than during regular
708 runtime. This is similar to the preexisting StartupCPUWeight=
709 vs. CPUWeight.
710
711 * Related to this: the various StartupXYZ= settings
712 (i.e. StartupCPUWeight=, StartupAllowedCPUs=, …) are now also applied
713 during shutdown. The settings not prefixed with "Startup" hence apply
714 during regular runtime, and those that are prefixed like that apply
715 during boot and shutdown.
716
bf71ade8
LB
717 * A new per-unit set of conditions/asserts
718 [Condition|Assert][Memory|CPU|IO]Pressure= have been added to make a
719 unit skip/fail activation if the system's (or a slice's) memory/cpu/io
720 pressure is above the configured threshold, using the kernel PSI
dcdc652f 721 feature. For more details see systemd.unit(5) and
bf71ade8
LB
722 https://www.kernel.org/doc/html/latest/accounting/psi.html
723
724 * The combination of ProcSubset=pid and ProtectKernelTunables=yes and/or
725 ProtectKernelLogs=yes can now be used.
726
e63fa075 727 * The default maximum numbers of inodes have been raised from 64k to 1M
bb7031bc 728 for /dev/, and from 400k to 1M for /tmp/.
bf71ade8 729
195d181c
LP
730 * The per-user service manager learnt support for communicating with
731 systemd-oomd to acquire OOM kill information.
732
733 * A new service setting ExecSearchPath= has been added that allows
dcdc652f
ZJS
734 changing the search path for executables for services. It affects
735 where we look for the binaries specified in ExecStart= and similar,
736 and the specified directories are also added the $PATH environment
737 variable passed to invoked processes.
195d181c
LP
738
739 * A new setting RuntimeRandomizedExtraSec= has been added for service
740 and scope units that allows extending the runtime time-out as
741 configured by RuntimeMaxSec= with a randomized amount.
742
743 * The syntax of the service unit settings RuntimeDirectory=,
744 StateDirectory=, CacheDirectory=, LogsDirectory= has been extended:
dcdc652f 745 if the specified value is now suffixed with a colon, followed by
195d181c
LP
746 another filename, the latter will be created as symbolic link to the
747 specified directory. This allows creating these service directories
748 together with alias symlinks to make them available under multiple
749 names.
750
751 * Service unit files gained two new settings TTYRows=/TTYColumns= for
752 configuring rows/columns of the TTY device passed to
753 stdin/stdout/stderr of the service. This is useful to propagate TTY
dcdc652f 754 dimensions to a virtual machine.
195d181c 755
dcdc652f
ZJS
756 * A new service unit file setting ExitType= has been added that
757 specifies when to assume a service has exited. By default systemd
758 only watches the main process of a service. By setting
759 ExitType=cgroup it can be told to wait for the last process in a
760 cgroup instead.
195d181c
LP
761
762 * Automount unit files gained a new setting ExtraOptions= that can be
763 used to configure additional mount options to pass to the kernel when
764 mounting the autofs instance.
765
dcdc652f
ZJS
766 * "Urlification" (generation of ESC sequences that generate clickable
767 hyperlinks in modern terminals) may now be turned off altogether
768 during build-time.
195d181c 769
616779c3 770 * Path units gained new TriggerLimitBurst= and TriggerLimitIntervalSec=
28be02e0
ZJS
771 settings that default to 200 and 2 s respectively. The ratelimit
772 ensures that a path unit cannot cause PID1 to busy-loop when it is
773 trying to trigger a service that is skipped because of a Condition*=
774 not being satisfied. This matches the configuration and behaviour of
775 socket units.
616779c3 776
dcdc652f
ZJS
777 * The TPM2/FIDO2/PKCS11 support in systemd-cryptsetup is now also built
778 as a plug-in for cryptsetup. This means the plain cryptsetup command
779 may now be used to unlock volumes set up this way.
195d181c
LP
780
781 * The TPM2 logic in cryptsetup will now automatically detect systems
dcdc652f 782 where the TPM2 chip advertises SHA256 PCR banks but the firmware only
195d181c
LP
783 updates the SHA1 banks. In such a case PCR policies will be
784 automatically bound to the latter, not the former. This makes the PCR
785 policies reliable, but of course do not provide the same level of
786 trust as SHA256 banks.
787
788 * The TPM2 logic in systemd-cryptsetup/systemd-cryptsetup now supports
789 RSA primary keys in addition to ECC, improving compatibility with
790 TPM2 chips that do not support ECC. RSA keys are much slower to use
791 than ECC, and hence are only used if ECC is not available.
792
793 * /etc/crypttab gained support for a new token-timeout= setting for
dcdc652f
ZJS
794 encrypted volumes that allows configuration of the maximum time to
795 wait for PKCS#11/FIDO2 tokens to be plugged in. If the time elapses
796 the logic will query the user for a regular passphrase/recovery key
195d181c
LP
797 instead.
798
799 * Support for activating dm-integrity volumes at boot via a new file
dcdc652f
ZJS
800 /etc/integritytab and the tool systemd-integritysetup have been
801 added. This is similar to /etc/crypttab and /etc/veritytab, but deals
802 with dm-integrity instead of dm-crypt/dm-verity.
195d181c
LP
803
804 * The systemd-veritysetup-generator now understands a new usrhash=
805 kernel command line option for specifying the Verity root hash for
806 the partition backing the /usr/ file system. A matching set of
807 systemd.verity_usr_* kernel command line options has been added as
808 well. These all work similar to the corresponding options for the
809 root partition.
810
811 * The sd-device API gained a new API call sd_device_get_diskseq() to
812 return the DISKSEQ property of a device structure. The "disk
813 sequence" concept is a new feature recently introduced to the Linux
814 kernel that allows detecting reuse cycles of block devices, i.e. can
815 be used to recognize when loopback block devices are reused for a
816 different purpose or CD-ROM drives get their media changed.
817
818 * A new unit systemd-boot-update.service has been added. If enabled
819 (the default) and the sd-boot loader is detected to be installed, it
dcdc652f
ZJS
820 is automatically updated to the newest version when out of date. This
821 is useful to ensure the boot loader remains up-to-date, and updates
822 automatically propagate from the OS tree in /usr/.
195d181c 823
bf71ade8
LB
824 * sd-boot will now build with SBAT by default in order to facilitate
825 working with recent versions of Shim that require it to be present.
826
97b6ed32
ZJS
827 * sd-boot can now parse Microsoft Windows' Boot Configuration Data.
828 This is used to robustly generate boot entry titles for Windows.
829
195d181c
LP
830 * A new generic target unit factory-reset.target has been added. It is
831 hooked into systemd-logind similar in fashion to
832 reboot/poweroff/suspend/hibernate, and is supposed to be used to
833 initiate a factory reset operation. What precisely this operation
834 entails is up for the implementer to decide, the primary goal of the
835 new unit is provide a framework where to plug in the implementation
836 and how to trigger it.
837
838 * A new meson build-time option 'clock-valid-range-usec-max' has been
839 added which takes a time in µs and defaults to 15 years. If the RTC
840 time is noticed to be more than the specified time ahead of the
841 built-in epoch of systemd (which by default is the release timestamp
842 of systemd) it is assumed that the RTC is not working correctly, and
843 the RTC is reset to the epoch. (It already is reset to the epoch when
844 noticed to be before it.) This should increase the chance that time
845 doesn't accidentally jump too far ahead due to faulty hardware or
846 batteries.
847
63b7d347
YW
848 * A new setting SaveIntervalSec= has been added to systemd-timesyncd,
849 which may be used to automatically save the current system time to
850 disk in regular intervals. This is useful to maintain a roughly
851 monotonic clock even without RTC hardware and with some robustness
852 against abnormal system shutdown.
853
195d181c
LP
854 * systemd-analyze verify gained support for a pair of new --image= +
855 --root= switches for verifying units below a specific root
856 directory/image instead of on the host.
857
858 * systemd-analyze verify gained support for verifying unit files under
859 an explicitly specified unit name, independently of what the filename
860 actually is.
861
dcdc652f
ZJS
862 * systemd-analyze verify gained a new switch --recursive-errors= which
863 controls whether to only fail on errors found in the specified units
864 or recursively any dependent units.
865
866 * systemd-analyze security now supports a new --offline mode for
867 analyzing unit files stored on disk instead of loaded units. It may
868 be combined with --root=/--image to analyze unit files under a root
869 directory or disk image. It also learnt a new --threshold= parameter
870 for specifying an exposure level threshold: if the exposure level
871 exceeds the specified value the call will fail. It also gained a new
872 --security-policy= switch for configuring security policies to
873 enforce on the units. A policy is a JSON file that lists which tests
874 shall be weighted how much to determine the overall exposure
875 level. Altogether these new features are useful for fully automatic
876 analysis and enforcement of security policies on unit files.
877
878 * systemd-analyze security gain a new --json= switch for JSON output.
879
880 * systemd-analyze learnt a new --quiet switch for reducing
881 non-essential output. It's honored by the "dot", "syscall-filter",
882 "filesystems" commands.
883
bb7031bc 884 * systemd-analyze security gained a --profile= option that can be used
dcdc652f
ZJS
885 to take into account a portable profile when analyzing portable
886 services, since a lot of the security-related settings are enabled
887 through them.
888
889 * systemd-analyze learnt a new inspect-elf verb that parses ELF core
890 files, binaries and executables and prints metadata information,
891 including the build-id and other info described on:
892 https://systemd.io/COREDUMP_PACKAGE_METADATA/
893
c0b28d44
YW
894 * .network files gained a new UplinkInterface= in the [IPv6SendRA]
895 section, for automatically propagating DNS settings from other
896 interfaces.
bf71ade8 897
c0b28d44
YW
898 * The static lease DHCP server logic in systemd-networkd may now serve
899 IP addresses outside of the configured IP pool range for the server.
97b6ed32 900
c0b28d44
YW
901 * CAN support in systemd-networkd gained four new settings Loopback=,
902 OneShot=, PresumeAck=, ClassicDataLengthCode= for tweaking CAN
903 control modes. It gained a number of further settings for tweaking
904 CAN timing quanta.
bf71ade8 905
c0b28d44
YW
906 * The [CAN] section in .network file gained new TimeQuantaNSec=,
907 PropagationSegment=, PhaseBufferSegment1=, PhaseBufferSegment2=,
908 SyncJumpWidth=, DataTimeQuantaNSec=, DataPropagationSegment=,
909 DataPhaseBufferSegment1=, DataPhaseBufferSegment2=, and
910 DataSyncJumpWidth= settings to control bit-timing processed by the
911 CAN interface.
bf71ade8 912
c0b28d44
YW
913 * DHCPv4 client support in systemd-networkd learnt a new Label= option
914 for configuring the address label to apply to configure IPv4
915 addresses.
bf71ade8 916
c0b28d44
YW
917 * The [IPv6AcceptRA] section of .network files gained support for a new
918 UseMTU= setting that may be used to control whether to apply the
919 announced MTU settings to the local interface.
195d181c 920
63b7d347
YW
921 * The [DHCPv4] section in .network file gained a new Use6RD= boolean
922 setting to control whether the DHCPv4 client request and process the
923 DHCP 6RD option.
924
925 * The [DHCPv6PrefixDelegation] section in .network file is renamed to
926 [DHCPPrefixDelegation], as now the prefix delegation is also supported
927 with DHCPv4 protocol by enabling the Use6RD= setting.
928
929 * The [DHCPPrefixDelegation] section in .network file gained a new
930 setting UplinkInterface= to specify the upstream interface.
931
932 * The [DHCPv6] section in .network file gained a new setting
933 UseDelegatedPrefix= to control whether the delegated prefixes will be
934 propagated to the downstream interfaces.
195d181c
LP
935
936 * The [IPv6AcceptRA] section of .network files now understands two new
937 settings UseGateway=/UseRoutePrefix= for explicitly configuring
938 whether to use the relevant fields from the IPv6 Router Advertisement
939 records.
940
8adba772
ZJS
941 * The ForceDHCPv6PDOtherInformation= setting in the [DHCPv6] section
942 has been removed. Please use the WithoutRA= and UseDelegatedPrefix=
63b7d347
YW
943 settings in the [DHCPv6] section and the DHCPv6Client= setting in the
944 [IPv6AcceptRA] section to control when the DHCPv6 client is started
945 and how the delegated prefixes are handled by the DHCPv6 client.
946
63b7d347
YW
947 * The IPv6Token= section in the [Network] section is deprecated, and
948 the [IPv6AcceptRA] section gained the Token= setting for its
949 replacement. The [IPv6Prefix] section also gained the Token= setting.
950 The Token= setting gained 'eui64' mode to explicitly configure an
951 address with the EUI64 algorithm based on the interface MAC address.
952 The 'prefixstable' mode can now optionally take a secret key. The
953 Token= setting in the [DHCPPrefixDelegation] section now supports all
954 algorithms supported by the same settings in the other sections.
955
956 * The [RoutingPolicyRule] section of .network file gained a new
957 SuppressInterfaceGroup= setting.
195d181c
LP
958
959 * The IgnoreCarrierLoss= setting in the [Network] section of .network
dcdc652f
ZJS
960 files now allows a duration to be specified, controlling how long to
961 wait before reacting to carrier loss.
195d181c 962
dcdc652f
ZJS
963 * The [DHCPServer] section of .network file gained a new Router=
964 setting to specify the router address.
11b10922 965
c0b28d44
YW
966 * The [CAKE] section of .network files gained various new settings
967 AutoRateIngress=, CompensationMode=, FlowIsolationMode=, NAT=,
968 MPUBytes=, PriorityQueueingPreset=, FirewallMark=, Wash=, SplitGSO=,
969 and UseRawPacketSize= for configuring CAKE.
970
971 * systemd-networkd now ships with new default .network files:
972 80-container-vb.network which matches host-side network bridge device
973 created by systemd-nspawn's --network-bridge or --network-zone
974 switch, and 80-6rd-tunnel.network which matches automatically created
975 sit tunnel with 6rd prefix when the DHCP 6RD option is received.
976
977 * systemd-networkd's handling of Endpoint= resolution for WireGuard
978 interfaces has been improved.
979
980 * systemd-networkd will now automatically configure routes to addresses
981 specified in AllowedIPs=. This feature can be controlled via
982 RouteTable= and RouteMetric= settings in [WireGuard] or
983 [WireGuardPeer] sections.
984
985 * systemd-networkd will now once again automatically generate persistent
986 MAC addresses for batadv and bridge interfaces. Users can disable this
987 by using MACAddress=none in .netdev files.
988
989 * systemd-networkd and systemd-udevd now support IP over InfiniBand
990 interfaces. The Kind= setting in .netdev file accepts "ipoib". And
991 systemd.netdev files gained the [IPoIB] section.
992
993 * systemd-networkd and systemd-udevd now support net.ifname-policy=
994 option on the kernel command-line. This is implemented through the
995 systemd-network-generator service that automatically generates
996 appropriate .link, .network, and .netdev files.
997
998 * The various systemd-udevd "ethtool" buffer settings now understand
999 the special value "max" to configure the buffers to the maximum the
1000 hardware supports.
1001
1002 * systemd-udevd's .link files may now configure a large variety of
1003 NIC coalescing settings, plus more hardware offload settings.
1004
1005 * .link files gained a new WakeOnLanPassword= setting in the [Link]
1006 section that allows to specify a WoL "SecureOn" password on hardware
1007 that supports this.
1008
195d181c
LP
1009 * systemd-nspawn's --setenv= switch now supports an additional syntax:
1010 if only a variable name is specified (i.e. without being suffixed by
1011 a '=' character and a value) the current value of the environment
1012 variable is propagated to the container. e.g. --setenv=FOO will
1013 lookup the current value of $FOO in the environment, and pass it down
1014 to the container. Similar behavior has been added to homectl's,
1015 machinectl's and systemd-run's --setenv= switch.
1016
1017 * systemd-nspawn gained a new switch --suppress-sync= which may be used
1018 to optionally suppress the effect of the sync()/fsync()/fdatasync()
1019 system calls for the container payload. This is useful for build
1020 system environments where safety against abnormal system shutdown is
1021 not essential as all build artifacts can be regenerated any time, but
1022 the performance win is beneficial.
1023
dcdc652f
ZJS
1024 * systemd-nspawn will now raise the RLIMIT_NOFILE hard limit to the
1025 same value that PID 1 uses for most forked off processes.
195d181c
LP
1026
1027 * systemd-nspawn's --bind=/--bind-ro= switches now optionally take
1028 uidmap/nouidmap options as last parameter. If "uidmap" is used the
1029 bind mounts are created with UID mapping taking place that ensures
1030 the host's file ownerships are mapped 1:1 to container file
1031 ownerships, even if user namespacing is used. This way
1032 files/directories bound into containers will no longer show up as
dcdc652f 1033 owned by the nobody user as they typically did if no special care was
195d181c
LP
1034 taken to shift them manually.
1035
1036 * When discovering Windows installations sd-boot will now attempt to
dcdc652f 1037 show the Windows version.
195d181c
LP
1038
1039 * The color scheme to use in sd-boot may now be configured at
1040 build-time.
1041
195d181c
LP
1042 * sd-boot gained the ability to change screen resolution during
1043 boot-time, by hitting the "r" key. This will cycle through available
dcdc652f 1044 resolutions and save the last selection.
195d181c
LP
1045
1046 * sd-boot learnt a new hotkey "f". When pressed the system will enter
1047 firmware setup. This is useful in environments where it is difficult
1048 to hit the right keys early enough to enter the firmware, and works
1049 on any firmware regardless which key it natively uses.
1050
1051 * sd-boot gained support for automatically booting into the menu item
1052 selected on the last boot (using the "@saved" identifier for menu
1053 items).
1054
dcdc652f
ZJS
1055 * sd-boot gained support for automatically loading all EFI drivers
1056 placed in the /EFI/systemd/drivers/ subdirectory of the EFI System
1057 Partition (ESP). These drivers are loaded before the menu entries are
1058 loaded. This is useful e.g. to load additional file system drivers
1059 for the XBOOTLDR partition.
1060
1061 * systemd-boot will now paint the input cursor on its own instead of
1062 relying on the firmware to do so, increasing compatibility with broken
1063 firmware that doesn't make the cursor reasonably visible.
1064
195d181c
LP
1065 * sd-boot now embeds a .osrel PE section like we expect from Boot
1066 Loader Specification Type #2 Unified Kernels. This means sd-boot
1067 itself may be used in place of a Type #2 Unified Kernel. This is
1068 useful for debugging purposes as it allows chain-loading one a
1069 (development) sd-boot instance from another.
1070
1071 * sd-boot now supports a new "devicetree" field in Boot Loader
1072 Specification Type #1 entries: if configured the specified device
1073 tree file is installed before the kernel is invoked. This is useful
1074 for installing/applying new devicetree files without updating the
1075 kernel image.
1076
dcdc652f 1077 * Similarly, sd-stub now can read devicetree data from a PE section
195d181c
LP
1078 ".dtb" and apply it before invoking the kernel.
1079
1080 * sd-stub (the EFI stub that can be glued in front of a Linux kernel)
97b6ed32
ZJS
1081 gained the ability to pick up credentials and sysext files, wrap them
1082 in a cpio archive, and pass as an additional initrd to the invoked
1083 Linux kernel, in effect placing those files in the /.extra/ directory
1084 of the initrd environment. This is useful to implement trusted initrd
1085 environments which are fully authenticated but still can be extended
1086 (via sysexts) and parameterized (via encrypted/authenticated
1087 credentials, see above).
1088
1089 Credentials can be located next to the kernel image file (credentials
1090 specific to a single boot entry), or in one of the shared directories
1091 (credentials applicable to multiple boot entries).
195d181c
LP
1092
1093 * sd-stub now comes with a full man page, that explains its feature set
1094 and how to combine a kernel image, an initrd and the stub to build a
1095 complete EFI unified kernel image, implementing Boot Loader
1096 Specification Type #2.
1097
dcdc652f 1098 * sd-stub may now provide the initrd to the executed kernel via the
195d181c
LP
1099 LINUX_EFI_INITRD_MEDIA_GUID EFI protocol, adding compatibility for
1100 non-x86 architectures.
1101
dcdc652f
ZJS
1102 * bootctl learnt new set-timeout and set-timeout-oneshot commands that
1103 may be used to set the boot menu time-out of the boot loader (for all
1104 or just the subsequent boot).
195d181c 1105
ffc97a1c
LP
1106 * bootctl and kernel-install will now read variables
1107 KERNEL_INSTALL_LAYOUT= from /etc/machine-info and layout= from
1108 /etc/kernel/install.conf. When set, it specifies the layout to use
1109 for installation directories on the boot partition, so that tools
1110 don't need to guess it based on the already-existing directories. The
1111 only value that is defined natively is "bls", corresponding to the
1112 layout specified in
c20ecc94
ZJS
1113 https://systemd.io/BOOT_LOADER_SPECIFICATION/. Plugins for
1114 kernel-install that implement a different layout can declare other
1115 values for this variable.
1116
1117 'bootctl install' will now write KERNEL_INSTALL_LAYOUT=bls, on the
1118 assumption that if the user installed sd-boot to the ESP, they intend
1119 to use the entry layout understood by sd-boot. It'll also write
1120 KERNEL_INSTALL_MACHINE_ID= if it creates any directories using the ID
1121 (and it wasn't specified in the config file yet). Similarly,
1122 kernel-install will now write KERNEL_INSTALL_MACHINE_ID= (if it
1123 wasn't specified in the config file yet). Effectively, those changes
1124 mean that the machine-id used for boot loader entry installation is
1125 "frozen" upon first use and becomes independent of the actual
1126 machine-id.
1127
1128 Configuring KERNEL_INSTALL_MACHINE_ID fixes the following problem:
1129 images created for distribution ("golden images") are built with no
1130 machine-id, so that a unique machine-id can be created on the first
1131 boot. But those images may contain boot loader entries with the
1132 machine-id used during build included in paths. Using a "frozen"
1133 value allows unambiguously identifying entries that match the
1134 specific installation, while still permitting parallel installations
1135 without conflict.
1136
1137 Configuring KERNEL_INSTALL_LAYOUT obviates the need for
1138 kernel-install to guess the installation layout. This fixes the
1139 problem where a (possibly empty) directory in the boot partition is
1140 created from a different layout causing kernel-install plugins to
1141 assume the wrong layout. A particular example of how this may happen
1142 is the grub2 package in Fedora which includes directories under /boot
1143 directly in its file list. Various other packages pull in grub2 as a
1144 dependency, so it may be installed even if unused, breaking
1145 installations that use the bls layout.
1146
97b6ed32
ZJS
1147 * bootctl and systemd-bless-boot can now be linked statically.
1148
195d181c 1149 * systemd-sysext now optionally doesn't insist on extension-release.d/
dcdc652f 1150 files being placed in the image under the image's file name. If the
195d181c 1151 file system xattr user.extension-release.strict is set on the
dcdc652f 1152 extension release file, it is accepted regardless of its name. This
195d181c
LP
1153 relaxes security restrictions a bit, as system extension may be
1154 attached under a wrong name this way.
1155
1156 * udevadm's test-builtin command learnt a new --action= switch for
1157 testing the built-in with the specified action (in place of the
dcdc652f 1158 default 'add').
195d181c
LP
1159
1160 * udevadm info gained new switches --property=/--value for showing only
1161 specific udev properties/values instead of all.
1162
1163 * A new hwdb database has been added that contains matches for various
1164 types of signal analyzers (protocol analyzers, logic analyzers,
1165 oscilloscopes, multimeters, bench power supplies, etc.) that should
1166 be accessible to regular users.
1167
1168 * A new hwdb database entry has been added that carries information
dcdc652f
ZJS
1169 about types of cameras (regular or infrared), and in which direction
1170 they point (front or back).
195d181c 1171
11b10922
LB
1172 * A new rule to allow console users access to rfkill by default has been
1173 added to hwdb.
1174
97b6ed32
ZJS
1175 * Device nodes for the Software Guard eXtension enclaves (sgx_vepc) are
1176 now also owned by the system group "sgx".
1177
195d181c 1178 * A new build-time meson option "extra-net-naming-schemes=" has been
dcdc652f
ZJS
1179 added to define additional naming schemes schemes for udev's network
1180 interface naming logic. This is useful for enterprise distributions
1181 and similar which want to pin the schemes of certain distribution
1182 releases under a specific name and previously had to patch the
1183 sources to introduce new named schemes.
195d181c
LP
1184
1185 * The predictable naming logic for network interfaces has been extended
1186 to generate stable names from Xen netfront device information.
1187
1188 * hostnamed's chassis property can now be sourced from chassis-type
dcdc652f 1189 field encoded in devicetree (in addition to the existing DMI
195d181c
LP
1190 support).
1191
dcdc652f 1192 * systemd-cgls now optionally displays cgroup IDs and extended
195d181c
LP
1193 attributes for each cgroup. (Controllable via the new --xattr= +
1194 --cgroup-id= switches.)
1195
1196 * coredumpctl gained a new --all switch for operating on all
1197 Journal files instead of just the local ones.
1198
bf71ade8
LB
1199 * systemd-coredump will now use libdw/libelf via dlopen() rather than
1200 directly linking, allowing users to easily opt-out of backtrace/metadata
1201 analysis of core files, and reduce image sizes when this is not needed.
1202
1203 * systemd-coredump will now analyze core files with libdw/libelf in a
1204 forked, sandboxed process.
1205
195d181c
LP
1206 * systemd-homed will now try to unmount an activate home area in
1207 regular intervals once the user logged out fully. Previously this was
1208 attempted exactly once but if the home directory was busy for some
1209 reason it was not tried again.
1210
dcdc652f 1211 * systemd-homed's LUKS2 home area backend will now create a BSD file
195d181c 1212 system lock on the image file while the home area is active
dcdc652f 1213 (i.e. mounted). If a home area is found to be locked, logins are
195d181c
LP
1214 politely refused. This should improve behavior when using home areas
1215 images that are accessible via the network from multiple clients, and
1216 reduce the chance of accidental file system corruption in that case.
1217
1218 * Optionally, systemd-homed will now drop the kernel buffer cache once
dcdc652f 1219 a user has fully logged out, configurable via the new --drop-caches=
195d181c
LP
1220 homectl switch.
1221
dcdc652f
ZJS
1222 * systemd-homed now makes use of UID mapped mounts for the home areas.
1223 If the kernel and used file system support it, files are now
195d181c
LP
1224 internally owned by the "nobody" user (i.e. the user typically used
1225 for indicating "this ownership is not mapped"), and dynamically
1226 mapped to the UID used locally on the system via the UID mapping
1227 mount logic of recent kernels. This makes migrating home areas
dcdc652f
ZJS
1228 between different systems cheaper because recursively chown()ing file
1229 system trees is no longer necessary.
195d181c
LP
1230
1231 * systemd-homed's CIFS backend now optionally supports CIFS service
1232 names with a directory suffix, in order to place home directories in
1233 a subdirectory of a CIFS share, instead of the top-level directory.
1234
1235 * systemd-homed's CIFS backend gained support for specifying additional
1236 mount options in the JSON user record (cifsExtraMountOptions field,
1237 and --cifs-extra-mount-options= homectl switch). This is for example
1238 useful for configuring mount options such as "noserverino" that some
dcdc652f
ZJS
1239 SMB3 services require (use that to run a homed home directory from a
1240 FritzBox SMB3 share this way).
195d181c
LP
1241
1242 * systemd-homed will now default to btrfs' zstd compression for home
dcdc652f
ZJS
1243 areas. This is inspired by Fedora's recent decision to switch to zstd
1244 by default.
195d181c
LP
1245
1246 * Additional mount options to use when mounting the file system of
1247 LUKS2 volumes in systemd-homed has been added. Via the
1248 $SYSTEMD_HOME_MOUNT_OPTIONS_BTRFS, $SYSTEMD_HOME_MOUNT_OPTIONS_EXT4,
1249 $SYSTEMD_HOME_MOUNT_OPTIONS_XFS environment variables to
1250 systemd-homed or via the luksExtraMountOptions user record JSON
1251 property. (Exposed via homectl --luks-extra-mount-options)
1252
1253 * homectl's resize command now takes the special size specifications
1254 "min" and "max" to shrink/grow the home area to the minimum/maximum
1255 size possible, taking disk usage/space constraints and file system
1256 limitations into account. Resizing is now generally graceful: the
1257 logic will try to get as close to the specified size as possible, but
1258 not consider it a failure if the request couldn't be fulfilled
1259 precisely.
1260
1261 * systemd-homed gained the ability to automatically shrink home areas
1262 on logout to their minimal size and grow them again on next
dcdc652f
ZJS
1263 login. This ensures that while inactive, a home area only takes up
1264 the minimal space necessary, but once activated, it provides
1265 sufficient space for the user's needs. This behavior is only
1266 supported if btrfs is used as file system inside the home area
1267 (because only for btrfs online growing/shrinking is implemented in
1268 the kernel). This behavior is now enabled by default, but may be
1269 controlled via the new --auto-resize-mode= setting of homectl.
195d181c
LP
1270
1271 * systemd-homed gained support for automatically re-balancing free disk
1272 space among active home areas, in case the LUKS2 backends are used,
1273 and no explicit disk size was requested. This way disk space is
1274 automatically managed and home areas resized in regular intervals and
1275 manual resizing when disk space becomes scarce should not be
1276 necessary anymore. This behavior is only supported if btrfs is used
1277 within the home areas (as only then online shrinking and growing is
1278 supported), and may be configured via the new rebalanceWeight JSON
1279 user record field (as exposed via the new --rebalance-weight= homectl
1280 setting). Re-balancing is mostly automatic, but can also be requested
1281 explicitly via "homectl rebalance", which is synchronous, and thus
dcdc652f 1282 may be used to wait until the rebalance run is complete.
195d181c
LP
1283
1284 * userdbctl gained a --json= switch for configured the JSON formatting
1285 to use when outputting user or group records.
1286
1287 * userdbctl gained a new --multiplexer= switch for explicitly
1288 configuring whether to use the systemd-userdbd server side user
1289 record resolution logic.
1290
1291 * userdbctl's ssh-authorized-keys command learnt a new --chain switch,
1292 for chaining up another command to execute after completing the
1293 look-up. Since the OpenSSH's AuthorizedKeysCommand only allows
dcdc652f
ZJS
1294 configuration of a single command to invoke, this maybe used to
1295 invoke multiple: first userdbctl's own implementation, and then any
1296 other also configured in the command line.
195d181c
LP
1297
1298 * The sd-event API gained a new function sd_event_add_inotify_fd() that
1299 is similar to sd_event_add_inotify() but accepts a file descriptor
1300 instead of a path in the file system for referencing the inode to
1301 watch.
1302
1303 * The sd-event API gained a new function
1304 sd_event_source_set_ratelimit_expire_callback() that may be used to
1305 define a callback function that is called whenever an event source
1306 leaves the rate limiting phase.
1307
1308 * New documentation has been added explaining which steps are necessary
1309 to port systemd to a new architecture:
1310
1311 https://systemd.io/PORTING_TO_NEW_ARCHITECTURES
1312
1313 * The x-systemd.makefs option in /etc/fstab now explicitly supports
dcdc652f 1314 ext2, ext3, and f2fs file systems.
195d181c 1315
97b6ed32
ZJS
1316 * Mount units and units generated from /etc/fstab entries with 'noauto'
1317 are now ordered the same as other units. Effectively, they will be
1318 started earlier (if something actually pulled them in) and stopped
1319 later, similarly to normal mount units that are part of
b0b1edc2 1320 fs-local.target. This change should be invisible to users, but
97b6ed32
ZJS
1321 should prevent those units from being stopped too early during
1322 shutdown.
1323
195d181c
LP
1324 * The systemd-getty-generator now honors a new kernel command line
1325 argument systemd.getty_auto= and a new environment variable
1326 $SYSTEMD_GETTY_AUTO that allows turning it off at boot. This is for
dcdc652f 1327 example useful to turn off gettys inside of containers or similar
195d181c
LP
1328 environments.
1329
1330 * systemd-resolved now listens on a second DNS stub address: 127.0.0.54
1331 (in addition to 127.0.0.53, as before). If DNS requests are sent to
1332 this address they are propagated in "bypass" mode only, i.e. are
1333 almost not processed locally, but mostly forwarded as-is to the
1334 current upstream DNS servers. This provides a stable DNS server
1335 address that proxies all requests dynamically to the right upstream
1336 DNS servers even if these dynamically change. This stub does not do
1337 mDNS/LLMNR resolution. However, it will translate look-ups to
1338 DNS-over-TLS if necessary. This new stub is particularly useful in
1339 container/VM environments, or for tethering setups: use DNAT to
1340 redirect traffic to any IP address to this stub.
1341
bf71ade8
LB
1342 * systemd-importd now honors new environment variables
1343 $SYSTEMD_IMPORT_BTRFS_SUBVOL, $SYSTEMD_IMPORT_BTRFS_QUOTA,
1344 $SYSTEMD_IMPORT_SYNC, which may be used disable btrfs subvolume
1345 generation, btrfs quota setup and disk synchronization.
1346
1347 * systemd-importd and systemd-resolved can now be optionally built with
1348 OpenSSL instead of libgcrypt.
1349
1350 * systemd-repart no longer requires OpenSSL.
1351
dcdc652f
ZJS
1352 * systemd-sysusers will no longer create the redundant 'nobody' group
1353 by default, as the 'nobody' user is already created with an
1354 appropriate primary group.
bf71ade8
LB
1355
1356 * If a unit uses RuntimeMaxSec, systemctl show will now display it.
1357
11b10922
LB
1358 * systemctl show-environment gained support for --output=json.
1359
bf71ade8 1360 * pam_systemd will now first try to use the X11 abstract socket, and
dcdc652f
ZJS
1361 fallback to the socket file in /tmp/.X11-unix/ only if that does not
1362 work.
11b10922 1363
dcdc652f
ZJS
1364 * systemd-journald will no longer go back to volatile storage
1365 regardless of configuration when its unit is restarted.
bf71ade8 1366
dcdc652f
ZJS
1367 * Initial support for the LoongArch architecture has been added (system
1368 call lists, GPT partition table UUIDs, etc).
efeecf40 1369
dcdc652f
ZJS
1370 * systemd-journald's own logging messages are now also logged to the
1371 journal itself when systemd-journald logs to /dev/kmsg.
6959a051 1372
dcdc652f
ZJS
1373 * systemd-journald now re-enables COW for archived journal files on
1374 filesystems that support COW. One benefit of this change is that
1375 archived journal files will now get compressed on btrfs filesystems
1376 that have compression enabled.
6959a051 1377
dcdc652f
ZJS
1378 * systemd-journald now deduplicates fields in a single log message
1379 before adding it to the journal. In archived journal files, it will
1380 also punch holes for unused parts and truncate the file as
1381 appropriate, leading to reductions in disk usage.
6959a051 1382
dcdc652f
ZJS
1383 * journalctl --verify was extended with more informative error
1384 messages.
6959a051 1385
dcdc652f
ZJS
1386 * More of sd-journal's functions are now resistant against journal file
1387 corruption.
6959a051 1388
e63fa075
ZJS
1389 * The shutdown command learnt a new option --show, to display the
1390 scheduled shutdown.
1391
dcdc652f
ZJS
1392 * A LICENSES/ directory is now included in the git tree. It contains a
1393 README.md file that explains the licenses used by source files in
1394 this repository. It also contains the text of all applicable
1395 licenses as they appear on spdx.org.
6959a051 1396
97b6ed32
ZJS
1397 Contributions from: Aakash Singh, acsfer, Adolfo Jayme Barrientos,
1398 Adrian Vovk, Albert Brox, Alberto Mardegan, Alexander Kanavin,
1399 alexlzhu, Alfonso Sánchez-Beato, Alvin Šipraga, Alyssa Ross,
1400 Amir Omidi, Anatol Pomozov, Andika Triwidada, Andreas Rammhold,
1401 Andreas Valder, Andrej Lajovic, Andrew Soutar, Andrew Stone, Andy Chi,
1402 Anita Zhang, Anssi Hannula, Antonio Alvarez Feijoo,
1403 Antony Deepak Thomas, Arnaud Ferraris, Arvid E. Picciani,
1404 Bastien Nocera, Benjamin Berg, Benjamin Herrenschmidt, Ben Stockett,
1405 Bogdan Seniuc, Boqun Feng, Carl Lei, chlorophyll-zz, Chris Packham,
1406 Christian Brauner, Christian Göttsche, Christian Wehrli,
1407 Christoph Anton Mitterer, Cristian Rodríguez, Daan De Meyer,
1408 Daniel Maixner, Dann Frazier, Dan Streetman, Davide Cavalca,
1409 David Seifert, David Tardon, dependabot[bot], Dimitri John Ledkov,
1410 Dimitri Papadopoulos, Dimitry Ishenko, Dmitry Khlebnikov,
1411 Dominique Martinet, duament, Egor, Egor Ignatov, Emil Renner Berthing,
1412 Emily Gonyer, Ettore Atalan, Evgeny Vereshchagin, Florian Klink,
1413 Franck Bui, Frantisek Sumsal, Geass-LL, Gibeom Gwon, GnunuX,
1414 Gogo Gogsi, gregzuro, Greg Zuro, Gustavo Costa, Hans de Goede,
484abbe6
ZJS
1415 Hela Basa, Henri Chain, hikigaya58, Hugo Carvalho,
1416 Hugo Osvaldo Barrera, Iago Lopez Galeiras, Iago López Galeiras,
97b6ed32
ZJS
1417 I-dont-need-name, igo95862, Jack Dähn, James Hilliard, Jan Janssen,
1418 Jan Kuparinen, Jan Macku, Jan Palus, Jarkko Sakkinen, Jayce Fayne,
1419 jiangchuangang, jlempen, John Lindgren, Jonas Dreßler, Jonas Jelten,
1420 Jonas Witschel, Joris Hartog, José Expósito, Julia Kartseva,
1421 Kai-Heng Feng, Kai Wohlfahrt, Kay Siver Bø, KennthStailey,
1422 Kevin Kuehler, Kevin Orr, Khem Raj, Kristian Klausen, Kyle Laker,
1423 lainahai, LaserEyess, Lennart Poettering, Lia Lenckowski, longpanda,
1424 Luca Boccassi, Luca BRUNO, Ludwig Nussel, Lukas Senionis,
1425 Maanya Goenka, Maciek Borzecki, Marcel Menzel, Marco Scardovi,
1426 Marcus Harrison, Mark Boudreau, Matthijs van Duin, Mauricio Vásquez,
1427 Maxime de Roucy, Max Resch, MertsA, Michael Biebl, Michael Catanzaro,
1428 Michal Koutný, Michal Sekletár, Miika Karanki, Mike Gilbert,
1429 Milo Turner, ml, monosans, Nacho Barrientos, nassir90, Nishal Kulkarni,
e63fa075 1430 nl6720, Ondrej Kozina, Paulo Neves, Pavel Březina, pedro martelletto,
484abbe6 1431 Peter Hutterer, Peter Morrow, Piotr Drąg, Rasmus Villemoes, ratijas,
97b6ed32 1432 Raul Tambre, rene, Riccardo Schirone, Robert-L-Turner, Robert Scheck,
6e6dc095
YW
1433 Ross Jennings, saikat0511, Scott Lamb, Scott Worley,
1434 Sergei Trofimovich, Sho Iizuka, Slava Bacherikov, Slimane Selyan Amiri,
1435 StefanBruens, Steven Siloti, svonohr, Taiki Sugawara, Takashi Sakamoto,
1436 Takuro Onoue, Thomas Blume, Thomas Haller, Thomas Mühlbacher,
1437 Tianlu Shao, Toke Høiland-Jørgensen, Tom Yan, Tony Asleson,
1438 Topi Miettinen, Ulrich Ölmann, Urs Ritzmann, Vincent Bernat,
1439 Vito Caputo, Vladimir Panteleev, WANG Xuerui, Wind/owZ, Wu Xiaotian,
1440 xdavidwu, Xiaotian Wu, xujing, yangmingtai, Yao Wei, Yao Wei (魏銘廷),
1441 Yegor Alexeyev, Yu Watanabe, Zbigniew Jędrzejewski-Szmek,
1442 Дамјан Георгиевски, наб
1443
1444 — Warsaw, 2021-12-23
484abbe6 1445
e7fbba56 1446CHANGES WITH 249:
f973aea7
LP
1447
1448 * When operating on disk images via the --image= switch of various
e7fbba56
LB
1449 tools (such as systemd-nspawn or systemd-dissect), or when udev finds
1450 no 'root=' parameter on the kernel command line, and multiple
f973aea7 1451 suitable root or /usr/ partitions exist in the image, then a simple
28707969
ZJS
1452 comparison inspired by strverscmp() is done on the GPT partition
1453 label, and the newest partition is picked. This permits a simple and
1454 generic whole-file-system A/B update logic where new operating system
f973aea7
LP
1455 versions are dropped into partitions whose label is then updated with
1456 a matching version identifier.
1457
1458 * systemd-sysusers now supports querying the passwords to set for the
1459 users it creates via the "credentials" logic introduced in v247: the
1460 passwd.hashed-password.<user> and passwd.plaintext-password.<user>
1461 credentials are consulted for the password to use (either in UNIX
1462 hashed form, or literally). By default these credentials are inherited
1463 down from PID1 (which in turn imports it from a container manager if
1464 there is one). This permits easy configuration of user passwords
1465 during first boot. Example:
1466
1467 # systemd-nspawn -i foo.raw --volatile=yes --set-credential=passwd.plaintext-password.root:foo
1468
1469 Note that systemd-sysusers operates in purely additive mode: it
1470 executes no operation if the declared users already exist, and hence
1471 doesn't set any passwords as effect of the command line above if the
1472 specified root user exists already in the image. (Note that
1473 --volatile=yes ensures it doesn't, though.)
1474
1475 * systemd-firstboot now also supports querying various system
1476 parameters via the credential subsystems. Thus, as above this may be
1477 used to initialize important system parameters on first boot of
1478 previously unprovisioned images (i.e. images with a mostly empty
1479 /etc/).
1480
66e6128f
LP
1481 * PID 1 may now show both the unit name and the unit description
1482 strings in its status output during boot. This may be configured with
1483 StatusUnitFormat=combined in system.conf or
1484 systemd.status-unit-format=combined on the kernel command line.
1485
f973aea7
LP
1486 * The systemd-machine-id-setup tool now supports a --image= switch for
1487 provisioning a machine ID file into an OS disk image, similar to how
1488 --root= operates on an OS file tree. This matches the existing switch
28707969 1489 of the same name for systemd-tmpfiles, systemd-firstboot, and
f973aea7
LP
1490 systemd-sysusers tools.
1491
28707969
ZJS
1492 * Similarly, systemd-repart gained support for the --image= switch too.
1493 In combination with the existing --size= option, this makes the tool
1494 particularly useful for easily growing disk images in a single
1495 invocation, following the declarative rules included in the image
1496 itself.
f973aea7
LP
1497
1498 * systemd-repart's partition configuration files gained support for a
1499 new switch MakeDirectories= which may be used to create arbitrary
1500 directories inside file systems that are created, before registering
28707969
ZJS
1501 them in the partition table. This is useful in particular for root
1502 partitions to create mount point directories for other partitions
1503 included in the image. For example, a disk image that contains a
1504 root, /home/, and /var/ partitions, may set MakeDirectories=yes to
1505 create /home/ and /var/ as empty directories in the root file system
5601400e
JB
1506 on its creation, so that the resulting image can be mounted
1507 immediately, even in read-only mode.
28707969
ZJS
1508
1509 * systemd-repart's CopyBlocks= setting gained support for the special
1510 value "auto". If used, a suitable matching partition on the booted OS
1511 is found as source to copy blocks from. This is useful when
f973aea7 1512 implementing replicating installers, that are booted from one medium
28707969 1513 and then stream their own root partition onto the target medium.
f973aea7
LP
1514
1515 * systemd-repart's partition configuration files gained support for a
66e6128f
LP
1516 Flags=, a ReadOnly= and a NoAuto= setting, allowing control of these
1517 GPT partition flags for the created partitions: this is useful for
1518 marking newly created partitions as read-only, or as not being
1519 subject for automatic mounting from creation on.
f973aea7
LP
1520
1521 * The /etc/os-release file has been extended with two new (optional)
28707969
ZJS
1522 variables IMAGE_VERSION= and IMAGE_ID=, carrying identity and version
1523 information for OS images that are updated comprehensively and
1524 atomically as one image. Two new specifiers %M, %A now resolve to
1525 these two fields in the various configuration options that resolve
1526 specifiers.
f973aea7
LP
1527
1528 * portablectl gained a new switch --extension= for enabling portable
1529 service images with extensions that follow the extension image
165c23c6
LB
1530 concept introduced with v248, and thus allows layering multiple
1531 images when setting up the root filesystem of the service.
f973aea7
LP
1532
1533 * systemd-coredump will now extract ELF build-id information from
28707969
ZJS
1534 processes dumping core and include it in the coredump report.
1535 Moreover, it will look for ELF .note.package sections with
1536 distribution packaging meta-information about the crashing process.
1537 This is useful to directly embed the rpm or deb (or any other)
1538 package name and version in ELF files, making it easy to match
1539 coredump reports with the specific package for which the software was
1540 compiled. This is particularly useful on environments with ELF files
1541 from multiple vendors, different distributions and versions, as is
1542 common today in our containerized and sand-boxed world. For further
1543 information, see:
f973aea7
LP
1544
1545 https://systemd.io/COREDUMP_PACKAGE_METADATA
1546
28707969
ZJS
1547 * A new udev hardware database has been added for FireWire devices
1548 (IEEE 1394).
f973aea7 1549
14e97d24
ZJS
1550 * The "net_id" built-in of udev has been updated with three
1551 backwards-incompatible changes:
1552
1553 - PCI hotplug slot names on s390 systems are now parsed as
1554 hexadecimal numbers. They were incorrectly parsed as decimal
1555 previously, or ignored if the name was not a valid decimal
1556 number.
1557
1558 - PCI onboard indices up to 65535 are allowed. Previously, numbers
1559 above 16383 were rejected. This primarily impacts s390 systems,
1560 where values up to 65535 are used.
1561
1562 - Invalid characters in interface names are replaced with "_".
1563
1564 The new version of the net naming scheme is "v249". The previous
1565 scheme can be selected via the "net.naming-scheme=v247" kernel
1566 command line parameter.
1567
f973aea7
LP
1568 * sd-bus' sd_bus_is_ready() and sd_bus_is_open() calls now accept a
1569 NULL bus object, for which they will return false. Or in other words,
1570 an unallocated bus connection is neither ready nor open.
1571
99c2a955 1572 * The sd-device API acquired a new API function
28707969
ZJS
1573 sd_device_get_usec_initialized() that returns the monotonic time when
1574 the udev device first appeared in the database.
99c2a955
LP
1575
1576 * sd-device gained a new APIs sd_device_trigger_with_uuid() and
1577 sd_device_get_trigger_uuid(). The former is similar to
1578 sd_device_trigger() but returns a randomly generated UUID that is
1579 associated with the synthetic uevent generated by the call. This UUID
1580 may be read from the sd_device object a monitor eventually receives,
1581 via the sd_device_get_trigger_uuid(). This interface requires kernel
1582 4.13 or above to work, and allows tracking a synthetic uevent through
1583 the entire device management stack. The "udevadm trigger --settle"
1584 logic has been updated to make use of this concept if available to
1585 wait precisely for the uevents it generates. "udevadm trigger" also
1586 gained a new parameter --uuid that prints the UUID for each generated
1587 uevent.
1588
ca1e8584
LP
1589 * sd-device also gained new APIs sd_device_new_from_ifname() and
1590 sd_device_new_from_ifindex() for allocating an sd-device object for
1591 the specified network interface. The former accepts an interface name
1592 (either a primary or an alternative name), the latter an interface
1593 index.
1594
f973aea7
LP
1595 * The native Journal protocol has been documented. Clients may talk
1596 this as alternative to the classic BSD syslog protocol for locally
1597 delivering log records to the Journal. The protocol has been stable
5601400e 1598 for a long time and in fact been implemented already in a variety
f973aea7
LP
1599 of alternative client libraries. This documentation makes the support
1600 for that official:
1601
1602 https://systemd.io/JOURNAL_NATIVE_PROTOCOL
1603
1604 * A new BPFProgram= setting has been added to service files. It may be
1605 set to a path to a loaded kernel BPF program, i.e. a path to a bpffs
1606 file, or a bind mount or symlink to one. This may be used to upload
1607 and manage BPF programs externally and then hook arbitrary systemd
1608 services into them.
1609
1610 * The "home.arpa" domain that has been officially declared as the
1611 choice for domain for local home networks per RFC 8375 has been added
1612 to the default NTA list of resolved, since DNSSEC is generally not
1613 available on private domains.
1614
1615 * The CPUAffinity= setting of unit files now resolves "%" specifiers.
1616
1617 * A new ManageForeignRoutingPolicyRules= setting has been added to
1618 .network files which may be used to exclude foreign-created routing
1619 policy rules from systemd-networkd management.
1620
1621 * systemd-network-wait-online gained two new switches -4 and -6 that
1622 may be used to tweak whether to wait for only IPv4 or only IPv6
1623 connectivity.
1624
1625 * .network files gained a new RequiredFamilyForOnline= setting to
1626 fine-tune whether to require an IPv4 or IPv6 address in order to
1627 consider an interface "online".
1628
99c2a955
LP
1629 * networkctl will now show an over-all "online" state in the per-link
1630 information.
1631
1632 * In .network files a new OutgoingInterface= setting has been added to
1633 specify the output interface in bridge FDB setups.
1634
566c8176 1635 * In .network files the Multipath group ID may now be configured for
99c2a955 1636 [NextHop] entries, via the new Group= setting.
f973aea7
LP
1637
1638 * The DHCP server logic configured in .network files gained a new
28707969
ZJS
1639 setting RelayTarget= that turns the server into a DHCP server relay.
1640 The RelayAgentCircuitId= and RelayAgentRemoteId= settings may be used
1641 to further tweak the DHCP relay behaviour.
f973aea7 1642
28707969
ZJS
1643 * The DHCP server logic also gained a new ServerAddress= setting in
1644 .network files that explicitly specifies the server IP address to
1645 use. If not specified, the address is determined automatically, as
1646 before.
f973aea7 1647
99c2a955
LP
1648 * The DHCP server logic in systemd-networkd gained support for static
1649 DHCP leases, configurable via the [DHCPServerStaticLease]
1650 section. This allows explicitly mapping specific MAC addresses to
1651 fixed IP addresses and vice versa.
1652
1653 * The RestrictAddressFamilies= setting in service files now supports a
1654 new special value "none". If specified sockets of all address
1655 families will be made unavailable to services configured that way.
f973aea7
LP
1656
1657 * systemd-fstab-generator and systemd-repart have been updated to
1658 support booting from disks that carry only a /usr/ partition but no
28707969
ZJS
1659 root partition yet, and where systemd-repart can add it in on the
1660 first boot. This is useful for implementing systems that ship with a
1661 single /usr/ file system, and whose root file system shall be set up
1662 and formatted on a LUKS-encrypted volume whose key is generated
1663 locally (and possibly enrolled in the TPM) during the first boot.
f973aea7
LP
1664
1665 * The [Address] section of .network files now accepts a new
1666 RouteMetric= setting that configures the routing metric to use for
28707969
ZJS
1667 the prefix route created as effect of the address configuration.
1668 Similarly, the [DHCPv6PrefixDelegation] and [IPv6Prefix] sections
1669 gained matching settings for their prefix routes. (The option of the
1670 same name in the [DHCPv6] section is moved to [IPv6AcceptRA], since
1671 it conceptually belongs there; the old option is still understood for
1672 compatibility.)
f973aea7 1673
f973aea7
LP
1674 * The DHCPv6 IAID and DUID are now explicitly configurable in .network
1675 files.
1676
1677 * A new udev property ID_NET_DHCP_BROADCAST on network interface
28707969 1678 devices is now honoured by systemd-networkd, controlling whether to
f973aea7
LP
1679 issue DHCP offers via broadcasting. This is used to ensure that s390
1680 layer 3 network interfaces work out-of-the-box with systemd-networkd.
1681
1682 * nss-myhostname and systemd-resolved will now synthesize address
1683 records for a new special hostname "_outbound". The name will always
1684 resolve to the local IP addresses most likely used for outbound
28707969 1685 connections towards the default routes. On multi-homed hosts this is
f973aea7
LP
1686 useful to have a stable handle referring to "the" local IP address
1687 that matters most, to the point where this is defined.
1688
1689 * The Discoverable Partition Specification has been updated with a new
5601400e
JB
1690 GPT partition flag "grow-file-system" defined for its partition
1691 types. Whenever partitions with this flag set are automatically
1692 mounted (i.e. via systemd-gpt-auto-generator or the --image= switch
1693 of systemd-nspawn or other tools; and as opposed to explicit mounting
f973aea7 1694 via /etc/fstab), the file system within the partition is
28707969
ZJS
1695 automatically grown to the full size of the partition. If the file
1696 system size already matches the partition size this flag has no
1697 effect. Previously, this functionality has been available via the
1698 explicit x-systemd.growfs mount option, and this new flag extends
1699 this to automatically discovered mounts. A new GrowFileSystem=
1700 setting has been added to systemd-repart drop-in files that allows
1701 configuring this partition flag. This new flag defaults to on for
1702 partitions automatically created by systemd-repart, except if they
1703 are marked read-only. See the specification for further details:
f973aea7
LP
1704
1705 https://systemd.io/DISCOVERABLE_PARTITIONS
1706
99c2a955 1707 * .network files gained a new setting RoutesToNTP= in the [DHCPv4]
f973aea7
LP
1708 section. If enabled (which is the default), and an NTP server address
1709 is acquired through a DHCP lease on this interface an explicit route
1710 to this address is created on this interface to ensure that NTP
1711 traffic to the NTP server acquired on an interface is also routed
4076ad9d 1712 through that interface. The pre-existing RoutesToDNS= setting that
f973aea7
LP
1713 implements the same for DNS servers is now enabled by default.
1714
1715 * A pair of service settings SocketBindAllow= + SocketBindDeny= have
1716 been added that may be used to restrict the network interfaces
1717 sockets created by the service may be bound to. This is implemented
1718 via BPF.
1719
14e97d24
ZJS
1720 * A new ConditionFirmware= setting has been added to unit files to
1721 conditionalize on certain firmware features. At the moment it may
1722 check whether running on an UEFI system, a device.tree system, or if
1723 the system is compatible with some specified device-tree feature.
1724
1725 * A new ConditionOSRelease= setting has been added to unit files to
1726 check os-release(5) fields. The "=", "!=", "<", "<=", ">=", ">"
1727 operators may be used to check if some field has some specific value
387f6955
YW
1728 or do an alphanumerical comparison. Equality comparisons are useful
1729 for fields like ID, but relative comparisons for fields like
1730 VERSION_ID or IMAGE_VERSION.
f973aea7
LP
1731
1732 * hostnamed gained a new Describe() D-Bus method that returns a JSON
1733 serialization of the host data it exposes. This is exposed via
28707969
ZJS
1734 "hostnamectl --json=" to acquire a host identity description in JSON.
1735 It's our intention to add a similar features to most services and
1736 objects systemd manages, in order to simplify integration with
1737 program code that can consume JSON.
f973aea7 1738
28707969
ZJS
1739 * Similarly, networkd gained a Describe() method on its Manager and
1740 Link bus objects. This is exposed via "networkctl --json=".
5f94ac54 1741
28707969
ZJS
1742 * hostnamectl's various "get-xyz"/"set-xyz" verb pairs
1743 (e.g. "hostnamectl get-hostname", "hostnamectl "set-hostname") have
1744 been replaced by a single "xyz" verb (e.g. "hostnamectl hostname")
1745 that is used both to get the value (when no argument is given), and
1746 to set the value (when an argument is specified). The old names
1747 continue to be supported for compatibility.
f973aea7
LP
1748
1749 * systemd-detect-virt and ConditionVirtualization= are now able to
1750 correctly identify Amazon EC2 environments.
1751
1752 * The LogLevelMax= setting of unit files now applies not only to log
1753 messages generated *by* the service, but also to log messages
1754 generated *about* the service by PID 1. To suppress logs concerning a
1755 specific service comprehensively, set this option to a high log
1756 level.
1757
1758 * bootctl gained support for a new --make-machine-id-directory= switch
1759 that allows precise control on whether to create the top-level
28707969
ZJS
1760 per-machine directory in the boot partition that typically contains
1761 Type 1 boot loader entries.
f973aea7 1762
5f94ac54
LP
1763 * During build SBAT data to include in the systemd-boot EFI PE binaries
1764 may be specified now.
1765
1766 * /etc/crypttab learnt a new option "headless". If specified any
1767 requests to query the user interactively for passwords or PINs will
1768 be skipped. This is useful on systems that are headless, i.e. where
1769 an interactive user is generally not present.
1770
00fb6caf
LP
1771 * /etc/crypttab also learnt a new option "password-echo=" that allows
1772 configuring whether the encryption password prompt shall echo the
1773 typed password and if so, do so literally or via asterisks. (The
1774 default is the same behaviour as before: provide echo feedback via
1775 asterisks.)
1776
5f94ac54
LP
1777 * FIDO2 support in systemd-cryptenroll/systemd-cryptsetup and
1778 systemd-homed has been updated to allow explicit configuration of the
1779 "user presence" and "user verification" checks, as well as whether a
1780 PIN is required for authentication, via the new switches
1781 --fido2-with-user-presence=, --fido2-with-user-verification=,
1782 --fido2-with-client-pin= to systemd-cryptenroll and homectl. Which
1783 features are available, and may be enabled or disabled depends on the
1784 used FIDO2 token.
1785
1786 * systemd-nspawn's --private-user= switch now accepts the special value
1787 "identity" which configures a user namespacing environment with an
1788 identity mapping of 65535 UIDs. This means the container UID 0 is
1789 mapped to the host UID 0, and the UID 1 to host UID 1. On first look
1790 this doesn't appear to be useful, however it does reduce the attack
1791 surface a bit, since the resulting container will possess process
1792 capabilities only within its namespace and not on the host.
1793
1794 * systemd-nspawn's --private-user-chown switch has been replaced by a
1795 more generic --private-user-ownership= switch that accepts one of
1796 three values: "chown" is equivalent to the old --private-user-chown,
1797 and "off" is equivalent to the absence of the old switch. The value
1798 "map" uses the new UID mapping mounts of Linux 5.12 to map ownership
1799 of files and directories of the underlying image to the chosen UID
1800 range for the container. "auto" is equivalent to "map" if UID mapping
1801 mount are supported, otherwise it is equivalent to "chown". The short
1802 -U switch systemd-nspawn now implies --private-user-ownership=auto
1803 instead of the old --private-user-chown. Effectively this means: if
1804 the backing file system supports UID mapping mounts the feature is
1805 now used by default if -U is used. Generally, it's a good idea to use
1806 UID mapping mounts instead of recursive chown()ing, since it allows
1807 running containers off immutable images (since no modifications of
1808 the images need to take place), and share images between multiple
1809 instances. Moreover, the recursive chown()ing operation is slow and
1810 can be avoided. Conceptually it's also a good thing if transient UID
1811 range uses do not leak into persistent file ownership anymore. TLDR:
1812 finally, the last major drawback of user namespacing has been
1813 removed, and -U should always be used (unless you use btrfs, where
1814 UID mapped mounts do not exist; or your container actually needs
1815 privileges on the host).
1816
1817 * nss-systemd now synthesizes user and group shadow records in addition
1818 to the main user and group records. Thus, hashed passwords managed by
1819 systemd-homed are now accessible via the shadow database.
1820
1821 * The userdb logic (and thus nss-systemd, and so on) now read
1822 additional user/group definitions in JSON format from the drop-in
1823 directories /etc/userdb/, /run/userdb/, /run/host/userdb/ and
1824 /usr/lib/userdb/. This is a simple and powerful mechanism for making
1825 additional users available to the system, with full integration into
1826 NSS including the shadow databases. Since the full JSON user/group
1827 record format is supported this may also be used to define users with
1828 resource management settings and other runtime settings that
1829 pam_systemd and systemd-logind enforce at login.
1830
1831 * The userdbctl tool gained two new switches --with-dropin= and
1832 --with-varlink= which can be used to fine-tune the sources used for
1833 user database lookups.
1834
1835 * systemd-nspawn gained a new switch --bind-user= for binding a host
1836 user account into the container. This does three things: the user's
1837 home directory is bind mounted from the host into the container,
1838 below the /run/userdb/home/ hierarchy. A free UID is picked in the
1839 container, and a user namespacing UID mapping to the host user's UID
1840 installed. And finally, a minimal JSON user and group record (along
1841 with its hashed password) is dropped into /run/host/userdb/. These
1842 records are picked up automatically by the userdb drop-in logic
1843 describe above, and allow the user to login with the same password as
1844 on the host. Effectively this means: if host and container run new
1845 enough systemd versions making a host user available to the container
1846 is trivially simple.
1847
1848 * systemd-journal-gatewayd now supports the switches --user, --system,
1849 --merge, --file= that are equivalent to the same switches of
1850 journalctl, and permit exposing only the specified subset of the
1851 Journal records.
1852
5f94ac54
LP
1853 * The OnFailure= dependency between units is now augmented with a
1854 implicit reverse dependency OnFailureOf= (this new dependency cannot
1855 be configured directly it's only created as effect of an OnFailure=
1856 dependency in the reverse order — it's visible in "systemctl show"
1857 however). Similar, Slice= now has an reverse dependency SliceOf=,
1858 that is also not configurable directly, but useful to determine all
1859 units that are members of a slice.
1860
1861 * A pair of new dependency types between units PropagatesStopTo= +
1862 StopPropagatedFrom= has been added, that allows propagation of unit
1863 stop events between two units. It operates similar to the existing
1864 PropagatesReloadTo= + ReloadPropagatedFrom= dependencies.
f973aea7 1865
99c2a955
LP
1866 * A new dependency type OnSuccess= has been added (plus the reverse
1867 dependency OnSuccessOf=, which cannot be configured directly, but
28707969
ZJS
1868 exists only as effect of the reverse OnSuccess=). It is similar to
1869 OnFailure=, but triggers in the opposite case: when a service exits
99c2a955 1870 cleanly. This allows "chaining up" of services where one or more
28707969 1871 services are started once another service has successfully completed.
99c2a955
LP
1872
1873 * A new dependency type Upholds= has been added (plus the reverse
28707969
ZJS
1874 dependency UpheldBy=, which cannot be configured directly, but exists
1875 only as effect of Upholds=). This dependency type is a stronger form
1876 of Wants=: if a unit has an UpHolds= dependency on some other unit
1877 and the former is active then the latter is started whenever it is
1878 found inactive (and no job is queued for it). This is an alternative
1879 to Restart= inside service units, but less configurable, and the
1880 request to uphold a unit is not encoded in the unit itself but in
1881 another unit that intends to uphold it.
99c2a955
LP
1882
1883 * The systemd-ask-password tool now also supports reading passwords
1884 from the credentials subsystem, via the new --credential= switch.
1885
1886 * The systemd-ask-password tool learnt a new switch --emoji= which may
1887 be used to explicit control whether the lock and key emoji (🔐) is
1888 shown in the password prompt on suitable TTYs.
1889
1890 * The --echo switch of systemd-ask-password now optionally takes a
28707969
ZJS
1891 parameter that controls character echo. It may either show asterisks
1892 (default, as before), turn echo off entirely, or echo the typed
1893 characters literally.
99c2a955 1894
66e6128f
LP
1895 * The systemd-ask-password tool also gained a new -n switch for
1896 suppressing output of a trailing newline character when writing the
1897 acquired password to standard output, similar to /bin/echo's -n
1898 switch.
1899
99c2a955
LP
1900 * New documentation has been added that describes the organization of
1901 the systemd source code tree:
1902
1903 https://systemd.io/ARCHITECTURE
1904
165c23c6
LB
1905 * Units using ConditionNeedsUpdate= will no longer be activated in
1906 the initrd.
1907
00fb6caf
LP
1908 * It is now possible to list a template unit in the WantedBy= or
1909 RequiredBy= settings of the [Install] section of another template
1910 unit, which will be instantiated using the same instance name.
165c23c6
LB
1911
1912 * A new MemoryAvailable property is available for units. If the unit,
1913 or the slice(s) it is part of, have a memory limit set via MemoryMax=/
1914 MemoryHigh=, MemoryAvailable will indicate how much more memory the
1915 unit can claim before hitting the limit(s).
1916
1917 * systemd-coredump will now try to stay below the cgroup memory limit
1918 placed on itself or one of the slices it runs under, if the storage
1919 area for core files (/var/lib/systemd/coredump/) is placed on a tmpfs,
1920 since files written on such filesystems count toward the cgroup memory
1921 limit. If there is not enough available memory in such cases to store
1922 the core file uncompressed, systemd-coredump will skip to compressed
1923 storage directly (if enabled) and it will avoid analyzing the core file
1924 to print backtrace and metadata in the journal.
1925
00fb6caf
LP
1926 * tmpfiles.d/ drop-ins gained a new '=' modifier to check if the type
1927 of a path matches the configured expectations, and remove it if not.
165c23c6 1928
00fb6caf
LP
1929 * tmpfiles.d/'s 'Age' now accepts an 'age-by' argument, which allows to
1930 specify which of the several available filesystem timestamps (access
1931 time, birth time, change time, modification time) to look at when
1932 deciding whether a path has aged enough to be cleaned.
165c23c6 1933
00fb6caf
LP
1934 * A new IPv6StableSecretAddress= setting has been added to .network
1935 files, which takes an IPv6 address to use as secret for IPv6 address
1936 generation.
1937
1938 * The [DHCPServer] logic in .network files gained support for a new
1939 UplinkInterface= setting that permits configuration of the uplink
1940 interface name to propagate DHCP lease information from.
1941
1942 * The WakeOnLan= setting in .link files now accepts a list of flags
1943 instead of a single one, to configure multiple wake-on-LAN policies.
1944
ca1e8584
LP
1945 * User-space defined tracepoints (USDT) have been added to udev at
1946 strategic locations. This is useful for tracing udev behaviour and
1947 performance with bpftrace and similar tools.
1948
1949 * systemd-journald-upload gained a new NetworkTimeoutSec= option for
1950 setting a network timeout time.
1951
5b8fdb18
LB
1952 * If a system service is running in a new mount namespace (RootDirectory=
1953 and friends), all file systems will be mounted with MS_NOSUID by
1954 default, unless the system is running with SELinux enabled.
1955
66e6128f
LP
1956 * When enumerating time zones the timedatectl tool will now consult the
1957 'tzdata.zi' file shipped by the IANA time zone database package, in
1958 addition to 'zone1970.tab', as before. This makes sure time zone
1959 aliases are now correctly supported. Some distributions so far did
1960 not install this additional file, most do however. If you
1961 distribution does not install it yet, it might make sense to change
1962 that.
1963
3c88ade5
KHF
1964 * Intel HID rfkill event is no longer masked, since it's the only
1965 source of rfkill event on newer HP laptops. To have both backward and
1966 forward compatibility, userspace daemon needs to debounce duplicated
1967 events in a short time window.
1968
b2f0876b 1969 Contributions from: Aakash Singh, adrian5, Albert Brox,
fc4340b0
LB
1970 Alexander Sverdlin, Alexander Tsoy, Alexey Rubtsov, alexlzhu,
1971 Allen Webb, Alvin Šipraga, Alyssa Ross, Anders Wenhaug,
1972 Andrea Pappacoda, Anita Zhang, asavah, Balint Reczey, Bertrand Jacquin,
1973 borna-blazevic, caoxia2008cxx, Carlo Teubner, Christian Göttsche,
1974 Christian Hesse, Daniel Schaefer, Dan Streetman,
1975 David Santamaría Rogado, David Tardon, Deepak Rawat, dgcampea,
1976 Dimitri John Ledkov, ei-ke, Emilio Herrera, Emil Renner Berthing,
1977 Eric Cook, Flos Lonicerae, Franck Bui, Francois Gervais,
1978 Frantisek Sumsal, Gibeom Gwon, gitm0, Hamish Moffatt, Hans de Goede,
1979 Harsh Barsaiyan, Henri Chain, Hristo Venev, Icenowy Zheng, Igor Zhbanov,
1980 imayoda, Jakub Warczarek, James Buren, Jan Janssen, Jan Macku,
1981 Jan Synacek, Jason Francis, Jayanth Ananthapadmanaban, Jeremy Szu,
1982 Jérôme Carretero, Jesse Stricker, jiangchuangang, Joerg Behrmann,
1983 Jóhann B. Guðmundsson, Jörg Deckert, Jörg Thalheim, Juergen Hoetzel,
1984 Julia Kartseva, Kai-Heng Feng, Khem Raj, KoyamaSohei, laineantti,
1985 Lennart Poettering, LetzteInstanz, Luca Adrian L, Luca Boccassi,
1986 Lucas Magasweran, Mantas Mikulėnas, Marco Antonio Mauro, Mark Wielaard,
1987 Masahiro Matsuya, Matt Johnston, Michael Catanzaro, Michal Koutný,
1988 Michal Sekletár, Mike Crowe, Mike Kazantsev, Milan, milaq,
1989 Miroslav Suchý, Morten Linderud, nerdopolis, nl6720, Noah Meyerhans,
1990 Oleg Popov, Olle Lundberg, Ondrej Kozina, Paweł Marciniak, Perry.Yuan,
1991 Peter Hutterer, Peter Kjellerstedt, Peter Morrow, Phaedrus Leeds,
1992 plattrap, qhill, Raul Tambre, Roman Beranek, Roshan Shariff,
1993 Ryan Hendrickson, Samuel BF, scootergrisen, Sebastian Blunt,
1994 Seong-ho Cho, Sergey Bugaev, Sevan Janiyan, Sibo Dong, simmon,
1995 Simon Watts, Srinidhi Kaushik, Štěpán Němec, Steve Bonds, Susant Sahani,
1996 sverdlin, syyhao1994, Takashi Sakamoto, Topi Miettinen, tramsay,
1997 Trent Piepho, Uwe Kleine-König, Viktor Mihajlovski, Vincent Dechenaux,
1998 Vito Caputo, William A. Kennington III, Yangyang Shen, Yegor Alexeyev,
1999 Yi Gao, Yu Watanabe, Zbigniew Jędrzejewski-Szmek, zsien, наб
6969135f 2000
f6278558 2001 — Edinburgh, 2021-07-07
99c2a955 2002
94293d65
LB
2003CHANGES WITH 248:
2004
6dd990f3
ZJS
2005 * A concept of system extension images is introduced. Such images may
2006 be used to extend the /usr/ and /opt/ directory hierarchies at
2007 runtime with additional files (even if the file system is read-only).
2008 When a system extension image is activated, its /usr/ and /opt/
2009 hierarchies and os-release information are combined via overlayfs
2010 with the file system hierarchy of the host OS.
2011
2012 A new systemd-sysext tool can be used to merge, unmerge, list, and
2013 refresh system extension hierarchies. See
2014 https://www.freedesktop.org/software/systemd/man/systemd-sysext.html.
2015
2016 The systemd-sysext.service automatically merges installed system
2017 extensions during boot (before basic.target, but not in very early
2018 boot, since various file systems have to be mounted first).
2019
2020 The SYSEXT_LEVEL= field in os-release(5) may be used to specify the
2021 supported system extension level.
2022
873b5cbd
LB
2023 * A new ExtensionImages= unit setting can be used to apply the same
2024 system extension image concept from systemd-sysext to the namespaced
2025 file hierarchy of specific services, following the same rules and
2026 constraints.
2027
33e68cce
ZJS
2028 * Support for a new special "root=tmpfs" kernel command-line option has
2029 been added. When specified, a tmpfs is mounted on /, and mount.usr=
2030 should be used to point to the operating system implementation.
2031
6dd990f3 2032 * A new configuration file /etc/veritytab may be used to configure
2b6a8a4b
LP
2033 dm-verity integrity protection for block devices. Each line is in the
2034 format "volume-name data-device hash-device roothash options",
2035 similar to /etc/crypttab.
6dd990f3 2036
2b6a8a4b 2037 * A new kernel command-line option systemd.verity.root_options= may be
6dd990f3
ZJS
2038 used to configure dm-verity behaviour for the root device.
2039
2040 * The key file specified in /etc/crypttab (the third field) may now
1f3315b8
LP
2041 refer to an AF_UNIX/SOCK_STREAM socket in the file system. The key is
2042 acquired by connecting to that socket and reading from it. This
2043 allows the implementation of a service to provide key information
2044 dynamically, at the moment when it is needed.
6dd990f3 2045
89b6acfd
ZJS
2046 * When the hostname is set explicitly to "localhost", systemd-hostnamed
2047 will respect this. Previously such a setting would be mostly silently
2048 ignored. The goal is to honour configuration as specified by the
2049 user.
2050
2051 * The fallback hostname that will be used by the system manager and
2052 systemd-hostnamed can now be configured in two new ways: by setting
2053 DEFAULT_HOSTNAME= in os-release(5), or by setting
2054 $SYSTEMD_DEFAULT_HOSTNAME in the environment block. As before, it can
2055 also be configured during compilation. The environment variable is
2056 intended for testing and local overrides, the os-release(5) field is
2057 intended to allow customization by different variants of a
2058 distribution that share the same compiled packages.
2059
2060 * The environment block of the manager itself may be configured through
2061 a new ManagerEnvironment= setting in system.conf or user.conf. This
2062 complements existing ways to set the environment block (the kernel
2063 command line for the system manager, the inherited environment and
2064 user@.service unit file settings for the user manager).
2065
2066 * systemd-hostnamed now exports the default hostname and the source of
2067 the configured hostname ("static", "transient", or "default") as
2068 D-Bus properties.
2069
2070 * systemd-hostnamed now exports the "HardwareVendor" and
2071 "HardwareModel" D-Bus properties, which are supposed to contain a
2072 pair of cleaned up, human readable strings describing the system's
2073 vendor and model. It's typically sourced from the firmware's DMI
2074 tables, but may be augmented from a new hwdb database. hostnamectl
2075 shows this in the status output.
2076
1f3315b8
LP
2077 * Support has been added to systemd-cryptsetup for extracting the
2078 PKCS#11 token URI and encrypted key from the LUKS2 JSON embedded
2079 metadata header. This allows the information how to open the
2080 encrypted device to be embedded directly in the device and obviates
2081 the need for configuration in an external file.
6dd990f3 2082
1f3315b8 2083 * systemd-cryptsetup gained support for unlocking LUKS2 volumes using
2b6a8a4b
LP
2084 TPM2 hardware, as well as FIDO2 security tokens (in addition to the
2085 pre-existing support for PKCS#11 security tokens).
6dd990f3 2086
2b6a8a4b
LP
2087 * systemd-repart may enroll encrypted partitions using TPM2
2088 hardware. This may be useful for example to create an encrypted /var
2089 partition bound to the machine on first boot.
6dd990f3 2090
1f3315b8
LP
2091 * A new systemd-cryptenroll tool has been added to enroll TPM2, FIDO2
2092 and PKCS#11 security tokens to LUKS volumes, list and destroy
2093 them. See:
2094
2095 http://0pointer.net/blog/unlocking-luks2-volumes-with-tpm2-fido2-pkcs11-security-hardware-on-systemd-248.html
2096
2097 It also supports enrolling "recovery keys" and regular passphrases.
2098
2099 * The libfido2 dependency is now based on dlopen(), so that the library
2b6a8a4b
LP
2100 is used at runtime when installed, but is not a hard runtime
2101 dependency.
1f3315b8
LP
2102
2103 * systemd-cryptsetup gained support for two new options in
2b6a8a4b
LP
2104 /etc/crypttab: "no-write-workqueue" and "no-read-workqueue" which
2105 request synchronous processing of encryption/decryption IO.
6dd990f3 2106
2b6a8a4b
LP
2107 * The manager may be configured at compile time to use the fexecve()
2108 instead of the execve() system call when spawning processes. Using
2109 fexecve() closes a window between checking the security context of an
2110 executable and spawning it, but unfortunately the kernel displays
2111 stale information in the process' "comm" field, which impacts ps
2112 output and such.
6dd990f3
ZJS
2113
2114 * The configuration option -Dcompat-gateway-hostname has been dropped.
2115 "_gateway" is now the only supported name.
2116
1f3315b8
LP
2117 * The ConditionSecurity=tpm2 unit file setting may be used to check if
2118 the system has at least one TPM2 (tpmrm class) device.
6dd990f3 2119
2b6a8a4b
LP
2120 * A new ConditionCPUFeature= has been added that may be used to
2121 conditionalize units based on CPU features. For example,
2122 ConditionCPUFeature=rdrand will condition a unit so that it is only
2123 run when the system CPU supports the RDRAND opcode.
2124
89b6acfd
ZJS
2125 * The existing ConditionControlGroupController= setting has been
2126 extended with two new values "v1" and "v2". "v2" means that the
b49bb286 2127 unified v2 cgroup hierarchy is used, and "v1" means that legacy v1
89b6acfd
ZJS
2128 hierarchy or the hybrid hierarchy are used.
2129
33e68cce
ZJS
2130 * A new PrivateIPC= setting on a unit file allows executed processes to
2131 be moved into a private IPC namespace, with separate System V IPC
2132 identifiers and POSIX message queues.
2133
2134 A new IPCNamespacePath= allows the unit to be joined to an existing
2135 IPC namespace.
2136
64297c86 2137 * The tables of system calls in seccomp filters are now automatically
6dd990f3
ZJS
2138 generated from kernel lists exported on
2139 https://fedora.juszkiewicz.com.pl/syscalls.html.
2140
2141 The following architectures should now have complete lists:
2142 alpha, arc, arm64, arm, i386, ia64, m68k, mips64n32, mips64, mipso32,
2143 powerpc, powerpc64, s390, s390x, tilegx, sparc, x86_64, x32.
2144
94293d65 2145 * The MountAPIVFS= service file setting now additionally mounts a tmpfs
6dd990f3
ZJS
2146 on /run/ if it is not already a mount point. A writable /run/ has
2147 always been a requirement for a functioning system, but this was not
94293d65 2148 guaranteed when using a read-only image.
6dd990f3
ZJS
2149
2150 Users can always specify BindPaths= or InaccessiblePaths= as
2151 overrides, and they will take precedence. If the host's root mount
2152 point is used, there is no change in behaviour.
2153
2154 * New bind mounts and file system image mounts may be injected into the
2155 mount namespace of a service (without restarting it). This is exposed
9ba008cb
LB
2156 respectively as 'systemctl bind <unit> <path>…' and
2157 'systemctl mount-image <unit> <image>…'.
6dd990f3 2158
2b6a8a4b 2159 * The StandardOutput= and StandardError= settings can now specify files
6dd990f3
ZJS
2160 to be truncated for output (as "truncate:<path>").
2161
2162 * The ExecPaths= and NoExecPaths= settings may be used to specify
2163 noexec for parts of the file system.
2164
1f3315b8 2165 * sd-bus has a new function sd_bus_open_user_machine() to open a
6dd990f3 2166 connection to the session bus of a specific user in a local container
2b6a8a4b
LP
2167 or on the local host. This is exposed in the existing -M switch to
2168 systemctl and similar tools:
1f3315b8
LP
2169
2170 systemctl --user -M lennart@foobar start foo
2171
2172 This will connect to the user bus of a user "lennart" in container
2173 "foobar". If no container name is specified, the specified user on
2174 the host itself is connected to
2175
2176 systemctl --user -M lennart@ start quux
6dd990f3 2177
6c41cf44
LP
2178 * sd-bus also gained a convenience function sd_bus_message_send() to
2179 simplify invocations of sd_bus_send(), taking only a single
2180 parameter: the message to send.
1f3315b8
LP
2181
2182 * sd-event allows rate limits to be set on event sources, for dealing
2183 with high-priority event sources that might starve out others. See
2184 the new man page sd_event_source_set_ratelimit(3) for details.
6dd990f3
ZJS
2185
2186 * systemd.link files gained a [Link] Promiscuous= switch, which allows
2187 the device to be raised in promiscuous mode.
2188
2189 New [Link] TransmitQueues= and ReceiveQueues= settings allow the
2190 number of TX and RX queues to be configured.
2191
2192 New [Link] TransmitQueueLength= setting allows the size of the TX
2193 queue to be configured.
2194
2195 New [Link] GenericSegmentOffloadMaxBytes= and
2196 GenericSegmentOffloadMaxSegments= allow capping the packet size and
2197 the number of segments accepted in Generic Segment Offload.
2198
33e68cce
ZJS
2199 * systemd-networkd gained support for the "B.A.T.M.A.N. advanced"
2200 wireless routing protocol that operates on ISO/OSI Layer 2 only and
2201 uses ethernet frames to route/bridge packets. This encompasses a new
2202 "batadv" netdev Type=, a new [BatmanAdvanced] section with a bunch of
2203 new settings in .netdev files, and a new BatmanAdvanced= setting in
2204 .network files.
2205
6dd990f3
ZJS
2206 * systemd.network files gained a [Network] RouteTable= configuration
2207 switch to select the routing policy table.
2208
2209 systemd.network files gained a [RoutingPolicyRule] Type=
2210 configuration switch (one of "blackhole, "unreachable", "prohibit").
2211
2212 systemd.network files gained a [IPv6AcceptRA] RouteDenyList= and
2213 RouteAllowList= settings to ignore/accept route advertisements from
2214 routers matching specified prefixes. The DenyList= setting has been
2215 renamed to PrefixDenyList= and a new PrefixAllowList= option has been
2216 added.
2217
2218 systemd.network files gained a [DHCPv6] UseAddress= setting to
2219 optionally ignore the address provided in the lease.
2220
2221 systemd.network files gained a [DHCPv6PrefixDelegation]
2222 ManageTemporaryAddress= switch.
2223
33e68cce
ZJS
2224 systemd.network files gained a new ActivationPolicy= setting which
2225 allows configuring how the UP state of an interface shall be managed,
b480543c 2226 i.e. whether the interface is always upped, always downed, or may be
6d18c13e 2227 upped/downed by the user using "ip link set dev".
1f3315b8 2228
897a2561
ZJS
2229 * The default for the Broadcast= setting in .network files has slightly
2230 changed: the broadcast address will not be configured for wireguard
2231 devices.
2232
6dd990f3
ZJS
2233 * systemd.netdev files gained a [VLAN] Protocol=, IngressQOSMaps=,
2234 EgressQOSMaps=, and [MACVLAN] BroadcastMulticastQueueLength=
2235 configuration options for VLAN packet handling.
2236
2237 * udev rules may now set log_level= option. This allows debug logs to
2238 be enabled for select events, e.g. just for a specific subsystem or
2239 even a single device.
2240
2241 * udev now exports the VOLUME_ID, LOGICAL_VOLUME_ID, VOLUME_SET_ID, and
2b6a8a4b
LP
2242 DATA_PREPARED_ID properties for block devices with ISO9660 file
2243 systems.
6dd990f3 2244
2b6a8a4b
LP
2245 * udev now exports decoded DMI information about installed memory slots
2246 as device properties under the /sys/class/dmi/id/ pseudo device.
6dd990f3 2247
2b6a8a4b 2248 * /dev/ is not mounted noexec anymore. This didn't provide any
64297c86
TM
2249 significant security benefits and would conflict with the executable
2250 mappings used with /dev/sgx device nodes. The previous behaviour can
2251 be restored for individual services with NoExecPaths=/dev (or by allow-
2252 listing and excluding /dev from ExecPaths=).
6dd990f3 2253
de0b8991 2254 * Permissions for /dev/vsock are now set to 0o666, and /dev/vhost-vsock
6dd990f3
ZJS
2255 and /dev/vhost-net are owned by the kvm group.
2256
2257 * The hardware database has been extended with a list of fingerprint
2b6a8a4b
LP
2258 readers that correctly support USB auto-suspend using data from
2259 libfprint.
6dd990f3
ZJS
2260
2261 * systemd-resolved can now answer DNSSEC questions through the stub
2262 resolver interface in a way that allows local clients to do DNSSEC
2263 validation themselves. For a question with DO+CD set, it'll proxy the
2264 DNS query and respond with a mostly unmodified packet received from
2265 the upstream server.
2266
1f3315b8
LP
2267 * systemd-resolved learnt a new boolean option CacheFromLocalhost= in
2268 resolved.conf. If true the service will provide caching even for DNS
2269 lookups made to an upstream DNS server on the 127.0.0.1/::1
2270 addresses. By default (and when the option is false) systemd-resolved
2271 will not cache such lookups, in order to avoid duplicate local
2272 caching, under the assumption the local upstream server caches
2273 anyway.
2274
2b6a8a4b
LP
2275 * systemd-resolved now implements RFC5001 NSID in its local DNS
2276 stub. This may be used by local clients to determine whether they are
2277 talking to the DNS resolver stub or a different DNS server.
2278
2279 * When resolving host names and other records resolvectl will now
2280 report where the data was acquired from (i.e. the local cache, the
2281 network, locally synthesized, …) and whether the network traffic it
2282 effected was encrypted or not. Moreover the tool acquired a number of
2283 new options --cache=, --synthesize=, --network=, --zone=,
2284 --trust-anchor=, --validate= that take booleans and may be used to
2285 tweak a lookup, i.e. whether it may be answered from cached
2286 information, locally synthesized information, information acquired
2287 through the network, the local mDNS/LLMNR zone, the DNSSEC trust
2288 anchor, and whether DNSSEC validation shall be executed for the
2289 lookup.
2290
9ba008cb 2291 * systemd-nspawn gained a new --ambient-capability= setting
6dd990f3
ZJS
2292 (AmbientCapability= in .nspawn files) to configure ambient
2293 capabilities passed to the container payload.
2294
2295 * systemd-nspawn gained the ability to configure the firewall using the
1f3315b8 2296 nftables subsystem (in addition to the existing iptables
897a2561 2297 support). Similarly, systemd-networkd's IPMasquerade= option now
2b6a8a4b
LP
2298 supports nftables as back-end, too. In both cases NAT on IPv6 is now
2299 supported too, in addition to IPv4 (the iptables back-end still is
1f3315b8
LP
2300 IPv4-only).
2301
897a2561
ZJS
2302 "IPMasquerade=yes", which was the same as "IPMasquerade=ipv4" before,
2303 retains its meaning, but has been deprecated. Please switch to either
2304 "ivp4" or "both" (if covering IPv6 is desired).
2305
1f3315b8
LP
2306 * systemd-importd will now download .verity and .roothash.p7s files
2307 along with the machine image (as exposed via machinectl pull-raw).
6dd990f3
ZJS
2308
2309 * systemd-oomd now gained a new DefaultMemoryPressureDurationSec=
2310 setting to configure the time a unit's cgroup needs to exceed memory
897a2561
ZJS
2311 pressure limits before action will be taken, and a new
2312 ManagedOOMPreference=none|avoid|omit setting to avoid killing certain
2313 units.
6dd990f3
ZJS
2314
2315 systemd-oomd is now considered fully supported (the usual
2316 backwards-compatiblity promises apply). Swap is not required for
2317 operation, but it is still recommended.
2318
2319 * systemd-timesyncd gained a new ConnectionRetrySec= setting which
2320 configures the retry delay when trying to contact servers.
2321
2322 * systemd-stdio-bridge gained --system/--user options to connect to the
2323 system bus (previous default) or the user session bus.
2324
6dd990f3
ZJS
2325 * systemd-localed may now call locale-gen to generate missing locales
2326 on-demand (UTF-8-only). This improves integration with Debian-based
2327 distributions (Debian/Ubuntu/PureOS/Tanglu/...) and Arch Linux.
2328
1f3315b8
LP
2329 * systemctl --check-inhibitors=true may now be used to obey inhibitors
2330 even when invoked non-interactively. The old --ignore-inhibitors
2331 switch is now deprecated and replaced by --check-inhibitors=false.
6dd990f3
ZJS
2332
2333 * systemctl import-environment will now emit a warning when called
2334 without any arguments (i.e. to import the full environment block of
2335 the called program). This command will usually be invoked from a
2336 shell, which means that it'll inherit a bunch of variables which are
2337 specific to that shell, and usually to the TTY the shell is connected
2338 to, and don't have any meaning in the global context of the system or
2339 user service manager. Instead, only specific variables should be
2340 imported into the manager environment block.
2341
2342 Similarly, programs which update the manager environment block by
2343 directly calling the D-Bus API of the manager, should also push
2344 specific variables, and not the full inherited environment.
2345
1f3315b8 2346 * systemctl's status output now shows unit state with a more careful
2b6a8a4b
LP
2347 choice of Unicode characters: units in maintenance show a "○" symbol
2348 instead of the usual "●", failed units show "×", and services being
2349 reloaded "↻".
1f3315b8 2350
6dd990f3 2351 * coredumpctl gained a --debugger-arguments= switch to pass arguments
2b6a8a4b
LP
2352 to the debugger. It also gained support for showing coredump info in
2353 a simple JSON format.
2354
2355 * systemctl/loginctl/machinectl's --signal= option now accept a special
2356 value "list", which may be used to show a brief table with known
2357 process signals and their numbers.
6dd990f3
ZJS
2358
2359 * networkctl now shows the link activation policy in status.
2360
2b6a8a4b 2361 * Various tools gained --pager/--no-pager/--json= switches to
6dd990f3
ZJS
2362 enable/disable the pager and provide JSON output.
2363
2b6a8a4b
LP
2364 * Various tools now accept two new values for the SYSTEMD_COLORS
2365 environment variable: "16" and "256", to configure how many terminal
2366 colors are used in output.
6dd990f3 2367
2b6a8a4b
LP
2368 * less 568 or newer is now required for the auto-paging logic of the
2369 various tools. Hyperlink ANSI sequences in terminal output are now
2370 used even if a pager is used, and older versions of less are not able
2371 to display these sequences correctly. SYSTEMD_URLIFY=0 may be used to
2372 disable this output again.
6dd990f3 2373
2b6a8a4b 2374 * Builds with support for separate / and /usr/ hierarchies ("split-usr"
6dd990f3
ZJS
2375 builds, non-merged-usr builds) are now officially deprecated. A
2376 warning is emitted during build. Support is slated to be removed in
2377 about a year (when the Debian Bookworm release development starts).
2378
897a2561
ZJS
2379 * Systems with the legacy cgroup v1 hierarchy are now marked as
2380 "tainted", to make it clearer that using the legacy hierarchy is not
2381 recommended.
2382
33e68cce
ZJS
2383 * systemd-localed will now refuse to configure a keymap which is not
2384 installed in the file system. This is intended as a bug fix, but
2385 could break cases where systemd-localed was used to configure the
2386 keymap in advanced of it being installed. It is necessary to install
2387 the keymap file first.
2388
2b6a8a4b 2389 * The main git development branch has been renamed to 'main'.
94293d65 2390
26c59e4e
LB
2391 * mmcblk[0-9]boot[0-9] devices will no longer be probed automatically
2392 for partitions, as in the vast majority of cases they contain none
2393 and are used internally by the bootloader (eg: uboot).
2394
1f3315b8
LP
2395 * systemd will now set the $SYSTEMD_EXEC_PID environment variable for
2396 spawned processes to the PID of the process itself. This may be used
2397 by programs for detecting whether they were forked off by the service
2398 manager itself or are a process forked off further down the tree.
2399
897a2561
ZJS
2400 * The sd-device API gained four new calls: sd_device_get_action() to
2401 determine the uevent add/remove/change/… action the device object has
2402 been seen for, sd_device_get_seqno() to determine the uevent sequence
2403 number, sd_device_new_from_stat_rdev() to allocate a new sd_device
2404 object from stat(2) data of a device node, and sd_device_trigger() to
2405 write to the 'uevent' attribute of a device.
2b6a8a4b
LP
2406
2407 * For most tools the --no-legend= switch has been replaced by
2408 --legend=no and --legend=yes, to force whether tables are shown with
2409 headers/legends.
2410
2411 * Units acquired a new property "Markers" that takes a list of zero,
2412 one or two of the following strings: "needs-reload" and
2413 "needs-restart". These markers may be set via "systemctl
2414 set-property". Once a marker is set, "systemctl reload-or-restart
2415 --marked" may be invoked to execute the operation the units are
2416 marked for. This is useful for package managers that want to mark
2417 units for restart/reload while updating, but effect the actual
2418 operations at a later step at once.
2419
2420 * The sd_bus_message_read_strv() API call of sd-bus may now also be
2421 used to parse arrays of D-Bus signatures and D-Bus paths, in addition
2422 to regular strings.
2423
2424 * bootctl will now report whether the UEFI firmware used a TPM2 device
2425 and measured the boot process into it.
2426
2427 * systemd-tmpfiles learnt support for a new environment variable
2428 $SYSTEMD_TMPFILES_FORCE_SUBVOL which takes a boolean value. If true
2429 the v/q/Q lines in tmpfiles.d/ snippets will create btrfs subvolumes
2430 even if the root fs of the system is not itself a btrfs volume.
2431
2432 * systemd-detect-virt/ConditionVirtualization= will now explicitly
2433 detect Docker/Podman environments where possible. Moreover, they
2434 should be able to generically detect any container manager as long as
2435 it assigns the container a cgroup.
2436
2437 * portablectl gained a new "reattach" verb for detaching/reattaching a
2438 portable service image, useful for updating images on-the-fly.
2439
d94d261c
LP
2440 * Intel SGX enclave device nodes (which expose a security feature of
2441 newer Intel CPUs) will now be owned by a new system group "sgx".
2442
8ce22551
ZJS
2443 Contributions from: Adam Nielsen, Adrian Vovk, AJ Jordan, Alan Perry,
2444 Alastair Pharo, Alexander Batischev, Ali Abdallah, Andrew Balmos,
2445 Anita Zhang, Annika Wickert, Ansgar Burchardt, Antonio Terceiro,
2446 Antonius Frie, Ardy, Arian van Putten, Ariel Fermani, Arnaud T,
2447 A S Alam, Bastien Nocera, Benjamin Berg, Benjamin Robin, Björn Daase,
2448 caoxia, Carlo Wood, Charles Lee, ChopperRob, chri2, Christian Ehrhardt,
2449 Christian Hesse, Christopher Obbard, clayton craft, corvusnix, cprn,
2450 Daan De Meyer, Daniele Medri, Daniel Rusek, Dan Sanders, Dan Streetman,
2451 Darren Ng, David Edmundson, David Tardon, Deepak Rawat, Devon Pringle,
2452 Dmitry Borodaenko, dropsignal, Einsler Lee, Endre Szabo,
2453 Evgeny Vereshchagin, Fabian Affolter, Fangrui Song, Felipe Borges,
2454 feliperodriguesfr, Felix Stupp, Florian Hülsmann, Florian Klink,
2455 Florian Westphal, Franck Bui, Frantisek Sumsal, Gablegritule,
2456 Gaël PORTAY, Gaurav, Giedrius Statkevičius, Greg Depoire-Ferrer,
2457 Gustavo Costa, Hans de Goede, Hela Basa, heretoenhance, hide,
2458 Iago López Galeiras, igo95862, Ilya Dmitrichenko, Jameer Pathan,
2459 Jan Tojnar, Jiehong, Jinyuan Si, Joerg Behrmann, John Slade,
2460 Jonathan G. Underwood, Jonathan McDowell, Josh Triplett, Joshua Watt,
2461 Julia Cartwright, Julien Humbert, Kairui Song, Karel Zak,
2462 Kevin Backhouse, Kevin P. Fleming, Khem Raj, Konomi, krissgjeng,
2463 l4gfcm, Lajos Veres, Lennart Poettering, Lincoln Ramsay, Luca Boccassi,
2464 Luca BRUNO, Lucas Werkmeister, Luka Kudra, Luna Jernberg,
2465 Marc-André Lureau, Martin Wilck, Matthias Klumpp, Matt Turner,
2466 Michael Gisbers, Michael Marley, Michael Trapp, Michal Fabik,
2467 Michał Kopeć, Michal Koutný, Michal Sekletár, Michele Guerini Rocco,
2468 Mike Gilbert, milovlad, moson-mo, Nick, nihilix-melix, Oğuz Ersen,
2469 Ondrej Mosnacek, pali, Pavel Hrdina, Pavel Sapezhko, Perry Yuan,
2470 Peter Hutterer, Pierre Dubouilh, Piotr Drąg, Pjotr Vertaalt,
2471 Richard Laager, RussianNeuroMancer, Sam Lunt, Sebastiaan van Stijn,
2472 Sergey Bugaev, shenyangyang4, simmon, Simonas Kazlauskas,
2473 Slimane Selyan Amiri, Stefan Agner, Steve Ramage, Susant Sahani,
2474 Sven Mueller, Tad Fisher, Takashi Iwai, Thomas Haller, Tom Shield,
2475 Topi Miettinen, Torsten Hilbrich, tpgxyz, Tyler Hicks, ulf-f,
2476 Ulrich Ölmann, Vincent Pelletier, Vinnie Magro, Vito Caputo, Vlad,
2477 walbit-de, Whired Planck, wouter bolsterlee, Xℹ Ruoyao, Yangyang Shen,
2478 Yuri Chornoivan, Yu Watanabe, Zach Smith, Zbigniew Jędrzejewski-Szmek,
2479 Zmicer Turok, Дамјан Георгиевски
d94d261c 2480
9ca34cf5 2481 — Berlin, 2021-03-30
60d31370 2482
d0dcf59b 2483CHANGES WITH 247:
bf6e5c57 2484
d90922fb 2485 * KERNEL API INCOMPATIBILITY: Linux 4.14 introduced two new uevents
bf6e5c57
LP
2486 "bind" and "unbind" to the Linux device model. When this kernel
2487 change was made, systemd-udevd was only minimally updated to handle
2488 and propagate these new event types. The introduction of these new
2489 uevents (which are typically generated for USB devices and devices
2490 needing a firmware upload before being functional) resulted in a
b182195a
ZJS
2491 number of issues which we so far didn't address. We hoped the kernel
2492 maintainers would themselves address these issues in some form, but
2493 that did not happen. To handle them properly, many (if not most) udev
2494 rules files shipped in various packages need updating, and so do many
2495 programs that monitor or enumerate devices with libudev or sd-device,
2496 or otherwise process uevents. Please note that this incompatibility
2497 is not fault of systemd or udev, but caused by an incompatible kernel
832eedd1 2498 change that happened back in Linux 4.14, but is becoming more and
dc6a3162 2499 more visible as the new uevents are generated by more kernel drivers.
bf6e5c57
LP
2500
2501 To minimize issues resulting from this kernel change (but not avoid
2502 them entirely) starting with systemd-udevd 247 the udev "tags"
2503 concept (which is a concept for marking and filtering devices during
2504 enumeration and monitoring) has been reworked: udev tags are now
2505 "sticky", meaning that once a tag is assigned to a device it will not
2506 be removed from the device again until the device itself is removed
2507 (i.e. unplugged). This makes sure that any application monitoring
2508 devices that match a specific tag is guaranteed to both see uevents
2509 where the device starts being relevant, and those where it stops
2510 being relevant (the latter now regularly happening due to the new
2511 "unbind" uevent type). The udev tags concept is hence now a concept
2512 tied to a *device* instead of a device *event* — unlike for example
2513 udev properties whose lifecycle (as before) is generally tied to a
2514 device event, meaning that the previously determined properties are
2515 forgotten whenever a new uevent is processed.
2516
2517 With the newly redefined udev tags concept, sometimes it's necessary
2518 to determine which tags are the ones applied by the most recent
2519 uevent/database update, in order to discern them from those
2520 originating from earlier uevents/database updates of the same
2521 device. To accommodate for this a new automatic property CURRENT_TAGS
2522 has been added that works similar to the existing TAGS property but
2523 only lists tags set by the most recent uevent/database
b182195a
ZJS
2524 update. Similarly, the libudev/sd-device API has been updated with
2525 new functions to enumerate these 'current' tags, in addition to the
bf6e5c57
LP
2526 existing APIs that now enumerate the 'sticky' ones.
2527
832eedd1 2528 To properly handle "bind"/"unbind" on Linux 4.14 and newer it is
bf6e5c57
LP
2529 essential that all udev rules files and applications are updated to
2530 handle the new events. Specifically:
2531
2532 • All rule files that currently use a header guard similar to
2533 ACTION!="add|change",GOTO="xyz_end" should be updated to use
2534 ACTION=="remove",GOTO="xyz_end" instead, so that the
2535 properties/tags they add are also applied whenever "bind" (or
2536 "unbind") is seen. (This is most important for all physical device
b182195a
ZJS
2537 types — those for which "bind" and "unbind" are currently
2538 generated, for all other device types this change is still
bf6e5c57
LP
2539 recommended but not as important — but certainly prepares for
2540 future kernel uevent type additions).
2541
b182195a 2542 • Similarly, all code monitoring devices that contains an 'if' branch
bf6e5c57
LP
2543 discerning the "add" + "change" uevent actions from all other
2544 uevents actions (i.e. considering devices only relevant after "add"
2545 or "change", and irrelevant on all other events) should be reworked
2546 to instead negatively check for "remove" only (i.e. considering
2547 devices relevant after all event types, except for "remove", which
2548 invalidates the device). Note that this also means that devices
2549 should be considered relevant on "unbind", even though conceptually
2550 this — in some form — invalidates the device. Since the precise
2551 effect of "unbind" is not generically defined, devices should be
2552 considered relevant even after "unbind", however I/O errors
2553 accessing the device should then be handled gracefully.
2554
2555 • Any code that uses device tags for deciding whether a device is
2556 relevant or not most likely needs to be updated to use the new
2557 udev_device_has_current_tag() API (or sd_device_has_current_tag()
db2db708
LP
2558 in case sd-device is used), to check whether the tag is set at the
2559 moment an uevent is seen (as opposed to the existing
bf6e5c57
LP
2560 udev_device_has_tag() API which checks if the tag ever existed on
2561 the device, following the API concept redefinition explained
2562 above).
2563
2564 We are very sorry for this breakage and the requirement to update
2565 packages using these interfaces. We'd again like to underline that
2566 this is not caused by systemd/udev changes, but result of a kernel
2567 behaviour change.
2568
7bfcc0de
LP
2569 * UPCOMING INCOMPATIBILITY: So far most downstream distribution
2570 packages have not retriggered devices once the udev package (or any
2571 auxiliary package installing additional udev rules) is updated. We
2572 intend to work with major distributions to change this, so that
2573 "udevadm trigger -a change" is issued on such upgrades, ensuring that
2574 the updated ruleset is applied to the devices already discovered, so
2575 that (asynchronously) after the upgrade completed the udev database
2576 is consistent with the updated rule set. This means udev rules must
2577 be ready to be retriggered with a "change" action any time, and
2578 result in correct and complete udev database entries. While the
2579 majority of udev rule files known to us currently get this right,
2580 some don't. Specifically, there are udev rules files included in
2581 various packages that only set udev properties on the "add" action,
2582 but do not handle the "change" action. If a device matching those
2583 rules is retriggered with the "change" action (as is intended here)
2584 it would suddenly lose the relevant properties. This always has been
48e0abb5
YW
2585 problematic, but as soon as all udev devices are triggered on relevant
2586 package upgrades this will become particularly so. It is strongly
2587 recommended to fix offending rules so that they can handle a "change"
2588 action at any time, and acquire all necessary udev properties even
2589 then. Or in other words: the header guard mentioned above
2590 (ACTION=="remove",GOTO="xyz_end") is the correct approach to handle
2591 this, as it makes sure rules are rerun on "change" correctly, and
2592 accumulate the correct and complete set of udev properties. udev rule
2593 definitions that cannot handle "change" events being triggered at
2594 arbitrary times should be considered buggy.
7bfcc0de 2595
db2db708 2596 * The MountAPIVFS= service file setting now defaults to on if
b182195a
ZJS
2597 RootImage= and RootDirectory= are used, which means that with those
2598 two settings /proc/, /sys/ and /dev/ are automatically properly set
2599 up for services. Previous behaviour may be restored by explicitly
2600 setting MountAPIVFS=off.
db2db708 2601
bae66f4b
LP
2602 * Since PAM 1.2.0 (2015) configuration snippets may be placed in
2603 /usr/lib/pam.d/ in addition to /etc/pam.d/. If a file exists in the
2604 latter it takes precedence over the former, similar to how most of
2605 systemd's own configuration is handled. Given that PAM stack
2606 definitions are primarily put together by OS vendors/distributions
69e3234d 2607 (though possibly overridden by users), this systemd release moves its
bae66f4b
LP
2608 own PAM stack configuration for the "systemd-user" PAM service (i.e.
2609 for the PAM session invoked by the per-user user@.service instance)
2610 from /etc/pam.d/ to /usr/lib/pam.d/. We recommend moving all
2611 packages' vendor versions of their PAM stack definitions from
2612 /etc/pam.d/ to /usr/lib/pam.d/, but if such OS-wide migration is not
2613 desired the location to which systemd installs its PAM stack
b182195a 2614 configuration may be changed via the -Dpamconfdir Meson option.
bae66f4b 2615
dc6a3162
LP
2616 * The runtime dependencies on libqrencode, libpcre2, libidn/libidn2,
2617 libpwquality and libcryptsetup have been changed to be based on
2618 dlopen(): instead of regular dynamic library dependencies declared in
2619 the binary ELF headers, these libraries are now loaded on demand
2620 only, if they are available. If the libraries cannot be found the
2621 relevant operations will fail gracefully, or a suitable fallback
2622 logic is chosen. This is supposed to be useful for general purpose
2623 distributions, as it allows minimizing the list of dependencies the
2624 systemd packages pull in, permitting building of more minimal OS
2625 images, while still making use of these "weak" dependencies should
2626 they be installed. Since many package managers automatically
2627 synthesize package dependencies from ELF shared library dependencies,
2628 some additional manual packaging work has to be done now to replace
2629 those (slightly downgraded from "required" to "recommended" or
2630 whatever is conceptually suitable for the package manager). Note that
2631 this change does not alter build-time behaviour: as before the
2632 build-time dependencies have to be installed during build, even if
2633 they now are optional during runtime.
db2db708
LP
2634
2635 * sd-event.h gained a new call sd_event_add_time_relative() for
2636 installing timers relative to the current time. This is mostly a
2637 convenience wrapper around the pre-existing sd_event_add_time() call
2638 which installs absolute timers.
2639
dc6a3162
LP
2640 * sd-event event sources may now be placed in a new "exit-on-failure"
2641 mode, which may be controlled via the new
2642 sd_event_source_get_exit_on_failure() and
2643 sd_event_source_set_exit_on_failure() functions. If enabled, any
2644 failure returned by the event source handler functions will result in
2645 exiting the event loop (unlike the default behaviour of just
2646 disabling the event source but continuing with the event loop). This
2647 feature is useful to set for all event sources that define "primary"
2648 program behaviour (where failure should be fatal) in contrast to
2649 "auxiliary" behaviour (where failure should remain local).
2650
2651 * Most event source types sd-event supports now accept a NULL handler
2652 function, in which case the event loop is exited once the event
2653 source is to be dispatched, using the userdata pointer — converted to
2654 a signed integer — as exit code of the event loop. Previously this
2655 was supported for IO and signal event sources already. Exit event
2656 sources still do not support this (simply because it makes little
2657 sense there, as the event loop is already exiting when they are
2658 dispatched).
2659
db2db708
LP
2660 * A new per-unit setting RootImageOptions= has been added which allows
2661 tweaking the mount options for any file system mounted as effect of
2662 the RootImage= setting.
2663
2664 * Another new per-unit setting MountImages= has been added, that allows
2665 mounting additional disk images into the file system tree accessible
2666 to the service.
2667
6fc5b951 2668 * Timer units gained a new FixedRandomDelay= boolean setting. If
b5e798de
ZJS
2669 enabled, the random delay configured with RandomizedDelaySec= is
2670 selected in a way that is stable on a given system (though still
2671 different for different units).
6fc5b951
LP
2672
2673 * Socket units gained a new setting Timestamping= that takes "us", "ns"
2674 or "off". This controls the SO_TIMESTAMP/SO_TIMESTAMPNS socket
2675 options.
2676
b182195a
ZJS
2677 * systemd-repart now generates JSON output when requested with the new
2678 --json= switch.
db2db708
LP
2679
2680 * systemd-machined's OpenMachineShell() bus call will now pass
2681 additional policy metadata data fields to the PolicyKit
2682 authentication request.
2683
2684 * systemd-tmpfiles gained a new -E switch, which is equivalent to
2685 --exclude-prefix=/dev --exclude-prefix=/proc --exclude=/run
2686 --exclude=/sys. It's particularly useful in combination with --root=,
2687 when operating on OS trees that do not have any of these four runtime
2688 directories mounted, as this means no files below these subtrees are
2689 created or modified, since those mount points should probably remain
2690 empty.
2691
b182195a
ZJS
2692 * systemd-tmpfiles gained a new --image= switch which is like --root=,
2693 but takes a disk image instead of a directory as argument. The
2694 specified disk image is mounted inside a temporary mount namespace
2695 and the tmpfiles.d/ drop-ins stored in the image are executed and
2696 applied to the image. systemd-sysusers similarly gained a new
2697 --image= switch, that allows the sysusers.d/ drop-ins stored in the
2698 image to be applied onto the image.
db2db708 2699
b182195a
ZJS
2700 * Similarly, the journalctl command also gained an --image= switch,
2701 which is a quick one-step solution to look at the log data included
2702 in OS disk images.
db2db708
LP
2703
2704 * journalctl's --output=cat option (which outputs the log content
2705 without any metadata, just the pure text messages) will now make use
b182195a 2706 of terminal colors when run on a suitable terminal, similarly to the
db2db708
LP
2707 other output modes.
2708
2709 * JSON group records now support a "description" string that may be
2710 used to add a human-readable textual description to such groups. This
2711 is supposed to match the user's GECOS field which traditionally
2712 didn't have a counterpart for group records.
2713
2714 * The "systemd-dissect" tool that may be used to inspect OS disk images
2715 and that was previously installed to /usr/lib/systemd/ has now been
b182195a 2716 moved to /usr/bin/, reflecting its updated status of an officially
db2db708
LP
2717 supported tool with a stable interface. It gained support for a new
2718 --mkdir switch which when combined with --mount has the effect of
2719 creating the directory to mount the image to if it is missing
2720 first. It also gained two new commands --copy-from and --copy-to for
2721 copying files and directories in and out of an OS image without the
2722 need to manually mount it. It also acquired support for a new option
b182195a 2723 --json= to generate JSON output when inspecting an OS image.
db2db708
LP
2724
2725 * The cgroup2 file system is now mounted with the
2726 "memory_recursiveprot" mount option, supported since kernel 5.7. This
2727 means that the MemoryLow= and MemoryMin= unit file settings now apply
2728 recursively to whole subtrees.
2729
2730 * systemd-homed now defaults to using the btrfs file system — if
2731 available — when creating home directories in LUKS volumes. This may
b182195a
ZJS
2732 be changed with the DefaultFileSystemType= setting in homed.conf.
2733 It's now the default file system in various major distributions and
2734 has the major benefit for homed that it can be grown and shrunk while
2735 mounted, unlike the other contenders ext4 and xfs, which can both be
2736 grown online, but not shrunk (in fact xfs is the technically most
2737 limited option here, as it cannot be shrunk at all).
db2db708
LP
2738
2739 * JSON user records managed by systemd-homed gained support for
2740 "recovery keys". These are basically secondary passphrases that can
b182195a
ZJS
2741 unlock user accounts/home directories. They are computer-generated
2742 rather than user-chosen, and typically have greater entropy.
2743 homectl's --recovery-key= option may be used to add a recovery key to
2744 a user account. The generated recovery key is displayed as a QR code,
2745 so that it can be scanned to be kept in a safe place. This feature is
2746 particularly useful in combination with systemd-homed's support for
2747 FIDO2 or PKCS#11 authentication, as a secure fallback in case the
2748 security tokens are lost. Recovery keys may be entered wherever the
2749 system asks for a password.
db2db708
LP
2750
2751 * systemd-homed now maintains a "dirty" flag for each LUKS encrypted
b182195a 2752 home directory which indicates that a home directory has not been
db2db708
LP
2753 deactivated cleanly when offline. This flag is useful to identify
2754 home directories for which the offline discard logic did not run when
2755 offlining, and where it would be a good idea to log in again to catch
2756 up.
2757
2758 * systemctl gained a new parameter --timestamp= which may be used to
2759 change the style in which timestamps are output, i.e. whether to show
2760 them in local timezone or UTC, or whether to show µs granularity.
2761
2762 * Alibaba's "pouch" container manager is now detected by
dc6a3162
LP
2763 systemd-detect-virt, ConditionVirtualization= and similar
2764 constructs. Similar, they now also recognize IBM PowerVM machine
2765 virtualization.
db2db708
LP
2766
2767 * systemd-nspawn has been reworked to use the /run/host/incoming/ as
2768 place to use for propagating external mounts into the
b182195a
ZJS
2769 container. Similarly /run/host/notify is now used as the socket path
2770 for container payloads to communicate with the container manager
2771 using sd_notify(). The container manager now uses the
2772 /run/host/inaccessible/ directory to place "inaccessible" file nodes
2773 of all relevant types which may be used by the container payload as
2774 bind mount source to over-mount inodes to make them inaccessible.
2775 /run/host/container-manager will now be initialized with the same
2776 string as the $container environment variable passed to the
2777 container's PID 1. /run/host/container-uuid will be initialized with
2778 the same string as $container_uuid. This means the /run/host/
2779 hierarchy is now the primary way to make host resources available to
2780 the container. The Container Interface documents these new files and
2781 directories:
db2db708
LP
2782
2783 https://systemd.io/CONTAINER_INTERFACE
2784
2785 * Support for the "ConditionNull=" unit file condition has been
b182195a
ZJS
2786 deprecated and undocumented for 6 years. systemd started to warn
2787 about its use 1.5 years ago. It has now been removed entirely.
db2db708 2788
db2db708
LP
2789 * sd-bus.h gained a new API call sd_bus_error_has_names(), which takes
2790 a sd_bus_error struct and a list of error names, and checks if the
2791 error matches one of these names. It's a convenience wrapper that is
2792 useful in cases where multiple errors shall be handled the same way.
2793
2794 * A new system call filter list "@known" has been added, that contains
b182195a 2795 all system calls known at the time systemd was built.
db2db708
LP
2796
2797 * Behaviour of system call filter allow lists has changed slightly:
387f6955 2798 system calls that are contained in @known will result in EPERM by
db2db708 2799 default, while those not contained in it result in ENOSYS. This
dc6a3162 2800 should improve compatibility because known system calls will thus be
db2db708
LP
2801 communicated as prohibited, while unknown (and thus newer ones) will
2802 be communicated as not implemented, which hopefully has the greatest
2803 chance of triggering the right fallback code paths in client
2804 applications.
2805
dc6a3162
LP
2806 * "systemd-analyze syscall-filter" will now show two separate sections
2807 at the bottom of the output: system calls known during systemd build
2808 time but not included in any of the filter groups shown above, and
2809 system calls defined on the local kernel but known during systemd
2810 build time.
2811
2812 * If the $SYSTEMD_LOG_SECCOMP=1 environment variable is set for
2813 systemd-nspawn all system call filter violations will be logged by
2814 the kernel (audit). This is useful for tracking down system calls
2815 invoked by container payloads that are prohibited by the container's
2816 system call filter policy.
2817
6fc5b951
LP
2818 * If the $SYSTEMD_SECCOMP=0 environment variable is set for
2819 systemd-nspawn (and other programs that use seccomp) all seccomp
2820 filtering is turned off.
2821
db2db708 2822 * Two new unit file settings ProtectProc= and ProcSubset= have been
b182195a
ZJS
2823 added that expose the hidepid= and subset= mount options of procfs.
2824 All processes of the unit will only see processes in /proc that are
2825 are owned by the unit's user. This is an important new sandboxing
2826 option that is recommended to be set on all system services. All
2827 long-running system services that are included in systemd itself set
2828 this option now. This option is only supported on kernel 5.8 and
2829 above, since the hidepid= option supported on older kernels was not a
2830 per-mount option but actually applied to the whole PID namespace.
db2db708
LP
2831
2832 * Socket units gained a new boolean setting FlushPending=. If enabled
2833 all pending socket data/connections are flushed whenever the socket
2834 unit enters the "listening" state, i.e. after the associated service
2835 exited.
2836
b182195a
ZJS
2837 * The unit file setting NUMAMask= gained a new "all" value: when used,
2838 all existing NUMA nodes are added to the NUMA mask.
db2db708
LP
2839
2840 * A new "credentials" logic has been added to system services. This is
2841 a simple mechanism to pass privileged data to services in a safe and
2842 secure way. It's supposed to be used to pass per-service secret data
2843 such as passwords or cryptographic keys but also associated less
2844 private information such as user names, certificates, and similar to
2845 system services. Each credential is identified by a short user-chosen
2846 name and may contain arbitrary binary data. Two new unit file
b182195a
ZJS
2847 settings have been added: SetCredential= and LoadCredential=. The
2848 former allows setting a credential to a literal string, the latter
2849 sets a credential to the contents of a file (or data read from a
2850 user-chosen AF_UNIX stream socket). Credentials are passed to the
2851 service via a special credentials directory, one file for each
2852 credential. The path to the credentials directory is passed in a new
2853 $CREDENTIALS_DIRECTORY environment variable. Since the credentials
db2db708 2854 are passed in the file system they may be easily referenced in
b182195a
ZJS
2855 ExecStart= command lines too, thus no explicit support for the
2856 credentials logic in daemons is required (though ideally daemons
2857 would look for the bits they need in $CREDENTIALS_DIRECTORY
2858 themselves automatically, if set). The $CREDENTIALS_DIRECTORY is
2859 backed by unswappable memory if privileges allow it, immutable if
2860 privileges allow it, is accessible only to the service's UID, and is
2861 automatically destroyed when the service stops.
db2db708
LP
2862
2863 * systemd-nspawn supports the same credentials logic. It can both
2864 consume credentials passed to it via the aforementioned
2865 $CREDENTIALS_DIRECTORY protocol as well as pass these credentials on
2866 to its payload. The service manager/PID 1 has been updated to match
2867 this: it can also accept credentials from the container manager that
b182195a
ZJS
2868 invokes it (in fact: any process that invokes it), and passes them on
2869 to its services. Thus, credentials can be propagated recursively down
2870 the tree: from a system's service manager to a systemd-nspawn
2871 service, to the service manager that runs as container payload and to
2872 the service it runs below. Credentials may also be added on the
2873 systemd-nspawn command line, using new --set-credential= and
2874 --load-credential= command line switches that match the
2875 aforementioned service settings.
db2db708
LP
2876
2877 * systemd-repart gained new settings Format=, Encrypt=, CopyFiles= in
2878 the partition drop-ins which may be used to format/LUKS
2879 encrypt/populate any created partitions. The partitions are
2880 encrypted/formatted/populated before they are registered in the
b182195a
ZJS
2881 partition table, so that they appear atomically: either the
2882 partitions do not exist yet or they exist fully encrypted, formatted,
2883 and populated — there is no time window where they are
2884 "half-initialized". Thus the system is robust to abrupt shutdown: if
2885 the tool is terminated half-way during its operations on next boot it
2886 will start from the beginning.
db2db708
LP
2887
2888 * systemd-repart's --size= operation gained a new "auto" value. If
2889 specified, and operating on a loopback file it is automatically sized
2890 to the minimal size the size constraints permit. This is useful to
2891 use "systemd-repart" as an image builder for minimally sized images.
2892
b182195a
ZJS
2893 * systemd-resolved now gained a third IPC interface for requesting name
2894 resolution: besides D-Bus and local DNS to 127.0.0.53 a Varlink
2895 interface is now supported. The nss-resolve NSS module has been
2896 modified to use this new interface instead of D-Bus. Using Varlink
2897 has a major benefit over D-Bus: it works without a broker service,
2898 and thus already during earliest boot, before the dbus daemon has
2899 been started. This means name resolution via systemd-resolved now
2900 works at the same time systemd-networkd operates: from earliest boot
2901 on, including in the initrd.
db2db708
LP
2902
2903 * systemd-resolved gained support for a new DNSStubListenerExtra=
2904 configuration file setting which may be used to specify additional IP
2905 addresses the built-in DNS stub shall listen on, in addition to the
2906 main one on 127.0.0.53:53.
2907
2908 * Name lookups issued via systemd-resolved's D-Bus and Varlink
2909 interfaces (and thus also via glibc NSS if nss-resolve is used) will
2910 now honour a trailing dot in the hostname: if specified the search
b182195a
ZJS
2911 path logic is turned off. Thus "resolvectl query foo." is now
2912 equivalent to "resolvectl query --search=off foo.".
db2db708
LP
2913
2914 * systemd-resolved gained a new D-Bus property "ResolvConfMode" that
2915 exposes how /etc/resolv.conf is currently managed: by resolved (and
2916 in which mode if so) or another subsystem. "resolvctl" will display
2917 this property in its status output.
2918
2919 * The resolv.conf snippets systemd-resolved provides will now set "."
b182195a
ZJS
2920 as the search domain if no other search domain is known. This turns
2921 off the derivation of an implicit search domain by nss-dns for the
2922 hostname, when the hostname is set to an FQDN. This change is done to
2923 make nss-dns using resolv.conf provided by systemd-resolved behave
2924 more similarly to nss-resolve.
db2db708
LP
2925
2926 * systemd-tmpfiles' file "aging" logic (i.e. the automatic clean-up of
2927 /tmp/ and /var/tmp/ based on file timestamps) now looks at the
b182195a
ZJS
2928 "birth" time (btime) of a file in addition to the atime, mtime, and
2929 ctime.
db2db708
LP
2930
2931 * systemd-analyze gained a new verb "capability" that lists all known
2932 capabilities by the systemd build and by the kernel.
2933
2934 * If a file /usr/lib/clock-epoch exists, PID 1 will read its mtime and
2935 advance the system clock to it at boot if it is noticed to be before
2936 that time. Previously, PID 1 would only advance the time to an epoch
2937 time that is set during build-time. With this new file OS builders
2938 can change this epoch timestamp on individual OS images without
2939 having to rebuild systemd.
2940
2941 * systemd-logind will now listen to the KEY_RESTART key from the Linux
b182195a
ZJS
2942 input layer and reboot the system if it is pressed, similarly to how
2943 it already handles KEY_POWER, KEY_SUSPEND or KEY_SLEEP. KEY_RESTART
2944 was originally defined in the Multimedia context (to restart playback
2945 of a song or film), but is now primarily used in various embedded
2946 devices for "Reboot" buttons. Accordingly, systemd-logind will now
2947 honour it as such. This may configured in more detail via the new
db2db708
LP
2948 HandleRebootKey= and RebootKeyIgnoreInhibited=.
2949
2950 * systemd-nspawn/systemd-machined will now reconstruct hardlinks when
2951 copying OS trees, for example in "systemd-nspawn --ephemeral",
2952 "systemd-nspawn --template=", "machinectl clone" and similar. This is
2953 useful when operating with OSTree images, which use hardlinks heavily
2954 throughout, and where such copies previously resulting in "exploding"
2955 hardlinks.
2956
2957 * systemd-nspawn's --console= setting gained support for a new
2958 "autopipe" value, which is identical to "interactive" when invoked on
2959 a TTY, and "pipe" otherwise.
2960
2961 * systemd-networkd's .network files gained support for explicitly
2962 configuring the multicast membership entries of bridge devices in the
2963 [BridgeMDB] section. It also gained support for the PIE queuing
2964 discipline in the [FlowQueuePIE] sections.
2965
2966 * systemd-networkd's .netdev files may now be used to create "BareUDP"
905a03e7 2967 tunnels, configured in the new [BareUDP] setting.
db2db708 2968
dc6a3162 2969 * systemd-networkd's Gateway= setting in .network files now accepts the
70a51d7e
YW
2970 special values "_dhcp4" and "_ipv6ra" to configure additional,
2971 locally defined, explicit routes to the gateway acquired via DHCP or
2972 IPv6 Router Advertisements. The old setting "_dhcp" is deprecated,
2973 but still accepted for backwards compatibility.
dc6a3162 2974
cb9a48a9
ZJS
2975 * systemd-networkd's [IPv6PrefixDelegation] section and
2976 IPv6PrefixDelegation= options have been renamed as [IPv6SendRA] and
2977 IPv6SendRA= (the old names are still accepted for backwards
2978 compatibility).
2979
70a51d7e
YW
2980 * systemd-networkd's .network files gained the DHCPv6PrefixDelegation=
2981 boolean setting in [Network] section. If enabled, the delegated prefix
2982 gained by another link will be configured, and an address within the
2983 prefix will be assigned.
2984
2985 * systemd-networkd's .network files gained the Announce= boolean setting
2986 in [DHCPv6PrefixDelegation] section. When enabled, the delegated
2987 prefix will be announced through IPv6 router advertisement (IPv6 RA).
2988 The setting is enabled by default.
2989
905a03e7
ZJS
2990 * VXLAN tunnels may now be marked as independent of any underlying
2991 network interface via the new Independent= boolean setting.
70a51d7e 2992
b182195a
ZJS
2993 * systemctl gained support for two new verbs: "service-log-level" and
2994 "service-log-target" may be used on services that implement the
2995 generic org.freedesktop.LogControl1 D-Bus interface to dynamically
2996 adjust the log level and target. All of systemd's long-running
2997 services support this now, but ideally all system services would
2998 implement this interface to make the system more uniformly
db2db708
LP
2999 debuggable.
3000
3001 * The SystemCallErrorNumber= unit file setting now accepts the new
3002 "kill" and "log" actions, in addition to arbitrary error number
10f34849
YW
3003 specifications as before. If "kill" the processes are killed on the
3004 event, if "log" the offending system call is audit logged.
db2db708
LP
3005
3006 * A new SystemCallLog= unit file setting has been added that accepts a
dc6a3162 3007 list of system calls that shall be logged about (audit).
db2db708
LP
3008
3009 * The OS image dissection logic (as used by RootImage= in unit files or
b182195a 3010 systemd-nspawn's --image= switch) has gained support for identifying
db2db708
LP
3011 and mounting explicit /usr/ partitions, which are now defined in the
3012 discoverable partition specification. This should be useful for
3013 environments where the root file system is
3014 generated/formatted/populated dynamically on first boot and combined
3015 with an immutable /usr/ tree that is supplied by the vendor.
3016
3017 * In the final phase of shutdown, within the systemd-shutdown binary
3018 we'll now try to detach MD devices (i.e software RAID) in addition to
3019 loopback block devices and DM devices as before. This is supposed to
3020 be a safety net only, in order to increase robustness if things go
3021 wrong. Storage subsystems are expected to properly detach their
3022 storage volumes during regular shutdown already (or in case of
3023 storage backing the root file system: in the initrd hook we return to
3024 later).
3025
3026 * If the SYSTEMD_LOG_TID environment variable is set all systemd tools
3027 will now log the thread ID in their log output. This is useful when
3028 working with heavily threaded programs.
3029
dc6a3162 3030 * If the SYSTEMD_RDRAND environment variable is set to "0", systemd will
b182195a
ZJS
3031 not use the RDRAND CPU instruction. This is useful in environments
3032 such as replay debuggers where non-deterministic behaviour is not
3033 desirable.
db2db708 3034
dc6a3162
LP
3035 * The autopaging logic in systemd's various tools (such as systemctl)
3036 has been updated to turn on "secure" mode in "less"
3037 (i.e. $LESSECURE=1) if execution in a "sudo" environment is
3038 detected. This disables invoking external programs from the pager,
3039 via the pipe logic. This behaviour may be overridden via the new
3040 $SYSTEMD_PAGERSECURE environment variable.
db2db708 3041
6e88f9e7
ZJS
3042 * Units which have resource limits (.service, .mount, .swap, .slice,
3043 .socket, and .slice) gained new configuration settings
3044 ManagedOOMSwap=, ManagedOOMMemoryPressure=, and
90616bb9 3045 ManagedOOMMemoryPressureLimitPercent= that specify resource pressure
6e88f9e7
ZJS
3046 limits and optional action taken by systemd-oomd.
3047
3048 * A new service systemd-oomd has been added. It monitors resource
3049 contention for selected parts of the unit hierarchy using the PSI
3050 information reported by the kernel, and kills processes when memory
3051 or swap pressure is above configured limits. This service is only
08c1864f
ZJS
3052 enabled by default in developer mode (see below) and should be
3053 considered a preview in this release. Behaviour details and option
3054 names are subject to change without the usual backwards-compatibility
3055 promises.
6e88f9e7
ZJS
3056
3057 * A new helper oomctl has been added to introspect systemd-oomd state.
042b028a 3058 It is only enabled by default in developer mode and should be
08c1864f
ZJS
3059 considered a preview without the usual backwards-compatibility
3060 promises.
6e88f9e7
ZJS
3061
3062 * New meson option -Dcompat-mutable-uid-boundaries= has been added. If
3063 enabled, systemd reads the system UID boundaries from /etc/login.defs
3064 at runtime, instead of using the built-in values selected during
3065 build. This is an option to improve compatibility for upgrades from
3066 old systems. It's strongly recommended not to make use of this
3067 functionality on new systems (or even enable it during build), as it
3068 makes something runtime-configurable that is mostly an implementation
3069 detail of the OS, and permits avoidable differences in deployments
3070 that create all kinds of problems in the long run.
3071
3072 * New meson option '-Dmode=developer|release' has been added. When
3073 'developer', additional checks and features are enabled that are
3074 relevant during upstream development, e.g. verification that
3075 semi-automatically-generated documentation has been properly updated
3076 following API changes. Those checks are considered hints for
3077 developers and are not actionable in downstream builds. In addition,
3078 extra features that are not ready for general consumption may be
3079 enabled in developer mode. It is thus recommended to set
3080 '-Dmode=release' in end-user and distro builds.
3081
da7511d5
LP
3082 * systemd-cryptsetup gained support for processing detached LUKS
3083 headers specified on the kernel command line via the header=
3084 parameter of the luks.options= kernel command line option. The same
3085 device/path syntax as for key files is supported for header files
3086 like this.
3087
3088 * The "net_id" built-in of udev has been updated to ignore ACPI _SUN
3089 slot index data for devices that are connected through a PCI bridge
3090 where the _SUN index is associated with the bridge instead of the
3091 network device itself. Previously this would create ambiguous device
3092 naming if multiple network interfaces were connected to the same PCI
3093 bridge. Since this is a naming scheme incompatibility on systems that
3094 possess hardware like this it has been introduced as new naming
3095 scheme "v247". The previous scheme can be selected via the
3096 "net.naming-scheme=v245" kernel command line parameter.
3097
3098 * ConditionFirstBoot= semantics have been modified to be safe towards
3099 abnormal system power-off during first boot. Specifically, the
3100 "systemd-machine-id-commit.service" service now acts as boot
3101 milestone indicating when the first boot process is sufficiently
3102 complete in order to not consider the next following boot also a
3103 first boot. If the system is reset before this unit is reached the
3104 first time, the next boot will still be considered a first boot; once
3105 it has been reached, no further boots will be considered a first
3106 boot. The "first-boot-complete.target" unit now acts as official hook
3107 point to order against this. If a service shall be run on every boot
3108 until the first boot fully succeeds it may thus be ordered before
3109 this target unit (and pull it in) and carry ConditionFirstBoot=
3110 appropriately.
3111
3112 * bootctl's set-default and set-oneshot commands now accept the three
3113 special strings "@default", "@oneshot", "@current" in place of a boot
3114 entry id. These strings are resolved to the current default and
3115 oneshot boot loader entry, as well as the currently booted one. Thus
3116 a command "bootctl set-default @current" may be used to make the
3117 currently boot menu item the new default for all subsequent boots.
3118
da7511d5
LP
3119 * "systemctl edit" has been updated to show the original effective unit
3120 contents in commented form in the text editor.
3121
9101cd1a
ZJS
3122 * Units in user mode are now segregated into three new slices:
3123 session.slice (units that form the core of graphical session),
3124 app.slice ("normal" user applications), and background.slice
3125 (low-priority tasks). Unless otherwise configured, user units are
3126 placed in app.slice. The plan is to add resource limits and
3127 protections for the different slices in the future.
3128
7bfcc0de
LP
3129 * New GPT partition types for RISCV32/64 for the root and /usr
3130 partitions, and their associated Verity partitions have been defined,
3131 and are now understood by systemd-gpt-auto-generator, and the OS
3132 image dissection logic.
3133
a5322567 3134 Contributions from: Adolfo Jayme Barrientos, afg, Alec Moskvin, Alyssa
6fc5b951 3135 Ross, Amitanand Chikorde, Andrew Hangsleben, Anita Zhang, Ansgar
a5322567
LP
3136 Burchardt, Arian van Putten, Aurelien Jarno, Axel Rasmussen, bauen1,
3137 Beniamino Galvani, Benjamin Berg, Bjørn Mork, brainrom, Chandradeep
d0dcf59b
ZJS
3138 Dey, Charles Lee, Chris Down, Christian Göttsche, Christof Efkemann,
3139 Christoph Ruegge, Clemens Gruber, Daan De Meyer, Daniele Medri, Daniel
3140 Mack, Daniel Rusek, Dan Streetman, David Tardon, Dimitri John Ledkov,
3141 Dmitry Borodaenko, Elias Probst, Elisei Roca, ErrantSpore, Etienne
3142 Doms, Fabrice Fontaine, fangxiuning, Felix Riemann, Florian Klink,
3143 Franck Bui, Frantisek Sumsal, fwSmit, George Rawlinson, germanztz,
3144 Gibeom Gwon, Glen Whitney, Gogo Gogsi, Göran Uddeborg, Grant Mathews,
3145 Hans de Goede, Hans Ulrich Niedermann, Haochen Tong, Harald Seiler,
3146 huangyong, Hubert Kario, igo95862, Ikey Doherty, Insun Pyo, Jan Chren,
3147 Jan Schlüter, Jérémy Nouhaud, Jian-Hong Pan, Joerg Behrmann, Jonathan
3148 Lebon, Jörg Thalheim, Josh Brobst, Juergen Hoetzel, Julien Humbert,
3149 Kai-Chuan Hsieh, Kairui Song, Kamil Dudka, Kir Kolyshkin, Kristijan
3150 Gjoshev, Kyle Huey, Kyle Russell, Lee Whalen, Lennart Poettering,
3151 lichangze, Luca Boccassi, Lucas Werkmeister, Luca Weiss, Marc
3152 Kleine-Budde, Marco Wang, Martin Wilck, Marti Raudsepp, masmullin2000,
3153 Máté Pozsgay, Matt Fenwick, Michael Biebl, Michael Scherer, Michal
3154 Koutný, Michal Sekletár, Michal Suchanek, Mikael Szreder, Milo
3155 Casagrande, mirabilos, Mitsuha_QuQ, mog422, Muhammet Kara, Nazar
3156 Vinnichuk, Nicholas Narsing, Nicolas Fella, Njibhu, nl6720, Oğuz Ersen,
3157 Olivier Le Moal, Ondrej Kozina, onlybugreports, Pass Automated Testing
3158 Suite, Pat Coulthard, Pavel Sapezhko, Pedro Ruiz, perry_yuan, Peter
3159 Hutterer, Phaedrus Leeds, PhoenixDiscord, Piotr Drąg, Plan C,
3160 Purushottam choudhary, Rasmus Villemoes, Renaud Métrich, Robert Marko,
3161 Roman Beranek, Ronan Pigott, Roy Chen (陳彥廷), RussianNeuroMancer,
3162 Samanta Navarro, Samuel BF, scootergrisen, Sorin Ionescu, Steve Dodd,
3163 Susant Sahani, Timo Rothenpieler, Tobias Hunger, Tobias Kaufmann, Topi
3164 Miettinen, vanou, Vito Caputo, Weblate, Wen Yang, Whired Planck,
3165 williamvds, Yu, Li-Yu, Yuri Chornoivan, Yu Watanabe, Zbigniew
3166 Jędrzejewski-Szmek, Zmicer Turok, Дамјан Георгиевски
3167
3168 – Warsaw, 2020-11-26
a5322567 3169
72e51908 3170CHANGES WITH 246:
b0d0e0ef 3171
7f56c26d
ZJS
3172 * The service manager gained basic support for cgroup v2 freezer. Units
3173 can now be suspended or resumed either using new systemctl verbs,
3174 freeze and thaw respectively, or via D-Bus.
3175
3176 * PID 1 may now automatically load pre-compiled AppArmor policies from
3177 /etc/apparmor/earlypolicy during early boot.
3178
3179 * The CPUAffinity= setting in service unit files now supports a new
3180 special value "numa" that causes the CPU affinity masked to be set
3181 based on the NUMA mask.
3182
3183 * systemd will now log about all left-over processes remaining in a
3184 unit when the unit is stopped. It will now warn about services using
3185 KillMode=none, as this is generally an unsafe thing to make use of.
3186
3187 * Two new unit file settings
3188 ConditionPathIsEncrypted=/AssertPathIsEncrypted= have been
3189 added. They may be used to check whether a specific file system path
3190 resides on a block device that is encrypted on the block level
3191 (i.e. using dm-crypt/LUKS).
3192
3193 * Another pair of new settings ConditionEnvironment=/AssertEnvironment=
3194 has been added that may be used for simple environment checks. This
3195 is particularly useful when passing in environment variables from a
3196 container manager (or from PAM in case of the systemd --user
3197 instance).
3198
3199 * .service unit files now accept a new setting CoredumpFilter= which
3200 allows configuration of the memory sections coredumps of the
3201 service's processes shall include.
3202
3203 * .mount units gained a new ReadWriteOnly= boolean option. If set
3204 it will not be attempted to mount a file system read-only if mounting
3205 in read-write mode doesn't succeed. An option x-systemd.rw-only is
3206 available in /etc/fstab to control the same.
3207
3208 * .socket units gained a new boolean setting PassPacketInfo=. If
3209 enabled, the kernel will attach additional per-packet metadata to all
5149990e
CR
3210 packets read from the socket, as an ancillary message. This controls
3211 the IP_PKTINFO, IPV6_RECVPKTINFO, NETLINK_PKTINFO socket options,
7f56c26d
ZJS
3212 depending on socket type.
3213
3214 * .service units gained a new setting RootHash= which may be used to
3215 specify the root hash for verity enabled disk images which are
3216 specified in RootImage=. RootVerity= may be used to specify a path to
3217 the Verity data matching a RootImage= file system. (The latter is
3218 only useful for images that do not contain the Verity data embedded
3219 into the same image that carries a GPT partition table following the
3220 Discoverable Partition Specification). Similarly, systemd-nspawn
3221 gained a new switch --verity-data= that takes a path to a file with
3222 the verity data of the disk image supplied in --image=, if the image
3223 doesn't contain the verity data itself.
3224
3225 * .service units gained a new setting RootHashSignature= which takes
3226 either a base64 encoded PKCS#7 signature of the root hash specified
3227 with RootHash=, or a path to a file to read the signature from. This
3228 allows validation of the root hash against public keys available in
3229 the kernel keyring, and is only supported on recent kernels
3230 (>= 5.4)/libcryptsetup (>= 2.30). A similar switch has been added to
3231 systemd-nspawn and systemd-dissect (--root-hash-sig=). Support for
3232 this mechanism has also been added to systemd-veritysetup.
3233
3234 * .service unit files gained two new options
3235 TimeoutStartFailureMode=/TimeoutStopFailureMode= that may be used to
3236 tune behaviour if a start or stop timeout is hit, i.e. whether to
3237 terminate the service with SIGTERM, SIGABRT or SIGKILL.
3238
3239 * Most options in systemd that accept hexadecimal values prefixed with
3240 0x in additional to the usual decimal notation now also support octal
cb713f16 3241 notation when the 0o prefix is used and binary notation if the 0b
7f56c26d
ZJS
3242 prefix is used.
3243
337f0b00
ZJS
3244 * Various command line parameters and configuration file settings that
3245 configure key or certificate files now optionally take paths to
3246 AF_UNIX sockets in the file system. If configured that way a stream
3247 connection is made to the socket and the required data read from
3248 it. This is a simple and natural extension to the existing regular
3249 file logic, and permits other software to provide keys or
3250 certificates via simple IPC services, for example when unencrypted
3251 storage on disk is not desired. Specifically, systemd-networkd's
3252 Wireguard and MACSEC key file settings as well as
3253 systemd-journal-gatewayd's and systemd-journal-remote's PEM
3254 key/certificate parameters support this now.
3255
7f56c26d
ZJS
3256 * Unit files, tmpfiles.d/ snippets, sysusers.d/ snippets and other
3257 configuration files that support specifier expansion learnt six new
3258 specifiers: %a resolves to the current architecture, %o/%w/%B/%W
3259 resolve to the various ID fields from /etc/os-release, %l resolves to
3260 the "short" hostname of the system, i.e. the hostname configured in
3261 the kernel truncated at the first dot.
3262
3263 * Support for the .include syntax in unit files has been removed. The
3264 concept has been obsolete for 6 years and we started warning about
3265 its pending removal 2 years ago (also see NEWS file below). It's
3266 finally gone now.
3267
3268 * StandardError= and StandardOutput= in unit files no longer support
3269 the "syslog" and "syslog-console" switches. They were long removed
3270 from the documentation, but will now result in warnings when used,
3271 and be converted to "journal" and "journal+console" automatically.
3272
5d043c9f
LP
3273 * If the service setting User= is set to the "nobody" user, a warning
3274 message is now written to the logs (but the value is nonetheless
3275 accepted). Setting User=nobody is unsafe, since the primary purpose
3276 of the "nobody" user is to own all files whose owner cannot be mapped
3277 locally. It's in particular used by the NFS subsystem and in user
3278 namespacing. By running a service under this user's UID it might get
3279 read and even write access to all these otherwise unmappable files,
3280 which is quite likely a major security problem.
3281
02e1eb6d
ZJS
3282 * tmpfs mounts automatically created by systemd (/tmp, /run, /dev/shm,
3283 and others) now have a size and inode limits applied (50% of RAM for
c2cfb126
ZJS
3284 /tmp and /dev/shm, 10% of RAM for other mounts, etc.). Please note
3285 that the implicit kernel default is 50% too, so there is no change
3286 in the size limit for /tmp and /dev/shm.
02e1eb6d 3287
337f0b00
ZJS
3288 * nss-mymachines lost support for resolution of users and groups, and
3289 now only does resolution of hostnames. This functionality is now
3290 provided by nss-systemd. Thus, the 'mymachines' entry should be
3291 removed from the 'passwd:' and 'group:' lines in /etc/nsswitch.conf
3292 (and 'systemd' added if it is not already there).
3293
7f56c26d
ZJS
3294 * A new kernel command line option systemd.hostname= has been added
3295 that allows controlling the hostname that is initialized early during
3296 boot.
3297
3298 * A kernel command line option "udev.blockdev_read_only" has been
3299 added. If specified all hardware block devices that show up are
3300 immediately marked as read-only by udev. This option is useful for
3301 making sure that a specific boot under no circumstances modifies data
3302 on disk. Use "blockdev --setrw" to undo the effect of this, per
3303 device.
b0d0e0ef
LP
3304
3305 * A new boolean kernel command line option systemd.swap= has been
3306 added, which may be used to turn off automatic activation of swap
7f56c26d 3307 devices listed in /etc/fstab.
b0d0e0ef 3308
7f56c26d
ZJS
3309 * New kernel command line options systemd.condition-needs-update= and
3310 systemd.condition-first-boot= have been added, which override the
3311 result of the ConditionNeedsUpdate= and ConditionFirstBoot=
3312 conditions.
b0d0e0ef 3313
7f56c26d
ZJS
3314 * A new kernel command line option systemd.clock-usec= has been added
3315 that allows setting the system clock to the specified time in µs
3316 since Jan 1st, 1970 early during boot. This is in particular useful
3317 in order to make test cases more reliable.
b0d0e0ef 3318
7f56c26d
ZJS
3319 * The fs.suid_dumpable sysctl is set to 2 / "suidsafe". This allows
3320 systemd-coredump to save core files for suid processes. When saving
3321 the core file, systemd-coredump will use the effective uid and gid of
3322 the process that faulted.
3323
3324 * The /sys/module/kernel/parameters/crash_kexec_post_notifiers file is
3325 now automatically set to "Y" at boot, in order to enable pstore
3326 generation for collection with systemd-pstore.
3327
c2cfb126 3328 * We provide a set of udev rules to enable auto-suspend on PCI and USB
69e3234d 3329 devices that were tested to correctly support it. Previously, this
c2cfb126
ZJS
3330 was distributed as a set of udev rules, but has now been replaced by
3331 by a set of hwdb entries (and a much shorter udev rule to take action
3332 if the device modalias matches one of the new hwdb entries).
3333
3334 As before, entries are periodically imported from the database
3335 maintained by the ChromiumOS project. If you have a device that
3336 supports auto-suspend correctly and where it should be enabled by
3337 default, please submit a patch that adds it to the database (see
3338 /usr/lib/udev/hwdb.d/60-autosuspend.hwdb).
7f56c26d 3339
5149990e
CR
3340 * systemd-udevd gained the new configuration option timeout_signal= as well
3341 as a corresponding kernel command line option udev.timeout_signal=.
7f56c26d
ZJS
3342 The option can be used to configure the UNIX signal that the main
3343 daemon sends to the worker processes on timeout. Setting the signal
3344 to SIGABRT is useful for debugging.
3345
3346 * .link files managed by systemd-udevd gained options RxFlowControl=,
3347 TxFlowControl=, AutoNegotiationFlowControl= in the [Link] section, in
3348 order to configure various flow control parameters. They also gained
3349 RxMiniBufferSize= and RxJumboBufferSize= in order to configure jumbo
3350 frame ring buffer sizes.
b0d0e0ef 3351
3ea58e01 3352 * networkd.conf gained a new boolean setting ManageForeignRoutes=. If
aa0b850b 3353 enabled systemd-networkd manages all routes configured by other tools.
3ea58e01 3354
71af436c
YW
3355 * .network files managed by systemd-networkd gained a new section
3356 [SR-IOV], in order to configure SR-IOV capable network devices.
3357
b0d0e0ef
LP
3358 * systemd-networkd's [IPv6Prefix] section in .network files gained a
3359 new boolean setting Assign=. If enabled an address from the prefix is
3360 automatically assigned to the interface.
3361
c05b8edd
YW
3362 * systemd-networkd gained a new section [DHCPv6PrefixDelegation] which
3363 controls delegated prefixes assigned by DHCPv6 client. The section
3364 has three settings: SubnetID=, Assign=, and Token=. The setting
3365 SubnetID= allows explicit configuration of the preferred subnet that
3366 systemd-networkd's Prefix Delegation logic assigns to interfaces. If
3367 Assign= is enabled (which is the default) an address from any acquired
3368 delegated prefix is automatically chosen and assigned to the
3369 interface. The setting Token= specifies an optional address generation
3370 mode for Assign=.
b0d0e0ef 3371
3ea58e01
YW
3372 * systemd-networkd's [Network] section gained a new setting
3373 IPv4AcceptLocal=. If enabled the interface accepts packets with local
3374 source addresses.
3375
b0d0e0ef
LP
3376 * systemd-networkd gained support for configuring the HTB queuing
3377 discipline in the [HierarchyTokenBucket] and
3378 [HierarchyTokenBucketClass] sections. Similar the "pfifo" qdisc may
3379 be configured in the [PFIFO] section, "GRED" in
3380 [GenericRandomEarlyDetection], "SFB" in [StochasticFairBlue], "cake"
3381 in [CAKE], "PIE" in [PIE], "DRR" in [DeficitRoundRobinScheduler] and
3382 [DeficitRoundRobinSchedulerClass], "BFIFO" in [BFIFO],
1f19ae0f
LP
3383 "PFIFOHeadDrop" in [PFIFOHeadDrop], "PFIFOFast" in [PFIFOFast], "HHF"
3384 in [HeavyHitterFilter], "ETS" in [EnhancedTransmissionSelection] and
3ea58e01 3385 "QFQ" in [QuickFairQueueing] and [QuickFairQueueingClass].
b0d0e0ef
LP
3386
3387 * systemd-networkd gained support for a new Termination= setting in the
3388 [CAN] section for configuring the termination resistor. It also
3389 gained a new ListenOnly= setting for controlling whether to only
3390 listen on CAN interfaces, without interfering with traffic otherwise
3391 (which is useful for debugging/monitoring CAN network
3392 traffic). DataBitRate=, DataSamplePoint=, FDMode=, FDNonISO= have
3393 been added to configure various CAN-FD aspects.
3394
554a97ba
YW
3395 * systemd-networkd's [DHCPv6] section gained a new option WithoutRA=.
3396 When enabled, DHCPv6 will be attempted right-away without requiring an
3397 Router Advertisement packet suggesting it first (i.e. without the 'M'
3398 or 'O' flags set). The [IPv6AcceptRA] section gained a boolean option
3399 DHCPv6Client= that may be used to turn off the DHCPv6 client even if
3400 the RA packets suggest it.
b0d0e0ef
LP
3401
3402 * systemd-networkd's [DHCPv4] section gained a new setting UseGateway=
3403 which may be used to turn off use of the gateway information provided
3404 by the DHCP lease. A new FallbackLeaseLifetimeSec= setting may be
3405 used to configure how to process leases that lack a lifetime option.
3406
3407 * systemd-networkd's [DHCPv4] and [DHCPServer] sections gained a new
3408 setting SendVendorOption= allowing configuration of additional vendor
3409 options to send in the DHCP requests/responses. The [DHCPv6] section
3410 gained a new SendOption= setting for sending arbitrary DHCP
3411 options. RequestOptions= has been added to request arbitrary options
3412 from the server. UserClass= has been added to set the DHCP user class
3413 field.
3414
3415 * systemd-networkd's [DHCPServer] section gained a new set of options
2a71d57f 3416 EmitPOP3=/POP3=, EmitSMTP=/SMTP=, EmitLPR=/LPR= for including server
b0d0e0ef
LP
3417 information about these three protocols in the DHCP lease. It also
3418 gained support for including "MUD" URLs ("Manufacturer Usage
3419 Description"). Support for "MUD" URLs was also added to the LLDP
3420 stack, configurable in the [LLDP] section in .network files.
3421
6b949d26
YW
3422 * The Mode= settings in [MACVLAN] and [MACVTAP] now support 'source'
3423 mode. Also, the sections now support a new setting SourceMACAddress=.
3424
7f56c26d
ZJS
3425 * systemd-networkd's .netdev files now support a new setting
3426 VLANProtocol= in the [Bridge] section that allows configuration of
3427 the VLAN protocol to use.
3428
3429 * systemd-networkd supports a new Group= setting in the [Link] section
3430 of the .network files, to control the link group.
3431
6f6296b9 3432 * systemd-networkd's [Network] section gained a new
3ea58e01
YW
3433 IPv6LinkLocalAddressGenerationMode= setting, which specifies how IPv6
3434 link local address is generated.
3435
7f56c26d
ZJS
3436 * A new default .network file is now shipped that matches TUN/TAP
3437 devices that begin with "vt-" in their name. Such interfaces will
3438 have IP routing onto the host links set up automatically. This is
3439 supposed to be used by VM managers to trivially acquire a network
3440 interface which is fully set up for host communication, simply by
3441 carefully picking an interface name to use.
3442
3ea58e01 3443 * systemd-networkd's [DHCPv6] section gained a new setting RouteMetric=
aa0b850b 3444 which sets the route priority for routes specified by the DHCP server.
3ea58e01
YW
3445
3446 * systemd-networkd's [DHCPv6] section gained a new setting VendorClass=
3447 which configures the vendor class information sent to DHCP server.
3448
7f56c26d
ZJS
3449 * The BlackList= settings in .network files' [DHCPv4] and
3450 [IPv6AcceptRA] sections have been renamed DenyList=. The old names
3451 are still understood to provide compatibility.
3452
3453 * networkctl gained the new "forcerenew" command for forcing all DHCP
3454 server clients to renew their lease. The interface "status" output
3455 will now show numerous additional fields of information about an
3456 interface. There are new "up" and "down" commands to bring specific
3457 interfaces up or down.
3458
337f0b00
ZJS
3459 * systemd-resolved's DNS= configuration option now optionally accepts a
3460 port number (after ":") and a host name (after "#"). When the host
3461 name is specified, the DNS-over-TLS certificate is validated to match
3462 the specified hostname. Additionally, in case of IPv6 addresses, an
3463 interface may be specified (after "%").
b0d0e0ef 3464
2bd5e1b2
ZJS
3465 * systemd-resolved may be configured to forward single-label DNS names.
3466 This is not standard-conformant, but may make sense in setups where
3467 public DNS servers are not used.
3468
3469 * systemd-resolved's DNS-over-TLS support gained SNI validation.
3470
7f56c26d
ZJS
3471 * systemd-nspawn's --resolv-conf= switch gained a number of new
3472 supported values. Specifically, options starting with "replace-" are
3473 like those prefixed "copy-" but replace any existing resolv.conf
3474 file. And options ending in "-uplink" and "-stub" can now be used to
3475 propagate other flavours of resolv.conf into the container (as
3476 defined by systemd-resolved).
b0d0e0ef 3477
7f56c26d
ZJS
3478 * The various programs included in systemd can now optionally output
3479 their log messages on stderr prefixed with a timestamp, controlled by
3480 the $SYSTEMD_LOG_TIME environment variable.
366d0772 3481
b0d0e0ef
LP
3482 * systemctl gained a new "-P" switch that is a shortcut for "--value
3483 --property=…".
3484
7f56c26d
ZJS
3485 * "systemctl list-units" and "systemctl list-machines" no longer hide
3486 their first output column with --no-legend. To hide the first column,
3487 use --plain.
b0d0e0ef 3488
7f56c26d
ZJS
3489 * "systemctl reboot" takes the option "--reboot-argument=".
3490 The optional positional argument to "systemctl reboot" is now
3491 being deprecated in favor of this option.
b0d0e0ef
LP
3492
3493 * systemd-run gained a new switch --slice-inherit. If specified the
3494 unit it generates is placed in the same slice as the systemd-run
3495 process itself.
3496
7f56c26d
ZJS
3497 * systemd-journald gained support for zstd compression of large fields
3498 in journal files. The hash tables in journal files have been hardened
3499 against hash collisions. This is an incompatible change and means
3500 that journal files created with new systemd versions are not readable
3501 with old versions. If the $SYSTEMD_JOURNAL_KEYED_HASH boolean
3502 environment variable for systemd-journald.service is set to 0 this
3503 new hardening functionality may be turned off, so that generated
3504 journal files remain compatible with older journalctl
3505 implementations.
b0d0e0ef 3506
7f56c26d
ZJS
3507 * journalctl will now include a clickable link in the default output for
3508 each log message for which an URL with further documentation is
3509 known. This is only supported on terminal emulators that support
3510 clickable hyperlinks, and is turned off if a pager is used (since
3511 "less" still doesn't support hyperlinks,
3512 unfortunately). Documentation URLs may be included in log messages
3513 either by including a DOCUMENTATION= journal field in it, or by
3514 associating a journal message catalog entry with the log message's
3515 MESSAGE_ID, which then carries a "Documentation:" tag.
b0d0e0ef
LP
3516
3517 * journald.conf gained a new boolean setting Audit= that may be used to
3518 control whether systemd-journald will enable audit during
3519 initialization.
3520
7f56c26d
ZJS
3521 * when systemd-journald's log stream is broken up into multiple lines
3522 because the PID of the sender changed this is indicated in the
3523 generated log records via the _LINE_BREAK=pid-change field.
b0d0e0ef 3524
7f56c26d
ZJS
3525 * journalctl's "-o cat" output mode will now show one or more journal
3526 fields specified with --output-fields= instead of unconditionally
3527 MESSAGE=. This is useful to retrieve a very specific set of fields
3528 without any decoration.
b0d0e0ef 3529
495454f4
LP
3530 * The sd-journal.h API gained two new functions:
3531 sd_journal_enumerate_available_unique() and
3532 sd_journal_enumerate_available_data() that operate like their
3533 counterparts that lack the _available_ in the name, but skip items
3534 that cannot be read and processed by the local implementation
3535 (i.e. are compressed in an unsupported format or such),
3536
7f56c26d
ZJS
3537 * coredumpctl gained a new --file= switch, matching the same one in
3538 journalctl: a specific journal file may be specified to read the
3539 coredump data from.
3540
3541 * coredumps collected by systemd-coredump may now be compressed using
3542 the zstd algorithm.
b0d0e0ef
LP
3543
3544 * systemd-binfmt gained a new switch --unregister for unregistering all
3545 registered entries at once. This is now invoked automatically at
3546 shutdown, so that binary formats registered with the "F" flag will
3547 not block clean file system unmounting.
3548
b0d0e0ef 3549 * systemd-notify's --pid= switch gained new values: "parent", "self",
1d16f661 3550 "auto" for controlling which PID to send to the service manager: the
b0d0e0ef
LP
3551 systemd-notify process' PID, or the one of the process invoking it.
3552
b0d0e0ef
LP
3553 * systemd-logind's Session bus object learnt a new method call
3554 SetType() for temporarily updating the session type of an already
3555 allocated session. This is useful for upgrading tty sessions to
3556 graphical ones once a compositor is invoked.
3557
b0d0e0ef
LP
3558 * systemd-socket-proxy gained a new switch --exit-idle-time= for
3559 configuring an exit-on-idle time.
3560
b0d0e0ef
LP
3561 * systemd-repart's --empty= setting gained a new value "create". If
3562 specified a new empty regular disk image file is created under the
1d16f661 3563 specified name. Its size may be specified with the new --size=
b0d0e0ef
LP
3564 option. The latter is also supported without the "create" mode, in
3565 order to grow existing disk image files to the specified size. These
1d16f661
FS
3566 two new options are useful when creating or manipulating disk images
3567 instead of operating on actual block devices.
b0d0e0ef
LP
3568
3569 * systemd-repart drop-ins now support a new UUID= setting to control
3570 the UUID to assign to a newly created partition.
3571
1f19ae0f
LP
3572 * systemd-repart's SizeMin= per-partition parameter now defaults to 10M
3573 instead of 0.
3574
3575 * systemd-repart's Label= setting now support the usual, simple
3576 specifier expansion.
3577
7f56c26d
ZJS
3578 * systemd-homed's LUKS backend gained the ability to discard empty file
3579 system blocks automatically when the user logs out. This is enabled
3580 by default to ensure that home directories take minimal space when
3581 logged out but get full size guarantees when logged in. This may be
3582 controlled with the new --luks-offline-discard= switch to homectl.
b0d0e0ef 3583
7f56c26d
ZJS
3584 * If systemd-homed detects that /home/ is encrypted as a whole it will
3585 now default to the directory or subvolume backends instead of the
3586 LUKS backend, in order to avoid double encryption. The default
3587 storage and file system may now be configured explicitly, too, via
3588 the new /etc/systemd/homed.conf configuration file.
b0d0e0ef 3589
5d043c9f
LP
3590 * systemd-homed now supports unlocking home directories with FIDO2
3591 security tokens that support the 'hmac-secret' extension, in addition
3592 to the existing support for PKCS#11 security token unlocking
3593 support. Note that many recent hardware security tokens support both
3594 interfaces. The FIDO2 support is accessible via homectl's
3595 --fido2-device= option.
3596
3597 * homectl's --pkcs11-uri= setting now accepts two special parameters:
3598 if "auto" is specified and only one suitable PKCS#11 security token
3599 is plugged in, its URL is automatically determined and enrolled for
3600 unlocking the home directory. If "list" is specified a brief table of
3601 suitable PKCS#11 security tokens is shown. Similar, the new
3602 --fido2-device= option also supports these two special values, for
3603 automatically selecting and listing suitable FIDO2 devices.
3604
b0d0e0ef
LP
3605 * The /etc/crypttab tmp option now optionally takes an argument
3606 selecting the file system to use. Moreover, the default is now
3607 changed from ext2 to ext4.
3608
3609 * There's a new /etc/crypttab option "keyfile-erase". If specified the
3610 key file listed in the same line is removed after use, regardless if
3611 volume activation was successful or not. This is useful if the key
3612 file is only acquired transiently at runtime and shall be erased
3613 before the system continues to boot.
3614
3615 * There's also a new /etc/crypttab option "try-empty-password". If
3616 specified, before asking the user for a password it is attempted to
3617 unlock the volume with an empty password. This is useful for
3618 installing encrypted images whose password shall be set on first boot
3619 instead of at installation time.
3620
3621 * systemd-cryptsetup will now attempt to load the keys to unlock
3622 volumes with automatically from files in
3623 /etc/cryptsetup-keys.d/<volume>.key and
3624 /run/cryptsetup-keys.d/<volume>.key, if any of these files exist.
3625
7f56c26d
ZJS
3626 * systemd-cryptsetup may now activate Microsoft BitLocker volumes via
3627 /etc/crypttab, during boot.
3628
b0d0e0ef
LP
3629 * logind.conf gained a new RuntimeDirectoryInodesMax= setting to
3630 control the inode limit for the per-user $XDG_RUNTIME_DIR tmpfs
3631 instance.
3632
b0d0e0ef 3633 * A new generator systemd-xdg-autostart-generator has been added. It
7f56c26d
ZJS
3634 generates systemd unit files from XDG autostart .desktop files, and
3635 may be used to let the systemd user instance manage services that are
3636 started automatically as part of the desktop session.
47373451 3637
cb713f16
FS
3638 * "bootctl" gained a new verb "reboot-to-firmware" that may be used
3639 to query and change the firmware's 'reboot into firmware' setup flag.
1f19ae0f 3640
7f56c26d
ZJS
3641 * systemd-firstboot gained a new switch --kernel-command-line= that may
3642 be used to initialize the /etc/kernel/cmdline file of the image. It
3643 also gained a new switch --root-password-hashed= which is like
3644 --root-password= but accepts a pre-hashed UNIX password as
3645 argument. The new option --delete-root-password may be used to unset
495454f4
LP
3646 any password for the root user (dangerous!). The --root-shell= switch
3647 may be used to control the shell to use for the root account. A new
3648 --force option may be used to override any already set settings with
3649 the parameters specified on the command line (by default, the tool
3650 will not override what has already been set before, i.e. is purely
3651 incremental).
1f19ae0f 3652
a38c68a1
LP
3653 * systemd-firstboot gained support for a new --image= switch, which is
3654 similar to --root= but accepts the path to a disk image file, on
3655 which it then operates.
3656
7f56c26d
ZJS
3657 * A new sd-path.h API has been added to libsystemd. It provides a
3658 simple API for retrieving various search paths and primary
3659 directories for various resources.
1f19ae0f 3660
7f56c26d
ZJS
3661 * A new call sd_notify_barrier() has been added to the sd-daemon.h
3662 API. The call will block until all previously sent sd_notify()
3663 messages have been processed by the service manager. This is useful
3664 to remove races caused by a process already having disappeared at the
3665 time a notification message is processed by the service manager,
3666 making correct attribution impossible. The systemd-notify tool will
3667 now make use of this call implicitly, but this can be turned off again
3668 via the new --no-block switch.
1f19ae0f 3669
7f56c26d
ZJS
3670 * When sending a file descriptor (fd) to the service manager to keep
3671 track of, using the sd_notify() mechanism, a new parameter FDPOLL=0
3672 may be specified. If passed the service manager will refrain from
3673 poll()ing on the file descriptor. Traditionally (and when the
3674 parameter is not specified), the service manager will poll it for
3675 POLLHUP or POLLERR events, and immediately close the fds in that
3676 case.
1f19ae0f
LP
3677
3678 * The service manager (PID1) gained a new D-Bus method call
3679 SetShowStatus() which may be used to control whether it shall show
3680 boot-time status output on the console. This method has a similar
3681 effect to sending SIGRTMIN+20/SIGRTMIN+21 to PID 1.
3682
7f56c26d
ZJS
3683 * The sd-bus API gained a number of convenience functions that take
3684 va_list arguments rather than "...". For example, there's now
3685 sd_bus_call_methodv() to match sd_bus_call_method(). Those calls make
3686 it easier to build wrappers that accept variadic arguments and want
3687 to pass a ready va_list structure to sd-bus.
1f19ae0f 3688
7f56c26d
ZJS
3689 * sd-bus vtable entries can have a new SD_BUS_VTABLE_ABSOLUTE_OFFSET
3690 flag which alters how the userdata pointer to pass to the callbacks
3691 is determined. When the flag is set, the offset field is converted
3692 as-is into a pointer, without adding it to the object pointer the
3693 vtable is associated with.
1f19ae0f 3694
7f56c26d
ZJS
3695 * sd-bus now exposes four new functions:
3696 sd_bus_interface_name_is_valid() + sd_bus_service_name_is_valid() +
3697 sd_bus_member_name_is_valid() + sd_bus_object_path_is_valid() will
3698 validate strings to check if they qualify as various D-Bus concepts.
1f19ae0f 3699
7f56c26d
ZJS
3700 * The sd-bus API gained the SD_BUS_METHOD_WITH_ARGS(),
3701 SD_BUS_METHOD_WITH_ARGS_OFFSET() and SD_BUS_SIGNAL_WITH_ARGS() macros
3702 that simplify adding argument names to D-Bus methods and signals.
1f19ae0f 3703
7f56c26d 3704 * The man pages for the sd-bus and sd-hwdb APIs have been completed.
1f19ae0f 3705
7f56c26d
ZJS
3706 * Various D-Bus APIs of systemd daemons now have man pages that
3707 document the methods, signals and properties.
1f19ae0f 3708
7f56c26d 3709 * The expectations on user/group name syntax are now documented in
5149990e
CR
3710 detail; documentation on how classic home directories may be
3711 converted into home directories managed by homed has been added;
3712 documentation regarding integration of homed/userdb functionality in
3713 desktops has been added:
7f56c26d
ZJS
3714
3715 https://systemd.io/USER_NAMES
3716 https://systemd.io/CONVERTING_TO_HOMED
3717 https://systemd.io/USERDB_AND_DESKTOPS
3718
3719 * Documentation for the on-disk Journal file format has been updated
3720 and has now moved to:
3721
3722 https://systemd.io/JOURNAL_FILE_FORMAT
3723
5961d35a
ZJS
3724 * The interface for containers (https://systemd.io/CONTAINER_INTERFACE)
3725 has been extended by a set of environment variables that expose
3726 select fields from the host's os-release file to the container
3727 payload. Similarly, host's os-release files can be mounted into the
54971969 3728 container underneath /run/host. Together, those mechanisms provide a
5961d35a
ZJS
3729 standardized way to expose information about the host to the
3730 container payload. Both interfaces are implemented in systemd-nspawn.
3731
7f56c26d
ZJS
3732 * All D-Bus services shipped in systemd now implement the generic
3733 LogControl1 D-Bus API which allows clients to change log level +
3734 target of the service during runtime.
1f19ae0f 3735
337f0b00
ZJS
3736 * Only relevant for developers: the mkosi.default symlink has been
3737 dropped from version control. Please create a symlink to one of the
3738 distribution-specific defaults in .mkosi/ based on your preference.
4c967576 3739
72e51908 3740 Contributions from: 24bisquitz, Adam Nielsen, Alan Perry, Alexander
ae366f3a
ZJS
3741 Malafeev, Amitanand.Chikorde, Alin Popa, Alvin Šipraga, Amos Bird,
3742 Andreas Rammhold, AndreRH, Andrew Doran, Anita Zhang, Ankit Jain,
3743 antznin, Arnaud Ferraris, Arthur Moraes do Lago, Arusekk, Balaji
3744 Punnuru, Balint Reczey, Bastien Nocera, bemarek, Benjamin Berg,
3745 Benjamin Dahlhoff, Benjamin Robin, Chris Down, Chris Kerr, Christian
3746 Göttsche, Christian Hesse, Christian Oder, Ciprian Hacman, Clinton Roy,
3747 codicodi, Corey Hinshaw, Daan De Meyer, Dana Olson, Dan Callaghan,
3748 Daniel Fullmer, Daniel Rusek, Dan Streetman, Dave Reisner, David
3749 Edmundson, David Wood, Denis Pronin, Diego Escalante Urrelo, Dimitri
3750 John Ledkov, dolphrundgren, duguxy, Einsler Lee, Elisei Roca, Emmanuel
3751 Garette, Eric Anderson, Eric DeVolder, Evgeny Vereshchagin,
3752 ExtinctFire, fangxiuning, Ferran Pallarès Roca, Filipe Brandenburger,
3753 Filippo Falezza, Finn, Florian Klink, Florian Mayer, Franck Bui,
3754 Frantisek Sumsal, gaurav, Georg Müller, Gergely Polonkai, Giedrius
3755 Statkevičius, Gigadoc2, gogogogi, Gaurav Singh, gzjsgdsb, Hans de
3756 Goede, Haochen Tong, ianhi, ignapk, Jakov Smolic, James T. Lee, Jan
3757 Janssen, Jan Klötzke, Jan Palus, Jay Burger, Jeremy Cline, Jérémy
3758 Rosen, Jian-Hong Pan, Jiri Slaby, Joel Shapiro, Joerg Behrmann, Jörg
3759 Thalheim, Jouke Witteveen, Kai-Heng Feng, Kenny Levinsen, Kevin
3760 Kuehler, Kumar Kartikeya Dwivedi, layderv, laydervus, Lénaïc Huard,
3761 Lennart Poettering, Lidong Zhong, Luca Boccassi, Luca BRUNO, Lucas
3762 Werkmeister, Lukas Klingsbo, Lukáš Nykrýn, Łukasz Stelmach, Maciej
3763 S. Szmigiero, MadMcCrow, Marc-André Lureau, Marcel Holtmann, Marc
3764 Kleine-Budde, Martin Hundebøll, Matthew Leeds, Matt Ranostay, Maxim
3765 Fomin, MaxVerevkin, Michael Biebl, Michael Chapman, Michael Gubbels,
3766 Michael Marley, Michał Bartoszkiewicz, Michal Koutný, Michal Sekletár,
3767 Mike Gilbert, Mike Kazantsev, Mikhail Novosyolov, ml, Motiejus Jakštys,
3768 nabijaczleweli, nerdopolis, Niccolò Maggioni, Niklas Hambüchen, Norbert
3769 Lange, Paul Cercueil, pelzvieh, Peter Hutterer, Piero La Terza, Pieter
3770 Lexis, Piotr Drąg, Rafael Fontenelle, Richard Petri, Ronan Pigott, Ross
3771 Lagerwall, Rubens Figueiredo, satmandu, Sean-StarLabs, Sebastian
3772 Jennen, sterlinghughes, Surhud More, Susant Sahani, szb512, Thomas
3773 Haller, Tobias Hunger, Tom, Tomáš Pospíšek, Tomer Shechner, Tom Hughes,
3774 Topi Miettinen, Tudor Roman, Uwe Kleine-König, Valery0xff, Vito Caputo,
3775 Vladimir Panteleev, Vladyslav Tronko, Wen Yang, Yegor Vialov, Yigal
3776 Korman, Yi Gao, YmrDtnJu, Yuri Chornoivan, Yu Watanabe, Zbigniew
3777 Jędrzejewski-Szmek, Zhu Li, Дамјан Георгиевски, наб
3778
3779 – Warsaw, 2020-07-30
976efe1b 3780
901d1ce8 3781CHANGES WITH 245:
723822f0 3782
68410195 3783 * A new tool "systemd-repart" has been added, that operates as an
2ad98889
ZJS
3784 idempotent declarative repartitioner for GPT partition tables.
3785 Specifically, a set of partitions that must or may exist can be
3786 configured via drop-in files, and during every boot the partition
3787 table on disk is compared with these files, creating missing
3788 partitions or growing existing ones based on configurable relative
3789 and absolute size constraints. The tool is strictly incremental,
3790 i.e. does not delete, shrink or move partitions, but only adds and
3791 grows them. The primary use-case is OS images that ship in minimized
3792 form, that on first boot are grown to the size of the underlying
3793 block device or augmented with additional partitions. For example,
3794 the root partition could be extended to cover the whole disk, or a
3795 swap or /home partitions could be added on first boot. It can also be
3796 used for systems that use an A/B update scheme but ship images with
3797 just the A partition, with B added on first boot. The tool is
3798 primarily intended to be run in the initrd, shortly before
3799 transitioning into the host OS, but can also be run after the
3800 transition took place. It automatically discovers the disk backing
3801 the root file system, and should hence not require any additional
3802 configuration besides the partition definition drop-ins. If no
3803 configuration drop-ins are present, no action is taken.
68410195
LP
3804
3805 * A new component "userdb" has been added, along with a small daemon
a0223c30 3806 "systemd-userdbd.service" and a client tool "userdbctl". The framework
68410195
LP
3807 allows defining rich user and group records in a JSON format,
3808 extending on the classic "struct passwd" and "struct group"
3809 structures. Various components in systemd have been updated to
3810 process records in this format, including systemd-logind and
3811 pam-systemd. The user records are intended to be extensible, and
3812 allow setting various resource management, security and runtime
3813 parameters that shall be applied to processes and sessions of the
3814 user as they log in. This facility is intended to allow associating
3815 such metadata directly with user/group records so that they can be
3816 produced, extended and consumed in unified form. We hope that
3817 eventually frameworks such as sssd will generate records this way, so
3818 that for the first time resource management and various other
3819 per-user settings can be configured in LDAP directories and then
3820 provided to systemd (specifically to systemd-logind and pam-system)
2ad98889 3821 to apply on login. For further details see:
68410195
LP
3822
3823 https://systemd.io/USER_RECORD
3824 https://systemd.io/GROUP_RECORD
3825 https://systemd.io/USER_GROUP_API
3826
9a4940bf 3827 * A small new service systemd-homed.service has been added, that may be
2ad98889
ZJS
3828 used to securely manage home directories with built-in encryption.
3829 The complete user record data is unified with the home directory,
3830 thus making home directories naturally migratable. Its primary
3831 back-end is based on LUKS volumes, but fscrypt, plain directories,
3832 and other storage schemes are also supported. This solves a couple of
3833 problems we saw with traditional ways to manage home directories, in
3834 particular when it comes to encryption. For further discussion of
3835 this, see the video of Lennart's talk at AllSystemsGo! 2019:
9a4940bf
LP
3836
3837 https://media.ccc.de/v/ASG2019-164-reinventing-home-directories
3838
3839 For further details about the format and expectations on home
3840 directories this new daemon makes, see:
3841
3842 https://systemd.io/HOME_DIRECTORY
3843
3844 * systemd-journald is now multi-instantiable. In addition to the main
3845 instance systemd-journald.service there's now a template unit
2ad98889
ZJS
3846 systemd-journald@.service, with each instance defining a new named
3847 log 'namespace' (whose name is specified via the instance part of the
3848 unit name). A new unit file setting LogNamespace= has been added,
3849 taking such a namespace name, that assigns services to the specified
3850 log namespaces. As each log namespace is serviced by its own
3851 independent journal daemon, this functionality may be used to improve
3852 performance and increase isolation of applications, at the price of
3853 losing global message ordering. Each instance of journald has a
3854 separate set of configuration files, with possibly different disk
3855 usage limitations and other settings.
3856
3857 journalctl now takes a new option --namespace= to show logs from a
3858 specific log namespace. The sd-journal.h API gained
3859 sd_journal_open_namespace() for opening the log stream of a specific
3860 log namespace. systemd-journald also gained the ability to exit on
3861 idle, which is useful in the context of log namespaces, as this means
3862 log daemons for log namespaces can be activated automatically on
3863 demand and will stop automatically when no longer used, minimizing
3864 resource usage.
9a4940bf 3865
723822f0 3866 * When systemd-tmpfiles copies a file tree using the 'C' line type it
2ad98889 3867 will now label every copied file according to the SELinux database.
723822f0
LP
3868
3869 * When systemd/PID 1 detects it is used in the initrd it will now boot
3870 into initrd.target rather than default.target by default. This should
3871 make it simpler to build initrds with systemd as for many cases the
3872 only difference between a host OS image and an initrd image now is
2ad98889 3873 the presence of the /etc/initrd-release file.
723822f0
LP
3874
3875 * A new kernel command line option systemd.cpu_affinity= is now
3876 understood. It's equivalent to the CPUAffinity= option in
3877 /etc/systemd/system.conf and allows setting the CPU mask for PID 1
2ad98889 3878 itself and the default for all other processes.
723822f0 3879
2ad98889
ZJS
3880 * When systemd/PID 1 is reloaded (with systemctl daemon-reload or
3881 equivalent), the SELinux database is now reloaded, ensuring that
723822f0
LP
3882 sockets and other file system objects are generated taking the new
3883 database into account.
3884
d54bb638
ZJS
3885 * systemd/PID 1 accepts a new "systemd.show-status=error" setting, and
3886 "quiet" has been changed to imply that instead of
3887 "systemd.show-status=auto". In this mode, only messages about errors
3888 and significant delays in boot are shown on the console.
3889
2ad98889 3890 * The sd-event.h API gained native support for the new Linux "pidfd"
723822f0
LP
3891 concept. This permits watching processes using file descriptors
3892 instead of PID numbers, which fixes a number of races and makes
2ad98889 3893 process supervision more robust and efficient. All of systemd's
723822f0
LP
3894 components will now use pidfds if the kernel supports it for process
3895 watching, with the exception of PID 1 itself, unfortunately. We hope
3896 to move PID 1 to exclusively using pidfds too eventually, but this
3897 requires some more kernel work first. (Background: PID 1 watches
3898 processes using waitid() with the P_ALL flag, and that does not play
3899 together nicely with pidfds yet.)
3900
3901 * Closely related to this, the sd-event.h API gained two new calls
3902 sd_event_source_send_child_signal() (for sending a signal to a
3903 watched process) and sd_event_source_get_child_process_own() (for
2ad98889
ZJS
3904 marking a process so that it is killed automatically whenever the
3905 event source watching it is freed).
723822f0 3906
60ed2dcf 3907 * systemd-networkd gained support for configuring Token Bucket Filter
2ad98889
ZJS
3908 (TBF) parameters in its qdisc configuration support. Similarly,
3909 support for Stochastic Fairness Queuing (SFQ), Controlled-Delay
69f17347 3910 Active Queue Management (CoDel), and Fair Queue (FQ) has been added.
723822f0
LP
3911
3912 * systemd-networkd gained support for Intermediate Functional Block
3913 (IFB) network devices.
3914
3915 * systemd-networkd gained support for configuring multi-path IP routes,
3916 using the new MultiPathRoute= setting in the [Route] section.
3917
2ad98889
ZJS
3918 * systemd-networkd's DHCPv4 client has been updated to support a new
3919 SendDecline= option. If enabled, duplicate address detection is done
3920 after a DHCP offer is received from the server. If a conflict is
3921 detected, the address is declined. The DHCPv4 client also gained
723822f0
LP
3922 support for a new RouteMTUBytes= setting that allows to configure the
3923 MTU size to be used for routes generated from DHCPv4 leases.
3924
3925 * The PrefixRoute= setting in systemd-networkd's [Address] section of
3926 .network files has been deprecated, and replaced by AddPrefixRoute=,
2ad98889 3927 with its sense inverted.
723822f0
LP
3928
3929 * The Gateway= setting of [Route] sections of .network files gained
427928ca
ZJS
3930 support for a special new value "_dhcp". If set, the configured
3931 static route uses the gateway host configured via DHCP.
723822f0 3932
573e58f6 3933 * New User= and SuppressPrefixLength= settings have been implemented
f05c0615
YW
3934 for the [RoutingPolicyRule] section of .network files to configure
3935 source routing based on UID ranges and prefix length, respectively.
9a4940bf 3936
88b2a950
ZJS
3937 * The Type= match property of .link files has been generalized to
3938 always match the device type shown by 'networkctl status', even for
3939 devices where udev does not set DEVTYPE=. This allows e.g. Type=ether
3940 to be used.
3941
2ad98889
ZJS
3942 * sd-bus gained a new API call sd_bus_message_sensitive() that marks a
3943 D-Bus message object as "sensitive". Those objects are erased from
3944 memory when they are freed. This concept is intended to be used for
3945 messages that contain security sensitive data. A new flag
3946 SD_BUS_VTABLE_SENSITIVE has been introduced as well to mark methods
3947 in sd-bus vtables, causing any incoming and outgoing messages of
3948 those methods to be implicitly marked as "sensitive".
723822f0 3949
9a4940bf 3950 * sd-bus gained a new API call sd_bus_message_dump() for dumping the
2ad98889 3951 contents of a message (or parts thereof) to standard output for
9a4940bf
LP
3952 debugging purposes.
3953
2ad98889
ZJS
3954 * systemd-sysusers gained support for creating users with the primary
3955 group named differently than the user.
9a4940bf 3956
723822f0
LP
3957 * systemd-growfs (i.e. the x-systemd.growfs mount option in /etc/fstab)
3958 gained support for growing XFS partitions. Previously it supported
3959 only ext4 and btrfs partitions.
3960
3961 * The support for /etc/crypttab gained a new x-initrd.attach option. If
2ad98889
ZJS
3962 set, the specified encrypted volume is unlocked already in the
3963 initrd. This concept corresponds to the x-initrd.mount option in
723822f0
LP
3964 /etc/fstab.
3965
3966 * systemd-cryptsetup gained native support for unlocking encrypted
3967 volumes utilizing PKCS#11 smartcards, i.e. for example to bind
2ad98889 3968 encryption of volumes to YubiKeys. This is exposed in the new
723822f0
LP
3969 pkcs11-uri= option in /etc/crypttab.
3970
68410195
LP
3971 * The /etc/fstab support in systemd now supports two new mount options
3972 x-systemd.{required,wanted}-by=, for explicitly configuring the units
3973 that the specified mount shall be pulled in by, in place of
3974 the usual local-fs.target/remote-fs.target.
3975
723822f0
LP
3976 * The https://systemd.io/ web site has been relaunched, directly
3977 populated with most of the documentation included in the systemd
2ad98889
ZJS
3978 repository. systemd also acquired a new logo, thanks to Tobias
3979 Bernard.
723822f0
LP
3980
3981 * systemd-udevd gained support for managing "alternative" network
3982 interface names, as supported by new Linux kernels. For the first
3983 time this permits assigning multiple (and longer!) names to a network
3984 interface. systemd-udevd will now by default assign the names
2ad98889
ZJS
3985 generated via all supported naming schemes to each interface. This
3986 may be further tweaked with .link files and the AlternativeName= and
3987 AlternativeNamesPolicy= settings. Other components of systemd have
3988 been updated to support the new alternative names wherever
3989 appropriate. For example, systemd-nspawn will now generate
3990 alternative interface names for the host-facing side of container
3991 veth links based on the full container name without truncation.
723822f0
LP
3992
3993 * systemd-nspawn interface naming logic has been updated in another way
3994 too: if the main interface name (i.e. as opposed to new-style
2ad98889
ZJS
3995 "alternative" names) based on the container name is truncated, a
3996 simple hashing scheme is used to give different interface names to
3997 multiple containers whose names all begin with the same prefix. Since
3998 this changes the primary interface names pointing to containers if
3999 truncation happens, the old scheme may still be requested by
4000 selecting an older naming scheme, via the net.naming-scheme= kernel
4001 command line option.
723822f0 4002
68410195
LP
4003 * PrivateUsers= in service files now works in services run by the
4004 systemd --user per-user instance of the service manager.
4005
4006 * A new per-service sandboxing option ProtectClock= has been added that
4007 locks down write access to the system clock. It takes away device
2ad98889
ZJS
4008 node access to /dev/rtc as well as the system calls that set the
4009 system clock and the CAP_SYS_TIME and CAP_WAKE_ALARM capabilities.
4010 Note that this option does not affect access to auxiliary services
4011 that allow changing the clock, for example access to
4012 systemd-timedated.
68410195
LP
4013
4014 * The systemd-id128 tool gained a new "show" verb for listing or
4015 resolving a number of well-known UUIDs/128bit IDs, currently mostly
4016 GPT partition table types.
723822f0
LP
4017
4018 * The Discoverable Partitions Specification has been updated to support
4019 /var and /var/tmp partition discovery. Support for this has been
4020 added to systemd-gpt-auto-generator. For details see:
4021
4022 https://systemd.io/DISCOVERABLE_PARTITIONS
4023
4024 * "systemctl list-unit-files" has been updated to show a new column
4025 with the suggested enablement state based on the vendor preset files
4026 for the respective units.
4027
68410195
LP
4028 * "systemctl" gained a new option "--with-dependencies". If specified
4029 commands such as "systemctl status" or "systemctl cat" will now show
4030 all specified units along with all units they depend on.
4031
723822f0
LP
4032 * networkctl gained support for showing per-interface logs in its
4033 "status" output.
4034
a100fe3c 4035 * systemd-networkd-wait-online gained support for specifying the maximum
573e58f6
ZJS
4036 operational state to wait for, and to wait for interfaces to
4037 disappear.
4038
723822f0
LP
4039 * The [Match] section of .link and .network files now supports a new
4040 option PermanentMACAddress= which may be used to check against the
4041 permanent MAC address of a network device even if a randomized MAC
4042 address is used.
4043
69f17347
ZJS
4044 * The [TrafficControlQueueingDiscipline] section in .network files has
4045 been renamed to [NetworkEmulator] with the "NetworkEmulator" prefix
4046 dropped from the individual setting names.
68410195 4047
823b0352
ZJS
4048 * Any .link and .network files that have an empty [Match] section (this
4049 also includes empty and commented-out files) will now be
4050 rejected. systemd-udev and systemd-networkd started warning about
4051 such files in version 243.
4052
2ad98889 4053 * systemd-logind will now validate access to the operation of changing
98ab0dae 4054 the virtual terminal via a polkit action. By default, only users
2ad98889 4055 with at least one session on a local VT are granted permission.
68410195 4056
2ad98889
ZJS
4057 * When systemd sets up PAM sessions that invoked service processes
4058 shall run in, the pam_setcred() API is now invoked, thus permitting
4059 PAM modules to set additional credentials for the processes.
68410195 4060
d54bb638
ZJS
4061 * portablectl attach/detach verbs now accept --now and --enable options
4062 to combine attachment with enablement and invocation, or detachment
4063 with stopping and disablement.
4064
2ca17c78
ZJS
4065 * UPGRADE ISSUE: a bug where some jobs were trimmed as redundant was
4066 fixed, which in turn exposed bugs in unit configuration of services
4067 which have Type=oneshot and should only run once, but do not have
4068 RemainAfterExit=yes set. Without RemainAfterExit=yes, a one-shot
4069 service may be started again after exiting successfully, for example
4070 as a dependency in another transaction. Affected services included
4071 some internal systemd services (most notably
4072 systemd-vconsole-setup.service, which was updated to have
4073 RemainAfterExit=yes), and plymouth-start.service. Please ensure that
4074 plymouth has been suitably updated or patched before upgrading to
4075 this systemd release. See
4076 https://bugzilla.redhat.com/show_bug.cgi?id=1807771 for some
4077 additional discussion.
4078
9c4d3d79
ZJS
4079 Contributions from: AJ Bagwell, Alin Popa, Andreas Rammhold, Anita
4080 Zhang, Ansgar Burchardt, Antonio Russo, Arian van Putten, Ashley Davis,
4081 Balint Reczey, Bart Willems, Bastien Nocera, Benjamin Dahlhoff, Charles
4082 (Chas) Williams, cheese1, Chris Down, Chris Murphy, Christian Ehrhardt,
4083 Christian Göttsche, cvoinf, Daan De Meyer, Daniele Medri, Daniel Rusek,
4084 Daniel Shahaf, Dann Frazier, Dan Streetman, Dariusz Gadomski, David
4085 Michael, Dimitri John Ledkov, Emmanuel Bourg, Evgeny Vereshchagin,
4086 ezst036, Felipe Sateler, Filipe Brandenburger, Florian Klink, Franck
4087 Bui, Fran Dieguez, Frantisek Sumsal, Greg "GothAck" Miell, Guilhem
4088 Lettron, Guillaume Douézan-Grard, Hans de Goede, HATAYAMA Daisuke, Iain
4089 Lane, James Buren, Jan Alexander Steffens (heftig), Jérémy Rosen, Jin
4090 Park, Jun'ichi Nomura, Kai Krakow, Kevin Kuehler, Kevin P. Fleming,
4091 Lennart Poettering, Leonid Bloch, Leonid Evdokimov, lothrond, Luca
4092 Boccassi, Lukas K, Lynn Kirby, Mario Limonciello, Mark Deneen, Matthew
4093 Leeds, Michael Biebl, Michal Koutný, Michal Sekletár, Mike Auty, Mike
4094 Gilbert, mtron, nabijaczleweli, Naïm Favier, Nate Jones, Norbert Lange,
4095 Oliver Giles, Paul Davey, Paul Menzel, Peter Hutterer, Piotr Drąg, Rafa
4096 Couto, Raphael, rhn, Robert Scheck, Rocka, Romain Naour, Ryan Attard,
4097 Sascha Dewald, Shengjing Zhu, Slava Kardakov, Spencer Michaels, Sylvain
4098 Plantefeve, Stanislav Angelovič, Susant Sahani, Thomas Haller, Thomas
4099 Schmitt, Timo Schlüßler, Timo Wilken, Tobias Bernard, Tobias Klauser,
4100 Tobias Stoeckmann, Topi Miettinen, tsia, WataruMatsuoka, Wieland
4101 Hoffmann, Wilhelm Schuster, Will Fleming, xduugu, Yong Cong Sin, Yuri
4102 Chornoivan, Yu Watanabe, Zach Smith, Zbigniew Jędrzejewski-Szmek, Zeyu
4103 DONG
901d1ce8 4104
03985d06 4105 – Warsaw, 2020-03-06
723822f0 4106
bdf2357c 4107CHANGES WITH 244:
ee50dada
ZJS
4108
4109 * Support for the cpuset cgroups v2 controller has been added.
4110 Processes may be restricted to specific CPUs using the new
4111 AllowedCPUs= setting, and to specific memory NUMA nodes using the new
4112 AllowedMemoryNodes= setting.
4113
4114 * The signal used in restart jobs (as opposed to e.g. stop jobs) may
1e904320 4115 now be configured using a new RestartKillSignal= setting. This
ee50dada
ZJS
4116 allows units which signals to request termination to implement
4117 different behaviour when stopping in preparation for a restart.
4118
4119 * "systemctl clean" may now be used also for socket, mount, and swap
4120 units.
4121
4122 * systemd will also read configuration options from the EFI variable
4123 SystemdOptions. This may be used to configure systemd behaviour when
4124 modifying the kernel command line is inconvenient, but configuration
4125 on disk is read too late, for example for the options related to
2536752d 4126 cgroup hierarchy setup. 'bootctl systemd-efi-options' may be used to
ee50dada
ZJS
4127 set the EFI variable.
4128
4129 * systemd will now disable printk ratelimits in early boot. This should
4130 allow us to capture more logs from the early boot phase where normal
4131 storage is not available and the kernel ring buffer is used for
4132 logging. Configuration on the kernel command line has higher priority
4133 and overrides the systemd setting.
4134
4135 systemd programs which log to /dev/kmsg directly use internal
4136 ratelimits to prevent runaway logging. (Normally this is only used
4137 during early boot, so in practice this change has very little
4138 effect.)
4139
3e1db806
AZ
4140 * Unit files now support top level dropin directories of the form
4141 <unit_type>.d/ (e.g. service.d/) that may be used to add configuration
4142 that affects all corresponding unit files.
ee50dada 4143
852b7272
ZJS
4144 * systemctl gained support for 'stop --job-mode=triggering' which will
4145 stop the specified unit and any units which could trigger it.
4146
4147 * Unit status display now includes units triggering and triggered by
4148 the unit being shown.
4149
ee50dada
ZJS
4150 * The RuntimeMaxSec= setting is now supported by scopes, not just
4151 .service units. This is particularly useful for PAM sessions which
4152 create a scope unit for the user login. systemd.runtime_max_sec=
4153 setting may used with the pam_systemd module to limit the duration
4154 of the PAM session, for example for time-limited logins.
4155
852b7272 4156 * A new @pkey system call group is now defined to make it easier to
6b000af4 4157 allow-list memory protection syscalls for containers and services
852b7272
ZJS
4158 which need to use them.
4159
4160 * systemd-udevd: removed the 30s timeout for killing stale workers on
4161 exit. systemd-udevd now waits for workers to finish. The hard-coded
4162 exit timeout of 30s was too short for some large installations, where
4163 driver initialization could be prematurely interrupted during initrd
4164 processing if the root file system had been mounted and init was
4165 preparing to switch root. If udevd is run without systemd and workers
4166 are hanging while udevd receives an exit signal, udevd will now exit
4167 when udev.event_timeout is reached for the last hanging worker. With
4168 systemd, the exit timeout can additionally be configured using
4169 TimeoutStopSec= in systemd-udevd.service.
4170
ee50dada
ZJS
4171 * udev now provides a program (fido_id) that identifies FIDO CTAP1
4172 ("U2F")/CTAP2 security tokens based on the usage declared in their
4173 report and descriptor and outputs suitable environment variables.
6b000af4 4174 This replaces the externally maintained allow lists of all known
ee50dada
ZJS
4175 security tokens that were used previously.
4176
6b000af4 4177 * Automatically generated autosuspend udev rules for allow-listed
ee50dada 4178 devices have been imported from the Chromium OS project. This should
b7db8b7b 4179 improve power saving with many more devices.
ee50dada
ZJS
4180
4181 * udev gained a new "CONST{key}=value" setting that allows matching
4182 against system-wide constants without forking a helper binary.
4183 Currently "arch" and "virt" keys are supported.
4184
4185 * udev now opens CDROMs in non-exclusive mode when querying their
4186 capabilities. This should fix issues where other programs trying to
4187 use the CDROM cannot gain access to it, but carries a risk of
4188 interfering with programs writing to the disk, if they did not open
4189 the device in exclusive mode as they should.
4190
4191 * systemd-networkd does not create a default route for IPv4 link local
4192 addressing anymore. The creation of the route was unexpected and was
4193 breaking routing in various cases, but people who rely on it being
4194 created implicitly will need to adjust. Such a route may be requested
4195 with DefaultRouteOnDevice=yes.
4196
4197 Similarly, systemd-networkd will not assign a link-local IPv6 address
4198 when IPv6 link-local routing is not enabled.
4199
4200 * Receive and transmit buffers may now be configured on links with
4201 the new RxBufferSize= and TxBufferSize= settings.
4202
4203 * systemd-networkd may now advertise additional IPv6 routes. A new
4204 [IPv6RoutePrefix] section with Route= and LifetimeSec= options is
4205 now supported.
4206
4207 * systemd-networkd may now configure "next hop" routes using the
4208 [NextHop] section and Gateway= and Id= settings.
4209
4210 * systemd-networkd will now retain DHCP config on restarts by default
4211 (but this may be overridden using the KeepConfiguration= setting).
4212 The default for SendRelease= has been changed to true.
4213
4214 * The DHCPv4 client now uses the OPTION_INFORMATION_REFRESH_TIME option
4215 received from the server.
4216
4217 The client will use the received SIP server list if UseSIP=yes is
4218 set.
4219
4220 The client may be configured to request specific options from the
4221 server using a new RequestOptions= setting.
4222
852b7272
ZJS
4223 The client may be configured to send arbitrary options to the server
4224 using a new SendOption= setting.
4225
ee50dada
ZJS
4226 A new IPServiceType= setting has been added to configure the "IP
4227 service type" value used by the client.
4228
4229 * The DHCPv6 client learnt a new PrefixDelegationHint= option to
4230 request prefix hints in the DHCPv6 solicitation.
4231
852b7272 4232 * The DHCPv4 server may be configured to send arbitrary options using
88b86003 4233 a new SendOption= setting.
852b7272
ZJS
4234
4235 * The DHCPv4 server may now be configured to emit SIP server list using
4236 the new EmitSIP= and SIP= settings.
4237
ee50dada
ZJS
4238 * systemd-networkd and networkctl may now renew DHCP leases on demand.
4239 networkctl has a new 'networkctl renew' verb.
4240
4241 * systemd-networkd may now reconfigure links on demand. networkctl
4242 gained two new verbs: "reload" will reload the configuration, and
4243 "reconfigure DEVICE…" will reconfigure one or more devices.
4244
4245 * .network files may now match on SSID and BSSID of a wireless network,
4246 i.e. the access point name and hardware address using the new SSID=
4247 and BSSID= options. networkctl will display the current SSID and
4248 BSSID for wireless links.
4249
4250 .network files may also match on the wireless network type using the
f36e6a4a 4251 new WLANInterfaceType= option.
ee50dada
ZJS
4252
4253 * systemd-networkd now includes default configuration that enables
4254 link-local addressing when connected to an ad-hoc wireless network.
4255
ee50dada
ZJS
4256 * systemd-networkd may configure the Traffic Control queueing
4257 disciplines in the kernel using the new
4258 [TrafficControlQueueingDiscipline] section and Parent=,
4259 NetworkEmulatorDelaySec=, NetworkEmulatorDelayJitterSec=,
6878c022
YW
4260 NetworkEmulatorPacketLimit=, NetworkEmulatorLossRate=,
4261 NetworkEmulatorDuplicateRate= settings.
ee50dada
ZJS
4262
4263 * systemd-tmpfiles gained a new w+ setting to append to files.
4264
4265 * systemd-analyze dump will now report when the memory configuration in
4266 the kernel does not match what systemd has configured (usually,
4267 because some external program has modified the kernel configuration
4268 on its own).
4269
852b7272
ZJS
4270 * systemd-analyze gained a new --base-time= switch instructs the
4271 'calendar' verb to resolve times relative to that timestamp instead
4272 of the present time.
4273
ee50dada
ZJS
4274 * journalctl --update-catalog now produces deterministic output (making
4275 reproducible image builds easier).
4276
4277 * A new devicetree-overlay setting is now documented in the Boot Loader
4278 Specification.
4279
4280 * The default value of the WatchdogSec= setting used in systemd
4281 services (the ones bundled with the project itself) may be set at
4282 configuration time using the -Dservice-watchdog= setting. If set to
4283 empty, the watchdogs will be disabled.
4284
0e4daba1
MK
4285 * systemd-resolved validates IP addresses in certificates now when GnuTLS
4286 is being used.
597f905c 4287
852b7272
ZJS
4288 * libcryptsetup >= 2.0.1 is now required.
4289
4290 * A configuration option -Duser-path= may be used to override the $PATH
4291 used by the user service manager. The default is again to use the same
4292 path as the system manager.
4293
168e131b
LP
4294 * The systemd-id128 tool gained a new switch "-u" (or "--uuid") for
4295 outputting the 128bit IDs in UUID format (i.e. in the "canonical
4296 representation").
4297
4298 * Service units gained a new sandboxing option ProtectKernelLogs= which
4299 makes sure the program cannot get direct access to the kernel log
4300 buffer anymore, i.e. the syslog() system call (not to be confused
4301 with the API of the same name in libc, which is not affected), the
4302 /proc/kmsg and /dev/kmsg nodes and the CAP_SYSLOG capability are made
4303 inaccessible to the service. It's recommended to enable this setting
4304 for all services that should not be able to read from or write to the
4305 kernel log buffer, which are probably almost all.
4306
bdf2357c 4307 Contributions from: Aaron Plattner, Alcaro, Anita Zhang, Balint Reczey,
8bf2a311
LP
4308 Bastien Nocera, Baybal Ni, Benjamin Bouvier, Benjamin Gilbert, Carlo
4309 Teubner, cbzxt, Chen Qi, Chris Down, Christian Rebischke, Claudio
4310 Zumbo, ClydeByrdIII, crashfistfight, Cyprien Laplace, Daniel Edgecumbe,
4311 Daniel Gorbea, Daniel Rusek, Daniel Stuart, Dan Streetman, David
4312 Pedersen, David Tardon, Dimitri John Ledkov, Dominique Martinet, Donald
4313 A. Cupp Jr, Evgeny Vereshchagin, Fabian Henneke, Filipe Brandenburger,
4314 Franck Bui, Frantisek Sumsal, Georg Müller, Hans de Goede, Haochen
4315 Tong, HATAYAMA Daisuke, Iwan Timmer, Jan Janssen, Jan Kundrát, Jan
4316 Synacek, Jan Tojnar, Jay Strict, Jérémy Rosen, Jóhann B. Guðmundsson,
4317 Jonas Jelten, Jonas Thelemann, Justin Trudell, J. Xing, Kai-Heng Feng,
4318 Kenneth D'souza, Kevin Becker, Kevin Kuehler, Lennart Poettering,
4319 Léonard Gérard, Lorenz Bauer, Luca Boccassi, Maciej Stanczew, Mario
4320 Limonciello, Marko Myllynen, Mark Stosberg, Martin Wilck, matthiasroos,
4321 Michael Biebl, Michael Olbrich, Michael Tretter, Michal Sekletar,
4322 Michal Sekletár, Michal Suchanek, Mike Gilbert, Mike Kazantsev, Nicolas
4323 Douma, nikolas, Norbert Lange, pan93412, Pascal de Bruijn, Paul Menzel,
4324 Pavel Hrdina, Peter Wu, Philip Withnall, Piotr Drąg, Rafael Fontenelle,
4325 Renaud Métrich, Riccardo Schirone, RoadrunnerWMC, Ronan Pigott, Ryan
4326 Attard, Sebastian Wick, Serge, Siddharth Chandrasekara, Steve Ramage,
4327 Steve Traylen, Susant Sahani, Thibault Nélis, Tim Teichmann, Tom
4328 Fitzhenry, Tommy J, Torsten Hilbrich, Vito Caputo, ypf791, Yu Watanabe,
4329 Zach Smith, Zbigniew Jędrzejewski-Szmek
4330
4331 – Warsaw, 2019-11-29
bdf2357c 4332
efb536d0 4333CHANGES WITH 243:
6af90583 4334
0338934f
LP
4335 * This release enables unprivileged programs (i.e. requiring neither
4336 setuid nor file capabilities) to send ICMP Echo (i.e. ping) requests
08b59539 4337 by turning on the "net.ipv4.ping_group_range" sysctl of the Linux
0338934f
LP
4338 kernel for the whole UNIX group range, i.e. all processes. This
4339 change should be reasonably safe, as the kernel support for it was
4340 specifically implemented to allow safe access to ICMP Echo for
4341 processes lacking any privileges. If this is not desirable, it can be
4342 disabled again by setting the parameter to "1 0".
4343
4cd82631 4344 * Previously, filters defined with SystemCallFilter= would have the
08b59539
CR
4345 effect that any calling of an offending system call would terminate
4346 the calling thread. This behaviour never made much sense, since
4347 killing individual threads of unsuspecting processes is likely to
4348 create more problems than it solves. With this release the default
4349 action changed from killing the thread to killing the whole
4350 process. For this to work correctly both a kernel version (>= 4.14)
4351 and a libseccomp version (>= 2.4.0) supporting this new seccomp
4352 action is required. If an older kernel or libseccomp is used the old
4353 behaviour continues to be used. This change does not affect any
4354 services that have no system call filters defined, or that use
4355 SystemCallErrorNumber= (and thus see EPERM or another error instead
4356 of being killed when calling an offending system call). Note that
4357 systemd documentation always claimed that the whole process is
4358 killed. With this change behaviour is thus adjusted to match the
4359 documentation.
4cd82631 4360
4860f5c2
ZJS
4361 * On 64 bit systems, the "kernel.pid_max" sysctl is now bumped to
4362 4194304 by default, i.e. the full 22bit range the kernel allows, up
4363 from the old 16bit range. This should improve security and
4364 robustness, as PID collisions are made less likely (though certainly
4365 still possible). There are rumours this might create compatibility
6af90583
LP
4366 problems, though at this moment no practical ones are known to
4367 us. Downstream distributions are hence advised to undo this change in
4368 their builds if they are concerned about maximum compatibility, but
4369 for everybody else we recommend leaving the value bumped. Besides
4370 improving security and robustness this should also simplify things as
4371 the maximum number of allowed concurrent tasks was previously bounded
4860f5c2
ZJS
4372 by both "kernel.pid_max" and "kernel.threads-max" and now effectively
4373 only a single knob is left ("kernel.threads-max"). There have been
4374 concerns that usability is affected by this change because larger PID
4375 numbers are harder to type, but we believe the change from 5 digits
4376 to 7 digits doesn't hamper usability.
6af90583 4377
2875a36b
LP
4378 * MemoryLow= and MemoryMin= gained hierarchy-aware counterparts,
4379 DefaultMemoryLow= and DefaultMemoryMin=, which can be used to
acdb4b52
CD
4380 hierarchically set default memory protection values for a particular
4381 subtree of the unit hierarchy.
4382
22bf131b
CD
4383 * Memory protection directives can now take a value of zero, allowing
4384 explicit opting out of a default value propagated by an ancestor.
4385
87cf1f8f
LP
4386 * systemd now defaults to the "unified" cgroup hierarchy setup during
4387 build-time, i.e. -Ddefault-hierarchy=unified is now the build-time
4388 default. Previously, -Ddefault-hierarchy=hybrid was the default. This
4389 change reflects the fact that cgroupsv2 support has matured
4390 substantially in both systemd and in the kernel, and is clearly the
4391 way forward. Downstream production distributions might want to
4392 continue to use -Ddefault-hierarchy=hybrid (or even =legacy) for
4393 their builds as unfortunately the popular container managers have not
4394 caught up with the kernel API changes.
4395
51b568f7
ZJS
4396 * Man pages are not built by default anymore (html pages were already
4397 disabled by default), to make development builds quicker. When
4398 building systemd for a full installation with documentation, meson
4860f5c2
ZJS
4399 should be called with -Dman=true and/or -Dhtml=true as appropriate.
4400 The default was changed based on the assumption that quick one-off or
4401 repeated development builds are much more common than full optimized
4402 builds for installation, and people need to pass various other
4403 options to when doing "proper" builds anyway, so the gain from making
4404 development builds quicker is bigger than the one time disruption for
4405 packagers.
51b568f7
ZJS
4406
4407 Two scripts are created in the *build* directory to generate and
4408 preview man and html pages on demand, e.g.:
4409
4410 build/man/man systemctl
4411 build/man/html systemd.index
4412
e110599b 4413 * libidn2 is used by default if both libidn2 and libidn are installed.
4860f5c2 4414 Please use -Dlibidn=true if libidn is preferred.
e110599b 4415
2875a36b 4416 * The D-Bus "wire format" of the CPUAffinity= attribute is changed on
9120e2bf
ZJS
4417 big-endian machines. Before, bytes were written and read in native
4418 machine order as exposed by the native libc __cpu_mask interface.
4419 Now, little-endian order is always used (CPUs 0–7 are described by
4420 bits 0–7 in byte 0, CPUs 8–15 are described by byte 1, and so on).
4421 This change fixes D-Bus calls that cross endianness boundary.
4422
2875a36b
LP
4423 The presentation format used for CPUAffinity= by "systemctl show" and
4424 "systemd-analyze dump" is changed to present CPU indices instead of
4425 the raw __cpu_mask bitmask. For example, CPUAffinity=0-1 would be
4426 shown as CPUAffinity=03000000000000000000000000000… (on
4427 little-endian) or CPUAffinity=00000000000000300000000000000… (on
4428 64-bit big-endian), and is now shown as CPUAffinity=0-1, matching the
4429 input format. The maximum integer that will be printed in the new
4430 format is 8191 (four digits), while the old format always used a very
4431 long number (with the length varying by architecture), so they can be
4432 unambiguously distinguished.
9120e2bf 4433
51b568f7
ZJS
4434 * /usr/sbin/halt.local is no longer supported. Implementation in
4435 distributions was inconsistent and it seems this functionality was
4436 very rarely used.
4437
4438 To replace this functionality, users should:
4439 - either define a new unit and make it a dependency of final.target
4440 (systemctl add-wants final.target my-halt-local.service)
4441 - or move the shutdown script to /usr/lib/systemd/system-shutdown/
4442 and ensure that it accepts "halt", "poweroff", "reboot", and
4443 "kexec" as an argument, see the description in systemd-shutdown(8).
4444
4445 * When a [Match] section in .link or .network file is empty (contains
4446 no match patterns), a warning will be emitted. Please add any "match
9120e2bf 4447 all" pattern instead, e.g. OriginalName=* or Name=* in case all
51b568f7
ZJS
4448 interfaces should really be matched.
4449
b070c7c0 4450 * A new setting NUMAPolicy= may be used to set process memory
08b59539
CR
4451 allocation policy. This setting can be specified in
4452 /etc/systemd/system.conf and hence will set the default policy for
4453 PID1. The default policy can be overridden on a per-service
4454 basis. The related setting NUMAMask= is used to specify NUMA node
4455 mask that should be associated with the selected policy.
2875a36b
LP
4456
4457 * PID 1 will now listen to Out-Of-Memory (OOM) events the kernel
eebaa724 4458 generates when processes it manages are reaching their memory limits,
2875a36b
LP
4459 and will place their units in a special state, and optionally kill or
4460 stop the whole unit.
4461
4462 * The service manager will now expose bus properties for the IO
4463 resources used by units. This information is also shown in "systemctl
4464 status" now (for services that have IOAccounting=yes set). Moreover,
4465 the IO accounting data is included in the resource log message
4466 generated whenever a unit stops.
4467
201632e3 4468 * Units may now configure an explicit timeout to wait for when killed
2875a36b 4469 with SIGABRT, for example when a service watchdog is hit. Previously,
201632e3
ZJS
4470 the regular TimeoutStopSec= timeout was applied in this case too —
4471 now a separate timeout may be set using TimeoutAbortSec=.
2875a36b
LP
4472
4473 * Services may now send a special WATCHDOG=trigger message with
4474 sd_notify() to trigger an immediate "watchdog missed" event, and thus
4860f5c2 4475 trigger service termination. This is useful both for testing watchdog
2875a36b
LP
4476 handling, but also for defining error paths in services, that shall
4477 be handled the same way as watchdog events.
4478
4479 * There are two new per-unit settings IPIngressFilterPath= and
4480 IPEgressFilterPath= which allow configuration of a BPF program
4481 (usually by specifying a path to a program uploaded to /sys/fs/bpf/)
4482 to apply to the IP packet ingress/egress path of all processes of a
4483 unit. This is useful to allow running systemd services with BPF
4484 programs set up externally.
4485
4486 * systemctl gained a new "clean" verb for removing the state, cache,
4487 runtime or logs directories of a service while it is terminated. The
4488 new verb may also be used to remove the state maintained on disk for
4489 timer units that have Persistent= configured.
4490
4491 * During the last phase of shutdown systemd will now automatically
4492 increase the log level configured in the "kernel.printk" sysctl so
4493 that any relevant loggable events happening during late shutdown are
4494 made visible. Previously, loggable events happening so late during
4495 shutdown were generally lost if the "kernel.printk" sysctl was set to
4496 high thresholds, as regular logging daemons are terminated at that
4497 time and thus nothing is written to disk.
4498
4499 * If processes terminated during the last phase of shutdown do not exit
4500 quickly systemd will now show their names after a short time, to make
201632e3 4501 debugging easier. After a longer timeout they are forcibly killed,
2875a36b
LP
4502 as before.
4503
4504 * journalctl (and the other tools that display logs) will now highlight
4505 warnings in yellow (previously, both LOG_NOTICE and LOG_WARNING where
4506 shown in bright bold, now only LOG_NOTICE is). Moreover, audit logs
4507 are now shown in blue color, to separate them visually from regular
4508 logs. References to configuration files are now turned into clickable
4509 links on terminals that support that.
4510
4511 * systemd-journald will now stop logging to /var/log/journal during
4512 shutdown when /var/ is on a separate mount, so that it can be
4513 unmounted safely during shutdown.
4514
4515 * systemd-resolved gained support for a new 'strict' DNS-over-TLS mode.
4516
29db4c3a
LP
4517 * systemd-resolved "Cache=" configuration option in resolved.conf has
4518 been extended to also accept the 'no-negative' value. Previously,
4519 only a boolean option was allowed (yes/no), having yes as the
4860f5c2
ZJS
4520 default. If this option is set to 'no-negative', negative answers are
4521 not cached while the old cache heuristics are used positive answers.
4522 The default remains unchanged.
37d7a7d9 4523
2875a36b
LP
4524 * The predictable naming scheme for network devices now supports
4525 generating predictable names for "netdevsim" devices.
4526
4860f5c2
ZJS
4527 Moreover, the "en" prefix was dropped from the ID_NET_NAME_ONBOARD
4528 udev property.
4529
4530 Those two changes form a new net.naming-policy-scheme= entry.
4531 Distributions which want to preserve naming stability may want to set
4532 the -Ddefault-net-naming-scheme= configuration option.
4533
2875a36b
LP
4534 * systemd-networkd now supports MACsec, nlmon, IPVTAP and Xfrm
4535 interfaces natively.
4536
4537 * systemd-networkd's bridge FDB support now allows configuration of a
4538 destination address for each entry (Destination=), as well as the
4539 VXLAN VNI (VNI=), as well as an option to declare what an entry is
4540 associated with (AssociatedWith=).
4541
4542 * systemd-networkd's DHCPv4 support now understands a new MaxAttempts=
08b59539 4543 option for configuring the maximum number of DHCP lease requests. It
6b000af4 4544 also learnt a new BlackList= option for deny-listing DHCP servers (a
08b59539
CR
4545 similar setting has also been added to the IPv6 RA client), as well
4546 as a SendRelease= option for configuring whether to send a DHCP
4547 RELEASE message when terminating.
2875a36b
LP
4548
4549 * systemd-networkd's DHCPv4 and DHCPv6 stacks can now be configured
29db4c3a
LP
4550 separately in the [DHCPv4] and [DHCPv6] sections.
4551
4552 * systemd-networkd's DHCP support will now optionally create an
4553 implicit host route to the DNS server specified in the DHCP lease, in
4554 addition to the routes listed explicitly in the lease. This should
4555 ensure that in multi-homed systems DNS traffic leaves the systems on
4556 the interface that acquired the DNS server information even if other
4557 routes such as default routes exist. This behaviour may be turned on
4558 with the new RoutesToDNS= option.
2875a36b
LP
4559
4560 * systemd-networkd's VXLAN support gained a new option
eebaa724 4561 GenericProtocolExtension= for enabling VXLAN Generic Protocol
2875a36b
LP
4562 Extension support, as well as IPDoNotFragment= for setting the IP
4563 "Don't fragment" bit on outgoing packets. A similar option has been
4564 added to the GENEVE support.
4565
4566 * In systemd-networkd's [Route] section you may now configure
4567 FastOpenNoCookie= for configuring per-route TCP fast-open support, as
4568 well as TTLPropagate= for configuring Label Switched Path (LSP) TTL
4569 propagation. The Type= setting now supports local, broadcast,
4570 anycast, multicast, any, xresolve routes, too.
4571
4572 * systemd-networkd's [Network] section learnt a new option
4573 DefaultRouteOnDevice= for automatically configuring a default route
4574 onto the network device.
4575
4576 * systemd-networkd's bridging support gained two new options ProxyARP=
4577 and ProxyARPWifi= for configuring proxy ARP behaviour as well as
9f0d45e4
YW
4578 MulticastRouter= for configuring multicast routing behaviour. A new
4579 option MulticastIGMPVersion= may be used to change bridge's multicast
4580 Internet Group Management Protocol (IGMP) version.
2875a36b
LP
4581
4582 * systemd-networkd's FooOverUDP support gained the ability to configure
4583 local and peer IP addresses via Local= and Peer=. A new option
4584 PeerPort= may be used to configure the peer's IP port.
4585
4586 * systemd-networkd's TUN support gained a new setting VnetHeader= for
4587 tweaking Generic Segment Offload support.
4588
70fcda85
ZJS
4589 * The address family for policy rules may be specified using the new
4590 Family= option in the [RoutingPolicyRule] section.
4591
2875a36b
LP
4592 * networkctl gained a new "delete" command for removing virtual network
4593 devices, as well as a new "--stats" switch for showing device
4594 statistics.
4595
13cb62af
YW
4596 * networkd.conf gained a new setting SpeedMeter= and
4597 SpeedMeterIntervalSec=, to measure bitrate of network interfaces. The
4598 measured speed may be shown by 'networkctl status'.
4599
4860f5c2
ZJS
4600 * "networkctl status" now displays MTU and queue lengths, and more
4601 detailed information about VXLAN and bridge devices.
4602
2875a36b
LP
4603 * systemd-networkd's .network and .link files gained a new Property=
4604 setting in the [Match] section, to match against devices with
4605 specific udev properties.
4606
4607 * systemd-networkd's tunnel support gained a new option
4608 AssignToLoopback= for selecting whether to use the loopback device
4609 "lo" as underlying device.
4610
70183735 4611 * systemd-networkd's MACAddress= setting in the [Neighbor] section has
2875a36b
LP
4612 been renamed to LinkLayerAddress=, and it now allows configuration of
4613 IP addresses, too.
4614
efb536d0
ZJS
4615 * systemd-networkd's handling of the kernel's disable_ipv6 sysctl is
4616 simplified: systemd-networkd will disable the sysctl (enable IPv6) if
4617 IPv6 configuration (static or DHCPv6) was found for a given
4618 interface. It will not touch the sysctl otherwise.
4619
4620 * The order of entries is $PATH used by the user manager instance was
4621 changed to put bin/ entries before the corresponding sbin/ entries.
4622 It is recommended to not rely on this order, and only ever have one
4623 binary with a given name in the system paths under /usr.
4624
29db4c3a
LP
4625 * A new tool systemd-network-generator has been added that may generate
4626 .network, .netdev and .link files from IP configuration specified on
4860f5c2 4627 the kernel command line in the format used by Dracut.
29db4c3a 4628
2875a36b
LP
4629 * The CriticalConnection= setting in .network files is now deprecated,
4630 and replaced by a new KeepConfiguration= setting which allows more
4631 detailed configuration of the IP configuration to keep in place.
4632
4860f5c2
ZJS
4633 * systemd-analyze gained a few new verbs:
4634
4635 - "systemd-analyze timestamp" parses and converts timestamps. This is
4636 similar to the existing "systemd-analyze calendar" command which
4637 does the same for recurring calendar events.
4638
4639 - "systemd-analyze timespan" parses and converts timespans (i.e.
4640 durations as opposed to points in time).
4641
4642 - "systemd-analyze condition" will parse and test ConditionXYZ=
4643 expressions.
4644
4645 - "systemd-analyze exit-status" will parse and convert exit status
4646 codes to their names and back.
4647
4648 - "systemd-analyze unit-files" will print a list of all unit
4649 file paths and unit aliases.
4650
4651 * SuccessExitStatus=, RestartPreventExitStatus=, and
4652 RestartForceExitStatus= now accept exit status names (e.g. "DATAERR"
4653 is equivalent to "65"). Those exit status name mappings may be
cc560ac0 4654 displayed with the systemd-analyze exit-status verb describe above.
2875a36b
LP
4655
4656 * systemd-logind now exposes a per-session SetBrightness() bus call,
4657 which may be used to securely change the brightness of a kernel
4658 brightness device, if it belongs to the session's seat. By using this
4659 call unprivileged clients can make changes to "backlight" and "leds"
4860f5c2
ZJS
4660 devices securely with strict requirements on session membership.
4661 Desktop environments may use this to generically make brightness
4662 changes to such devices without shipping private SUID binaries or
4663 udev rules for that purpose.
2875a36b
LP
4664
4665 * "udevadm info" gained a --wait-for-initialization switch to wait for
4666 a device to be initialized.
4667
4668 * systemd-hibernate-resume-generator will now look for resumeflags= on
4669 the kernel command line, which is similar to rootflags= and may be
4860f5c2 4670 used to configure device timeout for the hibernation device.
2875a36b
LP
4671
4672 * sd-event learnt a new API call sd_event_source_disable_unref() for
4673 disabling and unref'ing an event source in a single function. A
4674 related call sd_event_source_disable_unrefp() has been added for use
4860f5c2 4675 with gcc's cleanup extension.
2875a36b
LP
4676
4677 * The sd-id128.h public API gained a new definition
4678 SD_ID128_UUID_FORMAT_STR for formatting a 128bit ID in UUID format
4679 with printf().
4680
4681 * "busctl introspect" gained a new switch --xml-interface for dumping
4682 XML introspection data unmodified.
4683
4684 * PID 1 may now show the unit name instead of the unit description
4685 string in its status output during boot. This may be configured in
4686 the StatusUnitFormat= setting in /etc/systemd/system.conf or the
4687 kernel command line option systemd.status_unit_format=.
4688
907ddcd3 4689 * PID 1 now understands a new option KExecWatchdogSec= in
4860f5c2
ZJS
4690 /etc/systemd/system.conf to set a watchdog timeout for kexec reboots.
4691 Previously watchdog functionality was only available for regular
4692 reboots. The new setting defaults to off, because we don't know in
4693 the general case if the watchdog will be reset after kexec (some
4694 drivers do reset it, but not all), and the new userspace might not be
4695 configured to handle the watchdog.
4696
4697 Moreover, the old ShutdownWatchdogSec= setting has been renamed to
4698 RebootWatchdogSec= to more clearly communicate what it is about. The
4699 old name is still accepted for compatibility.
907ddcd3 4700
2875a36b 4701 * The systemd.debug_shell kernel command line option now optionally
4860f5c2
ZJS
4702 takes a tty name to spawn the debug shell on, which allows a
4703 different tty to be selected than the built-in default.
2875a36b 4704
a4d5848a
AZ
4705 * Service units gained a new ExecCondition= setting which will run
4706 before ExecStartPre= and either continue execution of the unit (for
4707 clean exit codes), stop execution without marking the unit failed
4708 (for exit codes 1 through 254), or stop execution and fail the unit
4860f5c2 4709 (for exit code 255 or abnormal termination).
a4d5848a 4710
29db4c3a 4711 * A new service systemd-pstore.service has been added that pulls data
08b59539 4712 from /sys/fs/pstore/ and saves it to /var/lib/pstore for later
29db4c3a
LP
4713 review.
4714
4715 * timedatectl gained new verbs for configuring per-interface NTP
4716 service configuration for systemd-timesyncd.
4717
4718 * "localectl list-locales" won't list non-UTF-8 locales anymore. It's
a18a3aac 4719 2019. (You can set non-UTF-8 locales though, if you know their name.)
29db4c3a 4720
b64c47c0
LP
4721 * If variable assignments in sysctl.d/ files are prefixed with "-" any
4722 failures to apply them are now ignored.
4723
a18a3aac
LP
4724 * systemd-random-seed.service now optionally credits entropy when
4725 applying the seed to the system. Set $SYSTEMD_RANDOM_SEED_CREDIT to
4726 true for the service to enable this behaviour, but please consult the
4727 documentation first, since this comes with a couple of caveats.
4728
4860f5c2
ZJS
4729 * systemd-random-seed.service is now a synchronization point for full
4730 initialization of the kernel's entropy pool. Services that require
4731 /dev/urandom to be correctly initialized should be ordered after this
4732 service.
a18a3aac
LP
4733
4734 * The systemd-boot boot loader has been updated to optionally maintain
4735 a random seed file in the EFI System Partition (ESP). During the boot
4736 phase, this random seed is read and updated with a new seed
4860f5c2 4737 cryptographically derived from it. Another derived seed is passed to
a18a3aac
LP
4738 the OS. The latter seed is then credited to the kernel's entropy pool
4739 very early during userspace initialization (from PID 1). This allows
4740 systems to boot up with a fully initialized kernel entropy pool from
4741 earliest boot on, and thus entirely removes all entropy pool
4742 initialization delays from systems using systemd-boot. Special care
4743 is taken to ensure different seeds are derived on system images
4860f5c2
ZJS
4744 replicated to multiple systems. "bootctl status" will show whether
4745 a seed was received from the boot loader.
4746
4747 * bootctl gained two new verbs:
4748
4749 - "bootctl random-seed" will generate the file in ESP and an EFI
4750 variable to allow a random seed to be passed to the OS as described
4751 above.
4752
4753 - "bootctl is-installed" checks whether systemd-boot is currently
4754 installed.
a18a3aac 4755
4860f5c2
ZJS
4756 * bootctl will warn if it detects that boot entries are misconfigured
4757 (for example if the kernel image was removed without purging the
4758 bootloader entry).
a18a3aac
LP
4759
4760 * A new document has been added describing systemd's use and support
4761 for the kernel's entropy pool subsystem:
4762
4763 https://systemd.io/RANDOM_SEEDS
4764
48fd50f7
LP
4765 * When the system is hibernated the swap device to write the
4766 hibernation image to is now automatically picked from all available
4767 swap devices, preferring the swap device with the highest configured
4768 priority over all others, and picking the device with the most free
4769 space if there are multiple devices with the highest priority.
4770
4771 * /etc/crypttab support has learnt a new keyfile-timeout= per-device
86b52a39 4772 option that permits selecting the timeout how long to wait for a
48fd50f7
LP
4773 device with an encryption key before asking for the password.
4774
2dbc45ae
KK
4775 * IOWeight= has learnt to properly set the IO weight when using the
4776 BFQ scheduler officially found in kernels 5.0+.
4777
6d8cf864
ZJS
4778 * A new mailing list has been created for reporting of security issues:
4779 systemd-security@redhat.com. For mode details, see
4780 https://systemd.io/CONTRIBUTING#security-vulnerability-reports.
4781
f21e2ecb
ZJS
4782 Contributions from: Aaron Barany, Adrian Bunk, Alan Jenkins, Albrecht
4783 Lohofener, Andrej Valek, Anita Zhang, Arian van Putten, Balint Reczey,
4784 Bastien Nocera, Ben Boeckel, Benjamin Robin, camoz, Chen Qi, Chris
03985d06
ZJS
4785 Chiu, Chris Down, Christian Göttsche, Christian Kellner, Clinton Roy,
4786 Connor Reeder, Daniel Black, Daniel Lublin, Daniele Medri, Dan
4787 Streetman, Dave Reisner, Dave Ross, David Art, David Tardon, Debarshi
4788 Ray, Dimitri John Ledkov, Dominick Grift, Donald Buczek, Douglas
4789 Christman, Eric DeVolder, EtherGraf, Evgeny Vereshchagin, Feldwor,
4790 Felix Riemann, Florian Dollinger, Francesco Pennica, Franck Bui,
4791 Frantisek Sumsal, Franz Pletz, frederik, Hans de Goede, Iago López
4792 Galeiras, Insun Pyo, Ivan Shapovalov, Iwan Timmer, Jack, Jakob
4793 Unterwurzacher, Jan Chren, Jan Klötzke, Jan Losinski, Jan Pokorný, Jan
4794 Synacek, Jan-Michael Brummer, Jeka Pats, Jeremy Soller, Jérémy Rosen,
4795 Jiri Pirko, Joe Lin, Joerg Behrmann, Joe Richey, Jóhann B. Guðmundsson,
4796 Johannes Christ, Johannes Schmitz, Jonathan Rouleau, Jorge Niedbalski,
4797 Jörg Thalheim, Kai Krakow, Kai Lüke, Karel Zak, Kashyap Chamarthy,
f21e2ecb
ZJS
4798 Krayushkin Konstantin, Lennart Poettering, Lubomir Rintel, Luca
4799 Boccassi, Luís Ferreira, Marc-André Lureau, Markus Felten, Martin Pitt,
4800 Matthew Leeds, Mattias Jernberg, Michael Biebl, Michael Olbrich,
4801 Michael Prokop, Michael Stapelberg, Michael Zhivich, Michal Koutný,
4802 Michal Sekletar, Mike Gilbert, Milan Broz, Miroslav Lichvar, mpe85,
4803 Mr-Foo, Network Silence, Oliver Harley, pan93412, Paul Menzel, pEJipE,
03985d06
ZJS
4804 Peter A. Bigot, Philip Withnall, Piotr Drąg, Rafael Fontenelle, Robert
4805 Scheck, Roberto Santalla, Ronan Pigott, root, RussianNeuroMancer,
4806 Sebastian Jennen, shinygold, Shreyas Behera, Simon Schricker, Susant
4807 Sahani, Thadeu Lima de Souza Cascardo, Theo Ouzhinski, Thiebaud
4808 Weksteen, Thomas Haller, Thomas Weißschuh, Tomas Mraz, Tommi Rantala,
4809 Topi Miettinen, VD-Lycos, ven, Vladimir Yerilov, Wieland Hoffmann,
4810 William A. Kennington III, William Wold, Xi Ruoyao, Yuri Chornoivan,
4811 Yu Watanabe, Zach Smith, Zbigniew Jędrzejewski-Szmek, Zhang Xianwei
29db4c3a 4812
efb536d0 4813 – Camerino, 2019-09-03
6af90583 4814
d822bd4e 4815CHANGES WITH 242:
9b89e602
ZJS
4816
4817 * In .link files, MACAddressPolicy=persistent (the default) is changed
4818 to cover more devices. For devices like bridges, tun, tap, bond, and
4819 similar interfaces that do not have other identifying information,
4820 the interface name is used as the basis for persistent seed for MAC
4821 and IPv4LL addresses. The way that devices that were handled
fd9baae8
ZJS
4822 previously is not changed, and this change is about covering more
4823 devices then previously by the "persistent" policy.
9b89e602
ZJS
4824
4825 MACAddressPolicy=random may be used to force randomized MACs and
4826 IPv4LL addresses for a device if desired.
4827
4828 Hint: the log output from udev (at debug level) was enhanced to
4829 clarify what policy is followed and which attributes are used.
4830 `SYSTEMD_LOG_LEVEL=debug udevadm test-builtin net_setup_link /sys/class/net/<name>`
4831 may be used to view this.
4832
c111cd98
YW
4833 Hint: if a bridge interface is created without any slaves, and gains
4834 a slave later, then now the bridge does not inherit slave's MAC.
4835 To inherit slave's MAC, for example, create the following file:
4836 ```
4837 # /etc/systemd/network/98-bridge-inherit-mac.link
4838 [Match]
4839 Type=bridge
4840
4841 [Link]
4842 MACAddressPolicy=none
4843 ```
4844
9b89e602
ZJS
4845 * The .device units generated by systemd-fstab-generator and other
4846 generators do not automatically pull in the corresponding .mount unit
4847 as a Wants= dependency. This means that simply plugging in the device
4848 will not cause the mount unit to be started automatically. But please
5787c509
LP
4849 note that the mount unit may be started for other reasons, in
4850 particular if it is part of local-fs.target, and any unit which
4851 (transitively) depends on local-fs.target is started.
9b89e602 4852
5787c509
LP
4853 * networkctl list/status/lldp now accept globbing wildcards for network
4854 interface names to match against all existing interfaces.
4855
4856 * The $PIDFILE environment variable is set to point the absolute path
4857 configured with PIDFile= for processes of that service.
9b89e602
ZJS
4858
4859 * The fallback DNS server list was augmented with Cloudflare public DNS
4860 servers. Use `-Ddns-servers=` to set a different fallback.
4861
4862 * A new special target usb-gadget.target will be started automatically
4863 when a USB Device Controller is detected (which means that the system
4864 is a USB peripheral).
4865
5787c509
LP
4866 * A new unit setting CPUQuotaPeriodSec= assigns the time period
4867 relatively to which the CPU time quota specified by CPUQuota= is
4868 measured.
9b89e602 4869
5787c509 4870 * A new unit setting ProtectHostname= may be used to prevent services
9b89e602
ZJS
4871 from modifying hostname information (even if they otherwise would
4872 have privileges to do so).
4873
5787c509 4874 * A new unit setting NetworkNamespacePath= may be used to specify a
9b89e602
ZJS
4875 namespace for service or socket units through a path referring to a
4876 Linux network namespace pseudo-file.
4877
5787c509
LP
4878 * The PrivateNetwork= setting and JoinsNamespaceOf= dependencies now
4879 have an effect on .socket units: when used the listening socket is
4880 created within the configured network namespace instead of the host
4881 namespace.
4882
4883 * ExecStart= command lines in unit files may now be prefixed with ':'
4884 in which case environment variable substitution is
4885 disabled. (Supported for the other ExecXYZ= settings, too.)
4886
2eb466fc
LP
4887 * .timer units gained two new boolean settings OnClockChange= and
4888 OnTimezoneChange= which may be used to also trigger a unit when the
4889 system clock is changed or the local timezone is
4890 modified. systemd-run has been updated to make these options easily
4891 accessible from the command line for transient timers.
4892
4893 * Two new conditions for units have been added: ConditionMemory= may be
4894 used to conditionalize a unit based on installed system
4895 RAM. ConditionCPUs= may be used to conditionalize a unit based on
39e445c9 4896 installed CPU cores.
2eb466fc
LP
4897
4898 * The @default system call filter group understood by SystemCallFilter=
4899 has been updated to include the new rseq() system call introduced in
4900 kernel 4.15.
4901
ab80eca1
ZJS
4902 * A new time-set.target has been added that indicates that the system
4903 time has been set from a local source (possibly imprecise). The
4904 existing time-sync.target is stronger and indicates that the time has
4905 been synchronized with a precise external source. Services where
4906 approximate time is sufficient should use the new target.
4907
2eb466fc
LP
4908 * "systemctl start" (and related commands) learnt a new
4909 --show-transaction option. If specified brief information about all
4910 jobs queued because of the requested operation is shown.
4911
5787c509
LP
4912 * systemd-networkd recognizes a new operation state 'enslaved', used
4913 (instead of 'degraded' or 'carrier') for interfaces which form a
4914 bridge, bond, or similar, and an new 'degraded-carrier' operational
4915 state used for the bond or bridge master interface when one of the
4916 enslaved devices is not operational.
9b89e602 4917
5787c509
LP
4918 * .network files learnt the new IgnoreCarrierLoss= option for leaving
4919 networks configured even if the carrier is lost.
4920
4921 * The RequiredForOnline= setting in .network files may now specify a
9b89e602 4922 minimum operational state required for the interface to be considered
5787c509
LP
4923 "online" by systemd-networkd-wait-online. Related to this
4924 systemd-networkd-wait-online gained a new option --operational-state=
4925 to configure the same, and its --interface= option was updated to
4926 optionally also take an operational state specific for an interface.
9b89e602 4927
2eb466fc
LP
4928 * systemd-networkd-wait-online gained a new setting --any for waiting
4929 for only one of the requested interfaces instead of all of them.
4930
9b89e602
ZJS
4931 * systemd-networkd now implements L2TP tunnels.
4932
5787c509
LP
4933 * Two new .network settings UseAutonomousPrefix= and UseOnLinkPrefix=
4934 may be used to cause autonomous and onlink prefixes received in IPv6
9b89e602
ZJS
4935 Router Advertisements to be ignored.
4936
5787c509
LP
4937 * New MulticastFlood=, NeighborSuppression=, and Learning= .network
4938 file settings may be used to tweak bridge behaviour.
4939
4940 * The new TripleSampling= option in .network files may be used to
4941 configure CAN triple sampling.
9b89e602 4942
78bb2866
YW
4943 * A new .netdev settings PrivateKeyFile= and PresharedKeyFile= may be
4944 used to point to private or preshared key for a WireGuard interface.
9b89e602 4945
5787c509
LP
4946 * /etc/crypttab now supports the same-cpu-crypt and
4947 submit-from-crypt-cpus options to tweak encryption work scheduling
4948 details.
9b89e602
ZJS
4949
4950 * systemd-tmpfiles will now take a BSD file lock before operating on a
4951 contents of directory. This may be used to temporarily exclude
4952 directories from aging by taking the same lock (useful for example
4953 when extracting a tarball into /tmp or /var/tmp as a privileged user,
4954 which might create files with really old timestamps, which
5787c509
LP
4955 nevertheless should not be deleted). For further details, see:
4956
4957 https://systemd.io/TEMPORARY_DIRECTORIES
9b89e602 4958
70d8401d
LP
4959 * systemd-tmpfiles' h line type gained support for the
4960 FS_PROJINHERIT_FL ('P') file attribute (introduced in kernel 4.5),
4961 controlling project quota inheritance.
4962
9b89e602
ZJS
4963 * sd-boot and bootctl now implement support for an Extended Boot Loader
4964 (XBOOTLDR) partition, that is intended to be mounted to /boot, in
4965 addition to the ESP partition mounted to /efi or /boot/efi.
4966 Configuration file fragments, kernels, initrds and other EFI images
4967 to boot will be loaded from both the ESP and XBOOTLDR partitions.
4968 The XBOOTLDR partition was previously described by the Boot Loader
5787c509
LP
4969 Specification, but implementation was missing in sd-boot. Support for
4970 this concept allows using the sd-boot boot loader in more
4971 conservative scenarios where the boot loader itself is placed in the
4972 ESP but the kernels to boot (and their metadata) in a separate
4973 partition.
9b89e602 4974
5787c509
LP
4975 * A system may now be booted with systemd.volatile=overlay on the
4976 kernel command line, which causes the root file system to be set up
4977 an overlayfs mount combining the root-only root directory with a
4978 writable tmpfs. In this setup, the underlying root device is not
4979 modified, and any changes are lost at reboot.
9b89e602 4980
5787c509
LP
4981 * Similar, systemd-nspawn can now boot containers with a volatile
4982 overlayfs root with the new --volatile=overlay switch.
9b89e602
ZJS
4983
4984 * systemd-nspawn can now consume OCI runtime bundles using a new
4985 --oci-bundle= option. This implementation is fully usable, with most
4986 features in the specification implemented, but since this a lot of
4987 new code and functionality, this feature should most likely not
4988 be used in production yet.
4989
5787c509
LP
4990 * systemd-nspawn now supports various options described by the OCI
4991 runtime specification on the command-line and in .nspawn files:
9b89e602 4992 --inaccessible=/Inaccessible= may be used to mask parts of the file
5787c509 4993 system tree, --console=/--pipe may be used to configure how standard
9b89e602
ZJS
4994 input, output, and error are set up.
4995
4996 * busctl learned the `emit` verb to generate D-Bus signals.
4997
4998 * systemd-analyze cat-config may be used to gather and display
4999 configuration spread over multiple files, for example system and user
5000 presets, tmpfiles.d, sysusers.d, udev rules, etc.
5001
5787c509
LP
5002 * systemd-analyze calendar now takes an optional new parameter
5003 --iterations= which may be used to show a maximum number of iterations
5004 the specified expression will elapse next.
5005
5006 * The sd-bus C API gained support for naming method parameters in the
5007 introspection data.
5008
5009 * systemd-logind gained D-Bus APIs to specify the "reboot parameter"
5010 the reboot() system call expects.
5011
5012 * journalctl learnt a new --cursor-file= option that points to a file
9b89e602
ZJS
5013 from which a cursor should be loaded in the beginning and to which
5014 the updated cursor should be stored at the end.
5015
5016 * ACRN hypervisor and Windows Subsystem for Linux (WSL) are now
5017 detected by systemd-detect-virt (and may also be used in
5018 ConditionVirtualization=).
5019
5020 * The behaviour of systemd-logind may now be modified with environment
5021 variables $SYSTEMD_REBOOT_TO_FIRMWARE_SETUP,
5022 $SYSTEMD_REBOOT_TO_BOOT_LOADER_MENU, and
5023 $SYSTEMD_REBOOT_TO_BOOT_LOADER_ENTRY. They cause logind to either
5024 skip the relevant operation completely (when set to false), or to
5025 create a flag file in /run/systemd (when set to true), instead of
5026 actually commencing the real operation when requested. The presence
5027 of /run/systemd/reboot-to-firmware-setup,
5028 /run/systemd/reboot-to-boot-loader-menu, and
5029 /run/systemd/reboot-to-boot-loader-entry, may be used by alternative
5030 boot loader implementations to replace some steps logind performs
5031 during reboot with their own operations.
5032
5033 * systemctl can be used to request a reboot into the boot loader menu
5787c509
LP
5034 or a specific boot loader entry with the new --boot-load-menu= and
5035 --boot-loader-entry= options to a reboot command. (This requires a
5036 boot loader that supports this, for example sd-boot.)
9b89e602
ZJS
5037
5038 * kernel-install will no longer unconditionally create the output
5039 directory (e.g. /efi/<machine-id>/<kernel-version>) for boot loader
5040 snippets, but will do only if the machine-specific parent directory
5041 (i.e. /efi/<machine-id>/) already exists. bootctl has been modified
5042 to create this parent directory during sd-boot installation.
5043
5044 This makes it easier to use kernel-install with plugins which support
5045 a different layout of the bootloader partitions (for example grub2).
5046
a3134241 5047 * During package installation (with `ninja install`), we would create
1fa3ba90
PM
5048 symlinks for getty@tty1.service, systemd-networkd.service,
5049 systemd-networkd.socket, systemd-resolved.service,
5050 remote-cryptsetup.target, remote-fs.target,
a3134241
ZJS
5051 systemd-networkd-wait-online.service, and systemd-timesyncd.service
5052 in /etc, as if `systemctl enable` was called for those units, to make
5053 the system usable immediately after installation. Now this is not
5054 done anymore, and instead calling `systemctl preset-all` is
5055 recommended after the first installation of systemd.
5056
bf65b7e0
LP
5057 * A new boolean sandboxing option RestrictSUIDSGID= has been added that
5058 is built on seccomp. When turned on creation of SUID/SGID files is
5059 prohibited.
5060
5061 * The NoNewPrivileges= and the new RestrictSUIDSGID= options are now
5062 implied if DynamicUser= is turned on for a service. This hardens
5063 these services, so that they neither can benefit from nor create
5064 SUID/SGID executables. This is a minor compatibility breakage, given
5065 that when DynamicUser= was first introduced SUID/SGID behaviour was
5066 unaffected. However, the security benefit of these two options is
5067 substantial, and the setting is still relatively new, hence we opted
5068 to make it mandatory for services with dynamic users.
5069
5b2fc74f
LP
5070 Contributions from: Adam Jackson, Alexander Tsoy, Andrey Yashkin,
5071 Andrzej Pietrasiewicz, Anita Zhang, Balint Reczey, Beniamino Galvani,
5072 Ben Iofel, Benjamin Berg, Benjamin Dahlhoff, Chris, Chris Morin,
5073 Christopher Wong, Claudius Ellsel, Clemens Gruber, dana, Daniel Black,
5074 Davide Cavalca, David Michael, David Rheinsberg, emersion, Evgeny
5075 Vereshchagin, Filipe Brandenburger, Franck Bui, Frantisek Sumsal,
5076 Giacinto Cifelli, Hans de Goede, Hugo Kindel, Ignat Korchagin, Insun
c3287a42
LP
5077 Pyo, Jan Engelhardt, Jonas Dorel, Jonathan Lebon, Jonathon Kowalski,
5078 Jörg Sommer, Jörg Thalheim, Jussi Pakkanen, Kai-Heng Feng, Lennart
5079 Poettering, Lubomir Rintel, Luís Ferreira, Martin Pitt, Matthias
5080 Klumpp, Michael Biebl, Michael Niewöhner, Michael Olbrich, Michal
ab80eca1
ZJS
5081 Sekletar, Mike Lothian, Paul Menzel, Piotr Drąg, Riccardo Schirone,
5082 Robin Elvedi, Roman Kulikov, Ronald Tschalär, Ross Burton, Ryan
1e5d2d65
ZJS
5083 Gonzalez, Sebastian Krzyszkowiak, Stephane Chazelas, StKob, Susant
5084 Sahani, Sylvain Plantefève, Szabolcs Fruhwald, Taro Yamada, Theo
5085 Ouzhinski, Thomas Haller, Tobias Jungel, Tom Yan, Tony Asleson, Topi
5086 Miettinen, unixsysadmin, Van Laser, Vesa Jääskeläinen, Yu, Li-Yu,
5087 Yu Watanabe, Zbigniew Jędrzejewski-Szmek
c3287a42 5088
1e5d2d65 5089 — Warsaw, 2019-04-11
bf65b7e0 5090
d0f71749 5091CHANGES WITH 241:
b4ff3dbb
ZJS
5092
5093 * The default locale can now be configured at compile time. Otherwise,
5094 a suitable default will be selected automatically (one of C.UTF-8,
5095 en_US.UTF-8, and C).
5096
5097 * The version string shown by systemd and other tools now includes the
5098 git commit hash when built from git. An override may be specified
5099 during compilation, which is intended to be used by distributions to
5100 include the package release information.
5101
5102 * systemd-cat can now filter standard input and standard error streams
5103 for different syslog priorities using the new --stderr-priority=
5104 option.
5105
5106 * systemd-journald and systemd-journal-remote reject entries which
5107 contain too many fields (CVE-2018-16865) and set limits on the
5108 process' command line length (CVE-2018-16864).
5109
5110 * $DBUS_SESSION_BUS_ADDRESS environment variable is set by pam_systemd
5111 again.
5112
08e1fe42
ZJS
5113 * A new network device NamePolicy "keep" is implemented for link files,
5114 and used by default in 99-default.link (the fallback configuration
5115 provided by systemd). With this policy, if the network device name
5116 was already set by userspace, the device will not be renamed again.
5117 This matches the naming scheme that was implemented before
5118 systemd-240. If naming-scheme < 240 is specified, the "keep" policy
5119 is also enabled by default, even if not specified. Effectively, this
5120 means that if naming-scheme >= 240 is specified, network devices will
5121 be renamed according to the configuration, even if they have been
5122 renamed already, if "keep" is not specified as the naming policy in
5123 the .link file. The 99-default.link file provided by systemd includes
5124 "keep" for backwards compatibility, but it is recommended for user
5125 installed .link files to *not* include it.
5126
5127 The "kernel" policy, which keeps kernel names declared to be
5128 "persistent", now works again as documented.
5129
ba7a6b8c
LP
5130 * kernel-install script now optionally takes the paths to one or more
5131 initrd files, and passes them to all plugins.
bd36ef0a 5132
57c03b1e
LP
5133 * The mincore() system call has been dropped from the @system-service
5134 system call filter group, as it is pretty exotic and may potentially
5135 used for side-channel attacks.
5136
774d6375
ZJS
5137 * -fPIE is dropped from compiler and linker options. Please specify
5138 -Db_pie=true option to meson to build position-independent
bd36ef0a
YW
5139 executables. Note that the meson option is supported since meson-0.49.
5140
27325875
LW
5141 * The fs.protected_regular and fs.protected_fifos sysctls, which were
5142 added in Linux 4.19 to make some data spoofing attacks harder, are
5143 now enabled by default. While this will hopefully improve the
5144 security of most installations, it is technically a backwards
5145 incompatible change; to disable these sysctls again, place the
5146 following lines in /etc/sysctl.d/60-protected.conf or a similar file:
5147
5148 fs.protected_regular = 0
5149 fs.protected_fifos = 0
5150
5151 Note that the similar hardlink and symlink protection has been
5152 enabled since v199, and may be disabled likewise.
5153
a77f438b
LT
5154 * The files read from the EnvironmentFile= setting in unit files now
5155 parse backslashes inside quotes literally, matching the behaviour of
5156 POSIX shells.
5157
ba7a6b8c
LP
5158 * udevadm trigger, udevadm control, udevadm settle and udevadm monitor
5159 now automatically become NOPs when run in a chroot() environment.
5160
5161 * The tmpfiles.d/ "C" line type will now copy directory trees not only
5162 when the destination is so far missing, but also if it already exists
5163 as a directory and is empty. This is useful to cater for systems
5164 where directory trees are put together from multiple separate mount
5165 points but otherwise empty.
5166
5167 * A new function sd_bus_close_unref() (and the associated
5168 sd_bus_close_unrefp()) has been added to libsystemd, that combines
5169 sd_bus_close() and sd_bus_unref() in one.
5170
5171 * udevadm control learnt a new option for --ping for testing whether a
5172 systemd-udevd instance is running and reacting.
5173
ecebd1ec
YW
5174 * udevadm trigger learnt a new option for --wait-daemon for waiting
5175 systemd-udevd daemon to be initialized.
5176
d0f71749
LP
5177 Contributions from: Aaron Plattner, Alberts Muktupāvels, Alex Mayer,
5178 Ayman Bagabas, Beniamino Galvani, Burt P, Chris Down, Chris Lamb, Chris
5179 Morin, Christian Hesse, Claudius Ellsel, dana, Daniel Axtens, Daniele
5180 Medri, Dave Reisner, David Santamaría Rogado, Diego Canuhe, Dimitri
5181 John Ledkov, Evgeny Vereshchagin, Fabrice Fontaine, Filipe
5182 Brandenburger, Franck Bui, Frantisek Sumsal, govwin, Hans de Goede,
5183 James Hilliard, Jan Engelhardt, Jani Uusitalo, Jan Janssen, Jan
5184 Synacek, Jonathan McDowell, Jonathan Roemer, Jonathon Kowalski, Joost
5185 Heitbrink, Jörg Thalheim, Lance, Lennart Poettering, Louis Taylor,
5186 Lucas Werkmeister, Mantas Mikulėnas, Marc-Antoine Perennou,
5187 marvelousblack, Michael Biebl, Michael Sloan, Michal Sekletar, Mike
5188 Auty, Mike Gilbert, Mikhail Kasimov, Neil Brown, Niklas Hambüchen,
5189 Patrick Williams, Paul Seyfert, Peter Hutterer, Philip Withnall, Roger
5190 James, Ronnie P. Thomas, Ryan Gonzalez, Sam Morris, Stephan Edel,
5191 Stephan Gerhold, Susant Sahani, Taro Yamada, Thomas Haller, Topi
5192 Miettinen, YiFei Zhu, YmrDtnJu, YunQiang Su, Yu Watanabe, Zbigniew
5193 Jędrzejewski-Szmek, zsergeant77, Дамјан Георгиевски
5194
36d28ebc 5195 — Berlin, 2019-02-14
ba7a6b8c 5196
32673162 5197CHANGES WITH 240:
fcb97512 5198
e68a35a7
ZJS
5199 * NoNewPrivileges=yes has been set for all long-running services
5200 implemented by systemd. Previously, this was problematic due to
5201 SELinux (as this would also prohibit the transition from PID1's label
5202 to the service's label). This restriction has since been lifted, but
5203 an SELinux policy update is required.
5204 (See e.g. https://github.com/fedora-selinux/selinux-policy/pull/234.)
5205
aa2437e2
YW
5206 * DynamicUser=yes is dropped from systemd-networkd.service,
5207 systemd-resolved.service and systemd-timesyncd.service, which was
5208 enabled in v239 for systemd-networkd.service and systemd-resolved.service,
5209 and since v236 for systemd-timesyncd.service. The users and groups
5210 systemd-network, systemd-resolve and systemd-timesync are created
5211 by systemd-sysusers again. Distributors or system administrators
5212 may need to create these users and groups if they not exist (or need
5213 to re-enable DynamicUser= for those units) while upgrading systemd.
787a133f
YW
5214 Also, the clock file for systemd-timesyncd may need to move from
5215 /var/lib/private/systemd/timesync/clock to /var/lib/systemd/timesync/clock.
aa2437e2 5216
b1a082cd
ZJS
5217 * When unit files are loaded from disk, previously systemd would
5218 sometimes (depending on the unit loading order) load units from the
5219 target path of symlinks in .wants/ or .requires/ directories of other
5220 units. This meant that unit could be loaded from different paths
5221 depending on whether the unit was requested explicitly or as a
5222 dependency of another unit, not honouring the priority of directories
5223 in search path. It also meant that it was possible to successfully
5224 load and start units which are not found in the unit search path, as
5225 long as they were requested as a dependency and linked to from
5226 .wants/ or .requires/. The target paths of those symlinks are not
5227 used for loading units anymore and the unit file must be found in
5228 the search path.
5229
fcb97512 5230 * A new service type has been added: Type=exec. It's very similar to
421e3b45 5231 Type=simple but ensures the service manager will wait for both fork()
fcb97512
LP
5232 and execve() of the main service binary to complete before proceeding
5233 with follow-up units. This is primarily useful so that the manager
5234 propagates any errors in the preparation phase of service execution
5235 back to the job that requested the unit to be started. For example,
5236 consider a service that has ExecStart= set to a file system binary
421e3b45
ZJS
5237 that doesn't exist. With Type=simple starting the unit would be
5238 considered instantly successful, as only fork() has to complete
5239 successfully and the manager does not wait for execve(), and hence
5240 its failure is seen "too late". With the new Type=exec service type
5241 starting the unit will fail, as the manager will wait for the
5242 execve() and notice its failure, which is then propagated back to the
5243 start job.
fcb97512
LP
5244
5245 NOTE: with the next release 241 of systemd we intend to change the
5246 systemd-run tool to default to Type=exec for transient services
5247 started by it. This should be mostly safe, but in specific corner
5248 cases might result in problems, as the systemd-run tool will then
6b1ab752 5249 block on NSS calls (such as user name look-ups due to User=) done
fcb97512
LP
5250 between the fork() and execve(), which under specific circumstances
5251 might cause problems. It is recommended to specify "-p Type=simple"
5252 explicitly in the few cases where this applies. For regular,
5253 non-transient services (i.e. those defined with unit files on disk)
5254 we will continue to default to Type=simple.
5255
0972c1ae
LP
5256 * The Linux kernel's current default RLIMIT_NOFILE resource limit for
5257 userspace processes is set to 1024 (soft) and 4096
5258 (hard). Previously, systemd passed this on unmodified to all
5259 processes it forked off. With this systemd release the hard limit
0abf9492 5260 systemd passes on is increased to 512K, overriding the kernel's
0972c1ae
LP
5261 defaults and substantially increasing the number of simultaneous file
5262 descriptors unprivileged userspace processes can allocate. Note that
5263 the soft limit remains at 1024 for compatibility reasons: the
5264 traditional UNIX select() call cannot deal with file descriptors >=
5265 1024 and increasing the soft limit globally might thus result in
5266 programs unexpectedly allocating a high file descriptor and thus
5267 failing abnormally when attempting to use it with select() (of
5268 course, programs shouldn't use select() anymore, and prefer
5269 poll()/epoll, but the call unfortunately remains undeservedly popular
5270 at this time). This change reflects the fact that file descriptor
5271 handling in the Linux kernel has been optimized in more recent
5272 kernels and allocating large numbers of them should be much cheaper
5273 both in memory and in performance than it used to be. Programs that
5274 want to take benefit of the increased limit have to "opt-in" into
421e3b45
ZJS
5275 high file descriptors explicitly by raising their soft limit. Of
5276 course, when they do that they must acknowledge that they cannot use
5277 select() anymore (and neither can any shared library they use — or
5278 any shared library used by any shared library they use and so on).
5279 Which default hard limit is most appropriate is of course hard to
5280 decide. However, given reports that ~300K file descriptors are used
5281 in real-life applications we believe 512K is sufficiently high as new
5282 default for now. Note that there are also reports that using very
5283 high hard limits (e.g. 1G) is problematic: some software allocates
5284 large arrays with one element for each potential file descriptor
5285 (Java, …) — a high hard limit thus triggers excessively large memory
5286 allocations in these applications. Hopefully, the new default of 512K
5287 is a good middle ground: higher than what real-life applications
5288 currently need, and low enough for avoid triggering excessively large
5289 allocations in problematic software. (And yes, somebody should fix
5290 Java.)
0972c1ae 5291
a8b627aa
LP
5292 * The fs.nr_open and fs.file-max sysctls are now automatically bumped
5293 to the highest possible values, as separate accounting of file
5294 descriptors is no longer necessary, as memcg tracks them correctly as
5295 part of the memory accounting anyway. Thus, from the four limits on
5296 file descriptors currently enforced (fs.file-max, fs.nr_open,
5297 RLIMIT_NOFILE hard, RLIMIT_NOFILE soft) we turn off the first two,
5298 and keep only the latter two. A set of build-time options
a579d42a 5299 (-Dbump-proc-sys-fs-file-max=false and -Dbump-proc-sys-fs-nr-open=false)
a8b627aa
LP
5300 has been added to revert this change in behaviour, which might be
5301 an option for systems that turn off memcg in the kernel.
5302
4f7dc24f
LP
5303 * When no /etc/locale.conf file exists (and hence no locale settings
5304 are in place), systemd will now use the "C.UTF-8" locale by default,
5305 and set LANG= to it. This locale is supported by various
5306 distributions including Fedora, with clear indications that upstream
5307 glibc is going to make it available too. This locale enables UTF-8
5308 mode by default, which appears appropriate for 2018.
5309
230450d4
LR
5310 * The "net.ipv4.conf.all.rp_filter" sysctl will now be set to 2 by
5311 default. This effectively switches the RFC3704 Reverse Path filtering
5312 from Strict mode to Loose mode. This is more appropriate for hosts
5313 that have multiple links with routes to the same networks (e.g.
5314 a client with a Wi-Fi and Ethernet both connected to the internet).
5315
6b1ab752 5316 Consult the kernel documentation for details on this sysctl:
230450d4 5317 https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt
195d181c 5318
e447ffe4
SI
5319 * The v239 change to turn on "net.ipv4.tcp_ecn" by default has been
5320 reverted.
230450d4 5321
23305a29
CD
5322 * CPUAccounting=yes no longer enables the CPU controller when using
5323 kernel 4.15+ and the unified cgroup hierarchy, as required accounting
5324 statistics are now provided independently from the CPU controller.
5325
6b1ab752 5326 * Support for disabling a particular cgroup controller within a sub-tree
a8467688
CD
5327 has been added through the DisableControllers= directive.
5328
8f044cf9
CD
5329 * cgroup_no_v1=all on the kernel command line now also implies
5330 using the unified cgroup hierarchy, unless one explicitly passes
5331 systemd.unified_cgroup_hierarchy=0 on the kernel command line.
5332
6b1ab752
LP
5333 * The new "MemoryMin=" unit file property may now be used to set the
5334 memory usage protection limit of processes invoked by the unit. This
4e1dfa45 5335 controls the cgroup v2 memory.min attribute. Similarly, the new
6b1ab752 5336 "IODeviceLatencyTargetSec=" property has been added, wrapping the new
4e1dfa45 5337 cgroup v2 io.latency cgroup property for configuring per-service I/O
6b1ab752
LP
5338 latency.
5339
4e1dfa45
CD
5340 * systemd now supports the cgroup v2 devices BPF logic, as counterpart
5341 to the cgroup v1 "devices" cgroup controller.
6b1ab752
LP
5342
5343 * systemd-escape now is able to combine --unescape with --template. It
5344 also learnt a new option --instance for extracting and unescaping the
5345 instance part of a unit name.
5346
5347 * sd-bus now provides the sd_bus_message_readv() which is similar to
5348 sd_bus_message_read() but takes a va_list object. The pair
5349 sd_bus_set_method_call_timeout() and sd_bus_get_method_call_timeout()
421e3b45 5350 has been added for configuring the default method call timeout to
6b1ab752
LP
5351 use. sd_bus_error_move() may be used to efficiently move the contents
5352 from one sd_bus_error structure to another, invalidating the
5353 source. sd_bus_set_close_on_exit() and sd_bus_get_close_on_exit() may
5354 be used to control whether a bus connection object is automatically
5355 flushed when an sd-event loop is exited.
5356
5357 * When processing classic BSD syslog log messages, journald will now
5358 save the original time-stamp string supplied in the new
5359 SYSLOG_TIMESTAMP= journal field. This permits consumers to
5360 reconstruct the original BSD syslog message more correctly.
5361
5362 * StandardOutput=/StandardError= in service files gained support for
5363 new "append:…" parameters, for connecting STDOUT/STDERR of a service
5364 to a file, and appending to it.
5365
5366 * The signal to use as last step of killing of unit processes is now
5367 configurable. Previously it was hard-coded to SIGKILL, which may now
5368 be overridden with the new KillSignal= setting. Note that this is the
46b028f2 5369 signal used when regular termination (i.e. SIGTERM) does not suffice.
421e3b45
ZJS
5370 Similarly, the signal used when aborting a program in case of a
5371 watchdog timeout may now be configured too (WatchdogSignal=).
6b1ab752
LP
5372
5373 * The XDG_SESSION_DESKTOP environment variable may now be configured in
5374 the pam_systemd argument line, using the new desktop= switch. This is
5375 useful to initialize it properly from a display manager without
5376 having to touch C code.
5377
421e3b45
ZJS
5378 * Most configuration options that previously accepted percentage values
5379 now also accept permille values with the '‰' suffix (instead of '%').
6b1ab752 5380
6b1ab752
LP
5381 * systemd-resolved may now optionally use OpenSSL instead of GnuTLS for
5382 DNS-over-TLS.
5383
5384 * systemd-resolved's configuration file resolved.conf gained a new
5385 option ReadEtcHosts= which may be used to turn off processing and
5386 honoring /etc/hosts entries.
5387
5388 * The "--wait" switch may now be passed to "systemctl
5389 is-system-running", in which case the tool will synchronously wait
5390 until the system finished start-up.
5391
5392 * hostnamed gained a new bus call to determine the DMI product UUID.
5393
5394 * On x86-64 systemd will now prefer using the RDRAND processor
5395 instruction over /dev/urandom whenever it requires randomness that
5396 neither has to be crypto-grade nor should be reproducible. This
5397 should substantially reduce the amount of entropy systemd requests
5398 from the kernel during initialization on such systems, though not
5399 reduce it to zero. (Why not zero? systemd still needs to allocate
5400 UUIDs and such uniquely, which require high-quality randomness.)
5401
5402 * networkd gained support for Foo-Over-UDP, ERSPAN and ISATAP
5403 tunnels. It also gained a new option ForceDHCPv6PDOtherInformation=
5404 for forcing the "Other Information" bit in IPv6 RA messages. The
d6131be9 5405 bonding logic gained four new options AdActorSystemPriority=,
6b1ab752 5406 AdUserPortKey=, AdActorSystem= for configuring various 802.3ad
d6131be9
YW
5407 aspects, and DynamicTransmitLoadBalancing= for enabling dynamic
5408 shuffling of flows. The tunnel logic gained a new
5409 IPv6RapidDeploymentPrefix= option for configuring IPv6 Rapid
5410 Deployment. The policy rule logic gained four new options IPProtocol=,
5411 SourcePort= and DestinationPort=, InvertRule=. The bridge logic gained
5412 support for the MulticastToUnicast= option. networkd also gained
5413 support for configuring static IPv4 ARP or IPv6 neighbor entries.
6b1ab752
LP
5414
5415 * .preset files (as read by 'systemctl preset') may now be used to
5416 instantiate services.
5417
5418 * /etc/crypttab now understands the sector-size= option to configure
5419 the sector size for an encrypted partition.
5420
5421 * Key material for encrypted disks may now be placed on a formatted
421e3b45
ZJS
5422 medium, and referenced from /etc/crypttab by the UUID of the file
5423 system, followed by "=" suffixed by the path to the key file.
6b1ab752
LP
5424
5425 * The "collect" udev component has been removed without replacement, as
421e3b45 5426 it is neither used nor maintained.
6b1ab752
LP
5427
5428 * When the RuntimeDirectory=, StateDirectory=, CacheDirectory=,
5429 LogsDirectory=, ConfigurationDirectory= settings are used in a
5430 service the executed processes will now receive a set of environment
421e3b45
ZJS
5431 variables containing the full paths of these directories.
5432 Specifically, RUNTIME_DIRECTORY=, STATE_DIRECTORY, CACHE_DIRECTORY,
5433 LOGS_DIRECTORY, CONFIGURATION_DIRECTORY are now set if these options
5434 are used. Note that these options may be used multiple times per
5435 service in which case the resulting paths will be concatenated and
5436 separated by colons.
6b1ab752
LP
5437
5438 * Predictable interface naming has been extended to cover InfiniBand
5439 NICs. They will be exposed with an "ib" prefix.
5440
5441 * tmpfiles.d/ line types may now be suffixed with a '-' character, in
5442 which case the respective line failing is ignored.
5443
5444 * .link files may now be used to configure the equivalent to the
5445 "ethtool advertise" commands.
5446
5447 * The sd-device.h and sd-hwdb.h APIs are now exported, as an
5448 alternative to libudev.h. Previously, the latter was just an internal
5449 wrapper around the former, but now these two APIs are exposed
5450 directly.
5451
5452 * sd-id128.h gained a new function sd_id128_get_boot_app_specific()
5453 which calculates an app-specific boot ID similar to how
5454 sd_id128_get_machine_app_specific() generates an app-specific machine
5455 ID.
5456
5457 * A new tool systemd-id128 has been added that can be used to determine
5458 and generate various 128bit IDs.
5459
5460 * /etc/os-release gained two new standardized fields DOCUMENTATION_URL=
5461 and LOGO=.
5462
5463 * systemd-hibernate-resume-generator will now honor the "noresume"
5464 kernel command line option, in which case it will bypass resuming
5465 from any hibernated image.
5466
5467 * The systemd-sleep.conf configuration file gained new options
5468 AllowSuspend=, AllowHibernation=, AllowSuspendThenHibernate=,
5469 AllowHybridSleep= for prohibiting specific sleep modes even if the
421e3b45 5470 kernel exports them.
6b1ab752
LP
5471
5472 * portablectl is now officially supported and has thus moved to
5473 /usr/bin/.
5474
5475 * bootctl learnt the two new commands "set-default" and "set-oneshot"
5476 for setting the default boot loader item to boot to (either
5477 persistently or only for the next boot). This is currently only
5478 compatible with sd-boot, but may be implemented on other boot loaders
5479 too, that follow the boot loader interface. The updated interface is
5480 now documented here:
5481
5482 https://systemd.io/BOOT_LOADER_INTERFACE
5483
5484 * A new kernel command line option systemd.early_core_pattern= is now
5485 understood which may be used to influence the core_pattern PID 1
5486 installs during early boot.
5487
5488 * busctl learnt two new options -j and --json= for outputting method
5489 call replies, properties and monitoring output in JSON.
5490
5491 * journalctl's JSON output now supports simple ANSI coloring as well as
5492 a new "json-seq" mode for generating RFC7464 output.
5493
5494 * Unit files now support the %g/%G specifiers that resolve to the UNIX
5495 group/GID of the service manager runs as, similar to the existing
5496 %u/%U specifiers that resolve to the UNIX user/UID.
5497
5498 * systemd-logind learnt a new global configuration option
5499 UserStopDelaySec= that may be set in logind.conf. It specifies how
5500 long the systemd --user instance shall remain started after a user
5501 logs out. This is useful to speed up repetitive re-connections of the
5502 same user, as it means the user's service manager doesn't have to be
5503 stopped/restarted on each iteration, but can be reused between
5504 subsequent options. This setting defaults to 10s. systemd-logind also
5505 exports two new properties on its Manager D-Bus objects indicating
421e3b45
ZJS
5506 whether the system's lid is currently closed, and whether the system
5507 is on AC power.
6b1ab752
LP
5508
5509 * systemd gained support for a generic boot counting logic, which
5510 generically permits automatic reverting to older boot loader entries
5511 if newer updated ones don't work. The boot loader side is implemented
5512 in sd-boot, but is kept open for other boot loaders too. For details
5513 see:
5514
5515 https://systemd.io/AUTOMATIC_BOOT_ASSESSMENT
5516
5517 * The SuccessAction=/FailureAction= unit file settings now learnt two
5518 new parameters: "exit" and "exit-force", which result in immediate
5519 exiting of the service manager, and are only useful in systemd --user
5520 and container environments.
5521
5522 * Unit files gained support for a pair of options
5523 FailureActionExitStatus=/SuccessActionExitStatus= for configuring the
5524 exit status to use as service manager exit status when
5525 SuccessAction=/FailureAction= is set to exit or exit-force.
5526
5527 * A pair of LogRateLimitIntervalSec=/LogRateLimitBurst= per-service
5528 options may now be used to configure the log rate limiting applied by
5529 journald per-service.
5530
5531 * systemd-analyze gained a new verb "timespan" for parsing and
5532 normalizing time span values (i.e. strings like "5min 7s 8us").
5533
5534 * systemd-analyze also gained a new verb "security" for analyzing the
5535 security and sand-boxing settings of services in order to determine an
5536 "exposure level" for them, indicating whether a service would benefit
5537 from more sand-boxing options turned on for them.
5538
5539 * "systemd-analyze syscall-filter" will now also show system calls
5540 supported by the local kernel but not included in any of the defined
5541 groups.
5542
5543 * .nspawn files now understand the Ephemeral= setting, matching the
5544 --ephemeral command line switch.
5545
5546 * sd-event gained the new APIs sd_event_source_get_floating() and
5547 sd_event_source_set_floating() for controlling whether a specific
5548 event source is "floating", i.e. destroyed along with the even loop
5549 object itself.
5550
5551 * Unit objects on D-Bus gained a new "Refs" property that lists all
421e3b45
ZJS
5552 clients that currently have a reference on the unit (to ensure it is
5553 not unloaded).
6b1ab752
LP
5554
5555 * The JoinControllers= option in system.conf is no longer supported, as
5556 it didn't work correctly, is hard to support properly, is legacy (as
4e1dfa45 5557 the concept only exists on cgroup v1) and apparently wasn't used.
6b1ab752
LP
5558
5559 * Journal messages that are generated whenever a unit enters the failed
421e3b45
ZJS
5560 state are now tagged with a unique MESSAGE_ID. Similarly, messages
5561 generated whenever a service process exits are now made recognizable,
5238e957 5562 too. A tagged message is also emitted whenever a unit enters the
421e3b45 5563 "dead" state on success.
6b1ab752
LP
5564
5565 * systemd-run gained a new switch --working-directory= for configuring
5566 the working directory of the service to start. A shortcut -d is
5567 equivalent, setting the working directory of the service to the
5568 current working directory of the invoking program. The new --shell
5569 (or just -S) option has been added for invoking the $SHELL of the
5570 caller as a service, and implies --pty --same-dir --wait --collect
421e3b45 5571 --service-type=exec. Or in other words, "systemd-run -S" is now the
6b1ab752
LP
5572 quickest way to quickly get an interactive in a fully clean and
5573 well-defined system service context.
5574
5575 * machinectl gained a new verb "import-fs" for importing an OS tree
5576 from a directory. Moreover, when a directory or tarball is imported
5577 and single top-level directory found with the OS itself below the OS
5578 tree is automatically mangled and moved one level up.
5579
421e3b45
ZJS
5580 * systemd-importd will no longer set up an implicit btrfs loop-back
5581 file system on /var/lib/machines. If one is already set up, it will
5582 continue to be used.
6b1ab752
LP
5583
5584 * A new generator "systemd-run-generator" has been added. It will
5585 synthesize a unit from one or more program command lines included in
5586 the kernel command line. This is very useful in container managers
5587 for example:
5588
5589 # systemd-nspawn -i someimage.raw -b systemd.run='"some command line"'
5590
5591 This will run "systemd-nspawn" on an image, invoke the specified
421e3b45
ZJS
5592 command line and immediately shut down the container again, returning
5593 the command line's exit code.
6b1ab752 5594
421e3b45 5595 * The block device locking logic is now documented:
6b1ab752
LP
5596
5597 https://systemd.io/BLOCK_DEVICE_LOCKING
5598
5599 * loginctl and machinectl now optionally output the various tables in
5600 JSON using the --output= switch. It is our intention to add similar
5601 support to systemctl and all other commands.
5602
5603 * udevadm's query and trigger verb now optionally take a .device unit
5604 name as argument.
5605
5606 * systemd-udevd's network naming logic now understands a new
421e3b45 5607 net.naming-scheme= kernel command line switch, which may be used to
6b1ab752
LP
5608 pick a specific version of the naming scheme. This helps stabilizing
5609 interface names even as systemd/udev are updated and the naming logic
5610 is improved.
5611
67081438
LP
5612 * sd-id128.h learnt two new auxiliary helpers: sd_id128_is_allf() and
5613 SD_ID128_ALLF to test if a 128bit ID is set to all 0xFF bytes, and to
5614 initialize one to all 0xFF.
5615
144d7f1d
LP
5616 * After loading the SELinux policy systemd will now recursively relabel
5617 all files and directories listed in
5618 /run/systemd/relabel-extra.d/*.relabel (which should be simple
5619 newline separated lists of paths) in addition to the ones it already
5620 implicitly relabels in /run, /dev and /sys. After the relabelling is
5621 completed the *.relabel files (and /run/systemd/relabel-extra.d/) are
5622 removed. This is useful to permit initrds (i.e. code running before
5623 the SELinux policy is in effect) to generate files in the host
5624 filesystem safely and ensure that the correct label is applied during
5625 the transition to the host OS.
5626
98a7b55a
LP
5627 * KERNEL API BREAKAGE: Linux kernel 4.18 changed behaviour regarding
5628 mknod() handling in user namespaces. Previously mknod() would always
5629 fail with EPERM in user namespaces. Since 4.18 mknod() will succeed
5630 but device nodes generated that way cannot be opened, and attempts to
5631 open them result in EPERM. This breaks the "graceful fallback" logic
5632 in systemd's PrivateDevices= sand-boxing option. This option is
5633 implemented defensively, so that when systemd detects it runs in a
5634 restricted environment (such as a user namespace, or an environment
5635 where mknod() is blocked through seccomp or absence of CAP_SYS_MKNOD)
5636 where device nodes cannot be created the effect of PrivateDevices= is
5637 bypassed (following the logic that 2nd-level sand-boxing is not
5638 essential if the system systemd runs in is itself already sand-boxed
5639 as a whole). This logic breaks with 4.18 in container managers where
5640 user namespacing is used: suddenly PrivateDevices= succeeds setting
5641 up a private /dev/ file system containing devices nodes — but when
5642 these are opened they don't work.
5643
d238709c 5644 At this point it is recommended that container managers utilizing
98a7b55a
LP
5645 user namespaces that intend to run systemd in the payload explicitly
5646 block mknod() with seccomp or similar, so that the graceful fallback
5647 logic works again.
5648
5649 We are very sorry for the breakage and the requirement to change
5650 container configurations for newer kernels. It's purely caused by an
5651 incompatible kernel change. The relevant kernel developers have been
5652 notified about this userspace breakage quickly, but they chose to
5653 ignore it.
5654
455027c9
ZJS
5655 * PermissionsStartOnly= setting is deprecated (but is still supported
5656 for backwards compatibility). The same functionality is provided by
5657 the more flexible "+", "!", and "!!" prefixes to ExecStart= and other
5658 commands.
5659
b4ff3dbb
ZJS
5660 * $DBUS_SESSION_BUS_ADDRESS environment variable is not set by
5661 pam_systemd anymore.
5662
08e1fe42
ZJS
5663 * The naming scheme for network devices was changed to always rename
5664 devices, even if they were already renamed by userspace. The "kernel"
5665 policy was changed to only apply as a fallback, if no other naming
5666 policy took effect.
5667
bd36ef0a
YW
5668 * The requirements to build systemd is bumped to meson-0.46 and
5669 python-3.5.
5670
6b1ab752
LP
5671 Contributions from: afg, Alan Jenkins, Aleksei Timofeyev, Alexander
5672 Filippov, Alexander Kurtz, Alexey Bogdanenko, Andreas Henriksson,
5673 Andrew Jorgensen, Anita Zhang, apnix-uk, Arkan49, Arseny Maslennikov,
5674 asavah, Asbjørn Apeland, aszlig, Bastien Nocera, Ben Boeckel, Benedikt
c37e2358
LP
5675 Morbach, Benjamin Berg, Bruce Zhang, Carlo Caione, Cedric Viou, Chen
5676 Qi, Chris Chiu, Chris Down, Chris Morin, Christian Rebischke, Claudius
5677 Ellsel, Colin Guthrie, dana, Daniel, Daniele Medri, Daniel Kahn
5678 Gillmor, Daniel Rusek, Daniel van Vugt, Dariusz Gadomski, Dave Reisner,
5679 David Anderson, Davide Cavalca, David Leeds, David Malcolm, David
1742aae2
ZJS
5680 Strauss, David Tardon, Dimitri John Ledkov, Dmitry Torokhov, dj-kaktus,
5681 Dongsu Park, Elias Probst, Emil Soleyman, Erik Kooistra, Ervin Peters,
5682 Evgeni Golov, Evgeny Vereshchagin, Fabrice Fontaine, Faheel Ahmad,
5683 Faizal Luthfi, Felix Yan, Filipe Brandenburger, Franck Bui, Frank
5684 Schaefer, Frantisek Sumsal, Gautier Husson, Gianluca Boiano, Giuseppe
5685 Scrivano, glitsj16, Hans de Goede, Harald Hoyer, Harry Mallon, Harshit
5686 Jain, Helmut Grohne, Henry Tung, Hui Yiqun, imayoda, Insun Pyo, Iwan
5687 Timmer, Jan Janssen, Jan Pokorný, Jan Synacek, Jason A. Donenfeld,
5688 javitoom, Jérémy Nouhaud, Jeremy Su, Jiuyang Liu, João Paulo Rechi
5689 Vita, Joe Hershberger, Joe Rayhawk, Joerg Behrmann, Joerg Steffens,
5690 Jonas Dorel, Jon Ringle, Josh Soref, Julian Andres Klode, Jun Bo Bi,
5691 Jürg Billeter, Keith Busch, Khem Raj, Kirill Marinushkin, Larry
5692 Bernstone, Lennart Poettering, Lion Yang, Li Song, Lorenz
5693 Hübschle-Schneider, Lubomir Rintel, Lucas Werkmeister, Ludwin Janvier,
5694 Lukáš Nykrýn, Luke Shumaker, mal, Marc-Antoine Perennou, Marcin
5695 Skarbek, Marco Trevisan (Treviño), Marian Cepok, Mario Hros, Marko
5696 Myllynen, Markus Grimm, Martin Pitt, Martin Sobotka, Martin Wilck,
5697 Mathieu Trudel-Lapierre, Matthew Leeds, Michael Biebl, Michael Olbrich,
5698 Michael 'pbone' Pobega, Michael Scherer, Michal Koutný, Michal
5699 Sekletar, Michal Soltys, Mike Gilbert, Mike Palmer, Muhammet Kara, Neal
5700 Gompa, Neil Brown, Network Silence, Niklas Tibbling, Nikolas Nyby,
5701 Nogisaka Sadata, Oliver Smith, Patrik Flykt, Pavel Hrdina, Paweł
5702 Szewczyk, Peter Hutterer, Piotr Drąg, Ray Strode, Reinhold Mueller,
5703 Renaud Métrich, Roman Gushchin, Ronny Chevalier, Rubén Suárez Alvarez,
5704 Ruixin Bao, RussianNeuroMancer, Ryutaroh Matsumoto, Saleem Rashid, Sam
5705 Morris, Samuel Morris, Sandy Carter, scootergrisen, Sébastien Bacher,
5706 Sergey Ptashnick, Shawn Landden, Shengyao Xue, Shih-Yuan Lee
5707 (FourDollars), Silvio Knizek, Sjoerd Simons, Stasiek Michalski, Stephen
5708 Gallagher, Steven Allen, Steve Ramage, Susant Sahani, Sven Joachim,
5709 Sylvain Plantefève, Tanu Kaskinen, Tejun Heo, Thiago Macieira, Thomas
5710 Blume, Thomas Haller, Thomas H. P. Andersen, Tim Ruffing, TJ, Tobias
5711 Jungel, Todd Walton, Tommi Rantala, Tomsod M, Tony Novak, Tore
5712 Anderson, Trevonn, Victor Laskurain, Victor Tapia, Violet Halo, Vojtech
5713 Trefny, welaq, William A. Kennington III, William Douglas, Wyatt Ward,
5714 Xiang Fan, Xi Ruoyao, Xuanwo, Yann E. Morin, YmrDtnJu, Yu Watanabe,
5715 Zbigniew Jędrzejewski-Szmek, Zhang Xianwei, Zsolt Dollenstein
5716
5717 — Warsaw, 2018-12-21
6b1ab752 5718
e8498f82 5719CHANGES WITH 239:
019cb3ab
SH
5720
5721 * NETWORK INTERFACE DEVICE NAMING CHANGES: systemd-udevd's "net_id"
d69f5282
ZJS
5722 builtin will name network interfaces differently than in previous
5723 versions for virtual network interfaces created with SR-IOV and NPAR
5724 and for devices where the PCI network controller device does not have
5725 a slot number associated.
5726
5727 SR-IOV virtual devices are now named based on the name of the parent
5728 interface, with a suffix of "v<N>", where <N> is the virtual device
5729 number. Previously those virtual devices were named as if completely
5730 independent.
5731
5732 The ninth and later NPAR virtual devices will be named following the
5733 scheme used for the first eight NPAR partitions. Previously those
5734 devices were not renamed and the kernel default (eth<n>) was used.
5735
5736 "net_id" will also generate names for PCI devices where the PCI
5737 network controller device does not have an associated slot number
5738 itself, but one of its parents does. Previously those devices were
5739 not renamed and the kernel default (eth<n>) was used.
019cb3ab 5740
6e2d744b
YW
5741 * AF_INET and AF_INET6 are dropped from RestrictAddressFamilies= in
5742 systemd-logind.service. Since v235, IPAddressDeny=any has been set to
fe903cf4
LP
5743 the unit. So, it is expected that the default behavior of
5744 systemd-logind is not changed. However, if distribution packagers or
5745 administrators disabled or modified IPAddressDeny= setting by a
5746 drop-in config file, then it may be necessary to update the file to
5747 re-enable AF_INET and AF_INET6 to support network user name services,
5748 e.g. NIS.
5749
5750 * When the RestrictNamespaces= unit property is specified multiple
5751 times, then the specified types are merged now. Previously, only the
5752 last assignment was used. So, if distribution packagers or
5753 administrators modified the setting by a drop-in config file, then it
5754 may be necessary to update the file.
e0eee477 5755
1fc83d09
LP
5756 * When OnFailure= is used in combination with Restart= on a service
5757 unit, then the specified units will no longer be triggered on
5758 failures that result in restarting. Previously, the specified units
5759 would be activated each time the unit failed, even when the unit was
5760 going to be restarted automatically. This behaviour contradicted the
5761 documentation. With this release the code is adjusted to match the
5762 documentation.
5763
41a4c3ec
LP
5764 * systemd-tmpfiles will now print a notice whenever it encounters
5765 tmpfiles.d/ lines referencing the /var/run/ directory. It will
5766 recommend reworking them to use the /run/ directory instead (for
5cadf58e
ZJS
5767 which /var/run/ is simply a symlinked compatibility alias). This way
5768 systemd-tmpfiles can properly detect line conflicts and merge lines
5769 referencing the same file by two paths, without having to access
5770 them.
41a4c3ec 5771
ce55bd5e
ZJS
5772 * systemctl disable/unmask/preset/preset-all cannot be used with
5773 --runtime. Previously this was allowed, but resulted in unintuitive
fe903cf4
LP
5774 behaviour that wasn't useful. systemctl disable/unmask will now undo
5775 both runtime and persistent enablement/masking, i.e. it will remove
5776 any relevant symlinks both in /run and /etc.
ce55bd5e 5777
e01d9e21 5778 * Note that all long-running system services shipped with systemd will
6b000af4 5779 now default to a system call allow list (rather than a deny list, as
e01d9e21
LP
5780 before). In particular, systemd-udevd will now enforce one too. For
5781 most cases this should be safe, however downstream distributions
5782 which disabled sandboxing of systemd-udevd (specifically the
5783 MountFlags= setting), might want to disable this security feature
6b000af4 5784 too, as the default allow-listing will prohibit all mount, swap,
e01d9e21
LP
5785 reboot and clock changing operations from udev rules.
5786
5cadf58e
ZJS
5787 * sd-boot acquired new loader configuration settings to optionally turn
5788 off Windows and MacOS boot partition discovery as well as
5789 reboot-into-firmware menu items. It is also able to pick a better
5790 screen resolution for HiDPI systems, and now provides loader
41a4c3ec
LP
5791 configuration settings to change the resolution explicitly.
5792
c9299be2
IT
5793 * systemd-resolved now supports DNS-over-TLS. It's still
5794 turned off by default, use DNSOverTLS=opportunistic to turn it on in
c086ce8c
LP
5795 resolved.conf. We intend to make this the default as soon as couple
5796 of additional techniques for optimizing the initial latency caused by
5797 establishing a TLS/TCP connection are implemented.
5798
73c718a9
YW
5799 * systemd-resolved.service and systemd-networkd.service now set
5800 DynamicUser=yes. The users systemd-resolve and systemd-network are
abc291aa
LP
5801 not created by systemd-sysusers anymore.
5802
5803 NOTE: This has a chance of breaking nss-ldap and similar NSS modules
5238e957 5804 that embed a network facing module into any process using getpwuid()
abc291aa
LP
5805 or related call: the dynamic allocation of the user ID for
5806 systemd-resolved.service means the service manager has to check NSS
5807 if the user name is already taken when forking off the service. Since
5808 the user in the common case won't be defined in /etc/passwd the
5809 lookup is likely to trigger nss-ldap which in turn might use NSS to
5810 ask systemd-resolved for hostname lookups. This will hence result in
5811 a deadlock: a user name lookup in order to start
38b38500 5812 systemd-resolved.service will result in a hostname lookup for which
abc291aa
LP
5813 systemd-resolved.service needs to be started already. There are
5814 multiple ways to work around this problem: pre-allocate the
5815 "systemd-resolve" user on such systems, so that nss-ldap won't be
5816 triggered; or use a different NSS package that doesn't do networking
5817 in-process but provides a local asynchronous name cache; or configure
5818 the NSS package to avoid lookups for UIDs in the range `pkg-config
5819 systemd --variable=dynamicuidmin` … `pkg-config systemd
5820 --variable=dynamicuidmax`, so that it does not consider itself
5821 authoritative for the same UID range systemd allocates dynamic users
5822 from.
73c718a9 5823
41a4c3ec
LP
5824 * The systemd-resolve tool has been renamed to resolvectl (it also
5825 remains available under the old name, for compatibility), and its
5826 interface is now verb-based, similar in style to the other <xyz>ctl
5cadf58e
ZJS
5827 tools, such as systemctl or loginctl.
5828
75da262a
LP
5829 * The resolvectl/systemd-resolve tool also provides 'resolvconf'
5830 compatibility. It may be symlinked under the 'resolvconf' name, in
5cadf58e
ZJS
5831 which case it will take arguments and input compatible with the
5832 Debian and FreeBSD resolvconf tool.
41a4c3ec
LP
5833
5834 * Support for suspend-then-hibernate has been added, i.e. a sleep mode
3f9a0a52 5835 where the system initially suspends, and after a timeout resumes and
41a4c3ec
LP
5836 hibernates again.
5837
5838 * networkd's ClientIdentifier= now accepts a new option "duid-only". If
5839 set the client will only send a DUID as client identifier.
5840
5841 * The nss-systemd glibc NSS module will now enumerate dynamic users and
5842 groups in effect. Previously, it could resolve UIDs/GIDs to user
5843 names/groups and vice versa, but did not support enumeration.
5844
5845 * journald's Compress= configuration setting now optionally accepts a
5846 byte threshold value. All journal objects larger than this threshold
5847 will be compressed, smaller ones will not. Previously this threshold
5848 was not configurable and set to 512.
5849
5cadf58e
ZJS
5850 * A new system.conf setting NoNewPrivileges= is now available which may
5851 be used to turn off acquisition of new privileges system-wide
5852 (i.e. set Linux' PR_SET_NO_NEW_PRIVS for PID 1 itself, and thus also
5853 for all its children). Note that turning this option on means setuid
5854 binaries and file system capabilities lose their special powers.
5855 While turning on this option is a big step towards a more secure
5856 system, doing so is likely to break numerous pre-existing UNIX tools,
5857 in particular su and sudo.
41a4c3ec
LP
5858
5859 * A new service systemd-time-sync-wait.service has been added. If
5860 enabled it will delay the time-sync.target unit at boot until time
bc99dac5 5861 synchronization has been received from the network. This
41a4c3ec
LP
5862 functionality is useful on systems lacking a local RTC or where it is
5863 acceptable that the boot process shall be delayed by external network
5864 services.
5865
5866 * When hibernating, systemd will now inform the kernel of the image
5867 write offset, on kernels new enough to support this. This means swap
5868 files should work for hibernation now.
5869
5cadf58e
ZJS
5870 * When loading unit files, systemd will now look for drop-in unit files
5871 extensions in additional places. Previously, for a unit file name
41a4c3ec
LP
5872 "foo-bar-baz.service" it would look for dropin files in
5873 "foo-bar-baz.service.d/*.conf". Now, it will also look in
5874 "foo-bar-.service.d/*.conf" and "foo-.service.d/", i.e. at the
5875 service name truncated after all inner dashes. This scheme allows
5876 writing drop-ins easily that apply to a whole set of unit files at
5877 once. It's particularly useful for mount and slice units (as their
5cadf58e
ZJS
5878 naming is prefix based), but is also useful for service and other
5879 units, for packages that install multiple unit files at once,
41a4c3ec 5880 following a strict naming regime of beginning the unit file name with
5cadf58e
ZJS
5881 the package's name. Two new specifiers are now supported in unit
5882 files to match this: %j and %J are replaced by the part of the unit
5883 name following the last dash.
5884
5885 * Unit files and other configuration files that support specifier
88099359 5886 expansion now understand another three new specifiers: %T and %V will
5cadf58e 5887 resolve to /tmp and /var/tmp respectively, or whatever temporary
88099359
ZJS
5888 directory has been set for the calling user. %E will expand to either
5889 /etc (for system units) or $XDG_CONFIG_HOME (for user units).
41a4c3ec
LP
5890
5891 * The ExecStart= lines of unit files are no longer required to
5892 reference absolute paths. If non-absolute paths are specified the
5893 specified binary name is searched within the service manager's
5cadf58e
ZJS
5894 built-in $PATH, which may be queried with 'systemd-path
5895 search-binaries-default'. It's generally recommended to continue to
5896 use absolute paths for all binaries specified in unit files.
41a4c3ec 5897
c7f93e28
ZJS
5898 * Units gained a new load state "bad-setting", which is used when a
5899 unit file was loaded, but contained fatal errors which prevent it
ba1dc1a1
LP
5900 from being started (for example, a service unit has been defined
5901 lacking both ExecStart= and ExecStop= lines).
c7f93e28 5902
41a4c3ec
LP
5903 * coredumpctl's "gdb" verb has been renamed to "debug", in order to
5904 support alternative debuggers, for example lldb. The old name
5905 continues to be available however, for compatibility reasons. Use the
5cadf58e
ZJS
5906 new --debugger= switch or the $SYSTEMD_DEBUGGER environment variable
5907 to pick an alternative debugger instead of the default gdb.
41a4c3ec
LP
5908
5909 * systemctl and the other tools will now output escape sequences that
5910 generate proper clickable hyperlinks in various terminal emulators
5911 where useful (for example, in the "systemctl status" output you can
5912 now click on the unit file name to quickly open it in the
5913 editor/viewer of your choice). Note that not all terminal emulators
5914 support this functionality yet, but many do. Unfortunately, the
5915 "less" pager doesn't support this yet, hence this functionality is
5916 currently automatically turned off when a pager is started (which
5917 happens quite often due to auto-paging). We hope to remove this
5cadf58e
ZJS
5918 limitation as soon as "less" learns these escape sequences. This new
5919 behaviour may also be turned off explicitly with the $SYSTEMD_URLIFY
5920 environment variable. For details on these escape sequences see:
41a4c3ec
LP
5921 https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
5922
5923 * networkd's .network files now support a new IPv6MTUBytes= option for
5924 setting the MTU used by IPv6 explicitly as well as a new MTUBytes=
5925 option in the [Route] section to configure the MTU to use for
5926 specific routes. It also gained support for configuration of the DHCP
5927 "UserClass" option through the new UserClass= setting. It gained
5928 three new options in the new [CAN] section for configuring CAN
5929 networks. The MULTICAST and ALLMULTI interface flags may now be
5930 controlled explicitly with the new Multicast= and AllMulticast=
5931 settings.
5932
5933 * networkd will now automatically make use of the kernel's route
5934 expiration feature, if it is available.
5935
5cadf58e
ZJS
5936 * udevd's .link files now support setting the number of receive and
5937 transmit channels, using the RxChannels=, TxChannels=,
5938 OtherChannels=, CombinedChannels= settings.
5939
5940 * Support for UDPSegmentationOffload= has been removed, given its
5941 limited support in hardware, and waning software support.
41a4c3ec
LP
5942
5943 * networkd's .netdev files now support creating "netdevsim" interfaces.
5944
5945 * PID 1 learnt a new bus call GetUnitByControlGroup() which may be used
5946 to query the unit belonging to a specific kernel control group.
5947
5cadf58e 5948 * systemd-analyze gained a new verb "cat-config", which may be used to
41a4c3ec
LP
5949 dump the contents of any configuration file, with all its matching
5950 drop-in files added in, and honouring the usual search and masking
5951 logic applied to systemd configuration files. For example use
5952 "systemd-analyze cat-config systemd/system.conf" to get the complete
5953 system configuration file of systemd how it would be loaded by PID 1
5cadf58e
ZJS
5954 itself. Similar to this, various tools such as systemd-tmpfiles or
5955 systemd-sysusers, gained a new option "--cat-config", which does the
41a4c3ec
LP
5956 corresponding operation for their own configuration settings. For
5957 example, "systemd-tmpfiles --cat-config" will now output the full
5958 list of tmpfiles.d/ lines in place.
5959
704ae536
YW
5960 * timedatectl gained three new verbs: "show" shows bus properties of
5961 systemd-timedated, "timesync-status" shows the current NTP
5962 synchronization state of systemd-timesyncd, and "show-timesync"
5963 shows bus properties of systemd-timesyncd.
41a4c3ec
LP
5964
5965 * systemd-timesyncd gained a bus interface on which it exposes details
5966 about its state.
5967
73c718a9
YW
5968 * A new environment variable $SYSTEMD_TIMEDATED_NTP_SERVICES is now
5969 understood by systemd-timedated. It takes a colon-separated list of
5970 unit names of NTP client services. The list is used by
5971 "timedatectl set-ntp".
5972
41a4c3ec
LP
5973 * systemd-nspawn gained a new --rlimit= switch for setting initial
5974 resource limits for the container payload. There's a new switch
5cadf58e 5975 --hostname= to explicitly override the container's hostname. A new
41a4c3ec
LP
5976 --no-new-privileges= switch may be used to control the
5977 PR_SET_NO_NEW_PRIVS flag for the container payload. A new
5978 --oom-score-adjust= switch controls the OOM scoring adjustment value
5979 for the payload. The new --cpu-affinity= switch controls the CPU
5980 affinity of the container payload. The new --resolv-conf= switch
5981 allows more detailed control of /etc/resolv.conf handling of the
5cadf58e 5982 container. Similarly, the new --timezone= switch allows more detailed
41a4c3ec
LP
5983 control of /etc/localtime handling of the container.
5984
5cadf58e 5985 * systemd-detect-virt gained a new --list switch, which will print a
41a4c3ec
LP
5986 list of all currently known VM and container environments.
5987
5cadf58e 5988 * Support for "Portable Services" has been added, see
41a4c3ec 5989 doc/PORTABLE_SERVICES.md for details. Currently, the support is still
5cadf58e
ZJS
5990 experimental, but this is expected to change soon. Reflecting this
5991 experimental state, the "portablectl" binary is not installed into
41a4c3ec
LP
5992 /usr/bin yet. The binary has to be called with the full path
5993 /usr/lib/systemd/portablectl instead.
5994
5995 * journalctl's and systemctl's -o switch now knows a new log output
5996 mode "with-unit". The output it generates is very similar to the
5997 regular "short" mode, but displays the unit name instead of the
5998 syslog tag for each log line. Also, the date is shown with timezone
5999 information. This mode is probably more useful than the classic
6000 "short" output mode for most purposes, except where pixel-perfect
6001 compatibility with classic /var/log/messages formatting is required.
6002
6003 * A new --dump-bus-properties switch has been added to the systemd
6004 binary, which may be used to dump all supported D-Bus properties.
c7f93e28
ZJS
6005 (Options which are still supported, but are deprecated, are *not*
6006 shown.)
41a4c3ec 6007
41a4c3ec
LP
6008 * sd-bus gained a set of new calls:
6009 sd_bus_slot_set_floating()/sd_bus_slot_get_floating() may be used to
6010 enable/disable the "floating" state of a bus slot object,
6011 i.e. whether the slot object pins the bus it is allocated for into
6012 memory or if the bus slot object gets disconnected when the bus goes
6013 away. sd_bus_open_with_description(),
6014 sd_bus_open_user_with_description(),
6015 sd_bus_open_system_with_description() may be used to allocate bus
6016 objects and set their description string already during allocation.
6017
6018 * sd-event gained support for watching inotify events from the event
6019 loop, in an efficient way, sharing inotify handles between multiple
6020 users. For this a new function sd_event_add_inotify() has been added.
6021
6022 * sd-event and sd-bus gained support for calling special user-supplied
6023 destructor functions for userdata pointers associated with
c7f93e28
ZJS
6024 sd_event_source, sd_bus_slot, and sd_bus_track objects. For this new
6025 functions sd_bus_slot_set_destroy_callback,
6026 sd_bus_slot_get_destroy_callback, sd_bus_track_set_destroy_callback,
6027 sd_bus_track_get_destroy_callback,
6028 sd_event_source_set_destroy_callback,
6029 sd_event_source_get_destroy_callback have been added.
41a4c3ec
LP
6030
6031 * The "net.ipv4.tcp_ecn" sysctl will now be turned on by default.
6032
6033 * PID 1 will now automatically reschedule .timer units whenever the
5cadf58e 6034 local timezone changes. (They previously got rescheduled
41a4c3ec
LP
6035 automatically when the system clock changed.)
6036
6037 * New documentation has been added to document cgroups delegation,
6038 portable services and the various code quality tools we have set up:
6039
a8a27374
SK
6040 https://github.com/systemd/systemd/blob/master/docs/CGROUP_DELEGATION.md
6041 https://github.com/systemd/systemd/blob/master/docs/PORTABLE_SERVICES.md
6042 https://github.com/systemd/systemd/blob/master/docs/CODE_QUALITY.md
41a4c3ec 6043
d6906108
LP
6044 * The Boot Loader Specification has been added to the source tree.
6045
a8a27374 6046 https://github.com/systemd/systemd/blob/master/docs/BOOT_LOADER_SPECIFICATION.md
d6906108
LP
6047
6048 While moving it into our source tree we have updated it and further
6049 changes are now accepted through the usual github PR workflow.
6050
41a4c3ec
LP
6051 * pam_systemd will now look for PAM userdata fields systemd.memory_max,
6052 systemd.tasks_max, systemd.cpu_weight, systemd.io_weight set by
6053 earlier PAM modules. The data in these fields is used to initialize
6054 the session scope's resource properties. Thus external PAM modules
6055 may now configure per-session limits, for example sourced from
6056 external user databases.
6057
6058 * socket units with Accept=yes will now maintain a "refused" counter in
6059 addition to the existing "accepted" counter, counting connections
6060 refused due to the enforced limits.
6061
6062 * The "systemd-path search-binaries-default" command may now be use to
6063 query the default, built-in $PATH PID 1 will pass to the services it
6064 manages.
6065
c49a7cbd
LP
6066 * A new unit file setting PrivateMounts= has been added. It's a boolean
6067 option. If enabled the unit's processes are invoked in their own file
6068 system namespace. Note that this behaviour is also implied if any
6069 other file system namespacing options (such as PrivateTmp=,
6070 PrivateDevices=, ProtectSystem=, …) are used. This option is hence
6071 primarily useful for services that do not use any of the other file
6072 system namespacing options. One such service is systemd-udevd.service
5238e957 6073 where this is now used by default.
c49a7cbd 6074
57ab451e
ZJS
6075 * ConditionSecurity= gained a new value "uefi-secureboot" that is true
6076 when the system is booted in UEFI "secure mode".
6077
c7668c1c
LP
6078 * A new unit "system-update-pre.target" is added, which defines an
6079 optional synchronization point for offline system updates, as
6080 implemented by the pre-existing "system-update.target" unit. It
6081 allows ordering services before the service that executes the actual
6082 update process in a generic way.
6083
f26ad321
ZJS
6084 * Systemd now emits warnings whenever .include syntax is used.
6085
41a4c3ec 6086 Contributions from: Adam Duskett, Alan Jenkins, Alessandro Casale,
ec53d48c 6087 Alexander Kurtz, Alex Gartrell, Anssi Hannula, Arnaud Rebillout, Brian
bb6f071f
LP
6088 J. Murrell, Bruno Vernay, Chris Lamb, Chris Lesiak, Christian Brauner,
6089 Christian Hesse, Christian Rebischke, Colin Guthrie, Daniel Dao, Daniel
6090 Lin, Danylo Korostil, Davide Cavalca, David Tardon, Dimitri John
6091 Ledkov, Dmitriy Geels, Douglas Christman, Elia Geretto, emelenas, Emil
6092 Velikov, Evgeny Vereshchagin, Felipe Sateler, Feng Sun, Filipe
6093 Brandenburger, Franck Bui, futpib, Giuseppe Scrivano, Guillem Jover,
6094 guixxx, Hannes Reinecke, Hans de Goede, Harald Hoyer, Henrique Dante de
6095 Almeida, Hiram van Paassen, Ian Miell, Igor Gnatenko, Ivan Shapovalov,
6096 Iwan Timmer, James Cowgill, Jan Janssen, Jan Synacek, Jared Kazimir,
6097 Jérémy Rosen, João Paulo Rechi Vita, Joost Heitbrink, Jui-Chi Ricky
6098 Liang, Jürg Billeter, Kai-Heng Feng, Karol Augustin, Kay Sievers,
6099 Krzysztof Nowicki, Lauri Tirkkonen, Lennart Poettering, Leonard König,
6100 Long Li, Luca Boccassi, Lucas Werkmeister, Marcel Hoppe, Marc
6101 Kleine-Budde, Mario Limonciello, Martin Jansa, Martin Wilck, Mathieu
6102 Malaterre, Matteo F. Vescovi, Matthew McGinn, Matthias-Christian Ott,
6103 Michael Biebl, Michael Olbrich, Michael Prokop, Michal Koutný, Michal
6104 Sekletar, Mike Gilbert, Mikhail Kasimov, Milan Broz, Milan Pässler,
6105 Mladen Pejaković, Muhammet Kara, Nicolas Boichat, Omer Katz, Paride
6106 Legovini, Paul Menzel, Paul Milliken, Pavel Hrdina, Peter A. Bigot,
6107 Peter D'Hoye, Peter Hutterer, Peter Jones, Philip Sequeira, Philip
61d0025d 6108 Withnall, Piotr Drąg, Radostin Stoyanov, Ricardo Salveti de Araujo,
bb6f071f
LP
6109 Ronny Chevalier, Rosen Penev, Rubén Suárez Alvarez, Ryan Gonzalez,
6110 Salvo Tomaselli, Sebastian Reichel, Sergey Ptashnick, Sergio Lindo
6111 Mansilla, Stefan Schweter, Stephen Hemminger, Stuart Hayes, Susant
6112 Sahani, Sylvain Plantefève, Thomas H. P. Andersen, Tobias Jungel,
6113 Tomasz Torcz, Vito Caputo, Will Dietz, Will Thompson, Wim van Mourik,
6114 Yu Watanabe, Zbigniew Jędrzejewski-Szmek
41a4c3ec 6115
e8498f82 6116 — Berlin, 2018-06-22
41a4c3ec 6117
c657bff1 6118CHANGES WITH 238:
e0c46a73
LP
6119
6120 * The MemoryAccounting= unit property now defaults to on. After
6121 discussions with the upstream control group maintainers we learnt
6122 that the negative impact of cgroup memory accounting on current
6123 kernels is finally relatively minimal, so that it should be safe to
444d5863
ZJS
6124 enable this by default without affecting system performance. Besides
6125 memory accounting only task accounting is turned on by default, all
6126 other forms of resource accounting (CPU, IO, IP) remain off for now,
6127 because it's not clear yet that their impact is small enough to move
6128 from opt-in to opt-out. We recommend downstreams to leave memory
07a35e84 6129 accounting on by default if kernel 4.14 or higher is primarily
444d5863
ZJS
6130 used. On very resource constrained systems or when support for old
6131 kernels is a necessity, -Dmemory-accounting-default=false can be used
6132 to revert this change.
e0c46a73 6133
313c32c3
ZJS
6134 * rpm scriptlets to update the udev hwdb and rules (%udev_hwdb_update,
6135 %udev_rules_update) and the journal catalog (%journal_catalog_update)
6136 from the upgrade scriptlets of individual packages now do nothing.
6137 Transfiletriggers have been added which will perform those updates
6138 once at the end of the transaction.
6139
6140 Similar transfiletriggers have been added to execute any sysctl.d
6141 and binfmt.d rules. Thus, it should be unnecessary to provide any
6142 scriptlets to execute this configuration from package installation
6143 scripts.
6144
6145 * systemd-sysusers gained a mode where the configuration to execute is
6146 specified on the command line, but this configuration is not executed
6147 directly, but instead it is merged with the configuration on disk,
6148 and the result is executed. This is useful for package installation
6149 scripts which want to create the user before installing any files on
6150 disk (in case some of those files are owned by that user), while
6151 still allowing local admin overrides.
6152
07a35e84 6153 This functionality is exposed to rpm scriptlets through a new
313c32c3
ZJS
6154 %sysusers_create_package macro. Old %sysusers_create and
6155 %sysusers_create_inline macros are deprecated.
6156
6157 A transfiletrigger for sysusers.d configuration is now installed,
07a35e84 6158 which means that it should be unnecessary to call systemd-sysusers from
313c32c3
ZJS
6159 package installation scripts, unless the package installs any files
6160 owned by those newly-created users, in which case
6161 %sysusers_create_package should be used.
6162
6163 * Analogous change has been done for systemd-tmpfiles: it gained a mode
6164 where the command-line configuration is merged with the configuration
6165 on disk. This is exposed as the new %tmpfiles_create_package macro,
6166 and %tmpfiles_create is deprecated. A transfiletrigger is installed
6167 for tmpfiles.d, hence it should be unnecessary to call systemd-tmpfiles
6168 from package installation scripts.
6169
6170 * sysusers.d configuration for a user may now also specify the group
6171 number, in addition to the user number ("u username 123:456"), or
6172 without the user number ("u username -:456").
6173
6174 * Configution items for systemd-sysusers can now be specified as
6175 positional arguments when the new --inline switch is used.
6176
6177 * The login shell of users created through sysusers.d may now be
6178 specified (previously, it was always /bin/sh for root and
6179 /sbin/nologin for other users).
6180
6181 * systemd-analyze gained a new --global switch to look at global user
6182 configuration. It also gained a unit-paths verb to list the unit load
6183 paths that are compiled into systemd (which can be used with
6184 --systemd, --user, or --global).
6185
6186 * udevadm trigger gained a new --settle/-w option to wait for any
6187 triggered events to finish (but just those, and not any other events
6188 which are triggered meanwhile).
6189
6190 * The action that systemd-logind takes when the lid is closed and the
6191 machine is connected to external power can now be configured using
6192 HandleLidSwitchExternalPower= in logind.conf. Previously, this action
6193 was determined by HandleLidSwitch=, and, for backwards compatibility,
6194 is still is, if HandleLidSwitchExternalPower= is not explicitly set.
6195
6196 * journalctl will periodically call sd_journal_process() to make it
6197 resilient against inotify queue overruns when journal files are
6198 rotated very quickly.
6199
6200 * Two new functions in libsystemd — sd_bus_get_n_queued_read and
6201 sd_bus_get_n_queued_write — may be used to check the number of
6202 pending bus messages.
6203
6204 * systemd gained a new
6205 org.freedesktop.systemd1.Manager.AttachProcessesToUnit dbus call
6206 which can be used to migrate foreign processes to scope and service
6207 units. The primary user for this new API is systemd itself: the
6208 systemd --user instance uses this call of the systemd --system
6209 instance to migrate processes if it itself gets the request to
6210 migrate processes and the kernel refuses this due to access
6211 restrictions. Thanks to this "systemd-run --scope --user …" works
4e1dfa45 6212 again in pure cgroup v2 environments when invoked from the user
313c32c3
ZJS
6213 session scope.
6214
6215 * A new TemporaryFileSystem= setting can be used to mask out part of
6216 the real file system tree with tmpfs mounts. This may be combined
6217 with BindPaths= and BindReadOnlyPaths= to hide files or directories
6218 not relevant to the unit, while still allowing some paths lower in
6219 the tree to be accessed.
6220
6221 ProtectHome=tmpfs may now be used to hide user home and runtime
6222 directories from units, in a way that is mostly equivalent to
6223 "TemporaryFileSystem=/home /run/user /root".
6224
6225 * Non-service units are now started with KeyringMode=shared by default.
6226 This means that mount and swapon and other mount tools have access
6227 to keys in the main keyring.
6228
6229 * /sys/fs/bpf is now mounted automatically.
6230
6231 * QNX virtualization is now detected by systemd-detect-virt and may
6232 be used in ConditionVirtualization=.
6233
6234 * IPAccounting= may now be enabled also for slice units.
6235
6236 * A new -Dsplit-bin= build configuration switch may be used to specify
6237 whether bin and sbin directories are merged, or if they should be
6238 included separately in $PATH and various listings of executable
6239 directories. The build configuration scripts will try to autodetect
6240 the proper values of -Dsplit-usr= and -Dsplit-bin= based on build
6241 system, but distributions are encouraged to configure this
6242 explicitly.
6243
6244 * A new -Dok-color= build configuration switch may be used to change
6245 the colour of "OK" status messages.
6246
6247 * UPGRADE ISSUE: serialization of units using JoinsNamespaceOf= with
6248 PrivateNetwork=yes was buggy in previous versions of systemd. This
6249 means that after the upgrade and daemon-reexec, any such units must
6250 be restarted.
6251
6252 * INCOMPATIBILITY: as announced in the NEWS for 237, systemd-tmpfiles
6253 will not exclude read-only files owned by root from cleanup.
6254
c657bff1
ZJS
6255 Contributions from: Alan Jenkins, Alexander F Rødseth, Alexis Jeandet,
6256 Andika Triwidada, Andrei Gherzan, Ansgar Burchardt, antizealot1337,
6257 Batuhan Osman Taşkaya, Beniamino Galvani, Bill Yodlowsky, Caio Marcelo
6258 de Oliveira Filho, CuBiC, Daniele Medri, Daniel Mouritzen, Daniel
6259 Rusek, Davide Cavalca, Dimitri John Ledkov, Douglas Christman, Evgeny
6260 Vereshchagin, Faalagorn, Filipe Brandenburger, Franck Bui, futpib,
6261 Giacomo Longo, Gunnar Hjalmarsson, Hans de Goede, Hermann Gausterer,
6262 Iago López Galeiras, Jakub Filak, Jan Synacek, Jason A. Donenfeld,
6263 Javier Martinez Canillas, Jérémy Rosen, Lennart Poettering, Lucas
6264 Werkmeister, Mao Huang, Marco Gulino, Michael Biebl, Michael Vogt,
6265 MilhouseVH, Neal Gompa (ニール・ゴンパ), Oleander Reis, Olof Mogren,
6266 Patrick Uiterwijk, Peter Hutterer, Peter Portante, Piotr Drąg, Robert
6267 Antoni Buj Gelonch, Sergey Ptashnick, Shawn Landden, Shuang Liu, Simon
6268 Fowler, SjonHortensius, snorreflorre, Susant Sahani, Sylvain
6269 Plantefève, Thomas Blume, Thomas Haller, Vito Caputo, Yu Watanabe,
6270 Zbigniew Jędrzejewski-Szmek, Марко М. Костић (Marko M. Kostić)
6271
6272 — Warsaw, 2018-03-05
6273
82c8e3e6 6274CHANGES WITH 237:
2b0c59ba
MP
6275
6276 * Some keyboards come with a zoom see-saw or rocker which until now got
6277 mapped to the Linux "zoomin/out" keys in hwdb. However, these
6278 keycodes are not recognized by any major desktop. They now produce
6279 Up/Down key events so that they can be used for scrolling.
6280
49e87292
LP
6281 * INCOMPATIBILITY: systemd-tmpfiles' "f" lines changed behaviour
6282 slightly: previously, if an argument was specified for lines of this
6283 type (i.e. the right-most column was set) this string was appended to
6284 existing files each time systemd-tmpfiles was run. This behaviour was
6285 different from what the documentation said, and not particularly
6286 useful, as repeated systemd-tmpfiles invocations would not be
6287 idempotent and grow such files without bounds. With this release
15c5594b
ZJS
6288 behaviour has been altered to match what the documentation says:
6289 lines of this type only have an effect if the indicated files don't
6290 exist yet, and only then the argument string is written to the file.
49e87292 6291
82c8e3e6
LP
6292 * FUTURE INCOMPATIBILITY: In systemd v238 we intend to slightly change
6293 systemd-tmpfiles behaviour: previously, read-only files owned by root
6294 were always excluded from the file "aging" algorithm (i.e. the
6295 automatic clean-up of directories like /tmp based on
6296 atime/mtime/ctime). We intend to drop this restriction, and age files
6297 by default even when owned by root and read-only. This behaviour was
6298 inherited from older tools, but there have been requests to remove
6299 it, and it's not obvious why this restriction was made in the first
28423d9a 6300 place. Please speak up now, if you are aware of software that requires
82c8e3e6
LP
6301 this behaviour, otherwise we'll remove the restriction in v238.
6302
95894b91
LP
6303 * A new environment variable $SYSTEMD_OFFLINE is now understood by
6304 systemctl. It takes a boolean argument. If on, systemctl assumes it
6305 operates on an "offline" OS tree, and will not attempt to talk to the
6306 service manager. Previously, this mode was implicitly enabled if a
6307 chroot() environment was detected, and this new environment variable
6308 now provides explicit control.
6309
1a0cd2c7
ZJS
6310 * .path and .socket units may now be created transiently, too.
6311 Previously only service, mount, automount and timer units were
95894b91
LP
6312 supported as transient units. The systemd-run tool has been updated
6313 to expose this new functionality, you may hence use it now to bind
6314 arbitrary commands to path or socket activation on-the-fly from the
1a0cd2c7
ZJS
6315 command line. Moreover, almost all properties are now exposed for the
6316 unit types that already supported transient operation.
95894b91
LP
6317
6318 * The systemd-mount command gained support for a new --owner= parameter
6319 which takes a user name, which is then resolved and included in uid=
6320 and gid= mount options string of the file system to mount.
6321
6322 * A new unit condition ConditionControlGroupController= has been added
6323 that checks whether a specific cgroup controller is available.
6324
6325 * Unit files, udev's .link files, and systemd-networkd's .netdev and
6326 .network files all gained support for a new condition
6327 ConditionKernelVersion= for checking against specific kernel
6328 versions.
6329
6330 * In systemd-networkd, the [IPVLAN] section in .netdev files gained
6cddc792 6331 support for configuring device flags in the Flags= setting. In the
95894b91
LP
6332 same files, the [Tunnel] section gained support for configuring
6333 AllowLocalRemote=. The [Route] section in .network files gained
6334 support for configuring InitialCongestionWindow=,
6335 InitialAdvertisedReceiveWindow= and QuickAck=. The [DHCP] section now
6336 understands RapidCommit=.
6337
6338 * systemd-networkd's DHCPv6 support gained support for Prefix
6339 Delegation.
6340
6341 * sd-bus gained support for a new "watch-bind" feature. When this
6342 feature is enabled, an sd_bus connection may be set up to connect to
6343 an AF_UNIX socket in the file system as soon as it is created. This
6344 functionality is useful for writing early-boot services that
6345 automatically connect to the system bus as soon as it is started,
6346 without ugly time-based polling. systemd-networkd and
6347 systemd-resolved have been updated to make use of this
6348 functionality. busctl exposes this functionality in a new
6349 --watch-bind= command line switch.
6350
6351 * sd-bus will now optionally synthesize a local "Connected" signal as
6352 soon as a D-Bus connection is set up fully. This message mirrors the
6353 already existing "Disconnected" signal which is synthesized when the
6354 connection is terminated. This signal is generally useful but
6355 particularly handy in combination with the "watch-bind" feature
6356 described above. Synthesizing of this message has to be requested
6357 explicitly through the new API call sd_bus_set_connected_signal(). In
6358 addition a new call sd_bus_is_ready() has been added that checks
caf2a2d8 6359 whether a connection is fully set up (i.e. between the "Connected" and
95894b91
LP
6360 "Disconnected" signals).
6361
6362 * sd-bus gained two new calls sd_bus_request_name_async() and
6363 sd_bus_release_name_async() for asynchronously registering bus
6364 names. Similar, there is now sd_bus_add_match_async() for installing
6365 a signal match asynchronously. All of systemd's own services have
6366 been updated to make use of these calls. Doing these operations
6367 asynchronously has two benefits: it reduces the risk of deadlocks in
6368 case of cyclic dependencies between bus services, and it speeds up
6369 service initialization since synchronization points for bus
6370 round-trips are removed.
6371
6372 * sd-bus gained two new calls sd_bus_match_signal() and
6373 sd_bus_match_signal_async(), which are similar to sd_bus_add_match()
6374 and sd_bus_add_match_async() but instead of taking a D-Bus match
6375 string take match fields as normal function parameters.
6376
6377 * sd-bus gained two new calls sd_bus_set_sender() and
6378 sd_bus_message_set_sender() for setting the sender name of outgoing
6379 messages (either for all outgoing messages or for just one specific
6380 one). These calls are only useful in direct connections as on
6381 brokered connections the broker fills in the sender anyway,
6382 overwriting whatever the client filled in.
6383
6384 * sd-event gained a new pseudo-handle that may be specified on all API
6385 calls where an "sd_event*" object is expected: SD_EVENT_DEFAULT. When
6386 used this refers to the default event loop object of the calling
6387 thread. Note however that this does not implicitly allocate one —
6cddc792
CR
6388 which has to be done prior by using sd_event_default(). Similarly
6389 sd-bus gained three new pseudo-handles SD_BUS_DEFAULT,
95894b91
LP
6390 SD_BUS_DEFAULT_USER, SD_BUS_DEFAULT_SYSTEM that may be used to refer
6391 to the default bus of the specified type of the calling thread. Here
6392 too this does not implicitly allocate bus connection objects, this
6393 has to be done prior with sd_bus_default() and friends.
6394
6395 * sd-event gained a new call pair
6cddc792
CR
6396 sd_event_source_{get|set}_io_fd_own(). This may be used to request
6397 automatic closure of the file descriptor an IO event source watches
95894b91
LP
6398 when the event source is destroyed.
6399
6400 * systemd-networkd gained support for natively configuring WireGuard
6401 connections.
6402
6cddc792
CR
6403 * In previous versions systemd synthesized user records both for the
6404 "nobody" (UID 65534) and "root" (UID 0) users in nss-systemd and
6405 internally. In order to simplify distribution-wide renames of the
95894b91
LP
6406 "nobody" user (like it is planned in Fedora: nfsnobody → nobody), a
6407 new transitional flag file has been added: if
6408 /etc/systemd/dont-synthesize-nobody exists synthesizing of the 65534
6409 user and group record within the systemd codebase is disabled.
6410
6411 * systemd-notify gained a new --uid= option for selecting the source
6412 user/UID to use for notification messages sent to the service
6413 manager.
6414
31751f7e 6415 * journalctl gained a new --grep= option to list only entries in which
e6501af8
ZJS
6416 the message matches a certain pattern. By default matching is case
6417 insensitive if the pattern is lowercase, and case sensitive
6418 otherwise. Option --case-sensitive=yes|no can be used to override
6419 this an specify case sensitivity or case insensitivity.
6420
56a29112 6421 * There's now a "systemd-analyze service-watchdogs" command for printing
508058c9 6422 the current state of the service runtime watchdog, and optionally
56a29112 6423 enabling or disabling the per-service watchdogs system-wide if given a
508058c9
LP
6424 boolean argument (i.e. the concept you configure in WatchdogSec=), for
6425 debugging purposes. There's also a kernel command line option
56a29112 6426 systemd.service_watchdogs= for controlling the same.
508058c9
LP
6427
6428 * Two new "log-level" and "log-target" options for systemd-analyze were
bc99dac5 6429 added that merge the now deprecated get-log-level, set-log-level and
508058c9
LP
6430 get-log-target, set-log-target pairs. The deprecated options are still
6431 understood for backwards compatibility. The two new options print the
6432 current value when no arguments are given, and set them when a
56a29112 6433 level/target is given as an argument.
95894b91 6434
508058c9
LP
6435 * sysusers.d's "u" lines now optionally accept both a UID and a GID
6436 specification, separated by a ":" character, in order to create users
6437 where UID and GID do not match.
6438
95894b91 6439 Contributions from: Adam Duskett, Alan Jenkins, Alexander Kuleshov,
508058c9
LP
6440 Alexis Deruelle, Andrew Jeddeloh, Armin Widegreen, Batuhan Osman
6441 Taşkaya, Björn Esser, bleep_blop, Bruce A. Johnson, Chris Down, Clinton
6442 Roy, Colin Walters, Daniel Rusek, Dimitri John Ledkov, Dmitry Rozhkov,
6443 Evgeny Vereshchagin, Ewout van Mansom, Felipe Sateler, Franck Bui,
6444 Frantisek Sumsal, George Gaydarov, Gianluca Boiano, Hans-Christian
6445 Noren Egtvedt, Hans de Goede, Henrik Grindal Bakken, Jan Alexander
6446 Steffens, Jan Klötzke, Jason A. Donenfeld, jdkbx, Jérémy Rosen,
6447 Jerónimo Borque, John Lin, John Paul Herold, Jonathan Rudenberg, Jörg
6448 Thalheim, Ken (Bitsko) MacLeod, Larry Bernstone, Lennart Poettering,
6449 Lucas Werkmeister, Maciej S. Szmigiero, Marek Čermák, Martin Pitt,
6450 Mathieu Malaterre, Matthew Thode, Matthias-Christian Ott, Max Harmathy,
6451 Michael Biebl, Michael Vogt, Michal Koutný, Michal Sekletar, Michał
6452 Szczepański, Mike Gilbert, Nathaniel McCallum, Nicolas Chauvet, Olaf
6453 Hering, Olivier Schwander, Patrik Flykt, Paul Cercueil, Peter Hutterer,
6454 Piotr Drąg, Raphael Vogelgsang, Reverend Homer, Robert Kolchmeyer,
6455 Samuel Dionne-Riel, Sergey Ptashnick, Shawn Landden, Susant Sahani,
6456 Sylvain Plantefève, Thomas H. P. Andersen, Thomas Huth, Tomasz
6457 Bachorski, Vladislav Vishnyakov, Wieland Hoffmann, Yu Watanabe, Zachary
6458 Winnerman, Zbigniew Jędrzejewski-Szmek, Дамјан Георгиевски, Дилян
6459 Палаузов
6460
6461 — Brno, 2018-01-28
2b0c59ba 6462
a1b2c92d 6463CHANGES WITH 236:
195b943d 6464
89780840
ZJS
6465 * The modprobe.d/ drop-in for the bonding.ko kernel module introduced
6466 in v235 has been extended to also set the dummy.ko module option
6467 numdummies=0, preventing the kernel from automatically creating
6468 dummy0. All dummy interfaces must now be explicitly created.
195b943d 6469
3925496a
LP
6470 * Unknown '%' specifiers in configuration files are now rejected. This
6471 applies to units and tmpfiles.d configuration. Any percent characters
6472 that are followed by a letter or digit that are not supposed to be
6473 interpreted as the beginning of a specifier should be escaped by
6474 doubling ("%%"). (So "size=5%" is still accepted, as well as
6475 "size=5%,foo=bar", but not "LABEL=x%y%z" since %y and %z are not
6476 valid specifiers today.)
751223fe 6477
e6b2d948 6478 * systemd-resolved now maintains a new dynamic
89780840
ZJS
6479 /run/systemd/resolve/stub-resolv.conf compatibility file. It is
6480 recommended to make /etc/resolv.conf a symlink to it. This file
6481 points at the systemd-resolved stub DNS 127.0.0.53 resolver and
6482 includes dynamically acquired search domains, achieving more correct
6483 DNS resolution by software that bypasses local DNS APIs such as NSS.
e6b2d948 6484
67eb5b38
LP
6485 * The "uaccess" udev tag has been dropped from /dev/kvm and
6486 /dev/dri/renderD*. These devices now have the 0666 permissions by
6487 default (but this may be changed at build-time). /dev/dri/renderD*
6488 will now be owned by the "render" group along with /dev/kfd.
6489
89780840
ZJS
6490 * "DynamicUser=yes" has been enabled for systemd-timesyncd.service,
6491 systemd-journal-gatewayd.service and
6492 systemd-journal-upload.service. This means "nss-systemd" must be
6493 enabled in /etc/nsswitch.conf to ensure the UIDs assigned to these
6494 services are resolved properly.
67eb5b38 6495
3925496a
LP
6496 * In /etc/fstab two new mount options are now understood:
6497 x-systemd.makefs and x-systemd.growfs. The former has the effect that
6498 the configured file system is formatted before it is mounted, the
6499 latter that the file system is resized to the full block device size
6500 after it is mounted (i.e. if the file system is smaller than the
6501 partition it resides on, it's grown). This is similar to the fsck
6502 logic in /etc/fstab, and pulls in systemd-makefs@.service and
6503 systemd-growfs@.service as necessary, similar to
6504 systemd-fsck@.service. Resizing is currently only supported on ext4
6505 and btrfs.
6506
67eb5b38
LP
6507 * In systemd-networkd, the IPv6 RA logic now optionally may announce
6508 DNS server and domain information.
6509
6510 * Support for the LUKS2 on-disk format for encrypted partitions has
6511 been added. This requires libcryptsetup2 during compilation and
6512 runtime.
6513
89780840 6514 * The systemd --user instance will now signal "readiness" when its
67eb5b38
LP
6515 basic.target unit has been reached, instead of when the run queue ran
6516 empty for the first time.
6517
8ea2dcb0
ZJS
6518 * Tmpfiles.d with user configuration are now also supported.
6519 systemd-tmpfiles gained a new --user switch, and snippets placed in
6520 ~/.config/user-tmpfiles.d/ and corresponding directories will be
6521 executed by systemd-tmpfiles --user running in the new
6522 systemd-tmpfiles-setup.service and systemd-tmpfiles-clean.service
6523 running in the user session.
6524
6525 * Unit files and tmpfiles.d snippets learnt three new % specifiers:
6526 %S resolves to the top-level state directory (/var/lib for the system
6527 instance, $XDG_CONFIG_HOME for the user instance), %C resolves to the
6528 top-level cache directory (/var/cache for the system instance,
6529 $XDG_CACHE_HOME for the user instance), %L resolves to the top-level
6530 logs directory (/var/log for the system instance,
67eb5b38 6531 $XDG_CONFIG_HOME/log/ for the user instance). This matches the
8ea2dcb0 6532 existing %t specifier, that resolves to the top-level runtime
67eb5b38
LP
6533 directory (/run for the system instance, and $XDG_RUNTIME_DIR for the
6534 user instance).
6535
6536 * journalctl learnt a new parameter --output-fields= for limiting the
6537 set of journal fields to output in verbose and JSON output modes.
6538
6539 * systemd-timesyncd's configuration file gained a new option
89780840
ZJS
6540 RootDistanceMaxSec= for setting the maximum root distance of servers
6541 it'll use, as well as the new options PollIntervalMinSec= and
6542 PollIntervalMaxSec= to tweak the minimum and maximum poll interval.
67eb5b38
LP
6543
6544 * bootctl gained a new command "list" for listing all available boot
89780840 6545 menu items on systems that follow the boot loader specification.
67eb5b38
LP
6546
6547 * systemctl gained a new --dry-run switch that shows what would be done
6548 instead of doing it, and is currently supported by the shutdown and
6549 sleep verbs.
6550
e9ad86d5 6551 * ConditionSecurity= can now detect the TOMOYO security module.
67eb5b38
LP
6552
6553 * Unit file [Install] sections are now also respected in unit drop-in
89780840 6554 files. This is intended to be used by drop-ins under /usr/lib/.
67eb5b38 6555
89780840 6556 * systemd-firstboot may now also set the initial keyboard mapping.
67eb5b38 6557
89780840
ZJS
6558 * Udev "changed" events for devices which are exposed as systemd
6559 .device units are now propagated to units specified in
6560 ReloadPropagatedFrom= as reload requests.
67eb5b38 6561
89780840
ZJS
6562 * If a udev device has a SYSTEMD_WANTS= property containing a systemd
6563 unit template name (i.e. a name in the form of 'foobar@.service',
6564 without the instance component between the '@' and - the '.'), then
6565 the escaped sysfs path of the device is automatically used as the
6566 instance.
67eb5b38
LP
6567
6568 * SystemCallFilter= in unit files has been extended so that an "errno"
6569 can be specified individually for each system call. Example:
6570 SystemCallFilter=~uname:EILSEQ.
6571
6572 * The cgroup delegation logic has been substantially updated. Delegate=
6573 now optionally takes a list of controllers (instead of a boolean, as
6574 before), which lists the controllers to delegate at least.
6575
89780840 6576 * The networkd DHCPv6 client now implements the FQDN option (RFC 4704).
67eb5b38 6577
89780840
ZJS
6578 * A new LogLevelMax= setting configures the maximum log level any
6579 process of the service may log at (i.e. anything with a lesser
6580 priority than what is specified is automatically dropped). A new
6581 LogExtraFields= setting allows configuration of additional journal
6582 fields to attach to all log records generated by any of the unit's
6583 processes.
67eb5b38 6584
89780840
ZJS
6585 * New StandardInputData= and StandardInputText= settings along with the
6586 new option StandardInput=data may be used to configure textual or
6587 binary data that shall be passed to the executed service process via
6588 standard input, encoded in-line in the unit file.
67eb5b38
LP
6589
6590 * StandardInput=, StandardOutput= and StandardError= may now be used to
6591 connect stdin/stdout/stderr of executed processes directly with a
6592 file or AF_UNIX socket in the file system, using the new "file:" option.
6593
89780840
ZJS
6594 * A new unit file option CollectMode= has been added, that allows
6595 tweaking the garbage collection logic for units. It may be used to
6596 tell systemd to garbage collect units that have failed automatically
6597 (normally it only GCs units that exited successfully). systemd-run
6598 and systemd-mount expose this new functionality with a new -G option.
6599
67eb5b38
LP
6600 * "machinectl bind" may now be used to bind mount non-directories
6601 (i.e. regularfiles, devices, fifos, sockets).
6602
6603 * systemd-analyze gained a new verb "calendar" for validating and
6604 testing calendar time specifications to use for OnCalendar= in timer
6605 units. Besides validating the expression it will calculate the next
6606 time the specified expression would elapse.
6607
6608 * In addition to the pre-existing FailureAction= unit file setting
89780840
ZJS
6609 there's now SuccessAction=, for configuring a shutdown action to
6610 execute when a unit completes successfully. This is useful in
6611 particular inside containers that shall terminate after some workload
6612 has been completed. Also, both options are now supported for all unit
6613 types, not just services.
67eb5b38
LP
6614
6615 * networkds's IP rule support gained two new options
dd014eeb 6616 IncomingInterface= and OutgoingInterface= for configuring the incoming
67eb5b38
LP
6617 and outgoing interfaces of configured rules. systemd-networkd also
6618 gained support for "vxcan" network devices.
6619
6620 * networkd gained a new setting RequiredForOnline=, taking a
6621 boolean. If set, systemd-wait-online will take it into consideration
6622 when determining that the system is up, otherwise it will ignore the
6623 interface for this purpose.
6624
6625 * The sd_notify() protocol gained support for a new operation: with
6626 FDSTOREREMOVE=1 file descriptors may be removed from the per-service
6627 store again, ahead of POLLHUP or POLLERR when they are removed
6628 anyway.
6629
f09eb768
LP
6630 * A new document doc/UIDS-GIDS.md has been added to the source tree,
6631 that documents the UID/GID range and assignment assumptions and
3925496a
LP
6632 requirements of systemd.
6633
6634 * The watchdog device PID 1 will ping may now be configured through the
6635 WatchdogDevice= configuration file setting, or by setting the
6636 systemd.watchdog_service= kernel commandline option.
6637
6638 * systemd-resolved's gained support for registering DNS-SD services on
6639 the local network using MulticastDNS. Services may either be
6640 registered by dropping in a .dnssd file in /etc/systemd/dnssd/ (or
6641 the same dir below /run, /usr/lib), or through its D-Bus API.
6642
a327431b
DB
6643 * The sd_notify() protocol can now with EXTEND_TIMEOUT_USEC=microsecond
6644 extend the effective start, runtime, and stop time. The service must
6645 continue to send EXTEND_TIMEOUT_USEC within the period specified to
6646 prevent the service manager from making the service as timedout.
6647
ea2a3c9e
LP
6648 * systemd-resolved's DNSSEC support gained support for RFC 8080
6649 (Ed25519 keys and signatures).
6650
a1b2c92d
LP
6651 * The systemd-resolve command line tool gained a new set of options
6652 --set-dns=, --set-domain=, --set-llmnr=, --set-mdns=, --set-dnssec=,
6653 --set-nta= and --revert to configure per-interface DNS configuration
6654 dynamically during runtime. It's useful for pushing DNS information
6655 into systemd-resolved from DNS hook scripts that various interface
6656 managing software supports (such as pppd).
6657
6658 * systemd-nspawn gained a new --network-namespace-path= command line
6659 option, which may be used to make a container join an existing
6660 network namespace, by specifying a path to a "netns" file.
6661
3925496a
LP
6662 Contributions from: Alan Jenkins, Alan Robertson, Alessandro Ghedini,
6663 Andrew Jeddeloh, Antonio Rojas, Ari, asavah, bleep_blop, Carsten
6664 Strotmann, Christian Brauner, Christian Hesse, Clinton Roy, Collin
ea2a3c9e 6665 Eggert, Cong Wang, Daniel Black, Daniel Lockyer, Daniel Rusek, Dimitri
a1b2c92d
LP
6666 John Ledkov, Dmitry Rozhkov, Dongsu Park, Edward A. James, Evgeny
6667 Vereshchagin, Florian Klink, Franck Bui, Gwendal Grignou, Hans de
6668 Goede, Harald Hoyer, Hristo Venev, Iago López Galeiras, Ikey Doherty,
6669 Jakub Wilk, Jérémy Rosen, Jiahui Xie, John Lin, José Bollo, Josef
6670 Andersson, juga0, Krzysztof Nowicki, Kyle Walker, Lars Karlitski, Lars
6671 Kellogg-Stedman, Lauri Tirkkonen, Lennart Poettering, Lubomir Rintel,
6672 Luca Bruno, Lucas Werkmeister, Lukáš Nykrýn, Lukáš Říha, Lukasz
6673 Rubaszewski, Maciej S. Szmigiero, Mantas Mikulėnas, Marcus Folkesson,
6674 Martin Steuer, Mathieu Trudel-Lapierre, Matija Skala,
6675 Matthias-Christian Ott, Max Resch, Michael Biebl, Michael Vogt, Michal
6676 Koutný, Michal Sekletar, Mike Gilbert, Muhammet Kara, Neil Brown, Olaf
6677 Hering, Ondrej Kozina, Patrik Flykt, Patryk Kocielnik, Peter Hutterer,
6678 Piotr Drąg, Razvan Cojocaru, Robin McCorkell, Roland Hieber, Saran
6679 Tunyasuvunakool, Sergey Ptashnick, Shawn Landden, Shuang Liu, Simon
6680 Arlott, Simon Peeters, Stanislav Angelovič, Stefan Agner, Susant
6681 Sahani, Sylvain Plantefève, Thomas Blume, Thomas Haller, Tiago Salem
6682 Herrmann, Tinu Weber, Tom Stellard, Topi Miettinen, Torsten Hilbrich,
6683 Vito Caputo, Vladislav Vishnyakov, WaLyong Cho, Yu Watanabe, Zbigniew
6684 Jędrzejewski-Szmek, Zeal Jagannatha
67eb5b38 6685
ea2a3c9e 6686 — Berlin, 2017-12-14
3754abc5 6687
582faeb4
DJL
6688CHANGES WITH 235:
6689
2bcbffd6
LP
6690 * INCOMPATIBILITY: systemd-logind.service and other long-running
6691 services now run inside an IPv4/IPv6 sandbox, prohibiting them any IP
6692 communication with the outside. This generally improves security of
6693 the system, and is in almost all cases a safe and good choice, as
23d37367 6694 these services do not and should not provide any network-facing
2bcbffd6
LP
6695 functionality. However, systemd-logind uses the glibc NSS API to
6696 query the user database. This creates problems on systems where NSS
6697 is set up to directly consult network services for user database
6698 lookups. In particular, this creates incompatibilities with the
6699 "nss-nis" module, which attempts to directly contact the NIS/YP
6700 network servers it is configured for, and will now consistently
6701 fail. In such cases, it is possible to turn off IP sandboxing for
6702 systemd-logind.service (set IPAddressDeny= in its [Service] section
6703 to the empty string, via a .d/ unit file drop-in). Downstream
6704 distributions might want to update their nss-nis packaging to include
6705 such a drop-in snippet, accordingly, to hide this incompatibility
6706 from the user. Another option is to make use of glibc's nscd service
6707 to proxy such network requests through a privilege-separated, minimal
6708 local caching daemon, or to switch to more modern technologies such
6709 sssd, whose NSS hook-ups generally do not involve direct network
6710 access. In general, we think it's definitely time to question the
6711 implementation choices of nss-nis, i.e. whether it's a good idea
6712 today to embed a network-facing loadable module into all local
6713 processes that need to query the user database, including the most
6714 trivial and benign ones, such as "ls". For more details about
6715 IPAddressDeny= see below.
6716
fccf5419
LP
6717 * A new modprobe.d drop-in is now shipped by default that sets the
6718 bonding module option max_bonds=0. This overrides the kernel default,
6719 to avoid conflicts and ambiguity as to whether or not bond0 should be
6720 managed by systemd-networkd or not. This resolves multiple issues
6721 with bond0 properties not being applied, when bond0 is configured
6722 with systemd-networkd. Distributors may choose to not package this,
6723 however in that case users will be prevented from correctly managing
6724 bond0 interface using systemd-networkd.
582faeb4 6725
ef5a8cb1 6726 * systemd-analyze gained new verbs "get-log-level" and "get-log-target"
21723f53
ZJS
6727 which print the logging level and target of the system manager. They
6728 complement the existing "set-log-level" and "set-log-target" verbs
6729 used to change those values.
ef5a8cb1 6730
fccf5419
LP
6731 * journald.conf gained a new boolean setting ReadKMsg= which defaults
6732 to on. If turned off kernel log messages will not be read by
21723f53
ZJS
6733 systemd-journald or included in the logs. It also gained a new
6734 setting LineMax= for configuring the maximum line length in
6735 STDOUT/STDERR log streams. The new default for this value is 48K, up
6736 from the previous hardcoded 2048.
fccf5419 6737
21723f53
ZJS
6738 * A new unit setting RuntimeDirectoryPreserve= has been added, which
6739 allows more detailed control of what to do with a runtime directory
6740 configured with RuntimeDirectory= (i.e. a directory below /run or
6741 $XDG_RUNTIME_DIR) after a unit is stopped.
fccf5419
LP
6742
6743 * The RuntimeDirectory= setting for units gained support for creating
6744 deeper subdirectories below /run or $XDG_RUNTIME_DIR, instead of just
6745 one top-level directory.
6746
6747 * Units gained new options StateDirectory=, CacheDirectory=,
6748 LogsDirectory= and ConfigurationDirectory= which are closely related
6749 to RuntimeDirectory= but manage per-service directories below
21723f53 6750 /var/lib, /var/cache, /var/log and /etc. By making use of them it is
fccf5419
LP
6751 possible to write unit files which when activated automatically gain
6752 properly owned service specific directories in these locations, thus
6753 making unit files self-contained and increasing compatibility with
6754 stateless systems and factory reset where /etc or /var are
6755 unpopulated at boot. Matching these new settings there's also
6756 StateDirectoryMode=, CacheDirectoryMode=, LogsDirectoryMode=,
6757 ConfigurationDirectoryMode= for configuring the access mode of these
75dfbbac
LP
6758 directories. These settings are particularly useful in combination
6759 with DynamicUser=yes as they provide secure, properly-owned,
6760 writable, and stateful locations for storage, excluded from the
6761 sandbox that such services live in otherwise.
fccf5419
LP
6762
6763 * Automake support has been removed from this release. systemd is now
6764 Meson-only.
6765
6766 * systemd-journald will now aggressively cache client metadata during
6767 runtime, speeding up log write performance under pressure. This comes
6768 at a small price though: as much of the metadata is read
6769 asynchronously from /proc/ (and isn't implicitly attached to log
6770 datagrams by the kernel, like UID/GID/PID/SELinux are) this means the
6771 metadata stored alongside a log entry might be slightly
6772 out-of-date. Previously it could only be slightly newer than the log
6773 message. The time window is small however, and given that the kernel
6774 is unlikely to be improved anytime soon in this regard, this appears
6775 acceptable to us.
6776
6777 * nss-myhostname/systemd-resolved will now by default synthesize an
6778 A/AAAA resource record for the "_gateway" hostname, pointing to the
6779 current default IP gateway. Previously it did that for the "gateway"
6780 name, hampering adoption, as some distributions wanted to leave that
38b38500 6781 hostname open for local use. The old behaviour may still be
fccf5419
LP
6782 requested at build time.
6783
6784 * systemd-networkd's [Address] section in .network files gained a new
6785 Scope= setting for configuring the IP address scope. The [Network]
6786 section gained a new boolean setting ConfigureWithoutCarrier= that
6787 tells systemd-networkd to ignore link sensing when configuring the
6788 device. The [DHCP] section gained a new Anonymize= boolean option for
6789 turning on a number of options suggested in RFC 7844. A new
6790 [RoutingPolicyRule] section has been added for configuring the IP
6791 routing policy. The [Route] section has gained support for a new
6792 Type= setting which permits configuring
6793 blackhole/unreachable/prohibit routes.
6794
6795 * The [VRF] section in .netdev files gained a new Table= setting for
6796 configuring the routing table to use. The [Tunnel] section gained a
6797 new Independent= boolean field for configuring tunnels independent of
6798 an underlying network interface. The [Bridge] section gained a new
6799 GroupForwardMask= option for configuration of propagation of link
6800 local frames between bridge ports.
6801
6802 * The WakeOnLan= setting in .link files gained support for a number of
6803 new modes. A new TCP6SegmentationOffload= setting has been added for
6804 configuring TCP/IPv6 hardware segmentation offload.
6805
6806 * The IPv6 RA sender implementation may now optionally send out RDNSS
21723f53 6807 and RDNSSL records to supply DNS configuration to peers.
fccf5419
LP
6808
6809 * systemd-nspawn gained support for a new --system-call-filter= command
21723f53
ZJS
6810 line option for adding and removing entries in the default system
6811 call filter it applies. Moreover systemd-nspawn has been changed to
6b000af4 6812 implement a system call allow list instead of a deny list.
fccf5419
LP
6813
6814 * systemd-run gained support for a new --pipe command line option. If
6815 used the STDIN/STDOUT/STDERR file descriptors passed to systemd-run
6816 are directly passed on to the activated transient service
21723f53
ZJS
6817 executable. This allows invoking arbitrary processes as systemd
6818 services (for example to take benefit of dependency management,
6819 accounting management, resource management or log management that is
6820 done automatically for services) — while still allowing them to be
fccf5419
LP
6821 integrated in a classic UNIX shell pipeline.
6822
6823 * When a service sends RELOAD=1 via sd_notify() and reload propagation
6824 using ReloadPropagationTo= is configured, a reload is now propagated
6825 to configured units. (Previously this was only done on explicitly
6826 requested reloads, using "systemctl reload" or an equivalent
6827 command.)
6828
6829 * For each service unit a restart counter is now kept: it is increased
6830 each time the service is restarted due to Restart=, and may be
6831 queried using "systemctl show -p NRestarts …".
6832
44898c53
LP
6833 * New system call filter groups @aio, @sync, @chown, @setuid, @memlock,
6834 @signal and @timer have been added, for usage with SystemCallFilter=
fccf5419
LP
6835 in unit files and the new --system-call-filter= command line option
6836 of systemd-nspawn (see above).
6837
6838 * ExecStart= lines in unit files gained two new modifiers: when a
6839 command line is prefixed with "!" the command will be executed as
6840 configured, except for the credentials applied by
6841 setuid()/setgid()/setgroups(). It is very similar to the pre-existing
6842 "+", but does still apply namespacing options unlike "+". There's
6843 also "!!" now, which is mostly identical, but becomes a NOP on
6844 systems that support ambient capabilities. This is useful to write
6845 unit files that work with ambient capabilities where possible but
6846 automatically fall back to traditional privilege dropping mechanisms
6847 on systems where this is not supported.
6848
6849 * ListenNetlink= settings in socket units now support RDMA netlink
6850 sockets.
6851
6852 * A new unit file setting LockPersonality= has been added which permits
6853 locking down the chosen execution domain ("personality") of a service
6854 during runtime.
6855
6856 * A new special target "getty-pre.target" has been added, which is
6857 ordered before all text logins, and may be used to order services
21723f53 6858 before textual logins acquire access to the console.
fccf5419
LP
6859
6860 * systemd will now attempt to load the virtio-rng.ko kernel module very
6861 early on if a VM environment supporting this is detected. This should
6862 improve entropy during early boot in virtualized environments.
6863
6864 * A _netdev option is now supported in /etc/crypttab that operates in a
6865 similar way as the same option in /etc/fstab: it permits configuring
21723f53
ZJS
6866 encrypted devices that need to be ordered after the network is up.
6867 Following this logic, two new special targets
fccf5419 6868 remote-cryptsetup-pre.target and remote-cryptsetup.target have been
21723f53
ZJS
6869 added that are to cryptsetup.target what remote-fs.target and
6870 remote-fs-pre.target are to local-fs.target.
fccf5419
LP
6871
6872 * Service units gained a new UnsetEnvironment= setting which permits
21723f53
ZJS
6873 unsetting specific environment variables for services that are
6874 normally passed to it (for example in order to mask out locale
fccf5419
LP
6875 settings for specific services that can't deal with it).
6876
6877 * Units acquired a new boolean option IPAccounting=. When turned on, IP
6878 traffic accounting (packet count as well as byte count) is done for
6879 the service, and shown as part of "systemctl status" or "systemd-run
6880 --wait".
6881
6882 * Service units acquired two new options IPAddressAllow= and
6883 IPAddressDeny=, taking a list of IPv4 or IPv6 addresses and masks,
6884 for configuring a simple IP access control list for all sockets of
6885 the unit. These options are available also on .slice and .socket
6886 units, permitting flexible access list configuration for individual
6887 services as well as groups of services (as defined by a slice unit),
6888 including system-wide. Note that IP ACLs configured this way are
6889 enforced on every single IPv4 and IPv6 socket created by any process
6890 of the service unit, and apply to ingress as well as egress traffic.
6891
21723f53 6892 * If CPUAccounting= or IPAccounting= is turned on for a unit a new
608f70e6 6893 structured log message is generated each time the unit is stopped,
fccf5419
LP
6894 containing information about the consumed resources of this
6895 invocation.
6896
6897 * A new setting KeyringMode= has been added to unit files, which may be
6898 used to control how the kernel keyring is set up for executed
6899 processes.
6900
e06fafb2
LP
6901 * "systemctl poweroff", "systemctl reboot", "systemctl halt",
6902 "systemctl kexec" and "systemctl exit" are now always asynchronous in
6903 behaviour (that is: these commands return immediately after the
21723f53
ZJS
6904 operation was enqueued instead of waiting for the operation to
6905 complete). Previously, "systemctl poweroff" and "systemctl reboot"
e06fafb2
LP
6906 were asynchronous on systems using systemd-logind (i.e. almost
6907 always, and like they were on sysvinit), and the other three commands
6908 were unconditionally synchronous. With this release this is cleaned
6909 up, and callers will see the same asynchronous behaviour on all
6910 systems for all five operations.
6911
6912 * systemd-logind gained new Halt() and CanHalt() bus calls for halting
6913 the system.
6914
fccf5419
LP
6915 * .timer units now accept calendar specifications in other timezones
6916 than UTC or the local timezone.
6917
f6e64b78 6918 * The tmpfiles snippet var.conf has been changed to create
21723f53
ZJS
6919 /var/log/btmp with access mode 0660 instead of 0600. It was owned by
6920 the "utmp" group already, and it appears to be generally understood
6921 that members of "utmp" can modify/flush the utmp/wtmp/lastlog/btmp
6922 databases. Previously this was implemented correctly for all these
6923 databases excepts btmp, which has been opened up like this now
6924 too. Note that while the other databases are world-readable
6925 (i.e. 0644), btmp is not and remains more restrictive.
f6e64b78 6926
d55b0463
LP
6927 * The systemd-resolve tool gained a new --reset-server-features
6928 switch. When invoked like this systemd-resolved will forget
6929 everything it learnt about the features supported by the configured
6930 upstream DNS servers, and restarts the feature probing logic on the
cf84484a
LP
6931 next resolver look-up for them at the highest feature level
6932 again.
6933
6934 * The status dump systemd-resolved sends to the logs upon receiving
6935 SIGUSR1 now also includes information about all DNS servers it is
6936 configured to use, and the features levels it probed for them.
d55b0463 6937
fccf5419
LP
6938 Contributions from: Abdó Roig-Maranges, Alan Jenkins, Alexander
6939 Kuleshov, Andreas Rammhold, Andrew Jeddeloh, Andrew Soutar, Ansgar
76451c1d
LP
6940 Burchardt, Beniamino Galvani, Benjamin Berg, Benjamin Robin, Charles
6941 Huber, Christian Hesse, Daniel Berrange, Daniel Kahn Gillmor, Daniel
6942 Mack, Daniel Rusek, Daniel Șerbănescu, Davide Cavalca, Dimitri John
6943 Ledkov, Diogo Pereira, Djalal Harouni, Dmitriy Geels, Dmitry Torokhov,
6944 ettavolt, Evgeny Vereshchagin, Fabio Kung, Felipe Sateler, Franck Bui,
6945 Hans de Goede, Harald Hoyer, Insun Pyo, Ivan Kurnosov, Ivan Shapovalov,
6946 Jakub Wilk, Jan Synacek, Jason Gunthorpe, Jeremy Bicha, Jérémy Rosen,
6947 John Lin, jonasBoss, Jonathan Lebon, Jonathan Teh, Jon Ringle, Jörg
6948 Thalheim, Jouke Witteveen, juga0, Justin Capella, Justin Michaud,
6949 Kai-Heng Feng, Lennart Poettering, Lion Yang, Luca Bruno, Lucas
6950 Werkmeister, Lukáš Nykrýn, Marcel Hollerbach, Marcus Lundblad, Martin
6951 Pitt, Michael Biebl, Michael Grzeschik, Michal Sekletar, Mike Gilbert,
6952 Neil Brown, Nicolas Iooss, Patrik Flykt, pEJipE, Piotr Drąg, Russell
6953 Stuart, S. Fan, Shengyao Xue, Stefan Pietsch, Susant Sahani, Tejun Heo,
6954 Thomas Miller, Thomas Sailer, Tobias Hunger, Tomasz Pala, Tom
6955 Gundersen, Tommi Rantala, Topi Miettinen, Torstein Husebø, userwithuid,
6956 Vasilis Liaskovitis, Vito Caputo, WaLyong Cho, William Douglas, Xiang
6957 Fan, Yu Watanabe, Zbigniew Jędrzejewski-Szmek
fccf5419 6958
c1719d8b 6959 — Berlin, 2017-10-06
fccf5419 6960
4b4da299
LP
6961CHANGES WITH 234:
6962
6963 * Meson is now supported as build system in addition to Automake. It is
6964 our plan to remove Automake in one of our next releases, so that
6965 Meson becomes our exclusive build system. Hence, please start using
6966 the Meson build system in your downstream packaging. There's plenty
6967 of documentation around how to use Meson, the extremely brief
6968 summary:
6969
6970 ./autogen.sh && ./configure && make && sudo make install
6971
6972 becomes:
6973
6974 meson build && ninja -C build && sudo ninja -C build install
6975
6976 * Unit files gained support for a new JobRunningTimeoutUSec= setting,
6977 which permits configuring a timeout on the time a job is
6978 running. This is particularly useful for setting timeouts on jobs for
6979 .device units.
6980
6981 * Unit files gained two new options ConditionUser= and ConditionGroup=
6982 for conditionalizing units based on the identity of the user/group
6983 running a systemd user instance.
6984
6985 * systemd-networkd now understands a new FlowLabel= setting in the
6986 [VXLAN] section of .network files, as well as a Priority= in
6987 [Bridge], GVRP= + MVRP= + LooseBinding= + ReorderHeader= in [VLAN]
6988 and GatewayOnlink= + IPv6Preference= + Protocol= in [Route]. It also
6989 gained support for configuration of GENEVE links, and IPv6 address
6990 labels. The [Network] section gained the new IPv6ProxyNDP= setting.
6991
9f09a95a 6992 * .link files now understand a new Port= setting.
4b4da299
LP
6993
6994 * systemd-networkd's DHCP support gained support for DHCP option 119
6995 (domain search list).
6996
6997 * systemd-networkd gained support for serving IPv6 address ranges using
bc99dac5 6998 the Router Advertisement protocol. The new .network configuration
4b4da299
LP
6999 section [IPv6Prefix] may be used to configure the ranges to
7000 serve. This is implemented based on a new, minimal, native server
7001 implementation of RA.
7002
7003 * journalctl's --output= switch gained support for a new parameter
7004 "short-iso-precise" for a mode where timestamps are shown as precise
7005 ISO date values.
7006
7007 * systemd-udevd's "net_id" builtin may now generate stable network
7008 interface names from IBM PowerVM VIO devices as well as ACPI platform
7009 devices.
7010
7011 * MulticastDNS support in systemd-resolved may now be explicitly
7012 enabled/disabled using the new MulticastDNS= configuration file
7013 option.
7014
7015 * systemd-resolved may now optionally use libidn2 instead of the libidn
7f7ab228
ZJS
7016 for processing internationalized domain names. Support for libidn2
7017 should be considered experimental and should not be enabled by
7018 default yet.
4b4da299
LP
7019
7020 * "machinectl pull-tar" and related call may now do verification of
7021 downloaded images using SUSE-style .sha256 checksum files in addition
7022 to the already existing support for validating using Ubuntu-style
7023 SHA256SUMS files.
7024
7025 * sd-bus gained support for a new sd_bus_message_appendv() call which
7026 is va_list equivalent of sd_bus_message_append().
7027
7028 * sd-boot gained support for validating images using SHIM/MOK.
7029
7030 * The SMACK code learnt support for "onlycap".
7031
7032 * systemd-mount --umount is now much smarter in figuring out how to
7033 properly unmount a device given its mount or device path.
5486a31d
ZJS
7034
7035 * The code to call libnss_dns as a fallback from libnss_resolve when
7036 the communication with systemd-resolved fails was removed. This
7037 fallback was redundant and interfered with the [!UNAVAIL=return]
7038 suffix. See nss-resolve(8) for the recommended configuration.
7039
9f09a95a
ZJS
7040 * systemd-logind may now be restarted without losing state. It stores
7041 the file descriptors for devices it manages in the system manager
38d93385 7042 using the FDSTORE= mechanism. Please note that further changes in
9f09a95a
ZJS
7043 other components may be required to make use of this (for example
7044 Xorg has code to listen for stops of systemd-logind and terminate
7045 itself when logind is stopped or restarted, in order to avoid using
7046 stale file descriptors for graphical devices, which is now
7047 counterproductive and must be reverted in order for restarts of
7048 systemd-logind to be safe. See
7049 https://cgit.freedesktop.org/xorg/xserver/commit/?id=dc48bd653c7e101.)
7050
d271c5d3 7051 * All kernel-install plugins are called with the environment variable
9d8813b3 7052 KERNEL_INSTALL_MACHINE_ID which is set to the machine ID given by
d271c5d3
ZJS
7053 /etc/machine-id. If the machine ID could not be determined,
7054 $KERNEL_INSTALL_MACHINE_ID will be empty. Plugins should not put
7055 anything in the entry directory (passed as the second argument) if
5238e957 7056 $KERNEL_INSTALL_MACHINE_ID is empty. For backwards compatibility, a
d271c5d3
ZJS
7057 temporary directory is passed as the entry directory and removed
7058 after all the plugins exit.
9d8813b3 7059
357376d0
DDM
7060 * If KERNEL_INSTALL_MACHINE_ID is set in /etc/machine-info, kernel-install
7061 will now use its value as the machine ID instead of the machine ID
7062 from /etc/machine-id. If KERNEL_INSTALL_MACHINE_ID isn't set in
7063 /etc/machine-info and no machine ID is set in /etc/machine-id,
7064 kernel-install will try to store the current machine ID there as
7065 KERNEL_INSTALL_MACHINE_ID. If there is no machine ID, kernel-install
7066 will generate a new UUID, store it in /etc/machine-info as
7067 KERNEL_INSTALL_MACHINE_ID and use it as the machine ID.
7068
184d2c15 7069 Contributions from: Adrian Heine né Lang, Aggelos Avgerinos, Alexander
ac172e52
LP
7070 Kurtz, Alexandros Frantzis, Alexey Brodkin, Alex Lu, Amir Pakdel, Amir
7071 Yalon, Anchor Cat, Anthony Parsons, Bastien Nocera, Benjamin Gilbert,
7072 Benjamin Robin, Boucman, Charles Plessy, Chris Chiu, Chris Lamb,
7073 Christian Brauner, Christian Hesse, Colin Walters, Daniel Drake,
184d2c15
LP
7074 Danielle Church, Daniel Molkentin, Daniel Rusek, Daniel Wang, Davide
7075 Cavalca, David Herrmann, David Michael, Dax Kelson, Dimitri John
7076 Ledkov, Djalal Harouni, Dušan Kazik, Elias Probst, Evgeny Vereshchagin,
7077 Federico Di Pierro, Felipe Sateler, Felix Zhang, Franck Bui, Gary
ac172e52
LP
7078 Tierney, George McCollister, Giedrius Statkevičius, Hans de Goede,
7079 hecke, Hendrik Westerberg, Hristo Venev, Ian Wienand, Insun Pyo, Ivan
7080 Shapovalov, James Cowgill, James Hemsing, Janne Heß, Jan Synacek, Jason
7081 Reeder, João Paulo Rechi Vita, John Paul Adrian Glaubitz, Jörg
7082 Thalheim, Josef Andersson, Josef Gajdusek, Julian Mehne, Kai Krakow,
7083 Krzysztof Jackiewicz, Lars Karlitski, Lennart Poettering, Lluís Gili,
7084 Lucas Werkmeister, Lukáš Nykrýn, Łukasz Stelmach, Mantas Mikulėnas,
7085 Marcin Bachry, Marcus Cooper, Mark Stosberg, Martin Pitt, Matija Skala,
7086 Matt Clarkson, Matthew Garrett, Matthias Greiner, Matthijs van Duin,
7087 Max Resch, Michael Biebl, Michal Koutný, Michal Sekletar, Michal
7088 Soltys, Michal Suchanek, Mike Gilbert, Nate Clark, Nathaniel R. Lewis,
7089 Neil Brown, Nikolai Kondrashov, Pascal S. de Kloe, Pat Riehecky, Patrik
7090 Flykt, Paul Kocialkowski, Peter Hutterer, Philip Withnall, Piotr
7091 Szydełko, Rafael Fontenelle, Ray Strode, Richard Maw, Roelf Wichertjes,
7092 Ronny Chevalier, Sarang S. Dalal, Sjoerd Simons, slodki, Stefan
7093 Schweter, Susant Sahani, Ted Wood, Thomas Blume, Thomas Haller, Thomas
184d2c15
LP
7094 H. P. Andersen, Timothée Ravier, Tobias Jungel, Tobias Stoeckmann, Tom
7095 Gundersen, Tom Yan, Torstein Husebø, Umut Tezduyar Lindskog,
ac172e52
LP
7096 userwithuid, Vito Caputo, Waldemar Brodkorb, WaLyong Cho, Yu, Li-Yu,
7097 Yusuke Nojima, Yu Watanabe, Zbigniew Jędrzejewski-Szmek, Дамјан
7098 Георгиевски
4b4da299 7099
ac172e52 7100 — Berlin, 2017-07-12
4b4da299 7101
a2b53448 7102CHANGES WITH 233:
d08ee7cb 7103
23eb30b3
ZJS
7104 * The "hybrid" control group mode has been modified to improve
7105 compatibility with "legacy" cgroups-v1 setups. Specifically, the
7106 "hybrid" setup of /sys/fs/cgroup is now pretty much identical to
7107 "legacy" (including /sys/fs/cgroup/systemd as "name=systemd" named
7108 cgroups-v1 hierarchy), the only externally visible change being that
7109 the cgroups-v2 hierarchy is also mounted, to
7110 /sys/fs/cgroup/unified. This should provide a large degree of
7111 compatibility with "legacy" cgroups-v1, while taking benefit of the
7112 better management capabilities of cgroups-v2.
7113
7114 * The default control group setup mode may be selected both a boot-time
7115 via a set of kernel command line parameters (specifically:
7116 systemd.unified_cgroup_hierarchy= and
7117 systemd.legacy_systemd_cgroup_controller=), as well as a compile-time
7118 default selected on the configure command line
7119 (--with-default-hierarchy=). The upstream default is "hybrid"
7120 (i.e. the cgroups-v1 + cgroups-v2 mixture discussed above) now, but
7121 this will change in a future systemd version to be "unified" (pure
7122 cgroups-v2 mode). The third option for the compile time option is
7123 "legacy", to enter pure cgroups-v1 mode. We recommend downstream
7124 distributions to default to "hybrid" mode for release distributions,
7125 starting with v233. We recommend "unified" for development
7126 distributions (specifically: distributions such as Fedora's rawhide)
7127 as that's where things are headed in the long run. Use "legacy" for
7128 greatest stability and compatibility only.
7129
7130 * Note one current limitation of "unified" and "hybrid" control group
7131 setup modes: the kernel currently does not permit the systemd --user
7132 instance (i.e. unprivileged code) to migrate processes between two
7133 disconnected cgroup subtrees, even if both are managed and owned by
7134 the user. This effectively means "systemd-run --user --scope" doesn't
7135 work when invoked from outside of any "systemd --user" service or
7136 scope. Specifically, it is not supported from session scopes. We are
7137 working on fixing this in a future systemd version. (See #3388 for
7138 further details about this.)
7139
fb7c4eff
MG
7140 * DBus policy files are now installed into /usr rather than /etc. Make
7141 sure your system has dbus >= 1.9.18 running before upgrading to this
7142 version, or override the install path with --with-dbuspolicydir= .
7143
23eb30b3
ZJS
7144 * All python scripts shipped with systemd (specifically: the various
7145 tests written in Python) now require Python 3.
7146
d60c5270 7147 * systemd unit tests can now run standalone (without the source or
4dfe64f8
ZJS
7148 build directories), and can be installed into /usr/lib/systemd/tests/
7149 with 'make install-tests'.
7150
23eb30b3
ZJS
7151 * Note that from this version on, CONFIG_CRYPTO_USER_API_HASH,
7152 CONFIG_CRYPTO_HMAC and CONFIG_CRYPTO_SHA256 need to be enabled in the
7153 kernel.
7154
7155 * Support for the %c, %r, %R specifiers in unit files has been
7156 removed. Specifiers are not supposed to be dependent on configuration
7157 in the unit file itself (so that they resolve the same regardless
7158 where used in the unit files), but these specifiers were influenced
7159 by the Slice= option.
7160
5cfc0a84
LP
7161 * The shell invoked by debug-shell.service now defaults to /bin/sh in
7162 all cases. If distributions want to use a different shell for this
7163 purpose (for example Fedora's /sbin/sushell) they need to specify
7164 this explicitly at configure time using --with-debug-shell=.
7165
2bcc3309
FB
7166 * The confirmation spawn prompt has been reworked to offer the
7167 following choices:
7168
b0eb2944 7169 (c)ontinue, proceed without asking anymore
dd6f9ac0 7170 (D)ump, show the state of the unit
2bcc3309 7171 (f)ail, don't execute the command and pretend it failed
d172b175 7172 (h)elp
eedf223a 7173 (i)nfo, show a short summary of the unit
56fde33a 7174 (j)obs, show jobs that are in progress
2bcc3309
FB
7175 (s)kip, don't execute the command and pretend it succeeded
7176 (y)es, execute the command
7177
7178 The 'n' choice for the confirmation spawn prompt has been removed,
7179 because its meaning was confusing.
7180
d08ee7cb
LP
7181 The prompt may now also be redirected to an alternative console by
7182 specifying the console as parameter to systemd.confirm_spawn=.
7183
8e458bfe
JW
7184 * Services of Type=notify require a READY=1 notification to be sent
7185 during startup. If no such message is sent, the service now fails,
7186 even if the main process exited with a successful exit code.
7187
85266f9b
LP
7188 * Services that fail to start up correctly now always have their
7189 ExecStopPost= commands executed. Previously, they'd enter "failed"
7190 state directly, without executing these commands.
7191
baf32786
MP
7192 * The option MulticastDNS= of network configuration files has acquired
7193 an actual implementation. With MulticastDNS=yes a host can resolve
23eb30b3 7194 names of remote hosts and reply to mDNS A and AAAA requests.
fa8b4499 7195
631b676b
LP
7196 * When units are about to be started an additional check is now done to
7197 ensure that all dependencies of type BindsTo= (when used in
7198 combination with After=) have been started.
7199
d08ee7cb
LP
7200 * systemd-analyze gained a new verb "syscall-filter" which shows which
7201 system call groups are defined for the SystemCallFilter= unit file
23eb30b3 7202 setting, and which system calls they contain.
d08ee7cb
LP
7203
7204 * A new system call filter group "@filesystem" has been added,
23eb30b3 7205 consisting of various file system related system calls. Group
d08ee7cb 7206 "@reboot" has been added, covering reboot, kexec and shutdown related
23eb30b3 7207 calls. Finally, group "@swap" has been added covering swap
d08ee7cb
LP
7208 configuration related calls.
7209
7210 * A new unit file option RestrictNamespaces= has been added that may be
7211 used to restrict access to the various process namespace types the
7212 Linux kernel provides. Specifically, it may be used to take away the
23eb30b3
ZJS
7213 right for a service unit to create additional file system, network,
7214 user, and other namespaces. This sandboxing option is particularly
7215 relevant due to the high amount of recently discovered namespacing
7216 related vulnerabilities in the kernel.
d08ee7cb 7217
23eb30b3
ZJS
7218 * systemd-udev's .link files gained support for a new AutoNegotiation=
7219 setting for configuring Ethernet auto-negotiation.
d08ee7cb
LP
7220
7221 * systemd-networkd's .network files gained support for a new
7222 ListenPort= setting in the [DHCP] section to explicitly configure the
7223 UDP client port the DHCP client shall listen on.
7224
23eb30b3
ZJS
7225 * .network files gained a new Unmanaged= boolean setting for explicitly
7226 excluding one or more interfaces from management by systemd-networkd.
7227
7228 * The systemd-networkd ProxyARP= option has been renamed to
7229 IPV4ProxyARP=. Similarly, VXLAN-specific option ARPProxy= has been
7230 renamed to ReduceARPProxy=. The old names continue to be available
7231 for compatibility.
7232
7233 * systemd-networkd gained support for configuring IPv6 Proxy NDP
7234 addresses via the new IPv6ProxyNDPAddress= .network file setting.
7235
7236 * systemd-networkd's bonding device support gained support for two new
7237 configuration options ActiveSlave= and PrimarySlave=.
7238
7239 * The various options in the [Match] section of .network files gained
7240 support for negative matching.
7241
d08ee7cb
LP
7242 * New systemd-specific mount options are now understood in /etc/fstab:
7243
7244 x-systemd.mount-timeout= may be used to configure the maximum
7245 permitted runtime of the mount command.
7246
7247 x-systemd.device-bound may be set to bind a mount point to its
7248 backing device unit, in order to automatically remove a mount point
7249 if its backing device is unplugged. This option may also be
7250 configured through the new SYSTEMD_MOUNT_DEVICE_BOUND udev property
7251 on the block device, which is now automatically set for all CDROM
7252 drives, so that mounted CDs are automatically unmounted when they are
7253 removed from the drive.
7254
23eb30b3
ZJS
7255 x-systemd.after= and x-systemd.before= may be used to explicitly
7256 order a mount after or before another unit or mount point.
d08ee7cb
LP
7257
7258 * Enqueued start jobs for device units are now automatically garbage
7259 collected if there are no jobs waiting for them anymore.
7260
23eb30b3
ZJS
7261 * systemctl list-jobs gained two new switches: with --after, for every
7262 queued job the jobs it's waiting for are shown; with --before the
7263 jobs which it's blocking are shown.
d08ee7cb
LP
7264
7265 * systemd-nspawn gained support for ephemeral boots from disk images
7266 (or in other words: --ephemeral and --image= may now be
7267 combined). Moreover, ephemeral boots are now supported for normal
7268 directories, even if the backing file system is not btrfs. Of course,
baf32786
MP
7269 if the file system does not support file system snapshots or
7270 reflinks, the initial copy operation will be relatively expensive, but
7271 this should still be suitable for many use cases.
d08ee7cb
LP
7272
7273 * Calendar time specifications in .timer units now support
7274 specifications relative to the end of a month by using "~" instead of
7275 "-" as separator between month and day. For example, "*-02~03" means
23eb30b3 7276 "the third last day in February". In addition a new syntax for
d08ee7cb
LP
7277 repeated events has been added using the "/" character. For example,
7278 "9..17/2:00" means "every two hours from 9am to 5pm".
7279
7280 * systemd-socket-proxyd gained a new parameter --connections-max= for
7281 configuring the maximum number of concurrent connections.
7282
23eb30b3
ZJS
7283 * sd-id128 gained a new API for generating unique IDs for the host in a
7284 way that does not leak the machine ID. Specifically,
d08ee7cb 7285 sd_id128_get_machine_app_specific() derives an ID based on the
387f6955 7286 machine ID in a well-defined, non-reversible, stable way. This is
d08ee7cb
LP
7287 useful whenever an identifier for the host is needed but where the
7288 identifier shall not be useful to identify the system beyond the
7289 scope of the application itself. (Internally this uses HMAC-SHA256 as
7290 keyed hash function using the machine ID as input.)
7291
7292 * NotifyAccess= gained a new supported value "exec". When set
7293 notifications are accepted from all processes systemd itself invoked,
7294 including all control processes.
7295
7296 * .nspawn files gained support for defining overlay mounts using the
7297 Overlay= and OverlayReadOnly= options. Previously this functionality
7298 was only available on the systemd-nspawn command line.
7299
7300 * systemd-nspawn's --bind= and --overlay= options gained support for
7301 bind/overlay mounts whose source lies within the container tree by
7302 prefixing the source path with "+".
7303
7304 * systemd-nspawn's --bind= and --overlay= options gained support for
7305 automatically allocating a temporary source directory in /var/tmp
7306 that is removed when the container dies. Specifically, if the source
7307 directory is specified as empty string this mechanism is selected. An
7308 example usage is --overlay=+/var::/var, which creates an overlay
86b52a39 7309 mount based on the original /var contained in the image, overlaid
d08ee7cb
LP
7310 with a temporary directory in the host's /var/tmp. This way changes
7311 to /var are automatically flushed when the container shuts down.
7312
baf32786
MP
7313 * systemd-nspawn --image= option does now permit raw file system block
7314 devices (in addition to images containing partition tables, as
7315 before).
d08ee7cb
LP
7316
7317 * The disk image dissection logic in systemd-nspawn gained support for
7318 automatically setting up LUKS encrypted as well as Verity protected
7319 partitions. When a container is booted from an encrypted image the
7320 passphrase is queried at start-up time. When a container with Verity
7321 data is started, the root hash is search in a ".roothash" file
7322 accompanying the disk image (alternatively, pass the root hash via
7323 the new --root-hash= command line option).
7324
7325 * A new tool /usr/lib/systemd/systemd-dissect has been added that may
7326 be used to dissect disk images the same way as systemd-nspawn does
7327 it, following the Bootable Partition Specification. It may even be
7328 used to mount disk images with complex partition setups (including
7329 LUKS and Verity partitions) to a local host directory, in order to
7330 inspect them. This tool is not considered public API (yet), and is
7331 thus not installed into /usr/bin. Please do not rely on its
3b31c466 7332 existence, since it might go away or be changed in later systemd
d08ee7cb
LP
7333 versions.
7334
7335 * A new generator "systemd-verity-generator" has been added, similar in
baf32786 7336 style to "systemd-cryptsetup-generator", permitting automatic setup of
d08ee7cb
LP
7337 Verity root partitions when systemd boots up. In order to make use of
7338 this your partition setup should follow the Discoverable Partitions
7339 Specification, and the GPT partition ID of the root file system
7340 partition should be identical to the upper 128bit of the Verity root
7341 hash. The GPT partition ID of the Verity partition protecting it
7342 should be the lower 128bit of the Verity root hash. If the partition
7343 image follows this model it is sufficient to specify a single
7344 "roothash=" kernel command line argument to both configure which root
7345 image and verity partition to use as well as the root hash for
7346 it. Note that systemd-nspawn's Verity support follows the same
7347 semantics, meaning that disk images with proper Verity data in place
7348 may be booted in containers with systemd-nspawn as well as on
7349 physical systems via the verity generator. Also note that the "mkosi"
7350 tool available at https://github.com/systemd/mkosi has been updated
7351 to generate Verity protected disk images following this scheme. In
7352 fact, it has been updated to generate disk images that optionally
7353 implement a complete UEFI SecureBoot trust chain, involving a signed
7354 kernel and initrd image that incorporates such a root hash as well as
7355 a Verity-enabled root partition.
7356
d08ee7cb
LP
7357 * The hardware database (hwdb) udev supports has been updated to carry
7358 accelerometer quirks.
7359
7360 * All system services are now run with a fresh kernel keyring set up
7361 for them. The invocation ID is stored by default in it, thus
7362 providing a safe, non-overridable way to determine the invocation
7363 ID of each service.
7364
7365 * Service unit files gained new BindPaths= and BindReadOnlyPaths=
7366 options for bind mounting arbitrary paths in a service-specific
7367 way. When these options are used, arbitrary host or service files and
7368 directories may be mounted to arbitrary locations in the service's
7369 view.
7370
7371 * Documentation has been added that lists all of systemd's low-level
7372 environment variables:
7373
a8a27374 7374 https://github.com/systemd/systemd/blob/master/docs/ENVIRONMENT.md
d08ee7cb
LP
7375
7376 * sd-daemon gained a new API sd_is_socket_sockaddr() for determining
7377 whether a specific socket file descriptor matches a specified socket
7378 address.
7379
7380 * systemd-firstboot has been updated to check for the
7381 systemd.firstboot= kernel command line option. It accepts a boolean
7382 and when set to false the first boot questions are skipped.
7383
d08ee7cb 7384 * systemd-fstab-generator has been updated to check for the
23eb30b3
ZJS
7385 systemd.volatile= kernel command line option, which either takes an
7386 optional boolean parameter or the special value "state". If used the
7387 system may be booted in a "volatile" boot mode. Specifically,
7388 "systemd.volatile" is used, the root directory will be mounted as
d08ee7cb 7389 tmpfs, and only /usr is mounted from the actual root file system. If
23eb30b3
ZJS
7390 "systemd.volatile=state" is used, the root directory will be mounted
7391 as usual, but /var is mounted as tmpfs. This concept provides similar
d08ee7cb
LP
7392 functionality as systemd-nspawn's --volatile= option, but provides it
7393 on physical boots. Use this option for implementing stateless
7394 systems, or testing systems with all state and/or configuration reset
7395 to the defaults. (Note though that many distributions are not
23eb30b3 7396 prepared to boot up without a populated /etc or /var, though.)
d08ee7cb
LP
7397
7398 * systemd-gpt-auto-generator gained support for LUKS encrypted root
7399 partitions. Previously it only supported LUKS encrypted partitions
7400 for all other uses, except for the root partition itself.
7401
7402 * Socket units gained support for listening on AF_VSOCK sockets for
7403 communication in virtualized QEMU environments.
7404
7405 * The "configure" script gained a new option --with-fallback-hostname=
7406 for specifying the fallback hostname to use if none is configured in
7407 /etc/hostname. For example, by specifying
7408 --with-fallback-hostname=fedora it is possible to default to a
23eb30b3 7409 hostname of "fedora" on pristine installations.
d08ee7cb
LP
7410
7411 * systemd-cgls gained support for a new --unit= switch for listing only
7412 the control groups of a specific unit. Similar --user-unit= has been
7413 added for listing only the control groups of a specific user unit.
7414
7415 * systemd-mount gained a new --umount switch for unmounting a mount or
7416 automount point (and all mount/automount points below it).
7417
7418 * systemd will now refuse full configuration reloads (via systemctl
7419 daemon-reload and related calls) unless at least 16MiB of free space
7420 are available in /run. This is a safety precaution in order to ensure
7421 that generators can safely operate after the reload completed.
7422
7423 * A new unit file option RootImage= has been added, which has a similar
7424 effect as RootDirectory= but mounts the service's root directory from
7425 a disk image instead of plain directory. This logic reuses the same
7426 image dissection and mount logic that systemd-nspawn already uses,
7427 and hence supports any disk images systemd-nspawn supports, including
7428 those following the Discoverable Partition Specification, as well as
7429 Verity enabled images. This option enables systemd to run system
7430 services directly off disk images acting as resource bundles,
7431 possibly even including full integrity data.
7432
7433 * A new MountAPIVFS= unit file option has been added, taking a boolean
baf32786 7434 argument. If enabled /proc, /sys and /dev (collectively called the
d08ee7cb
LP
7435 "API VFS") will be mounted for the service. This is only relevant if
7436 RootDirectory= or RootImage= is used for the service, as these mounts
7437 are of course in place in the host mount namespace anyway.
7438
7439 * systemd-nspawn gained support for a new --pivot-root= switch. If
7440 specified the root directory within the container image is pivoted to
7441 the specified mount point, while the original root disk is moved to a
7442 different place. This option enables booting of ostree images
7443 directly with systemd-nspawn.
7444
d08ee7cb 7445 * The systemd build scripts will no longer complain if the NTP server
23eb30b3 7446 addresses are not changed from the defaults. Google now supports
d08ee7cb
LP
7447 these NTP servers officially. We still recommend downstreams to
7448 properly register an NTP pool with the NTP pool project though.
7449
c1ec34d1 7450 * coredumpctl gained a new "--reverse" option for printing the list
d08ee7cb
LP
7451 of coredumps in reverse order.
7452
23eb30b3
ZJS
7453 * coredumpctl will now show additional information about truncated and
7454 inaccessible coredumps, as well as coredumps that are still being
7455 processed. It also gained a new --quiet switch for suppressing
7456 additional informational message in its output.
7457
7458 * coredumpctl gained support for only showing coredumps newer and/or
7459 older than specific timestamps, using the new --since= and --until=
7460 options, reminiscent of journalctl's options by the same name.
7461
d08ee7cb 7462 * The systemd-coredump logic has been improved so that it may be reused
23eb30b3 7463 to collect backtraces in non-compiled languages, for example in
d08ee7cb
LP
7464 scripting languages such as Python.
7465
7466 * machinectl will now show the UID shift of local containers, if user
7467 namespacing is enabled for them.
7468
baf32786 7469 * systemd will now optionally run "environment generator" binaries at
d08ee7cb
LP
7470 configuration load time. They may be used to add environment
7471 variables to the environment block passed to services invoked. One
baf32786 7472 user environment generator is shipped by default that sets up
23eb30b3
ZJS
7473 environment variables based on files dropped into /etc/environment.d
7474 and ~/.config/environment.d/.
d08ee7cb 7475
a2b53448
LP
7476 * systemd-resolved now includes the new, recently published 2017 DNSSEC
7477 root key (KSK).
7478
a2b53448
LP
7479 * hostnamed has been updated to report a new chassis type of
7480 "convertible" to cover "foldable" laptops that can both act as a
7481 tablet and as a laptop, such as various Lenovo Yoga devices.
7482
d08ee7cb
LP
7483 Contributions from: Adrián López, Alexander Galanin, Alexander
7484 Kochetkov, Alexandros Frantzis, Andrey Ulanov, Antoine Eiche, Baruch
7485 Siach, Bastien Nocera, Benjamin Robin, Björn, Brandon Philips, Cédric
7486 Schieli, Charles (Chas) Williams, Christian Hesse, Daniele Medri,
7487 Daniel Drake, Daniel Rusek, Daniel Wagner, Dan Streetman, Dave Reisner,
7488 David Glasser, David Herrmann, David Michael, Djalal Harouni, Dmitry
7489 Khlebnikov, Dmitry Rozhkov, Dongsu Park, Douglas Christman, Earnestly,
7490 Emil Soleyman, Eric Cook, Evgeny Vereshchagin, Felipe Sateler, Fionn
7491 Cleary, Florian Klink, Francesco Brozzu, Franck Bui, Gabriel Rauter,
a2b53448
LP
7492 Gianluca Boiano, Giedrius Statkevičius, Graeme Lawes, Hans de Goede,
7493 Harald Hoyer, Ian Kelling, Ivan Shapovalov, Jakub Wilk, Janne Heß, Jan
7494 Synacek, Jason Reeder, Jonathan Boulle, Jörg Thalheim, Jouke Witteveen,
7495 Karl Kraus, Kees Cook, Keith Busch, Kieran Colford, kilian-k, Lennart
7496 Poettering, Lubomir Rintel, Lucas Werkmeister, Lukas Rusak, Maarten de
7497 Vries, Maks Naumov, Mantas Mikulėnas, Marc-Andre Lureau, Marcin Bachry,
7498 Mark Stosberg, Martin Ejdestig, Martin Pitt, Mauricio Faria de
7499 Oliveira, micah, Michael Biebl, Michael Shields, Michal Schmidt, Michal
7500 Sekletar, Michel Kraus, Mike Gilbert, Mikko Ylinen, Mirza Krak,
7501 Namhyung Kim, nikolaof, peoronoob, Peter Hutterer, Peter Körner, Philip
7502 Withnall, Piotr Drąg, Ray Strode, Reverend Homer, Rike-Benjamin
7503 Schuppner, Robert Kreuzer, Ronny Chevalier, Ruslan Bilovol, sammynx,
7504 Sergey Ptashnick, Sergiusz Urbaniak, Stefan Berger, Stefan Hajnoczi,
7505 Stefan Schweter, Stuart McLaren, Susant Sahani, Sylvain Plantefève,
7506 Taylor Smock, Tejun Heo, Thomas Blume, Thomas H. P. Andersen, Tibor
7507 Nagy, Tobias Stoeckmann, Tom Gundersen, Torstein Husebø, Viktar
7508 Vaŭčkievič, Viktor Mihajlovski, Vitaly Sulimov, Waldemar Brodkorb,
7509 Walter Garcia-Fontes, Wim de With, Yassine Imounachen, Yi EungJun,
7510 YunQiang Su, Yu Watanabe, Zbigniew Jędrzejewski-Szmek, Александр
7511 Тихонов
7512
7513 — Berlin, 2017-03-01
d08ee7cb 7514
54b24597 7515CHANGES WITH 232:
76153ad4 7516
05f426d2
LP
7517 * udev now runs with MemoryDenyWriteExecute=, RestrictRealtime= and
7518 RestrictAddressFamilies= enabled. These sandboxing options should
7519 generally be compatible with the various external udev call-out
7520 binaries we are aware of, however there may be exceptions, in
7521 particular when exotic languages for these call-outs are used. In
7522 this case, consider turning off these settings locally.
7523
4ffe2479
ZJS
7524 * The new RemoveIPC= option can be used to remove IPC objects owned by
7525 the user or group of a service when that service exits.
7526
6fa44114 7527 * The new ProtectKernelModules= option can be used to disable explicit
4c37970d
LP
7528 load and unload operations of kernel modules by a service. In
7529 addition access to /usr/lib/modules is removed if this option is set.
6fa44114 7530
4a77c53d
ZJS
7531 * ProtectSystem= option gained a new value "strict", which causes the
7532 whole file system tree with the exception of /dev, /proc, and /sys,
7533 to be remounted read-only for a service.
7534
e49e2c25 7535 * The new ProtectKernelTunables= option can be used to disable
4a77c53d
ZJS
7536 modification of configuration files in /sys and /proc by a service.
7537 Various directories and files are remounted read-only, so access is
7538 restricted even if the file permissions would allow it.
7539
6fa44114 7540 * The new ProtectControlGroups= option can be used to disable write
4a77c53d
ZJS
7541 access by a service to /sys/fs/cgroup.
7542
7543 * Various systemd services have been hardened with
7544 ProtectKernelTunables=yes, ProtectControlGroups=yes,
7545 RestrictAddressFamilies=.
7546
4ffe2479
ZJS
7547 * Support for dynamically creating users for the lifetime of a service
7548 has been added. If DynamicUser=yes is specified, user and group IDs
1d3a473b 7549 will be allocated from the range 61184…65519 for the lifetime of the
4ffe2479
ZJS
7550 service. They can be resolved using the new nss-systemd.so NSS
7551 module. The module must be enabled in /etc/nsswitch.conf. Services
7552 started in this way have PrivateTmp= and RemoveIPC= enabled, so that
7553 any resources allocated by the service will be cleaned up when the
4a77c53d
ZJS
7554 service exits. They also have ProtectHome=read-only and
7555 ProtectSystem=strict enabled, so they are not able to make any
7556 permanent modifications to the system.
4ffe2479 7557
171ae2cd 7558 * The nss-systemd module also always resolves root and nobody, making
4ffe2479 7559 it possible to have no /etc/passwd or /etc/group files in minimal
171ae2cd 7560 container or chroot environments.
4ffe2479
ZJS
7561
7562 * Services may be started with their own user namespace using the new
171ae2cd
LP
7563 boolean PrivateUsers= option. Only root, nobody, and the uid/gid
7564 under which the service is running are mapped. All other users are
7565 mapped to nobody.
4ffe2479
ZJS
7566
7567 * Support for the cgroup namespace has been added to systemd-nspawn. If
7568 supported by kernel, the container system started by systemd-nspawn
7569 will have its own view of the cgroup hierarchy. This new behaviour
7570 can be disabled using $SYSTEMD_NSPAWN_USE_CGNS environment variable.
7571
7572 * The new MemorySwapMax= option can be used to limit the maximum swap
7573 usage under the unified cgroup hierarchy.
7574
7575 * Support for the CPU controller in the unified cgroup hierarchy has
7576 been added, via the CPUWeight=, CPUStartupWeight=, CPUAccounting=
7577 options. This controller requires out-of-tree patches for the kernel
7578 and the support is provisional.
7579
171ae2cd
LP
7580 * Mount and automount units may now be created transiently
7581 (i.e. dynamically at runtime via the bus API, instead of requiring
7582 unit files in the file system).
7583
7584 * systemd-mount is a new tool which may mount file systems – much like
7585 mount(8), optionally pulling in additional dependencies through
7586 transient .mount and .automount units. For example, this tool
7587 automatically runs fsck on a backing block device before mounting,
7588 and allows the automount logic to be used dynamically from the
7589 command line for establishing mount points. This tool is particularly
7590 useful when dealing with removable media, as it will ensure fsck is
7591 run – if necessary – before the first access and that the file system
7592 is quickly unmounted after each access by utilizing the automount
7593 logic. This maximizes the chance that the file system on the
7594 removable media stays in a clean state, and if it isn't in a clean
7595 state is fixed automatically.
4ffe2479
ZJS
7596
7597 * LazyUnmount=yes option for mount units has been added to expose the
7598 umount --lazy option. Similarly, ForceUnmount=yes exposes the --force
7599 option.
7600
7601 * /efi will be used as the mount point of the EFI boot partition, if
7602 the directory is present, and the mount point was not configured
7603 through other means (e.g. fstab). If /efi directory does not exist,
7604 /boot will be used as before. This makes it easier to automatically
7605 mount the EFI partition on systems where /boot is used for something
7606 else.
7607
171ae2cd
LP
7608 * When operating on GPT disk images for containers, systemd-nspawn will
7609 now mount the ESP to /boot or /efi according to the same rules as PID
7610 1 running on a host. This allows tools like "bootctl" to operate
7611 correctly within such containers, in order to make container images
7612 bootable on physical systems.
7613
4a77c53d 7614 * disk/by-id and disk/by-path symlinks are now created for NVMe drives.
4ffe2479
ZJS
7615
7616 * Two new user session targets have been added to support running
7617 graphical sessions under the systemd --user instance:
7618 graphical-session.target and graphical-session-pre.target. See
7619 systemd.special(7) for a description of how those targets should be
7620 used.
7621
7622 * The vconsole initialization code has been significantly reworked to
d4c08299 7623 use KD_FONT_OP_GET/SET ioctls instead of KD_FONT_OP_COPY and better
4ffe2479
ZJS
7624 support unicode keymaps. Font and keymap configuration will now be
7625 copied to all allocated virtual consoles.
7626
05ecf467 7627 * FreeBSD's bhyve virtualization is now detected.
4ffe2479 7628
d4c08299 7629 * Information recorded in the journal for core dumps now includes the
4ffe2479
ZJS
7630 contents of /proc/mountinfo and the command line of the process at
7631 the top of the process hierarchy (which is usually the init process
7632 of the container).
7633
171ae2cd 7634 * systemd-journal-gatewayd learned the --directory= option to serve
4ffe2479
ZJS
7635 files from the specified location.
7636
7637 * journalctl --root=… can be used to peruse the journal in the
7638 /var/log/ directories inside of a container tree. This is similar to
7639 the existing --machine= option, but does not require the container to
7640 be active.
7641
7642 * The hardware database has been extended to support
7643 ID_INPUT_TRACKBALL, used in addition to ID_INPUT_MOUSE to identify
7644 trackball devices.
7645
7646 MOUSE_WHEEL_CLICK_ANGLE_HORIZONTAL hwdb property has been added to
7647 specify the click rate for mice which include a horizontal wheel with
7648 a click rate that is different than the one for the vertical wheel.
7649
7650 * systemd-run gained a new --wait option that makes service execution
171ae2cd
LP
7651 synchronous. (Specifically, the command will not return until the
7652 specified service binary exited.)
4ffe2479 7653
171ae2cd 7654 * systemctl gained a new --wait option that causes the start command to
4a77c53d
ZJS
7655 wait until the units being started have terminated again.
7656
171ae2cd 7657 * A new journal output mode "short-full" has been added which displays
4ffe2479 7658 timestamps with abbreviated English day names and adds a timezone
171ae2cd
LP
7659 suffix. Those timestamps include more information than the default
7660 "short" output mode, and can be passed directly to journalctl's
7661 --since= and --until= options.
4ffe2479
ZJS
7662
7663 * /etc/resolv.conf will be bind-mounted into containers started by
7664 systemd-nspawn, if possible, so any changes to resolv.conf contents
7665 are automatically propagated to the container.
7666
7667 * The number of instances for socket-activated services originating
171ae2cd
LP
7668 from a single IP address can be limited with
7669 MaxConnectionsPerSource=, extending the existing setting of
7670 MaxConnections=.
4ffe2479 7671
4a77c53d
ZJS
7672 * systemd-networkd gained support for vcan ("Virtual CAN") interface
7673 configuration.
7674
7675 * .netdev and .network configuration can now be extended through
7676 drop-ins.
7677
4ffe2479
ZJS
7678 * UDP Segmentation Offload, TCP Segmentation Offload, Generic
7679 Segmentation Offload, Generic Receive Offload, Large Receive Offload
7680 can be enabled and disabled using the new UDPSegmentationOffload=,
7681 TCPSegmentationOffload=, GenericSegmentationOffload=,
7682 GenericReceiveOffload=, LargeReceiveOffload= options in the
7683 [Link] section of .link files.
7684
171ae2cd
LP
7685 * The Spanning Tree Protocol, Priority, Aging Time, and the Default
7686 Port VLAN ID can be configured for bridge devices using the new STP=,
7687 Priority=, AgeingTimeSec=, and DefaultPVID= settings in the [Bridge]
7688 section of .netdev files.
4ffe2479 7689
171ae2cd 7690 * The route table to which routes received over DHCP or RA should be
4a77c53d
ZJS
7691 added can be configured with the new RouteTable= option in the [DHCP]
7692 and [IPv6AcceptRA] sections of .network files.
7693
171ae2cd 7694 * The Address Resolution Protocol can be disabled on links managed by
4ffe2479
ZJS
7695 systemd-networkd using the ARP=no setting in the [Link] section of
7696 .network files.
7697
171ae2cd
LP
7698 * New environment variables $SERVICE_RESULT, $EXIT_CODE and
7699 $EXIT_STATUS are set for ExecStop= and ExecStopPost= commands, and
7700 encode information about the result and exit codes of the current
7701 service runtime cycle.
4ffe2479 7702
4a77c53d 7703 * systemd-sysctl will now configure kernel parameters in the order
1f4f4cf7 7704 they occur in the configuration files. This matches what sysctl
4a77c53d
ZJS
7705 has been traditionally doing.
7706
7707 * kernel-install "plugins" that are executed to perform various
7708 tasks after a new kernel is added and before an old one is removed
7709 can now return a special value to terminate the procedure and
7710 prevent any later plugins from running.
7711
76153ad4 7712 * Journald's SplitMode=login setting has been deprecated. It has been
d4c08299 7713 removed from documentation, and its use is discouraged. In a future
76153ad4
ZJS
7714 release it will be completely removed, and made equivalent to current
7715 default of SplitMode=uid.
7716
4a77c53d
ZJS
7717 * Storage=both option setting in /etc/systemd/coredump.conf has been
7718 removed. With fast LZ4 compression storing the core dump twice is not
7719 useful.
7720
4ffe2479
ZJS
7721 * The --share-system systemd-nspawn option has been replaced with an
7722 (undocumented) variable $SYSTEMD_NSPAWN_SHARE_SYSTEM, but the use of
7723 this functionality is discouraged. In addition the variables
7724 $SYSTEMD_NSPAWN_SHARE_NS_IPC, $SYSTEMD_NSPAWN_SHARE_NS_PID,
7725 $SYSTEMD_NSPAWN_SHARE_NS_UTS may be used to control the unsharing of
7726 individual namespaces.
7727
171ae2cd
LP
7728 * "machinectl list" now shows the IP address of running containers in
7729 the output, as well as OS release information.
7730
7731 * "loginctl list" now shows the TTY of each session in the output.
7732
7733 * sd-bus gained new API calls sd_bus_track_set_recursive(),
7734 sd_bus_track_get_recursive(), sd_bus_track_count_name(),
7735 sd_bus_track_count_sender(). They permit usage of sd_bus_track peer
7736 tracking objects in a "recursive" mode, where a single client can be
7737 counted multiple times, if it takes multiple references.
7738
7739 * sd-bus gained new API calls sd_bus_set_exit_on_disconnect() and
bc99dac5 7740 sd_bus_get_exit_on_disconnect(). They may be used to make a
171ae2cd
LP
7741 process using sd-bus automatically exit if the bus connection is
7742 severed.
7743
7744 * Bus clients of the service manager may now "pin" loaded units into
7745 memory, by taking an explicit reference on them. This is useful to
7746 ensure the client can retrieve runtime data about the service even
7747 after the service completed execution. Taking such a reference is
7748 available only for privileged clients and should be helpful to watch
7749 running services in a race-free manner, and in particular collect
7750 information about exit statuses and results.
7751
4c37970d
LP
7752 * The nss-resolve module has been changed to strictly return UNAVAIL
7753 when communication via D-Bus with resolved failed, and NOTFOUND when
7754 a lookup completed but was negative. This means it is now possible to
7755 neatly configure fallbacks using nsswitch.conf result checking
7756 expressions. Taking benefit of this, the new recommended
7757 configuration line for the "hosts" entry in /etc/nsswitch.conf is:
7758
7759 hosts: files mymachines resolve [!UNAVAIL=return] dns myhostname
7760
7761 * A new setting CtrlAltDelBurstAction= has been added to
7762 /etc/systemd/system.conf which may be used to configure the precise
7763 behaviour if the user on the console presses Ctrl-Alt-Del more often
7764 than 7 times in 2s. Previously this would unconditionally result in
7765 an expedited, immediate reboot. With this new setting the precise
7766 operation may be configured in more detail, and also turned off
7767 entirely.
7768
7769 * In .netdev files two new settings RemoteChecksumTx= and
7770 RemoteChecksumRx= are now understood that permit configuring the
7771 remote checksumming logic for VXLAN networks.
7772
7773 * The service manager learnt a new "invocation ID" concept for invoked
7774 services. Each runtime cycle of a service will get a new invocation
7775 ID (a 128bit random UUID) assigned that identifies the current
7776 run of the service uniquely and globally. A new invocation ID
7777 is generated each time a service starts up. The journal will store
7778 the invocation ID of a service along with any logged messages, thus
7779 making the invocation ID useful for matching the online runtime of a
7780 service with the offline log data it generated in a safe way without
7781 relying on synchronized timestamps. In many ways this new service
7782 invocation ID concept is similar to the kernel's boot ID concept that
7783 uniquely and globally identifies the runtime of each boot. The
7784 invocation ID of a service is passed to the service itself via an
7785 environment variable ($INVOCATION_ID). A new bus call
7786 GetUnitByInvocationID() has been added that is similar to GetUnit()
7787 but instead of retrieving the bus path for a unit by its name
7788 retrieves it by its invocation ID. The returned path is valid only as
7789 long as the passed invocation ID is current.
7790
7791 * systemd-resolved gained a new "DNSStubListener" setting in
7792 resolved.conf. It either takes a boolean value or the special values
7793 "udp" and "tcp", and configures whether to enable the stub DNS
7794 listener on 127.0.0.53:53.
7795
7796 * IP addresses configured via networkd may now carry additional
7797 configuration settings supported by the kernel. New options include:
7798 HomeAddress=, DuplicateAddressDetection=, ManageTemporaryAddress=,
7799 PrefixRoute=, AutoJoin=.
7800
7801 * The PAM configuration fragment file for "user@.service" shipped with
7802 systemd (i.e. the --user instance of systemd) has been stripped to
7803 the minimum necessary to make the system boot. Previously, it
7804 contained Fedora-specific stanzas that did not apply to other
7805 distributions. It is expected that downstream distributions add
7806 additional configuration lines, matching their needs to this file,
7807 using it only as rough template of what systemd itself needs. Note
7808 that this reduced fragment does not even include an invocation of
7809 pam_limits which most distributions probably want to add, even though
7810 systemd itself does not need it. (There's also the new build time
7811 option --with-pamconfdir=no to disable installation of the PAM
7812 fragment entirely.)
7813
7814 * If PrivateDevices=yes is set for a service the CAP_SYS_RAWIO
7815 capability is now also dropped from its set (in addition to
7816 CAP_SYS_MKNOD as before).
7817
7818 * In service unit files it is now possible to connect a specific named
7819 file descriptor with stdin/stdout/stdout of an executed service. The
7820 name may be specified in matching .socket units using the
7821 FileDescriptorName= setting.
7822
7823 * A number of journal settings may now be configured on the kernel
7824 command line. Specifically, the following options are now understood:
7825 systemd.journald.max_level_console=,
7826 systemd.journald.max_level_store=,
7827 systemd.journald.max_level_syslog=, systemd.journald.max_level_kmsg=,
7828 systemd.journald.max_level_wall=.
7829
7830 * "systemctl is-enabled --full" will now show by which symlinks a unit
7831 file is enabled in the unit dependency tree.
7832
b4eed568
LP
7833 * Support for VeraCrypt encrypted partitions has been added to the
7834 "cryptsetup" logic and /etc/crypttab.
7835
7836 * systemd-detect-virt gained support for a new --private-users switch
7837 that checks whether the invoking processes are running inside a user
7838 namespace. Similar, a new special value "private-users" for the
7839 existing ConditionVirtualization= setting has been added, permitting
7840 skipping of specific units in user namespace environments.
7841
07393b6e
LP
7842 Contributions from: Alban Crequy, Alexander Kuleshov, Alfie John,
7843 Andreas Henriksson, Andrew Jeddeloh, Balázs Úr, Bart Rulon, Benjamin
7844 Richter, Ben Gamari, Ben Harris, Brian J. Murrell, Christian Brauner,
7845 Christian Rebischke, Clinton Roy, Colin Walters, Cristian Rodríguez,
7846 Daniel Hahler, Daniel Mack, Daniel Maixner, Daniel Rusek, Dan Dedrick,
7847 Davide Cavalca, David Herrmann, David Michael, Dennis Wassenberg,
7848 Djalal Harouni, Dongsu Park, Douglas Christman, Elias Probst, Eric
7849 Cook, Erik Karlsson, Evgeny Vereshchagin, Felipe Sateler, Felix Zhang,
7850 Franck Bui, George Hilliard, Giuseppe Scrivano, HATAYAMA Daisuke,
7851 Heikki Kemppainen, Hendrik Brueckner, hi117, Ismo Puustinen, Ivan
7852 Shapovalov, Jakub Filak, Jakub Wilk, Jan Synacek, Jason Kölker,
7853 Jean-Sébastien Bour, Jiří Pírko, Jonathan Boulle, Jorge Niedbalski,
7854 Keith Busch, kristbaum, Kyle Russell, Lans Zhang, Lennart Poettering,
7855 Leonardo Brondani Schenkel, Lucas Werkmeister, Luca Bruno, Lukáš
7856 Nykrýn, Maciek Borzecki, Mantas Mikulėnas, Marc-Antoine Perennou,
7857 Marcel Holtmann, Marcos Mello, Martin Ejdestig, Martin Pitt, Matej
7858 Habrnal, Maxime de Roucy, Michael Biebl, Michael Chapman, Michael Hoy,
7859 Michael Olbrich, Michael Pope, Michal Sekletar, Michal Soltys, Mike
7860 Gilbert, Nick Owens, Patrik Flykt, Paweł Szewczyk, Peter Hutterer,
7861 Piotr Drąg, Reid Price, Richard W.M. Jones, Roman Stingler, Ronny
7862 Chevalier, Seraphime Kirkovski, Stefan Schweter, Steve Muir, Susant
7863 Sahani, Tejun Heo, Thomas Blume, Thomas H. P. Andersen, Tiago Levit,
7864 Tobias Jungel, Tomáš Janoušek, Topi Miettinen, Torstein Husebø, Umut
7865 Tezduyar Lindskog, Vito Caputo, WaLyong Cho, Wilhelm Schuster, Yann
7866 E. MORIN, Yi EungJun, Yuki Inoguchi, Yu Watanabe, Zbigniew
7867 Jędrzejewski-Szmek, Zeal Jagannatha
7868
54b24597 7869 — Santa Fe, 2016-11-03
07393b6e 7870
5cd118ba
MP
7871CHANGES WITH 231:
7872
fcd30826
LP
7873 * In service units the various ExecXYZ= settings have been extended
7874 with an additional special character as first argument of the
43eb109a 7875 assigned value: if the character '+' is used the specified command
fcd30826
LP
7876 line it will be run with full privileges, regardless of User=,
7877 Group=, CapabilityBoundingSet= and similar options. The effect is
7878 similar to the existing PermissionsStartOnly= option, but allows
7879 configuration of this concept for each executed command line
7880 independently.
7881
7882 * Services may now alter the service watchdog timeout at runtime by
7883 sending a WATCHDOG_USEC= message via sd_notify().
7884
7885 * MemoryLimit= and related unit settings now optionally take percentage
7886 specifications. The percentage is taken relative to the amount of
7887 physical memory in the system (or in case of containers, the assigned
7888 amount of memory). This allows scaling service resources neatly with
771de3f5 7889 the amount of RAM available on the system. Similarly, systemd-logind's
fcd30826
LP
7890 RuntimeDirectorySize= option now also optionally takes percentage
7891 values.
7892
7893 * In similar fashion TasksMax= takes percentage values now, too. The
7894 value is taken relative to the configured maximum number of processes
7895 on the system. The per-service task maximum has been changed to 15%
7896 using this functionality. (Effectively this is an increase of 512 →
7897 4915 for service units, given the kernel's default pid_max setting.)
7898
7899 * Calendar time specifications in .timer units now understand a ".."
7900 syntax for time ranges. Example: "4..7:10" may now be used for
7901 defining a timer that is triggered at 4:10am, 5:10am, 6:10am and
7902 7:10am every day.
7903
7904 * The InaccessableDirectories=, ReadOnlyDirectories= and
7905 ReadWriteDirectories= unit file settings have been renamed to
7906 InaccessablePaths=, ReadOnlyPaths= and ReadWritePaths= and may now be
7907 applied to all kinds of file nodes, and not just directories, with
7908 the exception of symlinks. Specifically these settings may now be
7909 used on block and character device nodes, UNIX sockets and FIFOS as
7910 well as regular files. The old names of these settings remain
7911 available for compatibility.
7912
7913 * systemd will now log about all service processes it kills forcibly
7914 (using SIGKILL) because they remained after the clean shutdown phase
7915 of the service completed. This should help identifying services that
7916 shut down uncleanly. Moreover if KillUserProcesses= is enabled in
7917 systemd-logind's configuration a similar log message is generated for
7918 processes killed at the end of each session due to this setting.
7919
7920 * systemd will now set the $JOURNAL_STREAM environment variable for all
7921 services whose stdout/stderr are connected to the Journal (which
7922 effectively means by default: all services). The variable contains
7923 the device and inode number of the file descriptor used for
7924 stdout/stderr. This may be used by invoked programs to detect whether
7925 their stdout/stderr is connected to the Journal, in which case they
7926 can switch over to direct Journal communication, thus being able to
7927 pass extended, structured metadata along with their log messages. As
7928 one example, this is now used by glib's logging primitives.
7929
7930 * When using systemd's default tmp.mount unit for /tmp, the mount point
7931 will now be established with the "nosuid" and "nodev" options. This
7932 avoids privilege escalation attacks that put traps and exploits into
7933 /tmp. However, this might cause problems if you e. g. put container
5cd118ba
MP
7934 images or overlays into /tmp; if you need this, override tmp.mount's
7935 "Options=" with a drop-in, or mount /tmp from /etc/fstab with your
7936 desired options.
7937
fcd30826 7938 * systemd now supports the "memory" cgroup controller also on
4e1dfa45 7939 cgroup v2.
fcd30826
LP
7940
7941 * The systemd-cgtop tool now optionally takes a control group path as
7942 command line argument. If specified, the control group list shown is
7943 limited to subgroups of that group.
7944
7945 * The SystemCallFilter= unit file setting gained support for
7946 pre-defined, named system call filter sets. For example
7947 SystemCallFilter=@clock is now an effective way to make all clock
771de3f5 7948 changing-related system calls unavailable to a service. A number of
fcd30826
LP
7949 similar pre-defined groups are defined. Writing system call filters
7950 for system services is simplified substantially with this new
7951 concept. Accordingly, all of systemd's own, long-running services now
7952 enable system call filtering based on this, by default.
7953
7954 * A new service setting MemoryDenyWriteExecute= has been added, taking
7955 a boolean value. If turned on, a service may no longer create memory
7956 mappings that are writable and executable at the same time. This
7957 enhances security for services where this is enabled as it becomes
7958 harder to dynamically write and then execute memory in exploited
7959 service processes. This option has been enabled for all of systemd's
7960 own long-running services.
7961
7962 * A new RestrictRealtime= service setting has been added, taking a
7963 boolean argument. If set the service's processes may no longer
7964 acquire realtime scheduling. This improves security as realtime
7965 scheduling may otherwise be used to easily freeze the system.
7966
7967 * systemd-nspawn gained a new switch --notify-ready= taking a boolean
7968 value. This may be used for requesting that the system manager inside
7969 of the container reports start-up completion to nspawn which then
7970 propagates this notification further to the service manager
7971 supervising nspawn itself. A related option NotifyReady= in .nspawn
7972 files has been added too. This functionality allows ordering of the
7973 start-up of multiple containers using the usual systemd ordering
7974 primitives.
7975
7976 * machinectl gained a new command "stop" that is an alias for
7977 "terminate".
7978
7979 * systemd-resolved gained support for contacting DNS servers on
7980 link-local IPv6 addresses.
7981
7982 * If systemd-resolved receives the SIGUSR2 signal it will now flush all
7983 its caches. A method call for requesting the same operation has been
7984 added to the bus API too, and is made available via "systemd-resolve
7985 --flush-caches".
7986
771de3f5 7987 * systemd-resolve gained a new --status switch. If passed a brief
fcd30826
LP
7988 summary of the used DNS configuration with per-interface information
7989 is shown.
7990
7991 * resolved.conf gained a new Cache= boolean option, defaulting to
7992 on. If turned off local DNS caching is disabled. This comes with a
7993 performance penalty in particular when DNSSEC is enabled. Note that
771de3f5 7994 resolved disables its internal caching implicitly anyway, when the
fcd30826
LP
7995 configured DNS server is on a host-local IP address such as ::1 or
7996 127.0.0.1, thus automatically avoiding double local caching.
7997
7998 * systemd-resolved now listens on the local IP address 127.0.0.53:53
7999 for DNS requests. This improves compatibility with local programs
8000 that do not use the libc NSS or systemd-resolved's bus APIs for name
8001 resolution. This minimal DNS service is only available to local
8002 programs and does not implement the full DNS protocol, but enough to
8003 cover local DNS clients. A new, static resolv.conf file, listing just
8004 this DNS server is now shipped in /usr/lib/systemd/resolv.conf. It is
8005 now recommended to make /etc/resolv.conf a symlink to this file in
8006 order to route all DNS lookups to systemd-resolved, regardless if
8007 done via NSS, the bus API or raw DNS packets. Note that this local
8008 DNS service is not as fully featured as the libc NSS or
8009 systemd-resolved's bus APIs. For example, as unicast DNS cannot be
8010 used to deliver link-local address information (as this implies
8011 sending a local interface index along), LLMNR/mDNS support via this
8012 interface is severely restricted. It is thus strongly recommended for
8013 all applications to use the libc NSS API or native systemd-resolved
8014 bus API instead.
8015
8016 * systemd-networkd's bridge support learned a new setting
8017 VLANFiltering= for controlling VLAN filtering. Moreover a new section
8018 in .network files has been added for configuring VLAN bridging in
8019 more detail: VLAN=, EgressUntagged=, PVID= in [BridgeVLAN].
8020
8021 * systemd-networkd's IPv6 Router Advertisement code now makes use of
8022 the DNSSL and RDNSS options. This means IPv6 DNS configuration may
8023 now be acquired without relying on DHCPv6. Two new options
8024 UseDomains= and UseDNS= have been added to configure this behaviour.
8025
8026 * systemd-networkd's IPv6AcceptRouterAdvertisements= option has been
8027 renamed IPv6AcceptRA=, without altering its behaviour. The old
8028 setting name remains available for compatibility reasons.
8029
8030 * The systemd-networkd VTI/VTI6 tunneling support gained new options
8031 Key=, InputKey= and OutputKey=.
8032
8033 * systemd-networkd gained support for VRF ("Virtual Routing Function")
8034 interface configuration.
8035
8036 * "systemctl edit" may now be used to create new unit files by
8037 specifying the --force switch.
8038
8039 * sd-event gained a new function sd_event_get_iteration() for
8040 requesting the current iteration counter of the event loop. It starts
8041 at zero and is increased by one with each event loop iteration.
8042
43a569a1
ZJS
8043 * A new rpm macro %systemd_ordering is provided by the macros.systemd
8044 file. It can be used in lieu of %systemd_requires in packages which
8045 don't use any systemd functionality and are intended to be installed
8046 in minimal containers without systemd present. This macro provides
ce830873 8047 ordering dependencies to ensure that if the package is installed in
43a569a1
ZJS
8048 the same rpm transaction as systemd, systemd will be installed before
8049 the scriptlets for the package are executed, allowing unit presets
8050 to be handled.
8051
8052 New macros %_systemdgeneratordir and %_systemdusergeneratordir have
8053 been added to simplify packaging of generators.
8054
8055 * The os-release file gained VERSION_CODENAME field for the
8056 distribution nickname (e.g. VERSION_CODENAME=woody).
8057
8058 * New udev property UDEV_DISABLE_PERSISTENT_STORAGE_RULES_FLAG=1
8059 can be set to disable parsing of metadata and the creation
8060 of persistent symlinks for that device.
8061
0f1da52b
LP
8062 * The v230 change to tag framebuffer devices (/dev/fb*) with "uaccess"
8063 to make them available to logged-in users has been reverted.
8064
8065 * Much of the common code of the various systemd components is now
8066 built into an internal shared library libsystemd-shared-231.so
8067 (incorporating the systemd version number in the name, to be updated
8068 with future releases) that the components link to. This should
8069 decrease systemd footprint both in memory during runtime and on
8070 disk. Note that the shared library is not for public use, and is
ead6bd25 8071 neither API nor ABI stable, but is likely to change with every new
1ecbf32f
ZJS
8072 released update. Packagers need to make sure that binaries
8073 linking to libsystemd-shared.so are updated in step with the
8074 library.
43a569a1 8075
fcd30826
LP
8076 * Configuration for "mkosi" is now part of the systemd
8077 repository. mkosi is a tool to easily build legacy-free OS images,
8078 and is available on github: https://github.com/systemd/mkosi. If
8079 "mkosi" is invoked in the build tree a new raw OS image is generated
8080 incorporating the systemd sources currently being worked on and a
8081 clean, fresh distribution installation. The generated OS image may be
ce830873 8082 booted up with "systemd-nspawn -b -i", qemu-kvm or on any physical
fcd30826
LP
8083 UEFI PC. This functionality is particularly useful to easily test
8084 local changes made to systemd in a pristine, defined environment. See
f09eb768 8085 doc/HACKING for details.
ceeddf79 8086
4ffe2479
ZJS
8087 * configure learned the --with-support-url= option to specify the
8088 distribution's bugtracker.
8089
38b383d9
LP
8090 Contributions from: Alban Crequy, Alessandro Puccetti, Alessio Igor
8091 Bogani, Alexander Kuleshov, Alexander Kurtz, Alex Gaynor, Andika
8092 Triwidada, Andreas Pokorny, Andreas Rammhold, Andrew Jeddeloh, Ansgar
8093 Burchardt, Atrotors, Benjamin Drung, Brian Boylston, Christian Hesse,
8094 Christian Rebischke, Daniele Medri, Daniel Mack, Dave Reisner, David
8095 Herrmann, David Michael, Djalal Harouni, Douglas Christman, Elias
8096 Probst, Evgeny Vereshchagin, Federico Mena Quintero, Felipe Sateler,
8097 Franck Bui, Harald Hoyer, Ian Lee, Ivan Shapovalov, Jakub Wilk, Jan
8098 Janssen, Jean-Sébastien Bour, John Paul Adrian Glaubitz, Jouke
8099 Witteveen, Kai Ruhnau, kpengboy, Kyle Walker, Lénaïc Huard, Lennart
8100 Poettering, Luca Bruno, Lukas Lösche, Lukáš Nykrýn, mahkoh, Marcel
8101 Holtmann, Martin Pitt, Marty Plummer, Matthieu Codron, Max Prokhorov,
8102 Michael Biebl, Michael Karcher, Michael Olbrich, Michał Bartoszkiewicz,
8103 Michal Sekletar, Michal Soltys, Minkyung, Muhammet Kara, mulkieran,
8104 Otto Wallenius, Pablo Lezaeta Reyes, Peter Hutterer, Ronny Chevalier,
8105 Rusty Bird, Stef Walter, Susant Sahani, Tejun Heo, Thomas Blume, Thomas
771de3f5
ZJS
8106 Haller, Thomas H. P. Andersen, Tobias Jungel, Tom Gundersen, Tom Yan,
8107 Topi Miettinen, Torstein Husebø, Valentin Vidić, Viktar Vaŭčkievič,
38b383d9 8108 WaLyong Cho, Weng Xuetian, Werner Fink, Zbigniew Jędrzejewski-Szmek
5cd118ba 8109
38b383d9 8110 — Berlin, 2016-07-25
5cd118ba 8111
46e40fab 8112CHANGES WITH 230:
7f6e8043 8113
61ecb465
LP
8114 * DNSSEC is now turned on by default in systemd-resolved (in
8115 "allow-downgrade" mode), but may be turned off during compile time by
8116 passing "--with-default-dnssec=no" to "configure" (and of course,
8117 during runtime with DNSSEC= in resolved.conf). We recommend
8118 downstreams to leave this on at least during development cycles and
8119 report any issues with the DNSSEC logic upstream. We are very
8120 interested in collecting feedback about the DNSSEC validator and its
8121 limitations in the wild. Note however, that DNSSEC support is
8122 probably nothing downstreams should turn on in stable distros just
96d49011 8123 yet, as it might create incompatibilities with a few DNS servers and
61ecb465
LP
8124 networks. We tried hard to make sure we downgrade to non-DNSSEC mode
8125 automatically whenever we detect such incompatible setups, but there
8126 might be systems we do not cover yet. Hence: please help us testing
8127 the DNSSEC code, leave this on where you can, report back, but then
8128 again don't consider turning this on in your stable, LTS or
e40a326c
LP
8129 production release just yet. (Note that you have to enable
8130 nss-resolve in /etc/nsswitch.conf, to actually use systemd-resolved
38b38500 8131 and its DNSSEC mode for hostname resolution from local
e40a326c 8132 applications.)
61ecb465 8133
96515dbf 8134 * systemd-resolve conveniently resolves DANE records with the --tlsa
e40a326c 8135 option and OPENPGPKEY records with the --openpgp option. It also
e75690c3 8136 supports dumping raw DNS record data via the new --raw= switch.
96515dbf 8137
97e5530c
ZJS
8138 * systemd-logind will now by default terminate user processes that are
8139 part of the user session scope unit (session-XX.scope) when the user
977f2bea 8140 logs out. This behavior is controlled by the KillUserProcesses=
e40a326c
LP
8141 setting in logind.conf, and the previous default of "no" is now
8142 changed to "yes". This means that user sessions will be properly
8143 cleaned up after, but additional steps are necessary to allow
8144 intentionally long-running processes to survive logout.
97e5530c
ZJS
8145
8146 While the user is logged in at least once, user@.service is running,
8147 and any service that should survive the end of any individual login
8148 session can be started at a user service or scope using systemd-run.
e40a326c 8149 systemd-run(1) man page has been extended with an example which shows
8951eaec 8150 how to run screen in a scope unit underneath user@.service. The same
e40a326c 8151 command works for tmux.
97e5530c
ZJS
8152
8153 After the user logs out of all sessions, user@.service will be
8154 terminated too, by default, unless the user has "lingering" enabled.
8155 To effectively allow users to run long-term tasks even if they are
152199f2
ZJS
8156 logged out, lingering must be enabled for them. See loginctl(1) for
8157 details. The default polkit policy was modified to allow users to
8158 set lingering for themselves without authentication.
7f6e8043 8159
95365a57 8160 Previous defaults can be restored at compile time by the
e40a326c 8161 --without-kill-user-processes option to "configure".
7f6e8043 8162
e75690c3
ZJS
8163 * systemd-logind gained new configuration settings SessionsMax= and
8164 InhibitorsMax=, both with a default of 8192. It will not register new
188d3082 8165 user sessions or inhibitors above this limit.
e75690c3
ZJS
8166
8167 * systemd-logind will now reload configuration on SIGHUP.
8168
96515dbf 8169 * The unified cgroup hierarchy added in Linux 4.5 is now supported.
e40a326c 8170 Use systemd.unified_cgroup_hierarchy=1 on the kernel command line to
25b0e6cb
LP
8171 enable. Also, support for the "io" cgroup controller in the unified
8172 hierarchy has been added, so that the "memory", "pids" and "io" are
8173 now the controllers that are supported on the unified hierarchy.
e40a326c 8174
96515dbf
ZJS
8175 WARNING: it is not possible to use previous systemd versions with
8176 systemd.unified_cgroup_hierarchy=1 and the new kernel. Therefore it
8177 is necessary to also update systemd in the initramfs if using the
e40a326c 8178 unified hierarchy. An updated SELinux policy is also required.
96515dbf 8179
e40a326c
LP
8180 * LLDP support has been extended, and both passive (receive-only) and
8181 active (sender) modes are supported. Passive mode ("routers-only") is
8951eaec
ZJS
8182 enabled by default in systemd-networkd. Active LLDP mode is enabled
8183 by default for containers on the internal network. The "networkctl
e40a326c
LP
8184 lldp" command may be used to list information gathered. "networkctl
8185 status" will also show basic LLDP information on connected peers now.
96515dbf 8186
e40a326c
LP
8187 * The IAID and DUID unique identifier sent in DHCP requests may now be
8188 configured for the system and each .network file managed by
e75690c3
ZJS
8189 systemd-networkd using the DUIDType=, DUIDRawData=, IAID= options.
8190
8191 * systemd-networkd gained support for configuring proxy ARP support for
8192 each interface, via the ProxyArp= setting in .network files. It also
8193 gained support for configuring the multicast querier feature of
8194 bridge devices, via the new MulticastQuerier= setting in .netdev
8195 files. Similarly, snooping on the IGMP traffic can be controlled
8196 via the new setting MulticastSnooping=.
8197
8198 A new setting PreferredLifetime= has been added for addresses
8199 configured in .network file to configure the lifetime intended for an
8200 address.
8201
8202 The systemd-networkd DHCP server gained the option EmitRouter=, which
8203 defaults to yes, to configure whether the DHCP Option 3 (Router)
8204 should be emitted.
96515dbf 8205
e40a326c 8206 * The testing tool /usr/lib/systemd/systemd-activate is renamed to
97e5530c
ZJS
8207 systemd-socket-activate and installed into /usr/bin. It is now fully
8208 supported.
8209
e40a326c
LP
8210 * systemd-journald now uses separate threads to flush changes to disk
8211 when closing journal files, thus reducing impact of slow disk I/O on
8212 logging performance.
96515dbf 8213
e75690c3
ZJS
8214 * The sd-journal API gained two new calls
8215 sd_journal_open_directory_fd() and sd_journal_open_files_fd() which
8216 can be used to open journal files using file descriptors instead of
8217 file or directory paths. sd_journal_open_container() has been
8218 deprecated, sd_journal_open_directory_fd() should be used instead
8219 with the flag SD_JOURNAL_OS_ROOT.
8220
8221 * journalctl learned a new output mode "-o short-unix" that outputs log
8222 lines prefixed by their UNIX time (i.e. seconds since Jan 1st, 1970
8223 UTC). It also gained support for a new --no-hostname setting to
8224 suppress the hostname column in the family of "short" output modes.
8225
e40a326c
LP
8226 * systemd-ask-password now optionally skips printing of the password to
8227 stdout with --no-output which can be useful in scripts.
96515dbf
ZJS
8228
8229 * Framebuffer devices (/dev/fb*) and 3D printers and scanners
8230 (devices tagged with ID_MAKER_TOOL) are now tagged with
8231 "uaccess" and are available to logged in users.
8232
e75690c3 8233 * The DeviceAllow= unit setting now supports specifiers (with "%").
e40a326c
LP
8234
8235 * "systemctl show" gained a new --value switch, which allows print a
8236 only the contents of a specific unit property, without also printing
8951eaec
ZJS
8237 the property's name. Similar support was added to "show*" verbs
8238 of loginctl and machinectl that output "key=value" lists.
e40a326c 8239
e75690c3
ZJS
8240 * A new unit type "generated" was added for files dynamically generated
8241 by generator tools. Similarly, a new unit type "transient" is used
8242 for unit files created using the runtime API. "systemctl enable" will
8243 refuse to operate on such files.
8244
e40a326c
LP
8245 * A new command "systemctl revert" has been added that may be used to
8246 revert to the vendor version of a unit file, in case local changes
8247 have been made by adding drop-ins or overriding the unit file.
8248
8249 * "machinectl clean" gained a new verb to automatically remove all or
8250 just hidden container images.
8251
e40a326c
LP
8252 * systemd-tmpfiles gained support for a new line type "e" for emptying
8253 directories, if they exist, without creating them if they don't.
8254
e40a326c
LP
8255 * systemd-nspawn gained support for automatically patching the UID/GIDs
8256 of the owners and the ACLs of all files and directories in a
8257 container tree to match the UID/GID user namespacing range selected
8258 for the container invocation. This mode is enabled via the new
24597ee0
ZJS
8259 --private-users-chown switch. It also gained support for
8260 automatically choosing a free, previously unused UID/GID range when
8261 starting a container, via the new --private-users=pick setting (which
8262 implies --private-users-chown). Together, these options for the first
8263 time make user namespacing for nspawn containers fully automatic and
8264 thus deployable. The systemd-nspawn@.service template unit file has
8265 been changed to use this functionality by default.
e40a326c 8266
25b0e6cb
LP
8267 * systemd-nspawn gained a new --network-zone= switch, that allows
8268 creating ad-hoc virtual Ethernet links between multiple containers,
8269 that only exist as long as at least one container referencing them is
8270 running. This allows easy connecting of multiple containers with a
8271 common link that implements an Ethernet broadcast domain. Each of
8272 these network "zones" may be named relatively freely by the user, and
8273 may be referenced by any number of containers, but each container may
8274 only reference one of these "zones". On the lower level, this is
8275 implemented by an automatically managed bridge network interface for
8276 each zone, that is created when the first container referencing its
8277 zone is created and removed when the last one referencing its zone
8278 terminates.
8279
e40a326c 8280 * The default start timeout may now be configured on the kernel command
8951eaec
ZJS
8281 line via systemd.default_timeout_start_sec=. It was already
8282 configurable via the DefaultTimeoutStartSec= option in
8283 /etc/systemd/system.conf.
e40a326c 8284
030bd839 8285 * Socket units gained a new TriggerLimitIntervalSec= and
e40a326c
LP
8286 TriggerLimitBurst= setting to configure a limit on the activation
8287 rate of the socket unit.
8288
8289 * The LimitNICE= setting now optionally takes normal UNIX nice values
8290 in addition to the raw integer limit value. If the specified
1d3a473b 8291 parameter is prefixed with "+" or "-" and is in the range -20…19 the
e40a326c
LP
8292 value is understood as UNIX nice value. If not prefixed like this it
8293 is understood as raw RLIMIT_NICE limit.
8294
999a43f8
LP
8295 * Note that the effect of the PrivateDevices= unit file setting changed
8296 slightly with this release: the per-device /dev file system will be
8297 mounted read-only from this version on, and will have "noexec"
188d3082 8298 set. This (minor) change of behavior might cause some (exceptional)
999a43f8
LP
8299 legacy software to break, when PrivateDevices=yes is set for its
8300 service. Please leave PrivateDevices= off if you run into problems
8301 with this.
8302
e75690c3
ZJS
8303 * systemd-bootchart has been split out to a separate repository:
8304 https://github.com/systemd/systemd-bootchart
8305
8306 * systemd-bus-proxyd has been removed, as kdbus is unlikely to still be
8307 merged into the kernel in its current form.
8308
8309 * The compatibility libraries libsystemd-daemon.so,
8310 libsystemd-journal.so, libsystemd-id128.so, and libsystemd-login.so
8311 which have been deprecated since systemd-209 have been removed along
8312 with the corresponding pkg-config files. All symbols provided by
8313 those libraries are provided by libsystemd.so.
8314
8315 * The Capabilities= unit file setting has been removed (it is ignored
8316 for backwards compatibility). AmbientCapabilities= and
8317 CapabilityBoundingSet= should be used instead.
8318
4f9020fa
DR
8319 * A new special target has been added, initrd-root-device.target,
8320 which creates a synchronization point for dependencies of the root
8321 device in early userspace. Initramfs builders must ensure that this
8322 target is now included in early userspace.
8323
e75690c3
ZJS
8324 Contributions from: Alban Crequy, Alexander Kuleshov, Alexander Shopov,
8325 Alex Crawford, Andre Klärner, Andrew Eikum, Beniamino Galvani, Benjamin
8326 Robin, Biao Lu, Bjørnar Ness, Calvin Owens, Christian Hesse, Clemens
8327 Gruber, Colin Guthrie, Daniel Drake, Daniele Medri, Daniel J Walsh,
8328 Daniel Mack, Dan Nicholson, daurnimator, David Herrmann, David
8329 R. Hedges, Elias Probst, Emmanuel Gil Peyrot, EMOziko, Evgeny
8330 Vereshchagin, Federico, Felipe Sateler, Filipe Brandenburger, Franck
8331 Bui, frankheckenbach, gdamjan, Georgia Brikis, Harald Hoyer, Hendrik
77ff6022
CG
8332 Brueckner, Hristo Venev, Iago López Galeiras, Ian Kelling, Ismo
8333 Puustinen, Jakub Wilk, Jaroslav Škarvada, Jeff Huang, Joel Holdsworth,
e75690c3
ZJS
8334 John Paul Adrian Glaubitz, Jonathan Boulle, kayrus, Klearchos
8335 Chaloulos, Kyle Russell, Lars Uebernickel, Lennart Poettering, Lubomir
8336 Rintel, Lukáš Nykrýn, Mantas Mikulėnas, Marcel Holtmann, Martin Pitt,
77ff6022
CG
8337 Michael Biebl, michaelolbrich, Michał Bartoszkiewicz, Michal Koutný,
8338 Michal Sekletar, Mike Frysinger, Mike Gilbert, Mingcong Bai, Ming Lin,
8339 mulkieran, muzena, Nalin Dahyabhai, Naohiro Aota, Nathan McSween,
e75690c3
ZJS
8340 Nicolas Braud-Santoni, Patrik Flykt, Peter Hutterer, Peter Mattern,
8341 Petr Lautrbach, Petros Angelatos, Piotr Drąg, Rabin Vincent, Robert
8342 Węcławski, Ronny Chevalier, Samuel Tardieu, Stefan Saraev, Stefan
8343 Schallenberg aka nafets227, Steven Siloti, Susant Sahani, Sylvain
8344 Plantefève, Taylor Smock, Tejun Heo, Thomas Blume, Thomas Haller,
8345 Thomas H. P. Andersen, Tobias Klauser, Tom Gundersen, topimiettinen,
46e40fab
ZJS
8346 Torstein Husebø, Umut Tezduyar Lindskog, Uwe Kleine-König, Victor Toso,
8347 Vinay Kulkarni, Vito Caputo, Vittorio G (VittGam), Vladimir Panteleev,
8348 Wieland Hoffmann, Wouter Verhelst, Yu Watanabe, Zbigniew
8349 Jędrzejewski-Szmek
e40a326c 8350
46e40fab 8351 — Fairfax, 2016-05-21
96515dbf 8352
61f32bff
MP
8353CHANGES WITH 229:
8354
d5f8b295
LP
8355 * The systemd-resolved DNS resolver service has gained a substantial
8356 set of new features, most prominently it may now act as a DNSSEC
8357 validating stub resolver. DNSSEC mode is currently turned off by
ed5f8840
ZJS
8358 default, but is expected to be turned on by default in one of the
8359 next releases. For now, we invite everybody to test the DNSSEC logic
8360 by setting DNSSEC=allow-downgrade in /etc/systemd/resolved.conf. The
8361 service also gained a full set of D-Bus interfaces, including calls
8362 to configure DNS and DNSSEC settings per link (for use by external
8363 network management software). systemd-resolved and systemd-networkd
8364 now distinguish between "search" and "routing" domains. The former
8365 are used to qualify single-label names, the latter are used purely
8366 for routing lookups within certain domains to specific links.
8367 resolved now also synthesizes RRs for all entries from /etc/hosts.
d5f8b295
LP
8368
8369 * The systemd-resolve tool (which is a client utility for
ed5f8840
ZJS
8370 systemd-resolved) has been improved considerably and is now fully
8371 supported and documented. Hence it has moved from /usr/lib/systemd to
8372 /usr/bin.
d5f8b295
LP
8373
8374 * /dev/disk/by-path/ symlink support has been (re-)added for virtio
8375 devices.
8376
a7c723c0
LP
8377 * The coredump collection logic has been reworked: when a coredump is
8378 collected it is now written to disk, compressed and processed
8379 (including stacktrace extraction) from a new instantiated service
8380 systemd-coredump@.service, instead of directly from the
8381 /proc/sys/kernel/core_pattern hook we provide. This is beneficial as
8382 processing large coredumps can take up a substantial amount of
8383 resources and time, and this previously happened entirely outside of
8384 systemd's service supervision. With the new logic the core_pattern
8385 hook only does minimal metadata collection before passing off control
8386 to the new instantiated service, which is configured with a time
8387 limit, a nice level and other settings to minimize negative impact on
8388 the rest of the system. Also note that the new logic will honour the
8389 RLIMIT_CORE setting of the crashed process, which now allows users
8390 and processes to turn off coredumping for their processes by setting
8391 this limit.
8392
8393 * The RLIMIT_CORE resource limit now defaults to "unlimited" for PID 1
8394 and all forked processes by default. Previously, PID 1 would leave
8395 the setting at "0" for all processes, as set by the kernel. Note that
8396 the resource limit traditionally has no effect on the generated
8397 coredumps on the system if the /proc/sys/kernel/core_pattern hook
8398 logic is used. Since the limit is now honoured (see above) its
8399 default has been changed so that the coredumping logic is enabled by
8400 default for all processes, while allowing specific opt-out.
8401
8402 * When the stacktrace is extracted from processes of system users, this
8403 is now done as "systemd-coredump" user, in order to sandbox this
8404 potentially security sensitive parsing operation. (Note that when
8405 processing coredumps of normal users this is done under the user ID
8406 of process that crashed, as before.) Packagers should take notice
8407 that it is now necessary to create the "systemd-coredump" system user
8408 and group at package installation time.
8409
d5f8b295
LP
8410 * The systemd-activate socket activation testing tool gained support
8411 for SOCK_DGRAM and SOCK_SEQPACKET sockets using the new --datagram
8412 and --seqpacket switches. It also has been extended to support both
8413 new-style and inetd-style file descriptor passing. Use the new
8414 --inetd switch to request inetd-style file descriptor passing.
8415
8968aea0
MP
8416 * Most systemd tools now honor a new $SYSTEMD_COLORS environment
8417 variable, which takes a boolean value. If set to false, ANSI color
d5f8b295
LP
8418 output is disabled in the tools even when run on a terminal that
8419 supports it.
8420
8421 * The VXLAN support in networkd now supports two new settings
8422 DestinationPort= and PortRange=.
8423
8424 * A new systemd.machine_id= kernel command line switch has been added,
8425 that may be used to set the machine ID in /etc/machine-id if it is
8426 not initialized yet. This command line option has no effect if the
8427 file is already initialized.
8428
8429 * systemd-nspawn gained a new --as-pid2 switch that invokes any
8430 specified command line as PID 2 rather than PID 1 in the
ed5f8840
ZJS
8431 container. In this mode PID 1 is a minimal stub init process that
8432 implements the special POSIX and Linux semantics of PID 1 regarding
8433 signal and child process management. Note that this stub init process
8434 is implemented in nspawn itself and requires no support from the
8435 container image. This new logic is useful to support running
8436 arbitrary commands in the container, as normal processes are
d5f8b295
LP
8437 generally not prepared to run as PID 1.
8438
8439 * systemd-nspawn gained a new --chdir= switch for setting the current
8440 working directory for the process started in the container.
8441
ed5f8840
ZJS
8442 * "journalctl /dev/sda" will now output all kernel log messages for
8443 specified device from the current boot, in addition to all devices
8444 that are parents of it. This should make log output about devices
8445 pretty useful, as long as kernel drivers attach enough metadata to
8446 the log messages. (The usual SATA drivers do.)
d5f8b295
LP
8447
8448 * The sd-journal API gained two new calls
8449 sd_journal_has_runtime_files() and sd_journal_has_persistent_files()
8450 that report whether log data from /run or /var has been found.
8451
8452 * journalctl gained a new switch "--fields" that prints all journal
8453 record field names currently in use in the journal. This is backed
8454 by two new sd-journal API calls sd_journal_enumerate_fields() and
8455 sd_journal_restart_fields().
8456
8457 * Most configurable timeouts in systemd now expect an argument of
8968aea0
MP
8458 "infinity" to turn them off, instead of "0" as before. The semantics
8459 from now on is that a timeout of "0" means "now", and "infinity"
8460 means "never". To maintain backwards compatibility, "0" continues to
8461 turn off previously existing timeout settings.
d5f8b295
LP
8462
8463 * "systemctl reload-or-try-restart" has been renamed to "systemctl
8968aea0
MP
8464 try-reload-or-restart" to clarify what it actually does: the "try"
8465 logic applies to both reloading and restarting, not just restarting.
8466 The old name continues to be accepted for compatibility.
8467
8468 * On boot-up, when PID 1 detects that the system clock is behind the
8469 release date of the systemd version in use, the clock is now set
8470 to the latter. Previously, this was already done in timesyncd, in order
d5f8b295
LP
8471 to avoid running with clocks set to the various clock epochs such as
8472 1902, 1938 or 1970. With this change the logic is now done in PID 1
8473 in addition to timesyncd during early boot-up, so that it is enforced
8474 before the first process is spawned by systemd. Note that the logic
8475 in timesyncd remains, as it is more comprehensive and ensures
ed5f8840 8476 clock monotonicity by maintaining a persistent timestamp file in
d5f8b295
LP
8477 /var. Since /var is generally not available in earliest boot or the
8478 initrd, this part of the logic remains in timesyncd, and is not done
8479 by PID 1.
8480
50f48ad3
DM
8481 * Support for tweaking details in net_cls.class_id through the
8482 NetClass= configuration directive has been removed, as the kernel
8483 people have decided to deprecate that controller in cgroup v2.
8484 Userspace tools such as nftables are moving over to setting rules
8485 that are specific to the full cgroup path of a task, which obsoletes
8486 these controllers anyway. The NetClass= directive is kept around for
8487 legacy compatibility reasons. For a more in-depth description of the
8488 kernel change, please refer to the respective upstream commit:
8489
8490 https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=bd1060a1d671
8491
d5f8b295 8492 * A new service setting RuntimeMaxSec= has been added that may be used
8968aea0 8493 to specify a maximum runtime for a service. If the timeout is hit, the
d5f8b295
LP
8494 service is terminated and put into a failure state.
8495
8968aea0
MP
8496 * A new service setting AmbientCapabilities= has been added. It allows
8497 configuration of additional Linux process capabilities that are
8498 passed to the activated processes. This is only available on very
d5f8b295
LP
8499 recent kernels.
8500
8501 * The process resource limit settings in service units may now be used
8502 to configure hard and soft limits individually.
8503
8968aea0 8504 * The various libsystemd APIs such as sd-bus or sd-event now publicly
ed5f8840
ZJS
8505 expose support for gcc's __attribute__((cleanup())) C extension.
8506 Specifically, for many object destructor functions alternative
8507 versions have been added that have names suffixed with "p" and take a
8508 pointer to a pointer to the object to destroy, instead of just a
8509 pointer to the object itself. This is useful because these destructor
8510 functions may be used directly as parameters to the cleanup
8511 construct. Internally, systemd has been a heavy user of this GCC
8512 extension for a long time, and with this change similar support is
8513 now available to consumers of the library outside of systemd. Note
8968aea0 8514 that by using this extension in your sources compatibility with old
ed5f8840
ZJS
8515 and strictly ANSI compatible C compilers is lost. However, all gcc or
8516 LLVM versions of recent years support this extension.
d5f8b295
LP
8517
8518 * Timer units gained support for a new setting RandomizedDelaySec= that
8968aea0
MP
8519 allows configuring some additional randomized delay to the configured
8520 time. This is useful to spread out timer events to avoid load peaks in
8521 clusters or larger setups.
d5f8b295
LP
8522
8523 * Calendar time specifications now support sub-second accuracy.
8524
8525 * Socket units now support listening on SCTP and UDP-lite protocol
8526 sockets.
8527
8528 * The sd-event API now comes with a full set of man pages.
8529
8530 * Older versions of systemd contained experimental support for
8531 compressing journal files and coredumps with the LZ4 compressor that
8532 was not compatible with the lz4 binary (due to API limitations of the
8533 lz4 library). This support has been removed; only support for files
8534 compatible with the lz4 binary remains. This LZ4 logic is now
8535 officially supported and no longer considered experimental.
8536
8537 * The dkr image import logic has been removed again from importd. dkr's
8538 micro-services focus doesn't fit into the machine image focus of
8539 importd, and quickly got out of date with the upstream dkr API.
8540
8541 * Creation of the /run/lock/lockdev/ directory was dropped from
8542 tmpfiles.d/legacy.conf. Better locking mechanisms like flock() have
61f32bff
MP
8543 been available for many years. If you still need this, you need to
8544 create your own tmpfiles.d config file with:
d5f8b295
LP
8545
8546 d /run/lock/lockdev 0775 root lock -
61f32bff 8547
dd95b381
LP
8548 * The settings StartLimitBurst=, StartLimitInterval=, StartLimitAction=
8549 and RebootArgument= have been moved from the [Service] section of
8550 unit files to [Unit], and they are now supported on all unit types,
8551 not just service units. Of course, systemd will continue to
8552 understand these settings also at the old location, in order to
8553 maintain compatibility.
8554
3545ab35
LP
8555 Contributions from: Abdo Roig-Maranges, Alban Crequy, Aleksander
8556 Adamowski, Alexander Kuleshov, Andreas Pokorny, Andrei Borzenkov,
8557 Andrew Wilcox, Arthur Clement, Beniamino Galvani, Casey Schaufler,
8558 Chris Atkinson, Chris Mayo, Christian Hesse, Damjan Georgievski, Dan
8559 Dedrick, Daniele Medri, Daniel J Walsh, Daniel Korostil, Daniel Mack,
8560 David Herrmann, Dimitri John Ledkov, Dominik Hannen, Douglas Christman,
8561 Evgeny Vereshchagin, Filipe Brandenburger, Franck Bui, Gabor Kelemen,
8562 Harald Hoyer, Hayden Walles, Helmut Grohne, Henrik Kaare Poulsen,
8563 Hristo Venev, Hui Wang, Indrajit Raychaudhuri, Ismo Puustinen, Jakub
8564 Wilk, Jan Alexander Steffens (heftig), Jan Engelhardt, Jan Synacek,
8565 Joost Bremmer, Jorgen Schaefer, Karel Zak, Klearchos Chaloulos,
8566 lc85446, Lennart Poettering, Lukas Nykryn, Mantas Mikulėnas, Marcel
8567 Holtmann, Martin Pitt, Michael Biebl, Michael Olbrich, Michael Scherer,
8568 Michał Górny, Michal Sekletar, Nicolas Cornu, Nicolas Iooss, Nils
8569 Carlson, nmartensen, nnz1024, Patrick Ohly, Peter Hutterer, Phillip Sz,
8570 Ronny Chevalier, Samu Kallio, Shawn Landden, Stef Walter, Susant
8571 Sahani, Sylvain Plantefève, Tadej Janež, Thomas Hindoe Paaboel
8572 Andersen, Tom Gundersen, Torstein Husebø, Umut Tezduyar Lindskog, Vito
8573 Caputo, WaLyong Cho, Yu Watanabe, Zbigniew Jędrzejewski-Szmek
8574
ccddd104 8575 — Berlin, 2016-02-11
61f32bff 8576
a11c7ea5
LP
8577CHANGES WITH 228:
8578
a11c7ea5
LP
8579 * A number of properties previously only settable in unit
8580 files are now also available as properties to set when
8581 creating transient units programmatically via the bus, as it
8582 is exposed with systemd-run's --property=
8583 setting. Specifically, these are: SyslogIdentifier=,
8584 SyslogLevelPrefix=, TimerSlackNSec=, OOMScoreAdjust=,
8585 EnvironmentFile=, ReadWriteDirectories=,
8586 ReadOnlyDirectories=, InaccessibleDirectories=,
8587 ProtectSystem=, ProtectHome=, RuntimeDirectory=.
8588
28c85daf
LP
8589 * When creating transient services via the bus API it is now
8590 possible to pass in a set of file descriptors to use as
8591 STDIN/STDOUT/STDERR for the invoked process.
a11c7ea5 8592
f1f8a5a5
LP
8593 * Slice units may now be created transiently via the bus APIs,
8594 similar to the way service and scope units may already be
8595 created transiently.
8596
a11c7ea5
LP
8597 * Wherever systemd expects a calendar timestamp specification
8598 (like in journalctl's --since= and --until= switches) UTC
8599 timestamps are now supported. Timestamps suffixed with "UTC"
8600 are now considered to be in Universal Time Coordinated
8601 instead of the local timezone. Also, timestamps may now
815bb5bd 8602 optionally be specified with sub-second accuracy. Both of
a11c7ea5
LP
8603 these additions also apply to recurring calendar event
8604 specification, such as OnCalendar= in timer units.
8605
28c85daf
LP
8606 * journalctl gained a new "--sync" switch that asks the
8607 journal daemon to write all so far unwritten log messages to
8608 disk and sync the files, before returning.
8609
a11c7ea5
LP
8610 * systemd-tmpfiles learned two new line types "q" and "Q" that
8611 operate like "v", but also set up a basic btrfs quota
8612 hierarchy when used on a btrfs file system with quota
8613 enabled.
8614
f1f8a5a5
LP
8615 * tmpfiles' "v", "q" and "Q" will now create a plain directory
8616 instead of a subvolume (even on a btrfs file system) if the
8617 root directory is a plain directory, and not a
8618 subvolume. This should simplify things with certain chroot()
8619 environments which are not aware of the concept of btrfs
8620 subvolumes.
8621
a11c7ea5
LP
8622 * systemd-detect-virt gained a new --chroot switch to detect
8623 whether execution takes place in a chroot() environment.
8624
28c85daf 8625 * CPUAffinity= now takes CPU index ranges in addition to
a11c7ea5
LP
8626 individual indexes.
8627
28c85daf 8628 * The various memory-related resource limit settings (such as
1d3a473b 8629 LimitAS=) now understand the usual K, M, G, … suffixes to
28c85daf 8630 the base of 1024 (IEC). Similar, the time-related resource
1d3a473b
ZJS
8631 limit settings understand the usual min, h, day, … suffixes
8632 now.
28c85daf 8633
f1f8a5a5
LP
8634 * There's a new system.conf setting DefaultTasksMax= to
8635 control the default TasksMax= setting for services and
8636 scopes running on the system. (TasksMax= is the primary
8637 setting that exposes the "pids" cgroup controller on systemd
8638 and was introduced in the previous systemd release.) The
8639 setting now defaults to 512, which means services that are
8640 not explicitly configured otherwise will only be able to
8641 create 512 processes or threads at maximum, from this
8642 version on. Note that this means that thread- or
8643 process-heavy services might need to be reconfigured to set
8644 TasksMax= to a higher value. It is sufficient to set
8645 TasksMax= in these specific unit files to a higher value, or
8646 even "infinity". Similar, there's now a logind.conf setting
8647 UserTasksMax= that defaults to 4096 and limits the total
8648 number of processes or tasks each user may own
8649 concurrently. nspawn containers also have the TasksMax=
8650 value set by default now, to 8192. Note that all of this
8651 only has an effect if the "pids" cgroup controller is
8652 enabled in the kernel. The general benefit of these changes
8653 should be a more robust and safer system, that provides a
8654 certain amount of per-service fork() bomb protection.
8655
28c85daf
LP
8656 * systemd-nspawn gained the new --network-veth-extra= switch
8657 to define additional and arbitrarily-named virtual Ethernet
8658 links between the host and the container.
8659
8660 * A new service execution setting PassEnvironment= has been
8661 added that allows importing select environment variables
8662 from PID1's environment block into the environment block of
8663 the service.
8664
ddb4b0d3 8665 * Timer units gained support for a new RemainAfterElapse=
595bfe7d 8666 setting which takes a boolean argument. It defaults to on,
ddb4b0d3
LP
8667 exposing behaviour unchanged to previous releases. If set to
8668 off, timer units are unloaded after they elapsed if they
8669 cannot elapse again. This is particularly useful for
8670 transient timer units, which shall not stay around longer
8671 than until they first elapse.
8672
a11c7ea5 8673 * systemd will now bump the net.unix.max_dgram_qlen to 512 by
28c85daf
LP
8674 default now (the kernel default is 16). This is beneficial
8675 for avoiding blocking on AF_UNIX/SOCK_DGRAM sockets since it
a11c7ea5
LP
8676 allows substantially larger numbers of queued
8677 datagrams. This should increase the capability of systemd to
8678 parallelize boot-up, as logging and sd_notify() are unlikely
8679 to stall execution anymore. If you need to change the value
8680 from the new defaults, use the usual sysctl.d/ snippets.
8681
28c85daf
LP
8682 * The compression framing format used by the journal or
8683 coredump processing has changed to be in line with what the
8684 official LZ4 tools generate. LZ4 compression support in
8685 systemd was considered unsupported previously, as the format
8686 was not compatible with the normal tools. With this release
8687 this has changed now, and it is hence safe for downstream
8688 distributions to turn it on. While not compressing as well
815bb5bd 8689 as the XZ, LZ4 is substantially faster, which makes
28c85daf
LP
8690 it a good default choice for the compression logic in the
8691 journal and in coredump handling.
a11c7ea5 8692
28c85daf
LP
8693 * Any reference to /etc/mtab has been dropped from
8694 systemd. The file has been obsolete since a while, but
8695 systemd refused to work on systems where it was incorrectly
815bb5bd 8696 set up (it should be a symlink or non-existent). Please make
28c85daf
LP
8697 sure to update to util-linux 2.27.1 or newer in conjunction
8698 with this systemd release, which also drops any reference to
8699 /etc/mtab. If you maintain a distribution make sure that no
8700 software you package still references it, as this is a
8701 likely source of bugs. There's also a glibc bug pending,
8702 asking for removal of any reference to this obsolete file:
8703
8704 https://sourceware.org/bugzilla/show_bug.cgi?id=19108
a11c7ea5 8705
d5bd92bb
LP
8706 Note that only util-linux versions built with
8707 --enable-libmount-force-mountinfo are supported.
8708
a11c7ea5
LP
8709 * Support for the ".snapshot" unit type has been removed. This
8710 feature turned out to be little useful and little used, and
8711 has now been removed from the core and from systemctl.
8712
b9e2f7eb
LP
8713 * The dependency types RequiresOverridable= and
8714 RequisiteOverridable= have been removed from systemd. They
8715 have been used only very sparingly to our knowledge and
8716 other options that provide a similar effect (such as
8717 systemctl --mode=ignore-dependencies) are much more useful
8718 and commonly used. Moreover, they were only half-way
8719 implemented as the option to control behaviour regarding
8720 these dependencies was never added to systemctl. By removing
8721 these dependency types the execution engine becomes a bit
8722 simpler. Unit files that use these dependencies should be
8723 changed to use the non-Overridable dependency types
8724 instead. In fact, when parsing unit files with these
8725 options, that's what systemd will automatically convert them
8726 too, but it will also warn, asking users to fix the unit
8727 files accordingly. Removal of these dependency types should
8728 only affect a negligible number of unit files in the wild.
8729
8730 * Behaviour of networkd's IPForward= option changed
8731 (again). It will no longer maintain a per-interface setting,
8732 but propagate one way from interfaces where this is enabled
8733 to the global kernel setting. The global setting will be
8734 enabled when requested by a network that is set up, but
8735 never be disabled again. This change was made to make sure
8736 IPv4 and IPv6 behaviour regarding packet forwarding is
8737 similar (as the Linux IPv6 stack does not support
8738 per-interface control of this setting) and to minimize
8739 surprises.
8740
28c85daf
LP
8741 * In unit files the behaviour of %u, %U, %h, %s has
8742 changed. These specifiers will now unconditionally resolve
8743 to the various user database fields of the user that the
8744 systemd instance is running as, instead of the user
8745 configured in the specific unit via User=. Note that this
8746 effectively doesn't change much, as resolving of these
8747 specifiers was already turned off in the --system instance
8748 of systemd, as we cannot do NSS lookups from PID 1. In the
8749 --user instance of systemd these specifiers where correctly
8750 resolved, but hardly made any sense, since the user instance
8751 lacks privileges to do user switches anyway, and User= is
ce830873 8752 hence useless. Moreover, even in the --user instance of
28c85daf
LP
8753 systemd behaviour was awkward as it would only take settings
8754 from User= assignment placed before the specifier into
8755 account. In order to unify and simplify the logic around
8756 this the specifiers will now always resolve to the
8757 credentials of the user invoking the manager (which in case
8758 of PID 1 is the root user).
8759
8760 Contributions from: Andrew Jones, Beniamino Galvani, Boyuan
8761 Yang, Daniel Machon, Daniel Mack, David Herrmann, David
8762 Reynolds, David Strauss, Dongsu Park, Evgeny Vereshchagin,
f1f8a5a5
LP
8763 Felipe Sateler, Filipe Brandenburger, Franck Bui, Hristo
8764 Venev, Iago López Galeiras, Jan Engelhardt, Jan Janssen, Jan
8765 Synacek, Jesus Ornelas Aguayo, Karel Zak, kayrus, Kay Sievers,
8766 Lennart Poettering, Liu Yuan Yuan, Mantas Mikulėnas, Marcel
8767 Holtmann, Marcin Bachry, Marcos Alano, Marcos Mello, Mark
8768 Theunissen, Martin Pitt, Michael Marineau, Michael Olbrich,
8769 Michal Schmidt, Michal Sekletar, Mirco Tischler, Nick Owens,
8770 Nicolas Cornu, Patrik Flykt, Peter Hutterer, reverendhomer,
8771 Ronny Chevalier, Sangjung Woo, Seong-ho Cho, Shawn Landden,
8772 Susant Sahani, Thomas Haller, Thomas Hindoe Paaboel Andersen,
8773 Tom Gundersen, Torstein Husebø, Vito Caputo, Zbigniew
8774 Jędrzejewski-Szmek
28c85daf 8775
ccddd104 8776 — Berlin, 2015-11-18
a11c7ea5 8777
c97e586d
DM
8778CHANGES WITH 227:
8779
8780 * systemd now depends on util-linux v2.27. More specifically,
8781 the newly added mount monitor feature in libmount now
8782 replaces systemd's former own implementation.
8783
8784 * libmount mandates /etc/mtab not to be regular file, and
8785 systemd now enforces this condition at early boot.
8786 /etc/mtab has been deprecated and warned about for a very
8787 long time, so systems running systemd should already have
8788 stopped having this file around as anything else than a
8789 symlink to /proc/self/mounts.
8790
d046fb93
LP
8791 * Support for the "pids" cgroup controller has been added. It
8792 allows accounting the number of tasks in a cgroup and
c97e586d
DM
8793 enforcing limits on it. This adds two new setting
8794 TasksAccounting= and TasksMax= to each unit, as well as a
6fd5517b 8795 global option DefaultTasksAccounting=.
c97e586d
DM
8796
8797 * Support for the "net_cls" cgroup controller has been added.
fe08a30b
LP
8798 It allows assigning a net class ID to each task in the
8799 cgroup, which can then be used in firewall rules and traffic
8800 shaping configurations. Note that the kernel netfilter net
8801 class code does not currently work reliably for ingress
8802 packets on unestablished sockets.
c97e586d
DM
8803
8804 This adds a new config directive called NetClass= to CGroup
6fd5517b 8805 enabled units. Allowed values are positive numbers for fixed
c97e586d
DM
8806 assignments and "auto" for picking a free value
8807 automatically.
8808
21d86c61
DM
8809 * 'systemctl is-system-running' now returns 'offline' if the
8810 system is not booted with systemd. This command can now be
8811 used as a substitute for 'systemd-notify --booted'.
8812
8813 * Watchdog timeouts have been increased to 3 minutes for all
8814 in-tree service files. Apparently, disk IO issues are more
8815 frequent than we hoped, and user reported >1 minute waiting
8816 for disk IO.
8817
8818 * 'machine-id-commit' functionality has been merged into
8819 'machine-id-setup --commit'. The separate binary has been
8820 removed.
8821
d046fb93
LP
8822 * The WorkingDirectory= directive in unit files may now be set
8823 to the special value '~'. In this case, the working
8824 directory is set to the home directory of the user
8825 configured in User=.
21d86c61 8826
fe08a30b
LP
8827 * "machinectl shell" will now open the shell in the home
8828 directory of the selected user by default.
8829
21d86c61 8830 * The CrashChVT= configuration file setting is renamed to
d046fb93
LP
8831 CrashChangeVT=, following our usual logic of not
8832 abbreviating unnecessarily. The old directive is still
8833 supported for compat reasons. Also, this directive now takes
8834 an integer value between 1 and 63, or a boolean value. The
8835 formerly supported '-1' value for disabling stays around for
8836 compat reasons.
21d86c61 8837
fe08a30b 8838 * The PrivateTmp=, PrivateDevices=, PrivateNetwork=,
8b5f9d15 8839 NoNewPrivileges=, TTYPath=, WorkingDirectory= and
fe08a30b
LP
8840 RootDirectory= properties can now be set for transient
8841 units.
8842
8843 * The systemd-analyze tool gained a new "set-log-target" verb
8844 to change the logging target the system manager logs to
8845 dynamically during runtime. This is similar to how
8846 "systemd-analyze set-log-level" already changes the log
8847 level.
8848
8849 * In nspawn /sys is now mounted as tmpfs, with only a selected
8850 set of subdirectories mounted in from the real sysfs. This
8851 enhances security slightly, and is useful for ensuring user
8852 namespaces work correctly.
8853
8854 * Support for USB FunctionFS activation has been added. This
8855 allows implementation of USB gadget services that are
8856 activated as soon as they are requested, so that they don't
595bfe7d 8857 have to run continuously, similar to classic socket
fe08a30b
LP
8858 activation.
8859
8860 * The "systemctl exit" command now optionally takes an
8861 additional parameter that sets the exit code to return from
8862 the systemd manager when exiting. This is only relevant when
8863 running the systemd user instance, or when running the
8864 system instance in a container.
8865
8866 * sd-bus gained the new API calls sd_bus_path_encode_many()
8867 and sd_bus_path_decode_many() that allow easy encoding and
8868 decoding of multiple identifier strings inside a D-Bus
8869 object path. Another new call sd_bus_default_flush_close()
8870 has been added to flush and close per-thread default
8871 connections.
8872
8873 * systemd-cgtop gained support for a -M/--machine= switch to
8874 show the control groups within a certain container only.
8875
8876 * "systemctl kill" gained support for an optional --fail
8877 switch. If specified the requested operation will fail of no
8878 processes have been killed, because the unit had no
8879 processes attached, or similar.
8880
bdba9227
DM
8881 * A new systemd.crash_reboot=1 kernel command line option has
8882 been added that triggers a reboot after crashing. This can
8883 also be set through CrashReboot= in systemd.conf.
8884
8885 * The RuntimeDirectory= setting now understands unit
8886 specifiers like %i or %f.
8887
ce830873 8888 * A new (still internal) library API sd-ipv4acd has been added,
fe08a30b
LP
8889 that implements address conflict detection for IPv4. It's
8890 based on code from sd-ipv4ll, and will be useful for
8891 detecting DHCP address conflicts.
8892
bdba9227
DM
8893 * File descriptors passed during socket activation may now be
8894 named. A new API sd_listen_fds_with_names() is added to
a8eaaee7 8895 access the names. The default names may be overridden,
bdba9227
DM
8896 either in the .socket file using the FileDescriptorName=
8897 parameter, or by passing FDNAME= when storing the file
8898 descriptors using sd_notify().
fe08a30b 8899
d046fb93
LP
8900 * systemd-networkd gained support for:
8901
0053598f 8902 - Setting the IPv6 Router Advertisement settings via
edf4126f 8903 IPv6AcceptRouterAdvertisements= in .network files.
d046fb93
LP
8904
8905 - Configuring the HelloTimeSec=, MaxAgeSec= and
8906 ForwardDelaySec= bridge parameters in .netdev files.
8907
8908 - Configuring PreferredSource= for static routes in
edf4126f 8909 .network files.
fe08a30b 8910
bdba9227
DM
8911 * The "ask-password" framework used to query for LUKS harddisk
8912 passwords or SSL passwords during boot gained support for
8913 caching passwords in the kernel keyring, if it is
8914 available. This makes sure that the user only has to type in
8915 a passphrase once if there are multiple objects to unlock
8916 with the same one. Previously, such password caching was
8917 available only when Plymouth was used; this moves the
8918 caching logic into the systemd codebase itself. The
8919 "systemd-ask-password" utility gained a new --keyname=
8920 switch to control which kernel keyring key to use for
8921 caching a password in. This functionality is also useful for
8922 enabling display managers such as gdm to automatically
8923 unlock the user's GNOME keyring if its passphrase, the
8924 user's password and the harddisk password are the same, if
8925 gdm-autologin is used.
fe08a30b
LP
8926
8927 * When downloading tar or raw images using "machinectl
8928 pull-tar" or "machinectl pull-raw", a matching ".nspawn"
8929 file is now also downloaded, if it is available and stored
8930 next to the image file.
c97e586d 8931
91d0d699
LP
8932 * Units of type ".socket" gained a new boolean setting
8933 Writable= which is only useful in conjunction with
8934 ListenSpecial=. If true, enables opening the specified
8935 special file in O_RDWR mode rather than O_RDONLY mode.
8936
8937 * systemd-rfkill has been reworked to become a singleton
8938 service that is activated through /dev/rfkill on each rfkill
8939 state change and saves the settings to disk. This way,
8940 systemd-rfkill is now compatible with devices that exist
8941 only intermittendly, and even restores state if the previous
8942 system shutdown was abrupt rather than clean.
8943
d046fb93
LP
8944 * The journal daemon gained support for vacuuming old journal
8945 files controlled by the number of files that shall remain,
8946 in addition to the already existing control by size and by
8947 date. This is useful as journal interleaving performance
6dd6a9c4 8948 degrades with too many separate journal files, and allows
d046fb93
LP
8949 putting an effective limit on them. The new setting defaults
8950 to 100, but this may be changed by setting SystemMaxFiles=
8951 and RuntimeMaxFiles= in journald.conf. Also, the
8952 "journalctl" tool gained the new --vacuum-files= switch to
8953 manually vacuum journal files to leave only the specified
8954 number of files in place.
c48eb61f 8955
bdba9227
DM
8956 * udev will now create /dev/disk/by-path links for ATA devices
8957 on kernels where that is supported.
c30f086f 8958
efce0ffe 8959 * Galician, Serbian, Turkish and Korean translations were added.
c97e586d 8960
61e6771c
LP
8961 Contributions from: Aaro Koskinen, Alban Crequy, Beniamino
8962 Galvani, Benjamin Robin, Branislav Blaskovic, Chen-Han Hsiao
8963 (Stanley), Daniel Buch, Daniel Machon, Daniel Mack, David
8964 Herrmann, David Milburn, doubleodoug, Evgeny Vereshchagin,
8965 Felipe Franciosi, Filipe Brandenburger, Fran Dieguez, Gabriel
8966 de Perthuis, Georg Müller, Hans de Goede, Hendrik Brueckner,
8967 Ivan Shapovalov, Jacob Keller, Jan Engelhardt, Jan Janssen,
8968 Jan Synacek, Jens Kuske, Karel Zak, Kay Sievers, Krzesimir
8969 Nowak, Krzysztof Kotlenga, Lars Uebernickel, Lennart
8970 Poettering, Lukas Nykryn, Łukasz Stelmach, Maciej Wereski,
8971 Marcel Holtmann, Marius Thesing, Martin Pitt, Michael Biebl,
8972 Michael Gebetsroither, Michal Schmidt, Michal Sekletar, Mike
8973 Gilbert, Muhammet Kara, nazgul77, Nicolas Cornu, NoXPhasma,
8974 Olof Johansson, Patrik Flykt, Pawel Szewczyk, reverendhomer,
8975 Ronny Chevalier, Sangjung Woo, Seong-ho Cho, Susant Sahani,
8976 Sylvain Plantefève, Thomas Haller, Thomas Hindoe Paaboel
8977 Andersen, Tom Gundersen, Tom Lyon, Viktar Vauchkevich,
8978 Zbigniew Jędrzejewski-Szmek, Марко М. Костић
8979
ccddd104 8980 — Berlin, 2015-10-07
c97e586d 8981
c9912c5e
DH
8982CHANGES WITH 226:
8983
5e8d4254
LP
8984 * The DHCP implementation of systemd-networkd gained a set of
8985 new features:
8986
8987 - The DHCP server now supports emitting DNS and NTP
8988 information. It may be enabled and configured via
8989 EmitDNS=, DNS=, EmitNTP=, and NTP=. If transmission of DNS
8990 and NTP information is enabled, but no servers are
8991 configured, the corresponding uplink information (if there
8992 is any) is propagated.
8993
8994 - Server and client now support transmission and reception
8995 of timezone information. It can be configured via the
8996 newly introduced network options UseTimezone=,
8997 EmitTimezone=, and Timezone=. Transmission of timezone
8998 information is enabled between host and containers by
8999 default now: the container will change its local timezone
9000 to what the host has set.
9001
9002 - Lease timeouts can now be configured via
9003 MaxLeaseTimeSec= and DefaultLeaseTimeSec=.
9004
9005 - The DHCP server improved on the stability of
9006 leases. Clients are more likely to get the same lease
9007 information back, even if the server loses state.
9008
9009 - The DHCP server supports two new configuration options to
9010 control the lease address pool metrics, PoolOffset= and
9011 PoolSize=.
9012
9013 * The encapsulation limit of tunnels in systemd-networkd may
9014 now be configured via 'EncapsulationLimit='. It allows
9015 modifying the maximum additional levels of encapsulation
9016 that are permitted to be prepended to a packet.
9017
9018 * systemd now supports the concept of user buses replacing
9019 session buses, if used with dbus-1.10 (and enabled via dbus
9020 --enable-user-session). It previously only supported this on
9021 kdbus-enabled systems, and this release expands this to
9022 'dbus-daemon' systems.
9023
9024 * systemd-networkd now supports predictable interface names
9025 for virtio devices.
9026
9027 * systemd now optionally supports the new Linux kernel
9028 "unified" control group hierarchy. If enabled via the kernel
9029 command-line option 'systemd.unified_cgroup_hierarchy=1',
9030 systemd will try to mount the unified cgroup hierarchy
9031 directly on /sys/fs/cgroup. If not enabled, or not
9032 available, systemd will fall back to the legacy cgroup
9033 hierarchy setup, as before. Host system and containers can
9034 mix and match legacy and unified hierarchies as they
856ca72b 9035 wish. nspawn understands the $UNIFIED_CGROUP_HIERARCHY
5e8d4254
LP
9036 environment variable to individually select the hierarchy to
9037 use for executed containers. By default, nspawn will use the
9038 unified hierarchy for the containers if the host uses the
9039 unified hierarchy, and the legacy hierarchy otherwise.
9040 Please note that at this point the unified hierarchy is an
9041 experimental kernel feature and is likely to change in one
9042 of the next kernel releases. Therefore, it should not be
9043 enabled by default in downstream distributions yet. The
9044 minimum required kernel version for the unified hierarchy to
9045 work is 4.2. Note that when the unified hierarchy is used
9046 for the first time delegated access to controllers is
9047 safe. Because of this systemd-nspawn containers will get
9048 access to controllers now, as will systemd user
9049 sessions. This means containers and user sessions may now
9050 manage their own resources, partitioning up what the system
9051 grants them.
9052
9053 * A new special scope unit "init.scope" has been introduced
9054 that encapsulates PID 1 of the system. It may be used to
9055 determine resource usage and enforce resource limits on PID
9056 1 itself. PID 1 hence moved out of the root of the control
9057 group tree.
9058
9059 * The cgtop tool gained support for filtering out kernel
9060 threads when counting tasks in a control group. Also, the
9061 count of processes is now recursively summed up by
9062 default. Two options -k and --recursive= have been added to
9063 revert to old behaviour. The tool has also been updated to
9064 work correctly in containers now.
9065
9066 * systemd-nspawn's --bind= and --bind-ro= options have been
9067 extended to allow creation of non-recursive bind mounts.
9068
c626bf1d
DM
9069 * libsystemd gained two new calls sd_pid_get_cgroup() and
9070 sd_peer_get_cgroup() which return the control group path of
5e8d4254
LP
9071 a process or peer of a connected AF_UNIX socket. This
9072 function call is particularly useful when implementing
9073 delegated subtrees support in the control group hierarchy.
9074
9075 * The "sd-event" event loop API of libsystemd now supports
9076 correct dequeuing of real-time signals, without losing
9077 signal events.
9078
d35f51ea
ZJS
9079 * When systemd requests a polkit decision when managing units it
9080 will now add additional fields to the request, including unit
9081 name and desired operation. This enables more powerful polkit
9082 policies, that make decisions depending on these parameters.
c9912c5e 9083
47f5a38c
LP
9084 * nspawn learnt support for .nspawn settings files, that may
9085 accompany the image files or directories of containers, and
9086 may contain additional settings for the container. This is
9087 an alternative to configuring container parameters via the
9088 nspawn command line.
9089
2f77decc
LP
9090 Contributions from: Cristian Rodríguez, Daniel Mack, David
9091 Herrmann, Eugene Yakubovich, Evgeny Vereshchagin, Filipe
9092 Brandenburger, Hans de Goede, Jan Alexander Steffens, Jan
9093 Synacek, Kay Sievers, Lennart Poettering, Mangix, Marcel
9094 Holtmann, Martin Pitt, Michael Biebl, Michael Chapman, Michal
9095 Sekletar, Peter Hutterer, Piotr Drąg, reverendhomer, Robin
9096 Hack, Susant Sahani, Sylvain Pasche, Thomas Hindoe Paaboel
23d08d1b 9097 Andersen, Tom Gundersen, Torstein Husebø
c9912c5e 9098
ccddd104 9099 — Berlin, 2015-09-08
c9912c5e 9100
ec5249a2
DM
9101CHANGES WITH 225:
9102
5e8d4254
LP
9103 * machinectl gained a new verb 'shell' which opens a fresh
9104 shell on the target container or the host. It is similar to
9105 the existing 'login' command of machinectl, but spawns the
9106 shell directly without prompting for username or
9107 password. The pseudo machine '.host' now refers to the local
9108 host and is used by default. Hence, 'machinectl shell' can
9109 be used as replacement for 'su -' which spawns a session as
9110 a fresh systemd unit in a way that is fully isolated from
9111 the originating session.
9112
9113 * systemd-networkd learned to cope with private-zone DHCP
9114 options and allows other programs to query the values.
9115
9116 * SELinux access control when enabling/disabling units is no
d35f51ea
ZJS
9117 longer enforced with this release. The previous implementation
9118 was incorrect, and a new corrected implementation is not yet
9119 available. As unit file operations are still protected via
9120 polkit and D-Bus policy this is not a security problem. Yet,
9121 distributions which care about optimal SELinux support should
9122 probably not stabilize on this release.
5e8d4254
LP
9123
9124 * sd-bus gained support for matches of type "arg0has=", that
9125 test for membership of strings in string arrays sent in bus
9126 messages.
9127
9128 * systemd-resolved now dumps the contents of its DNS and LLMNR
9129 caches to the logs on reception of the SIGUSR1 signal. This
9130 is useful to debug DNS behaviour.
9131
9132 * The coredumpctl tool gained a new --directory= option to
9133 operate on journal files in a specific directory.
9134
9135 * "systemctl reboot" and related commands gained a new
9136 "--message=" option which may be used to set a free-text
9137 wall message when shutting down or rebooting the
9138 system. This message is also logged, which is useful for
9139 figuring out the reason for a reboot or shutdown a
9140 posteriori.
9141
9142 * The "systemd-resolve-host" tool's -i switch now takes
9143 network interface numbers as alternative to interface names.
9144
9145 * A new unit file setting for services has been introduced:
9146 UtmpMode= allows configuration of how precisely systemd
9147 handles utmp and wtmp entries for the service if this is
9148 enabled. This allows writing services that appear similar to
9149 user sessions in the output of the "w", "who", "last" and
9150 "lastlog" tools.
9151
9152 * systemd-resolved will now locally synthesize DNS resource
9153 records for the "localhost" and "gateway" domains as well as
9154 the local hostname. This should ensure that clients querying
9155 RRs via resolved will get similar results as those going via
9156 NSS, if nss-myhostname is enabled.
9157
9158 Contributions from: Alastair Hughes, Alex Crawford, Daniel
9159 Mack, David Herrmann, Dimitri John Ledkov, Eric Kostrowski,
9160 Evgeny Vereshchagin, Felipe Sateler, HATAYAMA Daisuke, Jan
9161 Pokorný, Jan Synacek, Johnny Robeson, Karel Zak, Kay Sievers,
9162 Kefeng Wang, Lennart Poettering, Major Hayden, Marcel
9163 Holtmann, Markus Elfring, Martin Mikkelsen, Martin Pitt, Matt
9164 Turner, Maxim Mikityanskiy, Michael Biebl, Namhyung Kim,
9165 Nicolas Cornu, Owen W. Taylor, Patrik Flykt, Peter Hutterer,
9166 reverendhomer, Richard Maw, Ronny Chevalier, Seth Jennings,
9167 Stef Walter, Susant Sahani, Thomas Blume, Thomas Hindoe
9168 Paaboel Andersen, Thomas Meyer, Tom Gundersen, Vincent Batts,
9169 WaLyong Cho, Zbigniew Jędrzejewski-Szmek
e1439a14 9170
ccddd104 9171 — Berlin, 2015-08-27
ec5249a2 9172
11811e85
DH
9173CHANGES WITH 224:
9174
10fa421c
DH
9175 * The systemd-efi-boot-generator functionality was merged into
9176 systemd-gpt-auto-generator.
9177
5e8d4254
LP
9178 * systemd-networkd now supports Group Policy for vxlan
9179 devices. It can be enabled via the new boolean configuration
9180 option called 'GroupPolicyExtension='.
10fa421c 9181
11811e85
DH
9182 Contributions from: Andreas Kempf, Christian Hesse, Daniel Mack, David
9183 Herrmann, Herman Fries, Johannes Nixdorf, Kay Sievers, Lennart
9184 Poettering, Peter Hutterer, Susant Sahani, Tom Gundersen
9185
ccddd104 9186 — Berlin, 2015-07-31
11811e85 9187
e57eaef8
DH
9188CHANGES WITH 223:
9189
9190 * The python-systemd code has been removed from the systemd repository.
9191 A new repository has been created which accommodates the code from
9192 now on, and we kindly ask distributions to create a separate package
9193 for this: https://github.com/systemd/python-systemd
9194
01608bc8 9195 * The systemd daemon will now reload its main configuration
e57eaef8
DH
9196 (/etc/systemd/system.conf) on daemon-reload.
9197
9198 * sd-dhcp now exposes vendor specific extensions via
9199 sd_dhcp_lease_get_vendor_specific().
9200
931618d0
DM
9201 * systemd-networkd gained a number of new configuration options.
9202
9203 - A new boolean configuration option for TAP devices called
37d54b93 9204 'VNetHeader='. If set, the IFF_VNET_HDR flag is set for the
931618d0
DM
9205 device, thus allowing to send and receive GSO packets.
9206
9207 - A new tunnel configuration option called 'CopyDSCP='.
9208 If enabled, the DSCP field of ip6 tunnels is copied into the
9209 decapsulated packet.
9210
9211 - A set of boolean bridge configuration options were added.
9212 'UseBPDU=', 'HairPin=', 'FastLeave=', 'AllowPortToBeRoot=',
9213 and 'UnicastFlood=' are now parsed by networkd and applied to the
9214 respective bridge link device via the respective IFLA_BRPORT_*
9215 netlink attribute.
9216
9217 - A new string configuration option to override the hostname sent
9218 to a DHCP server, called 'Hostname='. If set and 'SendHostname='
9219 is true, networkd will use the configured hostname instead of the
9220 system hostname when sending DHCP requests.
9221
9222 - A new tunnel configuration option called 'IPv6FlowLabel='. If set,
9223 networkd will configure the IPv6 flow-label of the tunnel device
9224 according to RFC2460.
e57eaef8 9225
f5f113f6
DH
9226 - The 'macvtap' virtual network devices are now supported, similar to
9227 the already supported 'macvlan' devices.
9228
e57eaef8 9229 * systemd-resolved now implements RFC5452 to improve resilience against
01608bc8 9230 cache poisoning. Additionally, source port randomization is enabled
e57eaef8
DH
9231 by default to further protect against DNS spoofing attacks.
9232
9233 * nss-mymachines now supports translating UIDs and GIDs of running
9234 containers with user-namespaces enabled. If a container 'foo'
9235 translates a host uid 'UID' to the container uid 'TUID', then
9236 nss-mymachines will also map uid 'UID' to/from username 'vu-foo-TUID'
9237 (with 'foo' and 'TUID' replaced accordingly). Similarly, groups are
9238 mapped as 'vg-foo-TGID'.
9239
9240 Contributions from: Beniamino Galvani, cee1, Christian Hesse, Daniel
e4e66993
DH
9241 Buch, Daniel Mack, daurnimator, David Herrmann, Dimitri John Ledkov,
9242 HATAYAMA Daisuke, Ivan Shapovalov, Jan Alexander Steffens (heftig),
9243 Johan Ouwerkerk, Jose Carlos Venegas Munoz, Karel Zak, Kay Sievers,
9244 Lennart Poettering, Lidong Zhong, Martin Pitt, Michael Biebl, Michael
9245 Olbrich, Michal Schmidt, Michal Sekletar, Mike Gilbert, Namhyung Kim,
9246 Nick Owens, Peter Hutterer, Richard Maw, Steven Allen, Sungbae Yoo,
9247 Susant Sahani, Thomas Blume, Thomas Hindoe Paaboel Andersen, Tom
9248 Gundersen, Torstein Husebø, Umut Tezduyar Lindskog, Vito Caputo,
9249 Vivenzio Pagliari, Zbigniew Jędrzejewski-Szmek
9250
ccddd104 9251 — Berlin, 2015-07-29
e57eaef8 9252
0db83ad7 9253CHANGES WITH 222:
5541c889 9254
861b02eb
KS
9255 * udev does not longer support the WAIT_FOR_SYSFS= key in udev rules.
9256 There are no known issues with current sysfs, and udev does not need
9257 or should be used to work around such bugs.
9258
9259 * udev does no longer enable USB HID power management. Several reports
9260 indicate, that some devices cannot handle that setting.
0db83ad7
DH
9261
9262 * The udev accelerometer helper was removed. The functionality
9263 is now fully included in iio-sensor-proxy. But this means,
9264 older iio-sensor-proxy versions will no longer provide
9265 accelerometer/orientation data with this systemd version.
9266 Please upgrade iio-sensor-proxy to version 1.0.
9267
5541c889
DH
9268 * networkd gained a new configuration option IPv6PrivacyExtensions=
9269 which enables IPv6 privacy extensions (RFC 4941, "Privacy Extensions
9270 for Stateless Address") on selected networks.
9271
9b361114
DM
9272 * For the sake of fewer build-time dependencies and less code in the
9273 main repository, the python bindings are about to be removed in the
9274 next release. A new repository has been created which accommodates
9275 the code from now on, and we kindly ask distributions to create a
9276 separate package for this. The removal will take place in v223.
9277
9278 https://github.com/systemd/python-systemd
9279
0db83ad7
DH
9280 Contributions from: Abdo Roig-Maranges, Andrew Eikum, Bastien Nocera,
9281 Cédric Delmas, Christian Hesse, Christos Trochalakis, Daniel Mack,
9282 daurnimator, David Herrmann, Dimitri John Ledkov, Eric Biggers, Eric
9283 Cook, Felipe Sateler, Geert Jansen, Gerd Hoffmann, Gianpaolo Macario,
5541c889
DH
9284 Greg Kroah-Hartman, Iago López Galeiras, Jan Alexander Steffens
9285 (heftig), Jan Engelhardt, Jay Strict, Kay Sievers, Lennart Poettering,
0db83ad7
DH
9286 Markus Knetschke, Martin Pitt, Michael Biebl, Michael Marineau, Michal
9287 Sekletar, Miguel Bernal Marin, Peter Hutterer, Richard Maw, rinrinne,
2d1ca112
DH
9288 Susant Sahani, Thomas Hindoe Paaboel Andersen, Tom Gundersen, Torstein
9289 Husebø, Vedran Miletić, WaLyong Cho, Zbigniew Jędrzejewski-Szmek
0db83ad7 9290
ccddd104 9291 — Berlin, 2015-07-07
0db83ad7 9292
0f0467e6
MP
9293CHANGES WITH 221:
9294
470e72d4 9295 * The sd-bus.h and sd-event.h APIs have now been declared
5f92d24f 9296 stable and have been added to the official interface of
470e72d4
LP
9297 libsystemd.so. sd-bus implements an alternative D-Bus client
9298 library, that is relatively easy to use, very efficient and
9299 supports both classic D-Bus as well as kdbus as transport
9300 backend. sd-event is a generic event loop abstraction that
9301 is built around Linux epoll, but adds features such as event
0aee49d5 9302 prioritization or efficient timer handling. Both APIs are good
470e72d4
LP
9303 choices for C programs looking for a bus and/or event loop
9304 implementation that is minimal and does not have to be
5f92d24f 9305 portable to other kernels.
0f0467e6 9306
470e72d4
LP
9307 * kdbus support is no longer compile-time optional. It is now
9308 always built-in. However, it can still be disabled at
9309 runtime using the kdbus=0 kernel command line setting, and
c6551464 9310 that setting may be changed to default to off, by specifying
470e72d4
LP
9311 --disable-kdbus at build-time. Note though that the kernel
9312 command line setting has no effect if the kdbus.ko kernel
9313 module is not installed, in which case kdbus is (obviously)
9314 also disabled. We encourage all downstream distributions to
0aee49d5 9315 begin testing kdbus by adding it to the kernel images in the
470e72d4
LP
9316 development distributions, and leaving kdbus support in
9317 systemd enabled.
0f0467e6 9318
470e72d4
LP
9319 * The minimal required util-linux version has been bumped to
9320 2.26.
9321
9322 * Support for chkconfig (--enable-chkconfig) was removed in
0aee49d5 9323 favor of calling an abstraction tool
470e72d4
LP
9324 /lib/systemd/systemd-sysv-install. This needs to be
9325 implemented for your distribution. See "SYSV INIT.D SCRIPTS"
9326 in README for details.
9327
9328 * If there's a systemd unit and a SysV init script for the
9329 same service name, and the user executes "systemctl enable"
9330 for it (or a related call), then this will now enable both
9331 (or execute the related operation on both), not just the
9332 unit.
9333
9334 * The libudev API documentation has been converted from gtkdoc
9335 into man pages.
9336
9337 * gudev has been removed from the systemd tree, it is now an
9338 external project.
9339
9340 * The systemd-cgtop tool learnt a new --raw switch to generate
0aee49d5 9341 "raw" (machine parsable) output.
470e72d4
LP
9342
9343 * networkd's IPForwarding= .network file setting learnt the
9344 new setting "kernel", which ensures that networkd does not
9345 change the IP forwarding sysctl from the default kernel
9346 state.
9347
9348 * The systemd-logind bus API now exposes a new boolean
9349 property "Docked" that reports whether logind considers the
9350 system "docked", i.e. connected to a docking station or not.
9351
9352 Contributions from: Alex Crawford, Andreas Pokorny, Andrei
9353 Borzenkov, Charles Duffy, Colin Guthrie, Cristian Rodríguez,
9354 Daniele Medri, Daniel Hahler, Daniel Mack, David Herrmann,
9355 David Mohr, Dimitri John Ledkov, Djalal Harouni, dslul, Ed
9356 Swierk, Eric Cook, Filipe Brandenburger, Gianpaolo Macario,
9357 Harald Hoyer, Iago López Galeiras, Igor Vuk, Jan Synacek,
9358 Jason Pleau, Jason S. McMullan, Jean Delvare, Jeff Huang,
9359 Jonathan Boulle, Karel Zak, Kay Sievers, kloun, Lennart
9360 Poettering, Marc-Antoine Perennou, Marcel Holtmann, Mario
9361 Limonciello, Martin Pitt, Michael Biebl, Michael Olbrich,
9362 Michal Schmidt, Mike Gilbert, Nick Owens, Pablo Lezaeta Reyes,
b912e251
LP
9363 Patrick Donnelly, Pavel Odvody, Peter Hutterer, Philip
9364 Withnall, Ronny Chevalier, Simon McVittie, Susant Sahani,
9365 Thomas Hindoe Paaboel Andersen, Tom Gundersen, Torstein
9366 Husebø, Umut Tezduyar Lindskog, Viktar Vauchkevich, Werner
9367 Fink, Zbigniew Jędrzejewski-Szmek
470e72d4 9368
ccddd104 9369 — Berlin, 2015-06-19
0f0467e6 9370
481a0aa2
LP
9371CHANGES WITH 220:
9372
f7a73a25
DH
9373 * The gudev library has been extracted into a separate repository
9374 available at: https://git.gnome.org/browse/libgudev/
9375 It is now managed as part of the Gnome project. Distributions
9376 are recommended to pass --disable-gudev to systemd and use
9377 gudev from the Gnome project instead. gudev is still included
9378 in systemd, for now. It will be removed soon, though. Please
9379 also see the announcement-thread on systemd-devel:
56cadcb6 9380 https://lists.freedesktop.org/archives/systemd-devel/2015-May/032070.html
f7a73a25 9381
481a0aa2
LP
9382 * systemd now exposes a CPUUsageNSec= property for each
9383 service unit on the bus, that contains the overall consumed
9384 CPU time of a service (the sum of what each process of the
9385 service consumed). This value is only available if
9386 CPUAccounting= is turned on for a service, and is then shown
9387 in the "systemctl status" output.
9388
9389 * Support for configuring alternative mappings of the old SysV
9390 runlevels to systemd targets has been removed. They are now
29d1fcb4 9391 hardcoded in a way that runlevels 2, 3, 4 all map to
481a0aa2
LP
9392 multi-user.target and 5 to graphical.target (which
9393 previously was already the default behaviour).
9394
9395 * The auto-mounter logic gained support for mount point
9396 expiry, using a new TimeoutIdleSec= setting in .automount
9397 units. (Also available as x-systemd.idle-timeout= in /etc/fstab).
9398
9399 * The EFI System Partition (ESP) as mounted to /boot by
9400 systemd-efi-boot-generator will now be unmounted
29d1fcb4 9401 automatically after 2 minutes of not being used. This should
481a0aa2
LP
9402 minimize the risk of ESP corruptions.
9403
9404 * New /etc/fstab options x-systemd.requires= and
9405 x-systemd.requires-mounts-for= are now supported to express
9406 additional dependencies for mounts. This is useful for
28423d9a 9407 journaling file systems that support external journal
481a0aa2
LP
9408 devices or overlay file systems that require underlying file
9409 systems to be mounted.
9410
9411 * systemd does not support direct live-upgrades (via systemctl
9412 daemon-reexec) from versions older than v44 anymore. As no
9413 distribution we are aware of shipped such old versions in a
9414 stable release this should not be problematic.
9415
9416 * When systemd forks off a new per-connection service instance
9417 it will now set the $REMOTE_ADDR environment variable to the
9418 remote IP address, and $REMOTE_PORT environment variable to
9419 the remote IP port. This behaviour is similar to the
9420 corresponding environment variables defined by CGI.
9421
9422 * systemd-networkd gained support for uplink failure
9423 detection. The BindCarrier= option allows binding interface
9424 configuration dynamically to the link sense of other
9425 interfaces. This is useful to achieve behaviour like in
9426 network switches.
9427
9428 * systemd-networkd gained support for configuring the DHCP
9429 client identifier to use when requesting leases.
9430
9431 * systemd-networkd now has a per-network UseNTP= option to
9432 configure whether NTP server information acquired via DHCP
9433 is passed on to services like systemd-timesyncd.
9434
9435 * systemd-networkd gained support for vti6 tunnels.
9436
1579dd2c
LP
9437 * Note that systemd-networkd manages the sysctl variable
9438 /proc/sys/net/ipv[46]/conf/*/forwarding for each interface
9439 it is configured for since v219. The variable controls IP
9440 forwarding, and is a per-interface alternative to the global
9441 /proc/sys/net/ipv[46]/ip_forward. This setting is
9442 configurable in the IPForward= option, which defaults to
9443 "no". This means if networkd is used for an interface it is
9444 no longer sufficient to set the global sysctl option to turn
9445 on IP forwarding! Instead, the .network file option
9446 IPForward= needs to be turned on! Note that the
9447 implementation of this behaviour was broken in v219 and has
9448 been fixed in v220.
9449
481a0aa2
LP
9450 * Many bonding and vxlan options are now configurable in
9451 systemd-networkd.
9452
9453 * systemd-nspawn gained a new --property= setting to set unit
9454 properties for the container scope. This is useful for
ce830873 9455 setting resource parameters (e.g. "CPUShares=500") on
481a0aa2
LP
9456 containers started from the command line.
9457
9458 * systemd-nspawn gained a new --private-users= switch to make
9459 use of user namespacing available on recent Linux kernels.
9460
9461 * systemd-nspawn may now be called as part of a shell pipeline
9462 in which case the pipes used for stdin and stdout are passed
9463 directly to the process invoked in the container, without
9464 indirection via a pseudo tty.
9465
9466 * systemd-nspawn gained a new switch to control the UNIX
9467 signal to use when killing the init process of the container
9468 when shutting down.
9469
9470 * systemd-nspawn gained a new --overlay= switch for mounting
9471 overlay file systems into the container using the new kernel
9472 overlayfs support.
9473
9474 * When a container image is imported via systemd-importd and
9475 the host file system is not btrfs, a loopback block device
9476 file is created in /var/lib/machines.raw with a btrfs file
9477 system inside. It is then mounted to /var/lib/machines to
9478 enable btrfs features for container management. The loopback
9479 file and btrfs file system is grown as needed when container
9480 images are imported via systemd-importd.
9481
9482 * systemd-machined/systemd-importd gained support for btrfs
9483 quota, to enforce container disk space limits on disk. This
9484 is exposed in "machinectl set-limit".
9485
9486 * systemd-importd now can import containers from local .tar,
9487 .raw and .qcow2 images, and export them to .tar and .raw. It
9488 can also import dkr v2 images now from the network (on top
9489 of v1 as before).
9490
9491 * systemd-importd gained support for verifying downloaded
9492 images with gpg2 (previously only gpg1 was supported).
9493
d35f51ea
ZJS
9494 * systemd-machined, systemd-logind, systemd: most bus calls are
9495 now accessible to unprivileged processes via polkit. Also,
9496 systemd-logind will now allow users to kill their own sessions
9497 without further privileges or authorization.
481a0aa2
LP
9498
9499 * systemd-shutdownd has been removed. This service was
9500 previously responsible for implementing scheduled shutdowns
9501 as exposed in /usr/bin/shutdown's time parameter. This
9502 functionality has now been moved into systemd-logind and is
9503 accessible via a bus interface.
9504
9505 * "systemctl reboot" gained a new switch --firmware-setup that
9506 can be used to reboot into the EFI firmware setup, if that
9507 is available. systemd-logind now exposes an API on the bus
9508 to trigger such reboots, in case graphical desktop UIs want
9509 to cover this functionality.
9510
9511 * "systemctl enable", "systemctl disable" and "systemctl mask"
1579dd2c 9512 now support a new "--now" switch. If specified the units
481a0aa2
LP
9513 that are enabled will also be started, and the ones
9514 disabled/masked also stopped.
9515
9516 * The Gummiboot EFI boot loader tool has been merged into
1a2d5fbe
DH
9517 systemd, and renamed to "systemd-boot". The bootctl tool has been
9518 updated to support systemd-boot.
481a0aa2
LP
9519
9520 * An EFI kernel stub has been added that may be used to create
9521 kernel EFI binaries that contain not only the actual kernel,
9522 but also an initrd, boot splash, command line and OS release
9523 information. This combined binary can then be signed as a
9524 single image, so that the firmware can verify it all in one
1a2d5fbe 9525 step. systemd-boot has special support for EFI binaries created
481a0aa2
LP
9526 like this and can extract OS release information from them
9527 and show them in the boot menu. This functionality is useful
9528 to implement cryptographically verified boot schemes.
9529
9530 * Optional support has been added to systemd-fsck to pass
9531 fsck's progress report to an AF_UNIX socket in the file
9532 system.
9533
6b000af4
LP
9534 * udev will no longer create device symlinks for all block devices by
9535 default. A deny list for excluding special block devices from this
387f6955 9536 logic has been turned into an allow list that requires picking block
6b000af4 9537 devices explicitly that require device symlinks.
481a0aa2
LP
9538
9539 * A new (currently still internal) API sd-device.h has been
9540 added to libsystemd. This modernized API is supposed to
9541 replace libudev eventually. In fact, already much of libudev
9542 is now just a wrapper around sd-device.h.
9543
9544 * A new hwdb database for storing metadata about pointing
9545 stick devices has been added.
9546
9547 * systemd-tmpfiles gained support for setting file attributes
9548 similar to the "chattr" tool with new 'h' and 'H' lines.
9549
9550 * systemd-journald will no longer unconditionally set the
9551 btrfs NOCOW flag on new journal files. This is instead done
9552 with tmpfiles snippet using the new 'h' line type. This
9553 allows easy disabling of this logic, by masking the
9554 journal-nocow.conf tmpfiles file.
9555
9556 * systemd-journald will now translate audit message types to
9557 human readable identifiers when writing them to the
9558 journal. This should improve readability of audit messages.
9559
9560 * The LUKS logic gained support for the offset= and skip=
9561 options in /etc/crypttab, as previously implemented by
9562 Debian.
9563
9564 * /usr/lib/os-release gained a new optional field VARIANT= for
9565 distributions that support multiple variants (such as a
1d3a473b 9566 desktop edition, a server edition, …)
481a0aa2
LP
9567
9568 Contributions from: Aaro Koskinen, Adam Goode, Alban Crequy,
9569 Alberto Fanjul Alonso, Alexander Sverdlin, Alex Puchades, Alin
9570 Rauta, Alison Chaiken, Andrew Jones, Arend van Spriel,
9571 Benedikt Morbach, Benjamin Franzke, Benjamin Tissoires, Blaž
9572 Tomažič, Chris Morgan, Chris Morin, Colin Walters, Cristian
9573 Rodríguez, Daniel Buch, Daniel Drake, Daniele Medri, Daniel
9574 Mack, Daniel Mustieles, daurnimator, Davide Bettio, David
9575 Herrmann, David Strauss, Didier Roche, Dimitri John Ledkov,
9576 Eric Cook, Gavin Li, Goffredo Baroncelli, Hannes Reinecke,
9577 Hans de Goede, Hans-Peter Deifel, Harald Hoyer, Iago López
9578 Galeiras, Ivan Shapovalov, Jan Engelhardt, Jan Janssen, Jan
9579 Pazdziora, Jan Synacek, Jasper St. Pierre, Jay Faulkner, John
9580 Paul Adrian Glaubitz, Jonathon Gilbert, Karel Zak, Kay
9581 Sievers, Koen Kooi, Lennart Poettering, Lubomir Rintel, Lucas
9582 De Marchi, Lukas Nykryn, Lukas Rusak, Lukasz Skalski, Łukasz
9583 Stelmach, Mantas Mikulėnas, Marc-Antoine Perennou, Marcel
9584 Holtmann, Martin Pitt, Mathieu Chevrier, Matthew Garrett,
9585 Michael Biebl, Michael Marineau, Michael Olbrich, Michal
9586 Schmidt, Michal Sekletar, Mirco Tischler, Nir Soffer, Patrik
9587 Flykt, Pavel Odvody, Peter Hutterer, Peter Lemenkov, Peter
9588 Waller, Piotr Drąg, Raul Gutierrez S, Richard Maw, Ronny
9589 Chevalier, Ross Burton, Sebastian Rasmussen, Sergey Ptashnick,
9590 Seth Jennings, Shawn Landden, Simon Farnsworth, Stefan Junker,
9591 Stephen Gallagher, Susant Sahani, Sylvain Plantefève, Thomas
9592 Haller, Thomas Hindoe Paaboel Andersen, Tobias Hunger, Tom
9593 Gundersen, Torstein Husebø, Umut Tezduyar Lindskog, Will
9594 Woods, Zachary Cook, Zbigniew Jędrzejewski-Szmek
9595
ccddd104 9596 — Berlin, 2015-05-22
481a0aa2 9597
615aaf41
LP
9598CHANGES WITH 219:
9599
615aaf41
LP
9600 * Introduce a new API "sd-hwdb.h" for querying the hardware
9601 metadata database. With this minimal interface one can query
9602 and enumerate the udev hwdb, decoupled from the old libudev
9603 library. libudev's interface for this is now only a wrapper
9604 around sd-hwdb. A new tool systemd-hwdb has been added to
9605 interface with and update the database.
9606
9607 * When any of systemd's tools copies files (for example due to
9608 tmpfiles' C lines) a btrfs reflink will attempted first,
9609 before bytewise copying is done.
9610
9611 * systemd-nspawn gained a new --ephemeral switch. When
9612 specified a btrfs snapshot is taken of the container's root
9613 directory, and immediately removed when the container
9614 terminates again. Thus, a container can be started whose
9615 changes never alter the container's root directory, and are
9616 lost on container termination. This switch can also be used
9617 for starting a container off the root file system of the
9618 host without affecting the host OS. This switch is only
9619 available on btrfs file systems.
9620
9621 * systemd-nspawn gained a new --template= switch. It takes the
9622 path to a container tree to use as template for the tree
7edecf21 9623 specified via --directory=, should that directory be
615aaf41
LP
9624 missing. This allows instantiating containers dynamically,
9625 on first run. This switch is only available on btrfs file
9626 systems.
9627
9628 * When a .mount unit refers to a mount point on which multiple
9629 mounts are stacked, and the .mount unit is stopped all of
9630 the stacked mount points will now be unmounted until no
9631 mount point remains.
9632
9633 * systemd now has an explicit notion of supported and
9634 unsupported unit types. Jobs enqueued for unsupported unit
9635 types will now fail with an "unsupported" error code. More
9636 specifically .swap, .automount and .device units are not
9637 supported in containers, .busname units are not supported on
9638 non-kdbus systems. .swap and .automount are also not
9639 supported if their respective kernel compile time options
9640 are disabled.
9641
9642 * machinectl gained support for two new "copy-from" and
9643 "copy-to" commands for copying files from a running
9644 container to the host or vice versa.
9645
9646 * machinectl gained support for a new "bind" command to bind
9647 mount host directories into local containers. This is
9648 currently only supported for nspawn containers.
9649
9650 * networkd gained support for configuring bridge forwarding
9651 database entries (fdb) from .network files.
9652
9653 * A new tiny daemon "systemd-importd" has been added that can
9654 download container images in tar, raw, qcow2 or dkr formats,
9655 and make them available locally in /var/lib/machines, so
9656 that they can run as nspawn containers. The daemon can GPG
9657 verify the downloads (not supported for dkr, since it has no
9658 provisions for verifying downloads). It will transparently
9659 decompress bz2, xz, gzip compressed downloads if necessary,
9660 and restore sparse files on disk. The daemon uses privilege
9661 separation to ensure the actual download logic runs with
94e5ba37 9662 fewer privileges than the daemon itself. machinectl has
615aaf41
LP
9663 gained new commands "pull-tar", "pull-raw" and "pull-dkr" to
9664 make the functionality of importd available to the
9665 user. With this in place the Fedora and Ubuntu "Cloud"
9666 images can be downloaded and booted as containers unmodified
9667 (the Fedora images lack the appropriate GPG signature files
9668 currently, so they cannot be verified, but this will change
9669 soon, hopefully). Note that downloading images is currently
9670 only fully supported on btrfs.
9671
9672 * machinectl is now able to list container images found in
9673 /var/lib/machines, along with some metadata about sizes of
9674 disk and similar. If the directory is located on btrfs and
9675 quota is enabled, this includes quota display. A new command
9676 "image-status" has been added that shows additional
9677 information about images.
9678
9679 * machinectl is now able to clone container images
9680 efficiently, if the underlying file system (btrfs) supports
f59dba26 9681 it, with the new "machinectl clone" command. It also
615aaf41
LP
9682 gained commands for renaming and removing images, as well as
9683 marking them read-only or read-write (supported also on
9684 legacy file systems).
9685
9686 * networkd gained support for collecting LLDP network
9687 announcements, from hardware that supports this. This is
9688 shown in networkctl output.
9689
9690 * systemd-run gained support for a new -t (--pty) switch for
9691 invoking a binary on a pty whose input and output is
9692 connected to the invoking terminal. This allows executing
9693 processes as system services while interactively
9694 communicating with them via the terminal. Most interestingly
9695 this is supported across container boundaries. Invoking
9696 "systemd-run -t /bin/bash" is an alternative to running a
9697 full login session, the difference being that the former
9698 will not register a session, nor go through the PAM session
9699 setup.
9700
9701 * tmpfiles gained support for a new "v" line type for creating
9702 btrfs subvolumes. If the underlying file system is a legacy
9703 file system, this automatically degrades to creating a
9704 normal directory. Among others /var/lib/machines is now
9705 created like this at boot, should it be missing.
9706
9707 * The directory /var/lib/containers/ has been deprecated and
9708 been replaced by /var/lib/machines. The term "machines" has
9709 been used in the systemd context as generic term for both
9710 VMs and containers, and hence appears more appropriate for
9711 this, as the directory can also contain raw images bootable
9712 via qemu/kvm.
9713
9714 * systemd-nspawn when invoked with -M but without --directory=
9715 or --image= is now capable of searching for the container
9716 root directory, subvolume or disk image automatically, in
9717 /var/lib/machines. systemd-nspawn@.service has been updated
9718 to make use of this, thus allowing it to be used for raw
9719 disk images, too.
9720
9721 * A new machines.target unit has been introduced that is
9722 supposed to group all containers/VMs invoked as services on
9723 the system. systemd-nspawn@.service has been updated to
9724 integrate with that.
9725
9726 * machinectl gained a new "start" command, for invoking a
9727 container as a service. "machinectl start foo" is mostly
9728 equivalent to "systemctl start systemd-nspawn@foo.service",
9729 but handles escaping in a nicer way.
9730
9731 * systemd-nspawn will now mount most of the cgroupfs tree
9732 read-only into each container, with the exception of the
9733 container's own subtree in the name=systemd hierarchy.
9734
9735 * journald now sets the special FS_NOCOW file flag for its
9736 journal files. This should improve performance on btrfs, by
9737 avoiding heavy fragmentation when journald's write-pattern
9738 is used on COW file systems. It degrades btrfs' data
9739 integrity guarantees for the files to the same levels as for
9740 ext3/ext4 however. This should be OK though as journald does
9741 its own data integrity checks and all its objects are
9742 checksummed on disk. Also, journald should handle btrfs disk
9743 full events a lot more gracefully now, by processing SIGBUS
9744 errors, and not relying on fallocate() anymore.
9745
9746 * When journald detects that journal files it is writing to
9747 have been deleted it will immediately start new journal
9748 files.
9749
9750 * systemd now provides a way to store file descriptors
4c37970d 9751 per-service in PID 1. This is useful for daemons to ensure
615aaf41 9752 that fds they require are not lost during a daemon
94e5ba37 9753 restart. The fds are passed to the daemon on the next
615aaf41
LP
9754 invocation in the same way socket activation fds are
9755 passed. This is now used by journald to ensure that the
9756 various sockets connected to all the system's stdout/stderr
9757 are not lost when journald is restarted. File descriptors
9758 may be stored in PID 1 via the sd_pid_notify_with_fds() API,
9759 an extension to sd_notify(). Note that a limit is enforced
9760 on the number of fds a service can store in PID 1, and it
9761 defaults to 0, so that no fds may be stored, unless this is
9762 explicitly turned on.
9763
9764 * The default TERM variable to use for units connected to a
9765 terminal, when no other value is explicitly is set is now
9766 vt220 rather than vt102. This should be fairly safe still,
9767 but allows PgUp/PgDn work.
9768
9769 * The /etc/crypttab option header= as known from Debian is now
9770 supported.
9771
9772 * "loginctl user-status" and "loginctl session-status" will
9773 now show the last 10 lines of log messages of the
9774 user/session following the status output. Similar,
9775 "machinectl status" will show the last 10 log lines
9776 associated with a virtual machine or container
9777 service. (Note that this is usually not the log messages
9778 done in the VM/container itself, but simply what the
9779 container manager logs. For nspawn this includes all console
9780 output however.)
9781
9782 * "loginctl session-status" without further argument will now
9783 show the status of the session of the caller. Similar,
9784 "lock-session", "unlock-session", "activate",
9785 "enable-linger", "disable-linger" may now be called without
9786 session/user parameter in which case they apply to the
9787 caller's session/user.
9788
9789 * An X11 session scriptlet is now shipped that uploads
9790 $DISPLAY and $XAUTHORITY into the environment of the systemd
9791 --user daemon if a session begins. This should improve
9792 compatibility with X11 enabled applications run as systemd
9793 user services.
9794
9795 * Generators are now subject to masking via /etc and /run, the
9796 same way as unit files.
9797
9798 * networkd .network files gained support for configuring
9799 per-link IPv4/IPv6 packet forwarding as well as IPv4
9800 masquerading. This is by default turned on for veth links to
9801 containers, as registered by systemd-nspawn. This means that
9802 nspawn containers run with --network-veth will now get
9803 automatic routed access to the host's networks without any
9804 further configuration or setup, as long as networkd runs on
9805 the host.
9806
9807 * systemd-nspawn gained the --port= (-p) switch to expose TCP
9808 or UDP posts of a container on the host. With this in place
9809 it is possible to run containers with private veth links
9810 (--network-veth), and have their functionality exposed on
9811 the host as if their services were running directly on the
9812 host.
9813
dd2fd155 9814 * systemd-nspawn's --network-veth switch now gained a short
615aaf41
LP
9815 version "-n", since with the changes above it is now truly
9816 useful out-of-the-box. The systemd-nspawn@.service has been
9817 updated to make use of it too by default.
9818
9819 * systemd-nspawn will now maintain a per-image R/W lock, to
9820 ensure that the same image is not started more than once
9821 writable. (It's OK to run an image multiple times
9822 simultaneously in read-only mode.)
9823
9824 * systemd-nspawn's --image= option is now capable of
9825 dissecting and booting MBR and GPT disk images that contain
9826 only a single active Linux partition. Previously it
9827 supported only GPT disk images with proper GPT type
9828 IDs. This allows running cloud images from major
9829 distributions directly with systemd-nspawn, without
9830 modification.
9831
9832 * In addition to collecting mouse dpi data in the udev
9833 hardware database, there's now support for collecting angle
9834 information for mouse scroll wheels. The database is
7edecf21 9835 supposed to guarantee similar scrolling behavior on mice
615aaf41
LP
9836 that it knows about. There's also support for collecting
9837 information about Touchpad types.
9838
9839 * udev's input_id built-in will now also collect touch screen
9840 dimension data and attach it to probed devices.
9841
9842 * /etc/os-release gained support for a Distribution Privacy
9843 Policy link field.
9844
9845 * networkd gained support for creating "ipvlan", "gretap",
9846 "ip6gre", "ip6gretap" and "ip6tnl" network devices.
9847
9848 * systemd-tmpfiles gained support for "a" lines for setting
9849 ACLs on files.
9850
9851 * systemd-nspawn will now mount /tmp in the container to
9852 tmpfs, automatically.
9853
9854 * systemd now exposes the memory.usage_in_bytes cgroup
9855 attribute and shows it for each service in the "systemctl
9856 status" output, if available.
9857
9858 * When the user presses Ctrl-Alt-Del more than 7x within 2s an
9859 immediate reboot is triggered. This useful if shutdown is
9860 hung and is unable to complete, to expedite the
9861 operation. Note that this kind of reboot will still unmount
9862 all file systems, and hence should not result in fsck being
9863 run on next reboot.
9864
9865 * A .device unit for an optical block device will now be
9866 considered active only when a medium is in the drive. Also,
9867 mount units are now bound to their backing devices thus
9868 triggering automatic unmounting when devices become
9869 unavailable. With this in place systemd will now
9870 automatically unmount left-over mounts when a CD-ROM is
9871 ejected or an USB stick is yanked from the system.
9872
9873 * networkd-wait-online now has support for waiting for
9874 specific interfaces only (with globbing), and for giving up
9875 after a configurable timeout.
9876
9877 * networkd now exits when idle. It will be automatically
9878 restarted as soon as interfaces show up, are removed or
9879 change state. networkd will stay around as long as there is
9880 at least one DHCP state machine or similar around, that keep
9881 it non-idle.
9882
9883 * networkd may now configure IPv6 link-local addressing in
9884 addition to IPv4 link-local addressing.
9885
9886 * The IPv6 "token" for use in SLAAC may now be configured for
9887 each .network interface in networkd.
9888
9889 * Routes configured with networkd may now be assigned a scope
9890 in .network files.
9891
9892 * networkd's [Match] sections now support globbing and lists
9893 of multiple space-separated matches per item.
9894
11ea2781 9895 Contributions from: Alban Crequy, Alin Rauta, Andrey Chaser,
d2c643c6
LP
9896 Bastien Nocera, Bruno Bottazzini, Carlos Garnacho, Carlos
9897 Morata Castillo, Chris Atkinson, Chris J. Arges, Christian
9898 Kirbach, Christian Seiler, Christoph Brill, Colin Guthrie,
9899 Colin Walters, Cristian Rodríguez, Daniele Medri, Daniel Mack,
9900 Dave Reisner, David Herrmann, Djalal Harouni, Erik Auerswald,
9901 Filipe Brandenburger, Frank Theile, Gabor Kelemen, Gabriel de
9902 Perthuis, Harald Hoyer, Hui Wang, Ivan Shapovalov, Jan
9903 Engelhardt, Jan Synacek, Jay Faulkner, Johannes Hölzl, Jonas
9904 Ådahl, Jonathan Boulle, Josef Andersson, Kay Sievers, Ken
9905 Werner, Lennart Poettering, Lucas De Marchi, Lukas Märdian,
9906 Lukas Nykryn, Lukasz Skalski, Luke Shumaker, Mantas Mikulėnas,
9907 Manuel Mendez, Marcel Holtmann, Marc Schmitzer, Marko
9908 Myllynen, Martin Pitt, Maxim Mikityanskiy, Michael Biebl,
9909 Michael Marineau, Michael Olbrich, Michal Schmidt, Mindaugas
11ea2781
LP
9910 Baranauskas, Moez Bouhlel, Naveen Kumar, Patrik Flykt, Paul
9911 Martin, Peter Hutterer, Peter Mattern, Philippe De Swert,
9912 Piotr Drąg, Rafael Ferreira, Rami Rosen, Robert Milasan, Ronny
9913 Chevalier, Sangjung Woo, Sebastien Bacher, Sergey Ptashnick,
9914 Shawn Landden, Stéphane Graber, Susant Sahani, Sylvain
9915 Plantefève, Thomas Hindoe Paaboel Andersen, Tim JP, Tom
9916 Gundersen, Topi Miettinen, Torstein Husebø, Umut Tezduyar
d2c643c6
LP
9917 Lindskog, Veres Lajos, Vincent Batts, WaLyong Cho, Wieland
9918 Hoffmann, Zbigniew Jędrzejewski-Szmek
11ea2781 9919
ccddd104 9920 — Berlin, 2015-02-16
11ea2781 9921
d4f5a1f4
DH
9922CHANGES WITH 218:
9923
f9e00a9f
LP
9924 * When querying unit file enablement status (for example via
9925 "systemctl is-enabled"), a new state "indirect" is now known
9926 which indicates that a unit might not be enabled itself, but
c7683ffb 9927 another unit listed in its Also= setting might be.
f9e00a9f
LP
9928
9929 * Similar to the various existing ConditionXYZ= settings for
b938cb90 9930 units, there are now matching AssertXYZ= settings. While
f9e00a9f
LP
9931 failing conditions cause a unit to be skipped, but its job
9932 to succeed, failing assertions declared like this will cause
9933 a unit start operation and its job to fail.
9934
9935 * hostnamed now knows a new chassis type "embedded".
9936
9937 * systemctl gained a new "edit" command. When used on a unit
b938cb90 9938 file, this allows extending unit files with .d/ drop-in
f9e00a9f
LP
9939 configuration snippets or editing the full file (after
9940 copying it from /usr/lib to /etc). This will invoke the
9941 user's editor (as configured with $EDITOR), and reload the
9942 modified configuration after editing.
9943
9944 * "systemctl status" now shows the suggested enablement state
9945 for a unit, as declared in the (usually vendor-supplied)
9946 system preset files.
9947
38b38500 9948 * nss-myhostname will now resolve the single-label hostname
f9e00a9f
LP
9949 "gateway" to the locally configured default IP routing
9950 gateways, ordered by their metrics. This assigns a stable
9951 name to the used gateways, regardless which ones are
9952 currently configured. Note that the name will only be
9953 resolved after all other name sources (if nss-myhostname is
9954 configured properly) and should hence not negatively impact
38b38500 9955 systems that use the single-label hostname "gateway" in
f9e00a9f
LP
9956 other contexts.
9957
9958 * systemd-inhibit now allows filtering by mode when listing
9959 inhibitors.
9960
122676c9 9961 * Scope and service units gained a new "Delegate" boolean
b938cb90 9962 property, which, when set, allows processes running inside the
122676c9
LP
9963 unit to further partition resources. This is primarily
9964 useful for systemd user instances as well as container
9965 managers.
f9e00a9f
LP
9966
9967 * journald will now pick up audit messages directly from
9968 the kernel, and log them like any other log message. The
9969 audit fields are split up and fully indexed. This means that
9970 journalctl in many ways is now a (nicer!) alternative to
9971 ausearch, the traditional audit client. Note that this
b938cb90 9972 implements only a minimal audit client. If you want the
f9e00a9f
LP
9973 special audit modes like reboot-on-log-overflow, please use
9974 the traditional auditd instead, which can be used in
9975 parallel to journald.
9976
9977 * The ConditionSecurity= unit file option now understands the
9978 special string "audit" to check whether auditing is
9979 available.
9980
9981 * journalctl gained two new commands --vacuum-size= and
9982 --vacuum-time= to delete old journal files until the
a8eaaee7 9983 remaining ones take up no more than the specified size on disk,
f9e00a9f
LP
9984 or are not older than the specified time.
9985
9986 * A new, native PPPoE library has been added to sd-network,
9987 systemd's library of light-weight networking protocols. This
9988 library will be used in a future version of networkd to
9989 enable PPPoE communication without an external pppd daemon.
9990
9991 * The busctl tool now understands a new "capture" verb that
9992 works similar to "monitor", but writes a packet capture
9993 trace to STDOUT that can be redirected to a file which is
9994 compatible with libcap's capture file format. This can then
9995 be loaded in Wireshark and similar tools to inspect bus
9996 communication.
9997
9998 * The busctl tool now understands a new "tree" verb that shows
9999 the object trees of a specific service on the bus, or of all
10000 services.
10001
10002 * The busctl tool now understands a new "introspect" verb that
10003 shows all interfaces and members of objects on the bus,
10004 including their signature and values. This is particularly
10005 useful to get more information about bus objects shown by
10006 the new "busctl tree" command.
10007
10008 * The busctl tool now understands new verbs "call",
10009 "set-property" and "get-property" for invoking bus method
10010 calls, setting and getting bus object properties in a
10011 friendly way.
10012
10013 * busctl gained a new --augment-creds= argument that controls
10014 whether the tool shall augment credential information it
10015 gets from the bus with data from /proc, in a possibly
10016 race-ful way.
10017
10018 * nspawn's --link-journal= switch gained two new values
10019 "try-guest" and "try-host" that work like "guest" and
17c29493 10020 "host", but do not fail if the host has no persistent
28423d9a 10021 journaling enabled. -j is now equivalent to
f9e00a9f
LP
10022 --link-journal=try-guest.
10023
10024 * macvlan network devices created by nspawn will now have
10025 stable MAC addresses.
10026
10027 * A new SmackProcessLabel= unit setting has been added, which
10028 controls the SMACK security label processes forked off by
10029 the respective unit shall use.
10030
d4f5a1f4
DH
10031 * If compiled with --enable-xkbcommon, systemd-localed will
10032 verify x11 keymap settings by compiling the given keymap. It
10033 will spew out warnings if the compilation fails. This
10034 requires libxkbcommon to be installed.
10035
b938cb90 10036 * When a coredump is collected, a larger number of metadata
f9e00a9f 10037 fields is now collected and included in the journal records
b938cb90 10038 created for it. More specifically, control group membership,
f9e00a9f
LP
10039 environment variables, memory maps, working directory,
10040 chroot directory, /proc/$PID/status, and a list of open file
10041 descriptors is now stored in the log entry.
10042
17c29493 10043 * The udev hwdb now contains DPI information for mice. For
f9e00a9f
LP
10044 details see:
10045
10046 http://who-t.blogspot.de/2014/12/building-a-dpi-database-for-mice.html
10047
10048 * All systemd programs that read standalone configuration
10049 files in /etc now also support a corresponding series of
997b2b43
JT
10050 .conf.d configuration directories in /etc/, /run/,
10051 /usr/local/lib/, /usr/lib/, and (if configured with
10052 --enable-split-usr) /lib/. In particular, the following
10053 configuration files now have corresponding configuration
10054 directories: system.conf user.conf, logind.conf,
10055 journald.conf, sleep.conf, bootchart.conf, coredump.conf,
10056 resolved.conf, timesyncd.conf, journal-remote.conf, and
10057 journal-upload.conf. Note that distributions should use the
10058 configuration directories in /usr/lib/; the directories in
10059 /etc/ are reserved for the system administrator.
10060
f9e00a9f
LP
10061 * systemd-rfkill will no longer take the rfkill device name
10062 into account when storing rfkill state on disk, as the name
10063 might be dynamically assigned and not stable. Instead, the
10064 ID_PATH udev variable combined with the rfkill type (wlan,
1d3a473b 10065 bluetooth, …) is used.
f9e00a9f
LP
10066
10067 * A new service systemd-machine-id-commit.service has been
10068 added. When used on systems where /etc is read-only during
10069 boot, and /etc/machine-id is not initialized (but an empty
10070 file), this service will copy the temporary machine ID
10071 created as replacement into /etc after the system is fully
10072 booted up. This is useful for systems that are freshly
10073 installed with a non-initialized machine ID, but should get
10074 a fixed machine ID for subsequent boots.
10075
10076 * networkd's .netdev files now provide a large set of
a8eaaee7 10077 configuration parameters for VXLAN devices. Similarly, the
f9e00a9f
LP
10078 bridge port cost parameter is now configurable in .network
10079 files. There's also new support for configuring IP source
10080 routing. networkd .link files gained support for a new
10081 OriginalName= match that is useful to match against the
10082 original interface name the kernel assigned. .network files
10083 may include MTU= and MACAddress= fields for altering the MTU
10084 and MAC address while being connected to a specific network
10085 interface.
10086
10087 * The LUKS logic gained supported for configuring
10088 UUID-specific key files. There's also new support for naming
10089 LUKS device from the kernel command line, using the new
10090 luks.name= argument.
10091
10092 * Timer units may now be transiently created via the bus API
10093 (this was previously already available for scope and service
10094 units). In addition it is now possible to create multiple
10095 transient units at the same time with a single bus call. The
10096 "systemd-run" tool has been updated to make use of this for
10097 running commands on a specified time, in at(1)-style.
10098
10099 * tmpfiles gained support for "t" lines, for assigning
10100 extended attributes to files. Among other uses this may be
10101 used to assign SMACK labels to files.
10102
13e92f39
LP
10103 Contributions from: Alin Rauta, Alison Chaiken, Andrej
10104 Manduch, Bastien Nocera, Chris Atkinson, Chris Leech, Chris
10105 Mayo, Colin Guthrie, Colin Walters, Cristian Rodríguez,
10106 Daniele Medri, Daniel Mack, Dan Williams, Dan Winship, Dave
10107 Reisner, David Herrmann, Didier Roche, Felipe Sateler, Gavin
10108 Li, Hans de Goede, Harald Hoyer, Iago López Galeiras, Ivan
10109 Shapovalov, Jakub Filak, Jan Janssen, Jan Synacek, Joe
10110 Lawrence, Josh Triplett, Kay Sievers, Lennart Poettering,
10111 Lukas Nykryn, Łukasz Stelmach, Maciej Wereski, Mantas
10112 Mikulėnas, Marcel Holtmann, Martin Pitt, Maurizio Lombardi,
10113 Michael Biebl, Michael Chapman, Michael Marineau, Michal
7da81d33
LP
10114 Schmidt, Michal Sekletar, Olivier Brunel, Patrik Flykt, Peter
10115 Hutterer, Przemyslaw Kedzierski, Rami Rosen, Ray Strode,
10116 Richard Schütz, Richard W.M. Jones, Ronny Chevalier, Ross
10117 Lagerwall, Sean Young, Stanisław Pitucha, Susant Sahani,
10118 Thomas Haller, Thomas Hindoe Paaboel Andersen, Tom Gundersen,
10119 Torstein Husebø, Umut Tezduyar Lindskog, Vicente Olivert
10120 Riera, WaLyong Cho, Wesley Dawson, Zbigniew Jędrzejewski-Szmek
13e92f39 10121
ccddd104 10122 — Berlin, 2014-12-10
f9e00a9f 10123
b62a309a
ZJS
10124CHANGES WITH 217:
10125
78b6b7ce
LP
10126 * journalctl gained the new options -t/--identifier= to match
10127 on the syslog identifier (aka "tag"), as well as --utc to
10128 show log timestamps in the UTC timezone. journalctl now also
10129 accepts -n/--lines=all to disable line capping in a pager.
b62a309a 10130
a65b8245
ZJS
10131 * journalctl gained a new switch, --flush, that synchronously
10132 flushes logs from /run/log/journal to /var/log/journal if
10133 persistent storage is enabled. systemd-journal-flush.service
10134 now waits until the operation is complete.
2a97b03b 10135
b62a309a
ZJS
10136 * Services can notify the manager before they start a reload
10137 (by sending RELOADING=1) or shutdown (by sending
4bdc60cb
LP
10138 STOPPING=1). This allows the manager to track and show the
10139 internal state of daemons and closes a race condition when
78b6b7ce 10140 the process is still running but has closed its D-Bus
4bdc60cb 10141 connection.
b62a309a 10142
78b6b7ce
LP
10143 * Services with Type=oneshot do not have to have any ExecStart
10144 commands anymore.
b62a309a
ZJS
10145
10146 * User units are now loaded also from
10147 $XDG_RUNTIME_DIR/systemd/user/. This is similar to the
10148 /run/systemd/user directory that was already previously
10149 supported, but is under the control of the user.
10150
3f9a0a52 10151 * Job timeouts (i.e. timeouts on the time a job that is
4ffd29fd
LP
10152 queued stays in the run queue) can now optionally result in
10153 immediate reboot or power-off actions (JobTimeoutAction= and
10154 JobTimeoutRebootArgument=). This is useful on ".target"
10155 units, to limit the maximum time a target remains
10156 undispatched in the run queue, and to trigger an emergency
10157 operation in such a case. This is now used by default to
10158 turn off the system if boot-up (as defined by everything in
10159 basic.target) hangs and does not complete for at least
10160 15min. Also, if power-off or reboot hang for at least 30min
10161 an immediate power-off/reboot operation is triggered. This
10162 functionality is particularly useful to increase reliability
10163 on embedded devices, but also on laptops which might
10164 accidentally get powered on when carried in a backpack and
10165 whose boot stays stuck in a hard disk encryption passphrase
10166 question.
10167
b62a309a
ZJS
10168 * systemd-logind can be configured to also handle lid switch
10169 events even when the machine is docked or multiple displays
10170 are attached (HandleLidSwitchDocked= option).
10171
10172 * A helper binary and a service have been added which can be
10173 used to resume from hibernation in the initramfs. A
10174 generator will parse the resume= option on the kernel
81c7dd89 10175 command line to trigger resume.
b62a309a 10176
78b6b7ce
LP
10177 * A user console daemon systemd-consoled has been
10178 added. Currently, it is a preview, and will so far open a
10179 single terminal on each session of the user marked as
09077149 10180 Desktop=systemd-console.
b62a309a
ZJS
10181
10182 * Route metrics can be specified for DHCP routes added by
10183 systemd-networkd.
10184
ba8df74b 10185 * The SELinux context of socket-activated services can be set
78b6b7ce 10186 from the information provided by the networking stack
b62a309a
ZJS
10187 (SELinuxContextFromNet= option).
10188
10189 * Userspace firmware loading support has been removed and
10190 the minimum supported kernel version is thus bumped to 3.7.
10191
10192 * Timeout for udev workers has been increased from 1 to 3
10193 minutes, but a warning will be printed after 1 minute to
10194 help diagnose kernel modules that take a long time to load.
10195
78b6b7ce 10196 * Udev rules can now remove tags on devices with TAG-="foobar".
b62a309a 10197
4bdc60cb 10198 * systemd's readahead implementation has been removed. In many
f6d1de85 10199 circumstances it didn't give expected benefits even for
b62a309a 10200 rotational disk drives and was becoming less relevant in the
78b6b7ce
LP
10201 age of SSDs. As none of the developers has been using
10202 rotating media anymore, and nobody stepped up to actively
10203 maintain this component of systemd it has now been removed.
b62a309a 10204
c4ac9900 10205 * Swap units can use Options= to specify discard options.
b62a309a
ZJS
10206 Discard options specified for swaps in /etc/fstab are now
10207 respected.
10208
10209 * Docker containers are now detected as a separate type of
10210 virtualization.
10211
10212 * The Password Agent protocol gained support for queries where
ba8df74b 10213 the user input is shown, useful e.g. for user names.
78b6b7ce
LP
10214 systemd-ask-password gained a new --echo option to turn that
10215 on.
b62a309a 10216
e6c253e3
MS
10217 * The default sysctl.d/ snippets will now set:
10218
10219 net.core.default_qdisc = fq_codel
10220
ba8df74b
KS
10221 This selects Fair Queuing Controlled Delay as the default
10222 queuing discipline for network interfaces. fq_codel helps
e6c253e3
MS
10223 fight the network bufferbloat problem. It is believed to be
10224 a good default with no tuning required for most workloads.
10225 Downstream distributions may override this choice. On 10Gbit
10226 servers that do not do forwarding, "fq" may perform better.
10227 Systems without a good clocksource should use "pfifo_fast".
10228
4bdc60cb
LP
10229 * If kdbus is enabled during build a new option BusPolicy= is
10230 available for service units, that allows locking all service
10231 processes into a stricter bus policy, in order to limit
10232 access to various bus services, or even hide most of them
10233 from the service's view entirely.
10234
10235 * networkctl will now show the .network and .link file
10236 networkd has applied to a specific interface.
10237
10238 * sd-login gained a new API call sd_session_get_desktop() to
10239 query which desktop environment has been selected for a
10240 session.
10241
10242 * UNIX utmp support is now compile-time optional to support
10243 legacy-free systems.
10244
78b6b7ce
LP
10245 * systemctl gained two new commands "add-wants" and
10246 "add-requires" for pulling in units from specific targets
10247 easily.
10248
10249 * If the word "rescue" is specified on the kernel command line
10250 the system will now boot into rescue mode (aka
10251 rescue.target), which was previously available only by
10252 specifying "1" or "systemd.unit=rescue.target" on the kernel
10253 command line. This new kernel command line option nicely
10254 mirrors the already existing "emergency" kernel command line
10255 option.
10256
10257 * New kernel command line options mount.usr=, mount.usrflags=,
d4474c41 10258 mount.usrfstype= have been added that match root=, rootflags=,
78b6b7ce
LP
10259 rootfstype= but allow mounting a specific file system to
10260 /usr.
10261
f6d1de85 10262 * The $NOTIFY_SOCKET is now also passed to control processes of
78b6b7ce
LP
10263 services, not only the main process.
10264
10265 * This version reenables support for fsck's -l switch. This
10266 means at least version v2.25 of util-linux is required for
10267 operation, otherwise dead-locks on device nodes may
10268 occur. Again: you need to update util-linux to at least
10269 v2.25 when updating systemd to v217.
10270
3769415e
TT
10271 * The "multi-seat-x" tool has been removed from systemd, as
10272 its functionality has been integrated into X servers 1.16,
10273 and the tool is hence redundant. It is recommended to update
10274 display managers invoking this tool to simply invoke X
10275 directly from now on, again.
10276
fae9332b 10277 * Support for the new ALLOW_INTERACTIVE_AUTHORIZATION D-Bus
d35f51ea
ZJS
10278 message flag has been added for all of systemd's polkit
10279 authenticated method calls has been added. In particular this
10280 now allows optional interactive authorization via polkit for
10281 many of PID1's privileged operations such as unit file
10282 enabling and disabling.
fae9332b 10283
cfa1571b
LP
10284 * "udevadm hwdb --update" learnt a new switch "--usr" for
10285 placing the rebuilt hardware database in /usr instead of
10286 /etc. When used only hardware database entries stored in
10287 /usr will be used, and any user database entries in /etc are
10288 ignored. This functionality is useful for vendors to ship a
10289 pre-built database on systems where local configuration is
10290 unnecessary or unlikely.
10291
7e63dd10
LP
10292 * Calendar time specifications in .timer units now also
10293 understand the strings "semi-annually", "quarterly" and
ba8df74b 10294 "minutely" as shortcuts (in addition to the preexisting
1d3a473b 10295 "annually", "hourly", …).
7e63dd10 10296
d4474c41
TG
10297 * systemd-tmpfiles will now correctly create files in /dev
10298 at boot which are marked for creation only at boot. It is
10299 recommended to always create static device nodes with 'c!'
10300 and 'b!', so that they are created only at boot and not
10301 overwritten at runtime.
10302
3b187c5c
LP
10303 * When the watchdog logic is used for a service (WatchdogSec=)
10304 and the watchdog timeout is hit the service will now be
10305 terminated with SIGABRT (instead of just SIGTERM), in order
10306 to make sure a proper coredump and backtrace is
10307 generated. This ensures that hanging services will result in
10308 similar coredump/backtrace behaviour as services that hit a
10309 segmentation fault.
10310
4b08dd87
LP
10311 Contributions from: Andreas Henriksson, Andrei Borzenkov,
10312 Angus Gibson, Ansgar Burchardt, Ben Wolsieffer, Brandon L.
10313 Black, Christian Hesse, Cristian Rodríguez, Daniel Buch,
10314 Daniele Medri, Daniel Mack, Dan Williams, Dave Reisner, David
10315 Herrmann, David Sommerseth, David Strauss, Emil Renner
10316 Berthing, Eric Cook, Evangelos Foutras, Filipe Brandenburger,
10317 Gustavo Sverzut Barbieri, Hans de Goede, Harald Hoyer, Hristo
10318 Venev, Hugo Grostabussiat, Ivan Shapovalov, Jan Janssen, Jan
10319 Synacek, Jonathan Liu, Juho Son, Karel Zak, Kay Sievers, Klaus
10320 Purer, Koen Kooi, Lennart Poettering, Lukas Nykryn, Lukasz
10321 Skalski, Łukasz Stelmach, Mantas Mikulėnas, Marcel Holtmann,
10322 Marius Tessmann, Marko Myllynen, Martin Pitt, Michael Biebl,
10323 Michael Marineau, Michael Olbrich, Michael Scherer, Michal
10324 Schmidt, Michal Sekletar, Miroslav Lichvar, Patrik Flykt,
10325 Philippe De Swert, Piotr Drąg, Rahul Sundaram, Richard
10326 Weinberger, Robert Milasan, Ronny Chevalier, Ruben Kerkhof,
10327 Santiago Vila, Sergey Ptashnick, Simon McVittie, Sjoerd
10328 Simons, Stefan Brüns, Steven Allen, Steven Noonan, Susant
10329 Sahani, Sylvain Plantefève, Thomas Hindoe Paaboel Andersen,
10330 Timofey Titovets, Tobias Hunger, Tom Gundersen, Torstein
10331 Husebø, Umut Tezduyar Lindskog, WaLyong Cho, Zbigniew
13e92f39 10332 Jędrzejewski-Szmek
4b08dd87 10333
ccddd104 10334 — Berlin, 2014-10-28
4b08dd87 10335
b72ddf0f 10336CHANGES WITH 216:
b2ca0d63
LP
10337
10338 * timedated no longer reads NTP implementation unit names from
b72ddf0f 10339 /usr/lib/systemd/ntp-units.d/*.list. Alternative NTP
b2ca0d63
LP
10340 implementations should add a
10341
b72ddf0f 10342 Conflicts=systemd-timesyncd.service
b2ca0d63
LP
10343
10344 to their unit files to take over and replace systemd's NTP
10345 default functionality.
10346
10347 * systemd-sysusers gained a new line type "r" for configuring
10348 which UID/GID ranges to allocate system users/groups
10349 from. Lines of type "u" may now add an additional column
10350 that specifies the home directory for the system user to be
10351 created. Also, systemd-sysusers may now optionally read user
10352 information from STDIN instead of a file. This is useful for
10353 invoking it from RPM preinst scriptlets that need to create
10354 users before the first RPM file is installed since these
10355 files might need to be owned by them. A new
10356 %sysusers_create_inline RPM macro has been introduced to do
10357 just that. systemd-sysusers now updates the shadow files as
10358 well as the user/group databases, which should enhance
10359 compatibility with certain tools like grpck.
10360
d35f51ea
ZJS
10361 * A number of bus APIs of PID 1 now optionally consult polkit to
10362 permit access for otherwise unprivileged clients under certain
10363 conditions. Note that this currently doesn't support
10364 interactive authentication yet, but this is expected to be
10365 added eventually, too.
b2ca0d63
LP
10366
10367 * /etc/machine-info now has new fields for configuring the
10368 deployment environment of the machine, as well as the
10369 location of the machine. hostnamectl has been updated with
10370 new command to update these fields.
10371
10372 * systemd-timesyncd has been updated to automatically acquire
10373 NTP server information from systemd-networkd, which might
10374 have been discovered via DHCP.
10375
10376 * systemd-resolved now includes a caching DNS stub resolver
10377 and a complete LLMNR name resolution implementation. A new
daa05349
AB
10378 NSS module "nss-resolve" has been added which can be used
10379 instead of glibc's own "nss-dns" to resolve hostnames via
b2ca0d63
LP
10380 systemd-resolved. Hostnames, addresses and arbitrary RRs may
10381 be resolved via systemd-resolved D-Bus APIs. In contrast to
10382 the glibc internal resolver systemd-resolved is aware of
10383 multi-homed system, and keeps DNS server and caches separate
5f02e26c 10384 and per-interface. Queries are sent simultaneously on all
b2ca0d63
LP
10385 interfaces that have DNS servers configured, in order to
10386 properly handle VPNs and local LANs which might resolve
10387 separate sets of domain names. systemd-resolved may acquire
a1a4a25e 10388 DNS server information from systemd-networkd automatically,
b2ca0d63
LP
10389 which in turn might have discovered them via DHCP. A tool
10390 "systemd-resolve-host" has been added that may be used to
10391 query the DNS logic in resolved. systemd-resolved implements
10392 IDNA and automatically uses IDNA or UTF-8 encoding depending
10393 on whether classic DNS or LLMNR is used as transport. In the
10394 next releases we intend to add a DNSSEC and mDNS/DNS-SD
10395 implementation to systemd-resolved.
10396
10397 * A new NSS module nss-mymachines has been added, that
10398 automatically resolves the names of all local registered
10399 containers to their respective IP addresses.
10400
10401 * A new client tool "networkctl" for systemd-networkd has been
10402 added. It currently is entirely passive and will query
10403 networking configuration from udev, rtnetlink and networkd,
5f02e26c 10404 and present it to the user in a very friendly
b2ca0d63
LP
10405 way. Eventually, we hope to extend it to become a full
10406 control utility for networkd.
10407
10408 * .socket units gained a new DeferAcceptSec= setting that
10409 controls the kernels' TCP_DEFER_ACCEPT sockopt for
a8eaaee7 10410 TCP. Similarly, support for controlling TCP keep-alive
b2ca0d63
LP
10411 settings has been added (KeepAliveTimeSec=,
10412 KeepAliveIntervalSec=, KeepAliveProbes=). Also, support for
10413 turning off Nagle's algorithm on TCP has been added
10414 (NoDelay=).
10415
a1a4a25e 10416 * logind learned a new session type "web", for use in projects
b2ca0d63
LP
10417 like Cockpit which register web clients as PAM sessions.
10418
10419 * timer units with at least one OnCalendar= setting will now
46ae28d8 10420 be started only after time-sync.target has been
b2ca0d63
LP
10421 reached. This way they will not elapse before the system
10422 clock has been corrected by a local NTP client or
10423 similar. This is particular useful on RTC-less embedded
10424 machines, that come up with an invalid system clock.
10425
10426 * systemd-nspawn's --network-veth= switch should now result in
10427 stable MAC addresses for both the outer and the inner side
10428 of the link.
10429
10430 * systemd-nspawn gained a new --volatile= switch for running
10431 container instances with /etc or /var unpopulated.
10432
10433 * The kdbus client code has been updated to use the new Linux
10434 3.17 memfd subsystem instead of the old kdbus-specific one.
10435
10436 * systemd-networkd's DHCP client and server now support
01da80b1
LP
10437 FORCERENEW. There are also new configuration options to
10438 configure the vendor client identifier and broadcast mode
10439 for DHCP.
b2ca0d63
LP
10440
10441 * systemd will no longer inform the kernel about the current
10442 timezone, as this is necessarily incorrect and racy as the
10443 kernel has no understanding of DST and similar
10444 concepts. This hence means FAT timestamps will be always
10445 considered UTC, similar to what Android is already
10446 doing. Also, when the RTC is configured to the local time
10447 (rather than UTC) systemd will never synchronize back to it,
10448 as this might confuse Windows at a later boot.
10449
10450 * systemd-analyze gained a new command "verify" for offline
10451 validation of unit files.
10452
10453 * systemd-networkd gained support for a couple of additional
10454 settings for bonding networking setups. Also, the metric for
10455 statically configured routes may now be configured. For
10456 network interfaces where this is appropriate the peer IP
10457 address may now be configured.
10458
26568403
TG
10459 * systemd-networkd's DHCP client will no longer request
10460 broadcasting by default, as this tripped up some networks.
10461 For hardware where broadcast is required the feature should
10462 be switched back on using RequestBroadcast=yes.
10463
10464 * systemd-networkd will now set up IPv4LL addresses (when
10465 enabled) even if DHCP is configured successfully.
10466
10467 * udev will now default to respect network device names given
10468 by the kernel when the kernel indicates that these are
10469 predictable. This behavior can be tweaked by changing
10470 NamePolicy= in the relevant .link file.
10471
b2ca0d63
LP
10472 * A new library systemd-terminal has been added that
10473 implements full TTY stream parsing and rendering. This
10474 library is supposed to be used later on for implementing a
10475 full userspace VT subsystem, replacing the current kernel
10476 implementation.
10477
10478 * A new tool systemd-journal-upload has been added to push
10479 journal data to a remote system running
10480 systemd-journal-remote.
10481
10482 * journald will no longer forward all local data to another
10483 running syslog daemon. This change has been made because
10484 rsyslog (which appears to be the most commonly used syslog
10485 implementation these days) no longer makes use of this, and
10486 instead pulls the data out of the journal on its own. Since
5f02e26c 10487 forwarding the messages to a non-existent syslog server is
b2ca0d63
LP
10488 more expensive than we assumed we have now turned this
10489 off. If you run a syslog server that is not a recent rsyslog
10490 version, you have to turn this option on again
10491 (ForwardToSyslog= in journald.conf).
10492
10493 * journald now optionally supports the LZ4 compressor for
10494 larger journal fields. This compressor should perform much
10495 better than XZ which was the previous default.
10496
10497 * machinectl now shows the IP addresses of local containers,
10498 if it knows them, plus the interface name of the container.
10499
10500 * A new tool "systemd-escape" has been added that makes it
10501 easy to escape strings to build unit names and similar.
10502
10503 * sd_notify() messages may now include a new ERRNO= field
10504 which is parsed and collected by systemd and shown among the
10505 "systemctl status" output for a service.
10506
10507 * A new component "systemd-firstboot" has been added that
10508 queries the most basic systemd information (timezone,
a1a4a25e 10509 hostname, root password) interactively on first
b2ca0d63
LP
10510 boot. Alternatively it may also be used to provision these
10511 things offline on OS images installed into directories.
10512
01da80b1
LP
10513 * The default sysctl.d/ snippets will now set
10514
10515 net.ipv4.conf.default.promote_secondaries=1
10516
10517 This has the benefit of no flushing secondary IP addresses
10518 when primary addresses are removed.
10519
b2ca0d63
LP
10520 Contributions from: Ansgar Burchardt, Bastien Nocera, Colin
10521 Walters, Dan Dedrick, Daniel Buch, Daniel Korostil, Daniel
10522 Mack, Dan Williams, Dave Reisner, David Herrmann, Denis
10523 Kenzior, Eelco Dolstra, Eric Cook, Hannes Reinecke, Harald
10524 Hoyer, Hong Shick Pak, Hui Wang, Jean-André Santoni, Jóhann
10525 B. Guðmundsson, Jon Severinsson, Karel Zak, Kay Sievers, Kevin
10526 Wells, Lennart Poettering, Lukas Nykryn, Mantas Mikulėnas,
10527 Marc-Antoine Perennou, Martin Pitt, Michael Biebl, Michael
10528 Marineau, Michael Olbrich, Michal Schmidt, Michal Sekletar,
10529 Miguel Angel Ajo, Mike Gilbert, Olivier Brunel, Robert
10530 Schiele, Ronny Chevalier, Simon McVittie, Sjoerd Simons, Stef
10531 Walter, Steven Noonan, Susant Sahani, Tanu Kaskinen, Thomas
10532 Blume, Thomas Hindoe Paaboel Andersen, Timofey Titovets,
10533 Tobias Geerinckx-Rice, Tomasz Torcz, Tom Gundersen, Umut
10534 Tezduyar Lindskog, Zbigniew Jędrzejewski-Szmek
10535
ccddd104 10536 — Berlin, 2014-08-19
b72ddf0f 10537
3dff3e00 10538CHANGES WITH 215:
24a2bf4c
LP
10539
10540 * A new tool systemd-sysusers has been added. This tool
10541 creates system users and groups in /etc/passwd and
10542 /etc/group, based on static declarative system user/group
10543 definitions in /usr/lib/sysusers.d/. This is useful to
10544 enable factory resets and volatile systems that boot up with
10545 an empty /etc directory, and thus need system users and
10546 groups created during early boot. systemd now also ships
10547 with two default sysusers.d/ files for the most basic
10548 users and groups systemd and the core operating system
10549 require.
10550
10551 * A new tmpfiles snippet has been added that rebuilds the
10552 essential files in /etc on boot, should they be missing.
10553
10554 * A directive for ensuring automatic clean-up of
10555 /var/cache/man/ has been removed from the default
10556 configuration. This line should now be shipped by the man
10557 implementation. The necessary change has been made to the
10558 man-db implementation. Note that you need to update your man
10559 implementation to one that ships this line, otherwise no
10560 automatic clean-up of /var/cache/man will take place.
10561
10562 * A new condition ConditionNeedsUpdate= has been added that
10563 may conditionalize services to only run when /etc or /var
10564 are "older" than the vendor operating system resources in
10565 /usr. This is useful for reconstructing or updating /etc
10566 after an offline update of /usr or a factory reset, on the
10567 next reboot. Services that want to run once after such an
10568 update or reset should use this condition and order
10569 themselves before the new systemd-update-done.service, which
10570 will mark the two directories as fully updated. A number of
10571 service files have been added making use of this, to rebuild
10572 the udev hardware database, the journald message catalog and
10573 dynamic loader cache (ldconfig). The systemd-sysusers tool
10574 described above also makes use of this now. With this in
10575 place it is now possible to start up a minimal operating
ce1dde29 10576 system with /etc empty cleanly. For more information on the
24a2bf4c
LP
10577 concepts involved see this recent blog story:
10578
10579 http://0pointer.de/blog/projects/stateless.html
10580
10581 * A new system group "input" has been introduced, and all
10582 input device nodes get this group assigned. This is useful
10583 for system-level software to get access to input devices. It
3dff3e00
KS
10584 complements what is already done for "audio" and "video".
10585
24a2bf4c
LP
10586 * systemd-networkd learnt minimal DHCPv4 server support in
10587 addition to the existing DHCPv4 client support. It also
10588 learnt DHCPv6 client and IPv6 Router Solicitation client
10589 support. The DHCPv4 client gained support for static routes
10590 passed in from the server. Note that the [DHCPv4] section
10591 known in older systemd-networkd versions has been renamed to
10592 [DHCP] and is now also used by the DHCPv6 client. Existing
c7435cc9
LP
10593 .network files using settings of this section should be
10594 updated, though compatibility is maintained. Optionally, the
10595 client hostname may now be sent to the DHCP server.
24a2bf4c 10596
c7435cc9
LP
10597 * networkd gained support for vxlan virtual networks as well
10598 as tun/tap and dummy devices.
24a2bf4c
LP
10599
10600 * networkd gained support for automatic allocation of address
10601 ranges for interfaces from a system-wide pool of
10602 addresses. This is useful for dynamically managing a large
10603 number of interfaces with a single network configuration
10604 file. In particular this is useful to easily assign
10605 appropriate IP addresses to the veth links of a large number
10606 of nspawn instances.
10607
10608 * RPM macros for processing sysusers, sysctl and binfmt
10609 drop-in snippets at package installation time have been
10610 added.
10611
10612 * The /etc/os-release file should now be placed in
10613 /usr/lib/os-release. The old location is automatically
10614 created as symlink. /usr/lib is the more appropriate
10615 location of this file, since it shall actually describe the
10616 vendor operating system shipped in /usr, and not the
10617 configuration stored in /etc.
10618
10619 * .mount units gained a new boolean SloppyOptions= setting
10620 that maps to mount(8)'s -s option which enables permissive
10621 parsing of unknown mount options.
10622
10623 * tmpfiles learnt a new "L+" directive which creates a symlink
10624 but (unlike "L") deletes a pre-existing file first, should
10625 it already exist and not already be the correct
a8eaaee7 10626 symlink. Similarly, "b+", "c+" and "p+" directives have been
24a2bf4c
LP
10627 added as well, which create block and character devices, as
10628 well as fifos in the filesystem, possibly removing any
10629 pre-existing files of different types.
10630
10631 * For tmpfiles' "L", "L+", "C" and "C+" directives the final
10632 'argument' field (which so far specified the source to
ce1dde29 10633 symlink/copy the files from) is now optional. If omitted the
24a2bf4c
LP
10634 same file os copied from /usr/share/factory/ suffixed by the
10635 full destination path. This is useful for populating /etc
10636 with essential files, by copying them from vendor defaults
10637 shipped in /usr/share/factory/etc.
10638
10639 * A new command "systemctl preset-all" has been added that
10640 applies the service preset settings to all installed unit
10641 files. A new switch --preset-mode= has been added that
10642 controls whether only enable or only disable operations
10643 shall be executed.
10644
10645 * A new command "systemctl is-system-running" has been added
10646 that allows checking the overall state of the system, for
ce1dde29 10647 example whether it is fully up and running.
24a2bf4c
LP
10648
10649 * When the system boots up with an empty /etc, the equivalent
10650 to "systemctl preset-all" is executed during early boot, to
10651 make sure all default services are enabled after a factory
10652 reset.
10653
10654 * systemd now contains a minimal preset file that enables the
10655 most basic services systemd ships by default.
10656
10657 * Unit files' [Install] section gained a new DefaultInstance=
10658 field for defining the default instance to create if a
10659 template unit is enabled with no instance specified.
10660
10661 * A new passive target cryptsetup-pre.target has been added
10662 that may be used by services that need to make they run and
10663 finish before the first LUKS cryptographic device is set up.
10664
10665 * The /dev/loop-control and /dev/btrfs-control device nodes
10666 are now owned by the "disk" group by default, opening up
10667 access to this group.
10668
10669 * systemd-coredump will now automatically generate a
10670 stack trace of all core dumps taking place on the system,
10671 based on elfutils' libdw library. This stack trace is logged
10672 to the journal.
10673
10674 * systemd-coredump may now optionally store coredumps directly
10675 on disk (in /var/lib/systemd/coredump, possibly compressed),
10676 instead of storing them unconditionally in the journal. This
10677 mode is the new default. A new configuration file
10678 /etc/systemd/coredump.conf has been added to configure this
10679 and other parameters of systemd-coredump.
10680
10681 * coredumpctl gained a new "info" verb to show details about a
10682 specific coredump. A new switch "-1" has also been added
10683 that makes sure to only show information about the most
10684 recent entry instead of all entries. Also, as the tool is
10685 generally useful now the "systemd-" prefix of the binary
10686 name has been removed. Distributions that want to maintain
10687 compatibility with the old name should add a symlink from
10688 the old name to the new name.
10689
10690 * journald's SplitMode= now defaults to "uid". This makes sure
ce1dde29 10691 that unprivileged users can access their own coredumps with
24a2bf4c
LP
10692 coredumpctl without restrictions.
10693
10694 * New kernel command line options "systemd.wants=" (for
10695 pulling an additional unit during boot), "systemd.mask="
10696 (for masking a specific unit for the boot), and
10697 "systemd.debug-shell" (for enabling the debug shell on tty9)
10698 have been added. This is implemented in the new generator
10699 "systemd-debug-generator".
10700
10701 * systemd-nspawn will now by default filter a couple of
10702 syscalls for containers, among them those required for
10703 kernel module loading, direct x86 IO port access, swap
10704 management, and kexec. Most importantly though
10705 open_by_handle_at() is now prohibited for containers,
10706 closing a hole similar to a recently discussed vulnerability
10707 in docker regarding access to files on file hierarchies the
b938cb90
JE
10708 container should normally not have access to. Note that, for
10709 nspawn, we generally make no security claims anyway (and
24a2bf4c
LP
10710 this is explicitly documented in the man page), so this is
10711 just a fix for one of the most obvious problems.
10712
10713 * A new man page file-hierarchy(7) has been added that
10714 contains a minimized, modernized version of the file system
10715 layout systemd expects, similar in style to the FHS
c7435cc9
LP
10716 specification or hier(5). A new tool systemd-path(1) has
10717 been added to query many of these paths for the local
10718 machine and user.
24a2bf4c
LP
10719
10720 * Automatic time-based clean-up of $XDG_RUNTIME_DIR is no
10721 longer done. Since the directory now has a per-user size
10722 limit, and is cleaned on logout this appears unnecessary,
10723 in particular since this now brings the lifecycle of this
10724 directory closer in line with how IPC objects are handled.
10725
10726 * systemd.pc now exports a number of additional directories,
10727 including $libdir (which is useful to identify the library
10728 path for the primary architecture of the system), and a
10729 couple of drop-in directories.
10730
3058e017
TLSC
10731 * udev's predictable network interface names now use the dev_port
10732 sysfs attribute, introduced in linux 3.15 instead of dev_id to
10733 distinguish between ports of the same PCI function. dev_id should
10734 only be used for ports using the same HW address, hence the need
10735 for dev_port.
10736
c7435cc9
LP
10737 * machined has been updated to export the OS version of a
10738 container (read from /etc/os-release and
10739 /usr/lib/os-release) on the bus. This is now shown in
10740 "machinectl status" for a machine.
10741
10742 * A new service setting RestartForceExitStatus= has been
10743 added. If configured to a set of exit signals or process
10744 return values, the service will be restarted when the main
10745 daemon process exits with any of them, regardless of the
10746 Restart= setting.
10747
10748 * systemctl's -H switch for connecting to remote systemd
10749 machines has been extended so that it may be used to
10750 directly connect to a specific container on the
10751 host. "systemctl -H root@foobar:waldi" will now connect as
10752 user "root" to host "foobar", and then proceed directly to
10753 the container named "waldi". Note that currently you have to
10754 authenticate as user "root" for this to work, as entering
10755 containers is a privileged operation.
10756
10757 Contributions from: Andreas Henriksson, Benjamin Steinwender,
10758 Carl Schaefer, Christian Hesse, Colin Ian King, Cristian
10759 Rodríguez, Daniel Mack, Dave Reisner, David Herrmann, Eugene
10760 Yakubovich, Filipe Brandenburger, Frederic Crozat, Hristo
10761 Venev, Jan Engelhardt, Jonathan Boulle, Kay Sievers, Lennart
10762 Poettering, Luke Shumaker, Mantas Mikulėnas, Marc-Antoine
10763 Perennou, Marcel Holtmann, Michael Marineau, Michael Olbrich,
10764 Michał Bartoszkiewicz, Michal Sekletar, Patrik Flykt, Ronan Le
10765 Martret, Ronny Chevalier, Ruediger Oertel, Steven Noonan,
10766 Susant Sahani, Thadeu Lima de Souza Cascardo, Thomas Hindoe
10767 Paaboel Andersen, Tom Gundersen, Tom Hirst, Umut Tezduyar
10768 Lindskog, Uoti Urpala, Zbigniew Jędrzejewski-Szmek
10769
ccddd104 10770 — Berlin, 2014-07-03
c7435cc9 10771
4196a3ea
KS
10772CHANGES WITH 214:
10773
10774 * As an experimental feature, udev now tries to lock the
10775 disk device node (flock(LOCK_SH|LOCK_NB)) while it
10776 executes events for the disk or any of its partitions.
10777 Applications like partitioning programs can lock the
10778 disk device node (flock(LOCK_EX)) and claim temporary
10779 device ownership that way; udev will entirely skip all event
10780 handling for this disk and its partitions. If the disk
10781 was opened for writing, the close will trigger a partition
10782 table rescan in udev's "watch" facility, and if needed
71449caf 10783 synthesize "change" events for the disk and all its partitions.
8d0e0ddd 10784 This is now unconditionally enabled, and if it turns out to
4196a3ea 10785 cause major problems, we might turn it on only for specific
45df8656 10786 devices, or might need to disable it entirely. Device Mapper
4196a3ea
KS
10787 devices are excluded from this logic.
10788
04e91da2
LP
10789 * We temporarily dropped the "-l" switch for fsck invocations,
10790 since they collide with the flock() logic above. util-linux
10791 upstream has been changed already to avoid this conflict,
5238e957 10792 and we will re-add "-l" as soon as util-linux with this
04e91da2
LP
10793 change has been released.
10794
10795 * The dependency on libattr has been removed. Since a long
8d0e0ddd 10796 time, the extended attribute calls have moved to glibc, and
04e91da2
LP
10797 libattr is thus unnecessary.
10798
ce830873 10799 * Virtualization detection works without privileges now. This
04e91da2
LP
10800 means the systemd-detect-virt binary no longer requires
10801 CAP_SYS_PTRACE file capabilities, and our daemons can run
71449caf 10802 with fewer privileges.
04e91da2
LP
10803
10804 * systemd-networkd now runs under its own "systemd-network"
10805 user. It retains the CAP_NET_ADMIN, CAP_NET_BIND_SERVICE,
10806 CAP_NET_BROADCAST, CAP_NET_RAW capabilities though, but
10807 loses the ability to write to files owned by root this way.
10808
a8eaaee7 10809 * Similarly, systemd-resolved now runs under its own
04e91da2
LP
10810 "systemd-resolve" user with no capabilities remaining.
10811
a8eaaee7 10812 * Similarly, systemd-bus-proxyd now runs under its own
04e91da2
LP
10813 "systemd-bus-proxy" user with only CAP_IPC_OWNER remaining.
10814
10815 * systemd-networkd gained support for setting up "veth"
a8eaaee7 10816 virtual Ethernet devices for container connectivity, as well
04e91da2
LP
10817 as GRE and VTI tunnels.
10818
10819 * systemd-networkd will no longer automatically attempt to
10820 manually load kernel modules necessary for certain tunnel
8d0e0ddd 10821 transports. Instead, it is assumed the kernel loads them
04e91da2
LP
10822 automatically when required. This only works correctly on
10823 very new kernels. On older kernels, please consider adding
c54bed5d 10824 the kernel modules to /etc/modules-load.d/ as a work-around.
04e91da2 10825
cd14eda3 10826 * The resolv.conf file systemd-resolved generates has been
8d0e0ddd
JE
10827 moved to /run/systemd/resolve/. If you have a symlink from
10828 /etc/resolv.conf, it might be necessary to correct it.
cd14eda3 10829
ef392da6 10830 * Two new service settings, ProtectHome= and ProtectSystem=,
8d0e0ddd 10831 have been added. When enabled, they will make the user data
04e91da2
LP
10832 (such as /home) inaccessible or read-only and the system
10833 (such as /usr) read-only, for specific services. This allows
10834 very light-weight per-service sandboxing to avoid
10835 modifications of user data or system files from
10836 services. These two new switches have been enabled for all
10837 of systemd's long-running services, where appropriate.
10838
10839 * Socket units gained new SocketUser= and SocketGroup=
10840 settings to set the owner user and group of AF_UNIX sockets
10841 and FIFOs in the file system.
10842
8d0e0ddd 10843 * Socket units gained a new RemoveOnStop= setting. If enabled,
04e91da2
LP
10844 all FIFOS and sockets in the file system will be removed
10845 when the specific socket unit is stopped.
10846
10847 * Socket units gained a new Symlinks= setting. It takes a list
10848 of symlinks to create to file system sockets or FIFOs
45df8656 10849 created by the specific Unix sockets. This is useful to
de04bbdc 10850 manage symlinks to socket nodes with the same lifecycle as
04e91da2
LP
10851 the socket itself.
10852
10853 * The /dev/log socket and /dev/initctl FIFO have been moved to
10854 /run, and have been replaced by symlinks. This allows
10855 connecting to these facilities even if PrivateDevices=yes is
10856 used for a service (which makes /dev/log itself unavailable,
10857 but /run is left). This also has the benefit of ensuring
10858 that /dev only contains device nodes, directories and
10859 symlinks, and nothing else.
10860
10861 * sd-daemon gained two new calls sd_pid_notify() and
10862 sd_pid_notifyf(). They are similar to sd_notify() and
10863 sd_notifyf(), but allow overriding of the source PID of
10864 notification messages if permissions permit this. This is
10865 useful to send notify messages on behalf of a different
10866 process (for example, the parent process). The
10867 systemd-notify tool has been updated to make use of this
10868 when sending messages (so that notification messages now
10869 originate from the shell script invoking systemd-notify and
10870 not the systemd-notify process itself. This should minimize
10871 a race where systemd fails to associate notification
10872 messages to services when the originating process already
10873 vanished.
10874
10875 * A new "on-abnormal" setting for Restart= has been added. If
8d0e0ddd 10876 set, it will result in automatic restarts on all "abnormal"
04e91da2
LP
10877 reasons for a process to exit, which includes unclean
10878 signals, core dumps, timeouts and watchdog timeouts, but
10879 does not include clean and unclean exit codes or clean
10880 signals. Restart=on-abnormal is an alternative for
10881 Restart=on-failure for services that shall be able to
10882 terminate and avoid restarts on certain errors, by
10883 indicating so with an unclean exit code. Restart=on-failure
10884 or Restart=on-abnormal is now the recommended setting for
10885 all long-running services.
10886
10887 * If the InaccessibleDirectories= service setting points to a
10888 mount point (or if there are any submounts contained within
10889 it), it is now attempted to completely unmount it, to make
10890 the file systems truly unavailable for the respective
10891 service.
10892
10893 * The ReadOnlyDirectories= service setting and
10894 systemd-nspawn's --read-only parameter are now recursively
10895 applied to all submounts, too.
10896
10897 * Mount units may now be created transiently via the bus APIs.
10898
10899 * The support for SysV and LSB init scripts has been removed
10900 from the systemd daemon itself. Instead, it is now
10901 implemented as a generator that creates native systemd units
10902 from these scripts when needed. This enables us to remove a
10903 substantial amount of legacy code from PID 1, following the
10904 fact that many distributions only ship a very small number
10905 of LSB/SysV init scripts nowadays.
10906
cc98b302 10907 * Privileged Xen (dom0) domains are not considered
04e91da2
LP
10908 virtualization anymore by the virtualization detection
10909 logic. After all, they generally have unrestricted access to
71449caf 10910 the hardware and usually are used to manage the unprivileged
04e91da2
LP
10911 (domU) domains.
10912
10913 * systemd-tmpfiles gained a new "C" line type, for copying
10914 files or entire directories.
10915
10916 * systemd-tmpfiles "m" lines are now fully equivalent to "z"
8d0e0ddd
JE
10917 lines. So far, they have been non-globbing versions of the
10918 latter, and have thus been redundant. In future, it is
10919 recommended to only use "z". "m" has hence been removed
04e91da2
LP
10920 from the documentation, even though it stays supported.
10921
10922 * A tmpfiles snippet to recreate the most basic structure in
10923 /var has been added. This is enough to create the /var/run →
10924 /run symlink and create a couple of structural
10925 directories. This allows systems to boot up with an empty or
8d0e0ddd
JE
10926 volatile /var. Of course, while with this change, the core OS
10927 now is capable with dealing with a volatile /var, not all
04e91da2 10928 user services are ready for it. However, we hope that sooner
8d0e0ddd 10929 or later, many service daemons will be changed upstream so
04e91da2
LP
10930 that they are able to automatically create their necessary
10931 directories in /var at boot, should they be missing. This is
10932 the first step to allow state-less systems that only require
10933 the vendor image for /usr to boot.
10934
10935 * systemd-nspawn has gained a new --tmpfs= switch to mount an
10936 empty tmpfs instance to a specific directory. This is
10937 particularly useful for making use of the automatic
10938 reconstruction of /var (see above), by passing --tmpfs=/var.
10939
10940 * Access modes specified in tmpfiles snippets may now be
10941 prefixed with "~", which indicates that they shall be masked
daa05349 10942 by whether the existing file or directory is currently
8d0e0ddd 10943 writable, readable or executable at all. Also, if specified,
04e91da2
LP
10944 the sgid/suid/sticky bits will be masked for all
10945 non-directories.
10946
10947 * A new passive target unit "network-pre.target" has been
10948 added which is useful for services that shall run before any
10949 network is configured, for example firewall scripts.
10950
4c0d13bd
LP
10951 * The "floppy" group that previously owned the /dev/fd*
10952 devices is no longer used. The "disk" group is now used
10953 instead. Distributions should probably deprecate usage of
10954 this group.
10955
dc1d6c02
LP
10956 Contributions from: Camilo Aguilar, Christian Hesse, Colin Ian
10957 King, Cristian Rodríguez, Daniel Buch, Dave Reisner, David
10958 Strauss, Denis Tikhomirov, John, Jonathan Liu, Kay Sievers,
10959 Lennart Poettering, Mantas Mikulėnas, Mark Eichin, Ronny
10960 Chevalier, Susant Sahani, Thomas Blume, Thomas Hindoe Paaboel
10961 Andersen, Tom Gundersen, Umut Tezduyar Lindskog, Zbigniew
10962 Jędrzejewski-Szmek
10963
ccddd104 10964 — Berlin, 2014-06-11
dc1d6c02 10965
6936cd89
LP
10966CHANGES WITH 213:
10967
10968 * A new "systemd-timesyncd" daemon has been added for
69beda1f 10969 synchronizing the system clock across the network. It
6936cd89 10970 implements an SNTP client. In contrast to NTP
8d0e0ddd 10971 implementations such as chrony or the NTP reference server,
6936cd89 10972 this only implements a client side, and does not bother with
c9679c65
LP
10973 the full NTP complexity, focusing only on querying time from
10974 one remote server and synchronizing the local clock to
6936cd89 10975 it. Unless you intend to serve NTP to networked clients or
8d0e0ddd 10976 want to connect to local hardware clocks, this simple NTP
6936cd89
LP
10977 client should be more than appropriate for most
10978 installations. The daemon runs with minimal privileges, and
10979 has been hooked up with networkd to only operate when
10980 network connectivity is available. The daemon saves the
10981 current clock to disk every time a new NTP sync has been
10982 acquired, and uses this to possibly correct the system clock
69beda1f 10983 early at bootup, in order to accommodate for systems that
6936cd89 10984 lack an RTC such as the Raspberry Pi and embedded devices,
8d0e0ddd 10985 and to make sure that time monotonically progresses on these
c9679c65 10986 systems, even if it is not always correct. To make use of
8d0e0ddd 10987 this daemon, a new system user and group "systemd-timesync"
c9679c65 10988 needs to be created on installation of systemd.
6936cd89 10989
69beda1f
KS
10990 * The queue "seqnum" interface of libudev has been disabled, as
10991 it was generally incompatible with device namespacing as
6936cd89
LP
10992 sequence numbers of devices go "missing" if the devices are
10993 part of a different namespace.
10994
10995 * "systemctl list-timers" and "systemctl list-sockets" gained
10996 a --recursive switch for showing units of these types also
499b604b
ZJS
10997 for all local containers, similar in style to the already
10998 supported --recursive switch for "systemctl list-units".
6936cd89
LP
10999
11000 * A new RebootArgument= setting has been added for service
11001 units, which may be used to specify a kernel reboot argument
499b604b 11002 to use when triggering reboots with StartLimitAction=.
6936cd89
LP
11003
11004 * A new FailureAction= setting has been added for service
11005 units which may be used to specify an operation to trigger
499b604b 11006 when a service fails. This works similarly to
8d0e0ddd 11007 StartLimitAction=, but unlike it, controls what is done
6936cd89
LP
11008 immediately rather than only after several attempts to
11009 restart the service in question.
11010
11011 * hostnamed got updated to also expose the kernel name,
499b604b
ZJS
11012 release, and version on the bus. This is useful for
11013 executing commands like hostnamectl with the -H switch.
11014 systemd-analyze makes use of this to properly display
11015 details when running non-locally.
6936cd89
LP
11016
11017 * The bootchart tool can now show cgroup information in the
11018 graphs it generates.
11019
11020 * The CFS CPU quota cgroup attribute is now exposed for
11021 services. The new CPUQuota= switch has been added for this
11022 which takes a percentage value. Setting this will have the
11023 result that a service may never get more CPU time than the
11024 specified percentage, even if the machine is otherwise idle.
11025
11026 * systemd-networkd learned IPIP and SIT tunnel support.
11027
11028 * LSB init scripts exposing a dependency on $network will now
11029 get a dependency on network-online.target rather than simply
11030 network.target. This should bring LSB handling closer to
11031 what it was on SysV systems.
11032
11033 * A new fsck.repair= kernel option has been added to control
11034 how fsck shall deal with unclean file systems at boot.
11035
2ad98889
ZJS
11036 * The (.ini) configuration file parser will now silently ignore
11037 sections whose names begin with "X-". This may be used to maintain
11038 application-specific extension sections in unit files.
6936cd89
LP
11039
11040 * machined gained a new API to query the IP addresses of
11041 registered containers. "machinectl status" has been updated
11042 to show these addresses in its output.
11043
11044 * A new call sd_uid_get_display() has been added to the
11045 sd-login APIs for querying the "primary" session of a
11046 user. The "primary" session of the user is elected from the
11047 user's sessions and generally a graphical session is
11048 preferred over a text one.
11049
11050 * A minimal systemd-resolved daemon has been added. It
11051 currently simply acts as a companion to systemd-networkd and
11052 manages resolv.conf based on per-interface DNS
11053 configuration, possibly supplied via DHCP. In the long run
11054 we hope to extend this into a local DNSSEC enabled DNS and
11055 mDNS cache.
11056
68dd0956
TG
11057 * The systemd-networkd-wait-online tool is now enabled by
11058 default. It will delay network-online.target until a network
11059 connection has been configured. The tool primarily integrates
11060 with networkd, but will also make a best effort to make sense
11061 of network configuration performed in some other way.
11062
6936cd89 11063 * Two new service options StartupCPUShares= and
499b604b 11064 StartupBlockIOWeight= have been added that work similarly to
6936cd89 11065 CPUShares= and BlockIOWeight= however only apply during
69beda1f 11066 system startup. This is useful to prioritize certain services
6936cd89
LP
11067 differently during bootup than during normal runtime.
11068
8e7acf67
LP
11069 * hostnamed has been changed to prefer the statically
11070 configured hostname in /etc/hostname (unless set to
11071 'localhost' or empty) over any dynamic one supplied by
8d0e0ddd 11072 dhcp. With this change, the rules for picking the hostname
8e7acf67
LP
11073 match more closely the rules of other configuration settings
11074 where the local administrator's configuration in /etc always
11075 overrides any other settings.
11076
5238e957 11077 Contributions from: Ali H. Caliskan, Alison Chaiken, Bas van
6936cd89
LP
11078 den Berg, Brandon Philips, Cristian Rodríguez, Daniel Buch,
11079 Dan Kilman, Dave Reisner, David Härdeman, David Herrmann,
11080 David Strauss, Dimitris Spingos, Djalal Harouni, Eelco
11081 Dolstra, Evan Nemerson, Florian Albrechtskirchinger, Greg
11082 Kroah-Hartman, Harald Hoyer, Holger Hans Peter Freyther, Jan
11083 Engelhardt, Jani Nikula, Jason St. John, Jeffrey Clark,
11084 Jonathan Boulle, Kay Sievers, Lennart Poettering, Lukas
11085 Nykryn, Lukasz Skalski, Łukasz Stelmach, Mantas Mikulėnas,
8e7acf67
LP
11086 Marcel Holtmann, Martin Pitt, Matthew Monaco, Michael
11087 Marineau, Michael Olbrich, Michal Sekletar, Mike Gilbert, Nis
11088 Martensen, Patrik Flykt, Philip Lorenz, poma, Ray Strode,
11089 Reyad Attiyat, Robert Milasan, Scott Thrasher, Stef Walter,
11090 Steven Siloti, Susant Sahani, Tanu Kaskinen, Thomas Bächler,
11091 Thomas Hindoe Paaboel Andersen, Tom Gundersen, Umut Tezduyar
11092 Lindskog, WaLyong Cho, Will Woods, Zbigniew
6936cd89
LP
11093 Jędrzejewski-Szmek
11094
ccddd104 11095 — Beijing, 2014-05-28
6936cd89 11096
51c61cda
LP
11097CHANGES WITH 212:
11098
11099 * When restoring the screen brightness at boot, stay away from
11100 the darkest setting or from the lowest 5% of the available
11101 range, depending on which is the larger value of both. This
11102 should effectively protect the user from rebooting into a
11103 black screen, should the brightness have been set to minimum
11104 by accident.
11105
11106 * sd-login gained a new sd_machine_get_class() call to
11107 determine the class ("vm" or "container") of a machine
11108 registered with machined.
11109
11110 * sd-login gained new calls
11111 sd_peer_get_{session,owner_uid,unit,user_unit,slice,machine_name}(),
11112 to query the identity of the peer of a local AF_UNIX
499b604b 11113 connection. They operate similarly to their sd_pid_get_xyz()
51c61cda
LP
11114 counterparts.
11115
11116 * PID 1 will now maintain a system-wide system state engine
11117 with the states "starting", "running", "degraded",
11118 "maintenance", "stopping". These states are bound to system
11119 startup, normal runtime, runtime with at least one failed
11120 service, rescue/emergency mode and system shutdown. This
11121 state is shown in the "systemctl status" output when no unit
11122 name is passed. It is useful to determine system state, in
11123 particularly when doing so for many systems or containers at
11124 once.
11125
11126 * A new command "list-machines" has been added to "systemctl"
11127 that lists all local OS containers and shows their system
11128 state (see above), if systemd runs inside of them.
11129
11130 * systemctl gained a new "-r" switch to recursively enumerate
11131 units on all local containers, when used with the
11132 "list-unit" command (which is the default one that is
11133 executed when no parameters are specified).
11134
11135 * The GPT automatic partition discovery logic will now honour
11136 two GPT partition flags: one may be set on a partition to
11137 cause it to be mounted read-only, and the other may be set
11138 on a partition to ignore it during automatic discovery.
11139
11140 * Two new GPT type UUIDs have been added for automatic root
70a44afe 11141 partition discovery, for 32-bit and 64-bit ARM. This is not
51c61cda
LP
11142 particularly useful for discovering the root directory on
11143 these architectures during bare-metal boots (since UEFI is
11144 not common there), but still very useful to allow booting of
11145 ARM disk images in nspawn with the -i option.
11146
11147 * MAC addresses of interfaces created with nspawn's
11148 --network-interface= switch will now be generated from the
11149 machine name, and thus be stable between multiple invocations
11150 of the container.
11151
11152 * logind will now automatically remove all IPC objects owned
11153 by a user if she or he fully logs out. This makes sure that
11154 users who are logged out cannot continue to consume IPC
11155 resources. This covers SysV memory, semaphores and message
11156 queues as well as POSIX shared memory and message
de04bbdc 11157 queues. Traditionally, SysV and POSIX IPC had no lifecycle
b8bde116
JE
11158 limits. With this functionality, that is corrected. This may
11159 be turned off by using the RemoveIPC= switch of logind.conf.
51c61cda
LP
11160
11161 * The systemd-machine-id-setup and tmpfiles tools gained a
11162 --root= switch to operate on a specific root directory,
11163 instead of /.
11164
11165 * journald can now forward logged messages to the TTYs of all
11166 logged in users ("wall"). This is the default for all
11167 emergency messages now.
11168
11169 * A new tool systemd-journal-remote has been added to stream
11170 journal log messages across the network.
11171
11172 * /sys/fs/cgroup/ is now mounted read-only after all cgroup
11173 controller trees are mounted into it. Note that the
11174 directories mounted beneath it are not read-only. This is a
11175 security measure and is particularly useful because glibc
11176 actually includes a search logic to pick any tmpfs it can
11177 find to implement shm_open() if /dev/shm is not available
11178 (which it might very well be in namespaced setups).
11179
11180 * machinectl gained a new "poweroff" command to cleanly power
11181 down a local OS container.
11182
11183 * The PrivateDevices= unit file setting will now also drop the
11184 CAP_MKNOD capability from the capability bound set, and
11185 imply DevicePolicy=closed.
11186
11187 * PrivateDevices=, PrivateNetwork= and PrivateTmp= is now used
11188 comprehensively on all long-running systemd services where
11189 this is appropriate.
11190
11191 * systemd-udevd will now run in a disassociated mount
b8bde116 11192 namespace. To mount directories from udev rules, make sure to
51c61cda
LP
11193 pull in mount units via SYSTEMD_WANTS properties.
11194
11195 * The kdbus support gained support for uploading policy into
11196 the kernel. sd-bus gained support for creating "monitoring"
11197 connections that can eavesdrop into all bus communication
11198 for debugging purposes.
11199
11200 * Timestamps may now be specified in seconds since the UNIX
11201 epoch Jan 1st, 1970 by specifying "@" followed by the value
11202 in seconds.
11203
11204 * Native tcpwrap support in systemd has been removed. tcpwrap
11205 is old code, not really maintained anymore and has serious
11206 shortcomings, and better options such as firewalls
11207 exist. For setups that require tcpwrap usage, please
11208 consider invoking your socket-activated service via tcpd,
11209 like on traditional inetd.
11210
11211 * A new system.conf configuration option
11212 DefaultTimerAccuracySec= has been added that controls the
11213 default AccuracySec= setting of .timer units.
11214
b8bde116 11215 * Timer units gained a new WakeSystem= switch. If enabled,
51c61cda
LP
11216 timers configured this way will cause the system to resume
11217 from system suspend (if the system supports that, which most
11218 do these days).
11219
b8bde116 11220 * Timer units gained a new Persistent= switch. If enabled,
51c61cda
LP
11221 timers configured this way will save to disk when they have
11222 been last triggered. This information is then used on next
11223 reboot to possible execute overdue timer events, that
d28315e4
JE
11224 could not take place because the system was powered off.
11225 This enables simple anacron-like behaviour for timer units.
51c61cda
LP
11226
11227 * systemctl's "list-timers" will now also list the time a
11228 timer unit was last triggered in addition to the next time
11229 it will be triggered.
11230
11231 * systemd-networkd will now assign predictable IPv4LL
11232 addresses to its local interfaces.
11233
11234 Contributions from: Brandon Philips, Daniel Buch, Daniel Mack,
11235 Dave Reisner, David Herrmann, Gerd Hoffmann, Greg
11236 Kroah-Hartman, Hendrik Brueckner, Jason St. John, Josh
11237 Triplett, Kay Sievers, Lennart Poettering, Marc-Antoine
11238 Perennou, Michael Marineau, Michael Olbrich, Miklos Vajna,
11239 Patrik Flykt, poma, Sebastian Thorarensen, Thomas Bächler,
11240 Thomas Hindoe Paaboel Andersen, Tomasz Torcz, Tom Gundersen,
11241 Umut Tezduyar Lindskog, Wieland Hoffmann, Zbigniew
11242 Jędrzejewski-Szmek
11243
ccddd104 11244 — Berlin, 2014-03-25
51c61cda 11245
699b6b34
LP
11246CHANGES WITH 211:
11247
11248 * A new unit file setting RestrictAddressFamilies= has been
11249 added to restrict which socket address families unit
11250 processes gain access to. This takes address family names
11251 like "AF_INET" or "AF_UNIX", and is useful to minimize the
11252 attack surface of services via exotic protocol stacks. This
11253 is built on seccomp system call filters.
11254
11255 * Two new unit file settings RuntimeDirectory= and
11256 RuntimeDirectoryMode= have been added that may be used to
11257 manage a per-daemon runtime directories below /run. This is
11258 an alternative for setting up directory permissions with
11259 tmpfiles snippets, and has the advantage that the runtime
11260 directory's lifetime is bound to the daemon runtime and that
11261 the daemon starts up with an empty directory each time. This
11262 is particularly useful when writing services that drop
f1721625 11263 privileges using the User= or Group= setting.
699b6b34
LP
11264
11265 * The DeviceAllow= unit setting now supports globbing for
11266 matching against device group names.
11267
11268 * The systemd configuration file system.conf gained new
11269 settings DefaultCPUAccounting=, DefaultBlockIOAccounting=,
11270 DefaultMemoryAccounting= to globally turn on/off accounting
11271 for specific resources (cgroups) for all units. These
22e7062d 11272 settings may still be overridden individually in each unit
699b6b34
LP
11273 though.
11274
11275 * systemd-gpt-auto-generator is now able to discover /srv and
11276 root partitions in addition to /home and swap partitions. It
11277 also supports LUKS-encrypted partitions now. With this in
b8bde116 11278 place, automatic discovery of partitions to mount following
699b6b34 11279 the Discoverable Partitions Specification
a794a4d8 11280 (https://systemd.io/DISCOVERABLE_PARTITIONS/)
699b6b34
LP
11281 is now a lot more complete. This allows booting without
11282 /etc/fstab and without root= on the kernel command line on
b8bde116 11283 systems prepared appropriately.
699b6b34
LP
11284
11285 * systemd-nspawn gained a new --image= switch which allows
11286 booting up disk images and Linux installations on any block
11287 device that follow the Discoverable Partitions Specification
11288 (see above). This means that installations made with
11289 appropriately updated installers may now be started and
11290 deployed using container managers, completely
11291 unmodified. (We hope that libvirt-lxc will add support for
11292 this feature soon, too.)
11293
11294 * systemd-nspawn gained a new --network-macvlan= setting to
11295 set up a private macvlan interface for the
499b604b 11296 container. Similarly, systemd-networkd gained a new
699b6b34
LP
11297 Kind=macvlan setting in .netdev files.
11298
11299 * systemd-networkd now supports configuring local addresses
11300 using IPv4LL.
11301
11302 * A new tool systemd-network-wait-online has been added to
11303 synchronously wait for network connectivity using
11304 systemd-networkd.
11305
11306 * The sd-bus.h bus API gained a new sd_bus_track object for
de04bbdc 11307 tracking the lifecycle of bus peers. Note that sd-bus.h is
699b6b34
LP
11308 still not a public API though (unless you specify
11309 --enable-kdbus on the configure command line, which however
11310 voids your warranty and you get no API stability guarantee).
11311
11312 * The $XDG_RUNTIME_DIR runtime directories for each user are
11313 now individual tmpfs instances, which has the benefit of
11314 introducing separate pools for each user, with individual
4ef6e535 11315 size limits, and thus making sure that unprivileged clients
699b6b34
LP
11316 can no longer negatively impact the system or other users by
11317 filling up their $XDG_RUNTIME_DIR. A new logind.conf setting
11318 RuntimeDirectorySize= has been introduced that allows
11319 controlling the default size limit for all users. It
11320 defaults to 10% of the available physical memory. This is no
11321 replacement for quotas on tmpfs though (which the kernel
11322 still does not support), as /dev/shm and /tmp are still
4ef6e535 11323 shared resources used by both the system and unprivileged
699b6b34
LP
11324 users.
11325
11326 * logind will now automatically turn off automatic suspending
11327 on laptop lid close when more than one display is
11328 connected. This was previously expected to be implemented
11329 individually in desktop environments (such as GNOME),
11330 however has been added to logind now, in order to fix a
11331 boot-time race where a desktop environment might not have
11332 been started yet and thus not been able to take an inhibitor
11333 lock at the time where logind already suspends the system
11334 due to a closed lid.
11335
11336 * logind will now wait at least 30s after each system
11337 suspend/resume cycle, and 3min after system boot before
11338 suspending the system due to a closed laptop lid. This
11339 should give USB docking stations and similar enough time to
4ef6e535 11340 be probed and configured after system resume and boot in
699b6b34
LP
11341 order to then act as suspend blocker.
11342
11343 * systemd-run gained a new --property= setting which allows
11344 initialization of resource control properties (and others)
11345 for the created scope or service unit. Example: "systemd-run
11346 --property=BlockIOWeight=10 updatedb" may be used to run
11347 updatedb at a low block IO scheduling weight.
11348
11349 * systemd-run's --uid=, --gid=, --setenv=, --setenv= switches
11350 now also work in --scope mode.
11351
11352 * When systemd is compiled with kdbus support, basic support
11353 for enforced policies is now in place. (Note that enabling
11354 kdbus still voids your warranty and no API compatibility
11355 promises are made.)
11356
11357 Contributions from: Andrey Borzenkov, Ansgar Burchardt, Armin
11358 K., Daniel Mack, Dave Reisner, David Herrmann, Djalal Harouni,
11359 Harald Hoyer, Henrik Grindal Bakken, Jasper St. Pierre, Kay
11360 Sievers, Kieran Clancy, Lennart Poettering, Lukas Nykryn,
11361 Mantas Mikulėnas, Marcel Holtmann, Mark Oteiza, Martin Pitt,
11362 Mike Gilbert, Peter Rajnoha, poma, Samuli Suominen, Stef
11363 Walter, Susant Sahani, Tero Roponen, Thomas Andersen, Thomas
11364 Bächler, Thomas Hindoe Paaboel Andersen, Tomasz Torcz, Tom
11365 Gundersen, Umut Tezduyar Lindskog, Uoti Urpala, Zachary Cook,
11366 Zbigniew Jędrzejewski-Szmek
11367
ccddd104 11368 — Berlin, 2014-03-12
699b6b34 11369
43c71255
LP
11370CHANGES WITH 210:
11371
11372 * systemd will now relabel /dev after loading the SMACK policy
11373 according to SMACK rules.
11374
67dd87c5 11375 * A new unit file option AppArmorProfile= has been added to
43c71255
LP
11376 set the AppArmor profile for the processes of a unit.
11377
11378 * A new condition check ConditionArchitecture= has been added
11379 to conditionalize units based on the system architecture, as
11380 reported by uname()'s "machine" field.
11381
11382 * systemd-networkd now supports matching on the system
38b38500 11383 virtualization, architecture, kernel command line, hostname
43c71255
LP
11384 and machine ID.
11385
ed28905e 11386 * logind is now a lot more aggressive when suspending the
43c71255 11387 machine due to a closed laptop lid. Instead of acting only
b8bde116 11388 on the lid close action, it will continuously watch the lid
43c71255
LP
11389 status and act on it. This is useful for laptops where the
11390 power button is on the outside of the chassis so that it can
ed28905e 11391 be reached without opening the lid (such as the Lenovo
b8bde116 11392 Yoga). On those machines, logind will now immediately
ed28905e 11393 re-suspend the machine if the power button has been
43c71255
LP
11394 accidentally pressed while the laptop was suspended and in a
11395 backpack or similar.
11396
11397 * logind will now watch SW_DOCK switches and inhibit reaction
11398 to the lid switch if it is pressed. This means that logind
d27893ef 11399 will not suspend the machine anymore if the lid is closed
949138cc 11400 and the system is docked, if the laptop supports SW_DOCK
43c71255
LP
11401 notifications via the input layer. Note that ACPI docking
11402 stations do not generate this currently. Also note that this
11403 logic is usually not fully sufficient and Desktop
11404 Environments should take a lid switch inhibitor lock when an
11405 external display is connected, as systemd will not watch
11406 this on its own.
11407
11408 * nspawn will now make use of the devices cgroup controller by
11409 default, and only permit creation of and access to the usual
11410 API device nodes like /dev/null or /dev/random, as well as
11411 access to (but not creation of) the pty devices.
11412
11413 * We will now ship a default .network file for
11414 systemd-networkd that automatically configures DHCP for
11415 network interfaces created by nspawn's --network-veth or
11416 --network-bridge= switches.
11417
11418 * systemd will now understand the usual M, K, G, T suffixes
11419 according to SI conventions (i.e. to the base 1000) when
11420 referring to throughput and hardware metrics. It will stay
11421 with IEC conventions (i.e. to the base 1024) for software
11422 metrics, according to what is customary according to
11423 Wikipedia. We explicitly document which base applies for
11424 each configuration option.
11425
6b000af4
LP
11426 * The DeviceAllow= setting in unit files now supports a syntax to
11427 allow-list an entire group of devices node majors at once, based on
11428 the /proc/devices listing. For example, with the string "char-pts",
11429 it is now possible to allow-list all current and future pseudo-TTYs
11430 at once.
43c71255
LP
11431
11432 * sd-event learned a new "post" event source. Event sources of
11433 this type are triggered by the dispatching of any event
11434 source of a type that is not "post". This is useful for
11435 implementing clean-up and check event sources that are
11436 triggered by other work being done in the program.
11437
11438 * systemd-networkd is no longer statically enabled, but uses
11439 the usual [Install] sections so that it can be
11440 enabled/disabled using systemctl. It still is enabled by
11441 default however.
11442
b8bde116 11443 * When creating a veth interface pair with systemd-nspawn, the
43c71255
LP
11444 host side will now be prefixed with "vb-" if
11445 --network-bridge= is used, and with "ve-" if --network-veth
b8bde116 11446 is used. This way, it is easy to distinguish these cases on
43c71255
LP
11447 the host, for example to apply different configuration to
11448 them with systemd-networkd.
11449
d27893ef
LP
11450 * The compatibility libraries for libsystemd-journal.so,
11451 libsystem-id128.so, libsystemd-login.so and
11452 libsystemd-daemon.so do not make use of IFUNC
b8bde116 11453 anymore. Instead, we now build libsystemd.so multiple times
d27893ef
LP
11454 under these alternative names. This means that the footprint
11455 is drastically increased, but given that these are
b8bde116 11456 transitional compatibility libraries, this should not matter
d27893ef
LP
11457 much. This change has been made necessary to support the ARM
11458 platform for these compatibility libraries, as the ARM
d28315e4 11459 toolchain is not really at the same level as the toolchain
ed28905e 11460 for other architectures like x86 and does not support
d27893ef
LP
11461 IFUNC. Please make sure to use --enable-compat-libs only
11462 during a transitional period!
11463
f26ad321
ZJS
11464 * The .include syntax has been deprecated and is not documented
11465 anymore. Drop-in files in .d directories should be used instead.
11466
13b28d82 11467 Contributions from: Andreas Fuchs, Armin K., Colin Walters,
43c71255
LP
11468 Daniel Mack, Dave Reisner, David Herrmann, Djalal Harouni,
11469 Holger Schurig, Jason A. Donenfeld, Jason St. John, Jasper
11470 St. Pierre, Kay Sievers, Lennart Poettering, Łukasz Stelmach,
11471 Marcel Holtmann, Michael Scherer, Michal Sekletar, Mike
11472 Gilbert, Samuli Suominen, Thomas Bächler, Thomas Hindoe
11473 Paaboel Andersen, Tom Gundersen, Umut Tezduyar Lindskog,
11474 Zbigniew Jędrzejewski-Szmek
11475
ccddd104 11476 — Berlin, 2014-02-24
43c71255 11477
e49b5aad
LP
11478CHANGES WITH 209:
11479
11480 * A new component "systemd-networkd" has been added that can
11481 be used to configure local network interfaces statically or
8b7d0494
JSJ
11482 via DHCP. It is capable of bringing up bridges, VLANs, and
11483 bonding. Currently, no hook-ups for interactive network
4670e9d5 11484 configuration are provided. Use this for your initrd,
8b7d0494
JSJ
11485 container, embedded, or server setup if you need a simple,
11486 yet powerful, network configuration solution. This
4670e9d5 11487 configuration subsystem is quite nifty, as it allows wildcard
1e190502 11488 hotplug matching in interfaces. For example, with a single
4670e9d5 11489 configuration snippet, you can configure that all Ethernet
1e190502
ZJS
11490 interfaces showing up are automatically added to a bridge,
11491 or similar. It supports link-sensing and more.
e49b5aad
LP
11492
11493 * A new tool "systemd-socket-proxyd" has been added which can
4c2413bf 11494 act as a bidirectional proxy for TCP sockets. This is
e49b5aad
LP
11495 useful for adding socket activation support to services that
11496 do not actually support socket activation, including virtual
4c2413bf 11497 machines and the like.
e49b5aad
LP
11498
11499 * Add a new tool to save/restore rfkill state on
11500 shutdown/boot.
11501
8b7d0494
JSJ
11502 * Save/restore state of keyboard backlights in addition to
11503 display backlights on shutdown/boot.
e49b5aad
LP
11504
11505 * udev learned a new SECLABEL{} construct to label device
11506 nodes with a specific security label when they appear. For
4c2413bf 11507 now, only SECLABEL{selinux} is supported, but the syntax is
e49b5aad
LP
11508 prepared for additional security frameworks.
11509
11510 * udev gained a new scheme to configure link-level attributes
11511 from files in /etc/systemd/network/*.link. These files can
8b7d0494 11512 match against MAC address, device path, driver name and type,
4c2413bf 11513 and will apply attributes like the naming policy, link speed,
8b7d0494 11514 MTU, duplex settings, Wake-on-LAN settings, MAC address, MAC
1d3a473b 11515 address assignment policy (randomized, …).
e49b5aad 11516
dfb08b05
ZJS
11517 * The configuration of network interface naming rules for
11518 "permanent interface names" has changed: a new NamePolicy=
11519 setting in the [Link] section of .link files determines the
a8eaaee7 11520 priority of possible naming schemes (onboard, slot, MAC,
dfb08b05
ZJS
11521 path). The default value of this setting is determined by
11522 /usr/lib/net/links/99-default.link. Old
11523 80-net-name-slot.rules udev configuration file has been
11524 removed, so local configuration overriding this file should
ce830873 11525 be adapted to override 99-default.link instead.
dfb08b05 11526
e49b5aad 11527 * When the User= switch is used in a unit file, also
4c2413bf 11528 initialize $SHELL= based on the user database entry.
e49b5aad
LP
11529
11530 * systemd no longer depends on libdbus. All communication is
11531 now done with sd-bus, systemd's low-level bus library
11532 implementation.
11533
11534 * kdbus support has been added to PID 1 itself. When kdbus is
4c2413bf 11535 enabled, this causes PID 1 to set up the system bus and
e49b5aad
LP
11536 enable support for a new ".busname" unit type that
11537 encapsulates bus name activation on kdbus. It works a little
11538 bit like ".socket" units, except for bus names. A new
11539 generator has been added that converts classic dbus1 service
11540 activation files automatically into native systemd .busname
11541 and .service units.
11542
11543 * sd-bus: add a light-weight vtable implementation that allows
11544 defining objects on the bus with a simple static const
11545 vtable array of its methods, signals and properties.
11546
8b7d0494 11547 * systemd will not generate or install static dbus
e49b5aad 11548 introspection data anymore to /usr/share/dbus-1/interfaces,
1e190502 11549 as the precise format of these files is unclear, and
e49b5aad
LP
11550 nothing makes use of it.
11551
11552 * A proxy daemon is now provided to proxy clients connecting
11553 via classic D-Bus AF_UNIX sockets to kdbus, to provide full
11554 compatibility with classic D-Bus.
11555
11556 * A bus driver implementation has been added that supports the
11557 classic D-Bus bus driver calls on kdbus, also for
11558 compatibility purposes.
11559
11560 * A new API "sd-event.h" has been added that implements a
11561 minimal event loop API built around epoll. It provides a
11562 couple of features that direct epoll usage is lacking:
b9761003 11563 prioritization of events, scales to large numbers of timer
e49b5aad
LP
11564 events, per-event timer slack (accuracy), system-wide
11565 coalescing of timer events, exit handlers, watchdog
11566 supervision support using systemd's sd_notify() API, child
11567 process handling.
11568
11569 * A new API "sd-rntl.h" has been added that provides an API
11570 around the route netlink interface of the kernel, similar in
11571 style to "sd-bus.h".
11572
7e95eda5
PF
11573 * A new API "sd-dhcp-client.h" has been added that provides a
11574 small DHCPv4 client-side implementation. This is used by
e49b5aad
LP
11575 "systemd-networkd".
11576
4c2413bf 11577 * There is a new kernel command line option
8b7d0494
JSJ
11578 "systemd.restore_state=0|1". When set to "0", none of the
11579 systemd tools will restore saved runtime state to hardware
11580 devices. More specifically, the rfkill and backlight states
11581 are not restored.
e49b5aad
LP
11582
11583 * The FsckPassNo= compatibility option in mount/service units
11584 has been removed. The fstab generator will now add the
11585 necessary dependencies automatically, and does not require
11586 PID1's support for that anymore.
11587
8b7d0494 11588 * journalctl gained a new switch, --list-boots, that lists
e49b5aad
LP
11589 recent boots with their times and boot IDs.
11590
11591 * The various tools like systemctl, loginctl, timedatectl,
1d3a473b 11592 busctl, systemd-run, … have gained a new switch "-M" to
e49b5aad
LP
11593 connect to a specific, local OS container (as direct
11594 connection, without requiring SSH). This works on any
11595 container that is registered with machined, such as those
11596 created by libvirt-lxc or nspawn.
11597
11598 * systemd-run and systemd-analyze also gained support for "-H"
4c2413bf 11599 to connect to remote hosts via SSH. This is particularly
8b7d0494
JSJ
11600 useful for systemd-run because it enables queuing of jobs
11601 onto remote systems.
e49b5aad
LP
11602
11603 * machinectl gained a new command "login" to open a getty
11604 login in any local container. This works with any container
11605 that is registered with machined (such as those created by
8e420494 11606 libvirt-lxc or nspawn), and which runs systemd inside.
e49b5aad
LP
11607
11608 * machinectl gained a new "reboot" command that may be used to
11609 trigger a reboot on a specific container that is registered
11610 with machined. This works on any container that runs an init
11611 system of some kind.
11612
11613 * systemctl gained a new "list-timers" command to print a nice
11614 listing of installed timer units with the times they elapse
11615 next.
11616
11617 * Alternative reboot() parameters may now be specified on the
11618 "systemctl reboot" command line and are passed to the
11619 reboot() system call.
11620
11621 * systemctl gained a new --job-mode= switch to configure the
11622 mode to queue a job with. This is a more generic version of
8b7d0494 11623 --fail, --irreversible, and --ignore-dependencies, which are
e49b5aad
LP
11624 still available but not advertised anymore.
11625
e49b5aad
LP
11626 * /etc/systemd/system.conf gained new settings to configure
11627 various default timeouts of units, as well as the default
b9761003 11628 start limit interval and burst. These may still be overridden
e49b5aad
LP
11629 within each Unit.
11630
270f1624
LP
11631 * PID1 will now export on the bus profile data of the security
11632 policy upload process (such as the SELinux policy upload to
8e420494 11633 the kernel).
e49b5aad 11634
4670e9d5 11635 * journald: when forwarding logs to the console, include
1e190502
ZJS
11636 timestamps (following the setting in
11637 /sys/module/printk/parameters/time).
e49b5aad
LP
11638
11639 * OnCalendar= in timer units now understands the special
11640 strings "yearly" and "annually". (Both are equivalent)
11641
11642 * The accuracy of timer units is now configurable with the new
11643 AccuracySec= setting. It defaults to 1min.
11644
11645 * A new dependency type JoinsNamespaceOf= has been added that
11646 allows running two services within the same /tmp and network
11647 namespace, if PrivateNetwork= or PrivateTmp= are used.
11648
11649 * A new command "cat" has been added to systemctl. It outputs
11650 the original unit file of a unit, and concatenates the
1e190502
ZJS
11651 contents of additional "drop-in" unit file snippets, so that
11652 the full configuration is shown.
e49b5aad
LP
11653
11654 * systemctl now supports globbing on the various "list-xyz"
11655 commands, like "list-units" or "list-sockets", as well as on
1e190502
ZJS
11656 those commands which take multiple unit names.
11657
11658 * journalctl's --unit= switch gained support for globbing.
e49b5aad
LP
11659
11660 * All systemd daemons now make use of the watchdog logic so
11661 that systemd automatically notices when they hang.
11662
4c2413bf 11663 * If the $container_ttys environment variable is set,
e49b5aad
LP
11664 getty-generator will automatically spawn a getty for each
11665 listed tty. This is useful for container managers to request
11666 login gettys to be spawned on as many ttys as needed.
11667
11668 * %h, %s, %U specifier support is not available anymore when
11669 used in unit files for PID 1. This is because NSS calls are
11670 not safe from PID 1. They stay available for --user
11671 instances of systemd, and as special case for the root user.
11672
e49b5aad
LP
11673 * loginctl gained a new "--no-legend" switch to turn off output
11674 of the legend text.
11675
11676 * The "sd-login.h" API gained three new calls:
11677 sd_session_is_remote(), sd_session_get_remote_user(),
11678 sd_session_get_remote_host() to query information about
11679 remote sessions.
11680
8e420494
LP
11681 * The udev hardware database now also carries vendor/product
11682 information of SDIO devices.
e49b5aad
LP
11683
11684 * The "sd-daemon.h" API gained a new sd_watchdog_enabled() to
11685 determine whether watchdog notifications are requested by
11686 the system manager.
11687
1e190502 11688 * Socket-activated per-connection services now include a
e49b5aad
LP
11689 short description of the connection parameters in the
11690 description.
11691
4c2413bf 11692 * tmpfiles gained a new "--boot" option. When this is not used,
e49b5aad 11693 only lines where the command character is not suffixed with
4670e9d5 11694 "!" are executed. When this option is specified, those
1e190502
ZJS
11695 options are executed too. This partitions tmpfiles
11696 directives into those that can be safely executed at any
11697 time, and those which should be run only at boot (for
11698 example, a line that creates /run/nologin).
e49b5aad 11699
c0c5af00 11700 * A new API "sd-resolve.h" has been added which provides a simple
38b38500 11701 asynchronous wrapper around glibc NSS hostname resolution
e49b5aad 11702 calls, such as getaddrinfo(). In contrast to glibc's
4c2413bf
JE
11703 getaddrinfo_a(), it does not use signals. In contrast to most
11704 other asynchronous name resolution libraries, this one does
11705 not reimplement DNS, but reuses NSS, so that alternate
38b38500 11706 hostname resolution systems continue to work, such as mDNS,
8b7d0494 11707 LDAP, etc. This API is based on libasyncns, but it has been
e49b5aad
LP
11708 cleaned up for inclusion in systemd.
11709
6300b3ec
LP
11710 * The APIs "sd-journal.h", "sd-login.h", "sd-id128.h",
11711 "sd-daemon.h" are no longer found in individual libraries
11712 libsystemd-journal.so, libsystemd-login.so,
11713 libsystemd-id128.so, libsystemd-daemon.so. Instead, we have
8b7d0494
JSJ
11714 merged them into a single library, libsystemd.so, which
11715 provides all symbols. The reason for this is cyclic
e49b5aad 11716 dependencies, as these libraries tend to use each other's
d28315e4 11717 symbols. So far, we have managed to workaround that by linking
6300b3ec
LP
11718 a copy of a good part of our code into each of these
11719 libraries again and again, which, however, makes certain
11720 things hard to do, like sharing static variables. Also, it
11721 substantially increases footprint. With this change, there
11722 is only one library for the basic APIs systemd
11723 provides. Also, "sd-bus.h", "sd-memfd.h", "sd-event.h",
11724 "sd-rtnl.h", "sd-resolve.h", "sd-utf8.h" are found in this
11725 library as well, however are subject to the --enable-kdbus
11726 switch (see below). Note that "sd-dhcp-client.h" is not part
11727 of this library (this is because it only consumes, never
11728 provides, services of/to other APIs). To make the transition
8b7d0494 11729 easy from the separate libraries to the unified one, we
4c2413bf 11730 provide the --enable-compat-libs compile-time switch which
e49b5aad
LP
11731 will generate stub libraries that are compatible with the
11732 old ones but redirect all calls to the new one.
11733
8b7d0494 11734 * All of the kdbus logic and the new APIs "sd-bus.h",
e49b5aad 11735 "sd-memfd.h", "sd-event.h", "sd-rtnl.h", "sd-resolve.h",
8b7d0494
JSJ
11736 and "sd-utf8.h" are compile-time optional via the
11737 "--enable-kdbus" switch, and they are not compiled in by
11738 default. To make use of kdbus, you have to explicitly enable
4c2413bf 11739 the switch. Note however, that neither the kernel nor the
e49b5aad
LP
11740 userspace API for all of this is considered stable yet. We
11741 want to maintain the freedom to still change the APIs for
4c2413bf 11742 now. By specifying this build-time switch, you acknowledge
e49b5aad 11743 that you are aware of the instability of the current
ad42cf73
KS
11744 APIs.
11745
11746 * Also, note that while kdbus is pretty much complete,
e49b5aad 11747 it lacks one thing: proper policy support. This means you
8b7d0494 11748 can build a fully working system with all features; however,
4c2413bf
JE
11749 it will be highly insecure. Policy support will be added in
11750 one of the next releases, at the same time that we will
11751 declare the APIs stable.
e49b5aad 11752
81c7dd89 11753 * When the kernel command line argument "kdbus" is specified,
ad42cf73 11754 systemd will automatically load the kdbus.ko kernel module. At
8b7d0494 11755 this stage of development, it is only useful for testing kdbus
ad42cf73 11756 and should not be used in production. Note: if "--enable-kdbus"
8b7d0494 11757 is specified, and the kdbus.ko kernel module is available, and
ad42cf73
KS
11758 "kdbus" is added to the kernel command line, the entire system
11759 runs with kdbus instead of dbus-daemon, with the above mentioned
11760 problem of missing the system policy enforcement. Also a future
11761 version of kdbus.ko or a newer systemd will not be compatible with
11762 each other, and will unlikely be able to boot the machine if only
11763 one of them is updated.
11764
e49b5aad 11765 * systemctl gained a new "import-environment" command which
4c2413bf 11766 uploads the caller's environment (or parts thereof) into the
e49b5aad
LP
11767 service manager so that it is inherited by services started
11768 by the manager. This is useful to upload variables like
11769 $DISPLAY into the user service manager.
11770
11771 * A new PrivateDevices= switch has been added to service units
11772 which allows running a service with a namespaced /dev
11773 directory that does not contain any device nodes for
4c2413bf 11774 physical devices. More specifically, it only includes devices
8b7d0494 11775 such as /dev/null, /dev/urandom, and /dev/zero which are API
e49b5aad
LP
11776 entry points.
11777
11778 * logind has been extended to support behaviour like VT
11779 switching on seats that do not support a VT. This makes
11780 multi-session available on seats that are not the first seat
11781 (seat0), and on systems where kernel support for VTs has
8b7d0494 11782 been disabled at compile-time.
e49b5aad
LP
11783
11784 * If a process holds a delay lock for system sleep or shutdown
1e190502 11785 and fails to release it in time, we will now log its
e49b5aad
LP
11786 identity. This makes it easier to identify processes that
11787 cause slow suspends or power-offs.
11788
1e190502
ZJS
11789 * When parsing /etc/crypttab, support for a new key-slot=
11790 option as supported by Debian is added. It allows indicating
11791 which LUKS slot to use on disk, speeding up key loading.
e49b5aad 11792
000b1ba5 11793 * The sd_journal_sendv() API call has been checked and
1e190502
ZJS
11794 officially declared to be async-signal-safe so that it may
11795 be invoked from signal handlers for logging purposes.
e49b5aad
LP
11796
11797 * Boot-time status output is now enabled automatically after a
11798 short timeout if boot does not progress, in order to give
8e420494 11799 the user an indication what she or he is waiting for.
1e190502
ZJS
11800
11801 * The boot-time output has been improved to show how much time
11802 remains until jobs expire.
e49b5aad
LP
11803
11804 * The KillMode= switch in service units gained a new possible
8b7d0494 11805 value "mixed". If set, and the unit is shut down, then the
e49b5aad 11806 initial SIGTERM signal is sent only to the main daemon
8e420494 11807 process, while the following SIGKILL signal is sent to
e49b5aad
LP
11808 all remaining processes of the service.
11809
4c2413bf
JE
11810 * When a scope unit is registered, a new property "Controller"
11811 may be set. If set to a valid bus name, systemd will send a
e49b5aad
LP
11812 RequestStop() signal to this name when it would like to shut
11813 down the scope. This may be used to hook manager logic into
11814 the shutdown logic of scope units. Also, scope units may now
8b7d0494 11815 be put in a special "abandoned" state, in which case the
e49b5aad
LP
11816 manager process which created them takes no further
11817 responsibilities for it.
11818
1e190502 11819 * When reading unit files, systemd will now verify
e49b5aad
LP
11820 the access mode of these files, and warn about certain
11821 suspicious combinations. This has been added to make it
11822 easier to track down packaging bugs where unit files are
11823 marked executable or world-writable.
11824
11825 * systemd-nspawn gained a new "--setenv=" switch to set
8b7d0494 11826 container-wide environment variables. The similar option in
1e190502
ZJS
11827 systemd-activate was renamed from "--environment=" to
11828 "--setenv=" for consistency.
e49b5aad
LP
11829
11830 * systemd-nspawn has been updated to create a new kdbus domain
11831 for each container that is invoked, thus allowing each
b9761003 11832 container to have its own set of system and user buses,
8b7d0494 11833 independent of the host.
e49b5aad
LP
11834
11835 * systemd-nspawn gained a new --drop-capability= switch to run
11836 the container with less capabilities than the default. Both
b9761003 11837 --drop-capability= and --capability= now take the special
e49b5aad
LP
11838 string "all" for dropping or keeping all capabilities.
11839
11840 * systemd-nspawn gained new switches for executing containers
11841 with specific SELinux labels set.
11842
11843 * systemd-nspawn gained a new --quiet switch to not generate
11844 any additional output but the container's own console
11845 output.
11846
11847 * systemd-nspawn gained a new --share-system switch to run a
11848 container without PID namespacing enabled.
11849
11850 * systemd-nspawn gained a new --register= switch to control
1e190502 11851 whether the container is registered with systemd-machined or
8e420494 11852 not. This is useful for containers that do not run full
e49b5aad
LP
11853 OS images, but only specific apps.
11854
11855 * systemd-nspawn gained a new --keep-unit which may be used
8b7d0494 11856 when invoked as the only program from a service unit, and
e49b5aad 11857 results in registration of the unit service itself in
1e190502 11858 systemd-machined, instead of a newly opened scope unit.
e49b5aad
LP
11859
11860 * systemd-nspawn gained a new --network-interface= switch for
11861 moving arbitrary interfaces to the container. The new
4c2413bf 11862 --network-veth switch creates a virtual Ethernet connection
8b7d0494
JSJ
11863 between host and container. The new --network-bridge=
11864 switch then allows assigning the host side of this virtual
11865 Ethernet connection to a bridge device.
e49b5aad 11866
6afc95b7
LP
11867 * systemd-nspawn gained a new --personality= switch for
11868 setting the kernel personality for the container. This is
70a44afe 11869 useful when running a 32-bit container on a 64-bit host. A
b8bde116
JE
11870 similar option Personality= is now also available for service
11871 units to use.
6afc95b7 11872
e49b5aad
LP
11873 * logind will now also track a "Desktop" identifier for each
11874 session which encodes the desktop environment of it. This is
11875 useful for desktop environments that want to identify
11876 multiple running sessions of itself easily.
11877
11878 * A new SELinuxContext= setting for service units has been
11879 added that allows setting a specific SELinux execution
11880 context for a service.
11881
11882 * Most systemd client tools will now honour $SYSTEMD_LESS for
11883 settings of the "less" pager. By default, these tools will
8b7d0494
JSJ
11884 override $LESS to allow certain operations to work, such as
11885 jump-to-the-end. With $SYSTEMD_LESS, it is possible to
e49b5aad
LP
11886 influence this logic.
11887
11888 * systemd's "seccomp" hook-up has been changed to make use of
11889 the libseccomp library instead of using its own
11890 implementation. This has benefits for portability among
11891 other things.
11892
4c2413bf 11893 * For usage together with SystemCallFilter=, a new
8b7d0494 11894 SystemCallErrorNumber= setting has been introduced that
b8bde116
JE
11895 allows configuration of a system error number to be returned
11896 on filtered system calls, instead of immediately killing the
e49b5aad
LP
11897 process. Also, SystemCallArchitectures= has been added to
11898 limit access to system calls of a particular architecture
11899 (in order to turn off support for unused secondary
4c2413bf 11900 architectures). There is also a global
8b7d0494 11901 SystemCallArchitectures= setting in system.conf now to turn
e49b5aad
LP
11902 off support for non-native system calls system-wide.
11903
210054d7
KS
11904 * systemd requires a kernel with a working name_to_handle_at(),
11905 please see the kernel config requirements in the README file.
11906
e49b5aad
LP
11907 Contributions from: Adam Williamson, Alex Jia, Anatol Pomozov,
11908 Ansgar Burchardt, AppleBloom, Auke Kok, Bastien Nocera,
11909 Chengwei Yang, Christian Seiler, Colin Guthrie, Colin Walters,
11910 Cristian Rodríguez, Daniel Buch, Daniele Medri, Daniel J
11911 Walsh, Daniel Mack, Dan McGee, Dave Reisner, David Coppa,
11912 David Herrmann, David Strauss, Djalal Harouni, Dmitry Pisklov,
11913 Elia Pinto, Florian Weimer, George McCollister, Goffredo
11914 Baroncelli, Greg Kroah-Hartman, Hendrik Brueckner, Igor
11915 Zhbanov, Jan Engelhardt, Jan Janssen, Jason A. Donenfeld,
11916 Jason St. John, Jasper St. Pierre, Jóhann B. Guðmundsson, Jose
11917 Ignacio Naranjo, Karel Zak, Kay Sievers, Kristian Høgsberg,
11918 Lennart Poettering, Lubomir Rintel, Lukas Nykryn, Lukasz
11919 Skalski, Łukasz Stelmach, Luke Shumaker, Mantas Mikulėnas,
11920 Marc-Antoine Perennou, Marcel Holtmann, Marcos Felipe Rasia de
11921 Mello, Marko Myllynen, Martin Pitt, Matthew Monaco, Michael
11922 Marineau, Michael Scherer, Michał Górny, Michal Sekletar,
11923 Michele Curti, Oleksii Shevchuk, Olivier Brunel, Patrik Flykt,
11924 Pavel Holica, Raudi, Richard Marko, Ronny Chevalier, Sébastien
11925 Luttringer, Sergey Ptashnick, Shawn Landden, Simon Peeters,
11926 Stefan Beller, Susant Sahani, Sylvain Plantefeve, Sylvia Else,
11927 Tero Roponen, Thomas Bächler, Thomas Hindoe Paaboel Andersen,
11928 Tom Gundersen, Umut Tezduyar Lindskog, Unai Uribarri, Václav
11929 Pavlín, Vincent Batts, WaLyong Cho, William Giokas, Yang
11930 Zhiyong, Yin Kangkai, Yuxuan Shui, Zbigniew Jędrzejewski-Szmek
11931
ccddd104 11932 — Berlin, 2014-02-20
e49b5aad 11933
cd4010b3
LP
11934CHANGES WITH 208:
11935
11936 * logind has gained support for facilitating privileged input
11937 and drm device access for unprivileged clients. This work is
11938 useful to allow Wayland display servers (and similar
11939 programs, such as kmscon) to run under the user's ID and
11940 access input and drm devices which are normally
11941 protected. When this is used (and the kernel is new enough)
11942 logind will "mute" IO on the file descriptors passed to
11943 Wayland as long as it is in the background and "unmute" it
11944 if it returns into the foreground. This allows secure
11945 session switching without allowing background sessions to
11946 eavesdrop on input and display data. This also introduces
11947 session switching support if VT support is turned off in the
11948 kernel, and on seats that are not seat0.
11949
11950 * A new kernel command line option luks.options= is understood
06b643e7 11951 now which allows specifying LUKS options for usage for LUKS
cd4010b3
LP
11952 encrypted partitions specified with luks.uuid=.
11953
11954 * tmpfiles.d(5) snippets may now use specifier expansion in
11955 path names. More specifically %m, %b, %H, %v, are now
11956 replaced by the local machine id, boot id, hostname, and
11957 kernel version number.
11958
11959 * A new tmpfiles.d(5) command "m" has been introduced which
11960 may be used to change the owner/group/access mode of a file
d28315e4 11961 or directory if it exists, but do nothing if it does not.
cd4010b3
LP
11962
11963 * This release removes high-level support for the
11964 MemorySoftLimit= cgroup setting. The underlying kernel
11965 cgroup attribute memory.soft_limit= is currently badly
11966 designed and likely to be removed from the kernel API in its
d28315e4 11967 current form, hence we should not expose it for now.
cd4010b3
LP
11968
11969 * The memory.use_hierarchy cgroup attribute is now enabled for
11970 all cgroups systemd creates in the memory cgroup
11971 hierarchy. This option is likely to be come the built-in
cc98b302
TH
11972 default in the kernel anyway, and the non-hierarchical mode
11973 never made much sense in the intrinsically hierarchical
cd4010b3
LP
11974 cgroup system.
11975
11976 * A new field _SYSTEMD_SLICE= is logged along with all journal
11977 messages containing the slice a message was generated
11978 from. This is useful to allow easy per-customer filtering of
11979 logs among other things.
11980
11981 * systemd-journald will no longer adjust the group of journal
11982 files it creates to the "systemd-journal" group. Instead we
11983 rely on the journal directory to be owned by the
11984 "systemd-journal" group, and its setgid bit set, so that the
11985 kernel file system layer will automatically enforce that
11986 journal files inherit this group assignment. The reason for
11987 this change is that we cannot allow NSS look-ups from
11988 journald which would be necessary to resolve
11989 "systemd-journal" to a numeric GID, because this might
11990 create deadlocks if NSS involves synchronous queries to
11991 other daemons (such as nscd, or sssd) which in turn are
11992 logging clients of journald and might block on it, which
11993 would then dead lock. A tmpfiles.d(5) snippet included in
11994 systemd will make sure the setgid bit and group are
11995 properly set on the journal directory if it exists on every
11996 boot. However, we recommend adjusting it manually after
11997 upgrades too (or from RPM scriptlets), so that the change is
11998 not delayed until next reboot.
11999
12000 * Backlight and random seed files in /var/lib/ have moved into
12001 the /var/lib/systemd/ directory, in order to centralize all
12002 systemd generated files in one directory.
12003
12004 * Boot time performance measurements (as displayed by
12005 "systemd-analyze" for example) will now read ACPI 5.0 FPDT
12006 performance information if that's available to determine how
12007 much time BIOS and boot loader initialization required. With
12008 a sufficiently new BIOS you hence no longer need to boot
12009 with Gummiboot to get access to such information.
12010
12011 Contributions from: Andrey Borzenkov, Chen Jie, Colin Walters,
12012 Cristian Rodríguez, Dave Reisner, David Herrmann, David
12013 Mackey, David Strauss, Eelco Dolstra, Evan Callicoat, Gao
12014 feng, Harald Hoyer, Jimmie Tauriainen, Kay Sievers, Lennart
12015 Poettering, Lukas Nykryn, Mantas Mikulėnas, Martin Pitt,
12016 Michael Scherer, Michał Górny, Mike Gilbert, Patrick McCarty,
12017 Sebastian Ott, Tom Gundersen, Zbigniew Jędrzejewski-Szmek
12018
ccddd104 12019 — Berlin, 2013-10-02
cd4010b3 12020
4f0be680
LP
12021CHANGES WITH 207:
12022
12023 * The Restart= option for services now understands a new
f3a165b0 12024 on-watchdog setting, which will restart the service
4f0be680
LP
12025 automatically if the service stops sending out watchdog keep
12026 alive messages (as configured with WatchdogSec=).
12027
12028 * The getty generator (which is responsible for bringing up a
12029 getty on configured serial consoles) will no longer only
12030 start a getty on the primary kernel console but on all
12031 others, too. This makes the order in which console= is
12032 specified on the kernel command line less important.
12033
12034 * libsystemd-logind gained a new sd_session_get_vt() call to
12035 retrieve the VT number of a session.
12036
12037 * If the option "tries=0" is set for an entry of /etc/crypttab
12038 its passphrase is queried indefinitely instead of any
12039 maximum number of tries.
12040
12041 * If a service with a configure PID file terminates its PID
12042 file will now be removed automatically if it still exists
12043 afterwards. This should put an end to stale PID files.
12044
12045 * systemd-run will now also take relative binary path names
12046 for execution and no longer insists on absolute paths.
12047
12048 * InaccessibleDirectories= and ReadOnlyDirectories= now take
12049 paths that are optionally prefixed with "-" to indicate that
d28315e4 12050 it should not be considered a failure if they do not exist.
4f0be680 12051
f3a165b0
KS
12052 * journalctl -o (and similar commands) now understands a new
12053 output mode "short-precise", it is similar to "short" but
4f0be680
LP
12054 shows timestamps with usec accuracy.
12055
12056 * The option "discard" (as known from Debian) is now
12057 synonymous to "allow-discards" in /etc/crypttab. In fact,
387abf80 12058 "discard" is preferred now (since it is easier to remember
4f0be680
LP
12059 and type).
12060
f3a165b0 12061 * Some licensing clean-ups were made, so that more code is now
4f0be680
LP
12062 LGPL-2.1 licensed than before.
12063
12064 * A minimal tool to save/restore the display backlight
12065 brightness across reboots has been added. It will store the
f3a165b0 12066 backlight setting as late as possible at shutdown, and
4f0be680
LP
12067 restore it as early as possible during reboot.
12068
12069 * A logic to automatically discover and enable home and swap
12070 partitions on GPT disks has been added. With this in place
12071 /etc/fstab becomes optional for many setups as systemd can
12072 discover certain partitions located on the root disk
12073 automatically. Home partitions are recognized under their
12074 GPT type ID 933ac7e12eb44f13b8440e14e2aef915. Swap
12075 partitions are recognized under their GPT type ID
12076 0657fd6da4ab43c484e50933c84b4f4f.
12077
12078 * systemd will no longer pass any environment from the kernel
12079 or initrd to system services. If you want to set an
12080 environment for all services, do so via the kernel command
12081 line systemd.setenv= assignment.
12082
387abf80
LP
12083 * The systemd-sysctl tool no longer natively reads the file
12084 /etc/sysctl.conf. If desired, the file should be symlinked
12085 from /etc/sysctl.d/99-sysctl.conf. Apart from providing
12086 legacy support by a symlink rather than built-in code, it
12087 also makes the otherwise hidden order of application of the
12088 different files visible. (Note that this partly reverts to a
12089 pre-198 application order of sysctl knobs!)
04bf3c1a 12090
4f0be680
LP
12091 * The "systemctl set-log-level" and "systemctl dump" commands
12092 have been moved to systemd-analyze.
12093
12094 * systemd-run learned the new --remain-after-exit switch,
12095 which causes the scope unit not to be cleaned up
12096 automatically after the process terminated.
12097
12098 * tmpfiles learned a new --exclude-prefix= switch to exclude
12099 certain paths from operation.
12100
12101 * journald will now automatically flush all messages to disk
f47ad593
ZJS
12102 as soon as a message at the log level CRIT, ALERT or EMERG
12103 is received.
4f0be680
LP
12104
12105 Contributions from: Andrew Cook, Brandon Philips, Christian
12106 Hesse, Christoph Junghans, Colin Walters, Daniel Schaal,
12107 Daniel Wallace, Dave Reisner, David Herrmann, Gao feng, George
12108 McCollister, Giovanni Campagna, Hannes Reinecke, Harald Hoyer,
12109 Herczeg Zsolt, Holger Hans Peter Freyther, Jan Engelhardt,
12110 Jesper Larsen, Kay Sievers, Khem Raj, Lennart Poettering,
12111 Lukas Nykryn, Maciej Wereski, Mantas Mikulėnas, Marcel
12112 Holtmann, Martin Pitt, Michael Biebl, Michael Marineau,
12113 Michael Scherer, Michael Stapelberg, Michal Sekletar, Michał
12114 Górny, Olivier Brunel, Ondrej Balaz, Ronny Chevalier, Shawn
12115 Landden, Steven Hiscocks, Thomas Bächler, Thomas Hindoe
12116 Paaboel Andersen, Tom Gundersen, Umut Tezduyar, WANG Chao,
12117 William Giokas, Zbigniew Jędrzejewski-Szmek
12118
ccddd104 12119 — Berlin, 2013-09-13
4f0be680 12120
408f281b
LP
12121CHANGES WITH 206:
12122
12123 * The documentation has been updated to cover the various new
12124 concepts introduced with 205.
12125
12126 * Unit files now understand the new %v specifier which
12127 resolves to the kernel version string as returned by "uname
12128 -r".
12129
12130 * systemctl now supports filtering the unit list output by
12131 load state, active state and sub state, using the new
33b521be 12132 --state= parameter.
408f281b
LP
12133
12134 * "systemctl status" will now show the results of the
12135 condition checks (like ConditionPathExists= and similar) of
12136 the last start attempts of the unit. They are also logged to
12137 the journal.
12138
12139 * "journalctl -b" may now be used to look for boot output of a
12140 specific boot. Try "journalctl -b -1" for the previous boot,
12141 but the syntax is substantially more powerful.
12142
12143 * "journalctl --show-cursor" has been added which prints the
12144 cursor string the last shown log line. This may then be used
12145 with the new "journalctl --after-cursor=" switch to continue
12146 browsing logs from that point on.
12147
12148 * "journalctl --force" may now be used to force regeneration
12149 of an FSS key.
12150
251cc819
LP
12151 * Creation of "dead" device nodes has been moved from udev
12152 into kmod and tmpfiles. Previously, udev would read the kmod
12153 databases to pre-generate dead device nodes based on meta
12154 information contained in kernel modules, so that these would
12155 be auto-loaded on access rather then at boot. As this
d28315e4 12156 does not really have much to do with the exposing actual
251cc819
LP
12157 kernel devices to userspace this has always been slightly
12158 alien in the udev codebase. Following the new scheme kmod
12159 will now generate a runtime snippet for tmpfiles from the
12160 module meta information and it now is tmpfiles' job to the
12161 create the nodes. This also allows overriding access and
12162 other parameters for the nodes using the usual tmpfiles
12163 facilities. As side effect this allows us to remove the
12164 CAP_SYS_MKNOD capability bit from udevd entirely.
12165
12166 * logind's device ACLs may now be applied to these "dead"
12167 devices nodes too, thus finally allowing managed access to
ce830873 12168 devices such as /dev/snd/sequencer without loading the
251cc819 12169 backing module right-away.
408f281b
LP
12170
12171 * A new RPM macro has been added that may be used to apply
12172 tmpfiles configuration during package installation.
12173
12174 * systemd-detect-virt and ConditionVirtualization= now can
12175 detect User-Mode-Linux machines (UML).
12176
251cc819
LP
12177 * journald will now implicitly log the effective capabilities
12178 set of processes in the message metadata.
408f281b
LP
12179
12180 * systemd-cryptsetup has gained support for TrueCrypt volumes.
12181
12182 * The initrd interface has been simplified (more specifically,
12183 support for passing performance data via environment
12184 variables and fsck results via files in /run has been
12185 removed). These features were non-essential, and are
12186 nowadays available in a much nicer way by having systemd in
12187 the initrd serialize its state and have the hosts systemd
12188 deserialize it again.
12189
28f5c779
KS
12190 * The udev "keymap" data files and tools to apply keyboard
12191 specific mappings of scan to key codes, and force-release
12192 scan code lists have been entirely replaced by a udev
12193 "keyboard" builtin and a hwdb data file.
408f281b 12194
251cc819
LP
12195 * systemd will now honour the kernel's "quiet" command line
12196 argument also during late shutdown, resulting in a
12197 completely silent shutdown when used.
12198
12199 * There's now an option to control the SO_REUSEPORT socket
12200 option in .socket units.
12201
12202 * Instance units will now automatically get a per-template
12203 subslice of system.slice unless something else is explicitly
12204 configured. For example, instances of sshd@.service will now
12205 implicitly be placed in system-sshd.slice rather than
12206 system.slice as before.
12207
12208 * Test coverage support may now be enabled at build time.
12209
12210 Contributions from: Dave Reisner, Frederic Crozat, Harald
12211 Hoyer, Holger Hans Peter Freyther, Jan Engelhardt, Jan
12212 Janssen, Jason St. John, Jesper Larsen, Kay Sievers, Lennart
12213 Poettering, Lukas Nykryn, Maciej Wereski, Martin Pitt, Michael
12214 Olbrich, Ramkumar Ramachandra, Ross Lagerwall, Shawn Landden,
12215 Thomas H.P. Andersen, Tom Gundersen, Tomasz Torcz, William
12216 Giokas, Zbigniew Jędrzejewski-Szmek
12217
ccddd104 12218 — Berlin, 2013-07-23
4f0be680 12219
00aa832b
LP
12220CHANGES WITH 205:
12221
12222 * Two new unit types have been introduced:
12223
12224 Scope units are very similar to service units, however, are
ccddd104 12225 created out of pre-existing processes — instead of PID 1
00aa832b
LP
12226 forking off the processes. By using scope units it is
12227 possible for system services and applications to group their
12228 own child processes (worker processes) in a powerful way
12229 which then maybe used to organize them, or kill them
12230 together, or apply resource limits on them.
12231
12232 Slice units may be used to partition system resources in an
cc98b302 12233 hierarchical fashion and then assign other units to them. By
00aa832b
LP
12234 default there are now three slices: system.slice (for all
12235 system services), user.slice (for all user sessions),
12236 machine.slice (for VMs and containers).
12237
12238 Slices and scopes have been introduced primarily in
12239 context of the work to move cgroup handling to a
12240 single-writer scheme, where only PID 1
12241 creates/removes/manages cgroups.
12242
12243 * There's a new concept of "transient" units. In contrast to
12244 normal units these units are created via an API at runtime,
12245 not from configuration from disk. More specifically this
12246 means it is now possible to run arbitrary programs as
12247 independent services, with all execution parameters passed
12248 in via bus APIs rather than read from disk. Transient units
12249 make systemd substantially more dynamic then it ever was,
12250 and useful as a general batch manager.
12251
12252 * logind has been updated to make use of scope and slice units
12253 for managing user sessions. As a user logs in he will get
12254 his own private slice unit, to which all sessions are added
12255 as scope units. We also added support for automatically
12256 adding an instance of user@.service for the user into the
12257 slice. Effectively logind will no longer create cgroup
12258 hierarchies on its own now, it will defer entirely to PID 1
12259 for this by means of scope, service and slice units. Since
12260 user sessions this way become entities managed by PID 1
12261 the output of "systemctl" is now a lot more comprehensive.
12262
12263 * A new mini-daemon "systemd-machined" has been added which
12264 may be used by virtualization managers to register local
12265 VMs/containers. nspawn has been updated accordingly, and
12266 libvirt will be updated shortly. machined will collect a bit
12267 of meta information about the VMs/containers, and assign
12268 them their own scope unit (see above). The collected
12269 meta-data is then made available via the "machinectl" tool,
12270 and exposed in "ps" and similar tools. machined/machinectl
12271 is compile-time optional.
12272
12273 * As discussed earlier, the low-level cgroup configuration
12274 options ControlGroup=, ControlGroupModify=,
12275 ControlGroupPersistent=, ControlGroupAttribute= have been
12276 removed. Please use high-level attribute settings instead as
12277 well as slice units.
12278
12279 * A new bus call SetUnitProperties() has been added to alter
12280 various runtime parameters of a unit. This is primarily
12281 useful to alter cgroup parameters dynamically in a nice way,
12282 but will be extended later on to make more properties
12283 modifiable at runtime. systemctl gained a new set-properties
12284 command that wraps this call.
12285
12286 * A new tool "systemd-run" has been added which can be used to
12287 run arbitrary command lines as transient services or scopes,
12288 while configuring a number of settings via the command
12289 line. This tool is currently very basic, however already
12290 very useful. We plan to extend this tool to even allow
12291 queuing of execution jobs with time triggers from the
12292 command line, similar in fashion to "at".
12293
12294 * nspawn will now inform the user explicitly that kernels with
12295 audit enabled break containers, and suggest the user to turn
12296 off audit.
12297
12298 * Support for detecting the IMA and AppArmor security
12299 frameworks with ConditionSecurity= has been added.
12300
12301 * journalctl gained a new "-k" switch for showing only kernel
1fda0ab5
ZJS
12302 messages, mimicking dmesg output; in addition to "--user"
12303 and "--system" switches for showing only user's own logs
12304 and system logs.
00aa832b
LP
12305
12306 * systemd-delta can now show information about drop-in
12307 snippets extending unit files.
12308
12309 * libsystemd-bus has been substantially updated but is still
12310 not available as public API.
12311
12312 * systemd will now look for the "debug" argument on the kernel
499b604b 12313 command line and enable debug logging, similar to what
00aa832b
LP
12314 "systemd.log_level=debug" already did before.
12315
12316 * "systemctl set-default", "systemctl get-default" has been
12317 added to configure the default.target symlink, which
12318 controls what to boot into by default.
12319
1fda0ab5
ZJS
12320 * "systemctl set-log-level" has been added as a convenient
12321 way to raise and lower systemd logging threshold.
12322
00aa832b
LP
12323 * "systemd-analyze plot" will now show the time the various
12324 generators needed for execution, as well as information
12325 about the unit file loading.
12326
00aa832b
LP
12327 * libsystemd-journal gained a new sd_journal_open_files() call
12328 for opening specific journal files. journactl also gained a
12329 new switch to expose this new functionality. Previously we
12330 only supported opening all files from a directory, or all
12331 files from the system, as opening individual files only is
12332 racy due to journal file rotation.
12333
12334 * systemd gained the new DefaultEnvironment= setting in
12335 /etc/systemd/system.conf to set environment variables for
12336 all services.
12337
12338 * If a privileged process logs a journal message with the
12339 OBJECT_PID= field set, then journald will automatically
12340 augment this with additional OBJECT_UID=, OBJECT_GID=,
1d3a473b 12341 OBJECT_COMM=, OBJECT_EXE=, … fields. This is useful if
00aa832b
LP
12342 system services want to log events about specific client
12343 processes. journactl/systemctl has been updated to make use
12344 of this information if all log messages regarding a specific
12345 unit is requested.
12346
12347 Contributions from: Auke Kok, Chengwei Yang, Colin Walters,
12348 Cristian Rodríguez, Daniel Albers, Daniel Wallace, Dave
12349 Reisner, David Coppa, David King, David Strauss, Eelco
12350 Dolstra, Gabriel de Perthuis, Harald Hoyer, Jan Alexander
12351 Steffens, Jan Engelhardt, Jan Janssen, Jason St. John, Johan
12352 Heikkilä, Karel Zak, Karol Lewandowski, Kay Sievers, Lennart
12353 Poettering, Lukas Nykryn, Mantas Mikulėnas, Marius Vollmer,
12354 Martin Pitt, Michael Biebl, Michael Olbrich, Michael Tremer,
12355 Michal Schmidt, Michał Bartoszkiewicz, Nirbheek Chauhan,
12356 Pierre Neidhardt, Ross Burton, Ross Lagerwall, Sean McGovern,
12357 Thomas Hindoe Paaboel Andersen, Tom Gundersen, Umut Tezduyar,
12358 Václav Pavlín, Zachary Cook, Zbigniew Jędrzejewski-Szmek,
12359 Łukasz Stelmach, 장동준
12360
606c24e3
LP
12361CHANGES WITH 204:
12362
12363 * The Python bindings gained some minimal support for the APIs
12364 exposed by libsystemd-logind.
12365
12366 * ConditionSecurity= gained support for detecting SMACK. Since
12367 this condition already supports SELinux and AppArmor we only
12368 miss IMA for this. Patches welcome!
12369
12370 Contributions from: Karol Lewandowski, Lennart Poettering,
12371 Zbigniew Jędrzejewski-Szmek
12372
2f3fcf85
LP
12373CHANGES WITH 203:
12374
12375 * systemd-nspawn will now create /etc/resolv.conf if
12376 necessary, before bind-mounting the host's file onto it.
12377
12378 * systemd-nspawn will now store meta information about a
12379 container on the container's cgroup as extended attribute
12380 fields, including the root directory.
12381
12382 * The cgroup hierarchy has been reworked in many ways. All
12383 objects any of the components systemd creates in the cgroup
b82eed9a 12384 tree are now suffixed. More specifically, user sessions are
2f3fcf85
LP
12385 now placed in cgroups suffixed with ".session", users in
12386 cgroups suffixed with ".user", and nspawn containers in
12387 cgroups suffixed with ".nspawn". Furthermore, all cgroup
12388 names are now escaped in a simple scheme to avoid collision
12389 of userspace object names with kernel filenames. This work
12390 is preparation for making these objects relocatable in the
12391 cgroup tree, in order to allow easy resource partitioning of
12392 these objects without causing naming conflicts.
12393
12394 * systemctl list-dependencies gained the new switches
12395 --plain, --reverse, --after and --before.
12396
12397 * systemd-inhibit now shows the process name of processes that
12398 have taken an inhibitor lock.
12399
12400 * nss-myhostname will now also resolve "localhost"
12401 implicitly. This makes /etc/hosts an optional file and
12402 nicely handles that on IPv6 ::1 maps to both "localhost" and
12403 the local hostname.
12404
12405 * libsystemd-logind.so gained a new call
12406 sd_get_machine_names() to enumerate running containers and
12407 VMs (currently only supported by very new libvirt and
12408 nspawn). sd_login_monitor can now be used to watch
12409 VMs/containers coming and going.
12410
12411 * .include is not allowed recursively anymore, and only in
12412 unit files. Usually it is better to use drop-in snippets in
12413 .d/*.conf anyway, as introduced with systemd 198.
12414
12415 * systemd-analyze gained a new "critical-chain" command that
12416 determines the slowest chain of units run during system
12417 boot-up. It is very useful for tracking down where
12418 optimizing boot time is the most beneficial.
12419
12420 * systemd will no longer allow manipulating service paths in
12421 the name=systemd:/system cgroup tree using ControlGroup= in
12422 units. (But is still fine with it in all other dirs.)
12423
12424 * There's a new systemd-nspawn@.service service file that may
12425 be used to easily run nspawn containers as system
12426 services. With the container's root directory in
12427 /var/lib/container/foobar it is now sufficient to run
12428 "systemctl start systemd-nspawn@foobar.service" to boot it.
12429
12430 * systemd-cgls gained a new parameter "--machine" to list only
12431 the processes within a certain container.
12432
12433 * ConditionSecurity= now can check for "apparmor". We still
12434 are lacking checks for SMACK and IMA for this condition
12435 check though. Patches welcome!
12436
12437 * A new configuration file /etc/systemd/sleep.conf has been
12438 added that may be used to configure which kernel operation
12439 systemd is supposed to execute when "suspend", "hibernate"
12440 or "hybrid-sleep" is requested. This makes the new kernel
12441 "freeze" state accessible to the user.
12442
12443 * ENV{SYSTEMD_WANTS} in udev rules will now implicitly escape
12444 the passed argument if applicable.
12445
12446 Contributions from: Auke Kok, Colin Guthrie, Colin Walters,
12447 Cristian Rodríguez, Daniel Buch, Daniel Wallace, Dave Reisner,
12448 Evangelos Foutras, Greg Kroah-Hartman, Harald Hoyer, Josh
12449 Triplett, Kay Sievers, Lennart Poettering, Lukas Nykryn,
12450 MUNEDA Takahiro, Mantas Mikulėnas, Mirco Tischler, Nathaniel
12451 Chen, Nirbheek Chauhan, Ronny Chevalier, Ross Lagerwall, Tom
12452 Gundersen, Umut Tezduyar, Ville Skyttä, Zbigniew
12453 Jędrzejewski-Szmek
12454
ef3b5246
LP
12455CHANGES WITH 202:
12456
12457 * The output of 'systemctl list-jobs' got some polishing. The
12458 '--type=' argument may now be passed more than once. A new
12459 command 'systemctl list-sockets' has been added which shows
12460 a list of kernel sockets systemd is listening on with the
12461 socket units they belong to, plus the units these socket
12462 units activate.
12463
12464 * The experimental libsystemd-bus library got substantial
12465 updates to work in conjunction with the (also experimental)
12466 kdbus kernel project. It works well enough to exchange
12467 messages with some sophistication. Note that kdbus is not
12468 ready yet, and the library is mostly an elaborate test case
12469 for now, and not installable.
12470
12471 * systemd gained a new unit 'systemd-static-nodes.service'
12472 that generates static device nodes earlier during boot, and
12473 can run in conjunction with udev.
12474
12475 * libsystemd-login gained a new call sd_pid_get_user_unit()
12476 to retrieve the user systemd unit a process is running
12477 in. This is useful for systems where systemd is used as
12478 session manager.
12479
12480 * systemd-nspawn now places all containers in the new /machine
12481 top-level cgroup directory in the name=systemd
12482 hierarchy. libvirt will soon do the same, so that we get a
12483 uniform separation of /system, /user and /machine for system
12484 services, user processes and containers/virtual
12485 machines. This new cgroup hierarchy is also useful to stick
12486 stable names to specific container instances, which can be
7c04ad2d 12487 recognized later this way (this name may be controlled
ef3b5246
LP
12488 via systemd-nspawn's new -M switch). libsystemd-login also
12489 gained a new call sd_pid_get_machine_name() to retrieve the
12490 name of the container/VM a specific process belongs to.
12491
12492 * bootchart can now store its data in the journal.
12493
12494 * libsystemd-journal gained a new call
12495 sd_journal_add_conjunction() for AND expressions to the
12496 matching logic. This can be used to express more complex
12497 logical expressions.
12498
12499 * journactl can now take multiple --unit= and --user-unit=
12500 switches.
12501
12502 * The cryptsetup logic now understands the "luks.key=" kernel
12503 command line switch for specifying a file to read the
7c04ad2d 12504 decryption key from. Also, if a configured key file is not
ef3b5246
LP
12505 found the tool will now automatically fall back to prompting
12506 the user.
12507
cbeabcfb
ZJS
12508 * Python systemd.journal module was updated to wrap recently
12509 added functions from libsystemd-journal. The interface was
12510 changed to bring the low level interface in s.j._Reader
12511 closer to the C API, and the high level interface in
12512 s.j.Reader was updated to wrap and convert all data about
12513 an entry.
12514
ef3b5246
LP
12515 Contributions from: Anatol Pomozov, Auke Kok, Harald Hoyer,
12516 Henrik Grindal Bakken, Josh Triplett, Kay Sievers, Lennart
12517 Poettering, Lukas Nykryn, Mantas Mikulėnas Marius Vollmer,
12518 Martin Jansa, Martin Pitt, Michael Biebl, Michal Schmidt,
12519 Mirco Tischler, Pali Rohar, Simon Peeters, Steven Hiscocks,
12520 Tom Gundersen, Zbigniew Jędrzejewski-Szmek
12521
d3a86981
LP
12522CHANGES WITH 201:
12523
12524 * journalctl --update-catalog now understands a new --root=
12525 option to operate on catalogs found in a different root
12526 directory.
12527
12528 * During shutdown after systemd has terminated all running
12529 services a final killing loop kills all remaining left-over
12530 processes. We will now print the name of these processes
12531 when we send SIGKILL to them, since this usually indicates a
12532 problem.
12533
12534 * If /etc/crypttab refers to password files stored on
12535 configured mount points automatic dependencies will now be
12536 generated to ensure the specific mount is established first
12537 before the key file is attempted to be read.
12538
12539 * 'systemctl status' will now show information about the
12540 network sockets a socket unit is listening on.
12541
12542 * 'systemctl status' will also shown information about any
12543 drop-in configuration file for units. (Drop-In configuration
12544 files in this context are files such as
5ada98cd 12545 /etc/systemd/system/foobar.service.d/*.conf)
d3a86981
LP
12546
12547 * systemd-cgtop now optionally shows summed up CPU times of
12548 cgroups. Press '%' while running cgtop to switch between
12549 percentage and absolute mode. This is useful to determine
12550 which cgroups use up the most CPU time over the entire
12551 runtime of the system. systemd-cgtop has also been updated
12552 to be 'pipeable' for processing with further shell tools.
12553
12554 * 'hostnamectl set-hostname' will now allow setting of FQDN
12555 hostnames.
12556
12557 * The formatting and parsing of time span values has been
12558 changed. The parser now understands fractional expressions
12559 such as "5.5h". The formatter will now output fractional
12560 expressions for all time spans under 1min, i.e. "5.123456s"
12561 rather than "5s 123ms 456us". For time spans under 1s
12562 millisecond values are shown, for those under 1ms
12563 microsecond values are shown. This should greatly improve
12564 all time-related output of systemd.
12565
12566 * libsystemd-login and libsystemd-journal gained new
12567 functions for querying the poll() events mask and poll()
12568 timeout value for integration into arbitrary event
12569 loops.
12570
12571 * localectl gained the ability to list available X11 keymaps
12572 (models, layouts, variants, options).
12573
12574 * 'systemd-analyze dot' gained the ability to filter for
12575 specific units via shell-style globs, to create smaller,
d28315e4 12576 more useful graphs. I.e. it is now possible to create simple
d3a86981
LP
12577 graphs of all the dependencies between only target units, or
12578 of all units that Avahi has dependencies with.
12579
12580 Contributions from: Cristian Rodríguez, Dr. Tilmann Bubeck,
12581 Harald Hoyer, Holger Hans Peter Freyther, Kay Sievers, Kelly
12582 Anderson, Koen Kooi, Lennart Poettering, Maksim Melnikau,
12583 Marc-Antoine Perennou, Marius Vollmer, Martin Pitt, Michal
12584 Schmidt, Oleksii Shevchuk, Ronny Chevalier, Simon McVittie,
12585 Steven Hiscocks, Thomas Weißschuh, Umut Tezduyar, Václav
12586 Pavlín, Zbigniew Jędrzejewski-Szmek, Łukasz Stelmach
12587
9ca3c17f
LP
12588CHANGES WITH 200:
12589
12590 * The boot-time readahead implementation for rotating media
12591 will now read the read-ahead data in multiple passes which
12592 consist of all read requests made in equidistant time
12593 intervals. This means instead of strictly reading read-ahead
12594 data in its physical order on disk we now try to find a
12595 middle ground between physical and access time order.
12596
12597 * /etc/os-release files gained a new BUILD_ID= field for usage
12598 on operating systems that provide continuous builds of OS
12599 images.
12600
12601 Contributions from: Auke Kok, Eelco Dolstra, Kay Sievers,
12602 Lennart Poettering, Lukas Nykryn, Martin Pitt, Václav Pavlín
12603 William Douglas, Zbigniew Jędrzejewski-Szmek
12604
35911459
LP
12605CHANGES WITH 199:
12606
12607 * systemd-python gained an API exposing libsystemd-daemon.
12608
12609 * The SMACK setup logic gained support for uploading CIPSO
12610 security policy.
12611
12612 * Behaviour of PrivateTmp=, ReadWriteDirectories=,
12613 ReadOnlyDirectories= and InaccessibleDirectories= has
12614 changed. The private /tmp and /var/tmp directories are now
12615 shared by all processes of a service (which means
12616 ExecStartPre= may now leave data in /tmp that ExecStart= of
12617 the same service can still access). When a service is
12618 stopped its temporary directories are immediately deleted
a87197f5 12619 (normal clean-up with tmpfiles is still done in addition to
35911459
LP
12620 this though).
12621
12622 * By default, systemd will now set a couple of sysctl
12623 variables in the kernel: the safe sysrq options are turned
12624 on, IP route verification is turned on, and source routing
12625 disabled. The recently added hardlink and softlink
12626 protection of the kernel is turned on. These settings should
12627 be reasonably safe, and good defaults for all new systems.
12628
12629 * The predictable network naming logic may now be turned off
a87197f5 12630 with a new kernel command line switch: net.ifnames=0.
35911459
LP
12631
12632 * A new libsystemd-bus module has been added that implements a
12633 pretty complete D-Bus client library. For details see:
12634
56cadcb6 12635 https://lists.freedesktop.org/archives/systemd-devel/2013-March/009797.html
35911459 12636
c20d8298 12637 * journald will now explicitly flush the journal files to disk
a87197f5
ZJS
12638 at the latest 5min after each write. The file will then also
12639 be marked offline until the next write. This should increase
12640 reliability in case of a crash. The synchronization delay
12641 can be configured via SyncIntervalSec= in journald.conf.
35911459
LP
12642
12643 * There's a new remote-fs-setup.target unit that can be used
12644 to pull in specific services when at least one remote file
12645 system is to be mounted.
12646
12647 * There are new targets timers.target and paths.target as
12648 canonical targets to pull user timer and path units in
12649 from. This complements sockets.target with a similar
12650 purpose for socket units.
12651
6a7d3d68
LP
12652 * libudev gained a new call udev_device_set_attribute_value()
12653 to set sysfs attributes of a device.
12654
a87197f5
ZJS
12655 * The udev daemon now sets the default number of worker
12656 processes executed in parallel based on the number of available
c20d8298 12657 CPUs instead of the amount of available RAM. This is supposed
ab06eef8 12658 to provide a more reliable default and limit a too aggressive
ce830873 12659 parallelism for setups with 1000s of devices connected.
c20d8298 12660
35911459
LP
12661 Contributions from: Auke Kok, Colin Walters, Cristian
12662 Rodríguez, Daniel Buch, Dave Reisner, Frederic Crozat, Hannes
12663 Reinecke, Harald Hoyer, Jan Alexander Steffens, Jan
12664 Engelhardt, Josh Triplett, Kay Sievers, Lennart Poettering,
12665 Mantas Mikulėnas, Martin Pitt, Mathieu Bridon, Michael Biebl,
12666 Michal Schmidt, Michal Sekletar, Miklos Vajna, Nathaniel Chen,
12667 Oleksii Shevchuk, Ozan Çağlayan, Thomas Hindoe Paaboel
12668 Andersen, Tollef Fog Heen, Tom Gundersen, Umut Tezduyar,
12669 Zbigniew Jędrzejewski-Szmek
12670
85d68397
LP
12671CHANGES WITH 198:
12672
12673 * Configuration of unit files may now be extended via drop-in
12674 files without having to edit/override the unit files
12675 themselves. More specifically, if the administrator wants to
12676 change one value for a service file foobar.service he can
12677 now do so by dropping in a configuration snippet into
ad88e758 12678 /etc/systemd/system/foobar.service.d/*.conf. The unit logic
85d68397
LP
12679 will load all these snippets and apply them on top of the
12680 main unit configuration file, possibly extending or
12681 overriding its settings. Using these drop-in snippets is
40e21da8
KS
12682 generally nicer than the two earlier options for changing
12683 unit files locally: copying the files from
85d68397
LP
12684 /usr/lib/systemd/system/ to /etc/systemd/system/ and editing
12685 them there; or creating a new file in /etc/systemd/system/
12686 that incorporates the original one via ".include". Drop-in
12687 snippets into these .d/ directories can be placed in any
fd868975 12688 directory systemd looks for units in, and the usual
85d68397
LP
12689 overriding semantics between /usr/lib, /etc and /run apply
12690 for them too.
12691
12692 * Most unit file settings which take lists of items can now be
6aa8d43a 12693 reset by assigning the empty string to them. For example,
85d68397
LP
12694 normally, settings such as Environment=FOO=BAR append a new
12695 environment variable assignment to the environment block,
12696 each time they are used. By assigning Environment= the empty
12697 string the environment block can be reset to empty. This is
12698 particularly useful with the .d/*.conf drop-in snippets
156f7d09
KS
12699 mentioned above, since this adds the ability to reset list
12700 settings from vendor unit files via these drop-ins.
85d68397
LP
12701
12702 * systemctl gained a new "list-dependencies" command for
12703 listing the dependencies of a unit recursively.
12704
40e21da8 12705 * Inhibitors are now honored and listed by "systemctl
85d68397
LP
12706 suspend", "systemctl poweroff" (and similar) too, not only
12707 GNOME. These commands will also list active sessions by
12708 other users.
12709
12710 * Resource limits (as exposed by the various control group
12711 controllers) can now be controlled dynamically at runtime
12712 for all units. More specifically, you can now use a command
12713 like "systemctl set-cgroup-attr foobar.service cpu.shares
12714 2000" to alter the CPU shares a specific service gets. These
6aa8d43a 12715 settings are stored persistently on disk, and thus allow the
85d68397
LP
12716 administrator to easily adjust the resource usage of
12717 services with a few simple commands. This dynamic resource
6aa8d43a 12718 management logic is also available to other programs via the
85d68397
LP
12719 bus. Almost any kernel cgroup attribute and controller is
12720 supported.
12721
12722 * systemd-vconsole-setup will now copy all font settings to
6aa8d43a
LP
12723 all allocated VTs, where it previously applied them only to
12724 the foreground VT.
85d68397
LP
12725
12726 * libsystemd-login gained the new sd_session_get_tty() API
12727 call.
12728
6aa8d43a
LP
12729 * This release drops support for a few legacy or
12730 distribution-specific LSB facility names when parsing init
12731 scripts: $x-display-manager, $mail-transfer-agent,
85d68397
LP
12732 $mail-transport-agent, $mail-transfer-agent, $smtp,
12733 $null. Also, the mail-transfer-agent.target unit backing
12734 this has been removed. Distributions which want to retain
6aa8d43a
LP
12735 compatibility with this should carry the burden for
12736 supporting this themselves and patch support for these back
12737 in, if they really need to. Also, the facilities $syslog and
12738 $local_fs are now ignored, since systemd does not support
12739 early-boot LSB init scripts anymore, and these facilities
12740 are implied anyway for normal services. syslog.target has
12741 also been removed.
85d68397 12742
40e21da8 12743 * There are new bus calls on PID1's Manager object for
6aa8d43a 12744 cancelling jobs, and removing snapshot units. Previously,
85d68397
LP
12745 both calls were only available on the Job and Snapshot
12746 objects themselves.
12747
12748 * systemd-journal-gatewayd gained SSL support.
12749
12750 * The various "environment" files, such as /etc/locale.conf
12751 now support continuation lines with a backslash ("\") as
499b604b 12752 last character in the line, similarly in style (but different)
85d68397
LP
12753 to how this is supported in shells.
12754
12755 * For normal user processes the _SYSTEMD_USER_UNIT= field is
12756 now implicitly appended to every log entry logged. systemctl
12757 has been updated to filter by this field when operating on a
12758 user systemd instance.
12759
12760 * nspawn will now implicitly add the CAP_AUDIT_WRITE and
12761 CAP_AUDIT_CONTROL capabilities to the capabilities set for
12762 the container. This makes it easier to boot unmodified
12763 Fedora systems in a container, which however still requires
12764 audit=0 to be passed on the kernel command line. Auditing in
12765 kernel and userspace is unfortunately still too broken in
12766 context of containers, hence we recommend compiling it out
12767 of the kernel or using audit=0. Hopefully this will be fixed
12768 one day for good in the kernel.
12769
12770 * nspawn gained the new --bind= and --bind-ro= parameters to
12771 bind mount specific directories from the host into the
12772 container.
12773
40e21da8 12774 * nspawn will now mount its own devpts file system instance
6aa8d43a 12775 into the container, in order not to leak pty devices from
85d68397
LP
12776 the host into the container.
12777
12778 * systemd will now read the firmware boot time performance
6aa8d43a
LP
12779 information from the EFI variables, if the used boot loader
12780 supports this, and takes it into account for boot performance
12781 analysis via "systemd-analyze". This is currently supported
12782 only in conjunction with Gummiboot, but could be supported
12783 by other boot loaders too. For details see:
85d68397 12784
a794a4d8 12785 https://systemd.io/BOOT_LOADER_INTERFACE
85d68397
LP
12786
12787 * A new generator has been added that automatically mounts the
12788 EFI System Partition (ESP) to /boot, if that directory
6aa8d43a
LP
12789 exists, is empty, and no other file system has been
12790 configured to be mounted there.
85d68397
LP
12791
12792 * logind will now send out PrepareForSleep(false) out
12793 unconditionally, after coming back from suspend. This may be
12794 used by applications as asynchronous notification for
12795 system resume events.
12796
12797 * "systemctl unlock-sessions" has been added, that allows
12798 unlocking the screens of all user sessions at once, similar
499b604b 12799 to how "systemctl lock-sessions" already locked all users
40e21da8 12800 sessions. This is backed by a new D-Bus call UnlockSessions().
85d68397
LP
12801
12802 * "loginctl seat-status" will now show the master device of a
12803 seat. (i.e. the device of a seat that needs to be around for
12804 the seat to be considered available, usually the graphics
12805 card).
12806
12807 * tmpfiles gained a new "X" line type, that allows
12808 configuration of files and directories (with wildcards) that
12809 shall be excluded from automatic cleanup ("aging").
12810
bf933560
KS
12811 * udev default rules set the device node permissions now only
12812 at "add" events, and do not change them any longer with a
12813 later "change" event.
85d68397
LP
12814
12815 * The log messages for lid events and power/sleep keypresses
12816 now carry a message ID.
12817
12818 * We now have a substantially larger unit test suite, but this
12819 continues to be work in progress.
12820
12821 * udevadm hwdb gained a new --root= parameter to change the
12822 root directory to operate relative to.
12823
40e21da8
KS
12824 * logind will now issue a background sync() request to the kernel
12825 early at shutdown, so that dirty buffers are flushed to disk early
85d68397
LP
12826 instead of at the last moment, in order to optimize shutdown
12827 times a little.
12828
12829 * A new bootctl tool has been added that is an interface for
12830 certain boot loader operations. This is currently a preview
12831 and is likely to be extended into a small mechanism daemon
12832 like timedated, localed, hostnamed, and can be used by
12833 graphical UIs to enumerate available boot options, and
12834 request boot into firmware operations.
12835
12836 * systemd-bootchart has been relicensed to LGPLv2.1+ to match
12837 the rest of the package. It also has been updated to work
12838 correctly in initrds.
12839
d35f51ea
ZJS
12840 * polkit previously has been runtime optional, and is now also
12841 compile time optional via a configure switch.
85d68397
LP
12842
12843 * systemd-analyze has been reimplemented in C. Also "systemctl
12844 dot" has moved into systemd-analyze.
12845
12846 * "systemctl status" with no further parameters will now print
12847 the status of all active or failed units.
12848
12849 * Operations such as "systemctl start" can now be executed
12850 with a new mode "--irreversible" which may be used to queue
12851 operations that cannot accidentally be reversed by a later
6aa8d43a 12852 job queuing. This is by default used to make shutdown
85d68397
LP
12853 requests more robust.
12854
12855 * The Python API of systemd now gained a new module for
12856 reading journal files.
12857
12858 * A new tool kernel-install has been added that can install
12859 kernel images according to the Boot Loader Specification:
12860
a794a4d8 12861 https://systemd.io/BOOT_LOADER_SPECIFICATION
85d68397
LP
12862
12863 * Boot time console output has been improved to provide
6aa8d43a 12864 animated boot time output for hanging jobs.
85d68397
LP
12865
12866 * A new tool systemd-activate has been added which can be used
12867 to test socket activation with, directly from the command
12868 line. This should make it much easier to test and debug
12869 socket activation in daemons.
12870
12871 * journalctl gained a new "--reverse" (or -r) option to show
12872 journal output in reverse order (i.e. newest line first).
12873
43447fb7
LP
12874 * journalctl gained a new "--pager-end" (or -e) option to jump
12875 to immediately jump to the end of the journal in the
12876 pager. This is only supported in conjunction with "less".
12877
85d68397 12878 * journalctl gained a new "--user-unit=" option, that works
499b604b 12879 similarly to "--unit=" but filters for user units rather than
85d68397
LP
12880 system units.
12881
12882 * A number of unit files to ease adoption of systemd in
12883 initrds has been added. This moves some minimal logic from
12884 the various initrd implementations into systemd proper.
12885
12886 * The journal files are now owned by a new group
12887 "systemd-journal", which exists specifically to allow access
12888 to the journal, and nothing else. Previously, we used the
6aa8d43a 12889 "adm" group for that, which however possibly covers more
85d68397
LP
12890 than just journal/log file access. This new group is now
12891 already used by systemd-journal-gatewayd to ensure this
12892 daemon gets access to the journal files and as little else
12893 as possible. Note that "make install" will also set FS ACLs
12894 up for /var/log/journal to give "adm" and "wheel" read
12895 access to it, in addition to "systemd-journal" which owns
12896 the journal files. We recommend that packaging scripts also
6aa8d43a 12897 add read access to "adm" + "wheel" to /var/log/journal, and
85d68397
LP
12898 all existing/future journal files. To normal users and
12899 administrators little changes, however packagers need to
12900 ensure to create the "systemd-journal" system group at
12901 package installation time.
12902
12903 * The systemd-journal-gatewayd now runs as unprivileged user
12904 systemd-journal-gateway:systemd-journal-gateway. Packaging
12905 scripts need to create these system user/group at
12906 installation time.
12907
12908 * timedated now exposes a new boolean property CanNTP that
12909 indicates whether a local NTP service is available or not.
12910
12911 * systemd-detect-virt will now also detect xen PVs
12912
40e21da8
KS
12913 * The pstore file system is now mounted by default, if it is
12914 available.
85d68397 12915
1aed4590
LP
12916 * In addition to the SELinux and IMA policies we will now also
12917 load SMACK policies at early boot.
12918
85d68397
LP
12919 Contributions from: Adel Gadllah, Aleksander Morgado, Auke
12920 Kok, Ayan George, Bastien Nocera, Colin Walters, Daniel Buch,
12921 Daniel Wallace, Dave Reisner, David Herrmann, David Strauss,
12922 Eelco Dolstra, Enrico Scholz, Frederic Crozat, Harald Hoyer,
12923 Jan Janssen, Jonathan Callen, Kay Sievers, Lennart Poettering,
12924 Lukas Nykryn, Mantas Mikulėnas, Marc-Antoine Perennou, Martin
12925 Pitt, Mauro Dreissig, Max F. Albrecht, Michael Biebl, Michael
12926 Olbrich, Michal Schmidt, Michal Sekletar, Michal Vyskocil,
12927 Michał Bartoszkiewicz, Mirco Tischler, Nathaniel Chen, Nestor
12928 Ovroy, Oleksii Shevchuk, Paul W. Frields, Piotr Drąg, Rob
12929 Clark, Ryan Lortie, Simon McVittie, Simon Peeters, Steven
12930 Hiscocks, Thomas Hindoe Paaboel Andersen, Tollef Fog Heen, Tom
12931 Gundersen, Umut Tezduyar, William Giokas, Zbigniew
12932 Jędrzejewski-Szmek, Zeeshan Ali (Khattak)
12933
8ad26859
LP
12934CHANGES WITH 197:
12935
12936 * Timer units now support calendar time events in addition to
12937 monotonic time events. That means you can now trigger a unit
12938 based on a calendar time specification such as "Thu,Fri
12939 2013-*-1,5 11:12:13" which refers to 11:12:13 of the first
12940 or fifth day of any month of the year 2013, given that it is
c3fb1e43 12941 a Thursday or a Friday. This brings timer event support
8ad26859
LP
12942 considerably closer to cron's capabilities. For details on
12943 the supported calendar time specification language see
12944 systemd.time(7).
12945
12946 * udev now supports a number of different naming policies for
12947 network interfaces for predictable names, and a combination
12948 of these policies is now the default. Please see this wiki
12949 document for details:
12950
a794a4d8 12951 https://www.freedesktop.org/software/systemd/man/systemd.net-naming-scheme.html
8ad26859
LP
12952
12953 * Auke Kok's bootchart implementation has been added to the
d28315e4
JE
12954 systemd tree. It is an optional component that can graph the
12955 boot in quite some detail. It is one of the best bootchart
8ad26859
LP
12956 implementations around and minimal in its code and
12957 dependencies.
12958
12959 * nss-myhostname has been integrated into the systemd source
12960 tree. nss-myhostname guarantees that the local hostname
12961 always stays resolvable via NSS. It has been a weak
12962 requirement of systemd-hostnamed since a long time, and
12963 since its code is actually trivial we decided to just
12964 include it in systemd's source tree. It can be turned off
12965 with a configure switch.
12966
12967 * The read-ahead logic is now capable of properly detecting
12968 whether a btrfs file system is on SSD or rotating media, in
12969 order to optimize the read-ahead scheme. Previously, it was
12970 only capable of detecting this on traditional file systems
12971 such as ext4.
12972
12973 * In udev, additional device properties are now read from the
12974 IAB in addition to the OUI database. Also, Bluetooth company
12975 identities are attached to the devices as well.
12976
12977 * In service files %U may be used as specifier that is
12978 replaced by the configured user name of the service.
12979
12980 * nspawn may now be invoked without a controlling TTY. This
12981 makes it suitable for invocation as its own service. This
12982 may be used to set up a simple containerized server system
12983 using only core OS tools.
12984
12985 * systemd and nspawn can now accept socket file descriptors
12986 when they are started for socket activation. This enables
12987 implementation of socket activated nspawn
12988 containers. i.e. think about autospawning an entire OS image
12989 when the first SSH or HTTP connection is received. We expect
12990 that similar functionality will also be added to libvirt-lxc
12991 eventually.
12992
12993 * journalctl will now suppress ANSI color codes when
12994 presenting log data.
12995
12996 * systemctl will no longer show control group information for
ce830873 12997 a unit if the control group is empty anyway.
8ad26859
LP
12998
12999 * logind can now automatically suspend/hibernate/shutdown the
13000 system on idle.
13001
13002 * /etc/machine-info and hostnamed now also expose the chassis
13003 type of the system. This can be used to determine whether
13004 the local system is a laptop, desktop, handset or
13005 tablet. This information may either be configured by the
13006 user/vendor or is automatically determined from ACPI and DMI
13007 information if possible.
13008
d35f51ea
ZJS
13009 * A number of polkit actions are now bound together with "imply"
13010 rules. This should simplify creating UIs because many actions
13011 will now authenticate similar ones as well.
8ad26859
LP
13012
13013 * Unit files learnt a new condition ConditionACPower= which
13014 may be used to conditionalize a unit depending on whether an
13015 AC power source is connected or not, of whether the system
13016 is running on battery power.
13017
13018 * systemctl gained a new "is-failed" verb that may be used in
13019 shell scripts and suchlike to check whether a specific unit
13020 is in the "failed" state.
13021
13022 * The EnvironmentFile= setting in unit files now supports file
13023 globbing, and can hence be used to easily read a number of
13024 environment files at once.
13025
13026 * systemd will no longer detect and recognize specific
13027 distributions. All distribution-specific #ifdeffery has been
13028 removed, systemd is now fully generic and
13029 distribution-agnostic. Effectively, not too much is lost as
13030 a lot of the code is still accessible via explicit configure
13031 switches. However, support for some distribution specific
13032 legacy configuration file formats has been dropped. We
13033 recommend distributions to simply adopt the configuration
13034 files everybody else uses now and convert the old
13035 configuration from packaging scripts. Most distributions
13036 already did that. If that's not possible or desirable,
13037 distributions are welcome to forward port the specific
13038 pieces of code locally from the git history.
13039
13040 * When logging a message about a unit systemd will now always
13041 log the unit name in the message meta data.
13042
13043 * localectl will now also discover system locale data that is
13044 not stored in locale archives, but directly unpacked.
13045
13046 * logind will no longer unconditionally use framebuffer
13047 devices as seat masters, i.e. as devices that are required
13048 to be existing before a seat is considered preset. Instead,
13049 it will now look for all devices that are tagged as
b938cb90
JE
13050 "seat-master" in udev. By default, framebuffer devices will
13051 be marked as such, but depending on local systems, other
8ad26859
LP
13052 devices might be marked as well. This may be used to
13053 integrate graphics cards using closed source drivers (such
13054 as NVidia ones) more nicely into logind. Note however, that
13055 we recommend using the open source NVidia drivers instead,
13056 and no udev rules for the closed-source drivers will be
13057 shipped from us upstream.
13058
13059 Contributions from: Adam Williamson, Alessandro Crismani, Auke
13060 Kok, Colin Walters, Daniel Wallace, Dave Reisner, David
13061 Herrmann, David Strauss, Dimitrios Apostolou, Eelco Dolstra,
13062 Eric Benoit, Giovanni Campagna, Hannes Reinecke, Henrik
13063 Grindal Bakken, Hermann Gausterer, Kay Sievers, Lennart
13064 Poettering, Lukas Nykryn, Mantas Mikulėnas, Marcel Holtmann,
13065 Martin Pitt, Matthew Monaco, Michael Biebl, Michael Terry,
13066 Michal Schmidt, Michal Sekletar, Michał Bartoszkiewicz, Oleg
13067 Samarin, Pekka Lundstrom, Philip Nilsson, Ramkumar
13068 Ramachandra, Richard Yao, Robert Millan, Sami Kerola, Shawn
13069 Landden, Thomas Hindoe Paaboel Andersen, Thomas Jarosch,
13070 Tollef Fog Heen, Tom Gundersen, Umut Tezduyar, Zbigniew
13071 Jędrzejewski-Szmek
13072
0428ddb7
LP
13073CHANGES WITH 196:
13074
13075 * udev gained support for loading additional device properties
13076 from an indexed database that is keyed by vendor/product IDs
13077 and similar device identifiers. For the beginning this
13078 "hwdb" is populated with data from the well-known PCI and
13079 USB database, but also includes PNP, ACPI and OID data. In
13080 the longer run this indexed database shall grow into
13081 becoming the one central database for non-essential
13082 userspace device metadata. Previously, data from the PCI/USB
96ec33c0 13083 database was only attached to select devices, since the
0428ddb7 13084 lookup was a relatively expensive operation due to O(n) time
96ec33c0
LP
13085 complexity (with n being the number of entries in the
13086 database). Since this is now O(1), we decided to add in this
13087 data for all devices where this is available, by
0428ddb7
LP
13088 default. Note that the indexed database needs to be rebuilt
13089 when new data files are installed. To achieve this you need
13090 to update your packaging scripts to invoke "udevadm hwdb
13091 --update" after installation of hwdb data files. For
13092 RPM-based distributions we introduced the new
13093 %udev_hwdb_update macro for this purpose.
13094
13095 * The Journal gained support for the "Message Catalog", an
13096 indexed database to link up additional information with
13097 journal entries. For further details please check:
13098
56cadcb6 13099 https://www.freedesktop.org/wiki/Software/systemd/catalog
0428ddb7
LP
13100
13101 The indexed message catalog database also needs to be
13102 rebuilt after installation of message catalog files. Use
13103 "journalctl --update-catalog" for this. For RPM-based
13104 distributions we introduced the %journal_catalog_update
13105 macro for this purpose.
13106
13107 * The Python Journal bindings gained support for the standard
13108 Python logging framework.
13109
13110 * The Journal API gained new functions for checking whether
13111 the underlying file system of a journal file is capable of
13112 properly reporting file change notifications, or whether
13113 applications that want to reflect journal changes "live"
ab06eef8 13114 need to recheck journal files continuously in appropriate
0428ddb7
LP
13115 time intervals.
13116
13117 * It is now possible to set the "age" field for tmpfiles
13118 entries to 0, indicating that files matching this entry
13119 shall always be removed when the directories are cleaned up.
13120
13121 * coredumpctl gained a new "gdb" verb which invokes gdb
13122 right-away on the selected coredump.
13123
13124 * There's now support for "hybrid sleep" on kernels that
13125 support this, in addition to "suspend" and "hibernate". Use
13126 "systemctl hybrid-sleep" to make use of this.
13127
13128 * logind's HandleSuspendKey= setting (and related settings)
13129 now gained support for a new "lock" setting to simply
13130 request the screen lock on all local sessions, instead of
13131 actually executing a suspend or hibernation.
13132
13133 * systemd will now mount the EFI variables file system by
13134 default.
13135
13136 * Socket units now gained support for configuration of the
13137 SMACK security label.
13138
13139 * timedatectl will now output the time of the last and next
13140 daylight saving change.
13141
13142 * We dropped support for various legacy and distro-specific
13143 concepts, such as insserv, early-boot SysV services
13144 (i.e. those for non-standard runlevels such as 'b' or 'S')
13145 or ArchLinux /etc/rc.conf support. We recommend the
13146 distributions who still need support this to either continue
13147 to maintain the necessary patches downstream, or find a
13148 different solution. (Talk to us if you have questions!)
13149
d35f51ea
ZJS
13150 * Various systemd components will now bypass polkit checks for
13151 root and otherwise handle properly if polkit is not found to
13152 be around. This should fix most issues for polkit-less
13153 systems. Quite frankly this should have been this way since
13154 day one. It is absolutely our intention to make systemd work
13155 fine on polkit-less systems, and we consider it a bug if
13156 something does not work as it should if polkit is not around.
0428ddb7
LP
13157
13158 * For embedded systems it is now possible to build udev and
13159 systemd without blkid and/or kmod support.
13160
13161 * "systemctl switch-root" is now capable of switching root
13162 more than once. I.e. in addition to transitions from the
13163 initrd to the host OS it is now possible to transition to
13164 further OS images from the host. This is useful to implement
13165 offline updating tools.
13166
13167 * Various other additions have been made to the RPM macros
13168 shipped with systemd. Use %udev_rules_update() after
13169 installing new udev rules files. %_udevhwdbdir,
13170 %_udevrulesdir, %_journalcatalogdir, %_tmpfilesdir,
13171 %_sysctldir are now available which resolve to the right
13172 directories for packages to place various data files in.
13173
13174 * journalctl gained the new --full switch (in addition to
13175 --all, to disable ellipsation for long messages.
13176
13177 Contributions from: Anders Olofsson, Auke Kok, Ben Boeckel,
13178 Colin Walters, Cosimo Cecchi, Daniel Wallace, Dave Reisner,
13179 Eelco Dolstra, Holger Hans Peter Freyther, Kay Sievers,
13180 Chun-Yi Lee, Lekensteyn, Lennart Poettering, Mantas Mikulėnas,
13181 Marti Raudsepp, Martin Pitt, Mauro Dreissig, Michael Biebl,
13182 Michal Schmidt, Michal Sekletar, Miklos Vajna, Nis Martensen,
13183 Oleksii Shevchuk, Olivier Brunel, Ramkumar Ramachandra, Thomas
13184 Bächler, Thomas Hindoe Paaboel Andersen, Tom Gundersen, Tony
13185 Camuso, Umut Tezduyar, Zbigniew Jędrzejewski-Szmek
13186
139ee8cc
LP
13187CHANGES WITH 195:
13188
6827101a 13189 * journalctl gained new --since= and --until= switches to
139ee8cc
LP
13190 filter by time. It also now supports nice filtering for
13191 units via --unit=/-u.
13192
6827101a 13193 * Type=oneshot services may use ExecReload= and do the
139ee8cc
LP
13194 right thing.
13195
13196 * The journal daemon now supports time-based rotation and
13197 vacuuming, in addition to the usual disk-space based
13198 rotation.
13199
13200 * The journal will now index the available field values for
13201 each field name. This enables clients to show pretty drop
13202 downs of available match values when filtering. The bash
13203 completion of journalctl has been updated
13204 accordingly. journalctl gained a new switch -F to list all
13205 values a certain field takes in the journal database.
13206
13207 * More service events are now written as structured messages
13208 to the journal, and made recognizable via message IDs.
13209
13210 * The timedated, localed and hostnamed mini-services which
13211 previously only provided support for changing time, locale
13212 and hostname settings from graphical DEs such as GNOME now
13213 also have a minimal (but very useful) text-based client
13214 utility each. This is probably the nicest way to changing
13215 these settings from the command line now, especially since
13216 it lists available options and is fully integrated with bash
13217 completion.
13218
13219 * There's now a new tool "systemd-coredumpctl" to list and
13220 extract coredumps from the journal.
13221
13222 * We now install a README each in /var/log/ and
13223 /etc/rc.d/init.d explaining where the system logs and init
13224 scripts went. This hopefully should help folks who go to
13225 that dirs and look into the otherwise now empty void and
13226 scratch their heads.
13227
13228 * When user-services are invoked (by systemd --user) the
13229 $MANAGERPID env var is set to the PID of systemd.
13230
13231 * SIGRTMIN+24 when sent to a --user instance will now result
13232 in immediate termination of systemd.
13233
13234 * gatewayd received numerous feature additions such as a
13235 "follow" mode, for live syncing and filtering.
13236
13237 * browse.html now allows filtering and showing detailed
13238 information on specific entries. Keyboard navigation and
13239 mouse screen support has been added.
13240
13241 * gatewayd/journalctl now supports HTML5/JSON
13242 Server-Sent-Events as output.
13243
1cb88f2c 13244 * The SysV init script compatibility logic will now
139ee8cc
LP
13245 heuristically determine whether a script supports the
13246 "reload" verb, and only then make this available as
13247 "systemctl reload".
13248
15f47220 13249 * "systemctl status --follow" has been removed, use "journalctl
139ee8cc
LP
13250 -u" instead.
13251
13252 * journald.conf's RuntimeMinSize=, PersistentMinSize= settings
13253 have been removed since they are hardly useful to be
13254 configured.
13255
13256 * And I'd like to take the opportunity to specifically mention
13257 Zbigniew for his great contributions. Zbigniew, you rock!
13258
13259 Contributions from: Andrew Eikum, Christian Hesse, Colin
13260 Guthrie, Daniel J Walsh, Dave Reisner, Eelco Dolstra, Ferenc
4d92e078
LP
13261 Wágner, Kay Sievers, Lennart Poettering, Lukas Nykryn, Mantas
13262 Mikulėnas, Martin Mikkelsen, Martin Pitt, Michael Olbrich,
13263 Michael Stapelberg, Michal Schmidt, Sebastian Ott, Thomas
13264 Bächler, Umut Tezduyar, Will Woods, Wulf C. Krueger, Zbigniew
13265 Jędrzejewski-Szmek, Сковорода Никита Андреевич
139ee8cc 13266
f9b55720
LP
13267CHANGES WITH 194:
13268
13269 * If /etc/vconsole.conf is non-existent or empty we will no
13270 longer load any console font or key map at boot by
13271 default. Instead the kernel defaults will be left
13272 intact. This is definitely the right thing to do, as no
13273 configuration should mean no configuration, and hard-coding
13274 font names that are different on all archs is probably a bad
13275 idea. Also, the kernel default key map and font should be
13276 good enough for most cases anyway, and mostly identical to
13277 the userspace fonts/key maps we previously overloaded them
13278 with. If distributions want to continue to default to a
13279 non-kernel font or key map they should ship a default
13280 /etc/vconsole.conf with the appropriate contents.
13281
13282 Contributions from: Colin Walters, Daniel J Walsh, Dave
13283 Reisner, Kay Sievers, Lennart Poettering, Lukas Nykryn, Tollef
13284 Fog Heen, Tom Gundersen, Zbigniew Jędrzejewski-Szmek
13285
597c52cf
LP
13286CHANGES WITH 193:
13287
13288 * journalctl gained a new --cursor= switch to show entries
13289 starting from the specified location in the journal.
13290
13291 * We now enforce a size limit on journal entry fields exported
13292 with "-o json" in journalctl. Fields larger than 4K will be
13293 assigned null. This can be turned off with --all.
13294
13295 * An (optional) journal gateway daemon is now available as
13296 "systemd-journal-gatewayd.service". This service provides
13297 access to the journal via HTTP and JSON. This functionality
13298 will be used to implement live log synchronization in both
13299 pull and push modes, but has various other users too, such
13300 as easy log access for debugging of embedded devices. Right
13301 now it is already useful to retrieve the journal via HTTP:
13302
13303 # systemctl start systemd-journal-gatewayd.service
13304 # wget http://localhost:19531/entries
13305
13306 This will download the journal contents in a
13307 /var/log/messages compatible format. The same as JSON:
13308
13309 # curl -H"Accept: application/json" http://localhost:19531/entries
13310
13311 This service is also accessible via a web browser where a
13312 single static HTML5 app is served that uses the JSON logic
13313 to enable the user to do some basic browsing of the
13314 journal. This will be extended later on. Here's an example
13315 screenshot of this app in its current state:
13316
13317 http://0pointer.de/public/journal-gatewayd
13318
13319 Contributions from: Kay Sievers, Lennart Poettering, Robert
13320 Milasan, Tom Gundersen
13321
075d4ecb
LP
13322CHANGES WITH 192:
13323
13324 * The bash completion logic is now available for journalctl
13325 too.
13326
d28315e4 13327 * We do not mount the "cpuset" controller anymore together with
075d4ecb
LP
13328 "cpu" and "cpuacct", as "cpuset" groups generally cannot be
13329 started if no parameters are assigned to it. "cpuset" hence
61233823 13330 broke code that assumed it could create "cpu" groups and
075d4ecb
LP
13331 just start them.
13332
13333 * journalctl -f will now subscribe to terminal size changes,
13334 and line break accordingly.
13335
597c52cf
LP
13336 Contributions from: Dave Reisner, Kay Sievers, Lennart
13337 Poettering, Lukas Nykrynm, Mirco Tischler, Václav Pavlín
075d4ecb 13338
b6a86739
LP
13339CHANGES WITH 191:
13340
13341 * nspawn will now create a symlink /etc/localtime in the
13342 container environment, copying the host's timezone
13343 setting. Previously this has been done via a bind mount, but
13344 since symlinks cannot be bind mounted this has now been
13345 changed to create/update the appropriate symlink.
13346
13347 * journalctl -n's line number argument is now optional, and
13348 will default to 10 if omitted.
13349
13350 * journald will now log the maximum size the journal files may
13351 take up on disk. This is particularly useful if the default
13352 built-in logic of determining this parameter from the file
13353 system size is used. Use "systemctl status
6563b535 13354 systemd-journald.service" to see this information.
b6a86739
LP
13355
13356 * The multi-seat X wrapper tool has been stripped down. As X
13357 is now capable of enumerating graphics devices via udev in a
13358 seat-aware way the wrapper is not strictly necessary
13359 anymore. A stripped down temporary stop-gap is still shipped
13360 until the upstream display managers have been updated to
13361 fully support the new X logic. Expect this wrapper to be
6563b535 13362 removed entirely in one of the next releases.
b6a86739
LP
13363
13364 * HandleSleepKey= in logind.conf has been split up into
13365 HandleSuspendKey= and HandleHibernateKey=. The old setting
6563b535 13366 is not available anymore. X11 and the kernel are
45afd519 13367 distinguishing between these keys and we should too. This
b6a86739
LP
13368 also means the inhibition lock for these keys has been split
13369 into two.
13370
597c52cf
LP
13371 Contributions from: Dave Airlie, Eelco Dolstra, Lennart
13372 Poettering, Lukas Nykryn, Václav Pavlín
b6a86739 13373
0c11f949
LP
13374CHANGES WITH 190:
13375
d28315e4 13376 * Whenever a unit changes state we will now log this to the
0c11f949
LP
13377 journal and show along the unit's own log output in
13378 "systemctl status".
13379
13380 * ConditionPathIsMountPoint= can now properly detect bind
13381 mount points too. (Previously, a bind mount of one file
8d0256b7 13382 system to another place in the same file system could not be
0c11f949
LP
13383 detected as mount, since they shared struct stat's st_dev
13384 field.)
13385
13386 * We will now mount the cgroup controllers cpu, cpuacct,
13387 cpuset and the controllers net_cls, net_prio together by
13388 default.
13389
13390 * nspawn containers will now have a virtualized boot
13391 ID. (i.e. /proc/sys/kernel/random/boot_id is now mounted
13392 over with a randomized ID at container initialization). This
13393 has the effect of making "journalctl -b" do the right thing
13394 in a container.
13395
13396 * The JSON output journal serialization has been updated not
13397 to generate "endless" list objects anymore, but rather one
13398 JSON object per line. This is more in line how most JSON
13399 parsers expect JSON objects. The new output mode
13400 "json-pretty" has been added to provide similar output, but
13401 neatly aligned for readability by humans.
13402
13403 * We dropped all explicit sync() invocations in the shutdown
13404 code. The kernel does this implicitly anyway in the kernel
13405 reboot() syscall. halt(8)'s -n option is now a compatibility
13406 no-op.
13407
13408 * We now support virtualized reboot() in containers, as
13409 supported by newer kernels. We will fall back to exit() if
13410 CAP_SYS_REBOOT is not available to the container. Also,
13411 nspawn makes use of this now and will actually reboot the
13412 container if the containerized OS asks for that.
13413
13414 * journalctl will only show local log output by default
13415 now. Use --merge (-m) to show remote log output, too.
13416
13417 * libsystemd-journal gained the new sd_journal_get_usage()
13418 call to determine the current disk usage of all journal
13419 files. This is exposed in the new "journalctl --disk-usage"
13420 command.
13421
13422 * journald gained a new configuration setting SplitMode= in
13423 journald.conf which may be used to control how user journals
13424 are split off. See journald.conf(5) for details.
13425
13426 * A new condition type ConditionFileNotEmpty= has been added.
13427
13428 * tmpfiles' "w" lines now support file globbing, to write
13429 multiple files at once.
13430
13431 * We added Python bindings for the journal submission
13432 APIs. More Python APIs for a number of selected APIs will
13433 likely follow. Note that we intend to add native bindings
13434 only for the Python language, as we consider it common
13435 enough to deserve bindings shipped within systemd. There are
13436 various projects outside of systemd that provide bindings
13437 for languages such as PHP or Lua.
13438
a98d5d64
LP
13439 * Many conditions will now resolve specifiers such as %i. In
13440 addition, PathChanged= and related directives of .path units
13441 now support specifiers as well.
0c11f949
LP
13442
13443 * There's now a new RPM macro definition for the system preset
13444 dir: %_presetdir.
13445
d28315e4 13446 * journald will now warn if it ca not forward a message to the
dca348bc 13447 syslog daemon because its socket is full.
0c11f949
LP
13448
13449 * timedated will no longer write or process /etc/timezone,
13450 except on Debian. As we do not support late mounted /usr
13451 anymore /etc/localtime always being a symlink is now safe,
13452 and hence the information in /etc/timezone is not necessary
13453 anymore.
13454
aaccc32c 13455 * logind will now always reserve one VT for a text getty (VT6
0c11f949
LP
13456 by default). Previously if more than 6 X sessions where
13457 started they took up all the VTs with auto-spawned gettys,
13458 so that no text gettys were available anymore.
13459
13460 * udev will now automatically inform the btrfs kernel logic
13461 about btrfs RAID components showing up. This should make
13462 simple hotplug based btrfs RAID assembly work.
13463
13464 * PID 1 will now increase its RLIMIT_NOFILE to 64K by default
13465 (but not for its children which will stay at the kernel
13466 default). This should allow setups with a lot more listening
13467 sockets.
13468
13469 * systemd will now always pass the configured timezone to the
13470 kernel at boot. timedated will do the same when the timezone
13471 is changed.
13472
13473 * logind's inhibition logic has been updated. By default,
13474 logind will now handle the lid switch, the power and sleep
13475 keys all the time, even in graphical sessions. If DEs want
13476 to handle these events on their own they should take the new
13477 handle-power-key, handle-sleep-key and handle-lid-switch
f131770b 13478 inhibitors during their runtime. A simple way to achieve
0c11f949
LP
13479 that is to invoke the DE wrapped in an invocation of:
13480
1d3a473b 13481 systemd-inhibit --what=handle-power-key:handle-sleep-key:handle-lid-switch …
0c11f949
LP
13482
13483 * Access to unit operations is now checked via SELinux taking
13484 the unit file label and client process label into account.
13485
aad803af
LP
13486 * systemd will now notify the administrator in the journal
13487 when he over-mounts a non-empty directory.
13488
13489 * There are new specifiers that are resolved in unit files,
38b38500 13490 for the hostname (%H), the machine ID (%m) and the boot ID
aad803af
LP
13491 (%b).
13492
b6a86739 13493 Contributions from: Allin Cottrell, Auke Kok, Brandon Philips,
0c11f949
LP
13494 Colin Guthrie, Colin Walters, Daniel J Walsh, Dave Reisner,
13495 Eelco Dolstra, Jan Engelhardt, Kay Sievers, Lennart
13496 Poettering, Lucas De Marchi, Lukas Nykryn, Mantas Mikulėnas,
13497 Martin Pitt, Matthias Clasen, Michael Olbrich, Pierre Schmitz,
13498 Shawn Landden, Thomas Hindoe Paaboel Andersen, Tom Gundersen,
13499 Václav Pavlín, Yin Kangkai, Zbigniew Jędrzejewski-Szmek
13500
38a60d71
LP
13501CHANGES WITH 189:
13502
13503 * Support for reading structured kernel messages from
13504 /dev/kmsg has now been added and is enabled by default.
13505
13506 * Support for reading kernel messages from /proc/kmsg has now
13507 been removed. If you want kernel messages in the journal
13508 make sure to run a recent kernel (>= 3.5) that supports
13509 reading structured messages from /dev/kmsg (see
13510 above). /proc/kmsg is now exclusive property of classic
13511 syslog daemons again.
13512
13513 * The libudev API gained the new
13514 udev_device_new_from_device_id() call.
13515
13516 * The logic for file system namespace (ReadOnlyDirectory=,
13517 ReadWriteDirectoy=, PrivateTmp=) has been reworked not to
13518 require pivot_root() anymore. This means fewer temporary
13519 directories are created below /tmp for this feature.
13520
13521 * nspawn containers will now see and receive all submounts
13522 made on the host OS below the root file system of the
13523 container.
13524
13525 * Forward Secure Sealing is now supported for Journal files,
13526 which provide cryptographical sealing of journal files so
13527 that attackers cannot alter log history anymore without this
13528 being detectable. Lennart will soon post a blog story about
13529 this explaining it in more detail.
13530
13531 * There are two new service settings RestartPreventExitStatus=
13532 and SuccessExitStatus= which allow configuration of exit
13533 status (exit code or signal) which will be excepted from the
13534 restart logic, resp. consider successful.
13535
13536 * journalctl gained the new --verify switch that can be used
13537 to check the integrity of the structure of journal files and
13538 (if Forward Secure Sealing is enabled) the contents of
13539 journal files.
13540
13541 * nspawn containers will now be run with /dev/stdin, /dev/fd/
13542 and similar symlinks pre-created. This makes running shells
13543 as container init process a lot more fun.
13544
13545 * The fstab support can now handle PARTUUID= and PARTLABEL=
13546 entries.
13547
13548 * A new ConditionHost= condition has been added to match
13549 against the hostname (with globs) and machine ID. This is
13550 useful for clusters where a single OS image is used to
13551 provision a large number of hosts which shall run slightly
13552 different sets of services.
13553
13554 * Services which hit the restart limit will now be placed in a
13555 failure state.
13556
b6a86739 13557 Contributions from: Bertram Poettering, Dave Reisner, Huang
38a60d71
LP
13558 Hang, Kay Sievers, Lennart Poettering, Lukas Nykryn, Martin
13559 Pitt, Simon Peeters, Zbigniew Jędrzejewski-Szmek
13560
c269cec3
LP
13561CHANGES WITH 188:
13562
13563 * When running in --user mode systemd will now become a
13564 subreaper (PR_SET_CHILD_SUBREAPER). This should make the ps
13565 tree a lot more organized.
13566
13567 * A new PartOf= unit dependency type has been introduced that
13568 may be used to group services in a natural way.
13569
13570 * "systemctl enable" may now be used to enable instances of
13571 services.
13572
13573 * journalctl now prints error log levels in red, and
13574 warning/notice log levels in bright white. It also supports
13575 filtering by log level now.
13576
13577 * cgtop gained a new -n switch (similar to top), to configure
13578 the maximum number of iterations to run for. It also gained
13579 -b, to run in batch mode (accepting no input).
13580
ab06eef8 13581 * The suffix ".service" may now be omitted on most systemctl
c269cec3
LP
13582 command lines involving service unit names.
13583
13584 * There's a new bus call in logind to lock all sessions, as
13585 well as a loginctl verb for it "lock-sessions".
13586
13587 * libsystemd-logind.so gained a new call sd_journal_perror()
13588 that works similar to libc perror() but logs to the journal
13589 and encodes structured information about the error number.
13590
13591 * /etc/crypttab entries now understand the new keyfile-size=
13592 option.
13593
13594 * shutdown(8) now can send a (configurable) wall message when
13595 a shutdown is cancelled.
13596
13597 * The mount propagation mode for the root file system will now
13598 default to "shared", which is useful to make containers work
13599 nicely out-of-the-box so that they receive new mounts from
13600 the host. This can be undone locally by running "mount
13601 --make-rprivate /" if needed.
13602
13603 * The prefdm.service file has been removed. Distributions
13604 should maintain this unit downstream if they intend to keep
13605 it around. However, we recommend writing normal unit files
13606 for display managers instead.
13607
13608 * Since systemd is a crucial part of the OS we will now
13609 default to a number of compiler switches that improve
13610 security (hardening) such as read-only relocations, stack
13611 protection, and suchlike.
13612
13613 * The TimeoutSec= setting for services is now split into
13614 TimeoutStartSec= and TimeoutStopSec= to allow configuration
13615 of individual time outs for the start and the stop phase of
13616 the service.
13617
13618 Contributions from: Artur Zaprzala, Arvydas Sidorenko, Auke
13619 Kok, Bryan Kadzban, Dave Reisner, David Strauss, Harald Hoyer,
13620 Jim Meyering, Kay Sievers, Lennart Poettering, Mantas
13621 Mikulėnas, Martin Pitt, Michal Schmidt, Michal Sekletar, Peter
13622 Alfredsen, Shawn Landden, Simon Peeters, Terence Honles, Tom
13623 Gundersen, Zbigniew Jędrzejewski-Szmek
13624
c4f1b862
LP
13625CHANGES WITH 187:
13626
13627 * The journal and id128 C APIs are now fully documented as man
13628 pages.
13629
13630 * Extra safety checks have been added when transitioning from
13631 the initial RAM disk to the main system to avoid accidental
13632 data loss.
13633
c269cec3 13634 * /etc/crypttab entries now understand the new keyfile-offset=
c4f1b862
LP
13635 option.
13636
13637 * systemctl -t can now be used to filter by unit load state.
13638
13639 * The journal C API gained the new sd_journal_wait() call to
13640 make writing synchronous journal clients easier.
13641
13642 * journalctl gained the new -D switch to show journals from a
13643 specific directory.
13644
13645 * journalctl now displays a special marker between log
13646 messages of two different boots.
13647
13648 * The journal is now explicitly flushed to /var via a service
13649 systemd-journal-flush.service, rather than implicitly simply
13650 by seeing /var/log/journal to be writable.
13651
13652 * journalctl (and the journal C APIs) can now match for much
13653 more complex expressions, with alternatives and
13654 disjunctions.
13655
13656 * When transitioning from the initial RAM disk to the main
13657 system we will now kill all processes in a killing spree to
13658 ensure no processes stay around by accident.
13659
13660 * Three new specifiers may be used in unit files: %u, %h, %s
13661 resolve to the user name, user home directory resp. user
13662 shell. This is useful for running systemd user instances.
13663
13664 * We now automatically rotate journal files if their data
13665 object hash table gets a fill level > 75%. We also size the
13666 hash table based on the configured maximum file size. This
13667 together should lower hash collisions drastically and thus
13668 speed things up a bit.
13669
13670 * journalctl gained the new "--header" switch to introspect
13671 header data of journal files.
13672
6b000af4
LP
13673 * A new setting SystemCallFilters= has been added to services which may
13674 be used to apply deny lists or allow lists to system calls. This is
13675 based on SECCOMP Mode 2 of Linux 3.5.
c4f1b862
LP
13676
13677 * nspawn gained a new --link-journal= switch (and quicker: -j)
13678 to link the container journal with the host. This makes it
13679 very easy to centralize log viewing on the host for all
13680 guests while still keeping the journal files separated.
13681
13682 * Many bugfixes and optimizations
13683
13684 Contributions from: Auke Kok, Eelco Dolstra, Harald Hoyer, Kay
13685 Sievers, Lennart Poettering, Malte Starostik, Paul Menzel, Rex
13686 Tsai, Shawn Landden, Tom Gundersen, Ville Skyttä, Zbigniew
13687 Jędrzejewski-Szmek
13688
b5b4c94a
LP
13689CHANGES WITH 186:
13690
13691 * Several tools now understand kernel command line arguments,
13692 which are only read when run in an initial RAM disk. They
13693 usually follow closely their normal counterparts, but are
13694 prefixed with rd.
13695
13696 * There's a new tool to analyze the readahead files that are
13697 automatically generated at boot. Use:
13698
13699 /usr/lib/systemd/systemd-readahead analyze /.readahead
13700
13701 * We now provide an early debug shell on tty9 if this enabled. Use:
13702
d1f9edaf 13703 systemctl enable debug-shell.service
b5b4c94a
LP
13704
13705 * All plymouth related units have been moved into the Plymouth
13706 package. Please make sure to upgrade your Plymouth version
13707 as well.
13708
13709 * systemd-tmpfiles now supports getting passed the basename of
13710 a configuration file only, in which case it will look for it
13711 in all appropriate directories automatically.
13712
13713 * udevadm info now takes a /dev or /sys path as argument, and
13714 does the right thing. Example:
13715
13716 udevadm info /dev/sda
13717 udevadm info /sys/class/block/sda
13718
13719 * systemctl now prints a warning if a unit is stopped but a
13720 unit that might trigger it continues to run. Example: a
13721 service is stopped but the socket that activates it is left
13722 running.
13723
13724 * "systemctl status" will now mention if the log output was
13725 shortened due to rotation since a service has been started.
13726
13727 * The journal API now exposes functions to determine the
13728 "cutoff" times due to rotation.
13729
13730 * journald now understands SIGUSR1 and SIGUSR2 for triggering
13731 immediately flushing of runtime logs to /var if possible,
13732 resp. for triggering immediate rotation of the journal
13733 files.
13734
13735 * It is now considered an error if a service is attempted to
13736 be stopped that is not loaded.
13737
13738 * XDG_RUNTIME_DIR now uses numeric UIDs instead of usernames.
13739
13740 * systemd-analyze now supports Python 3
13741
13742 * tmpfiles now supports cleaning up directories via aging
13743 where the first level dirs are always kept around but
13744 directories beneath it automatically aged. This is enabled
13745 by prefixing the age field with '~'.
13746
13747 * Seat objects now expose CanGraphical, CanTTY properties
13748 which is required to deal with very fast bootups where the
13749 display manager might be running before the graphics drivers
13750 completed initialization.
13751
13752 * Seat objects now expose a State property.
13753
13754 * We now include RPM macros for service enabling/disabling
13755 based on the preset logic. We recommend RPM based
13756 distributions to make use of these macros if possible. This
13757 makes it simpler to reuse RPM spec files across
13758 distributions.
13759
13760 * We now make sure that the collected systemd unit name is
13761 always valid when services log to the journal via
13762 STDOUT/STDERR.
13763
13764 * There's a new man page kernel-command-line(7) detailing all
13765 command line options we understand.
13766
13767 * The fstab generator may now be disabled at boot by passing
13768 fstab=0 on the kernel command line.
13769
91ac7425 13770 * A new kernel command line option modules-load= is now understood
b5b4c94a
LP
13771 to load a specific kernel module statically, early at boot.
13772
13773 * Unit names specified on the systemctl command line are now
13774 automatically escaped as needed. Also, if file system or
13775 device paths are specified they are automatically turned
13776 into the appropriate mount or device unit names. Example:
13777
13778 systemctl status /home
13779 systemctl status /dev/sda
13780
13781 * The SysVConsole= configuration option has been removed from
13782 system.conf parsing.
13783
13784 * The SysV search path is no longer exported on the D-Bus
13785 Manager object.
13786
ce830873 13787 * The Names= option has been removed from unit file parsing.
b5b4c94a
LP
13788
13789 * There's a new man page bootup(7) detailing the boot process.
13790
13791 * Every unit and every generator we ship with systemd now
13792 comes with full documentation. The self-explanatory boot is
13793 complete.
13794
13795 * A couple of services gained "systemd-" prefixes in their
13796 name if they wrap systemd code, rather than only external
13797 code. Among them fsck@.service which is now
13798 systemd-fsck@.service.
13799
13800 * The HaveWatchdog property has been removed from the D-Bus
13801 Manager object.
13802
13803 * systemd.confirm_spawn= on the kernel command line should now
13804 work sensibly.
13805
13806 * There's a new man page crypttab(5) which details all options
13807 we actually understand.
13808
13809 * systemd-nspawn gained a new --capability= switch to pass
13810 additional capabilities to the container.
13811
13812 * timedated will now read known NTP implementation unit names
5b00c016 13813 from /usr/lib/systemd/ntp-units.d/*.list,
b5b4c94a
LP
13814 systemd-timedated-ntp.target has been removed.
13815
13816 * journalctl gained a new switch "-b" that lists log data of
13817 the current boot only.
13818
13819 * The notify socket is in the abstract namespace again, in
13820 order to support daemons which chroot() at start-up.
13821
13822 * There is a new Storage= configuration option for journald
13823 which allows configuration of where log data should go. This
13824 also provides a way to disable journal logging entirely, so
13825 that data collected is only forwarded to the console, the
13826 kernel log buffer or another syslog implementation.
13827
c4f1b862 13828 * Many bugfixes and optimizations
b5b4c94a 13829
2d938ac7
LP
13830 Contributions from: Auke Kok, Colin Guthrie, Dave Reisner,
13831 David Strauss, Eelco Dolstra, Kay Sievers, Lennart Poettering,
13832 Lukas Nykryn, Michal Schmidt, Michal Sekletar, Paul Menzel,
13833 Shawn Landden, Tom Gundersen
b5b4c94a 13834
2d197285 13835CHANGES WITH 185:
b6a86739 13836
2d197285
KS
13837 * "systemctl help <unit>" now shows the man page if one is
13838 available.
13839
13840 * Several new man pages have been added.
13841
b5b4c94a
LP
13842 * MaxLevelStore=, MaxLevelSyslog=, MaxLevelKMsg=,
13843 MaxLevelConsole= can now be specified in
13844 journald.conf. These options allow reducing the amount of
13845 data stored on disk or forwarded by the log level.
2d197285 13846
b5b4c94a
LP
13847 * TimerSlackNSec= can now be specified in system.conf for
13848 PID1. This allows system-wide power savings.
2d197285
KS
13849
13850 Contributions from: Dave Reisner, Kay Sievers, Lauri Kasanen,
13851 Lennart Poettering, Malte Starostik, Marc-Antoine Perennou,
13852 Matthias Clasen
13853
4c8cd173 13854CHANGES WITH 184:
b6a86739 13855
4c8cd173
LP
13856 * logind is now capable of (optionally) handling power and
13857 sleep keys as well as the lid switch.
13858
13859 * journalctl now understands the syntax "journalctl
13860 /usr/bin/avahi-daemon" to get all log output of a specific
13861 daemon.
13862
13863 * CapabilityBoundingSet= in system.conf now also influences
13864 the capability bound set of usermode helpers of the kernel.
13865
13866 Contributions from: Daniel Drake, Daniel J. Walsh, Gert
13867 Michael Kulyk, Harald Hoyer, Jean Delvare, Kay Sievers,
13868 Lennart Poettering, Matthew Garrett, Matthias Clasen, Paul
13869 Menzel, Shawn Landden, Tero Roponen, Tom Gundersen
13870
ea5943d3 13871CHANGES WITH 183:
b6a86739 13872
187076d4
LP
13873 * Note that we skipped 139 releases here in order to set the
13874 new version to something that is greater than both udev's
13875 and systemd's most recent version number.
13876
194bbe33
KS
13877 * udev: all udev sources are merged into the systemd source tree now.
13878 All future udev development will happen in the systemd tree. It
13879 is still fully supported to use the udev daemon and tools without
13880 systemd running, like in initramfs or other init systems. Building
13881 udev though, will require the *build* of the systemd tree, but
ea5943d3 13882 udev can be properly *run* without systemd.
07cd4fc1 13883
91cf7e5c 13884 * udev: /lib/udev/devices/ are not read anymore; systemd-tmpfiles
f13b388f
KS
13885 should be used to create dead device nodes as workarounds for broken
13886 subsystems.
64661ee7 13887
1d3a473b 13888 * udev: RUN+="socket:…" and udev_monitor_new_from_socket() is
2d13da88
KS
13889 no longer supported. udev_monitor_new_from_netlink() needs to be
13890 used to subscribe to events.
13891
194bbe33
KS
13892 * udev: when udevd is started by systemd, processes which are left
13893 behind by forking them off of udev rules, are unconditionally cleaned
13894 up and killed now after the event handling has finished. Services or
13895 daemons must be started as systemd services. Services can be
ea5943d3 13896 pulled-in by udev to get started, but they can no longer be directly
194bbe33
KS
13897 forked by udev rules.
13898
f13b388f
KS
13899 * udev: the daemon binary is called systemd-udevd now and installed
13900 in /usr/lib/systemd/. Standalone builds or non-systemd systems need
13901 to adapt to that, create symlink, or rename the binary after building
13902 it.
13903
ea5943d3 13904 * libudev no longer provides these symbols:
c1959569
KS
13905 udev_monitor_from_socket()
13906 udev_queue_get_failed_list_entry()
13907 udev_get_{dev,sys,run}_path()
ea5943d3 13908 The versions number was bumped and symbol versioning introduced.
c1959569 13909
ea5943d3 13910 * systemd-loginctl and systemd-journalctl have been renamed
9ae9afce 13911 to loginctl and journalctl to match systemctl.
18b754d3
KS
13912
13913 * The config files: /etc/systemd/systemd-logind.conf and
13914 /etc/systemd/systemd-journald.conf have been renamed to
13915 logind.conf and journald.conf. Package updates should rename
13916 the files to the new names on upgrade.
13917
ea5943d3
LP
13918 * For almost all files the license is now LGPL2.1+, changed
13919 from the previous GPL2.0+. Exceptions are some minor stuff
13920 of udev (which will be changed to LGPL2.1 eventually, too),
13921 and the MIT licensed sd-daemon.[ch] library that is suitable
13922 to be used as drop-in files.
13923
13924 * systemd and logind now handle system sleep states, in
49f43d5f 13925 particular suspending and hibernating.
ea5943d3
LP
13926
13927 * logind now implements a sleep/shutdown/idle inhibiting logic
13928 suitable for a variety of uses. Soonishly Lennart will blog
13929 about this in more detail.
13930
13931 * var-run.mount and var-lock.mount are no longer provided
ce830873 13932 (which previously bind mounted these directories to their new
ea5943d3
LP
13933 places). Distributions which have not converted these
13934 directories to symlinks should consider stealing these files
13935 from git history and add them downstream.
13936
13937 * We introduced the Documentation= field for units and added
13938 this to all our shipped units. This is useful to make it
3943231c 13939 easier to explore the boot and the purpose of the various
ea5943d3
LP
13940 units.
13941
13942 * All smaller setup units (such as
13943 systemd-vconsole-setup.service) now detect properly if they
13944 are run in a container and are skipped when
13945 appropriate. This guarantees an entirely noise-free boot in
13946 Linux container environments such as systemd-nspawn.
13947
13948 * A framework for implementing offline system updates is now
13949 integrated, for details see:
a794a4d8 13950 https://www.freedesktop.org/software/systemd/man/systemd.offline-updates.html
ea5943d3
LP
13951
13952 * A new service type Type=idle is available now which helps us
13953 avoiding ugly interleaving of getty output and boot status
13954 messages.
13955
439d6dfd
LP
13956 * There's now a system-wide CapabilityBoundingSet= option to
13957 globally reduce the set of capabilities for the
ea5943d3
LP
13958 system. This is useful to drop CAP_SYS_MKNOD, CAP_SYS_RAWIO,
13959 CAP_NET_RAW, CAP_SYS_MODULE, CAP_SYS_TIME, CAP_SYS_PTRACE or
13960 even CAP_NET_ADMIN system-wide for secure systems.
13961
13962 * There are now system-wide DefaultLimitXXX= options to
13963 globally change the defaults of the various resource limits
13964 for all units started by PID 1.
13965
13966 * Harald Hoyer's systemd test suite has been integrated into
13967 systemd which allows easy testing of systemd builds in qemu
13968 and nspawn. (This is really awesome! Ask us for details!)
13969
3943231c
LP
13970 * The fstab parser is now implemented as generator, not inside
13971 of PID 1 anymore.
ea5943d3
LP
13972
13973 * systemctl will now warn you if .mount units generated from
13974 /etc/fstab are out of date due to changes in fstab that
d28315e4 13975 have not been read by systemd yet.
ea5943d3
LP
13976
13977 * systemd is now suitable for usage in initrds. Dracut has
13978 already been updated to make use of this. With this in place
13979 initrds get a slight bit faster but primarily are much
13980 easier to introspect and debug since "systemctl status" in
13981 the host system can be used to introspect initrd services,
13982 and the journal from the initrd is kept around too.
13983
13984 * systemd-delta has been added, a tool to explore differences
13985 between user/admin configuration and vendor defaults.
13986
13987 * PrivateTmp= now affects both /tmp and /var/tmp.
13988
13989 * Boot time status messages are now much prettier and feature
13990 proper english language. Booting up systemd has never been
13991 so sexy.
13992
13993 * Read-ahead pack files now include the inode number of all
13994 files to pre-cache. When the inode changes the pre-caching
13995 is not attempted. This should be nicer to deal with updated
13996 packages which might result in changes of read-ahead
13997 patterns.
13998
13999 * We now temporaritly lower the kernel's read_ahead_kb variable
14000 when collecting read-ahead data to ensure the kernel's
14001 built-in read-ahead does not add noise to our measurements
14002 of necessary blocks to pre-cache.
14003
14004 * There's now RequiresMountsFor= to add automatic dependencies
14005 for all mounts necessary for a specific file system path.
14006
14007 * MountAuto= and SwapAuto= have been removed from
14008 system.conf. Mounting file systems at boot has to take place
14009 in systemd now.
14010
14011 * nspawn now learned a new switch --uuid= to set the machine
14012 ID on the command line.
14013
f8c0a2cb 14014 * nspawn now learned the -b switch to automatically search
ea5943d3
LP
14015 for an init system.
14016
14017 * vt102 is now the default TERM for serial TTYs, upgraded from
14018 vt100.
14019
14020 * systemd-logind now works on VT-less systems.
14021
14022 * The build tree has been reorganized. The individual
3943231c 14023 components now have directories of their own.
ea5943d3
LP
14024
14025 * A new condition type ConditionPathIsReadWrite= is now available.
14026
14027 * nspawn learned the new -C switch to create cgroups for the
14028 container in other hierarchies.
14029
14030 * We now have support for hardware watchdogs, configurable in
14031 system.conf.
14032
14033 * The scheduled shutdown logic now has a public API.
14034
14035 * We now mount /tmp as tmpfs by default, but this can be
14036 masked and /etc/fstab can override it.
14037
d28315e4 14038 * Since udisks does not make use of /media anymore we are not
ea5943d3
LP
14039 mounting a tmpfs on it anymore.
14040
14041 * journalctl gained a new --local switch to only interleave
14042 locally generated journal files.
14043
14044 * We can now load the IMA policy at boot automatically.
14045
14046 * The GTK tools have been split off into a systemd-ui.
14047
79849bf9
LP
14048 Contributions from: Andreas Schwab, Auke Kok, Ayan George,
14049 Colin Guthrie, Daniel Mack, Dave Reisner, David Ward, Elan
14050 Ruusamäe, Frederic Crozat, Gergely Nagy, Guillermo Vidal,
14051 Hannes Reinecke, Harald Hoyer, Javier Jardón, Kay Sievers,
14052 Lennart Poettering, Lucas De Marchi, Léo Gillot-Lamure,
14053 Marc-Antoine Perennou, Martin Pitt, Matthew Monaco, Maxim
14054 A. Mikityanskiy, Michael Biebl, Michael Olbrich, Michal
14055 Schmidt, Nis Martensen, Patrick McCarty, Roberto Sassu, Shawn
14056 Landden, Sjoerd Simons, Sven Anders, Tollef Fog Heen, Tom
14057 Gundersen
14058
16f1239e 14059CHANGES WITH 44:
b6a86739 14060
16f1239e
LP
14061 * This is mostly a bugfix release
14062
14063 * Support optional initialization of the machine ID from the
14064 KVM or container configured UUID.
14065
14066 * Support immediate reboots with "systemctl reboot -ff"
14067
14068 * Show /etc/os-release data in systemd-analyze output
14069
ab06eef8 14070 * Many bugfixes for the journal, including endianness fixes and
16f1239e
LP
14071 ensuring that disk space enforcement works
14072
ce830873 14073 * sd-login.h is C++ compatible again
16f1239e
LP
14074
14075 * Extend the /etc/os-release format on request of the Debian
14076 folks
14077
14078 * We now refuse non-UTF8 strings used in various configuration
d28315e4 14079 and unit files. This is done to ensure we do not pass invalid
16f1239e
LP
14080 data over D-Bus or expose it elsewhere.
14081
14082 * Register Mimo USB Screens as suitable for automatic seat
14083 configuration
14084
14085 * Read SELinux client context from journal clients in a race
14086 free fashion
14087
14088 * Reorder configuration file lookup order. /etc now always
14089 overrides /run in order to allow the administrator to always
b938cb90 14090 and unconditionally override vendor-supplied or
16f1239e
LP
14091 automatically generated data.
14092
14093 * The various user visible bits of the journal now have man
14094 pages. We still lack man pages for the journal API calls
14095 however.
14096
14097 * We now ship all man pages in HTML format again in the
14098 tarball.
14099
14100 Contributions from: Dave Reisner, Dirk Eibach, Frederic
14101 Crozat, Harald Hoyer, Kay Sievers, Lennart Poettering, Marti
14102 Raudsepp, Michal Schmidt, Shawn Landden, Tero Roponen, Thierry
14103 Reding
14104
437b7dee 14105CHANGES WITH 43:
b6a86739 14106
437b7dee
LP
14107 * This is mostly a bugfix release
14108
14109 * systems lacking /etc/os-release are no longer supported.
14110
14111 * Various functionality updates to libsystemd-login.so
14112
45afd519 14113 * Track class of PAM logins to distinguish greeters from
437b7dee
LP
14114 normal user logins.
14115
14116 Contributions from: Kay Sievers, Lennart Poettering, Michael
14117 Biebl
14118
204fa33c 14119CHANGES WITH 42:
b6a86739 14120
204fa33c
LP
14121 * This is an important bugfix release for v41.
14122
14123 * Building man pages is now optional which should be useful
14124 for those building systemd from git but unwilling to install
14125 xsltproc.
14126
14127 * Watchdog support for supervising services is now usable. In
14128 a future release support for hardware watchdogs
14129 (i.e. /dev/watchdog) will be added building on this.
14130
14131 * Service start rate limiting is now configurable and can be
14132 turned off per service. When a start rate limit is hit a
14133 reboot can automatically be triggered.
14134
14135 * New CanReboot(), CanPowerOff() bus calls in systemd-logind.
14136
14137 Contributions from: Benjamin Franzke, Bill Nottingham,
14138 Frederic Crozat, Lennart Poettering, Michael Olbrich, Michal
14139 Schmidt, Michał Górny, Piotr Drąg
14140
e0d25329 14141CHANGES WITH 41:
b6a86739 14142
e0d25329
KS
14143 * The systemd binary is installed /usr/lib/systemd/systemd now;
14144 An existing /sbin/init symlink needs to be adapted with the
14145 package update.
14146
b13df964
LP
14147 * The code that loads kernel modules has been ported to invoke
14148 libkmod directly, instead of modprobe. This means we do not
14149 support systems with module-init-tools anymore.
14150
14151 * Watchdog support is now already useful, but still not
14152 complete.
14153
14154 * A new kernel command line option systemd.setenv= is
14155 understood to set system wide environment variables
14156 dynamically at boot.
14157
e9c1ea9d 14158 * We now limit the set of capabilities of systemd-journald.
ccd07a08 14159
353e12c2
LP
14160 * We now set SIGPIPE to ignore by default, since it only is
14161 useful in shell pipelines, and has little use in general
14162 code. This can be disabled with IgnoreSIPIPE=no in unit
14163 files.
14164
b13df964
LP
14165 Contributions from: Benjamin Franzke, Kay Sievers, Lennart
14166 Poettering, Michael Olbrich, Michal Schmidt, Tom Gundersen,
14167 William Douglas
14168
d26e4270 14169CHANGES WITH 40:
b6a86739 14170
d26e4270
LP
14171 * This is mostly a bugfix release
14172
14173 * We now expose the reason why a service failed in the
14174 "Result" D-Bus property.
14175
14176 * Rudimentary service watchdog support (will be completed over
14177 the next few releases.)
14178
14179 * When systemd forks off in order execute some service we will
14180 now immediately changes its argv[0] to reflect which process
14181 it will execute. This is useful to minimize the time window
14182 with a generic argv[0], which makes bootcharts more useful
14183
b13df964
LP
14184 Contributions from: Alvaro Soliverez, Chris Paulson-Ellis, Kay
14185 Sievers, Lennart Poettering, Michael Olbrich, Michal Schmidt,
14186 Mike Kazantsev, Ray Strode
14187
220a21d3 14188CHANGES WITH 39:
b6a86739 14189
220a21d3
LP
14190 * This is mostly a test release, but incorporates many
14191 bugfixes.
14192
14193 * New systemd-cgtop tool to show control groups by their
14194 resource usage.
14195
14196 * Linking against libacl for ACLs is optional again. If
14197 disabled, support tracking device access for active logins
14198 goes becomes unavailable, and so does access to the user
14199 journals by the respective users.
14200
14201 * If a group "adm" exists, journal files are automatically
14202 owned by them, thus allow members of this group full access
14203 to the system journal as well as all user journals.
14204
14205 * The journal now stores the SELinux context of the logging
14206 client for all entries.
14207
14208 * Add C++ inclusion guards to all public headers
14209
14210 * New output mode "cat" in the journal to print only text
14211 messages, without any meta data like date or time.
14212
14213 * Include tiny X server wrapper as a temporary stop-gap to
14214 teach XOrg udev display enumeration. This is used by display
14215 managers such as gdm, and will go away as soon as XOrg
14216 learned native udev hotplugging for display devices.
14217
14218 * Add new systemd-cat tool for executing arbitrary programs
14219 with STDERR/STDOUT connected to the journal. Can also act as
14220 BSD logger replacement, and does so by default.
14221
14222 * Optionally store all locally generated coredumps in the
14223 journal along with meta data.
14224
14225 * systemd-tmpfiles learnt four new commands: n, L, c, b, for
14226 writing short strings to files (for usage for /sys), and for
14227 creating symlinks, character and block device nodes.
14228
14229 * New unit file option ControlGroupPersistent= to make cgroups
14230 persistent, following the mechanisms outlined in
56cadcb6 14231 https://www.freedesktop.org/wiki/Software/systemd/PaxControlGroups
220a21d3
LP
14232
14233 * Support multiple local RTCs in a sane way
14234
14235 * No longer monopolize IO when replaying readahead data on
14236 rotating disks, since we might starve non-file-system IO to
14237 death, since fanotify() will not see accesses done by blkid,
14238 or fsck.
14239
d28315e4 14240 * Do not show kernel threads in systemd-cgls anymore, unless
220a21d3
LP
14241 requested with new -k switch.
14242
14243 Contributions from: Dan Horák, Kay Sievers, Lennart
14244 Poettering, Michal Schmidt
14245
14246CHANGES WITH 38:
b6a86739 14247
220a21d3
LP
14248 * This is mostly a test release, but incorporates many
14249 bugfixes.
14250
14251 * The git repository moved to:
14252 git://anongit.freedesktop.org/systemd/systemd
14253 ssh://git.freedesktop.org/git/systemd/systemd
14254
14255 * First release with the journal
14256 http://0pointer.de/blog/projects/the-journal.html
14257
14258 * The journal replaces both systemd-kmsg-syslogd and
14259 systemd-stdout-bridge.
14260
14261 * New sd_pid_get_unit() API call in libsystemd-logind
14262
14263 * Many systemadm clean-ups
14264
14265 * Introduce remote-fs-pre.target which is ordered before all
14266 remote mounts and may be used to start services before all
14267 remote mounts.
14268
14269 * Added Mageia support
14270
14271 * Add bash completion for systemd-loginctl
14272
14273 * Actively monitor PID file creation for daemons which exit in
14274 the parent process before having finished writing the PID
14275 file in the daemon process. Daemons which do this need to be
14276 fixed (i.e. PID file creation must have finished before the
14277 parent exits), but we now react a bit more gracefully to them.
14278
14279 * Add colourful boot output, mimicking the well-known output
14280 of existing distributions.
14281
14282 * New option PassCredentials= for socket units, for
14283 compatibility with a recent kernel ABI breakage.
14284
14285 * /etc/rc.local is now hooked in via a generator binary, and
14286 thus will no longer act as synchronization point during
14287 boot.
14288
14289 * systemctl list-unit-files now supports --root=.
14290
14291 * systemd-tmpfiles now understands two new commands: z, Z for
14292 relabelling files according to the SELinux database. This is
14293 useful to apply SELinux labels to specific files in /sys,
14294 among other things.
14295
14296 * Output of SysV services is now forwarded to both the console
14297 and the journal by default, not only just the console.
14298
14299 * New man pages for all APIs from libsystemd-login.
14300
ce830873 14301 * The build tree got reorganized and the build system is a
220a21d3
LP
14302 lot more modular allowing embedded setups to specifically
14303 select the components of systemd they are interested in.
14304
14305 * Support for Linux systems lacking the kernel VT subsystem is
14306 restored.
14307
14308 * configure's --with-rootdir= got renamed to
14309 --with-rootprefix= to follow the naming used by udev and
14310 kmod
14311
d28315e4 14312 * Unless specified otherwise we will now install to /usr instead
220a21d3
LP
14313 of /usr/local by default.
14314
14315 * Processes with '@' in argv[0][0] are now excluded from the
14316 final shut-down killing spree, following the logic explained
14317 in:
a794a4d8 14318 https://systemd.io/ROOT_STORAGE_DAEMONS/
220a21d3
LP
14319
14320 * All processes remaining in a service cgroup when we enter
14321 the START or START_PRE states are now killed with
14322 SIGKILL. That means it is no longer possible to spawn
14323 background processes from ExecStart= lines (which was never
14324 supported anyway, and bad style).
14325
14326 * New PropagateReloadTo=/PropagateReloadFrom= options to bind
14327 reloading of units together.
14328
4c8cd173 14329 Contributions from: Bill Nottingham, Daniel J. Walsh, Dave
220a21d3
LP
14330 Reisner, Dexter Morgan, Gregs Gregs, Jonathan Nieder, Kay
14331 Sievers, Lennart Poettering, Michael Biebl, Michal Schmidt,
14332 Michał Górny, Ran Benita, Thomas Jarosch, Tim Waugh, Tollef
14333 Fog Heen, Tom Gundersen, Zbigniew Jędrzejewski-Szmek