]> git.ipfire.org Git - thirdparty/systemd.git/blame - NEWS
Merge pull request #27713 from ddstreet/tpm2_replace_make_primary
[thirdparty/systemd.git] / NEWS
CommitLineData
d657c51f 1systemd System and Service Manager
220a21d3 2
a1012609
LP
3CHANGES WITH 254 in spe:
4
b4ff8ba0 5 Announcements of Future Feature Removals and Incompatible Changes:
6
221332ee
ZJS
7 * We intend to remove cgroup v1 support from a systemd release after
8 the end of 2023. If you run services that make explicit use of
9 cgroup v1 features (i.e. the "legacy hierarchy" with separate
10 hierarchies for each controller), please implement compatibility with
11 cgroup v2 (i.e. the "unified hierarchy") sooner rather than later.
12 Most of Linux userspace has been ported over already.
22900fa3 13
d7b3c52c 14 * The next release (v255) will remove support for split-usr (/usr/
22900fa3
LB
15 mounted separately during late boot, instead of being mounted by the
16 initrd before switching to the rootfs) and unmerged-usr (parallel
33db1b90 17 directories /bin/ and /usr/bin/, /lib/ and /usr/lib/, …). For more
d7b3c52c 18 details, see:
22900fa3
LB
19 https://lists.freedesktop.org/archives/systemd-devel/2022-September/048352.html
20
d7b3c52c
LP
21 * EnvironmentFile= now treats the line following a comment line
22 trailing with escape as a non comment line. For details, see:
b4ff8ba0 23 https://github.com/systemd/systemd/issues/27975
24
7474097d
LP
25 * Support for System V service scripts is now deprecated and will be
26 removed in a future release. Please make sure to update your software
27 *now* to include a native systemd unit file instead of a legacy
28 System V script to retain compatibility with future systemd releases.
29
221332ee
ZJS
30 * Behaviour of sandboxing options for the per-user service manager
31 units has changed. They now imply PrivateUsers=yes, which means user
32 namespaces will be implicitly enabled when a sandboxing option is
33 enabled in a user unit. Enabling user namespaces has the the drawback
34 that system users will no longer be visible (and processes/files will
35 appear as owned by 'nobody') in the user unit.
36
37 By definition a sandboxed user unit should run with reduced
38 privileges, so impact should be small. This will remove a great
39 source of confusion that has been reported by users over the years,
40 due to how these options require an extra setting to be manually
41 enabled when used in the per-user service manager, which is not
42 needed in the system service manager. For more details, see:
e6da1e04
LB
43 https://lists.freedesktop.org/archives/systemd-devel/2022-December/048682.html
44
d7b3c52c 45 Security Relevant Changes:
a1012609
LP
46
47 * pam_systemd will now by default pass the CAP_WAKE_ALARM ambient
48 process capability to invoked session processes of regular users on
49 local seats (as well as to systemd --user), unless configured
50 otherwise via data from JSON user records, or via the PAM module's
51 parameter list. This is useful in order allow desktop tools such as
52 GNOME's Alarm Clock application to set a timer for
53 CLOCK_REALTIME_ALARM that wakes up the system when it elapses. A
54 per-user service unit file may thus use AmbientCapability= to pass
55 the capability to invoked processes. Note that this capability is
56 relatively narrow in focus (in particular compared to other process
57 capabilities such as CAP_SYS_ADMIN) and we already — by default —
58 permit more impactful operations such as system suspend to local
59 users.
60
d7b3c52c
LP
61 Service Manager:
62
63 * "Startup" memory settings are now supported. Previously IO and CPU
221332ee
ZJS
64 settings were already supported via StartupCPUWeight= and similar.
65 The same logic has been added for the various per-unit memory
66 settings StartupMemoryMax= and related.
d7b3c52c
LP
67
68 * The service manager gained support for enqueuing POSIX signals to
69 services that carry an additional integer value, exposing the
49bf8bd5 70 sigqueue() system call. This is accessible via new D-Bus calls
221332ee
ZJS
71 org.freedesktop.systemd1.Manager.QueueSignalUnit() and
72 org.freedesktop.systemd1.Unit.QueueSignal(), as well as in systemctl
73 via the new --kill-value= option.
d7b3c52c
LP
74
75 * systemctl gained a new "list-paths" verb, which shows all currently
221332ee 76 active .path units, similarly to how "systemctl list-timers" shows
d7b3c52c
LP
77 active timers, and "systemctl list-sockets" shows active sockets.
78
d7b3c52c
LP
79 * systemctl gained a new --when= switch which is honoured by the various
80 forms of shutdown (i.e. reboot, kexec, poweroff, halt) and allows
81 scheduling these operations by time, similar in fashion to how this
82 has been supported by SysV shutdown.
83
221332ee
ZJS
84 * If MemoryDenyWriteExecute= is enabled for a service and the kernel
85 supports the new PR_SET_MDWE prctl() call, it is used instead of the
86 seccomp()-based system call filter to achieve the same effect.
87
d7b3c52c
LP
88 * A new set of kernel command line options is now understood:
89 systemd.tty.term.<name>=, systemd.tty.rows.<name>=,
90 systemd.tty.columns.<name>= allow configuring the TTY type and
b1ee7474
LB
91 dimensions for the tty specified via <name>. When systemd invokes a
92 service on a tty (via TTYName=) it will look for these and configure
221332ee 93 the TTY accordingly. This is particularly useful in VM environments
d7b3c52c
LP
94 to propagate host terminal settings into the appropriate TTYs of the
95 guest.
96
97 * A new RootEphemeral= setting is now understood in service units. It
98 takes a boolean argument. If enabled for services that use RootImage=
99 or RootDirectory= an ephemeral copy of the disk image or directory
100 tree is made when the service is started. It is removed automatically
08423f6d
LP
101 when the service is stopped. That ephemeral copy is made using
102 btrfs/xfs reflinks or btrfs snaphots, if available.
d7b3c52c
LP
103
104 * The service activation logic gained new settings RestartSteps= and
221332ee 105 RestartMaxDelaySec= which allow exponentially-growing restart
d7b3c52c
LP
106 intervals for Restart=.
107
108 * PID 1 will now automatically load the virtio_console kernel module
109 during early initialization if running in a suitable VM. This is done
110 so that early-boot logging can be written to the console if available.
111
221332ee
ZJS
112 * Similarly, virtio-vsock support is loaded early in suitable VM
113 environments. PID 1 will send sd_notify() notifications via AF_VSOCK
114 to the VMM if configured, thus loading this early is beneficial.
d7b3c52c
LP
115
116 * A new verb "fdstore" has been added to systemd-analyze to show the
117 current contents of the file descriptor store of a unit. This is
118 backed by a new D-Bus call DumpUnitFileDescriptorStore() provided by
119 the service manager.
120
121 * The service manager will now set a new $FDSTORE environment variable
122 when invoking processes for services that have the file descriptor
123 store enabled.
124
125 * A new service option FileDescriptorStorePreserve= has been added that
126 allows tuning the life-cycle of the per-service file descriptor
221332ee
ZJS
127 store. If set to "yes", the entries in the fd store are retained even
128 after the service has been fully stopped.
d7b3c52c
LP
129
130 * The "systemctl clean" command may now be used to clear the fdstore of
131 a service.
132
d7b3c52c 133 * Unit *.preset files gained a new directive "ignore", in addition to
221332ee
ZJS
134 the existing "enable" and "disable". As the name suggests, matching
135 units are left unchanged, i.e. neither enabled nor disabled.
d7b3c52c
LP
136
137 * Service units gained a new setting DelegateSubgroup=. It takes the
138 name of a sub-cgroup to place any processes the service manager forks
139 off in. Previously, the service manager would place all service
221332ee
ZJS
140 processes directly in the top-level cgroup it created for the
141 service. This usually meant that main process in a service with
142 delegation enabled would first have to create a subgroup and move
143 itself down into it, in order to not conflict with the "no processes
144 in inner cgroups" rule of cgroup v2. With this option, this step is
145 now handled by PID 1.
146
147 * The service manager will now look for .upholds/ directories,
148 similarly to the existing support for .wants/ and .requires/
149 directories. Symlinks in this directory result in Upholds=
150 dependencies.
151
152 The [Install] section of unit files gained support for a new
153 UpheldBy= directive to generate .upholds/ symlinks automatically when
154 a unit is enabled.
d7b3c52c
LP
155
156 * The service manager now supports a new kernel command line option
157 systemd.default_device_timeout_sec=, which may be used to override
158 the default timeout for .device units.
159
221332ee
ZJS
160 * A new "soft-reboot" mechanism has been added to the service manager.
161 A "soft reboot" is similar to a regular reboot, except that it
162 affects userspace only: the service manager shuts down any running
d7b3c52c
LP
163 services and other units, then optionally switches into a new root
164 file system (mounted to /run/nextroot/), and then passes control to a
49bf8bd5 165 systemd instance in the new file system which then starts the system
221332ee
ZJS
166 up again. The kernel is not rebooted and neither is the hardware,
167 firmware or boot loader. This provides a fast, lightweight mechanism
168 to quickly reset or update userspace, without the latency that a full
d7b3c52c
LP
169 system reset involves. Moreover, open file descriptors may be passed
170 across the soft reboot into the new system where they will be passed
171 back to the originating services. This allows pinning resources
172 across the reboot, thus minimizing grey-out time further. Moreover,
173 it is possible to allow specific crucial services to survive the
174 reboot process, if they run off a separate root file system (i.e. use
175 RootDirectory= or RootImage=, or are portable services). This new
176 reboot mechanism is accessible via the new "systemctl soft-reboot"
177 command.
178
221332ee
ZJS
179 * A new service setting MemoryKSM= has been added to enable kernel
180 same-page merging individually for services.
d7b3c52c 181
08423f6d
LP
182 * A new service setting ImportCredentials= has been added that augments
183 LoadCredential= and LoadCredentialEncrypted= and searches for
184 credentials to import from the system, and supports globbing.
d7b3c52c
LP
185
186 Journal:
187
221332ee
ZJS
188 * The sd-journal API gained a new call sd_journal_get_seqnum() to
189 retrieve the current log record's sequence number and sequence number
190 ID, which allows applications to order records the same way as
191 journal does internally. The sequence number is now also exported in
192 the JSON and "export" output of the journal.
d7b3c52c
LP
193
194 * journalctl gained a new switch --truncate-newline. If specified
195 multi-line log records will be truncated at the first newline,
221332ee 196 i.e. only the first line of each log message will be shown.
d7b3c52c
LP
197
198 systemd-repart:
199
200 * systemd-repart's drop-in files gained a new ExcludeFiles= option which
221332ee 201 may be used to exclude certain files from the effect of CopyFiles=.
d7b3c52c
LP
202
203 * systemd-repart's Verity support now implements the Minimize= setting
204 to minimize the size of the resulting partition.
205
206 * systemd-repart gained a new --offline= switch, which may be used to
207 control whether images shall be built "online" or "offline",
208 i.e. whether to make use of kernel facilities such as loopback block
221332ee 209 devices and device mapper or not.
d7b3c52c
LP
210
211 * If systemd-repart is told to populate a newly created ESP or XBOOTLDR
221332ee
ZJS
212 partition with some files, it will now default to VFAT rather than
213 ext4.
d7b3c52c
LP
214
215 * systemd-repart gained a new --architecture= switch. If specified, the
216 per-architecture GPT partition types (i.e. the root and /usr/
217 partitions) configured in the partition drop-in files are
08423f6d
LP
218 automatically adjusted to match the specified CPU architecture, in
219 order to simplify cross-architecture DDI building.
d7b3c52c
LP
220
221 systemd-boot, systemd-stub, ukify, bootctl, kernel-install:
222
221332ee 223 * bootctl gained a new switch --print-root-device/-R that prints the
d5163f9c
LP
224 block device the root file system is backed by. If specified twice,
225 it returns the whole disk block device (as opposed to partition block
226 device) the root file system is on. It's useful for invocations such
227 as "cfdisk $(bootctl -RR)" to quickly show the partition table of the
228 running OS.
d7b3c52c
LP
229
230 * systemd-stub will now look for the SMBIOS Type 1 field
231 "io.systemd.stub.kernel-cmdline-extra" and append its value to the
232 kernel command line it invokes. This is useful for VMMs such as qemu
233 to pass additional kernel command lines into the system even when
221332ee
ZJS
234 booting via full UEFI. The contents of the field are measured into
235 TPM PCR 12.
d7b3c52c
LP
236
237 * The KERNEL_INSTALL_LAYOUT= setting for kernel-install gained a new
221332ee
ZJS
238 value "auto". With this value, a kernel will be automatically
239 analyzed, and if it qualifies as UKI, it will be installed as if the
240 setting was to set to "uki", otherwise as "bls".
d7b3c52c
LP
241
242 * systemd-stub can now optionally load UEFI PE "add-on" images that may
243 contain additional kernel command line information. These "add-ons"
244 superficially look like a regular UEFI executable, and are expected
245 to be signed via SecureBoot/shim. However, they do not actually
246 contain code, but instead a subset of the PE sections that UKIs
247 support. They are supposed to provide a way to extend UKIs with
248 additional resources in a secure and authenticated way. Currently,
249 only the .cmdline PE section may be used in add-ons, in which case
250 any specified string is appended to the command line embedded into
acf678de
LB
251 the UKI itself. A new 'addon<EFI-ARCH>.efi.stub' is now provided that
252 can be used to trivially create addons, via 'ukify' or 'objcopy'. In
253 the future we expect other sections to be made extensible like this as
254 well.
d7b3c52c
LP
255
256 * ukify has been updated to allow building these UEFI PE "add-on"
acf678de 257 images, using the new 'addon<EFI-ARCH>.efi.stub'.
d7b3c52c
LP
258
259 * ukify gained a new "genkey" verb for generating a set of of key pairs
260 to sign UKIs and their PCR data with.
261
262 * The kernel-install script has been rewritten in C, and reuses much of
49bf8bd5
JB
263 the infrastructure of existing tools such as bootctl. It also gained
264 --esp-path= and --boot-path= options to override the path to the ESP,
265 and the $BOOT partition. Options --make-entry-directory= and
266 --entry-token= have been added as well, similar to bootctl's options
267 of the same name.
d7b3c52c
LP
268
269 * A new kernel-install plugin 60-ukify has been added which will
221332ee
ZJS
270 combine kernel/initrd locally into an UKI and optionally sign them
271 with a local key. This may be used to switch to UKI mode even on
272 systems where a local kernel or initrd is used. (Typically UKIs are
273 built and signed by the vendor.)
d7b3c52c 274
221332ee 275 * The ukify tool now supports "pesign" in addition to the pre-existing
d7b3c52c
LP
276 "sbsign" for signing UKIs.
277
221332ee
ZJS
278 * systemd-measure and systemd-stub now look for the .uname PE section
279 that should contain the kernel's "uname -r" string.
d7b3c52c 280
221332ee
ZJS
281 * systemd-measure and ukify now calculate expected PCR hashes for a UKI
282 "offline", i.e. without access to a TPM (physical or
283 software-emulated).
d7b3c52c
LP
284
285 Memory Pressure & Control:
286
287 * The sd-event API gained new calls sd_event_add_memory_pressure(),
288 sd_event_source_set_memory_pressure_type(),
221332ee
ZJS
289 sd_event_source_set_memory_pressure_period() to create and configure
290 an event source that is called whenever the OS signals memory
291 pressure. Another call sd_event_trim_memory() is provided that
d7b3c52c 292 compacts the process' memory use by releasing allocated but unused
198aff76
LB
293 malloc() memory back to the kernel. Services can also provide their
294 own custom callback to do memory trimming. This should improve system
221332ee
ZJS
295 behaviour under memory pressure, as on Linux traditionally provided
296 no mechanism to return process memory back to the kernel if the
297 kernel was under memory pressure. This makes use of the kernel's PSI
298 interface. Most long-running services in systemd have been hooked up
299 with this, and in particular systems with low memory should benefit
300 from this.
301
302 * Service units gained new settings MemoryPressureWatch= and
303 MemoryPressureThresholdSec= to configure the PSI memory pressure
304 logic individually. If these options are used, the
d7b3c52c 305 $MEMORY_PRESSURE_WATCH and $MEMORY_PRESSURE_WRITE environment
49bf8bd5
JB
306 variables will be set for the invoked processes to inform them about
307 the requested memory pressure behaviour. (This is used by the
308 aforementioned sd-events API additions, if set.)
d7b3c52c
LP
309
310 * systemd-analyze gained a new "malloc" verb that shows the output
311 generated by glibc's malloc_info() on services that support it. Right
221332ee
ZJS
312 now, only the service manager has been updated accordingly. This
313 call requires privileges.
d7b3c52c
LP
314
315 User & Session Management:
316
221332ee
ZJS
317 * The sd-login API gained a new call sd_session_get_username() to
318 return the user name of the owner of a login session. It also gained
319 a new call sd_session_get_start_time() to retrieve the time the login
320 session started. A new call sd_session_get_leader() has been added to
321 return the PID of the "leader" process of a session. A new call
322 sd_uid_get_login_time() returns the time since the specified user has
323 most recently been continuously logged in with at least one session.
d7b3c52c
LP
324
325 * JSON user records gained a new set of fields capabilityAmbientSet and
326 capabilityBoundingSet which contain a list of POSIX capabilities to
327 set for the logged in users in the ambient and bounding sets,
328 respectively. homectl gained the ability to configure these two sets
329 for users via --capability-bounding-set=/--capability-ambient-set=.
330
331 * pam_systemd learnt two new module options
221332ee
ZJS
332 default-capability-bounding-set= and default-capability-ambient-set=,
333 which configure the default bounding sets for users as they are
334 logging in, if the JSON user record doesn't specify this explicitly
335 (see above). The built-in default for the ambient set now contains
336 the CAP_WAKE_ALARM, thus allowing regular users who may log in
337 locally to resume from a system suspend via a timer.
d7b3c52c 338
49bf8bd5 339 * The Session D-Bus objects systemd-logind gained a new SetTTY() method
221332ee
ZJS
340 call to update the TTY of a session after it has been allocated. This
341 is useful for SSH sessions which are typically allocated first, and
342 for which a TTY is added later.
d7b3c52c
LP
343
344 * The sd-login API gained a new call sd_pid_notifyf_with_fds() which
345 combines the various other sd_pid_notify() flavours into one: takes a
346 format string, an overriding PID, and a set of file descriptors to
221332ee
ZJS
347 send. It also gained a new call sd_pid_notify_barrier() call which is
348 equivalent to sd_notify_barrier() but allows the originating PID to
349 be specified.
d7b3c52c
LP
350
351 * "loginctl list-users" and "loginctl list-sessions" will now show the
352 state of each logged in user/session in their tabular output. It will
353 also show the current idle state of sessions.
354
355 DDIs:
356
357 * systemd-dissect will now show the intended CPU architecture of an
358 inspected DDI.
359
360 * systemd-dissect will now install itself as mount helper for the "ddi"
361 pseudo-file system type. This means you may now mount DDIs directly
362 via /bin/mount or /etc/fstab, making full use of embedded Verity
221332ee
ZJS
363 information and all other DDI features.
364
365 Example: mount -t ddi myimage.raw /some/where
d7b3c52c 366
221332ee
ZJS
367 * The systemd-dissect tool gained the new switches --attach/--detach to
368 attach/detach a DDI to a loopback block device without mounting it.
369 It will automatically derive the right sector size from the image
370 and set up Verity and similar, but not mount the file systems in it.
d7b3c52c 371
221332ee
ZJS
372 * When systemd-gpt-auto-generator or the DDI mounting logic mount an
373 ESP or XBOOTLDR partition the MS_NOSYMFOLLOW mount option is now
374 implied. Given that these file systems are typically untrusted, this
375 should make mounting them automatically have less of a security
376 impact.
d7b3c52c
LP
377
378 * All tools that parse DDIs (such as systemd-nspawn, systemd-dissect,
379 systemd-tmpfiles, …) now understand a new switch --image-policy= which
380 takes a string encoding image dissection policy. With this mechanism
381 automatic discovery and use of specific partition types and the
382 cryptographic requirements on the partitions (Verity, LUKS, …) can be
383 restricted, permitting better control of the exposed attack surfaces
384 when mounting disk images. systemd-gpt-auto-generator will honour such
385 an image policy too, configurable via the systemd.image_policy= kernel
386 command line option. Unit files gained the RootImagePolicy=,
387 MountImagePolicy= and ExtensionImagePolicy= to configure the same for
388 disk images a service runs off.
389
221332ee
ZJS
390 * systemd-analyze gained a new verb "image-policy" to validate and
391 parse image policy strings.
d7b3c52c 392
221332ee
ZJS
393 * systemd-dissect gained support for a new --validate switch to
394 superficially validate DDI structure, and check whether a specific
395 image policy allows the DDI.
d7b3c52c
LP
396
397 Network Management:
398
399 * networkd's GENEVE support as gained a new .network option
400 InheritInnerProtocol=.
401
402 Device Management:
403
404 * udevadm gained the new "verify" verb for validating udev rules files
405 offline.
406
407 * udev will now create symlinks to loopback block devices in the
221332ee
ZJS
408 /dev/loop/by-ref/ directory that are based on the .lo_file_name
409 string field selected during allocation. The systemd-dissect tool and
410 the util-linux losetup command now supports a complementing new
411 switch --loop-ref= for selecting the string. This means a loopback
412 block device may now be allocated under a caller-chosen reference and
413 can subsequently be referenced by that without first having to look
414 up the block device name the caller ended up with.
d7b3c52c
LP
415
416 * udev also creates symlinks to loopback block devices in the
417 /dev/loop/by-ref/ directory based on the .st_dev/st_ino fields of the
418 inode attached to the loopback block device. This means that attaching
419 a file to a loopback device will implicitly make a handle available to
420 be found via that file's inode information.
421
422 * udev gained a new tool "iocost" that can be used to configure QoS IO
423 cost data based on hwdb information onto suitable block devices. Also
424 see https://github.com/iocost-benchmark/iocost-benchmarks.
425
426 TPM2 Support + Disk Encryption & Authentication:
427
428 * systemd-cryptenroll/systemd-cryptsetup will now install a TPM2 SRK
b1ee7474 429 ("Storage Root Key") as first step in the TPM2, and then use that
d7b3c52c
LP
430 for binding FDE to, if TPM2 support is used. This matches
431 recommendations of TCG (see
432 https://trustedcomputinggroup.org/wp-content/uploads/TCG-TPM-v2.0-Provisioning-Guidance-Published-v1r1.pdf)
433
434 * systemd-cryptenroll and other tools that take TPM2 PCR parameters now
435 understand textual identifiers for these PCRs.
436
437 * systemd-veritysetup + /etc/veritytab gained support for a series of
438 new options: hash-offset=, superblock=, format=, data-block-size=,
439 hash-block-size=, data-blocks=, salt=, uuid=, hash=, fec-device=,
440 fec-offset=, fec-roots= to configure various aspects of a Verity
441 volume.
442
443 * systemd-cryptsetup + /etc/crypttab gained support for a new
444 veracrypt-pim= option for setting the Personal Iteration Multiplier
445 of veracrypt volumes.
446
447 * systemd-integritysetup + /etc/integritytab gained support for a new
448 mode= setting for controlling the dm-integrity mode (journal, bitmap,
449 direct) for the volume.
450
005bfe4e
LP
451 * systemd-analyze gained a new verb "pcrs" that shows the known TPM PCR
452 registers, their symbolic names and current values.
453
d7b3c52c
LP
454 systemd-tmpfiles:
455
456 * The ACL support in tmpfiles.d/ has been updated: if an uppercase "X"
457 access right is specified this is equivalent to "x" but only if the
458 inode in question already has the executable bit set for at least
459 some user/group. Otherwise the "x" bit will be turned off.
460
461 * tmpfiles.d/'s C line type now understands a new modifier "+": a line
462 with C+ will result in a "merge" copy, i.e. all files of the source
463 tree are copied into the target tree, even if that tree already
464 exists, resulting in a combined tree of files already present in the
465 target tree and those copied in.
466
467 * systemd-tmpfiles gained a new --graceful switch. If specified lines
468 with unknown users/groups will silently be skipped.
469
470 systemd-notify:
471
472 * systemd-notify gained two new options --fd= and --fdname= for sending
473 arbitrary file descriptors to the service manager (while specifying an
474 explicit name for it).
475
476 * systemd-notify gained a new --exec switch, which makes it execute the
477 specified command line after sending the requested messages. This is
478 useful for sending out READY=1 first, and then continuing invocation
479 without changing process ID, so that the tool can be nicely used
480 within an ExecStart= line of a unit file that uses Type=ready.
481
482 sd-event + sd-bus APIs:
483
484 * The sd-event API gained a new call sd_event_source_leave_ratelimit()
485 which may be used to explicitly end a rate-limit state an event
486 source might be in, resetting all rate limiting counters.
487
488 * When the sd-bus library is used to make connections to AF_UNIX D-Bus
221332ee
ZJS
489 sockets, it will now encode the "description" set via
490 sd_bus_set_description() into the source socket address. It will also
d7b3c52c
LP
491 look for this information when accepting a connection. This is useful
492 to track individual D-Bus connections on a D-Bus broker for debug
493 purposes.
494
495 systemd-resolved:
496
497 * systemd-resolved gained a new resolved.conf setting
498 StateRetentionSec= which may be used to retain cached DNS records
499 even after their nominal TTL, and use them in case upstream DNS
221332ee
ZJS
500 servers cannot be reached. This can be sued to make name resolution
501 more resilient in case of network problems.
d7b3c52c 502
221332ee
ZJS
503 * resolvectl gained a new verb "show-cache" to show the current cache
504 contents of systemd-resolved. This verb comunicates with the
505 systemd-resolved daemon and requires privileges.
d7b3c52c
LP
506
507 Other:
508
509 * The default keymap to apply may now be chosen at build-time via the
221332ee 510 new -Ddefault-keymap= meson option.
d7b3c52c
LP
511
512 * Most of systemd's long-running services now have a generic handler of
513 the SIGRTMIN+18 signal handler which executes various operations
514 depending on the sigqueue() parameter sent along. For example, values
515 0x100…0x107 allow changing the maximum log level of such
516 services. 0x200…0x203 allow changing the log target of such
221332ee
ZJS
517 services. 0x300 make the services trim their memory similarly to the
518 automatic PSI-triggered action, see above. 0x301 make the services
d7b3c52c
LP
519 output their malloc_info() data to the logs.
520
521 * machinectl gained new "edit" and "cat" verbs for editing .nspawn
221332ee
ZJS
522 files, inspired by systemctl's verbs of the same name which edit unit
523 files. Similarly, networkctl gained the same verbs for editing
d7b3c52c
LP
524 .network, .netdev, .link files.
525
526 * A new syscall filter group "@sandbox" has been added that contains
527 syscalls for sandboxing system calls such as those for seccomp and
528 Landlock.
529
530 * New documentation has been added:
531
532 https://systemd.io/COREDUMP
533 https://systemd.io/MEMORY_PRESSURE
534
221332ee
ZJS
535 * systemd-firstboot gained a new --reset option. If specified, the
536 settings in /etc/ it knows how to initialize are reset.
d7b3c52c 537
221332ee
ZJS
538 * systemd-sysext is now a multi-call binary and is also installed under
539 the systemd-confext alias name (via a symlink). When invoked that way
540 it will operate on /etc/ instead of /usr/ + /opt/. It thus becomes a
d7b3c52c
LP
541 powerful, atomic, secure configuration management of sorts, that
542 locally can merge configuration from multiple confext configuration
543 images into a single immutable tree.
544
545 * The --network-macvlan=, --network-ipvlan=, --network-interface=
546 switches of systemd-nspawn may now optionally take the intended
547 network interface inside the container.
548
549 * All our programs will now send an sd_notify() message with their exit
550 status in the EXIT_STATUS= field when exiting, using the usual
551 protocol, including PID 1. This is useful for VMMs and container
552 managers to collect an exit status from a system as it shuts down, as
553 set via "systemctl exit …". This is particularly useful in test cases
554 and similar, as invocations via a VM can now nicely propagate an exit
555 status to the host, similar to local processes.
556
557 * systemd-run gained a new switch --expand-environment=no to disable
49bf8bd5 558 server-side environment variable expansion in specified command
d7b3c52c
LP
559 lines.
560
221332ee 561 * The systemd-system-update-generator has been updated to also look for
d7b3c52c
LP
562 the special flag file /etc/system-update in addition to the existing
563 support for /system-update to decide whether to enter system update
564 mode.
565
08423f6d 566 * The /dev/hugepages/ file system is now mounted with nosuid + nodev
d7b3c52c
LP
567 mount options by default.
568
569 * systemd-fstab-generator now understands two new kernel command line
221332ee
ZJS
570 options systemd.mount-extra= and systemd.swap-extra=, which configure
571 additional mounts or swaps in a format similar to /etc/fstab.
d7b3c52c 572
49bf8bd5 573 * systemd-sysupdate's sysupdate.d/ drop-ins gained a new setting
d7b3c52c
LP
574 PathRelativeTo=, which can be set to "esp", "xbootldr", "boot", in
575 which case the Path= setting is taken relative to the ESP or XBOOTLDR
576 partitions, rather than the system's root directory /. The relevant
577 directories are automatically discovered.
578
579 * The systemd-ac-power tool gained a new switch --low, which reports
580 whether the battery charge is considered "low", similar to how the
581 s2h suspend logic checks this state to decide whether to enter system
582 suspend or hibernation.
583
221332ee
ZJS
584 * The /etc/os-release file can now have two new optional fields
585 VENDOR_NAME= and VENDOR_URL= to carry information about the vendor of
586 the OS.
d7b3c52c 587
221332ee
ZJS
588 * When the system hibernates, information about the device and offset
589 used is now written to a non-volatile EFI variable. On next boot the
590 system will attempt to resume from the location indicated in this EFI
591 variable. This should make hibernation a lot more robust, while
d7b3c52c 592 requiring no manual configuration of the resume location.
b0f02185 593
08423f6d
LP
594 * The $XDG_STATE_HOME environment variable (added in more recent
595 versions of the XDG basedir specification) is now honoured to
596 implement the StateDirectory= setting in user services.
597
598 * A new component "systemd-battery-check" has been added. It may run
599 during early boot (usually in the initrd), and checks the battery
600 charge level of the system. In case the charge level is very low the
601 user is notified (graphically via Plymouth – if available – as well
602 as in text form on the console), and the system is turned off after a
603 10s delay.
604
477fdc5a 605CHANGES WITH 253:
1d679b20 606
70879f6c
LB
607 Announcements of Future Feature Removals and Incompatible Changes:
608
609 * We intend to remove cgroup v1 support from systemd release after the
610 end of 2023. If you run services that make explicit use of cgroup v1
611 features (i.e. the "legacy hierarchy" with separate hierarchies for
612 each controller), please implement compatibility with cgroup v2 (i.e.
613 the "unified hierarchy") sooner rather than later. Most of Linux
614 userspace has been ported over already.
615
616 * We intend to remove support for split-usr (/usr mounted separately
617 during boot) and unmerged-usr (parallel directories /bin and
618 /usr/bin, /lib and /usr/lib, etc). This will happen in the second
619 half of 2023, in the first release that falls into that time window.
620 For more details, see:
621 https://lists.freedesktop.org/archives/systemd-devel/2022-September/048352.html
622
318c2578
LB
623 * We intend to change behaviour w.r.t. units of the per-user service
624 manager and sandboxing options, so that they work without having to
625 manually enable PrivateUsers= as well, which is not required for
626 system units. To make this work, we will implicitly enable user
627 namespaces (PrivateUsers=yes) when a sandboxing option is enabled in a
628 user unit. The drawback is that system users will no longer be visible
629 (and appear as 'nobody') to the user unit when a sandboxing option is
630 enabled. By definition a sandboxed user unit should run with reduced
631 privileges, so impact should be small. This will remove a great source
632 of confusion that has been reported by users over the years, due to
633 how these options require an extra setting to be manually enabled when
634 used in the per-user service manager, as opposed as to the system
635 service manager. We plan to enable this change in the next release
636 later this year. For more details, see:
637 https://lists.freedesktop.org/archives/systemd-devel/2022-December/048682.html
638
1ee3720e 639 Deprecations and incompatible changes:
3b288a2d 640
1ee3720e
LP
641 * systemctl will now warn when invoked without /proc/ mounted
642 (e.g. when invoked after chroot() into an directory tree without the
643 API mount points like /proc/ being set up.) Operation in such an
644 environment is not fully supported.
3b288a2d 645
621f7615
ZJS
646 * The return value of 'systemctl is-active|is-enabled|is-failed' for
647 unknown units is changed: previously 1 or 3 were returned, but now 4
648 (EXIT_PROGRAM_OR_SERVICES_STATUS_UNKNOWN) is used as documented.
649
3b288a2d
ZJS
650 * 'udevadm hwdb' subcommand is deprecated and will emit a warning.
651 systemd-hwdb (added in 2014) should be used instead.
652
1ee3720e 653 * 'bootctl --json' now outputs a single JSON array, instead of a stream
3b288a2d
ZJS
654 of newline-separated JSON objects.
655
1ee3720e
LP
656 * Udev rules in 60-evdev.rules have been changed to load hwdb
657 properties for all modalias patterns. Previously only the first
658 matching pattern was used. This could change what properties are
659 assigned if the user has more and less specific patterns that could
660 match the same device, but it is expected that the change will have
661 no effect for most users.
3b288a2d 662
621f7615
ZJS
663 * systemd-networkd-wait-online exits successfully when all interfaces
664 are ready or unmanaged. Previously, if neither '--any' nor
665 '--interface=' options were used, at least one interface had to be in
ecf4be29
ZJS
666 configured state. This change allows the case where systemd-networkd
667 is enabled, but no interfaces are configured, to be handled
621f7615
ZJS
668 gracefully. It may occur in particular when a different network
669 manager is also enabled and used.
670
671 * Some compatibility helpers were dropped: EmergencyAction= in the user
1ee3720e
LP
672 manager, as well as measuring kernel command line into PCR 8 in
673 systemd-stub, along with the -Defi-tpm-pcr-compat compile-time
674 option.
621f7615 675
1ee3720e
LP
676 * The '-Dupdate-helper-user-timeout=' build-time option has been
677 renamed to '-Dupdate-helper-user-timeout-sec=', and now takes an
678 integer as parameter instead of a string.
b67ea78f 679
f9fdbd54
LP
680 * The DDI image dissection logic (which backs RootImage= in service
681 unit files, the --image= switch in various tools such as
682 systemd-nspawn, as well as systemd-dissect) will now only mount file
683 systems of types btrfs, ext4, xfs, erofs, squashfs, vfat. This list
bbcce4f8 684 can be overridden via the $SYSTEMD_DISSECT_FILE_SYSTEMS environment
f9fdbd54
LP
685 variable. These file systems are fairly well supported and maintained
686 in current kernels, while others are usually more niche, exotic or
687 legacy and thus typically do not receive the same level of security
688 support and fixes.
689
729045ff
YW
690 * The default per-link multicast DNS mode is changed to "yes"
691 (that was previously "no"). As the default global multicast DNS mode
692 has been "yes" (but can be changed by the build option), now the
693 multicast DNS is enabled on all links by default. You can disable the
694 multicast DNS on all links by setting MulticastDNS= in resolved.conf,
695 or on an interface by calling "resolvectl mdns INTERFACE no".
696
3b288a2d
ZJS
697 New components:
698
621f7615
ZJS
699 * A tool 'ukify' tool to build, measure, and sign Unified Kernel Images
700 (UKIs) has been added. This replaces functionality provided by
1ee3720e
LP
701 'dracut --uefi' and extends it with automatic calculation of PE file
702 offsets, insertion of signed PCR policies generated by
703 systemd-measure, support for initrd concatenation, signing of the
704 embedded Linux image and the combined image with sbsign, and
705 heuristics to autodetect the kernel uname and verify the splash
706 image.
621f7615
ZJS
707
708 Changes in systemd and units:
3b288a2d 709
1ee3720e 710 * A new service type Type=notify-reload is defined. When such a unit is
f9fdbd54
LP
711 reloaded a UNIX process signal (typically SIGHUP) is sent to the main
712 service process. The manager will then wait until it receives a
713 "RELOADING=1" followed by a "READY=1" notification from the unit as
714 response (via sd_notify()). Otherwise, this type is the same as
715 Type=notify. A new setting ReloadSignal= may be used to change the
716 signal to send from the default of SIGHUP.
621f7615
ZJS
717
718 user@.service, systemd-networkd.service, systemd-udevd.service, and
1ee3720e
LP
719 systemd-logind have been updated to this type.
720
721 * Initrd environments which are not on a pure memory file system (e.g.
722 overlayfs combination as opposed to tmpfs) are now supported. With
723 this change, during the initrd → host transition ("switch root")
ecf4be29 724 systemd will erase all files of the initrd only when the initrd is
1ee3720e
LP
725 backed by a memory file system such as tmpfs.
726
727 * New per-unit MemoryZSwapMax= option has been added to configure
728 memory.zswap.max cgroup properties (the maximum amount of zswap
729 used).
730
731 * A new LogFilterPatterns= option has been added for units. It may be
732 used to specify accept/deny regular expressions for log messages
733 generated by the unit, that shall be enforced by systemd-journald.
621f7615 734 Rejected messages are neither stored in the journal nor forwarded.
1ee3720e 735 This option may be used to suppress noisy or uninteresting messages
621f7615
ZJS
736 from units.
737
738 * The manager has a new
1ee3720e
LP
739 org.freedesktop.systemd1.Manager.GetUnitByPIDFD() D-Bus method to
740 query process ownership via a PIDFD, which is more resilient against
741 PID recycling issues.
621f7615 742
3b288a2d 743 * Scope units now support OOMPolicy=. Login session scopes default to
621f7615 744 OOMPolicy=continue, allowing login scopes to survive the OOM killer
3b288a2d
ZJS
745 terminating some processes in the scope.
746
747 * systemd-fstab-generator now supports x-systemd.makefs option for
1ee3720e 748 /sysroot/ (in the initrd).
3b288a2d 749
621f7615
ZJS
750 * The maximum rate at which daemon reloads are executed can now be
751 limited with the new ReloadLimitIntervalSec=/ReloadLimitBurst=
752 options. (Or the equivalent on the kernel command line:
ecf4be29 753 systemd.reload_limit_interval_sec=/systemd.reload_limit_burst=). In
1ee3720e
LP
754 addition, systemd now logs the originating unit and PID when a reload
755 request is received over D-Bus.
756
757 * When enabling a swap device systemd will now reinitialize the device
758 when the page size of the swap space does not match the page size of
f5ebd2ef
LB
759 the running kernel. Note that this requires the 'swapon' utility to
760 provide the '--fixpgsz' option, as implemented by util-linux, and it
761 is not supported by busybox at the time of writing.
1ee3720e
LP
762
763 * systemd now executes generator programs in a mount namespace
764 "sandbox" with most of the file system read-only and write access
765 restricted to the output directories, and with a temporary /tmp/
766 mount provided. This provides a safeguard against programming errors
767 in the generators, but also fixes here-docs in shells, which
768 previously didn't work in early boot when /tmp/ wasn't available
769 yet. (This feature has no security implications, because the code is
770 still privileged and can trivially exit the sandbox.)
771
30fd9a2d 772 * The system manager will now parse a new "vmm.notify_socket"
1ee3720e 773 system credential, which may be supplied to a VM via SMBIOS. If
ecf4be29
ZJS
774 found, the manager will send a "READY=1" notification on the
775 specified socket after boot is complete. This allows readiness
776 notification to be sent from a VM guest to the VM host over a VSOCK
777 socket.
621f7615
ZJS
778
779 * The sample PAM configuration file for systemd-user@.service now
780 includes a call to pam_namespace. This puts children of user@.service
781 in the expected namespace. (Many distributions replace their file
782 with something custom, so this change has limited effect.)
783
1ee3720e 784 * A new environment variable $SYSTEMD_DEFAULT_MOUNT_RATE_LIMIT_BURST
30fd9a2d 785 can be used to override the mount units burst late limit for
ecf4be29
ZJS
786 parsing '/proc/self/mountinfo', which was introduced in v249.
787 Defaults to 5.
be551917 788
1ee3720e 789 * Drop-ins for init.scope changing control group resource limits are
be551917
LB
790 now applied, while they were previously ignored.
791
b67ea78f
LB
792 * New build-time configuration options '-Ddefault-timeout-sec=' and
793 '-Ddefault-user-timeout-sec=' have been added, to let distributions
794 choose the default timeout for starting/stopping/aborting system and
795 user units respectively.
796
f9fdbd54
LP
797 * Service units gained a new setting OpenFile= which may be used to
798 open arbitrary files in the file system (or connect to arbitrary
799 AF_UNIX sockets in the file system), and pass the open file
800 descriptor to the invoked process via the usual file descriptor
801 passing protocol. This is useful to give unprivileged services access
802 to select files which have restrictive access modes that would
803 normally not allow this. It's also useful in case RootDirectory= or
804 RootImage= is used to allow access to files from the host environment
805 (which is after all not visible from the service if these two options
806 are used.)
807
3b288a2d
ZJS
808 Changes in udev:
809
810 * The new net naming scheme "v253" has been introduced. In the new
811 scheme, ID_NET_NAME_PATH is also set for USB devices not connected via
621f7615 812 a PCI bus. This extends the coverage of predictable interface names
3b288a2d
ZJS
813 in some embedded systems.
814
815 The "amba" bus path is now included in ID_NET_NAME_PATH, resulting in
816 a more informative path on some embedded systems.
817
1ee3720e 818 * Partition block devices will now also get symlinks in
621f7615
ZJS
819 /dev/disk/by-diskseq/<seq>-part<n>, which may be used to reference
820 block device nodes via the kernel's "diskseq" value. Previously those
821 symlinks were only created for the main block device.
822
823 * A new operator '-=' is supported for SYMLINK variables. This allows
824 symlinks to be unconfigured even if an earlier rule added them.
1d679b20 825
621f7615
ZJS
826 * 'udevadm --trigger --settle' now also works for network devices
827 that are being renamed.
1d679b20 828
621f7615 829 Changes in sd-boot, bootctl, and the Boot Loader Specification:
1d679b20 830
621f7615
ZJS
831 * systemd-boot now passes its random seed directly to the kernel's RNG
832 via the LINUX_EFI_RANDOM_SEED_TABLE_GUID configuration table, which
833 means the RNG gets seeded very early in boot before userspace has
834 started.
1d679b20 835
1ee3720e
LP
836 * systemd-boot will pass a disk-backed random seed – even when secure
837 boot is enabled – if it can additionally get a random seed from EFI
838 itself (via EFI's RNG protocol), or a prior seed in
839 LINUX_EFI_RANDOM_SEED_TABLE_GUID from a preceding bootloader.
1d679b20 840
621f7615 841 * systemd-boot-system-token.service was renamed to
1ee3720e
LP
842 systemd-boot-random-seed.service and extended to always save a random
843 seed to ESP on every boot when a compatible boot loader is used. This
844 allows a refreshed random seed to be used in the boot loader.
da403fd3 845
621f7615
ZJS
846 * systemd-boot handles various seed inputs using a domain- and
847 field-separated hashing scheme.
da403fd3 848
621f7615
ZJS
849 * systemd-boot's 'random-seed-mode' option has been removed. A system
850 token is now always required to be present for random seeds to be
851 used.
da403fd3 852
1ee3720e
LP
853 * systemd-boot now supports being loaded from other locations than the
854 ESP, for example for direct kernel boot under QEMU or when embedded
855 into the firmware.
3b288a2d 856
1ee3720e
LP
857 * systemd-boot now parses SMBIOS information to detect
858 virtualization. This information is used to skip some warnings which
859 are not useful in a VM and to conditionalize other aspects of
860 behaviour.
621f7615 861
b67ea78f
LB
862 * systemd-boot now supports a new 'if-safe' mode that will perform UEFI
863 Secure Boot automated certificate enrollment from the ESP only if it
1ee3720e
LP
864 is considered 'safe' to do so. At the moment 'safe' means running in
865 a virtual machine.
b67ea78f 866
621f7615 867 * systemd-stub now processes random seeds in the same way as
1ee3720e
LP
868 systemd-boot already does, in case a unified kernel image is being
869 used from a different bootloader than systemd-boot, or without any
870 boot load at all.
621f7615
ZJS
871
872 * bootctl will now generate a system token on all EFI systems, even
873 virtualized ones, and is activated in the case that the system token
874 is missing from either sd-boot and sd-stub booted systems.
875
876 * bootctl now implements two new verbs: 'kernel-identify' prints the
1ee3720e
LP
877 type of a kernel image file, and 'kernel-inspect' provides
878 information about the embedded command line and kernel version of
879 UKIs.
621f7615
ZJS
880
881 * bootctl now honours $KERNEL_INSTALL_CONF_ROOT with the same meaning
882 as for kernel-install.
883
f9fdbd54
LP
884 * The JSON output of "bootctl list" will now contain two more fields:
885 isDefault and isSelected are boolean fields set to true on the
886 default and currently booted boot menu entries.
887
888 * bootctl gained a new verb "unlink" for removing a boot loader entry
889 type #1 file from disk in a safe and robust way.
890
891 * bootctl also gained a new verb "cleanup" that automatically removes
892 all files from the ESP's and XBOOTLDR's "entry-token" directory, that
893 is not referenced anymore by any installed Type #1 boot loader
bbcce4f8 894 specification entry. This is particularly useful in environments where
f9fdbd54
LP
895 a large number of entries reference the same or partly the same
896 resources (for example, for snapshot-based setups).
897
3b288a2d
ZJS
898 Changes in kernel-install:
899
1ee3720e
LP
900 * A new "installation layout" can be configured as layout=uki. With
901 this setting, a Boot Loader Specification Type#1 entry will not be
33db1b90 902 created. Instead, a new kernel-install plugin 90-uki-copy.install
1ee3720e
LP
903 will copy any .efi files from the staging area into the boot
904 partition. A plugin to generate the UKI .efi file must be provided
905 separately.
3b288a2d 906
31853609
MY
907 Changes in systemctl:
908
3b288a2d
ZJS
909 * 'systemctl reboot' has dropped support for accepting a positional
910 argument as the argument to the reboot(2) syscall. Please use the
1ee3720e 911 --reboot-argument= option instead.
3b288a2d 912
1ee3720e
LP
913 * 'systemctl disable' will now warn when called on units without
914 install information. A new --no-warn option has been added that
915 silences this warning.
3b288a2d 916
621f7615 917 * New option '--drop-in=' can be used to tell 'systemctl edit' the name
1ee3720e
LP
918 of the drop-in to edit. (Previously, 'override.conf' was always
919 used.)
621f7615
ZJS
920
921 * 'systemctl list-dependencies' now respects --type= and --state=.
922
1ee3720e 923 * 'systemctl kexec' now supports XEN VMM environments.
3b288a2d 924
f9fdbd54
LP
925 * 'systemctl edit' will now tell the invoked editor to jump into the
926 first line with actual unit file data, skipping over synthesized
927 comments.
928
3b288a2d
ZJS
929 Changes in systemd-networkd and related tools:
930
c9720268 931 * The [DHCPv4] section in .network file gained new SocketPriority=
1ee3720e
LP
932 setting that assigns the Linux socket priority used by the DHCPv4 raw
933 socket. This may be used in conjunction with the
934 EgressQOSMaps=setting in [VLAN] section of .netdev file to send the
935 desired ethernet 802.1Q frame priority for DHCPv4 initial
936 packets. This cannot be achieved with netfilter mangle tables because
937 of the raw socket bypass.
938
939 * The [DHCPv4] and [IPv6AcceptRA] sections in .network file gained a
940 new QuickAck= boolean setting that enables the TCP quick ACK mode for
941 the routes configured by the acquired DHCPv4 lease or received router
1d00da37
YW
942 advertisements (RAs).
943
3b288a2d
ZJS
944 * The RouteMetric= option (for DHCPv4, DHCPv6, and IPv6 advertised
945 routes) now accepts three values, for high, medium, and low preference
946 of the router (which can be set with the RouterPreference=) setting.
947
1ee3720e
LP
948 * systemd-networkd-wait-online now supports matching via alternative
949 interface names.
3b288a2d 950
b895aa5f 951 * The [DHCPv6] section in .network file gained new SendRelease=
952 setting which enables the DHCPv6 client to send release when
953 it stops. This is the analog of the [DHCPv4] SendRelease= setting.
954 It is enabled by default.
955
58058629
YW
956 * If the Address= setting in [Network] or [Address] sections in .network
957 specified without its prefix length, then now systemd-networkd assumes
958 /32 for IPv4 or /128 for IPv6 addresses.
959
621f7615
ZJS
960 * networkctl shows network and link file dropins in status output.
961
3b288a2d
ZJS
962 Changes in systemd-dissect:
963
75438b2a 964 * systemd-dissect gained a new option --list, to print the paths of
1ee3720e 965 all files and directories in a DDI.
3b288a2d 966
1ee3720e
LP
967 * systemd-dissect gained a new option --mtree, to generate a file
968 manifest compatible with BSD mtree(5) of a DDI
3b288a2d 969
1ee3720e
LP
970 * systemd-dissect gained a new option --with, to execute a command with
971 the specified DDI temporarily mounted and used as working
972 directory. This is for example useful to convert a DDI to "tar"
973 simply by running it within a "systemd-dissect --with" invocation.
3b288a2d
ZJS
974
975 * systemd-dissect gained a new option --discover, to search for
1ee3720e
LP
976 Discoverable Disk Images (DDIs) in well-known directories of the
977 system. This will list machine, portable service and system extension
978 disk images.
3b288a2d
ZJS
979
980 * systemd-dissect now understands 2nd stage initrd images stored as a
981 Discoverable Disk Image (DDI).
982
f9fdbd54
LP
983 * systemd-dissect will now display the main UUID of GPT DDIs (i.e. the
984 disk UUID stored in the GPT header) among the other data it can show.
985
986 * systemd-dissect gained a new --in-memory switch to operate on an
987 in-memory copy of the specified DDI file. This is useful to access a
988 DDI with write access without persisting any changes. It's also
989 useful for accessing a DDI without keeping the originating file
990 system busy.
991
992 * The DDI dissection logic will now automatically detect the intended
993 sector size of disk images stored in files, based on the GPT
994 partition table arrangement. Loopback block devices for such DDIs
995 will then be configured automatically for the right sector size. This
996 is useful to make dealing with modern 4K sector size DDIs fully
997 automatic. The systemd-dissect tool will now show the detected sector
998 size among the other DDI information in its output.
999
3b288a2d
ZJS
1000 Changes in systemd-repart:
1001
621f7615
ZJS
1002 * systemd-repart gained new options --include-partitions= and
1003 --exclude-partitions= to filter operation on partitions by type UUID.
3b288a2d
ZJS
1004 This allows systemd-repart to be used to build images in which the
1005 type of one partition is set based on the contents of another
1006 partition (for example when the boot partition shall include a verity
1007 hash of the root partition).
1008
621f7615
ZJS
1009 * systemd-repart also gained a --defer-partitions= option that is
1010 similar to --exclude-partitions=, but the size of the partition is
1ee3720e
LP
1011 still taken into account when sizing partitions, but without
1012 populating it.
621f7615
ZJS
1013
1014 * systemd-repart gained a new --sector-size= option to specify what
1015 sector size should be used when an image is created.
1016
1ee3720e
LP
1017 * systemd-repart now supports generating erofs file systems via
1018 CopyFiles= (a read-only file system similar to squashfs).
3b288a2d 1019
621f7615
ZJS
1020 * The Minimize= option was extended to accept "best" (which means the
1021 most minimal image possible, but may require multiple attempts) and
1022 "guess" (which means a reasonably small image).
1023
f9fdbd54
LP
1024 * The systemd-growfs binary now comes with a regular unit file template
1025 systemd-growfs@.service which can be instantiated directly for any
1026 desired file system. (Previously, the unit was generated dynamically
1027 by various generators, but no regular unit file template was
1028 available.)
1029
621f7615
ZJS
1030 Changes in journal tools:
1031
1032 * Various systemd tools will append extra fields to log messages when
1033 in debug mode, or when SYSTEMD_ENABLE_LOG_CONTEXT=1 is set. Currently
1034 this includes information about D-Bus messages when sd-bus is used,
1035 e.g. DBUS_SENDER=, DBUS_DESTINATION=, and DBUS_PATH=, and information
1036 about devices when sd-device is used, e.g. DEVNAME= and DRIVER=.
1037 Details of what is logged and when are subject to change.
1038
1ee3720e
LP
1039 * The systemd-journald-audit.socket can now be disabled via the usual
1040 "systemctl disable" mechanism to stop collection of audit
1041 messages. Please note that it is not enabled statically anymore and
1042 must be handled by the preset/enablement logic in package
1043 installation scripts.
621f7615
ZJS
1044
1045 * New options MaxUse=, KeepFree=, MaxFileSize=, and MaxFiles= can
1046 be used to curtail disk use by systemd-journal-remote. This is
1047 similar to the options supported by systemd-journald.
1048
1049 Changes in systemd-cryptenroll, systemd-cryptsetup, and related
1ee3720e 1050 components:
621f7615 1051
1ee3720e
LP
1052 * When enrolling new keys systemd-cryptenroll now supports unlocking
1053 via FIDO2 tokens (option --unlock-fido2-device=). Previously, a
1054 password was strictly required to be specified.
621f7615 1055
ad901df9
PC
1056 * systemd-cryptsetup now supports pre-flight requests for FIDO2 tokens
1057 (except for tokens with user verification, UV) to identify tokens
1058 before authentication. Multiple FIDO2 tokens can now be enrolled at
1059 the same time, and systemd-cryptsetup will automatically select one
1060 that corresponds to one of the available LUKS key slots.
1061
1ee3720e
LP
1062 * systemd-cryptsetup now supports new options tpm2-measure-bank= and
1063 tpm2-measure-pcr= in crypttab(5). These allow specifying the TPM2 PCR
f9fdbd54
LP
1064 bank and number into which the volume key should be measured. This is
1065 automatically enabled for the encrypted root volume discovered and
1066 activated by systemd-gpt-auto-generator.
621f7615 1067
4a20ad15 1068 * systemd-gpt-auto-generator mounts the ESP and XBOOTLDR partitions with
621f7615
ZJS
1069 "noexec,nosuid,nodev".
1070
f9fdbd54
LP
1071 * systemd-gpt-auto-generator will now honour the rootfstype= and
1072 rootflags= kernel command line switches for root file systems it
1073 discovers, to match behaviour in case an explicit root fs is
1074 specified via root=.
1075
621f7615 1076 * systemd-pcrphase gained new options --machine-id and --file-system=
1ee3720e
LP
1077 to measure the machine-id and mount point information into PCR 15. New
1078 service unit files systemd-pcrmachine.service and
1079 systemd-pcrfs@.service have been added that invoke the tool with
1080 these switches during early boot.
621f7615 1081
f9fdbd54
LP
1082 * systemd-pcrphase gained a --graceful switch will make it exit cleanly
1083 with a success exit code even if no TPM device is detected.
1084
621f7615
ZJS
1085 * systemd-cryptenroll now stores the user-supplied PIN with a salt,
1086 making it harder to brute-force.
1087
1088 Changes in other tools:
3b288a2d
ZJS
1089
1090 * systemd-homed gained support for luksPbkdfForceIterations (the
1091 intended number of iterations for the PBKDF operation on LUKS).
1092
621f7615
ZJS
1093 * Environment variables $SYSTEMD_HOME_MKFS_OPTIONS_BTRFS,
1094 $SYSTEMD_HOME_MKFS_OPTIONS_EXT4, and $SYSTEMD_HOME_MKFS_OPTIONS_XFS
1ee3720e 1095 may now be used to specify additional arguments for mkfs when
621f7615 1096 systemd-homed formats a file system.
3b288a2d 1097
621f7615 1098 * systemd-hostnamed now exports the contents of
3b288a2d
ZJS
1099 /sys/class/dmi/id/bios_vendor and /sys/class/dmi/id/bios_date via two
1100 new D-Bus properties: FirmwareVendor and FirmwareDate. This allows
1101 unprivileged code to access those values.
1102
621f7615 1103 systemd-hostnamed also exports the SUPPORT_END= field from
1ee3720e 1104 os-release(5) as OperatingSystemSupportEnd. hostnamectl make uses of
621f7615
ZJS
1105 this to show the status of the installed system.
1106
1107 * systemd-measure gained an --append= option to sign multiple phase
1108 paths with different signing keys. This allows secrets to be
1109 accessible only in certain parts of the boot sequence. Note that
1110 'ukify' provides similar functionality in a more accessible form.
1111
1112 * systemd-timesyncd will now write a structured log message with
1113 MESSAGE_ID set to SD_MESSAGE_TIME_BUMP when it bumps the clock based
1ee3720e 1114 on a on-disk timestamp, similarly to what it did when reaching
621f7615
ZJS
1115 synchronization via NTP.
1116
1ee3720e
LP
1117 * systemd-timesyncd will now update the on-disk timestamp file on each
1118 boot at least once, making it more likely that the system time
1119 increases in subsequent boots.
621f7615 1120
1ee3720e 1121 * systemd-vconsole-setup gained support for system/service credentials:
621f7615
ZJS
1122 vconsole.keymap/vconsole.keymap_toggle and
1123 vconsole.font/vconsole.font_map/vconsole.font_unimap are analogous
1124 the similarly-named options in vconsole.conf.
1125
1126 * systemd-localed will now save the XKB keyboard configuration to
1127 /etc/vconsole.conf, and also read it from there with a higher
1128 preference than the /etc/X11/xorg.conf.d/00-keyboard.conf config
1129 file. Previously, this information was stored in the former file in
1130 converted form, and only in latter file in the original form. Tools
1131 which want to access keyboard configuration can now do so from a
1132 standard location.
1133
1134 * systemd-resolved gained support for configuring the nameservers and
1135 search domains via kernel command line (nameserver=, domain=) and
1136 credentials (network.dns, network.search_domains).
1137
f9fdbd54
LP
1138 * systemd-resolved will now synthesize host names for the DNS stub
1139 addresses it supports. Specifically when "_localdnsstub" is resolved,
1140 127.0.0.53 is returned, and if "_localdnsproxy" is resolved
1141 127.0.0.54 is returned.
1142
621f7615
ZJS
1143 * systemd-notify will now send a "RELOADING=1" notification when called
1144 with --reloading, and "STOPPING=1" when called with --stopping. This
1145 can be used to implement notifications from units where it's easier
1146 to call a program than to use the sd-daemon library.
1147
f9fdbd54
LP
1148 * systemd-analyze's 'plot' command can now output its information in
1149 JSON, controlled via the --json= switch. Also, new --table, and
1150 --no-legend options have been added.
621f7615
ZJS
1151
1152 * 'machinectl enable' will now automatically enable machines.target
1153 unit in addition to adding the machine unit to the target.
1154
1155 Similarly, 'machinectl start|stop' gained a --now option to enable or
1156 disable the machine unit when starting or stopping it.
1157
1ee3720e 1158 * systemd-sysusers will now create /etc/ if it is missing.
b67ea78f
LB
1159
1160 * systemd-sleep 'HibernateDelaySec=' setting is changed back to
1161 pre-v252's behaviour, and a new 'SuspendEstimationSec=' setting is
1162 added to provide the new initial value for the new automated battery
1163 estimation functionality. If 'HibernateDelaySec=' is set to any value,
1164 the automated estimate (and thus the automated hibernation on low
1165 battery to avoid data loss) functionality will be disabled.
1166
1167 * Default tmpfiles.d/ configuration will now automatically create
1168 credentials storage directory '/etc/credstore/' with the appropriate,
1169 secure permissions. If '/run/credstore/' exists, its permissions will
1170 be fixed too in case they are not correct.
1171
3b288a2d
ZJS
1172 Changes in libsystemd and shared code:
1173
1174 * sd-bus gained new convenience functions sd_bus_emit_signal_to(),
1175 sd_bus_emit_signal_tov(), and sd_bus_message_new_signal_to().
1176
621f7615 1177 * sd-id128 functions now return -EUCLEAN (instead of -EIO) when the
da890466 1178 128-bit ID in files such as /etc/machine-id has an invalid
1ee3720e
LP
1179 format. They also accept NULL as output parameter in more places,
1180 which is useful when the caller only wants to validate the inputs and
1181 does not need the output value.
621f7615
ZJS
1182
1183 * sd-login gained new functions sd_pidfd_get_session(),
1184 sd_pidfd_get_owner_uid(), sd_pidfd_get_unit(),
1185 sd_pidfd_get_user_unit(), sd_pidfd_get_slice(),
1186 sd_pidfd_get_user_slice(), sd_pidfd_get_machine_name(), and
1187 sd_pidfd_get_cgroup(), that are analogous to sd_pid_get_*(),
1188 but accept a PIDFD instead of a PID.
1189
1190 * sd-path (and systemd-path) now export four new paths:
1191 SD_PATH_SYSTEMD_SYSTEM_ENVIRONMENT_GENERATOR,
1192 SD_PATH_SYSTEMD_USER_ENVIRONMENT_GENERATOR,
1193 SD_PATH_SYSTEMD_SEARCH_SYSTEM_ENVIRONMENT_GENERATOR, and
1194 SD_PATH_SYSTEMD_SEARCH_USER_ENVIRONMENT_GENERATOR,
1195
f9fdbd54
LP
1196 * sd_notify() now supports AF_VSOCK as transport for notification
1197 messages (in addition to the existing AF_UNIX support). This is
1198 enabled if $NOTIFY_SOCKET is set in a "vsock:CID:port" format.
be551917 1199
1ee3720e 1200 * Detection of chroot() environments now works if /proc/ is not
33db1b90 1201 mounted. This affects systemd-detect-virt --chroot, but also means
1ee3720e
LP
1202 that systemd tools will silently skip various operations in such an
1203 environment.
3b288a2d 1204
8ad6e519 1205 * "Lockheed Martin Hardened Security for Intel Processors" (HS SRE)
3b288a2d
ZJS
1206 virtualization is now detected.
1207
1208 Changes in the build system:
1209
f9fdbd54
LP
1210 * Standalone variants of systemd-repart and systemd-shutdown may now be
1211 built (if -Dstandalone=true).
3b288a2d 1212
1ee3720e
LP
1213 * systemd-ac-power has been moved from /usr/lib/ to /usr/bin/, to, for
1214 example, allow scripts to conditionalize execution on AC power
1215 supply.
3b288a2d 1216
621f7615
ZJS
1217 * The libp11kit library is now loaded through dlopen(3).
1218
3b288a2d
ZJS
1219 Changes in the documentation:
1220
1221 * Specifications that are not closely tied to systemd have moved to
bdc11d26 1222 https://uapi-group.org/specifications/: the Boot Loader Specification
3b288a2d
ZJS
1223 and the Discoverable Partitions Specification.
1224
8ca20dfa
LB
1225 Contributions from: 김인수, 13r0ck, Aidan Dang, Alberto Planas,
1226 Alvin Šipraga, Andika Triwidada, AndyChi, angus-p, Anita Zhang,
aff998ae
LB
1227 Antonio Alvarez Feijoo, Arsen Arsenović, asavah, Benjamin Fogle,
1228 Benjamin Tissoires, berenddeschouwer, BerndAdameit,
1229 Bernd Steinhauser, blutch112, cake03, Callum Farmer, Carlo Teubner,
1230 Charles Hardin, chris, Christian Brauner, Christian Göttsche,
1231 Cristian Rodríguez, Daan De Meyer, Dan Streetman, DaPigGuy,
4142ea8d
LB
1232 Darrell Kavanagh, David Tardon, dependabot[bot], Dirk Su,
1233 Dmitry V. Levin, drosdeck, Edson Juliano Drosdeck, edupont,
1234 Eric DeVolder, Erik Moqvist, Evgeny Vereshchagin, Fabian Gurtner,
1235 Felix Riemann, Franck Bui, Frantisek Sumsal, Geert Lorang,
8ca20dfa 1236 Gerd Hoffmann, Gio, Hannoskaj, Hans de Goede, Hugo Carvalho,
aff998ae
LB
1237 igo95862, Ilya Leoshkevich, Ivan Shapovalov, Jacek Migacz,
1238 Jade Lovelace, Jan Engelhardt, Jan Janssen, Jan Macku, January,
1233a7cf
LB
1239 Jason A. Donenfeld, jcg, Jean-Tiare Le Bigot, Jelle van der Waa,
1240 Jeremy Linton, Jian Zhang, Jiayi Chen, Jia Zhang, Joerg Behrmann,
1241 Jörg Thalheim, Joshua Goins, joshuazivkovic, Joshua Zivkovic,
1242 Kai-Chuan Hsieh, Khem Raj, Koba Ko, Lennart Poettering, lichao,
1243 Li kunyu, Luca Boccassi, Luca BRUNO, Ludwig Nussel,
1244 Łukasz Stelmach, Lycowolf, marcel151, Marcus Schäfer, Marek Vasut,
1245 Mark Laws, Michael Biebl, Michał Kotyla, Michal Koutný,
1246 Michal Sekletár, Mike Gilbert, Mike Yuan, MkfsSion, ml,
1247 msizanoen1, mvzlb, MVZ Ludwigsburg, Neil Moore, Nick Rosbrook,
1248 noodlejetski, Pasha Vorobyev, Peter Cai, p-fpv, Phaedrus Leeds,
1249 Philipp Jungkamp, Quentin Deslandes, Raul Tambre, Ray Strode,
8ca20dfa 1250 reuben olinsky, Richard E. van der Luit, Richard Phibel,
aff998ae 1251 Ricky Tigg, Robin Humble, rogg, Rudi Heitbaum, Sam James,
4142ea8d
LB
1252 Samuel Cabrero, Samuel Thibault, Siddhesh Poyarekar, Simon Brand,
1253 Space Meyer, Spindle Security, Steve Ramage, Takashi Sakamoto,
1254 Thomas Haller, Tonći Galić, Topi Miettinen, Torsten Hilbrich,
aff998ae
LB
1255 Tuetuopay, uerdogan, Ulrich Ölmann, Valentin David,
1256 Vitaly Kuznetsov, Vito Caputo, Waltibaba, Will Fancher,
1257 William Roberts, wouter bolsterlee, Youfu Zhang, Yu Watanabe,
8ca20dfa
LB
1258 Zbigniew Jędrzejewski-Szmek, Дамјан Георгиевски,
1259 наб
31853609 1260
477fdc5a 1261 — Warsaw, 2023-02-15
903dd65b 1262
e8dc5276 1263CHANGES WITH 252 🎃:
b98445cd 1264
02380e19 1265 Announcements of Future Feature Removals:
b98445cd 1266
02380e19
ZJS
1267 * We intend to remove cgroup v1 support from systemd release after the
1268 end of 2023. If you run services that make explicit use of cgroup v1
1269 features (i.e. the "legacy hierarchy" with separate hierarchies for
1270 each controller), please implement compatibility with cgroup v2 (i.e.
1271 the "unified hierarchy") sooner rather than later. Most of Linux
b98445cd
LP
1272 userspace has been ported over already.
1273
02380e19
ZJS
1274 * We intend to remove support for split-usr (/usr mounted separately
1275 during boot) and unmerged-usr (parallel directories /bin and
1276 /usr/bin, /lib and /usr/lib, etc). This will happen in the second
1277 half of 2023, in the first release that falls into that time window.
1278 For more details, see:
f77c0840
LB
1279 https://lists.freedesktop.org/archives/systemd-devel/2022-September/048352.html
1280
10736074
LP
1281 Compatibility Breaks:
1282
02380e19
ZJS
1283 * ConditionKernelVersion= checks that use the '=' or '!=' operators
1284 will now do simple string comparisons (instead of version comparisons
3ff1721c 1285 à la stverscmp()). Version comparisons are still done for the
02380e19
ZJS
1286 ordering operators '<', '>', '<=', '>='. Moreover, if no operator is
1287 specified, a shell-style glob match is now done. This creates a minor
1288 incompatibility compared to older systemd versions when the '*', '?',
1289 '[', ']' characters are used, as these will now match as shell globs
1290 instead of literally. Given that kernel version strings typically do
1291 not include these characters we expect little breakage through this
1292 change.
1293
1294 * The service manager will now read the SELinux label used for SELinux
1295 access checks from the unit file at the time it loads the file.
1296 Previously, the label would be read at the moment of the access
1297 check, which was problematic since at that time the unit file might
1298 already have been updated or removed.
a0769ee4 1299
10736074 1300 New Features:
e49d111b 1301
8d3b7d2f
ZJS
1302 * systemd-measure is a new tool for calculating and signing expected
1303 TPM2 PCR values for a given unified kernel image (UKI) booted via
1304 sd-stub. The public key used for the signature and the signed
1305 expected PCR information can be embedded inside the UKI. This
1306 information can be extracted from the UKI by external tools and code
1307 in the image itself and is made available to userspace in the booted
1308 kernel.
25d615eb 1309
8d3b7d2f 1310 systemd-cryptsetup, systemd-cryptenroll, and systemd-creds have been
25d615eb 1311 updated to make use of this information if available in the booted
29818c4e 1312 kernel: when locking an encrypted volume/credential to the TPM
8d3b7d2f
ZJS
1313 systemd-cryptenroll/systemd-creds will use the public key to bind the
1314 volume/credential to any kernel that carries PCR information signed
1315 by the same key pair. When unlocking such volumes/credentials
1316 systemd-cryptsetup/systemd-creds will use the signature embedded in
1317 the booted UKI to gain access.
25d615eb
LP
1318
1319 Binding TPM-based disk encryption to public keys/signatures of PCR
1320 values — instead of literal PCR values — addresses the inherent
1321 "brittleness" of traditional PCR-bound TPM disk encryption schemes:
29818c4e
LP
1322 disks remain accessible even if the UKI is updated, without any TPM
1323 specific preparation during the OS update — as long as each UKI
1324 carries the necessary PCR signature information.
1325
1326 Net effect: if you boot a properly prepared kernel, TPM-bound disk
1327 encryption now defaults to be locked to kernels which carry PCR
8d3b7d2f
ZJS
1328 signatures from the same key pair. Example: if a hypothetical distro
1329 FooOS prepares its UKIs like this, TPM-based disk encryption is now –
1330 by default – bound to only FooOS kernels, and encrypted volumes bound
1331 to the TPM cannot be unlocked on kernels from other sources. (But do
1332 note this behaviour requires preparation/enabling in the UKI, and of
1333 course users can always enroll non-TPM ways to unlock the volume.)
a0769ee4 1334
9ca1efbc 1335 * systemd-pcrphase is a new tool that is invoked at six places during
a0769ee4
LP
1336 system runtime, and measures additional words into TPM2 PCR 11, to
1337 mark milestones of the boot process. This allows binding access to
02380e19 1338 specific TPM2-encrypted secrets to specific phases of the boot
29818c4e 1339 process. (Example: LUKS2 disk encryption key only accessible in the
02380e19 1340 initrd, but not later.)
e49d111b 1341
02380e19 1342 Changes in systemd itself, i.e. the manager and units
e49d111b 1343
a0769ee4
LP
1344 * The cpu controller is delegated to user manager units by default, and
1345 CPUWeight= settings are applied to the top-level user slice units
1346 (app.slice, background.slice, session.slice). This provides a degree
1347 of resource isolation between different user services competing for
1348 the CPU.
e49d111b
ZJS
1349
1350 * Systemd can optionally do a full preset in the "first boot" condition
1351 (instead of just enable-only). This behaviour is controlled by the
02380e19 1352 compile-time option -Dfirst-boot-full-preset. Right now it defaults
e49d111b
ZJS
1353 to 'false', but the plan is to switch it to 'true' for the subsequent
1354 release.
1355
9ca1efbc
ZJS
1356 * Drop-ins are now allowed for transient units too.
1357
e49d111b 1358 * Systemd will set the taint flag 'support-ended' if it detects that
02380e19
ZJS
1359 the OS image is past its end-of-support date. This date is declared
1360 in a new /etc/os-release field SUPPORT_END= described below.
e49d111b 1361
a0769ee4 1362 * Two new settings ConditionCredential= and AssertCredential= can be
4db5c45d
LP
1363 used to skip or fail units if a certain system credential is not
1364 provided.
e49d111b 1365
02380e19 1366 * ConditionMemory= accepts size suffixes (K, M, G, T, …).
e49d111b 1367
a0769ee4
LP
1368 * DefaultSmackProcessLabel= can be used in system.conf and user.conf to
1369 specify the SMACK security label to use when not specified in a unit
1370 file.
e49d111b 1371
02380e19
ZJS
1372 * DefaultDeviceTimeoutSec= can be used in system.conf and user.conf to
1373 specify the default timeout when waiting for device units to
1374 activate.
e49d111b 1375
a0769ee4
LP
1376 * C.UTF-8 is used as the default locale if nothing else has been
1377 configured.
e49d111b 1378
02380e19
ZJS
1379 * [Condition|Assert]Firmware= have been extended to support certain
1380 SMBIOS fields. For example
1381
1382 ConditionFirmware=smbios-field(board_name = "Custom Board")
1383
1384 conditionalizes the unit to run only when
1385 /sys/class/dmi/id/board_name contains "Custom Board" (without the
a0769ee4 1386 quotes).
bf07a125 1387
f77c0840 1388 * ConditionFirstBoot= now correctly evaluates as true only during the
02380e19
ZJS
1389 boot phase of the first boot. A unit executed later, after booting
1390 has completed, will no longer evaluate this condition as true.
f77c0840
LB
1391
1392 * Socket units will now create sockets in the SELinuxContext= of the
1393 associated service unit, if any.
1394
a0769ee4
LP
1395 * Boot phase transitions (start initrd → exit initrd → boot complete →
1396 shutdown) will be measured into TPM2 PCR 11, so that secrets can be
02380e19 1397 bound to a specific runtime phase. E.g.: a LUKS encryption key can be
f77c0840
LB
1398 unsealed only in the initrd.
1399
a0769ee4
LP
1400 * Service credentials (i.e. SetCredential=/LoadCredential=/…) will now
1401 also be provided to ExecStartPre= processes.
f77c0840 1402
02380e19
ZJS
1403 * Various units are now correctly ordered against
1404 initrd-switch-root.target where previously a conflict without
1405 ordering was configured. A stop job for those units would be queued,
1406 but without the ordering it could be executed only after
1407 initrd-switch-root.service, leading to units not being restarted in
1408 the host system as expected.
f77c0840
LB
1409
1410 * In order to fully support the IPMI watchdog driver, which has not yet
a0769ee4
LP
1411 been ported to the new common watchdog device interface,
1412 /dev/watchdog0 will be tried first and systemd will silently fallback
1413 to /dev/watchdog if it is not found.
f77c0840 1414
3af9dc77
LB
1415 * New watchdog-related D-Bus properties are now published by systemd:
1416 WatchdogDevice, WatchdogLastPingTimestamp,
1417 WatchdogLastPingTimestampMonotonic.
f77c0840 1418
02380e19
ZJS
1419 * At shutdown, API virtual files systems (proc, sys, etc.) will be
1420 unmounted lazily.
043ba6a1 1421
02380e19
ZJS
1422 * At shutdown, systemd will now log about processes blocking unmounting
1423 of file systems.
a0769ee4 1424
043ba6a1 1425 * A new meson build option 'clock-valid-range-usec-max' was added to
a0769ee4 1426 allow disabling system time correction if RTC returns a timestamp far
043ba6a1
LB
1427 in the future.
1428
167420a3
LB
1429 * Propagated restart jobs will no longer be discarded while a unit is
1430 activating.
043ba6a1 1431
a0769ee4
LP
1432 * PID 1 will now import system credentials from SMBIOS Type 11 fields
1433 ("OEM vendor strings"), in addition to qemu_fwcfg. This provides a
02380e19
ZJS
1434 simple, fast and generic path for supplying credentials to a VM,
1435 without involving external tools such as cloud-init/ignition.
a0769ee4
LP
1436
1437 * The CPUWeight= setting of unit files now accepts a new special value
1438 "idle", which configures "idle" level scheduling for the unit.
1439
1440 * Service processes that are activated due to a .timer or .path unit
1441 triggering will now receive information about this via environment
02380e19
ZJS
1442 variables. Note that this is information is lossy, as activation
1443 might be coalesced and only one of the activating triggers will be
1444 reported. This is hence more suited for debugging or tracing rather
1445 than for behaviour decisions.
a0769ee4 1446
9ca1efbc
ZJS
1447 * The riscv_flush_icache(2) system call has been added to the list of
1448 system calls allowed by default when SystemCallFilter= is used.
1449
1450 * The selinux context derived from the target executable, instead of
1451 'init_t' used for the manager itself, is now used when creating
1452 listening sockets for units that specify SELinuxContextFromNet=yes.
1453
e49d111b
ZJS
1454 Changes in sd-boot, bootctl, and the Boot Loader Specification:
1455
1456 * The Boot Loader Specification has been cleaned up and clarified.
1457 Various corner cases in version string comparisons have been fixed
1458 (e.g. comparisons for empty strings). Boot counting is now part of
1459 the main specification.
1460
0b75493d 1461 * New PCRs measurements are performed during boot: PCR 11 for the
a0769ee4
LP
1462 kernel+initrd combo, PCR 13 for any sysext images. If a measurement
1463 took place this is now reported to userspace via the new
1464 StubPcrKernelImage and StubPcrInitRDSysExts EFI variables.
1465
02380e19
ZJS
1466 * As before, systemd-stub will measure kernel parameters and system
1467 credentials into PCR 12. It will now report this fact via the
a0769ee4 1468 StubPcrKernelParameters EFI variable to userspace.
e49d111b 1469
a0769ee4
LP
1470 * The UEFI monotonic boot counter is now included in the updated random
1471 seed file maintained by sd-boot, providing some additional entropy.
e49d111b 1472
9ca1efbc
ZJS
1473 * sd-stub will use LoadImage/StartImage to execute the kernel, instead
1474 of arranging the image manually and jumping to the kernel entry
1475 point. sd-stub also installs a temporary UEFI SecurityOverride to
1476 allow the (unsigned) nested image to be booted. This is safe because
1477 the outer (signed) stub+kernel binary must have been verified before
1478 the stub was executed.
1479
e49d111b 1480 * Booting in EFI mixed mode (a 64-bit kernel over 32-bit UEFI firmware)
a0769ee4 1481 is now supported by sd-boot.
e49d111b 1482
a0769ee4
LP
1483 * bootctl gained a bunch of new options: --all-architectures to install
1484 binaries for all supported EFI architectures, --root= and --image=
1485 options to operate on a directory or disk image, and
1486 --install-source= to specify the source for binaries to install,
1487 --efi-boot-option-description= to control the name of the boot entry.
e49d111b
ZJS
1488
1489 * The sd-boot stub exports a StubFeatures flag, which is used by
1490 bootctl to show features supported by the stub that was used to boot.
1491
6e50cf38
JJ
1492 * The PE section offsets that are used by tools that assemble unified
1493 kernel images have historically been hard-coded. This may lead to
1494 overlapping PE sections which may break on boot. The UKI will now try
1495 to detect and warn about this.
1496
1497 Any tools that assemble UKIs must update to calculate these offsets
1498 dynamically. Future sd-stub versions may use offsets that will not
1499 work with the currently used set of hard-coded offsets!
f77c0840 1500
a0769ee4
LP
1501 * sd-stub now accepts (and passes to the initrd and then to the full
1502 OS) new PE sections '.pcrsig' and '.pcrkey' that can be used to embed
02380e19
ZJS
1503 signatures of expected PCR values, to allow sealing secrets via the
1504 TPM2 against pre-calculated PCR measurements.
f77c0840 1505
e49d111b
ZJS
1506 Changes in the hardware database:
1507
a0769ee4 1508 * 'systemd-hwdb query' now supports the --root= option.
e49d111b
ZJS
1509
1510 Changes in systemctl:
1511
a0769ee4 1512 * systemctl now supports --state= and --type= options for the 'show'
e49d111b
ZJS
1513 and 'status' verbs.
1514
1515 * systemctl gained a new verb 'list-automounts' to list automount
1516 points.
1517
a0769ee4
LP
1518 * systemctl gained support for a new --image= switch to be able to
1519 operate on the specified disk image (similar to the existing --root=
1520 which operates relative to some directory).
1521
e49d111b
ZJS
1522 Changes in systemd-networkd:
1523
1524 * networkd can set Linux NetLabel labels for integration with the
1525 network control in security modules via a new NetLabel= option.
1526
e49d111b
ZJS
1527 * The RapidCommit= is (re-)introduced to enable faster configuration
1528 via DHCPv6 (RFC 3315).
1529
f77c0840
LB
1530 * networkd gained a new option TCPCongestionControlAlgorithm= that
1531 allows setting a per-route TCP algorithm.
1532
043ba6a1
LB
1533 * networkd gained a new option KeepFileDescriptor= to allow keeping a
1534 reference (file descriptor) open on TUN/TAP interfaces, which is
1535 useful to avoid link flaps while the underlying service providing the
1536 interface is being serviced.
1537
ea3e581d
LB
1538 * RouteTable= now also accepts route table names.
1539
e49d111b
ZJS
1540 Changes in systemd-nspawn:
1541
1542 * The --bind= and --overlay= options now support relative paths.
1543
3af9dc77 1544 * The --bind= option now supports a 'rootidmap' value, which will
f77c0840
LB
1545 use id-mapped mounts to map the root user inside the container to the
1546 owner of the mounted directory on the host.
e49d111b 1547
9ca1efbc
ZJS
1548 Changes in systemd-resolved:
1549
1550 * systemd-resolved now persists DNSOverTLS in its state file too. This
1551 fixes a problem when used in combination with NetworkManager, which
1552 sends the setting only once, causing it to be lost if resolved was
1553 restarted at any point.
1554
1555 * systemd-resolved now exposes a varlink socket at
1556 /run/systemd/resolve/io.systemd.Resolve.Monitor, accessible only for
1557 root. Processed DNS requests in a JSON format will be published to
1558 any clients connected to this socket.
1559
1560 resolvectl gained a 'monitor' verb to make use of this.
1561
1562 * systemd-resolved now treats unsupported DNSSEC algorithms as INSECURE
1563 instead of returning SERVFAIL, as per RFC:
1564 https://datatracker.ietf.org/doc/html/rfc6840#section-5.2
1565
1566 * OpenSSL is the default crypto backend for systemd-resolved. (gnutls
1567 is still supported.)
1568
f77c0840 1569 Changes in libsystemd and other libraries:
e49d111b 1570
a0769ee4
LP
1571 * libsystemd now exports sd_bus_error_setfv() (a convenience function
1572 for setting bus errors), sd_id128_string_equal (a convenience
da890466 1573 function for 128-bit ID string comparisons), and
a0769ee4
LP
1574 sd_bus_message_read_strv_extend() (a function to incrementally read
1575 string arrays).
e49d111b 1576
a0769ee4
LP
1577 * libsystemd now exports sd_device_get_child_first()/_next() as a
1578 high-level interface for enumerating child devices. It also supports
1579 sd_device_new_child() for opening a child device given a device
1580 object.
f77c0840 1581
a0769ee4 1582 * libsystemd now exports sd_device_monitor_set()/get_description()
9ca1efbc 1583 which allow setting a custom description that will be used in log
a0769ee4 1584 messages by sd_device_monitor*.
46c41ade 1585
e49d111b
ZJS
1586 * Private shared libraries (libsystemd-shared-nnn.so,
1587 libsystemd-core-nnn.so) are now installed into arch-specific
1588 directories to allow multi-arch installs.
1589
f77c0840
LB
1590 * A new sd-gpt.h header is now published, listing GUIDs from the
1591 Discoverable Partitions specification. For more details see:
1592 https://systemd.io/DISCOVERABLE_PARTITIONS/
1593
a0769ee4
LP
1594 * A new function sd_hwdb_new_from_path() has been added to open a hwdb
1595 database given an explicit path to the file.
1596
1597 * The signal number argument to sd_event_add_signal() now can now be
02380e19
ZJS
1598 ORed with the SD_EVENT_SIGNAL_PROCMASK flag, causing sigprocmask() to
1599 be automatically invoked to block the specified signal. This is
1600 useful to simplify invocations as the caller doesn't have to do this
1601 manually.
a0769ee4
LP
1602
1603 * A new convenience call sd_event_set_signal_exit() has been added to
02380e19 1604 sd-event to set up signal handling so that the event loop
a0769ee4
LP
1605 automatically terminates cleanly on SIGTERM/SIGINT.
1606
e49d111b
ZJS
1607 Changes in other components:
1608
02380e19
ZJS
1609 * systemd-sysusers, systemd-tmpfiles, and systemd-sysctl configuration
1610 can now be provided via the credential mechanism.
e49d111b 1611
9ca1efbc
ZJS
1612 * systemd-analyze gained a new verb 'compare-versions' that implements
1613 comparisons for versions strings (similarly to 'rpmdev-vercmp' and
1614 'dpkg --compare-versions').
1615
1616 * 'systemd-analyze dump' is extended to accept glob patterns for unit
1617 names to limit the output to matching units.
1618
02380e19
ZJS
1619 * tmpfiles.d/ lines can read file contents to write from a credential.
1620 The new modifier char '^' is used to specify that the argument is a
1621 credential name. This mechanism is used to automatically populate
a0769ee4 1622 /etc/motd, /etc/issue, and /etc/hosts from credentials.
e49d111b 1623
a0769ee4
LP
1624 * tmpfiles.d/ may now be configured to avoid changing uid/gid/mode of
1625 an inode if the specification is prefixed with ':' and the inode
1626 already exists.
f77c0840 1627
02380e19
ZJS
1628 * Default tmpfiles.d/ configuration now carries a line to automatically
1629 use an 'ssh.authorized_keys.root' credential if provided to set up
a0769ee4 1630 the SSH authorized_keys file for the root user.
f77c0840 1631
a0769ee4
LP
1632 * systemd-tmpfiles will now gracefully handle absent source of "C" copy
1633 lines.
1634
02380e19
ZJS
1635 * tmpfiles.d/ F/w lines now optionally permit encoding of the payload
1636 in base64. This is useful to write arbitrary binary data into files.
f77c0840 1637
e49d111b 1638 * The pkgconfig and rpm macros files now export the directory for user
02380e19 1639 units as 'user_tmpfiles_dir' and '%_user_tmpfilesdir'.
e49d111b 1640
02380e19
ZJS
1641 * Detection of Apple Virtualization and detection of Parallels and
1642 KubeVirt virtualization on non-x86 archs have been added.
e49d111b
ZJS
1643
1644 * os-release gained a new field SUPPORT_END=YYYY-MM-DD to inform the
1645 user when their system will become unsupported.
1646
1647 * When performing suspend-then-hibernate, the system will estimate the
02380e19
ZJS
1648 discharge rate and use that to set the delay until hibernation and
1649 hibernate immediately instead of suspending when running from a
e49d111b
ZJS
1650 battery and the capacity is below 5%.
1651
a0769ee4 1652 * systemd-sysctl gained a --strict option to fail when a sysctl
e49d111b
ZJS
1653 setting is unknown to the kernel.
1654
a0769ee4 1655 * machinectl supports --force for the 'copy-to' and 'copy-from'
e49d111b
ZJS
1656 verbs.
1657
9ca1efbc
ZJS
1658 * coredumpctl gained the --root and --image options to look for journal
1659 files under the specified root directory, image, or block device.
e49d111b 1660
02380e19
ZJS
1661 * 'journalctl -o' and similar commands now implement a new output mode
1662 "short-delta". It is similar to "short-monotonic", but also shows the
1663 time delta between subsequent messages.
893bcd3d 1664
02380e19
ZJS
1665 * journalctl now respects the --quiet flag when verifying consistency
1666 of journal files.
f77c0840 1667
02380e19
ZJS
1668 * Journal log messages gained a new implicit field _RUNTIME_SCOPE= that
1669 will indicate whether a message was logged in the 'initrd' phase or
1670 in the 'system' phase of the boot process.
f77c0840 1671
02380e19
ZJS
1672 * Journal files gained a new compatibility flag
1673 'HEADER_INCOMPATIBLE_COMPACT'. Files with this flag implement changes
1674 to the storage format that allow reducing size on disk. As with other
1675 compatibility flags, older journalctl versions will not be able to
1676 read journal files using this new format. The environment variable
1677 'SYSTEMD_JOURNAL_COMPACT=0' can be passed to systemd-journald to
1678 disable this functionality. It is enabled by default.
7dbbb393 1679
a0769ee4
LP
1680 * systemd-run's --working-directory= switch now works when used in
1681 combination with --scope.
f77c0840 1682
9ca1efbc
ZJS
1683 * portablectl gained a --force flag to skip certain sanity checks. This
1684 is implemented using new flags accepted by systemd-portabled for the
1685 *WithExtensions() D-Bus methods: SD_SYSTEMD_PORTABLE_FORCE_ATTACH
1686 flag now means that the attach/detach checks whether the units are
1687 already present and running will be skipped. Similarly,
1688 SD_SYSTEMD_PORTABLE_FORCE_SYSEXT flag means that the check whether
1689 image name matches the name declared inside of the image will be
1690 skipped. Callers must be sure to do those checks themselves if
1691 appropriate.
f77c0840 1692
043ba6a1
LB
1693 * systemd-portabled will now use the original filename to check
1694 extension-release.NAME for correctness, in case it is passed a
1695 symlink.
1696
46c41ade
LB
1697 * systemd-portabled now uses PrivateTmp=yes in the 'trusted' profile
1698 too.
1699
a0769ee4
LP
1700 * sysext's extension-release files now support '_any' as a special
1701 value for the ID= field, to allow distribution-independent extensions
1702 (e.g.: fully statically compiled binaries, scripts). It also gained
1703 support for a new ARCHITECTURE= field that may be used to explicitly
1704 restrict an image to hosts of a specific architecture.
043ba6a1 1705
02380e19
ZJS
1706 * systemd-repart now supports creating squashfs partitions. This
1707 requires mksquashfs from squashfs-tools.
f77c0840 1708
02380e19 1709 * systemd-repart gained a --split flag to also generate split
a0769ee4 1710 artifacts, i.e. a separate file for each partition. This is useful in
766c1eae 1711 conjunction with systemd-sysupdate or other tools, or to generate
a0769ee4 1712 split dm-verity artifacts.
f77c0840
LB
1713
1714 * systemd-repart is now able to generate dm-verity partitions, including
1715 signatures.
1716
02380e19
ZJS
1717 * systemd-repart can now set a partition UUID to zero, allowing it to
1718 be filled in later, such as when using verity partitions.
f77c0840 1719
46c41ade
LB
1720 * systemd-repart now supports drop-ins for its configuration files.
1721
02380e19 1722 * Package metadata logged by systemd-coredump in the system journal is
f77c0840
LB
1723 now more compact.
1724
1725 * xdg-autostart-service now expands 'tilde' characters in Exec lines.
1726
1727 * systemd-oomd now automatically links against libatomic, if available.
1728
46c41ade
LB
1729 * systemd-oomd now sends out a 'Killed' D-Bus signal when a cgroup is
1730 killed.
1731
1732 * scope units now also provide oom-kill status.
1733
a0769ee4
LP
1734 * systemd-pstore will now try to load only the efi_pstore kernel module
1735 before running, ensuring that pstore can be used.
f77c0840 1736
46c41ade
LB
1737 * systemd-logind gained a new StopIdleSessionSec= option to stop an idle
1738 session after a preconfigure timeout.
f77c0840
LB
1739
1740 * systemd-homed will now wait up to 30 seconds for workers to terminate,
1741 rather than indefinitely.
1742
7dbbb393
LB
1743 * homectl gained a new '--luks-sector-size=' flag that allows users to
1744 select the preferred LUKS sector size. Must be a power of 2 between 512
1745 and 4096. systemd-userdbd records gained a corresponding field.
1746
f77c0840
LB
1747 * systemd-sysusers will now respect the 'SOURCE_DATE_EPOCH' environment
1748 variable when generating the 'sp_lstchg' field, to ensure an image
1749 build can be reproducible.
1750
02380e19 1751 * 'udevadm wait' will now listen to kernel uevents too when called with
a0769ee4
LP
1752 --initialized=no.
1753
1754 * When naming network devices udev will now consult the Devicetree
1755 "alias" fields for the device.
f77c0840 1756
9ca1efbc
ZJS
1757 * systemd-udev will now create infiniband/by-path and
1758 infiniband/by-ibdev links for Infiniband verbs devices.
1759
ea3e581d
LB
1760 * systemd-udev-trigger.service will now also prioritize input devices.
1761
a0769ee4
LP
1762 * ConditionACPower= and systemd-ac-power will now assume the system is
1763 running on AC power if no battery can be found.
46c41ade 1764
f77c0840
LB
1765 * All features and tools using the TPM2 will now communicate with it
1766 using a bind key. Beforehand, the tpm2 support used encrypted sessions
1767 by creating a primary key that was used to encrypt traffic. This
1768 creates a problem as the key created for encrypting the traffic could
1769 be faked by an active interposer on the bus. In cases when a pin is
1770 used, a bind key will be used. The pin is used as the auth value for
1771 the seal key, aka the disk encryption key, and that auth value will be
1772 used in the session establishment. An attacker would need the pin
1773 value to create the secure session and thus an active interposer
02380e19 1774 without the pin cannot interpose on TPM2 traffic.
f77c0840 1775
043ba6a1 1776 * systemd-growfs no longer requires udev to run.
f77c0840 1777
46c41ade
LB
1778 * systemd-backlight now will better support systems with multiple
1779 graphic cards.
1780
1781 * systemd-cryptsetup's keyfile-timeout= option now also works when a
1782 device is used as a keyfile.
1783
a0769ee4
LP
1784 * systemd-cryptenroll gained a new --unlock-key-file= option to get the
1785 unlocking key from a key file (instead of prompting the user). Note
1786 that this is the key for unlocking the volume in order to be able to
1787 enroll a new key, but it is not the key that is enrolled.
46c41ade 1788
a0769ee4
LP
1789 * systemd-dissect gained a new --umount switch that will safely and
1790 synchronously unmount all partitions of an image previously mounted
02380e19 1791 with 'systemd-dissect --mount'.
46c41ade
LB
1792
1793 * When using gcrypt, all systemd tools and services will now configure
02380e19 1794 it to prefer the OS random number generator if present.
46c41ade 1795
ea3e581d
LB
1796 * All example code shipped with documentation has been relicensed from CC0
1797 to MIT-0.
1798
1799 * Unit tests will no longer fail when running on a system without
1800 /etc/machine-id.
1801
e49d111b
ZJS
1802 Experimental features:
1803
f77c0840
LB
1804 * BPF programs can now be compiled with bpf-gcc (requires libbpf >= 1.0
1805 and bpftool >= 7.0).
e49d111b
ZJS
1806
1807 * sd-boot can automatically enroll SecureBoot keys from files found on
1808 the ESP. This enrollment can be either automatic ('force' mode) or
a0769ee4
LP
1809 controlled by the user ('manual' mode). It is sufficient to place the
1810 SecureBoot keys in the right place in the ESP and they will be picked
1811 up by sd-boot and shown in the boot menu.
1812
9ca1efbc
ZJS
1813 * The mkosi config in systemd gained support for automatically
1814 compiling a kernel with the configuration appropriate for testing
1815 systemd. This may be useful when developing or testing systemd in
1816 tandem with the kernel.
1817
9ca1efbc
ZJS
1818 Contributions from: 김인수, Adam Williamson, adrian5, Aidan Dang,
1819 Akihiko Odaki, Alban Bedel, Albert Mikaelyan, Aleksey Vasenev,
fa9b3a5f 1820 Alexander Graf, Alexander Shopov, Alexander Wilson,
f3e70c8a
LB
1821 Alper Nebi Yasak, anarcat, Anders Jonsson, Andre Kalb,
1822 Andrew Stone, Andrey Albershteyn, Anita Zhang, Ansgar Burchardt,
fa9b3a5f
LB
1823 Antonio Alvarez Feijoo, Arnaud Ferraris, Aryan singh, asavah,
1824 Avamander, Avram Lubkin, Balázs Meskó, Bastien Nocera,
1825 Benjamin Franzke, BerndAdameit, bin456789, Celeste Liu,
1826 Chih-Hsuan Yen, Christian Brauner, Christian Göttsche,
1827 Christian Hesse, Clyde Byrd III, codefiles, Colin Walters,
1828 Cristian Rodríguez, Daan De Meyer, Daniel Braunwarth,
1829 Daniel Rusek, Dan Streetman, Darsey Litzenberger, David Edmundson,
9ca1efbc
ZJS
1830 David Jaša, David Rheinsberg, David Seifert, David Tardon,
1831 dependabot[bot], Devendra Tewari, Dominique Martinet, drosdeck,
1832 Edson Juliano Drosdeck, Eduard Tolosa, eggfly, Einsler Lee,
1833 Elias Probst, Eli Schwartz, Evgeny Vereshchagin, exploide, Fei Li,
1834 Foster Snowhill, Franck Bui, Frank Dana, Frantisek Sumsal,
fa9b3a5f
LB
1835 Gerd Hoffmann, Gio, Goffredo Baroncelli, gtwang01,
1836 Guillaume W. Bres, H A, Hans de Goede, Heinrich Schuchardt,
1837 Hugo Carvalho, i-do-cpp, igo95862, j00512545, Jacek Migacz,
1838 Jade Bilkey, James Hilliard, Jan B, Janis Goldschmidt,
1839 Jan Janssen, Jan Kuparinen, Jan Luebbe, Jan Macku,
1840 Jason A. Donenfeld, Javkhlanbayar Khongorzul, Jeremy Soller,
1841 JeroenHD, jiangchuangang, João Loureiro,
f3e70c8a
LB
1842 Joaquín Ignacio Aramendía, Jochen Sprickerhof,
1843 Johannes Schauer Marin Rodrigues, Jonas Kümmerlin,
1844 Jonas Witschel, Jonathan Kang, Jonathan Lebon, Joost Heitbrink,
1845 Jörg Thalheim, josh-gordon-fb, Joyce, Kai Lueke, lastkrick,
1846 Lennart Poettering, Leon M. George, licunlong, Li kunyu,
9ca1efbc
ZJS
1847 LockBlock-dev, Loïc Collignon, Lubomir Rintel, Luca Boccassi,
1848 Luca BRUNO, Ludwig Nussel, Łukasz Stelmach, Maccraft123,
1849 Marc Kleine-Budde, Marius Vollmer, Martin Wilck, matoro,
1850 Matthias Lisin, Max Gautier, Maxim Mikityanskiy, Michael Biebl,
1851 Michal Koutný, Michal Sekletár, Michal Stanke, Mike Gilbert,
fa9b3a5f 1852 Mitchell Freiderich, msizanoen1, Nick Rosbrook, nl6720, Oğuz Ersen,
f3e70c8a
LB
1853 Oleg Solovyov, Olga Smirnova, Pablo Ceballos, Pavel Zhukov,
1854 Phaedrus Leeds, Philipp Gortan, Piotr Drąg, Pyfisch,
1855 Quentin Deslandes, Rahil Bhimjiani, Rene Hollander, Richard Huang,
1856 Richard Phibel, Rudi Heitbaum, Sam James, Sarah Brofeldt,
1857 Sean Anderson, Sebastian Scheibner, Shreenidhi Shedi,
1858 Sonali Srivastava, Steve Ramage, Suraj Krishnan, Swapnil Devesh,
1859 Takashi Sakamoto, Ted X. Toth, Temuri Doghonadze, Thomas Blume,
1860 Thomas Haller, Thomas Hebb, Tomáš Hnyk, Tomasz Paweł Gajc,
1861 Topi Miettinen, Ulrich Ölmann, undef, Uriel Corfa,
1862 Victor Westerhuis, Vincent Dagonneau, Vishal Chillara Srinivas,
1863 Vito Caputo, Weblate, Wenchao Hao, William Roberts, williamsumendap,
1864 wineway, xiaoyang, Yuri Chornoivan, Yu Watanabe,
1865 Zbigniew Jędrzejewski-Szmek, Zhaofeng Li, наб
23992ce1 1866
e8dc5276 1867 – The Great Beyond, 2022-10-31 👻
e49d111b 1868
73849408 1869CHANGES WITH 251:
00b29ca1
ZJS
1870
1871 Backwards-incompatible changes:
1872
61ade257 1873 * The minimum kernel version required has been bumped from 3.13 to 4.15,
b586cbde
LB
1874 and CLOCK_BOOTTIME is now assumed to always exist.
1875
7503fbd4 1876 * C11 with GNU extensions (aka "gnu11") is now used to build our
8c70e802 1877 components. Public API headers are still restricted to ISO C89.
7503fbd4 1878
00b29ca1
ZJS
1879 * In v250, a systemd-networkd feature that automatically configures
1880 routes to addresses specified in AllowedIPs= was added and enabled by
1881 default. However, this causes network connectivity issues in many
1882 existing setups. Hence, it has been disabled by default since
1883 systemd-stable 250.3. The feature can still be used by explicitly
1884 configuring RouteTable= setting in .netdev files.
1d2842d1 1885
169bb1de
LB
1886 * Jobs started via StartUnitWithFlags() will no longer return 'skipped'
1887 when a Condition*= check does not succeed, restoring the JobRemoved
1888 signal to the behaviour it had before v250.
1889
e1f0c136
LP
1890 * The org.freedesktop.portable1 methods GetMetadataWithExtensions() and
1891 GetImageMetadataWithExtensions() have been fixed to provide an extra
00b29ca1
ZJS
1892 return parameter, containing the actual extension release metadata.
1893 The current implementation was judged to be broken and unusable, and
1894 thus the usual procedure of adding a new set of methods was skipped,
1895 and backward compatibility broken instead on the assumption that
1896 nobody can be affected given the current state of this interface.
ce3ca32c 1897
65df0ce3
ZJS
1898 * All kernels supported by systemd mix bytes returned by RDRAND (or
1899 similar) into the entropy pool at early boot. This means that on
1900 those systems, even if /dev/urandom is not yet initialized, it still
1901 returns bytes that are of at least RDRAND quality. For that reason,
1902 we no longer have reason to invoke RDRAND from systemd itself, which
1903 has historically been a source of bugs. Furthermore, kernels ≥5.6
1904 provide the getrandom(GRND_INSECURE) interface for returning random
1905 bytes before the entropy pool is initialized without warning into
1906 kmsg, which is what we attempt to use if available. systemd's direct
1907 usage of RDRAND has been removed. x86 systems ≥Broadwell that are
1908 running an older kernel may experience kmsg warnings that were not
1909 seen with 250. For newer kernels, non-x86 systems, or older x86
1910 systems, there should be no visible changes.
00b29ca1
ZJS
1911
1912 * sd-boot will now measure the kernel command line into TPM PCR 12
1913 rather than PCR 8. This improves usefulness of the measurements on
60f53dd5 1914 systems where sd-boot is chainloaded from Grub. Grub measures all
00b29ca1
ZJS
1915 commands its executes into PCR 8, which makes it very hard to use
1916 reasonably, hence separate ourselves from that and use PCR 12
1917 instead, which is what certain Ubuntu editions already do. To retain
0f6f9dc6 1918 compatibility with systems running older systemd systems a new meson
00b29ca1
ZJS
1919 option 'efi-tpm-pcr-compat' has been added (which defaults to false).
1920 If enabled, the measurement is done twice: into the new-style PCR 12
1921 *and* the old-style PCR 8. It's strongly advised to migrate all users
1922 to PCR 12 for this purpose in the long run, as we intend to remove
ec5e113f 1923 this compatibility feature in two years' time.
00b29ca1
ZJS
1924
1925 * busctl capture now writes output in the newer pcapng format instead
1926 of pcap.
1927
65df0ce3
ZJS
1928 * A udev rule that imported hwdb matches for USB devices with lowercase
1929 hexadecimal vendor/product ID digits was added in systemd 250. This
1930 has been reverted, since uppercase hexadecimal digits are supposed to
1931 be used, and we already had a rule with the appropriate match.
00b29ca1
ZJS
1932
1933 Users might need to adjust their local hwdb entries.
1934
e1f0c136
LP
1935 * arch_prctl(2) has been moved to the @default set in the syscall filters
1936 (as exposed via the SystemCallFilter= setting in service unit files).
00b29ca1
ZJS
1937 It is apparently used by the linker now.
1938
eb1446f8
DDM
1939 * The tmpfiles entries that create the /run/systemd/netif directory and
1940 its subdirectories were moved from tmpfiles.d/systemd.conf to
1941 tmpfiles.d/systemd-network.conf.
1942
1943 Users might need to adjust their files that override tmpfiles.d/systemd.conf
1944 to account for this change.
1945
7f2ec323
LB
1946 * The requirement for Portable Services images to contain a well-formed
1947 os-release file (i.e.: contain at least an ID field) is now enforced.
1948 This applies to base images and extensions, and also to systemd-sysext.
1949
942473dc 1950 Changes in the Boot Loader Specification, kernel-install and sd-boot:
00b29ca1 1951
5e9c57d2
LP
1952 * kernel-install's and bootctl's Boot Loader Specification Type #1
1953 entry generation logic has been reworked. The user may now pick
1954 explicitly by which "token" string to name the installation's boot
00b29ca1 1955 entries, via the new /etc/kernel/entry-token file or the new
5e9c57d2
LP
1956 --entry-token= switch to bootctl. By default — as before — the
1957 entries are named after the local machine ID. However, in "golden
1958 image" environments, where the machine ID shall be initialized on
1959 first boot (as opposed to at installation time before first boot) the
e1f0c136 1960 machine ID will not be available at build time. In this case the
00b29ca1
ZJS
1961 --entry-token= switch to bootctl (or the /etc/kernel/entry-token
1962 file) may be used to override the "token" for the entries, for
1963 example the IMAGE_ID= or ID= fields from /etc/os-release. This will
1964 make the OS images independent of any machine ID, and ensure that the
1965 images will not carry any identifiable information before first boot,
1966 but on the other hand means that multiple parallel installations of
1967 the very same image on the same disk cannot be supported.
5e9c57d2 1968
00b29ca1
ZJS
1969 Summary: if you are building golden images that shall acquire
1970 identity information exclusively on first boot, make sure to both
1971 remove /etc/machine-id *and* to write /etc/kernel/entry-token to the
e1f0c136 1972 value of the IMAGE_ID= or ID= field of /etc/os-release or another
00b29ca1 1973 suitable identifier before deploying the image.
deb5c820 1974
00b29ca1 1975 * The Boot Loader Specification has been extended with
e1f0c136
LP
1976 /loader/entries.srel file located in the EFI System Partition (ESP)
1977 that disambiguates the format of the entries in the /loader/entries/
1978 directory (in order to discern them from incompatible uses of this
1979 directory by other projects). For entries that follow the
1980 Specification, the string "type1" is stored in this file.
3fbd5f20 1981
e1f0c136
LP
1982 bootctl will now write this file automatically when installing the
1983 systemd-boot boot loader.
00b29ca1
ZJS
1984
1985 * kernel-install supports a new initrd_generator= setting in
1986 /etc/kernel/install.conf, that is exported as
1987 $KERNEL_INSTALL_INITRD_GENERATOR to kernel-install plugins. This
e1f0c136 1988 allows choosing different initrd generators.
00b29ca1
ZJS
1989
1990 * kernel-install will now create a "staging area" (an initially-empty
1991 directory to gather files for a Boot Loader Specification Type #1
1992 entry). The path to this directory is exported as
1993 $KERNEL_INSTALL_STAGING_AREA to kernel-install plugins, which should
1994 drop files there instead of writing them directly to the final
1995 location. kernel-install will move them when all files have been
1996 prepared successfully.
429cddba 1997
0c6e746b
YW
1998 * New option sort-key= has been added to the Boot Loader Specification
1999 to override the sorting order of the entries in the boot menu. It is
2000 read by sd-boot and bootctl, and will be written by kernel-install,
2001 with the default value of IMAGE_ID= or ID= fields from
2002 os-release. Together, this means that on multiboot installations,
2003 entries should be grouped and sorted in a predictable way.
2004
942473dc
ZJS
2005 * The sort order of boot entries has been updated: entries which have
2006 the new field sort-key= are sorted by it first, and all entries
2007 without it are ordered later. After that, entries are sorted by
2008 version so that newest entries are towards the beginning of the list.
2009
0c6e746b
YW
2010 * The kernel-install tool gained a new 'inspect' verb which shows the
2011 paths and other settings used.
2012
2013 * sd-boot can now optionally beep when the menu is shown and menu
2014 entries are selected, which can be useful on machines without a
2015 working display. (Controllable via a loader.conf setting.)
2016
2017 * The --make-machine-id-directory= switch to bootctl has been replaced
2018 by --make-entry-directory=, given that the entry directory is not
2019 necessarily named after the machine ID, but after some other suitable
2020 ID as selected via --entry-token= described above. The old name of
2021 the option is still understood to maximize compatibility.
2022
2023 * 'bootctl list' gained support for a new --json= switch to output boot
2024 menu entries in JSON format.
2025
211b564a
ZJS
2026 * 'bootctl is-installed' now supports the --graceful, and various verbs
2027 omit output with the new option --quiet.
2028
942473dc 2029 Changes in systemd-homed:
0c6e746b 2030
dfdaf9f2
LP
2031 * Starting with v250 systemd-homed uses UID/GID mapping on the mounts
2032 of activated home directories it manages (if the kernel and selected
2033 file systems support it). So far it mapped three UID ranges: the
2034 range from 0…60000, the user's own UID, and the range 60514…65534,
da890466 2035 leaving everything else unmapped (in other words, the 16-bit UID range
dfdaf9f2 2036 is mapped almost fully, with the exception of the UID subrange used
00b29ca1
ZJS
2037 for systemd-homed users, with one exception: the user's own UID).
2038 Unmapped UIDs may not be used for file ownership in the home
5cf84d25 2039 directory — any chown() attempts with them will fail. With this
dfdaf9f2
LP
2040 release a fourth range is added to these mappings:
2041 524288…1879048191. This range is the UID range intended for container
2042 uses, see:
2043
2044 https://systemd.io/UIDS-GIDS
2045
2046 This range may be used for container managers that place container OS
2047 trees in the home directory (which is a questionable approach, for
2048 quota, permission, SUID handling and network file system
2049 compatibility reasons, but nonetheless apparently commonplace). Note
2050 that this mapping is mapped 1:1 in a pass-through fashion, i.e. the
2051 UID assignments from the range are not managed or mapped by
2052 `systemd-homed`, and must be managed with other mechanisms, in the
2053 context of the local system.
2054
2055 Typically, a better approach to user namespacing in relevant
2056 container managers would be to leave container OS trees on disk at
2057 UID offset 0, but then map them to a dynamically allocated runtime
2058 UID range via another UID mount map at container invocation
2059 time. That way user namespace UID ranges become strictly a runtime
2060 concept, and do not leak into persistent file systems, persistent
2061 user databases or persistent configuration, thus greatly simplifying
2062 handling, and improving compatibility with home directories intended
2063 to be portable like the ones managed by systemd-homed.
7e7a9f9c 2064
942473dc 2065 Changes in shared libraries:
00b29ca1
ZJS
2066
2067 * A new libsystemd-core-<version>.so private shared library is
2068 installed under /usr/lib/systemd/system, mirroring the existing
2069 libsystemd-shared-<version>.so library. This allows the total
e1f0c136 2070 installation size to be reduced by binary code reuse.
00b29ca1 2071
e1f0c136 2072 * The <version> tag used in the name of libsystemd-shared.so and
0f6f9dc6
ZJS
2073 libsystemd-core.so can be configured via the meson option
2074 'shared-lib-tag'. Distributions may build subsequent versions of the
2075 systemd package with unique tags (e.g. the full package version),
2076 thus allowing multiple installations of those shared libraries to be
2077 available at the same time. This is intended to fix an issue where
2078 programs that link to those libraries would fail to execute because
2079 they were installed earlier or later than the appropriate version of
2080 the library.
00b29ca1 2081
0c6e746b
YW
2082 * The sd-id128 API gained a new call sd_id128_to_uuid_string() that is
2083 similar to sd_id128_to_string() but formats the ID in RFC 4122 UUID
ec5e113f 2084 format instead of as a simple series of hex characters.
0c6e746b 2085
61ade257
LP
2086 * The sd-device API gained two new calls sd_device_new_from_devname()
2087 and sd_device_new_from_path() which permit allocating an sd_device
2088 object from a device node name or file system path.
2089
2090 * sd-device also gained a new call sd_device_open() which will open the
2091 device node associated with a device for which an sd_device object
2092 has been allocated. The call is supposed to address races around
2093 device nodes being removed/recycled due to hotplug events, or media
2094 change events: the call checks internally whether the major/minor of
2095 the device node and the "diskseq" (in case of block devices) match
2096 with the metadata loaded in the sd_device object, thus ensuring that
2097 the device once opened really matches the provided sd_device object.
2098
942473dc 2099 Changes in PID1, systemctl, and systemd-oomd:
0c6e746b 2100
a8c122c4
LB
2101 * A new set of service monitor environment variables will be passed to
2102 OnFailure=/OnSuccess= handlers, but only if exactly one unit lists the
2103 handler unit as OnFailure=/OnSuccess=. The variables are:
2104 $MONITOR_SERVICE_RESULT, $MONITOR_EXIT_CODE, $MONITOR_EXIT_STATUS,
2105 $MONITOR_INVOCATION_ID and $MONITOR_UNIT. For cases when a single
2106 handler needs to watch multiple units, use a templated handler.
2107
e1f0c136
LP
2108 * A new ExtensionDirectories= setting in service unit files allows
2109 system extensions to be loaded from a directory. (It is similar to
2110 ExtensionImages=, but takes paths to directories, instead of
2111 disk image files.)
00b29ca1 2112
e1f0c136 2113 'portablectl attach --extension=' now also accepts directory paths.
00b29ca1 2114
e1f0c136
LP
2115 * The user.delegate and user.invocation_id extended attributes on
2116 cgroups are used in addition to trusted.delegate and
2117 trusted.invocation_id. The latter pair requires privileges to set,
2118 but the former doesn't and can be also set by the unprivileged user
2119 manager.
00b29ca1
ZJS
2120
2121 (Only supported on kernels ≥5.6.)
2122
942473dc
ZJS
2123 * Units that were killed by systemd-oomd will now have a service result
2124 of 'oom-kill'. The number of times a service was killed is tallied
2125 in the 'user.oomd_ooms' extended attribute.
2126
2127 The OOMPolicy= unit file setting is now also honoured by
2128 systemd-oomd.
2129
e1f0c136
LP
2130 * In unit files the new %y/%Y specifiers can be used to refer to
2131 normalized unit file path, which is particularly useful for symlinked
2132 unit files.
00b29ca1 2133
d0aba07f 2134 The new %q specifier resolves to the pretty hostname
e1f0c136 2135 (i.e. PRETTY_HOSTNAME= from /etc/machine-info).
00b29ca1 2136
e1f0c136
LP
2137 The new %d specifier resolves to the credentials directory of a
2138 service (same as $CREDENTIALS_DIRECTORY).
00b29ca1 2139
f72f8021
LB
2140 * The RootDirectory=, MountAPIVFS=, ExtensionDirectories=,
2141 *Capabilities*=, ProtectHome=, *Directory=, TemporaryFileSystem=,
2142 PrivateTmp=, PrivateDevices=, PrivateNetwork=, NetworkNamespacePath=,
2143 PrivateIPC=, IPCNamespacePath=, PrivateUsers=, ProtectClock=,
2144 ProtectKernelTunables=, ProtectKernelModules=, ProtectKernelLogs=,
2145 MountFlags= service settings now also work in unprivileged user
2146 services, i.e. those run by the user's --user service manager, as long
2147 as user namespaces are enabled on the system.
60a777b5 2148
e1f0c136
LP
2149 * Services with Restart=always and a failing ExecCondition= will no
2150 longer be restarted, to bring ExecCondition= behaviour in line with
2151 Condition*= settings.
00b29ca1
ZJS
2152
2153 * LoadCredential= now accepts a directory as the argument; all files
e1f0c136 2154 from the directory will be loaded as credentials.
00b29ca1 2155
60a777b5
LP
2156 * A new D-Bus property ControlGroupId is now exposed on service units,
2157 that encapsulates the service's numeric cgroup ID that newer kernels
d6297626 2158 assign to each cgroup.
60a777b5 2159
0c6e746b
YW
2160 * PID 1 gained support for configuring the "pre-timeout" of watchdog
2161 devices and the associated governor, via the new
2162 RuntimeWatchdogPreSec= and RuntimeWatchdogPreGovernor= configuration
2163 options in /etc/systemd/system.conf.
00b29ca1 2164
0c6e746b
YW
2165 * systemctl's --timestamp= option gained a new choice "unix", to show
2166 timestamp as unix times, i.e. seconds since 1970, Jan 1st.
2167
61ade257
LP
2168 * A new "taint" flag named "old-kernel" is introduced which is set when
2169 the kernel systemd runs on is older then the current baseline version
2170 (see above). The flag is shown in "systemctl status" output.
2171
2172 * Two additional taint flags "short-uid-range" and "short-gid-range"
2173 have been added as well, which are set when systemd notices it is run
2174 within a userns namespace that does not define the full 0…65535 UID
2175 range
2176
2177 * A new "unmerged-usr" taint flag has been added that is set whenever
2178 running on systems where /bin/ + /sbin/ are *not* symlinks to their
ec5e113f
PL
2179 counterparts in /usr/, i.e. on systems where the /usr/-merge has not
2180 been completed.
61ade257
LP
2181
2182 * Generators invoked by PID 1 will now have a couple of useful
2183 environment variables set describing the execution context a
2184 bit. $SYSTEMD_SCOPE encodes whether the generator is called from the
2185 system service manager, or from the per-user service
2186 manager. $SYSTEMD_IN_INITRD encodes whether the generator is invoked
2187 in initrd context or on the host. $SYSTEMD_FIRST_BOOT encodes whether
2188 systemd considers the current boot to be a "first"
2189 boot. $SYSTEMD_VIRTUALIZATION encode whether virtualization is
2190 detected and which type of hypervisor/container
2191 manager. $SYSTEMD_ARCHITECTURE indicates which architecture the
2192 kernel is built for.
2193
be1e6592
LP
2194 * PID 1 will now automatically pick up system credentials from qemu's
2195 fw_cfg interface, thus allowing passing arbitrary data into VM
2196 systems similar to how this is already supported for passing them
2197 into `systemd-nspawn` containers. Credentials may now also be passed
2198 in via the new kernel command line option `systemd.set_credential=`
2199 (note that kernel command line options are world-readable during
2200 runtime, and only useful for credentials that require no
2201 confidentiality). The credentials that can be passed to unified
2202 kernels that use the `systemd-stub` UEFI stub are now similarly
2203 picked up automatically. Automatic importing of system credentials
2204 this way can be turned off via the new
2205 `systemd.import_credentials=no` kernel command line option.
2206
50db8d97
ZJS
2207 * LoadCredential= will now automatically look for credentials in the
2208 /etc/credstore/, /run/credstore/, /usr/lib/credstore/ directories if
2209 the argument is not an absolute path. Similarly,
2210 LoadCredentialEncrypted= will check the same directories plus
be1e6592 2211 /etc/credstore.encrypted/, /run/credstore.encrypted/ and
50db8d97
ZJS
2212 /usr/lib/credstore.encrypted/. The idea is to use those directories
2213 as the system-wide location for credentials that services should pick
2214 up automatically.
be1e6592
LP
2215
2216 * System and service credentials are described in great detail in a new
2217 document:
2218
2219 https://systemd.io/CREDENTIALS
2220
942473dc 2221 Changes in systemd-journald:
0c6e746b
YW
2222
2223 * The journal JSON export format has been added to listed of stable
2224 interfaces (https://systemd.io/PORTABILITY_AND_STABILITY/).
2225
2226 * journalctl --list-boots now supports JSON output and the --reverse option.
2227
2228 * Under docs/: JOURNAL_EXPORT_FORMATS was imported from the wiki and
2229 updated, BUILDING_IMAGES is new:
2230
2231 https://systemd.io/JOURNAL_EXPORT_FORMATS
2232 https://systemd.io/BUILDING_IMAGES
2233
942473dc 2234 Changes in udev:
0c6e746b
YW
2235
2236 * Two new hwdb files have been added. One lists "handhelds" (PDAs,
2237 calculators, etc.), the other AV production devices (DJ tables,
2238 keypads, etc.) that should accessible to the seat owner user by
2239 default.
2240
2241 * udevadm trigger gained a new --prioritized-subsystem= option to
2242 process certain subsystems (and all their parent devices) earlier.
2243
2244 systemd-udev-trigger.service now uses this new option to trigger
2245 block and TPM devices first, hopefully making the boot a bit faster.
2246
2247 * udevadm trigger now implements --type=all, --initialized-match,
2248 --initialized-nomatch to trigger both subsystems and devices, only
2249 already-initialized devices, and only devices which haven't been
2250 initialized yet, respectively.
2251
61ade257
LP
2252 * udevadm gained a new "wait" command for safely waiting for a specific
2253 device to show up in the udev device database. This is useful in
2254 scripts that asynchronously allocate a block device (e.g. through
2255 repartitioning, or allocating a loopback device or similar) and need
2256 to synchronize on the creation to complete.
2257
2258 * udevadm gained a new "lock" command for locking one or more block
2259 devices while formatting it or writing a partition table to it. It is
2260 an implementation of https://systemd.io/BLOCK_DEVICE_LOCKING and
2261 usable in scripts dealing with block devices.
2262
2263 * udevadm info will show a couple of additional device fields in its
2264 output, and will not apply a limited set of coloring to line types.
2265
2266 * udevadm info --tree will now show a tree of objects (i.e. devices and
2267 suchlike) in the /sys/ hierarchy.
2268
2269 * Block devices will now get a new set of device symlinks in
2270 /dev/disk/by-diskseq/<nr>, which may be used to reference block
2271 device nodes via the kernel's "diskseq" value. Note that this does
2272 not guarantee that opening a device by a symlink like this will
2273 guarantee that the opened device actually matches the specified
2274 diskseq value. To be safe against races, the actual diskseq value of
2275 the opened device (BLKGETDISKSEQ ioctl()) must still be compred with
2276 the one in the symlink path.
2277
0c6e746b 2278 * .link files gained support for setting MDI/MID-X on a link.
60a777b5 2279
00b29ca1
ZJS
2280 * .link files gained support for [Match] Firmware= setting to match on
2281 the device firmware description string. By mistake, it was previously
2282 only supported in .network files.
2283
0c6e746b
YW
2284 * .link files gained support for [Link] SR-IOVVirtualFunctions= setting
2285 and [SR-IOV] section to configure SR-IOV virtual functions.
2286
942473dc 2287 Changes in systemd-networkd:
0c6e746b
YW
2288
2289 * The default scope for unicast routes configured through [Route]
2290 section is changed to "link", to make the behavior consistent with
2291 "ip route" command. The manual configuration of [Route] Scope= is
2292 still honored.
2293
2294 * A new unit systemd-networkd-wait-online@<interface>.service has been
2295 added that can be used to wait for a specific network interface to be
2296 up.
2297
2298 * systemd-networkd gained a new [Bridge] Isolated=true|false setting
2299 that configures the eponymous kernel attribute on the bridge.
2300
2301 * .netdev files now can be used to create virtual WLAN devices, and
2302 configure various settings on them, via the [WLAN] section.
2303
00b29ca1
ZJS
2304 * .link/.network files gained support for [Match] Kind= setting to match
2305 on device kind ("bond", "bridge", "gre", "tun", "veth", etc.)
2306
2307 This value is also shown by 'networkctl status'.
2308
0c6e746b
YW
2309 * The Local= setting in .netdev files for various virtual network
2310 devices gained support for specifying, in addition to the network
2311 address, the name of a local interface which must have the specified
2312 address.
60a777b5 2313
0c6e746b
YW
2314 * systemd-networkd gained a new [Tunnel] External= setting in .netdev
2315 files, to configure tunnels in external mode (a.k.a. collect metadata
2316 mode).
2317
2318 * [Network] L2TP= setting was removed. Please use interface specifier in
2319 Local= setting in .netdev files of corresponding L2TP interface.
00b29ca1
ZJS
2320
2321 * New [DHCPServer] BootServerName=, BootServerAddress=, and
2322 BootFilename= settings can be used to configure the server address,
2323 server name, and file name sent in the DHCP packet (e.g. to configure
2324 PXE boot).
2325
942473dc 2326 Changes in systemd-resolved:
00b29ca1 2327
0c6e746b
YW
2328 * systemd-resolved is started earlier (in sysinit.target), so it
2329 available earlier and will also be started in the initrd if installed
2330 there.
e1f0c136 2331
942473dc 2332 Changes in disk encryption:
00b29ca1 2333
0c6e746b
YW
2334 * systemd-cryptenroll can now control whether to require the user to
2335 enter a PIN when using TPM-based unlocking of a volume via the new
2336 --tpm2-with-pin= option.
60a777b5 2337
0c6e746b 2338 Option tpm2-pin= can be used in /etc/crypttab.
60a777b5 2339
0c6e746b
YW
2340 * When unlocking devices via TPM, TPM2 parameter encryption is now
2341 used, to ensure that communication between CPU and discrete TPM chips
2342 cannot be eavesdropped to acquire disk encryption keys.
60a777b5 2343
61ade257
LP
2344 * A new switch --fido2-credential-algorithm= has been added to
2345 systemd-cryptenroll allowing selection of the credential algorithm to
2346 use when binding encryption to FIDO2 tokens.
2347
942473dc 2348 Changes in systemd-hostnamed:
60a777b5 2349
0c6e746b
YW
2350 * HARDWARE_VENDOR= and HARDWARE_MODEL= can be set in /etc/machine-info
2351 to override the values gleaned from the hwdb.
2352
2353 * A ID_CHASSIS property can be set in the hwdb (for the DMI device
2354 /sys/class/dmi/id) to override the chassis that is reported by
2355 hostnamed.
2356
2357 * hostnamed's D-Bus interface gained a new method GetHardwareSerial()
61ade257
LP
2358 for reading the hardware serial number, as reportd by DMI. It also
2359 exposes a new method D-Bus property FirmwareVersion that encode the
2360 firmware version of the system.
0c6e746b 2361
942473dc 2362 Changes in other components:
0c6e746b
YW
2363
2364 * /etc/locale.conf is now populated through tmpfiles.d factory /etc/
2365 handling with the values that were configured during systemd build
2366 (if /etc/locale.conf has not been created through some other
2367 mechanism). This means that /etc/locale.conf should always have
2368 reasonable contents and we avoid a potential mismatch in defaults.
2369
2370 * The userdbctl tool will now show UID range information as part of the
2371 list of known users.
60a777b5 2372
942473dc
ZJS
2373 * A new build-time configuration setting default-user-shell= can be
2374 used to set the default shell for user records and nspawn shell
30fd9a2d 2375 invocations (instead of the default /bin/bash).
942473dc 2376
61ade257
LP
2377 * systemd-timesyncd now provides a D-Bus API for receiving NTP server
2378 information dynamically at runtime via IPC.
2379
2380 * The systemd-creds tool gained a new "has-tpm2" verb, which reports
2381 whether a functioning TPM2 infrastructure is available, i.e. if
2382 firmware, kernel driver and systemd all have TPM2 support enabled and
2383 a device found.
2384
2385 * The systemd-creds tool gained support for generating encrypted
2386 credentials that are using an empty encryption key. While this
2387 provides no integrity nor confidentiality it's useful to implement
2388 codeflows that work the same on TPM-ful and TPM2-less systems. The
2389 service manager will only accept credentials "encrypted" that way if
2390 a TPM2 device cannot be detected, to ensure that credentials
2391 "encrypted" like that cannot be used to trick TPM2 systems.
2392
211b564a
ZJS
2393 * When deciding whether to colorize output, all systemd programs now
2394 also check $COLORTERM (in addition to $NO_COLOR, $SYSTEMD_COLORS, and
2395 $TERM).
2396
7f2ec323
LB
2397 * Meson's new install_tag feature is now in use for several components,
2398 allowing to build and install select binaries only: pam, nss, devel
2399 (pkg-config files), systemd-boot, libsystemd, libudev. Example:
2400 $ meson build systemd-boot
2401 $ meson install --tags systemd-boot --no-rebuild
2402 https://mesonbuild.com/Installing.html#installation-tags
2403
2404 * A new build configuration option has been added, to allow selecting the
2405 default compression algorithm used by systemd-journald and systemd-coredump.
2406 This allows to build-in support for decompressing all supported formats,
2407 but choose a specific one for compression. E.g.:
2408 $ meson -Ddefault-compression=xz
2409
00b29ca1
ZJS
2410 Experimental features:
2411
2412 * sd-boot gained a new *experimental* setting "reboot-for-bitlocker" in
2413 loader.conf that implements booting Microsoft Windows from the
2414 sd-boot in a way that first reboots the system, to reset the TPM
2415 PCRs. This improves compatibility with BitLocker's TPM use, as the
2416 PCRs will only record the Windows boot process, and not sd-boot
2417 itself, thus retaining the PCR measurements not involving sd-boot.
2418 Note that this feature is experimental for now, and is likely going
2419 to be generalized and renamed in a future release, without retaining
2420 compatibility with the current implementation.
2421
2422 * A new systemd-sysupdate component has been added that automatically
2423 discovers, downloads, and installs A/B-style updates for the host
2424 installation itself, or container images, portable service images,
2425 and other assets. See the new systemd-sysupdate man page for updates.
ffa047a0 2426
73849408 2427 Contributions from: 4piu, Adam Williamson, adrian5, Albert Brox,
0950eee5
LB
2428 AlexCatze, Alex Henrie, Alfonso Sánchez-Beato, Alice S,
2429 Alvin Šipraga, amarjargal, Amarjargal, Andrea Pappacoda,
2430 Andreas Rammhold, Andy Chi, Anita Zhang, Antonio Alvarez Feijoo,
2431 Arfrever Frehtes Taifersar Arahesis, ash, Bastien Nocera, Be,
410b996a
LB
2432 bearhoney, Ben Efros, Benjamin Berg, Benjamin Franzke,
2433 Brett Holman, Christian Brauner, Clyde Byrd III, Curtis Klein,
2434 Daan De Meyer, Daniele Medri, Daniel Mack, Danilo Krummrich,
2435 David, David Bond, Davide Cavalca, David Tardon, davijosw,
2436 dependabot[bot], Donald Chan, Dorian Clay, Eduard Tolosa,
2437 Elias Probst, Eli Schwartz, Erik Sjölund, Evgeny Vereshchagin,
2438 Federico Ceratto, Franck Bui, Frantisek Sumsal, Gaël PORTAY,
2439 Georges Basile Stavracas Neto, Gibeom Gwon, Goffredo Baroncelli,
2440 Grigori Goronzy, Hans de Goede, Heiko Becker, Hugo Carvalho,
2441 Jakob Lell, James Hilliard, Jan Janssen, Jason A. Donenfeld,
2442 Joan Bruguera, Joerie de Gram, Josh Triplett, Julia Kartseva,
2443 Kazuo Moriwaka, Khem Raj, ksa678491784, Lance, Lan Tian,
2444 Laura Barcziova, Lennart Poettering, Leviticoh, licunlong,
2445 Lidong Zhong, lincoln auster, Lubomir Rintel, Luca Boccassi,
2446 Luca BRUNO, lucagoc, Ludwig Nussel, Marcel Hellwig, march1993,
2447 Marco Scardovi, Mario Limonciello, Mariusz Tkaczyk,
2448 Markus Weippert, Martin, Martin Liska, Martin Wilck, Matija Skala,
0950eee5
LB
2449 Matthew Blythe, Matthias Lisin, Matthijs van Duin, Matt Walton,
2450 Max Gautier, Michael Biebl, Michael Olbrich, Michal Koutný,
2451 Michal Sekletár, Mike Gilbert, MkfsSion, Morten Linderud,
410b996a
LB
2452 Nick Rosbrook, Nikolai Grigoriev, Nikolai Kostrigin,
2453 Nishal Kulkarni, Noel Kuntze, Pablo Ceballos, Peter Hutterer,
2454 Peter Morrow, Pigmy-penguin, Piotr Drąg, prumian, Richard Neill,
211b564a
ZJS
2455 Rike-Benjamin Schuppner, rodin-ia, Romain Naour, Ruben Kerkhof,
2456 Ryan Hendrickson, Santa Wiryaman, Sebastian Pucilowski, Seth Falco,
0950eee5
LB
2457 Simon Ellmann, Sonali Srivastava, Stefan Seering,
2458 Stephen Hemminger, tawefogo, techtino, Temuri Doghonadze,
2459 Thomas Batten, Thomas Haller, Thomas Weißschuh, Tobias Stoeckmann,
410b996a
LB
2460 Tomasz Pala, Tyson Whitehead, Vishal Chillara Srinivas,
2461 Vivien Didelot, w30023233, wangyuhang, Weblate, Xiaotian Wu,
2462 yangmingtai, YmrDtnJu, Yonathan Randolph, Yutsuten, Yu Watanabe,
73849408
ZJS
2463 Zbigniew Jędrzejewski-Szmek, наб
2464
7f2ec323 2465 — Edinburgh, 2022-05-21
bbfabc44 2466
a420d717 2467CHANGES WITH 250:
195d181c 2468
dcdc652f
ZJS
2469 * Support for encrypted and authenticated credentials has been added.
2470 This extends the credential logic introduced with v247 to support
2471 non-interactive symmetric encryption and authentication, based on a
2472 key that is stored on the /var/ file system or in the TPM2 chip (if
2473 available), or the combination of both (by default if a TPM2 chip
2474 exists the combination is used, otherwise the /var/ key only). The
2475 credentials are automatically decrypted at the moment a service is
2476 started, and are made accessible to the service itself in unencrypted
2477 form. A new tool 'systemd-creds' encrypts credentials for this
2478 purpose, and two new service file settings LoadCredentialEncrypted=
2479 and SetCredentialEncrypted= configure such credentials.
2480
2481 This feature is useful to store sensitive material such as SSL
2482 certificates, passwords and similar securely at rest and only decrypt
2483 them when needed, and in a way that is tied to the local OS
2484 installation or hardware.
195d181c
LP
2485
2486 * systemd-gpt-auto-generator can now automatically set up discoverable
2487 LUKS2 encrypted swap partitions.
2488
dcdc652f
ZJS
2489 * The GPT Discoverable Partitions Specification has been substantially
2490 extended with support for root and /usr/ partitions for the majority
2491 of architectures systemd supports. This includes platforms that do
2492 not natively support UEFI, because even though GPT is specified under
2493 UEFI umbrella, it is useful on other systems too. Specifically,
195d181c 2494 systemd-nspawn, systemd-sysext, systemd-gpt-auto-generator and
dcdc652f
ZJS
2495 Portable Services use the concept without requiring UEFI.
2496
2497 * The GPT Discoverable Partitions Specifications has been extended with
2498 a new set of partitions that may carry PKCS#7 signatures for Verity
2499 partitions, encoded in a simple JSON format. This implements a simple
2500 mechanism for building disk images that are fully authenticated and
2501 can be tested against a set of cryptographic certificates. This is
2502 now implemented for the various systemd tools that can operate with
2503 disk images, such as systemd-nspawn, systemd-sysext, systemd-dissect,
2504 Portable services/RootImage=, systemd-tmpfiles, and systemd-sysusers.
2505 The PKCS#7 signatures are passed to the kernel (where they are
195d181c
LP
2506 checked against certificates from the kernel keyring), or can be
2507 verified against certificates provided in userspace (via a simple
2508 drop-in file mechanism).
2509
2510 * systemd-dissect's inspection logic will now report for which uses a
2511 disk image is intended. Specifically, it will display whether an
2512 image is suitable for booting on UEFI or in a container (using
2513 systemd-nspawn's --image= switch), whether it can be used as portable
2514 service, or attached as system extension.
2515
2516 * The system-extension.d/ drop-in files now support a new field
2517 SYSEXT_SCOPE= that may encode which purpose a system extension image
2518 is for: one of "initrd", "system" or "portable". This is useful to
2519 make images more self-descriptive, and to ensure system extensions
2520 cannot be attached in the wrong contexts.
2521
2522 * The os-release file learnt a new PORTABLE_PREFIXES= field which may
2523 be used in portable service images to indicate which unit prefixes
2524 are supported.
2525
2526 * The GPT image dissection logic in systemd-nspawn/systemd-dissect/…
2527 now is able to decode images for non-native architectures as well.
dcdc652f
ZJS
2528 This allows systemd-nspawn to boot images of non-native architectures
2529 if the corresponding user mode emulator is installed and
2530 systemd-binfmtd is running.
195d181c 2531
dcdc652f 2532 * systemd-logind gained new settings HandlePowerKeyLongPress=,
195d181c
LP
2533 HandleRebootKeyLongPress=, HandleSuspendKeyLongPress= and
2534 HandleHibernateKeyLongPress= which may be used to configure actions
2535 when the relevant keys are pressed for more than 5s. This is useful
2536 on devices that only have hardware for a subset of these keys. By
2537 default, if the reboot key is pressed long the poweroff operation is
2538 now triggered, and when the suspend key is pressed long the hibernate
2539 operation is triggered. Long pressing the other two keys currently
2540 does not trigger any operation by default.
2541
2542 * When showing unit status updates on the console during boot and
368910b1 2543 shutdown, and a service is slow to start so that the cylon animation
195d181c
LP
2544 is shown, the most recent sd_notify() STATUS= text is now shown as
2545 well. Services may use this to make the boot/shutdown output easier
2546 to understand, and to indicate what precisely a service that is slow
dcdc652f 2547 to start or stop is waiting for. In particular, the per-user service
195d181c
LP
2548 manager instance now reports what it is doing and which service it is
2549 waiting for this way to the system service manager.
2550
2551 * The service manager will now re-execute on reception of the
2552 SIGRTMIN+25 signal. It previously already did that on SIGTERM — but
2553 only when running as PID 1. There was no signal to request this when
dcdc652f
ZJS
2554 running as per-user service manager, i.e. as any other PID than 1.
2555 SIGRTMIN+25 works for both system and user managers.
195d181c
LP
2556
2557 * The hardware watchdog logic in PID 1 gained support for operating
2558 with the default timeout configured in the hardware, instead of
2559 insisting on re-configuring it. Set RuntimeWatchdogSec=default to
2560 request this behavior.
2561
2562 * A new kernel command line option systemd.watchdog_sec= is now
2563 understood which may be used to override the hardware watchdog
2564 time-out for the boot.
2565
2566 * A new setting DefaultOOMScoreAdjust= is now supported in
942473dc
ZJS
2567 /etc/systemd/system.conf and /etc/systemd/user.conf. It may be used
2568 to set the default process OOM score adjustment value for processes
2569 started by the service manager. For per-user service managers this
195d181c
LP
2570 now defaults to 100, but for per-system service managers is left as
2571 is. This means that by default now services forked off the user
2572 service manager are more likely to be killed by the OOM killer than
2573 system services or the managers themselves.
2574
2575 * A new per-service setting RestrictFileSystems= as been added that
dcdc652f
ZJS
2576 restricts the file systems a service has access to by their type.
2577 This is based on the new BPF LSM of the Linux kernel. It provides an
2578 effective way to make certain API file systems unavailable to
195d181c
LP
2579 services (and thus minimizing attack surface). A new command
2580 "systemd-analyze filesystems" has been added that lists all known
2581 file system types (and how they are grouped together under useful
2582 group handles).
2583
2584 * Services now support a new setting RestrictNetworkInterfaces= for
2585 restricting access to specific network interfaces.
2586
dcdc652f 2587 * Service unit files gained new settings StartupAllowedCPUs= and
195d181c
LP
2588 StartupAllowedMemoryNodes=. These are similar to their counterparts
2589 without the "Startup" prefix and apply during the boot process
2590 only. This is useful to improve boot-time behavior of the system and
2591 assign resources differently during boot than during regular
2592 runtime. This is similar to the preexisting StartupCPUWeight=
2593 vs. CPUWeight.
2594
2595 * Related to this: the various StartupXYZ= settings
2596 (i.e. StartupCPUWeight=, StartupAllowedCPUs=, …) are now also applied
2597 during shutdown. The settings not prefixed with "Startup" hence apply
2598 during regular runtime, and those that are prefixed like that apply
2599 during boot and shutdown.
2600
bf71ade8
LB
2601 * A new per-unit set of conditions/asserts
2602 [Condition|Assert][Memory|CPU|IO]Pressure= have been added to make a
2603 unit skip/fail activation if the system's (or a slice's) memory/cpu/io
2604 pressure is above the configured threshold, using the kernel PSI
dcdc652f 2605 feature. For more details see systemd.unit(5) and
0e685823 2606 https://docs.kernel.org/accounting/psi.html
bf71ade8
LB
2607
2608 * The combination of ProcSubset=pid and ProtectKernelTunables=yes and/or
2609 ProtectKernelLogs=yes can now be used.
2610
e63fa075 2611 * The default maximum numbers of inodes have been raised from 64k to 1M
bb7031bc 2612 for /dev/, and from 400k to 1M for /tmp/.
bf71ade8 2613
195d181c
LP
2614 * The per-user service manager learnt support for communicating with
2615 systemd-oomd to acquire OOM kill information.
2616
2617 * A new service setting ExecSearchPath= has been added that allows
dcdc652f
ZJS
2618 changing the search path for executables for services. It affects
2619 where we look for the binaries specified in ExecStart= and similar,
2620 and the specified directories are also added the $PATH environment
2621 variable passed to invoked processes.
195d181c
LP
2622
2623 * A new setting RuntimeRandomizedExtraSec= has been added for service
2624 and scope units that allows extending the runtime time-out as
2625 configured by RuntimeMaxSec= with a randomized amount.
2626
2627 * The syntax of the service unit settings RuntimeDirectory=,
2628 StateDirectory=, CacheDirectory=, LogsDirectory= has been extended:
dcdc652f 2629 if the specified value is now suffixed with a colon, followed by
195d181c
LP
2630 another filename, the latter will be created as symbolic link to the
2631 specified directory. This allows creating these service directories
2632 together with alias symlinks to make them available under multiple
2633 names.
2634
2635 * Service unit files gained two new settings TTYRows=/TTYColumns= for
2636 configuring rows/columns of the TTY device passed to
2637 stdin/stdout/stderr of the service. This is useful to propagate TTY
dcdc652f 2638 dimensions to a virtual machine.
195d181c 2639
dcdc652f
ZJS
2640 * A new service unit file setting ExitType= has been added that
2641 specifies when to assume a service has exited. By default systemd
2642 only watches the main process of a service. By setting
2643 ExitType=cgroup it can be told to wait for the last process in a
2644 cgroup instead.
195d181c
LP
2645
2646 * Automount unit files gained a new setting ExtraOptions= that can be
2647 used to configure additional mount options to pass to the kernel when
2648 mounting the autofs instance.
2649
dcdc652f
ZJS
2650 * "Urlification" (generation of ESC sequences that generate clickable
2651 hyperlinks in modern terminals) may now be turned off altogether
2652 during build-time.
195d181c 2653
616779c3 2654 * Path units gained new TriggerLimitBurst= and TriggerLimitIntervalSec=
28be02e0
ZJS
2655 settings that default to 200 and 2 s respectively. The ratelimit
2656 ensures that a path unit cannot cause PID1 to busy-loop when it is
2657 trying to trigger a service that is skipped because of a Condition*=
2658 not being satisfied. This matches the configuration and behaviour of
2659 socket units.
616779c3 2660
dcdc652f
ZJS
2661 * The TPM2/FIDO2/PKCS11 support in systemd-cryptsetup is now also built
2662 as a plug-in for cryptsetup. This means the plain cryptsetup command
2663 may now be used to unlock volumes set up this way.
195d181c
LP
2664
2665 * The TPM2 logic in cryptsetup will now automatically detect systems
dcdc652f 2666 where the TPM2 chip advertises SHA256 PCR banks but the firmware only
195d181c
LP
2667 updates the SHA1 banks. In such a case PCR policies will be
2668 automatically bound to the latter, not the former. This makes the PCR
2669 policies reliable, but of course do not provide the same level of
2670 trust as SHA256 banks.
2671
2672 * The TPM2 logic in systemd-cryptsetup/systemd-cryptsetup now supports
2673 RSA primary keys in addition to ECC, improving compatibility with
2674 TPM2 chips that do not support ECC. RSA keys are much slower to use
2675 than ECC, and hence are only used if ECC is not available.
2676
2677 * /etc/crypttab gained support for a new token-timeout= setting for
dcdc652f
ZJS
2678 encrypted volumes that allows configuration of the maximum time to
2679 wait for PKCS#11/FIDO2 tokens to be plugged in. If the time elapses
2680 the logic will query the user for a regular passphrase/recovery key
195d181c
LP
2681 instead.
2682
2683 * Support for activating dm-integrity volumes at boot via a new file
dcdc652f
ZJS
2684 /etc/integritytab and the tool systemd-integritysetup have been
2685 added. This is similar to /etc/crypttab and /etc/veritytab, but deals
2686 with dm-integrity instead of dm-crypt/dm-verity.
195d181c
LP
2687
2688 * The systemd-veritysetup-generator now understands a new usrhash=
2689 kernel command line option for specifying the Verity root hash for
2690 the partition backing the /usr/ file system. A matching set of
2691 systemd.verity_usr_* kernel command line options has been added as
2692 well. These all work similar to the corresponding options for the
2693 root partition.
2694
2695 * The sd-device API gained a new API call sd_device_get_diskseq() to
2696 return the DISKSEQ property of a device structure. The "disk
2697 sequence" concept is a new feature recently introduced to the Linux
2698 kernel that allows detecting reuse cycles of block devices, i.e. can
2699 be used to recognize when loopback block devices are reused for a
2700 different purpose or CD-ROM drives get their media changed.
2701
2702 * A new unit systemd-boot-update.service has been added. If enabled
2703 (the default) and the sd-boot loader is detected to be installed, it
dcdc652f
ZJS
2704 is automatically updated to the newest version when out of date. This
2705 is useful to ensure the boot loader remains up-to-date, and updates
2706 automatically propagate from the OS tree in /usr/.
195d181c 2707
bf71ade8
LB
2708 * sd-boot will now build with SBAT by default in order to facilitate
2709 working with recent versions of Shim that require it to be present.
2710
97b6ed32
ZJS
2711 * sd-boot can now parse Microsoft Windows' Boot Configuration Data.
2712 This is used to robustly generate boot entry titles for Windows.
2713
195d181c
LP
2714 * A new generic target unit factory-reset.target has been added. It is
2715 hooked into systemd-logind similar in fashion to
2716 reboot/poweroff/suspend/hibernate, and is supposed to be used to
2717 initiate a factory reset operation. What precisely this operation
2718 entails is up for the implementer to decide, the primary goal of the
2719 new unit is provide a framework where to plug in the implementation
2720 and how to trigger it.
2721
2722 * A new meson build-time option 'clock-valid-range-usec-max' has been
2723 added which takes a time in µs and defaults to 15 years. If the RTC
2724 time is noticed to be more than the specified time ahead of the
2725 built-in epoch of systemd (which by default is the release timestamp
2726 of systemd) it is assumed that the RTC is not working correctly, and
2727 the RTC is reset to the epoch. (It already is reset to the epoch when
2728 noticed to be before it.) This should increase the chance that time
2729 doesn't accidentally jump too far ahead due to faulty hardware or
2730 batteries.
2731
63b7d347
YW
2732 * A new setting SaveIntervalSec= has been added to systemd-timesyncd,
2733 which may be used to automatically save the current system time to
2734 disk in regular intervals. This is useful to maintain a roughly
2735 monotonic clock even without RTC hardware and with some robustness
2736 against abnormal system shutdown.
2737
195d181c
LP
2738 * systemd-analyze verify gained support for a pair of new --image= +
2739 --root= switches for verifying units below a specific root
2740 directory/image instead of on the host.
2741
2742 * systemd-analyze verify gained support for verifying unit files under
2743 an explicitly specified unit name, independently of what the filename
2744 actually is.
2745
dcdc652f
ZJS
2746 * systemd-analyze verify gained a new switch --recursive-errors= which
2747 controls whether to only fail on errors found in the specified units
2748 or recursively any dependent units.
2749
2750 * systemd-analyze security now supports a new --offline mode for
2751 analyzing unit files stored on disk instead of loaded units. It may
2752 be combined with --root=/--image to analyze unit files under a root
2753 directory or disk image. It also learnt a new --threshold= parameter
2754 for specifying an exposure level threshold: if the exposure level
2755 exceeds the specified value the call will fail. It also gained a new
2756 --security-policy= switch for configuring security policies to
2757 enforce on the units. A policy is a JSON file that lists which tests
2758 shall be weighted how much to determine the overall exposure
2759 level. Altogether these new features are useful for fully automatic
2760 analysis and enforcement of security policies on unit files.
2761
2762 * systemd-analyze security gain a new --json= switch for JSON output.
2763
2764 * systemd-analyze learnt a new --quiet switch for reducing
2765 non-essential output. It's honored by the "dot", "syscall-filter",
2766 "filesystems" commands.
2767
bb7031bc 2768 * systemd-analyze security gained a --profile= option that can be used
dcdc652f
ZJS
2769 to take into account a portable profile when analyzing portable
2770 services, since a lot of the security-related settings are enabled
2771 through them.
2772
2773 * systemd-analyze learnt a new inspect-elf verb that parses ELF core
2774 files, binaries and executables and prints metadata information,
2775 including the build-id and other info described on:
2776 https://systemd.io/COREDUMP_PACKAGE_METADATA/
2777
c0b28d44
YW
2778 * .network files gained a new UplinkInterface= in the [IPv6SendRA]
2779 section, for automatically propagating DNS settings from other
2780 interfaces.
bf71ade8 2781
c0b28d44
YW
2782 * The static lease DHCP server logic in systemd-networkd may now serve
2783 IP addresses outside of the configured IP pool range for the server.
97b6ed32 2784
c0b28d44
YW
2785 * CAN support in systemd-networkd gained four new settings Loopback=,
2786 OneShot=, PresumeAck=, ClassicDataLengthCode= for tweaking CAN
2787 control modes. It gained a number of further settings for tweaking
2788 CAN timing quanta.
bf71ade8 2789
c0b28d44
YW
2790 * The [CAN] section in .network file gained new TimeQuantaNSec=,
2791 PropagationSegment=, PhaseBufferSegment1=, PhaseBufferSegment2=,
2792 SyncJumpWidth=, DataTimeQuantaNSec=, DataPropagationSegment=,
2793 DataPhaseBufferSegment1=, DataPhaseBufferSegment2=, and
2794 DataSyncJumpWidth= settings to control bit-timing processed by the
2795 CAN interface.
bf71ade8 2796
c0b28d44
YW
2797 * DHCPv4 client support in systemd-networkd learnt a new Label= option
2798 for configuring the address label to apply to configure IPv4
2799 addresses.
bf71ade8 2800
c0b28d44
YW
2801 * The [IPv6AcceptRA] section of .network files gained support for a new
2802 UseMTU= setting that may be used to control whether to apply the
2803 announced MTU settings to the local interface.
195d181c 2804
63b7d347
YW
2805 * The [DHCPv4] section in .network file gained a new Use6RD= boolean
2806 setting to control whether the DHCPv4 client request and process the
2807 DHCP 6RD option.
2808
2809 * The [DHCPv6PrefixDelegation] section in .network file is renamed to
2810 [DHCPPrefixDelegation], as now the prefix delegation is also supported
2811 with DHCPv4 protocol by enabling the Use6RD= setting.
2812
2813 * The [DHCPPrefixDelegation] section in .network file gained a new
2814 setting UplinkInterface= to specify the upstream interface.
2815
2816 * The [DHCPv6] section in .network file gained a new setting
2817 UseDelegatedPrefix= to control whether the delegated prefixes will be
2818 propagated to the downstream interfaces.
195d181c
LP
2819
2820 * The [IPv6AcceptRA] section of .network files now understands two new
2821 settings UseGateway=/UseRoutePrefix= for explicitly configuring
2822 whether to use the relevant fields from the IPv6 Router Advertisement
2823 records.
2824
8adba772
ZJS
2825 * The ForceDHCPv6PDOtherInformation= setting in the [DHCPv6] section
2826 has been removed. Please use the WithoutRA= and UseDelegatedPrefix=
63b7d347
YW
2827 settings in the [DHCPv6] section and the DHCPv6Client= setting in the
2828 [IPv6AcceptRA] section to control when the DHCPv6 client is started
2829 and how the delegated prefixes are handled by the DHCPv6 client.
2830
63b7d347
YW
2831 * The IPv6Token= section in the [Network] section is deprecated, and
2832 the [IPv6AcceptRA] section gained the Token= setting for its
2833 replacement. The [IPv6Prefix] section also gained the Token= setting.
2834 The Token= setting gained 'eui64' mode to explicitly configure an
2835 address with the EUI64 algorithm based on the interface MAC address.
2836 The 'prefixstable' mode can now optionally take a secret key. The
2837 Token= setting in the [DHCPPrefixDelegation] section now supports all
2838 algorithms supported by the same settings in the other sections.
2839
2840 * The [RoutingPolicyRule] section of .network file gained a new
2841 SuppressInterfaceGroup= setting.
195d181c
LP
2842
2843 * The IgnoreCarrierLoss= setting in the [Network] section of .network
dcdc652f
ZJS
2844 files now allows a duration to be specified, controlling how long to
2845 wait before reacting to carrier loss.
195d181c 2846
dcdc652f
ZJS
2847 * The [DHCPServer] section of .network file gained a new Router=
2848 setting to specify the router address.
11b10922 2849
c0b28d44
YW
2850 * The [CAKE] section of .network files gained various new settings
2851 AutoRateIngress=, CompensationMode=, FlowIsolationMode=, NAT=,
2852 MPUBytes=, PriorityQueueingPreset=, FirewallMark=, Wash=, SplitGSO=,
2853 and UseRawPacketSize= for configuring CAKE.
2854
2855 * systemd-networkd now ships with new default .network files:
2856 80-container-vb.network which matches host-side network bridge device
2857 created by systemd-nspawn's --network-bridge or --network-zone
2858 switch, and 80-6rd-tunnel.network which matches automatically created
2859 sit tunnel with 6rd prefix when the DHCP 6RD option is received.
2860
2861 * systemd-networkd's handling of Endpoint= resolution for WireGuard
2862 interfaces has been improved.
2863
2864 * systemd-networkd will now automatically configure routes to addresses
2865 specified in AllowedIPs=. This feature can be controlled via
2866 RouteTable= and RouteMetric= settings in [WireGuard] or
2867 [WireGuardPeer] sections.
2868
2869 * systemd-networkd will now once again automatically generate persistent
2870 MAC addresses for batadv and bridge interfaces. Users can disable this
2871 by using MACAddress=none in .netdev files.
2872
2873 * systemd-networkd and systemd-udevd now support IP over InfiniBand
2874 interfaces. The Kind= setting in .netdev file accepts "ipoib". And
2875 systemd.netdev files gained the [IPoIB] section.
2876
2877 * systemd-networkd and systemd-udevd now support net.ifname-policy=
2878 option on the kernel command-line. This is implemented through the
2879 systemd-network-generator service that automatically generates
2880 appropriate .link, .network, and .netdev files.
2881
2882 * The various systemd-udevd "ethtool" buffer settings now understand
2883 the special value "max" to configure the buffers to the maximum the
2884 hardware supports.
2885
2886 * systemd-udevd's .link files may now configure a large variety of
2887 NIC coalescing settings, plus more hardware offload settings.
2888
2889 * .link files gained a new WakeOnLanPassword= setting in the [Link]
2890 section that allows to specify a WoL "SecureOn" password on hardware
2891 that supports this.
2892
195d181c
LP
2893 * systemd-nspawn's --setenv= switch now supports an additional syntax:
2894 if only a variable name is specified (i.e. without being suffixed by
2895 a '=' character and a value) the current value of the environment
2896 variable is propagated to the container. e.g. --setenv=FOO will
2897 lookup the current value of $FOO in the environment, and pass it down
2898 to the container. Similar behavior has been added to homectl's,
2899 machinectl's and systemd-run's --setenv= switch.
2900
2901 * systemd-nspawn gained a new switch --suppress-sync= which may be used
2902 to optionally suppress the effect of the sync()/fsync()/fdatasync()
2903 system calls for the container payload. This is useful for build
2904 system environments where safety against abnormal system shutdown is
2905 not essential as all build artifacts can be regenerated any time, but
2906 the performance win is beneficial.
2907
dcdc652f
ZJS
2908 * systemd-nspawn will now raise the RLIMIT_NOFILE hard limit to the
2909 same value that PID 1 uses for most forked off processes.
195d181c
LP
2910
2911 * systemd-nspawn's --bind=/--bind-ro= switches now optionally take
2912 uidmap/nouidmap options as last parameter. If "uidmap" is used the
2913 bind mounts are created with UID mapping taking place that ensures
2914 the host's file ownerships are mapped 1:1 to container file
2915 ownerships, even if user namespacing is used. This way
2916 files/directories bound into containers will no longer show up as
dcdc652f 2917 owned by the nobody user as they typically did if no special care was
195d181c
LP
2918 taken to shift them manually.
2919
2920 * When discovering Windows installations sd-boot will now attempt to
dcdc652f 2921 show the Windows version.
195d181c
LP
2922
2923 * The color scheme to use in sd-boot may now be configured at
2924 build-time.
2925
195d181c
LP
2926 * sd-boot gained the ability to change screen resolution during
2927 boot-time, by hitting the "r" key. This will cycle through available
dcdc652f 2928 resolutions and save the last selection.
195d181c
LP
2929
2930 * sd-boot learnt a new hotkey "f". When pressed the system will enter
2931 firmware setup. This is useful in environments where it is difficult
2932 to hit the right keys early enough to enter the firmware, and works
2933 on any firmware regardless which key it natively uses.
2934
2935 * sd-boot gained support for automatically booting into the menu item
2936 selected on the last boot (using the "@saved" identifier for menu
2937 items).
2938
dcdc652f
ZJS
2939 * sd-boot gained support for automatically loading all EFI drivers
2940 placed in the /EFI/systemd/drivers/ subdirectory of the EFI System
2941 Partition (ESP). These drivers are loaded before the menu entries are
2942 loaded. This is useful e.g. to load additional file system drivers
2943 for the XBOOTLDR partition.
2944
2945 * systemd-boot will now paint the input cursor on its own instead of
2946 relying on the firmware to do so, increasing compatibility with broken
2947 firmware that doesn't make the cursor reasonably visible.
2948
195d181c
LP
2949 * sd-boot now embeds a .osrel PE section like we expect from Boot
2950 Loader Specification Type #2 Unified Kernels. This means sd-boot
2951 itself may be used in place of a Type #2 Unified Kernel. This is
2952 useful for debugging purposes as it allows chain-loading one a
2953 (development) sd-boot instance from another.
2954
2955 * sd-boot now supports a new "devicetree" field in Boot Loader
2956 Specification Type #1 entries: if configured the specified device
2957 tree file is installed before the kernel is invoked. This is useful
2958 for installing/applying new devicetree files without updating the
2959 kernel image.
2960
dcdc652f 2961 * Similarly, sd-stub now can read devicetree data from a PE section
195d181c
LP
2962 ".dtb" and apply it before invoking the kernel.
2963
2964 * sd-stub (the EFI stub that can be glued in front of a Linux kernel)
97b6ed32
ZJS
2965 gained the ability to pick up credentials and sysext files, wrap them
2966 in a cpio archive, and pass as an additional initrd to the invoked
2967 Linux kernel, in effect placing those files in the /.extra/ directory
2968 of the initrd environment. This is useful to implement trusted initrd
2969 environments which are fully authenticated but still can be extended
2970 (via sysexts) and parameterized (via encrypted/authenticated
2971 credentials, see above).
2972
2973 Credentials can be located next to the kernel image file (credentials
2974 specific to a single boot entry), or in one of the shared directories
2975 (credentials applicable to multiple boot entries).
195d181c
LP
2976
2977 * sd-stub now comes with a full man page, that explains its feature set
2978 and how to combine a kernel image, an initrd and the stub to build a
2979 complete EFI unified kernel image, implementing Boot Loader
2980 Specification Type #2.
2981
dcdc652f 2982 * sd-stub may now provide the initrd to the executed kernel via the
195d181c
LP
2983 LINUX_EFI_INITRD_MEDIA_GUID EFI protocol, adding compatibility for
2984 non-x86 architectures.
2985
dcdc652f
ZJS
2986 * bootctl learnt new set-timeout and set-timeout-oneshot commands that
2987 may be used to set the boot menu time-out of the boot loader (for all
2988 or just the subsequent boot).
195d181c 2989
ffc97a1c
LP
2990 * bootctl and kernel-install will now read variables
2991 KERNEL_INSTALL_LAYOUT= from /etc/machine-info and layout= from
2992 /etc/kernel/install.conf. When set, it specifies the layout to use
2993 for installation directories on the boot partition, so that tools
2994 don't need to guess it based on the already-existing directories. The
2995 only value that is defined natively is "bls", corresponding to the
2996 layout specified in
c20ecc94
ZJS
2997 https://systemd.io/BOOT_LOADER_SPECIFICATION/. Plugins for
2998 kernel-install that implement a different layout can declare other
2999 values for this variable.
3000
3001 'bootctl install' will now write KERNEL_INSTALL_LAYOUT=bls, on the
3002 assumption that if the user installed sd-boot to the ESP, they intend
3003 to use the entry layout understood by sd-boot. It'll also write
3004 KERNEL_INSTALL_MACHINE_ID= if it creates any directories using the ID
3005 (and it wasn't specified in the config file yet). Similarly,
3006 kernel-install will now write KERNEL_INSTALL_MACHINE_ID= (if it
3007 wasn't specified in the config file yet). Effectively, those changes
3008 mean that the machine-id used for boot loader entry installation is
3009 "frozen" upon first use and becomes independent of the actual
3010 machine-id.
3011
3012 Configuring KERNEL_INSTALL_MACHINE_ID fixes the following problem:
3013 images created for distribution ("golden images") are built with no
3014 machine-id, so that a unique machine-id can be created on the first
3015 boot. But those images may contain boot loader entries with the
3016 machine-id used during build included in paths. Using a "frozen"
3017 value allows unambiguously identifying entries that match the
3018 specific installation, while still permitting parallel installations
3019 without conflict.
3020
3021 Configuring KERNEL_INSTALL_LAYOUT obviates the need for
3022 kernel-install to guess the installation layout. This fixes the
3023 problem where a (possibly empty) directory in the boot partition is
3024 created from a different layout causing kernel-install plugins to
3025 assume the wrong layout. A particular example of how this may happen
3026 is the grub2 package in Fedora which includes directories under /boot
3027 directly in its file list. Various other packages pull in grub2 as a
3028 dependency, so it may be installed even if unused, breaking
3029 installations that use the bls layout.
3030
97b6ed32
ZJS
3031 * bootctl and systemd-bless-boot can now be linked statically.
3032
195d181c 3033 * systemd-sysext now optionally doesn't insist on extension-release.d/
dcdc652f 3034 files being placed in the image under the image's file name. If the
195d181c 3035 file system xattr user.extension-release.strict is set on the
dcdc652f 3036 extension release file, it is accepted regardless of its name. This
195d181c
LP
3037 relaxes security restrictions a bit, as system extension may be
3038 attached under a wrong name this way.
3039
3040 * udevadm's test-builtin command learnt a new --action= switch for
3041 testing the built-in with the specified action (in place of the
dcdc652f 3042 default 'add').
195d181c
LP
3043
3044 * udevadm info gained new switches --property=/--value for showing only
3045 specific udev properties/values instead of all.
3046
3047 * A new hwdb database has been added that contains matches for various
3048 types of signal analyzers (protocol analyzers, logic analyzers,
3049 oscilloscopes, multimeters, bench power supplies, etc.) that should
3050 be accessible to regular users.
3051
3052 * A new hwdb database entry has been added that carries information
dcdc652f
ZJS
3053 about types of cameras (regular or infrared), and in which direction
3054 they point (front or back).
195d181c 3055
11b10922
LB
3056 * A new rule to allow console users access to rfkill by default has been
3057 added to hwdb.
3058
97b6ed32
ZJS
3059 * Device nodes for the Software Guard eXtension enclaves (sgx_vepc) are
3060 now also owned by the system group "sgx".
3061
195d181c 3062 * A new build-time meson option "extra-net-naming-schemes=" has been
30fd9a2d 3063 added to define additional naming schemes for udev's network
dcdc652f
ZJS
3064 interface naming logic. This is useful for enterprise distributions
3065 and similar which want to pin the schemes of certain distribution
3066 releases under a specific name and previously had to patch the
3067 sources to introduce new named schemes.
195d181c
LP
3068
3069 * The predictable naming logic for network interfaces has been extended
3070 to generate stable names from Xen netfront device information.
3071
3072 * hostnamed's chassis property can now be sourced from chassis-type
dcdc652f 3073 field encoded in devicetree (in addition to the existing DMI
195d181c
LP
3074 support).
3075
dcdc652f 3076 * systemd-cgls now optionally displays cgroup IDs and extended
195d181c
LP
3077 attributes for each cgroup. (Controllable via the new --xattr= +
3078 --cgroup-id= switches.)
3079
3080 * coredumpctl gained a new --all switch for operating on all
3081 Journal files instead of just the local ones.
3082
bf71ade8
LB
3083 * systemd-coredump will now use libdw/libelf via dlopen() rather than
3084 directly linking, allowing users to easily opt-out of backtrace/metadata
3085 analysis of core files, and reduce image sizes when this is not needed.
3086
3087 * systemd-coredump will now analyze core files with libdw/libelf in a
3088 forked, sandboxed process.
3089
195d181c
LP
3090 * systemd-homed will now try to unmount an activate home area in
3091 regular intervals once the user logged out fully. Previously this was
3092 attempted exactly once but if the home directory was busy for some
3093 reason it was not tried again.
3094
dcdc652f 3095 * systemd-homed's LUKS2 home area backend will now create a BSD file
195d181c 3096 system lock on the image file while the home area is active
dcdc652f 3097 (i.e. mounted). If a home area is found to be locked, logins are
195d181c
LP
3098 politely refused. This should improve behavior when using home areas
3099 images that are accessible via the network from multiple clients, and
3100 reduce the chance of accidental file system corruption in that case.
3101
3102 * Optionally, systemd-homed will now drop the kernel buffer cache once
dcdc652f 3103 a user has fully logged out, configurable via the new --drop-caches=
195d181c
LP
3104 homectl switch.
3105
dcdc652f
ZJS
3106 * systemd-homed now makes use of UID mapped mounts for the home areas.
3107 If the kernel and used file system support it, files are now
195d181c
LP
3108 internally owned by the "nobody" user (i.e. the user typically used
3109 for indicating "this ownership is not mapped"), and dynamically
3110 mapped to the UID used locally on the system via the UID mapping
3111 mount logic of recent kernels. This makes migrating home areas
dcdc652f
ZJS
3112 between different systems cheaper because recursively chown()ing file
3113 system trees is no longer necessary.
195d181c
LP
3114
3115 * systemd-homed's CIFS backend now optionally supports CIFS service
3116 names with a directory suffix, in order to place home directories in
3117 a subdirectory of a CIFS share, instead of the top-level directory.
3118
3119 * systemd-homed's CIFS backend gained support for specifying additional
3120 mount options in the JSON user record (cifsExtraMountOptions field,
3121 and --cifs-extra-mount-options= homectl switch). This is for example
3122 useful for configuring mount options such as "noserverino" that some
dcdc652f
ZJS
3123 SMB3 services require (use that to run a homed home directory from a
3124 FritzBox SMB3 share this way).
195d181c
LP
3125
3126 * systemd-homed will now default to btrfs' zstd compression for home
dcdc652f
ZJS
3127 areas. This is inspired by Fedora's recent decision to switch to zstd
3128 by default.
195d181c
LP
3129
3130 * Additional mount options to use when mounting the file system of
3131 LUKS2 volumes in systemd-homed has been added. Via the
3132 $SYSTEMD_HOME_MOUNT_OPTIONS_BTRFS, $SYSTEMD_HOME_MOUNT_OPTIONS_EXT4,
3133 $SYSTEMD_HOME_MOUNT_OPTIONS_XFS environment variables to
3134 systemd-homed or via the luksExtraMountOptions user record JSON
3135 property. (Exposed via homectl --luks-extra-mount-options)
3136
3137 * homectl's resize command now takes the special size specifications
3138 "min" and "max" to shrink/grow the home area to the minimum/maximum
3139 size possible, taking disk usage/space constraints and file system
3140 limitations into account. Resizing is now generally graceful: the
3141 logic will try to get as close to the specified size as possible, but
3142 not consider it a failure if the request couldn't be fulfilled
3143 precisely.
3144
3145 * systemd-homed gained the ability to automatically shrink home areas
3146 on logout to their minimal size and grow them again on next
dcdc652f
ZJS
3147 login. This ensures that while inactive, a home area only takes up
3148 the minimal space necessary, but once activated, it provides
3149 sufficient space for the user's needs. This behavior is only
3150 supported if btrfs is used as file system inside the home area
3151 (because only for btrfs online growing/shrinking is implemented in
3152 the kernel). This behavior is now enabled by default, but may be
3153 controlled via the new --auto-resize-mode= setting of homectl.
195d181c
LP
3154
3155 * systemd-homed gained support for automatically re-balancing free disk
3156 space among active home areas, in case the LUKS2 backends are used,
3157 and no explicit disk size was requested. This way disk space is
3158 automatically managed and home areas resized in regular intervals and
3159 manual resizing when disk space becomes scarce should not be
3160 necessary anymore. This behavior is only supported if btrfs is used
3161 within the home areas (as only then online shrinking and growing is
3162 supported), and may be configured via the new rebalanceWeight JSON
3163 user record field (as exposed via the new --rebalance-weight= homectl
3164 setting). Re-balancing is mostly automatic, but can also be requested
3165 explicitly via "homectl rebalance", which is synchronous, and thus
dcdc652f 3166 may be used to wait until the rebalance run is complete.
195d181c
LP
3167
3168 * userdbctl gained a --json= switch for configured the JSON formatting
3169 to use when outputting user or group records.
3170
3171 * userdbctl gained a new --multiplexer= switch for explicitly
3172 configuring whether to use the systemd-userdbd server side user
3173 record resolution logic.
3174
3175 * userdbctl's ssh-authorized-keys command learnt a new --chain switch,
3176 for chaining up another command to execute after completing the
3177 look-up. Since the OpenSSH's AuthorizedKeysCommand only allows
dcdc652f
ZJS
3178 configuration of a single command to invoke, this maybe used to
3179 invoke multiple: first userdbctl's own implementation, and then any
3180 other also configured in the command line.
195d181c
LP
3181
3182 * The sd-event API gained a new function sd_event_add_inotify_fd() that
3183 is similar to sd_event_add_inotify() but accepts a file descriptor
3184 instead of a path in the file system for referencing the inode to
3185 watch.
3186
3187 * The sd-event API gained a new function
3188 sd_event_source_set_ratelimit_expire_callback() that may be used to
3189 define a callback function that is called whenever an event source
3190 leaves the rate limiting phase.
3191
3192 * New documentation has been added explaining which steps are necessary
3193 to port systemd to a new architecture:
3194
3195 https://systemd.io/PORTING_TO_NEW_ARCHITECTURES
3196
3197 * The x-systemd.makefs option in /etc/fstab now explicitly supports
dcdc652f 3198 ext2, ext3, and f2fs file systems.
195d181c 3199
97b6ed32
ZJS
3200 * Mount units and units generated from /etc/fstab entries with 'noauto'
3201 are now ordered the same as other units. Effectively, they will be
3202 started earlier (if something actually pulled them in) and stopped
3203 later, similarly to normal mount units that are part of
b0b1edc2 3204 fs-local.target. This change should be invisible to users, but
97b6ed32
ZJS
3205 should prevent those units from being stopped too early during
3206 shutdown.
3207
195d181c
LP
3208 * The systemd-getty-generator now honors a new kernel command line
3209 argument systemd.getty_auto= and a new environment variable
3210 $SYSTEMD_GETTY_AUTO that allows turning it off at boot. This is for
dcdc652f 3211 example useful to turn off gettys inside of containers or similar
195d181c
LP
3212 environments.
3213
3214 * systemd-resolved now listens on a second DNS stub address: 127.0.0.54
3215 (in addition to 127.0.0.53, as before). If DNS requests are sent to
3216 this address they are propagated in "bypass" mode only, i.e. are
3217 almost not processed locally, but mostly forwarded as-is to the
3218 current upstream DNS servers. This provides a stable DNS server
3219 address that proxies all requests dynamically to the right upstream
3220 DNS servers even if these dynamically change. This stub does not do
3221 mDNS/LLMNR resolution. However, it will translate look-ups to
3222 DNS-over-TLS if necessary. This new stub is particularly useful in
3223 container/VM environments, or for tethering setups: use DNAT to
3224 redirect traffic to any IP address to this stub.
3225
bf71ade8
LB
3226 * systemd-importd now honors new environment variables
3227 $SYSTEMD_IMPORT_BTRFS_SUBVOL, $SYSTEMD_IMPORT_BTRFS_QUOTA,
3228 $SYSTEMD_IMPORT_SYNC, which may be used disable btrfs subvolume
3229 generation, btrfs quota setup and disk synchronization.
3230
3231 * systemd-importd and systemd-resolved can now be optionally built with
3232 OpenSSL instead of libgcrypt.
3233
3234 * systemd-repart no longer requires OpenSSL.
3235
dcdc652f
ZJS
3236 * systemd-sysusers will no longer create the redundant 'nobody' group
3237 by default, as the 'nobody' user is already created with an
3238 appropriate primary group.
bf71ade8
LB
3239
3240 * If a unit uses RuntimeMaxSec, systemctl show will now display it.
3241
11b10922
LB
3242 * systemctl show-environment gained support for --output=json.
3243
bf71ade8 3244 * pam_systemd will now first try to use the X11 abstract socket, and
dcdc652f
ZJS
3245 fallback to the socket file in /tmp/.X11-unix/ only if that does not
3246 work.
11b10922 3247
dcdc652f
ZJS
3248 * systemd-journald will no longer go back to volatile storage
3249 regardless of configuration when its unit is restarted.
bf71ade8 3250
dcdc652f
ZJS
3251 * Initial support for the LoongArch architecture has been added (system
3252 call lists, GPT partition table UUIDs, etc).
efeecf40 3253
dcdc652f
ZJS
3254 * systemd-journald's own logging messages are now also logged to the
3255 journal itself when systemd-journald logs to /dev/kmsg.
6959a051 3256
dcdc652f
ZJS
3257 * systemd-journald now re-enables COW for archived journal files on
3258 filesystems that support COW. One benefit of this change is that
3259 archived journal files will now get compressed on btrfs filesystems
3260 that have compression enabled.
6959a051 3261
dcdc652f
ZJS
3262 * systemd-journald now deduplicates fields in a single log message
3263 before adding it to the journal. In archived journal files, it will
3264 also punch holes for unused parts and truncate the file as
3265 appropriate, leading to reductions in disk usage.
6959a051 3266
dcdc652f
ZJS
3267 * journalctl --verify was extended with more informative error
3268 messages.
6959a051 3269
dcdc652f
ZJS
3270 * More of sd-journal's functions are now resistant against journal file
3271 corruption.
6959a051 3272
e63fa075
ZJS
3273 * The shutdown command learnt a new option --show, to display the
3274 scheduled shutdown.
3275
dcdc652f
ZJS
3276 * A LICENSES/ directory is now included in the git tree. It contains a
3277 README.md file that explains the licenses used by source files in
33db1b90 3278 this repository. It also contains the text of all applicable
dcdc652f 3279 licenses as they appear on spdx.org.
6959a051 3280
97b6ed32
ZJS
3281 Contributions from: Aakash Singh, acsfer, Adolfo Jayme Barrientos,
3282 Adrian Vovk, Albert Brox, Alberto Mardegan, Alexander Kanavin,
3283 alexlzhu, Alfonso Sánchez-Beato, Alvin Šipraga, Alyssa Ross,
3284 Amir Omidi, Anatol Pomozov, Andika Triwidada, Andreas Rammhold,
3285 Andreas Valder, Andrej Lajovic, Andrew Soutar, Andrew Stone, Andy Chi,
3286 Anita Zhang, Anssi Hannula, Antonio Alvarez Feijoo,
3287 Antony Deepak Thomas, Arnaud Ferraris, Arvid E. Picciani,
3288 Bastien Nocera, Benjamin Berg, Benjamin Herrenschmidt, Ben Stockett,
3289 Bogdan Seniuc, Boqun Feng, Carl Lei, chlorophyll-zz, Chris Packham,
3290 Christian Brauner, Christian Göttsche, Christian Wehrli,
3291 Christoph Anton Mitterer, Cristian Rodríguez, Daan De Meyer,
3292 Daniel Maixner, Dann Frazier, Dan Streetman, Davide Cavalca,
3293 David Seifert, David Tardon, dependabot[bot], Dimitri John Ledkov,
3294 Dimitri Papadopoulos, Dimitry Ishenko, Dmitry Khlebnikov,
3295 Dominique Martinet, duament, Egor, Egor Ignatov, Emil Renner Berthing,
3296 Emily Gonyer, Ettore Atalan, Evgeny Vereshchagin, Florian Klink,
3297 Franck Bui, Frantisek Sumsal, Geass-LL, Gibeom Gwon, GnunuX,
3298 Gogo Gogsi, gregzuro, Greg Zuro, Gustavo Costa, Hans de Goede,
484abbe6
ZJS
3299 Hela Basa, Henri Chain, hikigaya58, Hugo Carvalho,
3300 Hugo Osvaldo Barrera, Iago Lopez Galeiras, Iago López Galeiras,
97b6ed32
ZJS
3301 I-dont-need-name, igo95862, Jack Dähn, James Hilliard, Jan Janssen,
3302 Jan Kuparinen, Jan Macku, Jan Palus, Jarkko Sakkinen, Jayce Fayne,
3303 jiangchuangang, jlempen, John Lindgren, Jonas Dreßler, Jonas Jelten,
3304 Jonas Witschel, Joris Hartog, José Expósito, Julia Kartseva,
3305 Kai-Heng Feng, Kai Wohlfahrt, Kay Siver Bø, KennthStailey,
3306 Kevin Kuehler, Kevin Orr, Khem Raj, Kristian Klausen, Kyle Laker,
3307 lainahai, LaserEyess, Lennart Poettering, Lia Lenckowski, longpanda,
3308 Luca Boccassi, Luca BRUNO, Ludwig Nussel, Lukas Senionis,
3309 Maanya Goenka, Maciek Borzecki, Marcel Menzel, Marco Scardovi,
3310 Marcus Harrison, Mark Boudreau, Matthijs van Duin, Mauricio Vásquez,
3311 Maxime de Roucy, Max Resch, MertsA, Michael Biebl, Michael Catanzaro,
3312 Michal Koutný, Michal Sekletár, Miika Karanki, Mike Gilbert,
3313 Milo Turner, ml, monosans, Nacho Barrientos, nassir90, Nishal Kulkarni,
e63fa075 3314 nl6720, Ondrej Kozina, Paulo Neves, Pavel Březina, pedro martelletto,
484abbe6 3315 Peter Hutterer, Peter Morrow, Piotr Drąg, Rasmus Villemoes, ratijas,
97b6ed32 3316 Raul Tambre, rene, Riccardo Schirone, Robert-L-Turner, Robert Scheck,
6e6dc095
YW
3317 Ross Jennings, saikat0511, Scott Lamb, Scott Worley,
3318 Sergei Trofimovich, Sho Iizuka, Slava Bacherikov, Slimane Selyan Amiri,
3319 StefanBruens, Steven Siloti, svonohr, Taiki Sugawara, Takashi Sakamoto,
3320 Takuro Onoue, Thomas Blume, Thomas Haller, Thomas Mühlbacher,
3321 Tianlu Shao, Toke Høiland-Jørgensen, Tom Yan, Tony Asleson,
3322 Topi Miettinen, Ulrich Ölmann, Urs Ritzmann, Vincent Bernat,
3323 Vito Caputo, Vladimir Panteleev, WANG Xuerui, Wind/owZ, Wu Xiaotian,
3324 xdavidwu, Xiaotian Wu, xujing, yangmingtai, Yao Wei, Yao Wei (魏銘廷),
3325 Yegor Alexeyev, Yu Watanabe, Zbigniew Jędrzejewski-Szmek,
3326 Дамјан Георгиевски, наб
3327
3328 — Warsaw, 2021-12-23
484abbe6 3329
e7fbba56 3330CHANGES WITH 249:
f973aea7
LP
3331
3332 * When operating on disk images via the --image= switch of various
e7fbba56
LB
3333 tools (such as systemd-nspawn or systemd-dissect), or when udev finds
3334 no 'root=' parameter on the kernel command line, and multiple
f973aea7 3335 suitable root or /usr/ partitions exist in the image, then a simple
28707969
ZJS
3336 comparison inspired by strverscmp() is done on the GPT partition
3337 label, and the newest partition is picked. This permits a simple and
3338 generic whole-file-system A/B update logic where new operating system
f973aea7
LP
3339 versions are dropped into partitions whose label is then updated with
3340 a matching version identifier.
3341
3342 * systemd-sysusers now supports querying the passwords to set for the
3343 users it creates via the "credentials" logic introduced in v247: the
3344 passwd.hashed-password.<user> and passwd.plaintext-password.<user>
3345 credentials are consulted for the password to use (either in UNIX
3346 hashed form, or literally). By default these credentials are inherited
3347 down from PID1 (which in turn imports it from a container manager if
3348 there is one). This permits easy configuration of user passwords
3349 during first boot. Example:
3350
3351 # systemd-nspawn -i foo.raw --volatile=yes --set-credential=passwd.plaintext-password.root:foo
3352
3353 Note that systemd-sysusers operates in purely additive mode: it
3354 executes no operation if the declared users already exist, and hence
3355 doesn't set any passwords as effect of the command line above if the
3356 specified root user exists already in the image. (Note that
3357 --volatile=yes ensures it doesn't, though.)
3358
3359 * systemd-firstboot now also supports querying various system
3360 parameters via the credential subsystems. Thus, as above this may be
3361 used to initialize important system parameters on first boot of
3362 previously unprovisioned images (i.e. images with a mostly empty
3363 /etc/).
3364
66e6128f
LP
3365 * PID 1 may now show both the unit name and the unit description
3366 strings in its status output during boot. This may be configured with
3367 StatusUnitFormat=combined in system.conf or
3368 systemd.status-unit-format=combined on the kernel command line.
3369
f973aea7
LP
3370 * The systemd-machine-id-setup tool now supports a --image= switch for
3371 provisioning a machine ID file into an OS disk image, similar to how
3372 --root= operates on an OS file tree. This matches the existing switch
28707969 3373 of the same name for systemd-tmpfiles, systemd-firstboot, and
f973aea7
LP
3374 systemd-sysusers tools.
3375
28707969
ZJS
3376 * Similarly, systemd-repart gained support for the --image= switch too.
3377 In combination with the existing --size= option, this makes the tool
3378 particularly useful for easily growing disk images in a single
3379 invocation, following the declarative rules included in the image
3380 itself.
f973aea7
LP
3381
3382 * systemd-repart's partition configuration files gained support for a
3383 new switch MakeDirectories= which may be used to create arbitrary
3384 directories inside file systems that are created, before registering
28707969
ZJS
3385 them in the partition table. This is useful in particular for root
3386 partitions to create mount point directories for other partitions
3387 included in the image. For example, a disk image that contains a
3388 root, /home/, and /var/ partitions, may set MakeDirectories=yes to
3389 create /home/ and /var/ as empty directories in the root file system
5601400e
JB
3390 on its creation, so that the resulting image can be mounted
3391 immediately, even in read-only mode.
28707969
ZJS
3392
3393 * systemd-repart's CopyBlocks= setting gained support for the special
3394 value "auto". If used, a suitable matching partition on the booted OS
3395 is found as source to copy blocks from. This is useful when
f973aea7 3396 implementing replicating installers, that are booted from one medium
28707969 3397 and then stream their own root partition onto the target medium.
f973aea7
LP
3398
3399 * systemd-repart's partition configuration files gained support for a
66e6128f
LP
3400 Flags=, a ReadOnly= and a NoAuto= setting, allowing control of these
3401 GPT partition flags for the created partitions: this is useful for
3402 marking newly created partitions as read-only, or as not being
3403 subject for automatic mounting from creation on.
f973aea7
LP
3404
3405 * The /etc/os-release file has been extended with two new (optional)
28707969
ZJS
3406 variables IMAGE_VERSION= and IMAGE_ID=, carrying identity and version
3407 information for OS images that are updated comprehensively and
3408 atomically as one image. Two new specifiers %M, %A now resolve to
3409 these two fields in the various configuration options that resolve
3410 specifiers.
f973aea7
LP
3411
3412 * portablectl gained a new switch --extension= for enabling portable
3413 service images with extensions that follow the extension image
165c23c6
LB
3414 concept introduced with v248, and thus allows layering multiple
3415 images when setting up the root filesystem of the service.
f973aea7
LP
3416
3417 * systemd-coredump will now extract ELF build-id information from
28707969
ZJS
3418 processes dumping core and include it in the coredump report.
3419 Moreover, it will look for ELF .note.package sections with
3420 distribution packaging meta-information about the crashing process.
3421 This is useful to directly embed the rpm or deb (or any other)
3422 package name and version in ELF files, making it easy to match
3423 coredump reports with the specific package for which the software was
3424 compiled. This is particularly useful on environments with ELF files
3425 from multiple vendors, different distributions and versions, as is
3426 common today in our containerized and sand-boxed world. For further
3427 information, see:
f973aea7
LP
3428
3429 https://systemd.io/COREDUMP_PACKAGE_METADATA
3430
28707969
ZJS
3431 * A new udev hardware database has been added for FireWire devices
3432 (IEEE 1394).
f973aea7 3433
14e97d24
ZJS
3434 * The "net_id" built-in of udev has been updated with three
3435 backwards-incompatible changes:
3436
3437 - PCI hotplug slot names on s390 systems are now parsed as
3438 hexadecimal numbers. They were incorrectly parsed as decimal
3439 previously, or ignored if the name was not a valid decimal
3440 number.
3441
3442 - PCI onboard indices up to 65535 are allowed. Previously, numbers
3443 above 16383 were rejected. This primarily impacts s390 systems,
3444 where values up to 65535 are used.
3445
3446 - Invalid characters in interface names are replaced with "_".
3447
3448 The new version of the net naming scheme is "v249". The previous
3449 scheme can be selected via the "net.naming-scheme=v247" kernel
3450 command line parameter.
3451
f973aea7
LP
3452 * sd-bus' sd_bus_is_ready() and sd_bus_is_open() calls now accept a
3453 NULL bus object, for which they will return false. Or in other words,
3454 an unallocated bus connection is neither ready nor open.
3455
99c2a955 3456 * The sd-device API acquired a new API function
28707969
ZJS
3457 sd_device_get_usec_initialized() that returns the monotonic time when
3458 the udev device first appeared in the database.
99c2a955
LP
3459
3460 * sd-device gained a new APIs sd_device_trigger_with_uuid() and
3461 sd_device_get_trigger_uuid(). The former is similar to
3462 sd_device_trigger() but returns a randomly generated UUID that is
3463 associated with the synthetic uevent generated by the call. This UUID
3464 may be read from the sd_device object a monitor eventually receives,
3465 via the sd_device_get_trigger_uuid(). This interface requires kernel
3466 4.13 or above to work, and allows tracking a synthetic uevent through
3467 the entire device management stack. The "udevadm trigger --settle"
3468 logic has been updated to make use of this concept if available to
3469 wait precisely for the uevents it generates. "udevadm trigger" also
3470 gained a new parameter --uuid that prints the UUID for each generated
3471 uevent.
3472
ca1e8584
LP
3473 * sd-device also gained new APIs sd_device_new_from_ifname() and
3474 sd_device_new_from_ifindex() for allocating an sd-device object for
3475 the specified network interface. The former accepts an interface name
3476 (either a primary or an alternative name), the latter an interface
3477 index.
3478
f973aea7
LP
3479 * The native Journal protocol has been documented. Clients may talk
3480 this as alternative to the classic BSD syslog protocol for locally
3481 delivering log records to the Journal. The protocol has been stable
5601400e 3482 for a long time and in fact been implemented already in a variety
f973aea7
LP
3483 of alternative client libraries. This documentation makes the support
3484 for that official:
3485
3486 https://systemd.io/JOURNAL_NATIVE_PROTOCOL
3487
3488 * A new BPFProgram= setting has been added to service files. It may be
3489 set to a path to a loaded kernel BPF program, i.e. a path to a bpffs
3490 file, or a bind mount or symlink to one. This may be used to upload
3491 and manage BPF programs externally and then hook arbitrary systemd
3492 services into them.
3493
3494 * The "home.arpa" domain that has been officially declared as the
3495 choice for domain for local home networks per RFC 8375 has been added
3496 to the default NTA list of resolved, since DNSSEC is generally not
3497 available on private domains.
3498
3499 * The CPUAffinity= setting of unit files now resolves "%" specifiers.
3500
3501 * A new ManageForeignRoutingPolicyRules= setting has been added to
3502 .network files which may be used to exclude foreign-created routing
3503 policy rules from systemd-networkd management.
3504
3505 * systemd-network-wait-online gained two new switches -4 and -6 that
3506 may be used to tweak whether to wait for only IPv4 or only IPv6
3507 connectivity.
3508
3509 * .network files gained a new RequiredFamilyForOnline= setting to
3510 fine-tune whether to require an IPv4 or IPv6 address in order to
3511 consider an interface "online".
3512
99c2a955
LP
3513 * networkctl will now show an over-all "online" state in the per-link
3514 information.
3515
3516 * In .network files a new OutgoingInterface= setting has been added to
3517 specify the output interface in bridge FDB setups.
3518
566c8176 3519 * In .network files the Multipath group ID may now be configured for
99c2a955 3520 [NextHop] entries, via the new Group= setting.
f973aea7
LP
3521
3522 * The DHCP server logic configured in .network files gained a new
28707969
ZJS
3523 setting RelayTarget= that turns the server into a DHCP server relay.
3524 The RelayAgentCircuitId= and RelayAgentRemoteId= settings may be used
3525 to further tweak the DHCP relay behaviour.
f973aea7 3526
28707969
ZJS
3527 * The DHCP server logic also gained a new ServerAddress= setting in
3528 .network files that explicitly specifies the server IP address to
3529 use. If not specified, the address is determined automatically, as
3530 before.
f973aea7 3531
99c2a955
LP
3532 * The DHCP server logic in systemd-networkd gained support for static
3533 DHCP leases, configurable via the [DHCPServerStaticLease]
3534 section. This allows explicitly mapping specific MAC addresses to
3535 fixed IP addresses and vice versa.
3536
3537 * The RestrictAddressFamilies= setting in service files now supports a
3538 new special value "none". If specified sockets of all address
3539 families will be made unavailable to services configured that way.
f973aea7
LP
3540
3541 * systemd-fstab-generator and systemd-repart have been updated to
3542 support booting from disks that carry only a /usr/ partition but no
28707969
ZJS
3543 root partition yet, and where systemd-repart can add it in on the
3544 first boot. This is useful for implementing systems that ship with a
3545 single /usr/ file system, and whose root file system shall be set up
3546 and formatted on a LUKS-encrypted volume whose key is generated
3547 locally (and possibly enrolled in the TPM) during the first boot.
f973aea7
LP
3548
3549 * The [Address] section of .network files now accepts a new
3550 RouteMetric= setting that configures the routing metric to use for
28707969
ZJS
3551 the prefix route created as effect of the address configuration.
3552 Similarly, the [DHCPv6PrefixDelegation] and [IPv6Prefix] sections
3553 gained matching settings for their prefix routes. (The option of the
3554 same name in the [DHCPv6] section is moved to [IPv6AcceptRA], since
3555 it conceptually belongs there; the old option is still understood for
3556 compatibility.)
f973aea7 3557
f973aea7
LP
3558 * The DHCPv6 IAID and DUID are now explicitly configurable in .network
3559 files.
3560
3561 * A new udev property ID_NET_DHCP_BROADCAST on network interface
28707969 3562 devices is now honoured by systemd-networkd, controlling whether to
f973aea7
LP
3563 issue DHCP offers via broadcasting. This is used to ensure that s390
3564 layer 3 network interfaces work out-of-the-box with systemd-networkd.
3565
3566 * nss-myhostname and systemd-resolved will now synthesize address
3567 records for a new special hostname "_outbound". The name will always
3568 resolve to the local IP addresses most likely used for outbound
28707969 3569 connections towards the default routes. On multi-homed hosts this is
f973aea7
LP
3570 useful to have a stable handle referring to "the" local IP address
3571 that matters most, to the point where this is defined.
3572
3573 * The Discoverable Partition Specification has been updated with a new
5601400e
JB
3574 GPT partition flag "grow-file-system" defined for its partition
3575 types. Whenever partitions with this flag set are automatically
3576 mounted (i.e. via systemd-gpt-auto-generator or the --image= switch
3577 of systemd-nspawn or other tools; and as opposed to explicit mounting
f973aea7 3578 via /etc/fstab), the file system within the partition is
28707969
ZJS
3579 automatically grown to the full size of the partition. If the file
3580 system size already matches the partition size this flag has no
3581 effect. Previously, this functionality has been available via the
3582 explicit x-systemd.growfs mount option, and this new flag extends
3583 this to automatically discovered mounts. A new GrowFileSystem=
3584 setting has been added to systemd-repart drop-in files that allows
3585 configuring this partition flag. This new flag defaults to on for
3586 partitions automatically created by systemd-repart, except if they
3587 are marked read-only. See the specification for further details:
f973aea7
LP
3588
3589 https://systemd.io/DISCOVERABLE_PARTITIONS
3590
99c2a955 3591 * .network files gained a new setting RoutesToNTP= in the [DHCPv4]
f973aea7
LP
3592 section. If enabled (which is the default), and an NTP server address
3593 is acquired through a DHCP lease on this interface an explicit route
3594 to this address is created on this interface to ensure that NTP
3595 traffic to the NTP server acquired on an interface is also routed
4076ad9d 3596 through that interface. The pre-existing RoutesToDNS= setting that
f973aea7
LP
3597 implements the same for DNS servers is now enabled by default.
3598
3599 * A pair of service settings SocketBindAllow= + SocketBindDeny= have
3600 been added that may be used to restrict the network interfaces
3601 sockets created by the service may be bound to. This is implemented
3602 via BPF.
3603
14e97d24
ZJS
3604 * A new ConditionFirmware= setting has been added to unit files to
3605 conditionalize on certain firmware features. At the moment it may
3606 check whether running on an UEFI system, a device.tree system, or if
3607 the system is compatible with some specified device-tree feature.
3608
3609 * A new ConditionOSRelease= setting has been added to unit files to
3610 check os-release(5) fields. The "=", "!=", "<", "<=", ">=", ">"
3611 operators may be used to check if some field has some specific value
387f6955
YW
3612 or do an alphanumerical comparison. Equality comparisons are useful
3613 for fields like ID, but relative comparisons for fields like
3614 VERSION_ID or IMAGE_VERSION.
f973aea7
LP
3615
3616 * hostnamed gained a new Describe() D-Bus method that returns a JSON
3617 serialization of the host data it exposes. This is exposed via
28707969
ZJS
3618 "hostnamectl --json=" to acquire a host identity description in JSON.
3619 It's our intention to add a similar features to most services and
3620 objects systemd manages, in order to simplify integration with
3621 program code that can consume JSON.
f973aea7 3622
28707969
ZJS
3623 * Similarly, networkd gained a Describe() method on its Manager and
3624 Link bus objects. This is exposed via "networkctl --json=".
5f94ac54 3625
28707969
ZJS
3626 * hostnamectl's various "get-xyz"/"set-xyz" verb pairs
3627 (e.g. "hostnamectl get-hostname", "hostnamectl "set-hostname") have
3628 been replaced by a single "xyz" verb (e.g. "hostnamectl hostname")
3629 that is used both to get the value (when no argument is given), and
3630 to set the value (when an argument is specified). The old names
3631 continue to be supported for compatibility.
f973aea7
LP
3632
3633 * systemd-detect-virt and ConditionVirtualization= are now able to
3634 correctly identify Amazon EC2 environments.
3635
3636 * The LogLevelMax= setting of unit files now applies not only to log
3637 messages generated *by* the service, but also to log messages
3638 generated *about* the service by PID 1. To suppress logs concerning a
3639 specific service comprehensively, set this option to a high log
3640 level.
3641
3642 * bootctl gained support for a new --make-machine-id-directory= switch
3643 that allows precise control on whether to create the top-level
28707969
ZJS
3644 per-machine directory in the boot partition that typically contains
3645 Type 1 boot loader entries.
f973aea7 3646
5f94ac54
LP
3647 * During build SBAT data to include in the systemd-boot EFI PE binaries
3648 may be specified now.
3649
3650 * /etc/crypttab learnt a new option "headless". If specified any
3651 requests to query the user interactively for passwords or PINs will
3652 be skipped. This is useful on systems that are headless, i.e. where
3653 an interactive user is generally not present.
3654
00fb6caf
LP
3655 * /etc/crypttab also learnt a new option "password-echo=" that allows
3656 configuring whether the encryption password prompt shall echo the
3657 typed password and if so, do so literally or via asterisks. (The
3658 default is the same behaviour as before: provide echo feedback via
3659 asterisks.)
3660
5f94ac54
LP
3661 * FIDO2 support in systemd-cryptenroll/systemd-cryptsetup and
3662 systemd-homed has been updated to allow explicit configuration of the
3663 "user presence" and "user verification" checks, as well as whether a
3664 PIN is required for authentication, via the new switches
3665 --fido2-with-user-presence=, --fido2-with-user-verification=,
3666 --fido2-with-client-pin= to systemd-cryptenroll and homectl. Which
3667 features are available, and may be enabled or disabled depends on the
3668 used FIDO2 token.
3669
3670 * systemd-nspawn's --private-user= switch now accepts the special value
3671 "identity" which configures a user namespacing environment with an
3672 identity mapping of 65535 UIDs. This means the container UID 0 is
3673 mapped to the host UID 0, and the UID 1 to host UID 1. On first look
3674 this doesn't appear to be useful, however it does reduce the attack
3675 surface a bit, since the resulting container will possess process
3676 capabilities only within its namespace and not on the host.
3677
3678 * systemd-nspawn's --private-user-chown switch has been replaced by a
3679 more generic --private-user-ownership= switch that accepts one of
3680 three values: "chown" is equivalent to the old --private-user-chown,
3681 and "off" is equivalent to the absence of the old switch. The value
3682 "map" uses the new UID mapping mounts of Linux 5.12 to map ownership
3683 of files and directories of the underlying image to the chosen UID
3684 range for the container. "auto" is equivalent to "map" if UID mapping
3685 mount are supported, otherwise it is equivalent to "chown". The short
3686 -U switch systemd-nspawn now implies --private-user-ownership=auto
3687 instead of the old --private-user-chown. Effectively this means: if
3688 the backing file system supports UID mapping mounts the feature is
3689 now used by default if -U is used. Generally, it's a good idea to use
3690 UID mapping mounts instead of recursive chown()ing, since it allows
3691 running containers off immutable images (since no modifications of
3692 the images need to take place), and share images between multiple
3693 instances. Moreover, the recursive chown()ing operation is slow and
3694 can be avoided. Conceptually it's also a good thing if transient UID
3695 range uses do not leak into persistent file ownership anymore. TLDR:
3696 finally, the last major drawback of user namespacing has been
3697 removed, and -U should always be used (unless you use btrfs, where
3698 UID mapped mounts do not exist; or your container actually needs
3699 privileges on the host).
3700
3701 * nss-systemd now synthesizes user and group shadow records in addition
3702 to the main user and group records. Thus, hashed passwords managed by
3703 systemd-homed are now accessible via the shadow database.
3704
3705 * The userdb logic (and thus nss-systemd, and so on) now read
3706 additional user/group definitions in JSON format from the drop-in
3707 directories /etc/userdb/, /run/userdb/, /run/host/userdb/ and
3708 /usr/lib/userdb/. This is a simple and powerful mechanism for making
3709 additional users available to the system, with full integration into
3710 NSS including the shadow databases. Since the full JSON user/group
3711 record format is supported this may also be used to define users with
3712 resource management settings and other runtime settings that
3713 pam_systemd and systemd-logind enforce at login.
3714
3715 * The userdbctl tool gained two new switches --with-dropin= and
3716 --with-varlink= which can be used to fine-tune the sources used for
3717 user database lookups.
3718
3719 * systemd-nspawn gained a new switch --bind-user= for binding a host
3720 user account into the container. This does three things: the user's
3721 home directory is bind mounted from the host into the container,
3722 below the /run/userdb/home/ hierarchy. A free UID is picked in the
3723 container, and a user namespacing UID mapping to the host user's UID
3724 installed. And finally, a minimal JSON user and group record (along
3725 with its hashed password) is dropped into /run/host/userdb/. These
3726 records are picked up automatically by the userdb drop-in logic
3727 describe above, and allow the user to login with the same password as
3728 on the host. Effectively this means: if host and container run new
3729 enough systemd versions making a host user available to the container
3730 is trivially simple.
3731
3732 * systemd-journal-gatewayd now supports the switches --user, --system,
3733 --merge, --file= that are equivalent to the same switches of
3734 journalctl, and permit exposing only the specified subset of the
3735 Journal records.
3736
5f94ac54
LP
3737 * The OnFailure= dependency between units is now augmented with a
3738 implicit reverse dependency OnFailureOf= (this new dependency cannot
3739 be configured directly it's only created as effect of an OnFailure=
3740 dependency in the reverse order — it's visible in "systemctl show"
3741 however). Similar, Slice= now has an reverse dependency SliceOf=,
3742 that is also not configurable directly, but useful to determine all
3743 units that are members of a slice.
3744
3745 * A pair of new dependency types between units PropagatesStopTo= +
3746 StopPropagatedFrom= has been added, that allows propagation of unit
3747 stop events between two units. It operates similar to the existing
3748 PropagatesReloadTo= + ReloadPropagatedFrom= dependencies.
f973aea7 3749
99c2a955
LP
3750 * A new dependency type OnSuccess= has been added (plus the reverse
3751 dependency OnSuccessOf=, which cannot be configured directly, but
28707969
ZJS
3752 exists only as effect of the reverse OnSuccess=). It is similar to
3753 OnFailure=, but triggers in the opposite case: when a service exits
99c2a955 3754 cleanly. This allows "chaining up" of services where one or more
28707969 3755 services are started once another service has successfully completed.
99c2a955
LP
3756
3757 * A new dependency type Upholds= has been added (plus the reverse
28707969
ZJS
3758 dependency UpheldBy=, which cannot be configured directly, but exists
3759 only as effect of Upholds=). This dependency type is a stronger form
3760 of Wants=: if a unit has an UpHolds= dependency on some other unit
3761 and the former is active then the latter is started whenever it is
3762 found inactive (and no job is queued for it). This is an alternative
3763 to Restart= inside service units, but less configurable, and the
3764 request to uphold a unit is not encoded in the unit itself but in
3765 another unit that intends to uphold it.
99c2a955
LP
3766
3767 * The systemd-ask-password tool now also supports reading passwords
3768 from the credentials subsystem, via the new --credential= switch.
3769
3770 * The systemd-ask-password tool learnt a new switch --emoji= which may
3771 be used to explicit control whether the lock and key emoji (🔐) is
3772 shown in the password prompt on suitable TTYs.
3773
3774 * The --echo switch of systemd-ask-password now optionally takes a
28707969
ZJS
3775 parameter that controls character echo. It may either show asterisks
3776 (default, as before), turn echo off entirely, or echo the typed
3777 characters literally.
99c2a955 3778
66e6128f
LP
3779 * The systemd-ask-password tool also gained a new -n switch for
3780 suppressing output of a trailing newline character when writing the
3781 acquired password to standard output, similar to /bin/echo's -n
3782 switch.
3783
99c2a955
LP
3784 * New documentation has been added that describes the organization of
3785 the systemd source code tree:
3786
3787 https://systemd.io/ARCHITECTURE
3788
165c23c6
LB
3789 * Units using ConditionNeedsUpdate= will no longer be activated in
3790 the initrd.
3791
00fb6caf
LP
3792 * It is now possible to list a template unit in the WantedBy= or
3793 RequiredBy= settings of the [Install] section of another template
3794 unit, which will be instantiated using the same instance name.
165c23c6
LB
3795
3796 * A new MemoryAvailable property is available for units. If the unit,
0923b425 3797 or the slices it is part of, have a memory limit set via MemoryMax=/
165c23c6 3798 MemoryHigh=, MemoryAvailable will indicate how much more memory the
0923b425 3799 unit can claim before hitting the limits.
165c23c6
LB
3800
3801 * systemd-coredump will now try to stay below the cgroup memory limit
3802 placed on itself or one of the slices it runs under, if the storage
3803 area for core files (/var/lib/systemd/coredump/) is placed on a tmpfs,
3804 since files written on such filesystems count toward the cgroup memory
3805 limit. If there is not enough available memory in such cases to store
3806 the core file uncompressed, systemd-coredump will skip to compressed
3807 storage directly (if enabled) and it will avoid analyzing the core file
3808 to print backtrace and metadata in the journal.
3809
00fb6caf
LP
3810 * tmpfiles.d/ drop-ins gained a new '=' modifier to check if the type
3811 of a path matches the configured expectations, and remove it if not.
165c23c6 3812
00fb6caf
LP
3813 * tmpfiles.d/'s 'Age' now accepts an 'age-by' argument, which allows to
3814 specify which of the several available filesystem timestamps (access
3815 time, birth time, change time, modification time) to look at when
3816 deciding whether a path has aged enough to be cleaned.
165c23c6 3817
00fb6caf
LP
3818 * A new IPv6StableSecretAddress= setting has been added to .network
3819 files, which takes an IPv6 address to use as secret for IPv6 address
3820 generation.
3821
3822 * The [DHCPServer] logic in .network files gained support for a new
3823 UplinkInterface= setting that permits configuration of the uplink
3824 interface name to propagate DHCP lease information from.
3825
3826 * The WakeOnLan= setting in .link files now accepts a list of flags
3827 instead of a single one, to configure multiple wake-on-LAN policies.
3828
ca1e8584
LP
3829 * User-space defined tracepoints (USDT) have been added to udev at
3830 strategic locations. This is useful for tracing udev behaviour and
3831 performance with bpftrace and similar tools.
3832
3833 * systemd-journald-upload gained a new NetworkTimeoutSec= option for
3834 setting a network timeout time.
3835
5b8fdb18
LB
3836 * If a system service is running in a new mount namespace (RootDirectory=
3837 and friends), all file systems will be mounted with MS_NOSUID by
3838 default, unless the system is running with SELinux enabled.
3839
66e6128f
LP
3840 * When enumerating time zones the timedatectl tool will now consult the
3841 'tzdata.zi' file shipped by the IANA time zone database package, in
3842 addition to 'zone1970.tab', as before. This makes sure time zone
3843 aliases are now correctly supported. Some distributions so far did
3844 not install this additional file, most do however. If you
3845 distribution does not install it yet, it might make sense to change
3846 that.
3847
3c88ade5
KHF
3848 * Intel HID rfkill event is no longer masked, since it's the only
3849 source of rfkill event on newer HP laptops. To have both backward and
3850 forward compatibility, userspace daemon needs to debounce duplicated
3851 events in a short time window.
3852
b2f0876b 3853 Contributions from: Aakash Singh, adrian5, Albert Brox,
fc4340b0
LB
3854 Alexander Sverdlin, Alexander Tsoy, Alexey Rubtsov, alexlzhu,
3855 Allen Webb, Alvin Šipraga, Alyssa Ross, Anders Wenhaug,
3856 Andrea Pappacoda, Anita Zhang, asavah, Balint Reczey, Bertrand Jacquin,
3857 borna-blazevic, caoxia2008cxx, Carlo Teubner, Christian Göttsche,
3858 Christian Hesse, Daniel Schaefer, Dan Streetman,
3859 David Santamaría Rogado, David Tardon, Deepak Rawat, dgcampea,
3860 Dimitri John Ledkov, ei-ke, Emilio Herrera, Emil Renner Berthing,
3861 Eric Cook, Flos Lonicerae, Franck Bui, Francois Gervais,
3862 Frantisek Sumsal, Gibeom Gwon, gitm0, Hamish Moffatt, Hans de Goede,
3863 Harsh Barsaiyan, Henri Chain, Hristo Venev, Icenowy Zheng, Igor Zhbanov,
3864 imayoda, Jakub Warczarek, James Buren, Jan Janssen, Jan Macku,
3865 Jan Synacek, Jason Francis, Jayanth Ananthapadmanaban, Jeremy Szu,
3866 Jérôme Carretero, Jesse Stricker, jiangchuangang, Joerg Behrmann,
3867 Jóhann B. Guðmundsson, Jörg Deckert, Jörg Thalheim, Juergen Hoetzel,
3868 Julia Kartseva, Kai-Heng Feng, Khem Raj, KoyamaSohei, laineantti,
3869 Lennart Poettering, LetzteInstanz, Luca Adrian L, Luca Boccassi,
3870 Lucas Magasweran, Mantas Mikulėnas, Marco Antonio Mauro, Mark Wielaard,
3871 Masahiro Matsuya, Matt Johnston, Michael Catanzaro, Michal Koutný,
3872 Michal Sekletár, Mike Crowe, Mike Kazantsev, Milan, milaq,
3873 Miroslav Suchý, Morten Linderud, nerdopolis, nl6720, Noah Meyerhans,
3874 Oleg Popov, Olle Lundberg, Ondrej Kozina, Paweł Marciniak, Perry.Yuan,
3875 Peter Hutterer, Peter Kjellerstedt, Peter Morrow, Phaedrus Leeds,
3876 plattrap, qhill, Raul Tambre, Roman Beranek, Roshan Shariff,
3877 Ryan Hendrickson, Samuel BF, scootergrisen, Sebastian Blunt,
3878 Seong-ho Cho, Sergey Bugaev, Sevan Janiyan, Sibo Dong, simmon,
3879 Simon Watts, Srinidhi Kaushik, Štěpán Němec, Steve Bonds, Susant Sahani,
3880 sverdlin, syyhao1994, Takashi Sakamoto, Topi Miettinen, tramsay,
3881 Trent Piepho, Uwe Kleine-König, Viktor Mihajlovski, Vincent Dechenaux,
3882 Vito Caputo, William A. Kennington III, Yangyang Shen, Yegor Alexeyev,
3883 Yi Gao, Yu Watanabe, Zbigniew Jędrzejewski-Szmek, zsien, наб
6969135f 3884
f6278558 3885 — Edinburgh, 2021-07-07
99c2a955 3886
94293d65
LB
3887CHANGES WITH 248:
3888
6dd990f3
ZJS
3889 * A concept of system extension images is introduced. Such images may
3890 be used to extend the /usr/ and /opt/ directory hierarchies at
3891 runtime with additional files (even if the file system is read-only).
3892 When a system extension image is activated, its /usr/ and /opt/
3893 hierarchies and os-release information are combined via overlayfs
3894 with the file system hierarchy of the host OS.
3895
3896 A new systemd-sysext tool can be used to merge, unmerge, list, and
3897 refresh system extension hierarchies. See
3898 https://www.freedesktop.org/software/systemd/man/systemd-sysext.html.
3899
3900 The systemd-sysext.service automatically merges installed system
3901 extensions during boot (before basic.target, but not in very early
3902 boot, since various file systems have to be mounted first).
3903
3904 The SYSEXT_LEVEL= field in os-release(5) may be used to specify the
3905 supported system extension level.
3906
873b5cbd
LB
3907 * A new ExtensionImages= unit setting can be used to apply the same
3908 system extension image concept from systemd-sysext to the namespaced
3909 file hierarchy of specific services, following the same rules and
3910 constraints.
3911
33e68cce
ZJS
3912 * Support for a new special "root=tmpfs" kernel command-line option has
3913 been added. When specified, a tmpfs is mounted on /, and mount.usr=
3914 should be used to point to the operating system implementation.
3915
6dd990f3 3916 * A new configuration file /etc/veritytab may be used to configure
2b6a8a4b
LP
3917 dm-verity integrity protection for block devices. Each line is in the
3918 format "volume-name data-device hash-device roothash options",
3919 similar to /etc/crypttab.
6dd990f3 3920
2b6a8a4b 3921 * A new kernel command-line option systemd.verity.root_options= may be
6dd990f3
ZJS
3922 used to configure dm-verity behaviour for the root device.
3923
3924 * The key file specified in /etc/crypttab (the third field) may now
1f3315b8
LP
3925 refer to an AF_UNIX/SOCK_STREAM socket in the file system. The key is
3926 acquired by connecting to that socket and reading from it. This
3927 allows the implementation of a service to provide key information
3928 dynamically, at the moment when it is needed.
6dd990f3 3929
89b6acfd
ZJS
3930 * When the hostname is set explicitly to "localhost", systemd-hostnamed
3931 will respect this. Previously such a setting would be mostly silently
3932 ignored. The goal is to honour configuration as specified by the
3933 user.
3934
3935 * The fallback hostname that will be used by the system manager and
3936 systemd-hostnamed can now be configured in two new ways: by setting
3937 DEFAULT_HOSTNAME= in os-release(5), or by setting
3938 $SYSTEMD_DEFAULT_HOSTNAME in the environment block. As before, it can
3939 also be configured during compilation. The environment variable is
3940 intended for testing and local overrides, the os-release(5) field is
3941 intended to allow customization by different variants of a
3942 distribution that share the same compiled packages.
3943
3944 * The environment block of the manager itself may be configured through
3945 a new ManagerEnvironment= setting in system.conf or user.conf. This
3946 complements existing ways to set the environment block (the kernel
3947 command line for the system manager, the inherited environment and
3948 user@.service unit file settings for the user manager).
3949
3950 * systemd-hostnamed now exports the default hostname and the source of
3951 the configured hostname ("static", "transient", or "default") as
3952 D-Bus properties.
3953
3954 * systemd-hostnamed now exports the "HardwareVendor" and
3955 "HardwareModel" D-Bus properties, which are supposed to contain a
3956 pair of cleaned up, human readable strings describing the system's
3957 vendor and model. It's typically sourced from the firmware's DMI
3958 tables, but may be augmented from a new hwdb database. hostnamectl
3959 shows this in the status output.
3960
1f3315b8
LP
3961 * Support has been added to systemd-cryptsetup for extracting the
3962 PKCS#11 token URI and encrypted key from the LUKS2 JSON embedded
3963 metadata header. This allows the information how to open the
3964 encrypted device to be embedded directly in the device and obviates
3965 the need for configuration in an external file.
6dd990f3 3966
1f3315b8 3967 * systemd-cryptsetup gained support for unlocking LUKS2 volumes using
2b6a8a4b
LP
3968 TPM2 hardware, as well as FIDO2 security tokens (in addition to the
3969 pre-existing support for PKCS#11 security tokens).
6dd990f3 3970
2b6a8a4b
LP
3971 * systemd-repart may enroll encrypted partitions using TPM2
3972 hardware. This may be useful for example to create an encrypted /var
3973 partition bound to the machine on first boot.
6dd990f3 3974
1f3315b8
LP
3975 * A new systemd-cryptenroll tool has been added to enroll TPM2, FIDO2
3976 and PKCS#11 security tokens to LUKS volumes, list and destroy
3977 them. See:
3978
dc7e580e 3979 https://0pointer.net/blog/unlocking-luks2-volumes-with-tpm2-fido2-pkcs11-security-hardware-on-systemd-248.html
1f3315b8
LP
3980
3981 It also supports enrolling "recovery keys" and regular passphrases.
3982
3983 * The libfido2 dependency is now based on dlopen(), so that the library
2b6a8a4b
LP
3984 is used at runtime when installed, but is not a hard runtime
3985 dependency.
1f3315b8
LP
3986
3987 * systemd-cryptsetup gained support for two new options in
2b6a8a4b
LP
3988 /etc/crypttab: "no-write-workqueue" and "no-read-workqueue" which
3989 request synchronous processing of encryption/decryption IO.
6dd990f3 3990
2b6a8a4b
LP
3991 * The manager may be configured at compile time to use the fexecve()
3992 instead of the execve() system call when spawning processes. Using
3993 fexecve() closes a window between checking the security context of an
3994 executable and spawning it, but unfortunately the kernel displays
3995 stale information in the process' "comm" field, which impacts ps
3996 output and such.
6dd990f3
ZJS
3997
3998 * The configuration option -Dcompat-gateway-hostname has been dropped.
3999 "_gateway" is now the only supported name.
4000
1f3315b8
LP
4001 * The ConditionSecurity=tpm2 unit file setting may be used to check if
4002 the system has at least one TPM2 (tpmrm class) device.
6dd990f3 4003
2b6a8a4b
LP
4004 * A new ConditionCPUFeature= has been added that may be used to
4005 conditionalize units based on CPU features. For example,
4006 ConditionCPUFeature=rdrand will condition a unit so that it is only
4007 run when the system CPU supports the RDRAND opcode.
4008
89b6acfd
ZJS
4009 * The existing ConditionControlGroupController= setting has been
4010 extended with two new values "v1" and "v2". "v2" means that the
b49bb286 4011 unified v2 cgroup hierarchy is used, and "v1" means that legacy v1
89b6acfd
ZJS
4012 hierarchy or the hybrid hierarchy are used.
4013
33e68cce
ZJS
4014 * A new PrivateIPC= setting on a unit file allows executed processes to
4015 be moved into a private IPC namespace, with separate System V IPC
4016 identifiers and POSIX message queues.
4017
4018 A new IPCNamespacePath= allows the unit to be joined to an existing
4019 IPC namespace.
4020
64297c86 4021 * The tables of system calls in seccomp filters are now automatically
6dd990f3
ZJS
4022 generated from kernel lists exported on
4023 https://fedora.juszkiewicz.com.pl/syscalls.html.
4024
4025 The following architectures should now have complete lists:
4026 alpha, arc, arm64, arm, i386, ia64, m68k, mips64n32, mips64, mipso32,
4027 powerpc, powerpc64, s390, s390x, tilegx, sparc, x86_64, x32.
4028
94293d65 4029 * The MountAPIVFS= service file setting now additionally mounts a tmpfs
6dd990f3
ZJS
4030 on /run/ if it is not already a mount point. A writable /run/ has
4031 always been a requirement for a functioning system, but this was not
94293d65 4032 guaranteed when using a read-only image.
6dd990f3
ZJS
4033
4034 Users can always specify BindPaths= or InaccessiblePaths= as
4035 overrides, and they will take precedence. If the host's root mount
4036 point is used, there is no change in behaviour.
4037
4038 * New bind mounts and file system image mounts may be injected into the
4039 mount namespace of a service (without restarting it). This is exposed
9ba008cb
LB
4040 respectively as 'systemctl bind <unit> <path>…' and
4041 'systemctl mount-image <unit> <image>…'.
6dd990f3 4042
2b6a8a4b 4043 * The StandardOutput= and StandardError= settings can now specify files
6dd990f3
ZJS
4044 to be truncated for output (as "truncate:<path>").
4045
4046 * The ExecPaths= and NoExecPaths= settings may be used to specify
4047 noexec for parts of the file system.
4048
1f3315b8 4049 * sd-bus has a new function sd_bus_open_user_machine() to open a
6dd990f3 4050 connection to the session bus of a specific user in a local container
2b6a8a4b
LP
4051 or on the local host. This is exposed in the existing -M switch to
4052 systemctl and similar tools:
1f3315b8
LP
4053
4054 systemctl --user -M lennart@foobar start foo
4055
4056 This will connect to the user bus of a user "lennart" in container
4057 "foobar". If no container name is specified, the specified user on
4058 the host itself is connected to
4059
4060 systemctl --user -M lennart@ start quux
6dd990f3 4061
6c41cf44
LP
4062 * sd-bus also gained a convenience function sd_bus_message_send() to
4063 simplify invocations of sd_bus_send(), taking only a single
4064 parameter: the message to send.
1f3315b8
LP
4065
4066 * sd-event allows rate limits to be set on event sources, for dealing
4067 with high-priority event sources that might starve out others. See
4068 the new man page sd_event_source_set_ratelimit(3) for details.
6dd990f3
ZJS
4069
4070 * systemd.link files gained a [Link] Promiscuous= switch, which allows
4071 the device to be raised in promiscuous mode.
4072
4073 New [Link] TransmitQueues= and ReceiveQueues= settings allow the
4074 number of TX and RX queues to be configured.
4075
4076 New [Link] TransmitQueueLength= setting allows the size of the TX
4077 queue to be configured.
4078
4079 New [Link] GenericSegmentOffloadMaxBytes= and
4080 GenericSegmentOffloadMaxSegments= allow capping the packet size and
4081 the number of segments accepted in Generic Segment Offload.
4082
33e68cce
ZJS
4083 * systemd-networkd gained support for the "B.A.T.M.A.N. advanced"
4084 wireless routing protocol that operates on ISO/OSI Layer 2 only and
4085 uses ethernet frames to route/bridge packets. This encompasses a new
4086 "batadv" netdev Type=, a new [BatmanAdvanced] section with a bunch of
4087 new settings in .netdev files, and a new BatmanAdvanced= setting in
4088 .network files.
4089
6dd990f3
ZJS
4090 * systemd.network files gained a [Network] RouteTable= configuration
4091 switch to select the routing policy table.
4092
4093 systemd.network files gained a [RoutingPolicyRule] Type=
4094 configuration switch (one of "blackhole, "unreachable", "prohibit").
4095
4096 systemd.network files gained a [IPv6AcceptRA] RouteDenyList= and
4097 RouteAllowList= settings to ignore/accept route advertisements from
4098 routers matching specified prefixes. The DenyList= setting has been
4099 renamed to PrefixDenyList= and a new PrefixAllowList= option has been
4100 added.
4101
4102 systemd.network files gained a [DHCPv6] UseAddress= setting to
4103 optionally ignore the address provided in the lease.
4104
4105 systemd.network files gained a [DHCPv6PrefixDelegation]
4106 ManageTemporaryAddress= switch.
4107
33e68cce
ZJS
4108 systemd.network files gained a new ActivationPolicy= setting which
4109 allows configuring how the UP state of an interface shall be managed,
b480543c 4110 i.e. whether the interface is always upped, always downed, or may be
6d18c13e 4111 upped/downed by the user using "ip link set dev".
1f3315b8 4112
897a2561
ZJS
4113 * The default for the Broadcast= setting in .network files has slightly
4114 changed: the broadcast address will not be configured for wireguard
4115 devices.
4116
6dd990f3
ZJS
4117 * systemd.netdev files gained a [VLAN] Protocol=, IngressQOSMaps=,
4118 EgressQOSMaps=, and [MACVLAN] BroadcastMulticastQueueLength=
4119 configuration options for VLAN packet handling.
4120
4121 * udev rules may now set log_level= option. This allows debug logs to
4122 be enabled for select events, e.g. just for a specific subsystem or
4123 even a single device.
4124
4125 * udev now exports the VOLUME_ID, LOGICAL_VOLUME_ID, VOLUME_SET_ID, and
2b6a8a4b
LP
4126 DATA_PREPARED_ID properties for block devices with ISO9660 file
4127 systems.
6dd990f3 4128
2b6a8a4b
LP
4129 * udev now exports decoded DMI information about installed memory slots
4130 as device properties under the /sys/class/dmi/id/ pseudo device.
6dd990f3 4131
2b6a8a4b 4132 * /dev/ is not mounted noexec anymore. This didn't provide any
64297c86
TM
4133 significant security benefits and would conflict with the executable
4134 mappings used with /dev/sgx device nodes. The previous behaviour can
4135 be restored for individual services with NoExecPaths=/dev (or by allow-
4136 listing and excluding /dev from ExecPaths=).
6dd990f3 4137
de0b8991 4138 * Permissions for /dev/vsock are now set to 0o666, and /dev/vhost-vsock
6dd990f3
ZJS
4139 and /dev/vhost-net are owned by the kvm group.
4140
4141 * The hardware database has been extended with a list of fingerprint
2b6a8a4b
LP
4142 readers that correctly support USB auto-suspend using data from
4143 libfprint.
6dd990f3
ZJS
4144
4145 * systemd-resolved can now answer DNSSEC questions through the stub
4146 resolver interface in a way that allows local clients to do DNSSEC
4147 validation themselves. For a question with DO+CD set, it'll proxy the
4148 DNS query and respond with a mostly unmodified packet received from
4149 the upstream server.
4150
1f3315b8
LP
4151 * systemd-resolved learnt a new boolean option CacheFromLocalhost= in
4152 resolved.conf. If true the service will provide caching even for DNS
4153 lookups made to an upstream DNS server on the 127.0.0.1/::1
4154 addresses. By default (and when the option is false) systemd-resolved
4155 will not cache such lookups, in order to avoid duplicate local
4156 caching, under the assumption the local upstream server caches
4157 anyway.
4158
2b6a8a4b
LP
4159 * systemd-resolved now implements RFC5001 NSID in its local DNS
4160 stub. This may be used by local clients to determine whether they are
4161 talking to the DNS resolver stub or a different DNS server.
4162
4163 * When resolving host names and other records resolvectl will now
4164 report where the data was acquired from (i.e. the local cache, the
4165 network, locally synthesized, …) and whether the network traffic it
4166 effected was encrypted or not. Moreover the tool acquired a number of
4167 new options --cache=, --synthesize=, --network=, --zone=,
4168 --trust-anchor=, --validate= that take booleans and may be used to
4169 tweak a lookup, i.e. whether it may be answered from cached
4170 information, locally synthesized information, information acquired
4171 through the network, the local mDNS/LLMNR zone, the DNSSEC trust
4172 anchor, and whether DNSSEC validation shall be executed for the
4173 lookup.
4174
9ba008cb 4175 * systemd-nspawn gained a new --ambient-capability= setting
6dd990f3
ZJS
4176 (AmbientCapability= in .nspawn files) to configure ambient
4177 capabilities passed to the container payload.
4178
4179 * systemd-nspawn gained the ability to configure the firewall using the
1f3315b8 4180 nftables subsystem (in addition to the existing iptables
897a2561 4181 support). Similarly, systemd-networkd's IPMasquerade= option now
2b6a8a4b
LP
4182 supports nftables as back-end, too. In both cases NAT on IPv6 is now
4183 supported too, in addition to IPv4 (the iptables back-end still is
1f3315b8
LP
4184 IPv4-only).
4185
897a2561
ZJS
4186 "IPMasquerade=yes", which was the same as "IPMasquerade=ipv4" before,
4187 retains its meaning, but has been deprecated. Please switch to either
4188 "ivp4" or "both" (if covering IPv6 is desired).
4189
1f3315b8
LP
4190 * systemd-importd will now download .verity and .roothash.p7s files
4191 along with the machine image (as exposed via machinectl pull-raw).
6dd990f3
ZJS
4192
4193 * systemd-oomd now gained a new DefaultMemoryPressureDurationSec=
4194 setting to configure the time a unit's cgroup needs to exceed memory
897a2561
ZJS
4195 pressure limits before action will be taken, and a new
4196 ManagedOOMPreference=none|avoid|omit setting to avoid killing certain
4197 units.
6dd990f3
ZJS
4198
4199 systemd-oomd is now considered fully supported (the usual
6b5e8240 4200 backwards-compatibility promises apply). Swap is not required for
6dd990f3
ZJS
4201 operation, but it is still recommended.
4202
4203 * systemd-timesyncd gained a new ConnectionRetrySec= setting which
4204 configures the retry delay when trying to contact servers.
4205
4206 * systemd-stdio-bridge gained --system/--user options to connect to the
4207 system bus (previous default) or the user session bus.
4208
6dd990f3
ZJS
4209 * systemd-localed may now call locale-gen to generate missing locales
4210 on-demand (UTF-8-only). This improves integration with Debian-based
4211 distributions (Debian/Ubuntu/PureOS/Tanglu/...) and Arch Linux.
4212
1f3315b8
LP
4213 * systemctl --check-inhibitors=true may now be used to obey inhibitors
4214 even when invoked non-interactively. The old --ignore-inhibitors
4215 switch is now deprecated and replaced by --check-inhibitors=false.
6dd990f3
ZJS
4216
4217 * systemctl import-environment will now emit a warning when called
4218 without any arguments (i.e. to import the full environment block of
4219 the called program). This command will usually be invoked from a
4220 shell, which means that it'll inherit a bunch of variables which are
4221 specific to that shell, and usually to the TTY the shell is connected
4222 to, and don't have any meaning in the global context of the system or
4223 user service manager. Instead, only specific variables should be
4224 imported into the manager environment block.
4225
4226 Similarly, programs which update the manager environment block by
4227 directly calling the D-Bus API of the manager, should also push
4228 specific variables, and not the full inherited environment.
4229
1f3315b8 4230 * systemctl's status output now shows unit state with a more careful
2b6a8a4b
LP
4231 choice of Unicode characters: units in maintenance show a "○" symbol
4232 instead of the usual "●", failed units show "×", and services being
4233 reloaded "↻".
1f3315b8 4234
6dd990f3 4235 * coredumpctl gained a --debugger-arguments= switch to pass arguments
2b6a8a4b
LP
4236 to the debugger. It also gained support for showing coredump info in
4237 a simple JSON format.
4238
4239 * systemctl/loginctl/machinectl's --signal= option now accept a special
4240 value "list", which may be used to show a brief table with known
4241 process signals and their numbers.
6dd990f3
ZJS
4242
4243 * networkctl now shows the link activation policy in status.
4244
2b6a8a4b 4245 * Various tools gained --pager/--no-pager/--json= switches to
6dd990f3
ZJS
4246 enable/disable the pager and provide JSON output.
4247
2b6a8a4b
LP
4248 * Various tools now accept two new values for the SYSTEMD_COLORS
4249 environment variable: "16" and "256", to configure how many terminal
4250 colors are used in output.
6dd990f3 4251
2b6a8a4b
LP
4252 * less 568 or newer is now required for the auto-paging logic of the
4253 various tools. Hyperlink ANSI sequences in terminal output are now
4254 used even if a pager is used, and older versions of less are not able
4255 to display these sequences correctly. SYSTEMD_URLIFY=0 may be used to
4256 disable this output again.
6dd990f3 4257
2b6a8a4b 4258 * Builds with support for separate / and /usr/ hierarchies ("split-usr"
6dd990f3
ZJS
4259 builds, non-merged-usr builds) are now officially deprecated. A
4260 warning is emitted during build. Support is slated to be removed in
4261 about a year (when the Debian Bookworm release development starts).
4262
897a2561
ZJS
4263 * Systems with the legacy cgroup v1 hierarchy are now marked as
4264 "tainted", to make it clearer that using the legacy hierarchy is not
4265 recommended.
4266
33e68cce
ZJS
4267 * systemd-localed will now refuse to configure a keymap which is not
4268 installed in the file system. This is intended as a bug fix, but
4269 could break cases where systemd-localed was used to configure the
4270 keymap in advanced of it being installed. It is necessary to install
4271 the keymap file first.
4272
2b6a8a4b 4273 * The main git development branch has been renamed to 'main'.
94293d65 4274
26c59e4e
LB
4275 * mmcblk[0-9]boot[0-9] devices will no longer be probed automatically
4276 for partitions, as in the vast majority of cases they contain none
4277 and are used internally by the bootloader (eg: uboot).
4278
1f3315b8
LP
4279 * systemd will now set the $SYSTEMD_EXEC_PID environment variable for
4280 spawned processes to the PID of the process itself. This may be used
4281 by programs for detecting whether they were forked off by the service
4282 manager itself or are a process forked off further down the tree.
4283
897a2561
ZJS
4284 * The sd-device API gained four new calls: sd_device_get_action() to
4285 determine the uevent add/remove/change/… action the device object has
4286 been seen for, sd_device_get_seqno() to determine the uevent sequence
4287 number, sd_device_new_from_stat_rdev() to allocate a new sd_device
4288 object from stat(2) data of a device node, and sd_device_trigger() to
4289 write to the 'uevent' attribute of a device.
2b6a8a4b
LP
4290
4291 * For most tools the --no-legend= switch has been replaced by
4292 --legend=no and --legend=yes, to force whether tables are shown with
4293 headers/legends.
4294
4295 * Units acquired a new property "Markers" that takes a list of zero,
4296 one or two of the following strings: "needs-reload" and
4297 "needs-restart". These markers may be set via "systemctl
4298 set-property". Once a marker is set, "systemctl reload-or-restart
4299 --marked" may be invoked to execute the operation the units are
4300 marked for. This is useful for package managers that want to mark
4301 units for restart/reload while updating, but effect the actual
4302 operations at a later step at once.
4303
4304 * The sd_bus_message_read_strv() API call of sd-bus may now also be
4305 used to parse arrays of D-Bus signatures and D-Bus paths, in addition
4306 to regular strings.
4307
4308 * bootctl will now report whether the UEFI firmware used a TPM2 device
4309 and measured the boot process into it.
4310
4311 * systemd-tmpfiles learnt support for a new environment variable
4312 $SYSTEMD_TMPFILES_FORCE_SUBVOL which takes a boolean value. If true
4313 the v/q/Q lines in tmpfiles.d/ snippets will create btrfs subvolumes
4314 even if the root fs of the system is not itself a btrfs volume.
4315
4316 * systemd-detect-virt/ConditionVirtualization= will now explicitly
4317 detect Docker/Podman environments where possible. Moreover, they
4318 should be able to generically detect any container manager as long as
4319 it assigns the container a cgroup.
4320
4321 * portablectl gained a new "reattach" verb for detaching/reattaching a
4322 portable service image, useful for updating images on-the-fly.
4323
d94d261c
LP
4324 * Intel SGX enclave device nodes (which expose a security feature of
4325 newer Intel CPUs) will now be owned by a new system group "sgx".
4326
8ce22551
ZJS
4327 Contributions from: Adam Nielsen, Adrian Vovk, AJ Jordan, Alan Perry,
4328 Alastair Pharo, Alexander Batischev, Ali Abdallah, Andrew Balmos,
4329 Anita Zhang, Annika Wickert, Ansgar Burchardt, Antonio Terceiro,
4330 Antonius Frie, Ardy, Arian van Putten, Ariel Fermani, Arnaud T,
4331 A S Alam, Bastien Nocera, Benjamin Berg, Benjamin Robin, Björn Daase,
4332 caoxia, Carlo Wood, Charles Lee, ChopperRob, chri2, Christian Ehrhardt,
4333 Christian Hesse, Christopher Obbard, clayton craft, corvusnix, cprn,
4334 Daan De Meyer, Daniele Medri, Daniel Rusek, Dan Sanders, Dan Streetman,
4335 Darren Ng, David Edmundson, David Tardon, Deepak Rawat, Devon Pringle,
4336 Dmitry Borodaenko, dropsignal, Einsler Lee, Endre Szabo,
4337 Evgeny Vereshchagin, Fabian Affolter, Fangrui Song, Felipe Borges,
4338 feliperodriguesfr, Felix Stupp, Florian Hülsmann, Florian Klink,
4339 Florian Westphal, Franck Bui, Frantisek Sumsal, Gablegritule,
4340 Gaël PORTAY, Gaurav, Giedrius Statkevičius, Greg Depoire-Ferrer,
4341 Gustavo Costa, Hans de Goede, Hela Basa, heretoenhance, hide,
4342 Iago López Galeiras, igo95862, Ilya Dmitrichenko, Jameer Pathan,
4343 Jan Tojnar, Jiehong, Jinyuan Si, Joerg Behrmann, John Slade,
4344 Jonathan G. Underwood, Jonathan McDowell, Josh Triplett, Joshua Watt,
4345 Julia Cartwright, Julien Humbert, Kairui Song, Karel Zak,
4346 Kevin Backhouse, Kevin P. Fleming, Khem Raj, Konomi, krissgjeng,
4347 l4gfcm, Lajos Veres, Lennart Poettering, Lincoln Ramsay, Luca Boccassi,
4348 Luca BRUNO, Lucas Werkmeister, Luka Kudra, Luna Jernberg,
4349 Marc-André Lureau, Martin Wilck, Matthias Klumpp, Matt Turner,
4350 Michael Gisbers, Michael Marley, Michael Trapp, Michal Fabik,
4351 Michał Kopeć, Michal Koutný, Michal Sekletár, Michele Guerini Rocco,
4352 Mike Gilbert, milovlad, moson-mo, Nick, nihilix-melix, Oğuz Ersen,
4353 Ondrej Mosnacek, pali, Pavel Hrdina, Pavel Sapezhko, Perry Yuan,
4354 Peter Hutterer, Pierre Dubouilh, Piotr Drąg, Pjotr Vertaalt,
4355 Richard Laager, RussianNeuroMancer, Sam Lunt, Sebastiaan van Stijn,
4356 Sergey Bugaev, shenyangyang4, simmon, Simonas Kazlauskas,
4357 Slimane Selyan Amiri, Stefan Agner, Steve Ramage, Susant Sahani,
4358 Sven Mueller, Tad Fisher, Takashi Iwai, Thomas Haller, Tom Shield,
4359 Topi Miettinen, Torsten Hilbrich, tpgxyz, Tyler Hicks, ulf-f,
4360 Ulrich Ölmann, Vincent Pelletier, Vinnie Magro, Vito Caputo, Vlad,
4361 walbit-de, Whired Planck, wouter bolsterlee, Xℹ Ruoyao, Yangyang Shen,
4362 Yuri Chornoivan, Yu Watanabe, Zach Smith, Zbigniew Jędrzejewski-Szmek,
4363 Zmicer Turok, Дамјан Георгиевски
d94d261c 4364
9ca34cf5 4365 — Berlin, 2021-03-30
60d31370 4366
d0dcf59b 4367CHANGES WITH 247:
bf6e5c57 4368
d90922fb 4369 * KERNEL API INCOMPATIBILITY: Linux 4.14 introduced two new uevents
bf6e5c57
LP
4370 "bind" and "unbind" to the Linux device model. When this kernel
4371 change was made, systemd-udevd was only minimally updated to handle
4372 and propagate these new event types. The introduction of these new
4373 uevents (which are typically generated for USB devices and devices
4374 needing a firmware upload before being functional) resulted in a
b182195a
ZJS
4375 number of issues which we so far didn't address. We hoped the kernel
4376 maintainers would themselves address these issues in some form, but
4377 that did not happen. To handle them properly, many (if not most) udev
4378 rules files shipped in various packages need updating, and so do many
4379 programs that monitor or enumerate devices with libudev or sd-device,
4380 or otherwise process uevents. Please note that this incompatibility
4381 is not fault of systemd or udev, but caused by an incompatible kernel
832eedd1 4382 change that happened back in Linux 4.14, but is becoming more and
dc6a3162 4383 more visible as the new uevents are generated by more kernel drivers.
bf6e5c57
LP
4384
4385 To minimize issues resulting from this kernel change (but not avoid
4386 them entirely) starting with systemd-udevd 247 the udev "tags"
4387 concept (which is a concept for marking and filtering devices during
4388 enumeration and monitoring) has been reworked: udev tags are now
4389 "sticky", meaning that once a tag is assigned to a device it will not
4390 be removed from the device again until the device itself is removed
4391 (i.e. unplugged). This makes sure that any application monitoring
4392 devices that match a specific tag is guaranteed to both see uevents
4393 where the device starts being relevant, and those where it stops
4394 being relevant (the latter now regularly happening due to the new
4395 "unbind" uevent type). The udev tags concept is hence now a concept
4396 tied to a *device* instead of a device *event* — unlike for example
4397 udev properties whose lifecycle (as before) is generally tied to a
4398 device event, meaning that the previously determined properties are
4399 forgotten whenever a new uevent is processed.
4400
4401 With the newly redefined udev tags concept, sometimes it's necessary
4402 to determine which tags are the ones applied by the most recent
4403 uevent/database update, in order to discern them from those
4404 originating from earlier uevents/database updates of the same
4405 device. To accommodate for this a new automatic property CURRENT_TAGS
4406 has been added that works similar to the existing TAGS property but
4407 only lists tags set by the most recent uevent/database
b182195a
ZJS
4408 update. Similarly, the libudev/sd-device API has been updated with
4409 new functions to enumerate these 'current' tags, in addition to the
bf6e5c57
LP
4410 existing APIs that now enumerate the 'sticky' ones.
4411
832eedd1 4412 To properly handle "bind"/"unbind" on Linux 4.14 and newer it is
bf6e5c57
LP
4413 essential that all udev rules files and applications are updated to
4414 handle the new events. Specifically:
4415
4416 • All rule files that currently use a header guard similar to
4417 ACTION!="add|change",GOTO="xyz_end" should be updated to use
4418 ACTION=="remove",GOTO="xyz_end" instead, so that the
4419 properties/tags they add are also applied whenever "bind" (or
4420 "unbind") is seen. (This is most important for all physical device
b182195a
ZJS
4421 types — those for which "bind" and "unbind" are currently
4422 generated, for all other device types this change is still
bf6e5c57
LP
4423 recommended but not as important — but certainly prepares for
4424 future kernel uevent type additions).
4425
b182195a 4426 • Similarly, all code monitoring devices that contains an 'if' branch
bf6e5c57
LP
4427 discerning the "add" + "change" uevent actions from all other
4428 uevents actions (i.e. considering devices only relevant after "add"
4429 or "change", and irrelevant on all other events) should be reworked
4430 to instead negatively check for "remove" only (i.e. considering
4431 devices relevant after all event types, except for "remove", which
4432 invalidates the device). Note that this also means that devices
4433 should be considered relevant on "unbind", even though conceptually
4434 this — in some form — invalidates the device. Since the precise
4435 effect of "unbind" is not generically defined, devices should be
4436 considered relevant even after "unbind", however I/O errors
4437 accessing the device should then be handled gracefully.
4438
4439 • Any code that uses device tags for deciding whether a device is
4440 relevant or not most likely needs to be updated to use the new
4441 udev_device_has_current_tag() API (or sd_device_has_current_tag()
db2db708
LP
4442 in case sd-device is used), to check whether the tag is set at the
4443 moment an uevent is seen (as opposed to the existing
bf6e5c57
LP
4444 udev_device_has_tag() API which checks if the tag ever existed on
4445 the device, following the API concept redefinition explained
4446 above).
4447
4448 We are very sorry for this breakage and the requirement to update
4449 packages using these interfaces. We'd again like to underline that
4450 this is not caused by systemd/udev changes, but result of a kernel
4451 behaviour change.
4452
7bfcc0de
LP
4453 * UPCOMING INCOMPATIBILITY: So far most downstream distribution
4454 packages have not retriggered devices once the udev package (or any
4455 auxiliary package installing additional udev rules) is updated. We
4456 intend to work with major distributions to change this, so that
4457 "udevadm trigger -a change" is issued on such upgrades, ensuring that
4458 the updated ruleset is applied to the devices already discovered, so
4459 that (asynchronously) after the upgrade completed the udev database
4460 is consistent with the updated rule set. This means udev rules must
4461 be ready to be retriggered with a "change" action any time, and
4462 result in correct and complete udev database entries. While the
4463 majority of udev rule files known to us currently get this right,
4464 some don't. Specifically, there are udev rules files included in
4465 various packages that only set udev properties on the "add" action,
4466 but do not handle the "change" action. If a device matching those
4467 rules is retriggered with the "change" action (as is intended here)
4468 it would suddenly lose the relevant properties. This always has been
48e0abb5
YW
4469 problematic, but as soon as all udev devices are triggered on relevant
4470 package upgrades this will become particularly so. It is strongly
4471 recommended to fix offending rules so that they can handle a "change"
4472 action at any time, and acquire all necessary udev properties even
4473 then. Or in other words: the header guard mentioned above
4474 (ACTION=="remove",GOTO="xyz_end") is the correct approach to handle
4475 this, as it makes sure rules are rerun on "change" correctly, and
4476 accumulate the correct and complete set of udev properties. udev rule
4477 definitions that cannot handle "change" events being triggered at
4478 arbitrary times should be considered buggy.
7bfcc0de 4479
db2db708 4480 * The MountAPIVFS= service file setting now defaults to on if
b182195a
ZJS
4481 RootImage= and RootDirectory= are used, which means that with those
4482 two settings /proc/, /sys/ and /dev/ are automatically properly set
4483 up for services. Previous behaviour may be restored by explicitly
4484 setting MountAPIVFS=off.
db2db708 4485
bae66f4b
LP
4486 * Since PAM 1.2.0 (2015) configuration snippets may be placed in
4487 /usr/lib/pam.d/ in addition to /etc/pam.d/. If a file exists in the
4488 latter it takes precedence over the former, similar to how most of
4489 systemd's own configuration is handled. Given that PAM stack
4490 definitions are primarily put together by OS vendors/distributions
69e3234d 4491 (though possibly overridden by users), this systemd release moves its
bae66f4b
LP
4492 own PAM stack configuration for the "systemd-user" PAM service (i.e.
4493 for the PAM session invoked by the per-user user@.service instance)
4494 from /etc/pam.d/ to /usr/lib/pam.d/. We recommend moving all
4495 packages' vendor versions of their PAM stack definitions from
4496 /etc/pam.d/ to /usr/lib/pam.d/, but if such OS-wide migration is not
4497 desired the location to which systemd installs its PAM stack
b182195a 4498 configuration may be changed via the -Dpamconfdir Meson option.
bae66f4b 4499
dc6a3162
LP
4500 * The runtime dependencies on libqrencode, libpcre2, libidn/libidn2,
4501 libpwquality and libcryptsetup have been changed to be based on
4502 dlopen(): instead of regular dynamic library dependencies declared in
4503 the binary ELF headers, these libraries are now loaded on demand
4504 only, if they are available. If the libraries cannot be found the
4505 relevant operations will fail gracefully, or a suitable fallback
4506 logic is chosen. This is supposed to be useful for general purpose
4507 distributions, as it allows minimizing the list of dependencies the
4508 systemd packages pull in, permitting building of more minimal OS
4509 images, while still making use of these "weak" dependencies should
4510 they be installed. Since many package managers automatically
4511 synthesize package dependencies from ELF shared library dependencies,
4512 some additional manual packaging work has to be done now to replace
4513 those (slightly downgraded from "required" to "recommended" or
4514 whatever is conceptually suitable for the package manager). Note that
4515 this change does not alter build-time behaviour: as before the
4516 build-time dependencies have to be installed during build, even if
4517 they now are optional during runtime.
db2db708
LP
4518
4519 * sd-event.h gained a new call sd_event_add_time_relative() for
4520 installing timers relative to the current time. This is mostly a
4521 convenience wrapper around the pre-existing sd_event_add_time() call
4522 which installs absolute timers.
4523
dc6a3162
LP
4524 * sd-event event sources may now be placed in a new "exit-on-failure"
4525 mode, which may be controlled via the new
4526 sd_event_source_get_exit_on_failure() and
4527 sd_event_source_set_exit_on_failure() functions. If enabled, any
4528 failure returned by the event source handler functions will result in
4529 exiting the event loop (unlike the default behaviour of just
4530 disabling the event source but continuing with the event loop). This
4531 feature is useful to set for all event sources that define "primary"
4532 program behaviour (where failure should be fatal) in contrast to
4533 "auxiliary" behaviour (where failure should remain local).
4534
4535 * Most event source types sd-event supports now accept a NULL handler
4536 function, in which case the event loop is exited once the event
4537 source is to be dispatched, using the userdata pointer — converted to
4538 a signed integer — as exit code of the event loop. Previously this
4539 was supported for IO and signal event sources already. Exit event
4540 sources still do not support this (simply because it makes little
4541 sense there, as the event loop is already exiting when they are
4542 dispatched).
4543
db2db708
LP
4544 * A new per-unit setting RootImageOptions= has been added which allows
4545 tweaking the mount options for any file system mounted as effect of
4546 the RootImage= setting.
4547
4548 * Another new per-unit setting MountImages= has been added, that allows
4549 mounting additional disk images into the file system tree accessible
4550 to the service.
4551
6fc5b951 4552 * Timer units gained a new FixedRandomDelay= boolean setting. If
b5e798de
ZJS
4553 enabled, the random delay configured with RandomizedDelaySec= is
4554 selected in a way that is stable on a given system (though still
4555 different for different units).
6fc5b951
LP
4556
4557 * Socket units gained a new setting Timestamping= that takes "us", "ns"
4558 or "off". This controls the SO_TIMESTAMP/SO_TIMESTAMPNS socket
4559 options.
4560
b182195a
ZJS
4561 * systemd-repart now generates JSON output when requested with the new
4562 --json= switch.
db2db708
LP
4563
4564 * systemd-machined's OpenMachineShell() bus call will now pass
4565 additional policy metadata data fields to the PolicyKit
4566 authentication request.
4567
4568 * systemd-tmpfiles gained a new -E switch, which is equivalent to
4569 --exclude-prefix=/dev --exclude-prefix=/proc --exclude=/run
4570 --exclude=/sys. It's particularly useful in combination with --root=,
4571 when operating on OS trees that do not have any of these four runtime
4572 directories mounted, as this means no files below these subtrees are
4573 created or modified, since those mount points should probably remain
4574 empty.
4575
b182195a
ZJS
4576 * systemd-tmpfiles gained a new --image= switch which is like --root=,
4577 but takes a disk image instead of a directory as argument. The
4578 specified disk image is mounted inside a temporary mount namespace
4579 and the tmpfiles.d/ drop-ins stored in the image are executed and
4580 applied to the image. systemd-sysusers similarly gained a new
4581 --image= switch, that allows the sysusers.d/ drop-ins stored in the
4582 image to be applied onto the image.
db2db708 4583
b182195a
ZJS
4584 * Similarly, the journalctl command also gained an --image= switch,
4585 which is a quick one-step solution to look at the log data included
4586 in OS disk images.
db2db708
LP
4587
4588 * journalctl's --output=cat option (which outputs the log content
4589 without any metadata, just the pure text messages) will now make use
b182195a 4590 of terminal colors when run on a suitable terminal, similarly to the
db2db708
LP
4591 other output modes.
4592
4593 * JSON group records now support a "description" string that may be
4594 used to add a human-readable textual description to such groups. This
4595 is supposed to match the user's GECOS field which traditionally
4596 didn't have a counterpart for group records.
4597
4598 * The "systemd-dissect" tool that may be used to inspect OS disk images
4599 and that was previously installed to /usr/lib/systemd/ has now been
b182195a 4600 moved to /usr/bin/, reflecting its updated status of an officially
db2db708
LP
4601 supported tool with a stable interface. It gained support for a new
4602 --mkdir switch which when combined with --mount has the effect of
4603 creating the directory to mount the image to if it is missing
4604 first. It also gained two new commands --copy-from and --copy-to for
4605 copying files and directories in and out of an OS image without the
4606 need to manually mount it. It also acquired support for a new option
b182195a 4607 --json= to generate JSON output when inspecting an OS image.
db2db708
LP
4608
4609 * The cgroup2 file system is now mounted with the
4610 "memory_recursiveprot" mount option, supported since kernel 5.7. This
4611 means that the MemoryLow= and MemoryMin= unit file settings now apply
4612 recursively to whole subtrees.
4613
4614 * systemd-homed now defaults to using the btrfs file system — if
4615 available — when creating home directories in LUKS volumes. This may
b182195a
ZJS
4616 be changed with the DefaultFileSystemType= setting in homed.conf.
4617 It's now the default file system in various major distributions and
4618 has the major benefit for homed that it can be grown and shrunk while
4619 mounted, unlike the other contenders ext4 and xfs, which can both be
4620 grown online, but not shrunk (in fact xfs is the technically most
4621 limited option here, as it cannot be shrunk at all).
db2db708
LP
4622
4623 * JSON user records managed by systemd-homed gained support for
4624 "recovery keys". These are basically secondary passphrases that can
b182195a
ZJS
4625 unlock user accounts/home directories. They are computer-generated
4626 rather than user-chosen, and typically have greater entropy.
4627 homectl's --recovery-key= option may be used to add a recovery key to
4628 a user account. The generated recovery key is displayed as a QR code,
4629 so that it can be scanned to be kept in a safe place. This feature is
4630 particularly useful in combination with systemd-homed's support for
4631 FIDO2 or PKCS#11 authentication, as a secure fallback in case the
4632 security tokens are lost. Recovery keys may be entered wherever the
4633 system asks for a password.
db2db708
LP
4634
4635 * systemd-homed now maintains a "dirty" flag for each LUKS encrypted
b182195a 4636 home directory which indicates that a home directory has not been
db2db708
LP
4637 deactivated cleanly when offline. This flag is useful to identify
4638 home directories for which the offline discard logic did not run when
4639 offlining, and where it would be a good idea to log in again to catch
4640 up.
4641
4642 * systemctl gained a new parameter --timestamp= which may be used to
4643 change the style in which timestamps are output, i.e. whether to show
4644 them in local timezone or UTC, or whether to show µs granularity.
4645
4646 * Alibaba's "pouch" container manager is now detected by
dc6a3162
LP
4647 systemd-detect-virt, ConditionVirtualization= and similar
4648 constructs. Similar, they now also recognize IBM PowerVM machine
4649 virtualization.
db2db708
LP
4650
4651 * systemd-nspawn has been reworked to use the /run/host/incoming/ as
4652 place to use for propagating external mounts into the
b182195a
ZJS
4653 container. Similarly /run/host/notify is now used as the socket path
4654 for container payloads to communicate with the container manager
4655 using sd_notify(). The container manager now uses the
4656 /run/host/inaccessible/ directory to place "inaccessible" file nodes
4657 of all relevant types which may be used by the container payload as
4658 bind mount source to over-mount inodes to make them inaccessible.
4659 /run/host/container-manager will now be initialized with the same
4660 string as the $container environment variable passed to the
4661 container's PID 1. /run/host/container-uuid will be initialized with
4662 the same string as $container_uuid. This means the /run/host/
4663 hierarchy is now the primary way to make host resources available to
4664 the container. The Container Interface documents these new files and
4665 directories:
db2db708
LP
4666
4667 https://systemd.io/CONTAINER_INTERFACE
4668
4669 * Support for the "ConditionNull=" unit file condition has been
b182195a
ZJS
4670 deprecated and undocumented for 6 years. systemd started to warn
4671 about its use 1.5 years ago. It has now been removed entirely.
db2db708 4672
db2db708
LP
4673 * sd-bus.h gained a new API call sd_bus_error_has_names(), which takes
4674 a sd_bus_error struct and a list of error names, and checks if the
4675 error matches one of these names. It's a convenience wrapper that is
4676 useful in cases where multiple errors shall be handled the same way.
4677
4678 * A new system call filter list "@known" has been added, that contains
b182195a 4679 all system calls known at the time systemd was built.
db2db708
LP
4680
4681 * Behaviour of system call filter allow lists has changed slightly:
387f6955 4682 system calls that are contained in @known will result in EPERM by
db2db708 4683 default, while those not contained in it result in ENOSYS. This
dc6a3162 4684 should improve compatibility because known system calls will thus be
db2db708
LP
4685 communicated as prohibited, while unknown (and thus newer ones) will
4686 be communicated as not implemented, which hopefully has the greatest
4687 chance of triggering the right fallback code paths in client
4688 applications.
4689
dc6a3162
LP
4690 * "systemd-analyze syscall-filter" will now show two separate sections
4691 at the bottom of the output: system calls known during systemd build
4692 time but not included in any of the filter groups shown above, and
4693 system calls defined on the local kernel but known during systemd
4694 build time.
4695
4696 * If the $SYSTEMD_LOG_SECCOMP=1 environment variable is set for
4697 systemd-nspawn all system call filter violations will be logged by
4698 the kernel (audit). This is useful for tracking down system calls
4699 invoked by container payloads that are prohibited by the container's
4700 system call filter policy.
4701
6fc5b951
LP
4702 * If the $SYSTEMD_SECCOMP=0 environment variable is set for
4703 systemd-nspawn (and other programs that use seccomp) all seccomp
4704 filtering is turned off.
4705
db2db708 4706 * Two new unit file settings ProtectProc= and ProcSubset= have been
b182195a
ZJS
4707 added that expose the hidepid= and subset= mount options of procfs.
4708 All processes of the unit will only see processes in /proc that are
4709 are owned by the unit's user. This is an important new sandboxing
4710 option that is recommended to be set on all system services. All
4711 long-running system services that are included in systemd itself set
4712 this option now. This option is only supported on kernel 5.8 and
4713 above, since the hidepid= option supported on older kernels was not a
4714 per-mount option but actually applied to the whole PID namespace.
db2db708
LP
4715
4716 * Socket units gained a new boolean setting FlushPending=. If enabled
4717 all pending socket data/connections are flushed whenever the socket
4718 unit enters the "listening" state, i.e. after the associated service
4719 exited.
4720
b182195a
ZJS
4721 * The unit file setting NUMAMask= gained a new "all" value: when used,
4722 all existing NUMA nodes are added to the NUMA mask.
db2db708
LP
4723
4724 * A new "credentials" logic has been added to system services. This is
4725 a simple mechanism to pass privileged data to services in a safe and
4726 secure way. It's supposed to be used to pass per-service secret data
4727 such as passwords or cryptographic keys but also associated less
4728 private information such as user names, certificates, and similar to
4729 system services. Each credential is identified by a short user-chosen
4730 name and may contain arbitrary binary data. Two new unit file
b182195a
ZJS
4731 settings have been added: SetCredential= and LoadCredential=. The
4732 former allows setting a credential to a literal string, the latter
4733 sets a credential to the contents of a file (or data read from a
4734 user-chosen AF_UNIX stream socket). Credentials are passed to the
4735 service via a special credentials directory, one file for each
4736 credential. The path to the credentials directory is passed in a new
4737 $CREDENTIALS_DIRECTORY environment variable. Since the credentials
db2db708 4738 are passed in the file system they may be easily referenced in
b182195a
ZJS
4739 ExecStart= command lines too, thus no explicit support for the
4740 credentials logic in daemons is required (though ideally daemons
4741 would look for the bits they need in $CREDENTIALS_DIRECTORY
4742 themselves automatically, if set). The $CREDENTIALS_DIRECTORY is
4743 backed by unswappable memory if privileges allow it, immutable if
4744 privileges allow it, is accessible only to the service's UID, and is
4745 automatically destroyed when the service stops.
db2db708
LP
4746
4747 * systemd-nspawn supports the same credentials logic. It can both
4748 consume credentials passed to it via the aforementioned
4749 $CREDENTIALS_DIRECTORY protocol as well as pass these credentials on
4750 to its payload. The service manager/PID 1 has been updated to match
4751 this: it can also accept credentials from the container manager that
b182195a
ZJS
4752 invokes it (in fact: any process that invokes it), and passes them on
4753 to its services. Thus, credentials can be propagated recursively down
4754 the tree: from a system's service manager to a systemd-nspawn
4755 service, to the service manager that runs as container payload and to
4756 the service it runs below. Credentials may also be added on the
4757 systemd-nspawn command line, using new --set-credential= and
4758 --load-credential= command line switches that match the
4759 aforementioned service settings.
db2db708
LP
4760
4761 * systemd-repart gained new settings Format=, Encrypt=, CopyFiles= in
4762 the partition drop-ins which may be used to format/LUKS
4763 encrypt/populate any created partitions. The partitions are
4764 encrypted/formatted/populated before they are registered in the
b182195a
ZJS
4765 partition table, so that they appear atomically: either the
4766 partitions do not exist yet or they exist fully encrypted, formatted,
4767 and populated — there is no time window where they are
4768 "half-initialized". Thus the system is robust to abrupt shutdown: if
4769 the tool is terminated half-way during its operations on next boot it
4770 will start from the beginning.
db2db708
LP
4771
4772 * systemd-repart's --size= operation gained a new "auto" value. If
4773 specified, and operating on a loopback file it is automatically sized
4774 to the minimal size the size constraints permit. This is useful to
4775 use "systemd-repart" as an image builder for minimally sized images.
4776
b182195a
ZJS
4777 * systemd-resolved now gained a third IPC interface for requesting name
4778 resolution: besides D-Bus and local DNS to 127.0.0.53 a Varlink
4779 interface is now supported. The nss-resolve NSS module has been
4780 modified to use this new interface instead of D-Bus. Using Varlink
4781 has a major benefit over D-Bus: it works without a broker service,
4782 and thus already during earliest boot, before the dbus daemon has
4783 been started. This means name resolution via systemd-resolved now
4784 works at the same time systemd-networkd operates: from earliest boot
4785 on, including in the initrd.
db2db708
LP
4786
4787 * systemd-resolved gained support for a new DNSStubListenerExtra=
4788 configuration file setting which may be used to specify additional IP
4789 addresses the built-in DNS stub shall listen on, in addition to the
4790 main one on 127.0.0.53:53.
4791
4792 * Name lookups issued via systemd-resolved's D-Bus and Varlink
4793 interfaces (and thus also via glibc NSS if nss-resolve is used) will
4794 now honour a trailing dot in the hostname: if specified the search
b182195a
ZJS
4795 path logic is turned off. Thus "resolvectl query foo." is now
4796 equivalent to "resolvectl query --search=off foo.".
db2db708
LP
4797
4798 * systemd-resolved gained a new D-Bus property "ResolvConfMode" that
4799 exposes how /etc/resolv.conf is currently managed: by resolved (and
4800 in which mode if so) or another subsystem. "resolvctl" will display
4801 this property in its status output.
4802
4803 * The resolv.conf snippets systemd-resolved provides will now set "."
b182195a
ZJS
4804 as the search domain if no other search domain is known. This turns
4805 off the derivation of an implicit search domain by nss-dns for the
4806 hostname, when the hostname is set to an FQDN. This change is done to
4807 make nss-dns using resolv.conf provided by systemd-resolved behave
4808 more similarly to nss-resolve.
db2db708
LP
4809
4810 * systemd-tmpfiles' file "aging" logic (i.e. the automatic clean-up of
4811 /tmp/ and /var/tmp/ based on file timestamps) now looks at the
b182195a
ZJS
4812 "birth" time (btime) of a file in addition to the atime, mtime, and
4813 ctime.
db2db708
LP
4814
4815 * systemd-analyze gained a new verb "capability" that lists all known
4816 capabilities by the systemd build and by the kernel.
4817
4818 * If a file /usr/lib/clock-epoch exists, PID 1 will read its mtime and
4819 advance the system clock to it at boot if it is noticed to be before
4820 that time. Previously, PID 1 would only advance the time to an epoch
4821 time that is set during build-time. With this new file OS builders
4822 can change this epoch timestamp on individual OS images without
4823 having to rebuild systemd.
4824
4825 * systemd-logind will now listen to the KEY_RESTART key from the Linux
b182195a
ZJS
4826 input layer and reboot the system if it is pressed, similarly to how
4827 it already handles KEY_POWER, KEY_SUSPEND or KEY_SLEEP. KEY_RESTART
4828 was originally defined in the Multimedia context (to restart playback
4829 of a song or film), but is now primarily used in various embedded
4830 devices for "Reboot" buttons. Accordingly, systemd-logind will now
4831 honour it as such. This may configured in more detail via the new
db2db708
LP
4832 HandleRebootKey= and RebootKeyIgnoreInhibited=.
4833
4834 * systemd-nspawn/systemd-machined will now reconstruct hardlinks when
4835 copying OS trees, for example in "systemd-nspawn --ephemeral",
4836 "systemd-nspawn --template=", "machinectl clone" and similar. This is
4837 useful when operating with OSTree images, which use hardlinks heavily
4838 throughout, and where such copies previously resulting in "exploding"
4839 hardlinks.
4840
4841 * systemd-nspawn's --console= setting gained support for a new
4842 "autopipe" value, which is identical to "interactive" when invoked on
4843 a TTY, and "pipe" otherwise.
4844
4845 * systemd-networkd's .network files gained support for explicitly
4846 configuring the multicast membership entries of bridge devices in the
4847 [BridgeMDB] section. It also gained support for the PIE queuing
4848 discipline in the [FlowQueuePIE] sections.
4849
4850 * systemd-networkd's .netdev files may now be used to create "BareUDP"
905a03e7 4851 tunnels, configured in the new [BareUDP] setting.
db2db708 4852
dc6a3162 4853 * systemd-networkd's Gateway= setting in .network files now accepts the
70a51d7e
YW
4854 special values "_dhcp4" and "_ipv6ra" to configure additional,
4855 locally defined, explicit routes to the gateway acquired via DHCP or
4856 IPv6 Router Advertisements. The old setting "_dhcp" is deprecated,
4857 but still accepted for backwards compatibility.
dc6a3162 4858
cb9a48a9
ZJS
4859 * systemd-networkd's [IPv6PrefixDelegation] section and
4860 IPv6PrefixDelegation= options have been renamed as [IPv6SendRA] and
4861 IPv6SendRA= (the old names are still accepted for backwards
4862 compatibility).
4863
70a51d7e
YW
4864 * systemd-networkd's .network files gained the DHCPv6PrefixDelegation=
4865 boolean setting in [Network] section. If enabled, the delegated prefix
4866 gained by another link will be configured, and an address within the
4867 prefix will be assigned.
4868
4869 * systemd-networkd's .network files gained the Announce= boolean setting
4870 in [DHCPv6PrefixDelegation] section. When enabled, the delegated
4871 prefix will be announced through IPv6 router advertisement (IPv6 RA).
4872 The setting is enabled by default.
4873
905a03e7
ZJS
4874 * VXLAN tunnels may now be marked as independent of any underlying
4875 network interface via the new Independent= boolean setting.
70a51d7e 4876
b182195a
ZJS
4877 * systemctl gained support for two new verbs: "service-log-level" and
4878 "service-log-target" may be used on services that implement the
4879 generic org.freedesktop.LogControl1 D-Bus interface to dynamically
4880 adjust the log level and target. All of systemd's long-running
4881 services support this now, but ideally all system services would
4882 implement this interface to make the system more uniformly
db2db708
LP
4883 debuggable.
4884
4885 * The SystemCallErrorNumber= unit file setting now accepts the new
4886 "kill" and "log" actions, in addition to arbitrary error number
10f34849
YW
4887 specifications as before. If "kill" the processes are killed on the
4888 event, if "log" the offending system call is audit logged.
db2db708
LP
4889
4890 * A new SystemCallLog= unit file setting has been added that accepts a
dc6a3162 4891 list of system calls that shall be logged about (audit).
db2db708
LP
4892
4893 * The OS image dissection logic (as used by RootImage= in unit files or
b182195a 4894 systemd-nspawn's --image= switch) has gained support for identifying
db2db708
LP
4895 and mounting explicit /usr/ partitions, which are now defined in the
4896 discoverable partition specification. This should be useful for
4897 environments where the root file system is
4898 generated/formatted/populated dynamically on first boot and combined
4899 with an immutable /usr/ tree that is supplied by the vendor.
4900
4901 * In the final phase of shutdown, within the systemd-shutdown binary
4902 we'll now try to detach MD devices (i.e software RAID) in addition to
4903 loopback block devices and DM devices as before. This is supposed to
4904 be a safety net only, in order to increase robustness if things go
4905 wrong. Storage subsystems are expected to properly detach their
4906 storage volumes during regular shutdown already (or in case of
4907 storage backing the root file system: in the initrd hook we return to
4908 later).
4909
4910 * If the SYSTEMD_LOG_TID environment variable is set all systemd tools
4911 will now log the thread ID in their log output. This is useful when
4912 working with heavily threaded programs.
4913
dc6a3162 4914 * If the SYSTEMD_RDRAND environment variable is set to "0", systemd will
b182195a
ZJS
4915 not use the RDRAND CPU instruction. This is useful in environments
4916 such as replay debuggers where non-deterministic behaviour is not
4917 desirable.
db2db708 4918
dc6a3162
LP
4919 * The autopaging logic in systemd's various tools (such as systemctl)
4920 has been updated to turn on "secure" mode in "less"
4921 (i.e. $LESSECURE=1) if execution in a "sudo" environment is
4922 detected. This disables invoking external programs from the pager,
4923 via the pipe logic. This behaviour may be overridden via the new
4924 $SYSTEMD_PAGERSECURE environment variable.
db2db708 4925
6e88f9e7
ZJS
4926 * Units which have resource limits (.service, .mount, .swap, .slice,
4927 .socket, and .slice) gained new configuration settings
4928 ManagedOOMSwap=, ManagedOOMMemoryPressure=, and
90616bb9 4929 ManagedOOMMemoryPressureLimitPercent= that specify resource pressure
6e88f9e7
ZJS
4930 limits and optional action taken by systemd-oomd.
4931
4932 * A new service systemd-oomd has been added. It monitors resource
4933 contention for selected parts of the unit hierarchy using the PSI
4934 information reported by the kernel, and kills processes when memory
4935 or swap pressure is above configured limits. This service is only
08c1864f
ZJS
4936 enabled by default in developer mode (see below) and should be
4937 considered a preview in this release. Behaviour details and option
4938 names are subject to change without the usual backwards-compatibility
4939 promises.
6e88f9e7
ZJS
4940
4941 * A new helper oomctl has been added to introspect systemd-oomd state.
042b028a 4942 It is only enabled by default in developer mode and should be
08c1864f
ZJS
4943 considered a preview without the usual backwards-compatibility
4944 promises.
6e88f9e7
ZJS
4945
4946 * New meson option -Dcompat-mutable-uid-boundaries= has been added. If
4947 enabled, systemd reads the system UID boundaries from /etc/login.defs
4948 at runtime, instead of using the built-in values selected during
4949 build. This is an option to improve compatibility for upgrades from
4950 old systems. It's strongly recommended not to make use of this
4951 functionality on new systems (or even enable it during build), as it
4952 makes something runtime-configurable that is mostly an implementation
4953 detail of the OS, and permits avoidable differences in deployments
4954 that create all kinds of problems in the long run.
4955
4956 * New meson option '-Dmode=developer|release' has been added. When
4957 'developer', additional checks and features are enabled that are
4958 relevant during upstream development, e.g. verification that
4959 semi-automatically-generated documentation has been properly updated
4960 following API changes. Those checks are considered hints for
4961 developers and are not actionable in downstream builds. In addition,
4962 extra features that are not ready for general consumption may be
4963 enabled in developer mode. It is thus recommended to set
4964 '-Dmode=release' in end-user and distro builds.
4965
da7511d5
LP
4966 * systemd-cryptsetup gained support for processing detached LUKS
4967 headers specified on the kernel command line via the header=
4968 parameter of the luks.options= kernel command line option. The same
4969 device/path syntax as for key files is supported for header files
4970 like this.
4971
4972 * The "net_id" built-in of udev has been updated to ignore ACPI _SUN
4973 slot index data for devices that are connected through a PCI bridge
4974 where the _SUN index is associated with the bridge instead of the
4975 network device itself. Previously this would create ambiguous device
4976 naming if multiple network interfaces were connected to the same PCI
4977 bridge. Since this is a naming scheme incompatibility on systems that
4978 possess hardware like this it has been introduced as new naming
4979 scheme "v247". The previous scheme can be selected via the
4980 "net.naming-scheme=v245" kernel command line parameter.
4981
4982 * ConditionFirstBoot= semantics have been modified to be safe towards
4983 abnormal system power-off during first boot. Specifically, the
4984 "systemd-machine-id-commit.service" service now acts as boot
4985 milestone indicating when the first boot process is sufficiently
4986 complete in order to not consider the next following boot also a
4987 first boot. If the system is reset before this unit is reached the
4988 first time, the next boot will still be considered a first boot; once
4989 it has been reached, no further boots will be considered a first
4990 boot. The "first-boot-complete.target" unit now acts as official hook
4991 point to order against this. If a service shall be run on every boot
4992 until the first boot fully succeeds it may thus be ordered before
4993 this target unit (and pull it in) and carry ConditionFirstBoot=
4994 appropriately.
4995
4996 * bootctl's set-default and set-oneshot commands now accept the three
4997 special strings "@default", "@oneshot", "@current" in place of a boot
4998 entry id. These strings are resolved to the current default and
4999 oneshot boot loader entry, as well as the currently booted one. Thus
5000 a command "bootctl set-default @current" may be used to make the
5001 currently boot menu item the new default for all subsequent boots.
5002
da7511d5
LP
5003 * "systemctl edit" has been updated to show the original effective unit
5004 contents in commented form in the text editor.
5005
9101cd1a
ZJS
5006 * Units in user mode are now segregated into three new slices:
5007 session.slice (units that form the core of graphical session),
5008 app.slice ("normal" user applications), and background.slice
5009 (low-priority tasks). Unless otherwise configured, user units are
5010 placed in app.slice. The plan is to add resource limits and
5011 protections for the different slices in the future.
5012
7bfcc0de
LP
5013 * New GPT partition types for RISCV32/64 for the root and /usr
5014 partitions, and their associated Verity partitions have been defined,
5015 and are now understood by systemd-gpt-auto-generator, and the OS
5016 image dissection logic.
5017
a5322567 5018 Contributions from: Adolfo Jayme Barrientos, afg, Alec Moskvin, Alyssa
6fc5b951 5019 Ross, Amitanand Chikorde, Andrew Hangsleben, Anita Zhang, Ansgar
a5322567
LP
5020 Burchardt, Arian van Putten, Aurelien Jarno, Axel Rasmussen, bauen1,
5021 Beniamino Galvani, Benjamin Berg, Bjørn Mork, brainrom, Chandradeep
d0dcf59b
ZJS
5022 Dey, Charles Lee, Chris Down, Christian Göttsche, Christof Efkemann,
5023 Christoph Ruegge, Clemens Gruber, Daan De Meyer, Daniele Medri, Daniel
5024 Mack, Daniel Rusek, Dan Streetman, David Tardon, Dimitri John Ledkov,
5025 Dmitry Borodaenko, Elias Probst, Elisei Roca, ErrantSpore, Etienne
5026 Doms, Fabrice Fontaine, fangxiuning, Felix Riemann, Florian Klink,
5027 Franck Bui, Frantisek Sumsal, fwSmit, George Rawlinson, germanztz,
5028 Gibeom Gwon, Glen Whitney, Gogo Gogsi, Göran Uddeborg, Grant Mathews,
5029 Hans de Goede, Hans Ulrich Niedermann, Haochen Tong, Harald Seiler,
5030 huangyong, Hubert Kario, igo95862, Ikey Doherty, Insun Pyo, Jan Chren,
5031 Jan Schlüter, Jérémy Nouhaud, Jian-Hong Pan, Joerg Behrmann, Jonathan
5032 Lebon, Jörg Thalheim, Josh Brobst, Juergen Hoetzel, Julien Humbert,
5033 Kai-Chuan Hsieh, Kairui Song, Kamil Dudka, Kir Kolyshkin, Kristijan
5034 Gjoshev, Kyle Huey, Kyle Russell, Lee Whalen, Lennart Poettering,
5035 lichangze, Luca Boccassi, Lucas Werkmeister, Luca Weiss, Marc
5036 Kleine-Budde, Marco Wang, Martin Wilck, Marti Raudsepp, masmullin2000,
5037 Máté Pozsgay, Matt Fenwick, Michael Biebl, Michael Scherer, Michal
5038 Koutný, Michal Sekletár, Michal Suchanek, Mikael Szreder, Milo
5039 Casagrande, mirabilos, Mitsuha_QuQ, mog422, Muhammet Kara, Nazar
5040 Vinnichuk, Nicholas Narsing, Nicolas Fella, Njibhu, nl6720, Oğuz Ersen,
5041 Olivier Le Moal, Ondrej Kozina, onlybugreports, Pass Automated Testing
5042 Suite, Pat Coulthard, Pavel Sapezhko, Pedro Ruiz, perry_yuan, Peter
5043 Hutterer, Phaedrus Leeds, PhoenixDiscord, Piotr Drąg, Plan C,
5044 Purushottam choudhary, Rasmus Villemoes, Renaud Métrich, Robert Marko,
5045 Roman Beranek, Ronan Pigott, Roy Chen (陳彥廷), RussianNeuroMancer,
5046 Samanta Navarro, Samuel BF, scootergrisen, Sorin Ionescu, Steve Dodd,
5047 Susant Sahani, Timo Rothenpieler, Tobias Hunger, Tobias Kaufmann, Topi
5048 Miettinen, vanou, Vito Caputo, Weblate, Wen Yang, Whired Planck,
5049 williamvds, Yu, Li-Yu, Yuri Chornoivan, Yu Watanabe, Zbigniew
5050 Jędrzejewski-Szmek, Zmicer Turok, Дамјан Георгиевски
5051
5052 – Warsaw, 2020-11-26
a5322567 5053
72e51908 5054CHANGES WITH 246:
b0d0e0ef 5055
7f56c26d
ZJS
5056 * The service manager gained basic support for cgroup v2 freezer. Units
5057 can now be suspended or resumed either using new systemctl verbs,
5058 freeze and thaw respectively, or via D-Bus.
5059
5060 * PID 1 may now automatically load pre-compiled AppArmor policies from
5061 /etc/apparmor/earlypolicy during early boot.
5062
5063 * The CPUAffinity= setting in service unit files now supports a new
5064 special value "numa" that causes the CPU affinity masked to be set
5065 based on the NUMA mask.
5066
5067 * systemd will now log about all left-over processes remaining in a
5068 unit when the unit is stopped. It will now warn about services using
5069 KillMode=none, as this is generally an unsafe thing to make use of.
5070
5071 * Two new unit file settings
5072 ConditionPathIsEncrypted=/AssertPathIsEncrypted= have been
5073 added. They may be used to check whether a specific file system path
5074 resides on a block device that is encrypted on the block level
5075 (i.e. using dm-crypt/LUKS).
5076
5077 * Another pair of new settings ConditionEnvironment=/AssertEnvironment=
5078 has been added that may be used for simple environment checks. This
5079 is particularly useful when passing in environment variables from a
5080 container manager (or from PAM in case of the systemd --user
5081 instance).
5082
5083 * .service unit files now accept a new setting CoredumpFilter= which
5084 allows configuration of the memory sections coredumps of the
5085 service's processes shall include.
5086
5087 * .mount units gained a new ReadWriteOnly= boolean option. If set
5088 it will not be attempted to mount a file system read-only if mounting
5089 in read-write mode doesn't succeed. An option x-systemd.rw-only is
5090 available in /etc/fstab to control the same.
5091
5092 * .socket units gained a new boolean setting PassPacketInfo=. If
5093 enabled, the kernel will attach additional per-packet metadata to all
5149990e
CR
5094 packets read from the socket, as an ancillary message. This controls
5095 the IP_PKTINFO, IPV6_RECVPKTINFO, NETLINK_PKTINFO socket options,
7f56c26d
ZJS
5096 depending on socket type.
5097
5098 * .service units gained a new setting RootHash= which may be used to
5099 specify the root hash for verity enabled disk images which are
5100 specified in RootImage=. RootVerity= may be used to specify a path to
5101 the Verity data matching a RootImage= file system. (The latter is
5102 only useful for images that do not contain the Verity data embedded
5103 into the same image that carries a GPT partition table following the
5104 Discoverable Partition Specification). Similarly, systemd-nspawn
5105 gained a new switch --verity-data= that takes a path to a file with
5106 the verity data of the disk image supplied in --image=, if the image
5107 doesn't contain the verity data itself.
5108
5109 * .service units gained a new setting RootHashSignature= which takes
5110 either a base64 encoded PKCS#7 signature of the root hash specified
5111 with RootHash=, or a path to a file to read the signature from. This
5112 allows validation of the root hash against public keys available in
5113 the kernel keyring, and is only supported on recent kernels
5114 (>= 5.4)/libcryptsetup (>= 2.30). A similar switch has been added to
5115 systemd-nspawn and systemd-dissect (--root-hash-sig=). Support for
5116 this mechanism has also been added to systemd-veritysetup.
5117
5118 * .service unit files gained two new options
5119 TimeoutStartFailureMode=/TimeoutStopFailureMode= that may be used to
5120 tune behaviour if a start or stop timeout is hit, i.e. whether to
5121 terminate the service with SIGTERM, SIGABRT or SIGKILL.
5122
5123 * Most options in systemd that accept hexadecimal values prefixed with
5124 0x in additional to the usual decimal notation now also support octal
cb713f16 5125 notation when the 0o prefix is used and binary notation if the 0b
7f56c26d
ZJS
5126 prefix is used.
5127
337f0b00
ZJS
5128 * Various command line parameters and configuration file settings that
5129 configure key or certificate files now optionally take paths to
5130 AF_UNIX sockets in the file system. If configured that way a stream
5131 connection is made to the socket and the required data read from
5132 it. This is a simple and natural extension to the existing regular
5133 file logic, and permits other software to provide keys or
5134 certificates via simple IPC services, for example when unencrypted
5135 storage on disk is not desired. Specifically, systemd-networkd's
5136 Wireguard and MACSEC key file settings as well as
5137 systemd-journal-gatewayd's and systemd-journal-remote's PEM
5138 key/certificate parameters support this now.
5139
7f56c26d
ZJS
5140 * Unit files, tmpfiles.d/ snippets, sysusers.d/ snippets and other
5141 configuration files that support specifier expansion learnt six new
5142 specifiers: %a resolves to the current architecture, %o/%w/%B/%W
5143 resolve to the various ID fields from /etc/os-release, %l resolves to
5144 the "short" hostname of the system, i.e. the hostname configured in
5145 the kernel truncated at the first dot.
5146
5147 * Support for the .include syntax in unit files has been removed. The
5148 concept has been obsolete for 6 years and we started warning about
5149 its pending removal 2 years ago (also see NEWS file below). It's
5150 finally gone now.
5151
5152 * StandardError= and StandardOutput= in unit files no longer support
5153 the "syslog" and "syslog-console" switches. They were long removed
5154 from the documentation, but will now result in warnings when used,
5155 and be converted to "journal" and "journal+console" automatically.
5156
5d043c9f
LP
5157 * If the service setting User= is set to the "nobody" user, a warning
5158 message is now written to the logs (but the value is nonetheless
5159 accepted). Setting User=nobody is unsafe, since the primary purpose
5160 of the "nobody" user is to own all files whose owner cannot be mapped
5161 locally. It's in particular used by the NFS subsystem and in user
5162 namespacing. By running a service under this user's UID it might get
5163 read and even write access to all these otherwise unmappable files,
5164 which is quite likely a major security problem.
5165
02e1eb6d
ZJS
5166 * tmpfs mounts automatically created by systemd (/tmp, /run, /dev/shm,
5167 and others) now have a size and inode limits applied (50% of RAM for
c2cfb126
ZJS
5168 /tmp and /dev/shm, 10% of RAM for other mounts, etc.). Please note
5169 that the implicit kernel default is 50% too, so there is no change
5170 in the size limit for /tmp and /dev/shm.
02e1eb6d 5171
337f0b00
ZJS
5172 * nss-mymachines lost support for resolution of users and groups, and
5173 now only does resolution of hostnames. This functionality is now
5174 provided by nss-systemd. Thus, the 'mymachines' entry should be
5175 removed from the 'passwd:' and 'group:' lines in /etc/nsswitch.conf
5176 (and 'systemd' added if it is not already there).
5177
7f56c26d
ZJS
5178 * A new kernel command line option systemd.hostname= has been added
5179 that allows controlling the hostname that is initialized early during
5180 boot.
5181
5182 * A kernel command line option "udev.blockdev_read_only" has been
5183 added. If specified all hardware block devices that show up are
5184 immediately marked as read-only by udev. This option is useful for
5185 making sure that a specific boot under no circumstances modifies data
5186 on disk. Use "blockdev --setrw" to undo the effect of this, per
5187 device.
b0d0e0ef
LP
5188
5189 * A new boolean kernel command line option systemd.swap= has been
5190 added, which may be used to turn off automatic activation of swap
7f56c26d 5191 devices listed in /etc/fstab.
b0d0e0ef 5192
7f56c26d
ZJS
5193 * New kernel command line options systemd.condition-needs-update= and
5194 systemd.condition-first-boot= have been added, which override the
5195 result of the ConditionNeedsUpdate= and ConditionFirstBoot=
5196 conditions.
b0d0e0ef 5197
7f56c26d
ZJS
5198 * A new kernel command line option systemd.clock-usec= has been added
5199 that allows setting the system clock to the specified time in µs
5200 since Jan 1st, 1970 early during boot. This is in particular useful
5201 in order to make test cases more reliable.
b0d0e0ef 5202
7f56c26d
ZJS
5203 * The fs.suid_dumpable sysctl is set to 2 / "suidsafe". This allows
5204 systemd-coredump to save core files for suid processes. When saving
5205 the core file, systemd-coredump will use the effective uid and gid of
5206 the process that faulted.
5207
5208 * The /sys/module/kernel/parameters/crash_kexec_post_notifiers file is
5209 now automatically set to "Y" at boot, in order to enable pstore
5210 generation for collection with systemd-pstore.
5211
c2cfb126 5212 * We provide a set of udev rules to enable auto-suspend on PCI and USB
69e3234d 5213 devices that were tested to correctly support it. Previously, this
c2cfb126
ZJS
5214 was distributed as a set of udev rules, but has now been replaced by
5215 by a set of hwdb entries (and a much shorter udev rule to take action
5216 if the device modalias matches one of the new hwdb entries).
5217
5218 As before, entries are periodically imported from the database
5219 maintained by the ChromiumOS project. If you have a device that
5220 supports auto-suspend correctly and where it should be enabled by
5221 default, please submit a patch that adds it to the database (see
5222 /usr/lib/udev/hwdb.d/60-autosuspend.hwdb).
7f56c26d 5223
5149990e
CR
5224 * systemd-udevd gained the new configuration option timeout_signal= as well
5225 as a corresponding kernel command line option udev.timeout_signal=.
7f56c26d
ZJS
5226 The option can be used to configure the UNIX signal that the main
5227 daemon sends to the worker processes on timeout. Setting the signal
5228 to SIGABRT is useful for debugging.
5229
5230 * .link files managed by systemd-udevd gained options RxFlowControl=,
5231 TxFlowControl=, AutoNegotiationFlowControl= in the [Link] section, in
5232 order to configure various flow control parameters. They also gained
5233 RxMiniBufferSize= and RxJumboBufferSize= in order to configure jumbo
5234 frame ring buffer sizes.
b0d0e0ef 5235
3ea58e01 5236 * networkd.conf gained a new boolean setting ManageForeignRoutes=. If
aa0b850b 5237 enabled systemd-networkd manages all routes configured by other tools.
3ea58e01 5238
71af436c
YW
5239 * .network files managed by systemd-networkd gained a new section
5240 [SR-IOV], in order to configure SR-IOV capable network devices.
5241
b0d0e0ef
LP
5242 * systemd-networkd's [IPv6Prefix] section in .network files gained a
5243 new boolean setting Assign=. If enabled an address from the prefix is
5244 automatically assigned to the interface.
5245
c05b8edd
YW
5246 * systemd-networkd gained a new section [DHCPv6PrefixDelegation] which
5247 controls delegated prefixes assigned by DHCPv6 client. The section
5248 has three settings: SubnetID=, Assign=, and Token=. The setting
5249 SubnetID= allows explicit configuration of the preferred subnet that
5250 systemd-networkd's Prefix Delegation logic assigns to interfaces. If
5251 Assign= is enabled (which is the default) an address from any acquired
5252 delegated prefix is automatically chosen and assigned to the
5253 interface. The setting Token= specifies an optional address generation
5254 mode for Assign=.
b0d0e0ef 5255
3ea58e01
YW
5256 * systemd-networkd's [Network] section gained a new setting
5257 IPv4AcceptLocal=. If enabled the interface accepts packets with local
5258 source addresses.
5259
b0d0e0ef
LP
5260 * systemd-networkd gained support for configuring the HTB queuing
5261 discipline in the [HierarchyTokenBucket] and
5262 [HierarchyTokenBucketClass] sections. Similar the "pfifo" qdisc may
5263 be configured in the [PFIFO] section, "GRED" in
5264 [GenericRandomEarlyDetection], "SFB" in [StochasticFairBlue], "cake"
5265 in [CAKE], "PIE" in [PIE], "DRR" in [DeficitRoundRobinScheduler] and
5266 [DeficitRoundRobinSchedulerClass], "BFIFO" in [BFIFO],
1f19ae0f
LP
5267 "PFIFOHeadDrop" in [PFIFOHeadDrop], "PFIFOFast" in [PFIFOFast], "HHF"
5268 in [HeavyHitterFilter], "ETS" in [EnhancedTransmissionSelection] and
3ea58e01 5269 "QFQ" in [QuickFairQueueing] and [QuickFairQueueingClass].
b0d0e0ef
LP
5270
5271 * systemd-networkd gained support for a new Termination= setting in the
5272 [CAN] section for configuring the termination resistor. It also
5273 gained a new ListenOnly= setting for controlling whether to only
5274 listen on CAN interfaces, without interfering with traffic otherwise
5275 (which is useful for debugging/monitoring CAN network
5276 traffic). DataBitRate=, DataSamplePoint=, FDMode=, FDNonISO= have
5277 been added to configure various CAN-FD aspects.
5278
554a97ba
YW
5279 * systemd-networkd's [DHCPv6] section gained a new option WithoutRA=.
5280 When enabled, DHCPv6 will be attempted right-away without requiring an
5281 Router Advertisement packet suggesting it first (i.e. without the 'M'
5282 or 'O' flags set). The [IPv6AcceptRA] section gained a boolean option
5283 DHCPv6Client= that may be used to turn off the DHCPv6 client even if
5284 the RA packets suggest it.
b0d0e0ef
LP
5285
5286 * systemd-networkd's [DHCPv4] section gained a new setting UseGateway=
5287 which may be used to turn off use of the gateway information provided
5288 by the DHCP lease. A new FallbackLeaseLifetimeSec= setting may be
5289 used to configure how to process leases that lack a lifetime option.
5290
5291 * systemd-networkd's [DHCPv4] and [DHCPServer] sections gained a new
5292 setting SendVendorOption= allowing configuration of additional vendor
5293 options to send in the DHCP requests/responses. The [DHCPv6] section
5294 gained a new SendOption= setting for sending arbitrary DHCP
5295 options. RequestOptions= has been added to request arbitrary options
5296 from the server. UserClass= has been added to set the DHCP user class
5297 field.
5298
5299 * systemd-networkd's [DHCPServer] section gained a new set of options
2a71d57f 5300 EmitPOP3=/POP3=, EmitSMTP=/SMTP=, EmitLPR=/LPR= for including server
b0d0e0ef
LP
5301 information about these three protocols in the DHCP lease. It also
5302 gained support for including "MUD" URLs ("Manufacturer Usage
5303 Description"). Support for "MUD" URLs was also added to the LLDP
5304 stack, configurable in the [LLDP] section in .network files.
5305
6b949d26
YW
5306 * The Mode= settings in [MACVLAN] and [MACVTAP] now support 'source'
5307 mode. Also, the sections now support a new setting SourceMACAddress=.
5308
7f56c26d
ZJS
5309 * systemd-networkd's .netdev files now support a new setting
5310 VLANProtocol= in the [Bridge] section that allows configuration of
5311 the VLAN protocol to use.
5312
5313 * systemd-networkd supports a new Group= setting in the [Link] section
5314 of the .network files, to control the link group.
5315
6f6296b9 5316 * systemd-networkd's [Network] section gained a new
3ea58e01
YW
5317 IPv6LinkLocalAddressGenerationMode= setting, which specifies how IPv6
5318 link local address is generated.
5319
7f56c26d
ZJS
5320 * A new default .network file is now shipped that matches TUN/TAP
5321 devices that begin with "vt-" in their name. Such interfaces will
5322 have IP routing onto the host links set up automatically. This is
5323 supposed to be used by VM managers to trivially acquire a network
5324 interface which is fully set up for host communication, simply by
5325 carefully picking an interface name to use.
5326
3ea58e01 5327 * systemd-networkd's [DHCPv6] section gained a new setting RouteMetric=
aa0b850b 5328 which sets the route priority for routes specified by the DHCP server.
3ea58e01
YW
5329
5330 * systemd-networkd's [DHCPv6] section gained a new setting VendorClass=
5331 which configures the vendor class information sent to DHCP server.
5332
7f56c26d
ZJS
5333 * The BlackList= settings in .network files' [DHCPv4] and
5334 [IPv6AcceptRA] sections have been renamed DenyList=. The old names
5335 are still understood to provide compatibility.
5336
5337 * networkctl gained the new "forcerenew" command for forcing all DHCP
5338 server clients to renew their lease. The interface "status" output
5339 will now show numerous additional fields of information about an
5340 interface. There are new "up" and "down" commands to bring specific
5341 interfaces up or down.
5342
337f0b00
ZJS
5343 * systemd-resolved's DNS= configuration option now optionally accepts a
5344 port number (after ":") and a host name (after "#"). When the host
5345 name is specified, the DNS-over-TLS certificate is validated to match
5346 the specified hostname. Additionally, in case of IPv6 addresses, an
5347 interface may be specified (after "%").
b0d0e0ef 5348
2bd5e1b2
ZJS
5349 * systemd-resolved may be configured to forward single-label DNS names.
5350 This is not standard-conformant, but may make sense in setups where
5351 public DNS servers are not used.
5352
5353 * systemd-resolved's DNS-over-TLS support gained SNI validation.
5354
7f56c26d
ZJS
5355 * systemd-nspawn's --resolv-conf= switch gained a number of new
5356 supported values. Specifically, options starting with "replace-" are
5357 like those prefixed "copy-" but replace any existing resolv.conf
5358 file. And options ending in "-uplink" and "-stub" can now be used to
5359 propagate other flavours of resolv.conf into the container (as
5360 defined by systemd-resolved).
b0d0e0ef 5361
7f56c26d
ZJS
5362 * The various programs included in systemd can now optionally output
5363 their log messages on stderr prefixed with a timestamp, controlled by
5364 the $SYSTEMD_LOG_TIME environment variable.
366d0772 5365
b0d0e0ef
LP
5366 * systemctl gained a new "-P" switch that is a shortcut for "--value
5367 --property=…".
5368
7f56c26d
ZJS
5369 * "systemctl list-units" and "systemctl list-machines" no longer hide
5370 their first output column with --no-legend. To hide the first column,
5371 use --plain.
b0d0e0ef 5372
7f56c26d
ZJS
5373 * "systemctl reboot" takes the option "--reboot-argument=".
5374 The optional positional argument to "systemctl reboot" is now
5375 being deprecated in favor of this option.
b0d0e0ef
LP
5376
5377 * systemd-run gained a new switch --slice-inherit. If specified the
5378 unit it generates is placed in the same slice as the systemd-run
5379 process itself.
5380
7f56c26d
ZJS
5381 * systemd-journald gained support for zstd compression of large fields
5382 in journal files. The hash tables in journal files have been hardened
5383 against hash collisions. This is an incompatible change and means
5384 that journal files created with new systemd versions are not readable
5385 with old versions. If the $SYSTEMD_JOURNAL_KEYED_HASH boolean
5386 environment variable for systemd-journald.service is set to 0 this
5387 new hardening functionality may be turned off, so that generated
5388 journal files remain compatible with older journalctl
5389 implementations.
b0d0e0ef 5390
7f56c26d
ZJS
5391 * journalctl will now include a clickable link in the default output for
5392 each log message for which an URL with further documentation is
5393 known. This is only supported on terminal emulators that support
5394 clickable hyperlinks, and is turned off if a pager is used (since
5395 "less" still doesn't support hyperlinks,
5396 unfortunately). Documentation URLs may be included in log messages
5397 either by including a DOCUMENTATION= journal field in it, or by
5398 associating a journal message catalog entry with the log message's
5399 MESSAGE_ID, which then carries a "Documentation:" tag.
b0d0e0ef
LP
5400
5401 * journald.conf gained a new boolean setting Audit= that may be used to
5402 control whether systemd-journald will enable audit during
5403 initialization.
5404
7f56c26d
ZJS
5405 * when systemd-journald's log stream is broken up into multiple lines
5406 because the PID of the sender changed this is indicated in the
5407 generated log records via the _LINE_BREAK=pid-change field.
b0d0e0ef 5408
7f56c26d
ZJS
5409 * journalctl's "-o cat" output mode will now show one or more journal
5410 fields specified with --output-fields= instead of unconditionally
5411 MESSAGE=. This is useful to retrieve a very specific set of fields
5412 without any decoration.
b0d0e0ef 5413
495454f4
LP
5414 * The sd-journal.h API gained two new functions:
5415 sd_journal_enumerate_available_unique() and
5416 sd_journal_enumerate_available_data() that operate like their
5417 counterparts that lack the _available_ in the name, but skip items
5418 that cannot be read and processed by the local implementation
5419 (i.e. are compressed in an unsupported format or such),
5420
7f56c26d
ZJS
5421 * coredumpctl gained a new --file= switch, matching the same one in
5422 journalctl: a specific journal file may be specified to read the
5423 coredump data from.
5424
5425 * coredumps collected by systemd-coredump may now be compressed using
5426 the zstd algorithm.
b0d0e0ef
LP
5427
5428 * systemd-binfmt gained a new switch --unregister for unregistering all
5429 registered entries at once. This is now invoked automatically at
5430 shutdown, so that binary formats registered with the "F" flag will
5431 not block clean file system unmounting.
5432
b0d0e0ef 5433 * systemd-notify's --pid= switch gained new values: "parent", "self",
1d16f661 5434 "auto" for controlling which PID to send to the service manager: the
b0d0e0ef
LP
5435 systemd-notify process' PID, or the one of the process invoking it.
5436
b0d0e0ef
LP
5437 * systemd-logind's Session bus object learnt a new method call
5438 SetType() for temporarily updating the session type of an already
5439 allocated session. This is useful for upgrading tty sessions to
5440 graphical ones once a compositor is invoked.
5441
b0d0e0ef
LP
5442 * systemd-socket-proxy gained a new switch --exit-idle-time= for
5443 configuring an exit-on-idle time.
5444
b0d0e0ef
LP
5445 * systemd-repart's --empty= setting gained a new value "create". If
5446 specified a new empty regular disk image file is created under the
1d16f661 5447 specified name. Its size may be specified with the new --size=
b0d0e0ef
LP
5448 option. The latter is also supported without the "create" mode, in
5449 order to grow existing disk image files to the specified size. These
1d16f661
FS
5450 two new options are useful when creating or manipulating disk images
5451 instead of operating on actual block devices.
b0d0e0ef
LP
5452
5453 * systemd-repart drop-ins now support a new UUID= setting to control
5454 the UUID to assign to a newly created partition.
5455
1f19ae0f
LP
5456 * systemd-repart's SizeMin= per-partition parameter now defaults to 10M
5457 instead of 0.
5458
5459 * systemd-repart's Label= setting now support the usual, simple
5460 specifier expansion.
5461
7f56c26d
ZJS
5462 * systemd-homed's LUKS backend gained the ability to discard empty file
5463 system blocks automatically when the user logs out. This is enabled
5464 by default to ensure that home directories take minimal space when
5465 logged out but get full size guarantees when logged in. This may be
5466 controlled with the new --luks-offline-discard= switch to homectl.
b0d0e0ef 5467
7f56c26d
ZJS
5468 * If systemd-homed detects that /home/ is encrypted as a whole it will
5469 now default to the directory or subvolume backends instead of the
5470 LUKS backend, in order to avoid double encryption. The default
5471 storage and file system may now be configured explicitly, too, via
5472 the new /etc/systemd/homed.conf configuration file.
b0d0e0ef 5473
5d043c9f
LP
5474 * systemd-homed now supports unlocking home directories with FIDO2
5475 security tokens that support the 'hmac-secret' extension, in addition
5476 to the existing support for PKCS#11 security token unlocking
5477 support. Note that many recent hardware security tokens support both
5478 interfaces. The FIDO2 support is accessible via homectl's
5479 --fido2-device= option.
5480
5481 * homectl's --pkcs11-uri= setting now accepts two special parameters:
5482 if "auto" is specified and only one suitable PKCS#11 security token
5483 is plugged in, its URL is automatically determined and enrolled for
5484 unlocking the home directory. If "list" is specified a brief table of
5485 suitable PKCS#11 security tokens is shown. Similar, the new
5486 --fido2-device= option also supports these two special values, for
5487 automatically selecting and listing suitable FIDO2 devices.
5488
b0d0e0ef
LP
5489 * The /etc/crypttab tmp option now optionally takes an argument
5490 selecting the file system to use. Moreover, the default is now
5491 changed from ext2 to ext4.
5492
5493 * There's a new /etc/crypttab option "keyfile-erase". If specified the
5494 key file listed in the same line is removed after use, regardless if
5495 volume activation was successful or not. This is useful if the key
5496 file is only acquired transiently at runtime and shall be erased
5497 before the system continues to boot.
5498
5499 * There's also a new /etc/crypttab option "try-empty-password". If
5500 specified, before asking the user for a password it is attempted to
5501 unlock the volume with an empty password. This is useful for
5502 installing encrypted images whose password shall be set on first boot
5503 instead of at installation time.
5504
5505 * systemd-cryptsetup will now attempt to load the keys to unlock
5506 volumes with automatically from files in
5507 /etc/cryptsetup-keys.d/<volume>.key and
5508 /run/cryptsetup-keys.d/<volume>.key, if any of these files exist.
5509
7f56c26d
ZJS
5510 * systemd-cryptsetup may now activate Microsoft BitLocker volumes via
5511 /etc/crypttab, during boot.
5512
b0d0e0ef
LP
5513 * logind.conf gained a new RuntimeDirectoryInodesMax= setting to
5514 control the inode limit for the per-user $XDG_RUNTIME_DIR tmpfs
5515 instance.
5516
b0d0e0ef 5517 * A new generator systemd-xdg-autostart-generator has been added. It
7f56c26d
ZJS
5518 generates systemd unit files from XDG autostart .desktop files, and
5519 may be used to let the systemd user instance manage services that are
5520 started automatically as part of the desktop session.
47373451 5521
cb713f16
FS
5522 * "bootctl" gained a new verb "reboot-to-firmware" that may be used
5523 to query and change the firmware's 'reboot into firmware' setup flag.
1f19ae0f 5524
7f56c26d
ZJS
5525 * systemd-firstboot gained a new switch --kernel-command-line= that may
5526 be used to initialize the /etc/kernel/cmdline file of the image. It
5527 also gained a new switch --root-password-hashed= which is like
5528 --root-password= but accepts a pre-hashed UNIX password as
5529 argument. The new option --delete-root-password may be used to unset
495454f4
LP
5530 any password for the root user (dangerous!). The --root-shell= switch
5531 may be used to control the shell to use for the root account. A new
5532 --force option may be used to override any already set settings with
5533 the parameters specified on the command line (by default, the tool
5534 will not override what has already been set before, i.e. is purely
5535 incremental).
1f19ae0f 5536
a38c68a1
LP
5537 * systemd-firstboot gained support for a new --image= switch, which is
5538 similar to --root= but accepts the path to a disk image file, on
5539 which it then operates.
5540
7f56c26d
ZJS
5541 * A new sd-path.h API has been added to libsystemd. It provides a
5542 simple API for retrieving various search paths and primary
5543 directories for various resources.
1f19ae0f 5544
7f56c26d
ZJS
5545 * A new call sd_notify_barrier() has been added to the sd-daemon.h
5546 API. The call will block until all previously sent sd_notify()
5547 messages have been processed by the service manager. This is useful
5548 to remove races caused by a process already having disappeared at the
5549 time a notification message is processed by the service manager,
5550 making correct attribution impossible. The systemd-notify tool will
5551 now make use of this call implicitly, but this can be turned off again
5552 via the new --no-block switch.
1f19ae0f 5553
7f56c26d
ZJS
5554 * When sending a file descriptor (fd) to the service manager to keep
5555 track of, using the sd_notify() mechanism, a new parameter FDPOLL=0
5556 may be specified. If passed the service manager will refrain from
5557 poll()ing on the file descriptor. Traditionally (and when the
5558 parameter is not specified), the service manager will poll it for
5559 POLLHUP or POLLERR events, and immediately close the fds in that
5560 case.
1f19ae0f
LP
5561
5562 * The service manager (PID1) gained a new D-Bus method call
5563 SetShowStatus() which may be used to control whether it shall show
5564 boot-time status output on the console. This method has a similar
5565 effect to sending SIGRTMIN+20/SIGRTMIN+21 to PID 1.
5566
7f56c26d
ZJS
5567 * The sd-bus API gained a number of convenience functions that take
5568 va_list arguments rather than "...". For example, there's now
5569 sd_bus_call_methodv() to match sd_bus_call_method(). Those calls make
5570 it easier to build wrappers that accept variadic arguments and want
5571 to pass a ready va_list structure to sd-bus.
1f19ae0f 5572
7f56c26d
ZJS
5573 * sd-bus vtable entries can have a new SD_BUS_VTABLE_ABSOLUTE_OFFSET
5574 flag which alters how the userdata pointer to pass to the callbacks
5575 is determined. When the flag is set, the offset field is converted
5576 as-is into a pointer, without adding it to the object pointer the
5577 vtable is associated with.
1f19ae0f 5578
7f56c26d
ZJS
5579 * sd-bus now exposes four new functions:
5580 sd_bus_interface_name_is_valid() + sd_bus_service_name_is_valid() +
5581 sd_bus_member_name_is_valid() + sd_bus_object_path_is_valid() will
5582 validate strings to check if they qualify as various D-Bus concepts.
1f19ae0f 5583
7f56c26d
ZJS
5584 * The sd-bus API gained the SD_BUS_METHOD_WITH_ARGS(),
5585 SD_BUS_METHOD_WITH_ARGS_OFFSET() and SD_BUS_SIGNAL_WITH_ARGS() macros
5586 that simplify adding argument names to D-Bus methods and signals.
1f19ae0f 5587
7f56c26d 5588 * The man pages for the sd-bus and sd-hwdb APIs have been completed.
1f19ae0f 5589
7f56c26d
ZJS
5590 * Various D-Bus APIs of systemd daemons now have man pages that
5591 document the methods, signals and properties.
1f19ae0f 5592
7f56c26d 5593 * The expectations on user/group name syntax are now documented in
5149990e
CR
5594 detail; documentation on how classic home directories may be
5595 converted into home directories managed by homed has been added;
5596 documentation regarding integration of homed/userdb functionality in
5597 desktops has been added:
7f56c26d
ZJS
5598
5599 https://systemd.io/USER_NAMES
5600 https://systemd.io/CONVERTING_TO_HOMED
5601 https://systemd.io/USERDB_AND_DESKTOPS
5602
5603 * Documentation for the on-disk Journal file format has been updated
5604 and has now moved to:
5605
5606 https://systemd.io/JOURNAL_FILE_FORMAT
5607
5961d35a
ZJS
5608 * The interface for containers (https://systemd.io/CONTAINER_INTERFACE)
5609 has been extended by a set of environment variables that expose
5610 select fields from the host's os-release file to the container
5611 payload. Similarly, host's os-release files can be mounted into the
54971969 5612 container underneath /run/host. Together, those mechanisms provide a
5961d35a
ZJS
5613 standardized way to expose information about the host to the
5614 container payload. Both interfaces are implemented in systemd-nspawn.
5615
7f56c26d
ZJS
5616 * All D-Bus services shipped in systemd now implement the generic
5617 LogControl1 D-Bus API which allows clients to change log level +
5618 target of the service during runtime.
1f19ae0f 5619
337f0b00
ZJS
5620 * Only relevant for developers: the mkosi.default symlink has been
5621 dropped from version control. Please create a symlink to one of the
5622 distribution-specific defaults in .mkosi/ based on your preference.
4c967576 5623
72e51908 5624 Contributions from: 24bisquitz, Adam Nielsen, Alan Perry, Alexander
ae366f3a
ZJS
5625 Malafeev, Amitanand.Chikorde, Alin Popa, Alvin Šipraga, Amos Bird,
5626 Andreas Rammhold, AndreRH, Andrew Doran, Anita Zhang, Ankit Jain,
5627 antznin, Arnaud Ferraris, Arthur Moraes do Lago, Arusekk, Balaji
5628 Punnuru, Balint Reczey, Bastien Nocera, bemarek, Benjamin Berg,
5629 Benjamin Dahlhoff, Benjamin Robin, Chris Down, Chris Kerr, Christian
5630 Göttsche, Christian Hesse, Christian Oder, Ciprian Hacman, Clinton Roy,
5631 codicodi, Corey Hinshaw, Daan De Meyer, Dana Olson, Dan Callaghan,
5632 Daniel Fullmer, Daniel Rusek, Dan Streetman, Dave Reisner, David
5633 Edmundson, David Wood, Denis Pronin, Diego Escalante Urrelo, Dimitri
5634 John Ledkov, dolphrundgren, duguxy, Einsler Lee, Elisei Roca, Emmanuel
5635 Garette, Eric Anderson, Eric DeVolder, Evgeny Vereshchagin,
5636 ExtinctFire, fangxiuning, Ferran Pallarès Roca, Filipe Brandenburger,
5637 Filippo Falezza, Finn, Florian Klink, Florian Mayer, Franck Bui,
5638 Frantisek Sumsal, gaurav, Georg Müller, Gergely Polonkai, Giedrius
5639 Statkevičius, Gigadoc2, gogogogi, Gaurav Singh, gzjsgdsb, Hans de
5640 Goede, Haochen Tong, ianhi, ignapk, Jakov Smolic, James T. Lee, Jan
5641 Janssen, Jan Klötzke, Jan Palus, Jay Burger, Jeremy Cline, Jérémy
5642 Rosen, Jian-Hong Pan, Jiri Slaby, Joel Shapiro, Joerg Behrmann, Jörg
5643 Thalheim, Jouke Witteveen, Kai-Heng Feng, Kenny Levinsen, Kevin
5644 Kuehler, Kumar Kartikeya Dwivedi, layderv, laydervus, Lénaïc Huard,
5645 Lennart Poettering, Lidong Zhong, Luca Boccassi, Luca BRUNO, Lucas
5646 Werkmeister, Lukas Klingsbo, Lukáš Nykrýn, Łukasz Stelmach, Maciej
5647 S. Szmigiero, MadMcCrow, Marc-André Lureau, Marcel Holtmann, Marc
5648 Kleine-Budde, Martin Hundebøll, Matthew Leeds, Matt Ranostay, Maxim
5649 Fomin, MaxVerevkin, Michael Biebl, Michael Chapman, Michael Gubbels,
5650 Michael Marley, Michał Bartoszkiewicz, Michal Koutný, Michal Sekletár,
5651 Mike Gilbert, Mike Kazantsev, Mikhail Novosyolov, ml, Motiejus Jakštys,
5652 nabijaczleweli, nerdopolis, Niccolò Maggioni, Niklas Hambüchen, Norbert
5653 Lange, Paul Cercueil, pelzvieh, Peter Hutterer, Piero La Terza, Pieter
5654 Lexis, Piotr Drąg, Rafael Fontenelle, Richard Petri, Ronan Pigott, Ross
5655 Lagerwall, Rubens Figueiredo, satmandu, Sean-StarLabs, Sebastian
5656 Jennen, sterlinghughes, Surhud More, Susant Sahani, szb512, Thomas
5657 Haller, Tobias Hunger, Tom, Tomáš Pospíšek, Tomer Shechner, Tom Hughes,
5658 Topi Miettinen, Tudor Roman, Uwe Kleine-König, Valery0xff, Vito Caputo,
5659 Vladimir Panteleev, Vladyslav Tronko, Wen Yang, Yegor Vialov, Yigal
5660 Korman, Yi Gao, YmrDtnJu, Yuri Chornoivan, Yu Watanabe, Zbigniew
5661 Jędrzejewski-Szmek, Zhu Li, Дамјан Георгиевски, наб
5662
5663 – Warsaw, 2020-07-30
976efe1b 5664
901d1ce8 5665CHANGES WITH 245:
723822f0 5666
68410195 5667 * A new tool "systemd-repart" has been added, that operates as an
2ad98889
ZJS
5668 idempotent declarative repartitioner for GPT partition tables.
5669 Specifically, a set of partitions that must or may exist can be
5670 configured via drop-in files, and during every boot the partition
5671 table on disk is compared with these files, creating missing
5672 partitions or growing existing ones based on configurable relative
5673 and absolute size constraints. The tool is strictly incremental,
5674 i.e. does not delete, shrink or move partitions, but only adds and
5675 grows them. The primary use-case is OS images that ship in minimized
5676 form, that on first boot are grown to the size of the underlying
5677 block device or augmented with additional partitions. For example,
5678 the root partition could be extended to cover the whole disk, or a
5679 swap or /home partitions could be added on first boot. It can also be
5680 used for systems that use an A/B update scheme but ship images with
5681 just the A partition, with B added on first boot. The tool is
5682 primarily intended to be run in the initrd, shortly before
5683 transitioning into the host OS, but can also be run after the
5684 transition took place. It automatically discovers the disk backing
5685 the root file system, and should hence not require any additional
5686 configuration besides the partition definition drop-ins. If no
5687 configuration drop-ins are present, no action is taken.
68410195
LP
5688
5689 * A new component "userdb" has been added, along with a small daemon
a0223c30 5690 "systemd-userdbd.service" and a client tool "userdbctl". The framework
68410195
LP
5691 allows defining rich user and group records in a JSON format,
5692 extending on the classic "struct passwd" and "struct group"
5693 structures. Various components in systemd have been updated to
5694 process records in this format, including systemd-logind and
5695 pam-systemd. The user records are intended to be extensible, and
5696 allow setting various resource management, security and runtime
5697 parameters that shall be applied to processes and sessions of the
5698 user as they log in. This facility is intended to allow associating
5699 such metadata directly with user/group records so that they can be
5700 produced, extended and consumed in unified form. We hope that
5701 eventually frameworks such as sssd will generate records this way, so
5702 that for the first time resource management and various other
5703 per-user settings can be configured in LDAP directories and then
5704 provided to systemd (specifically to systemd-logind and pam-system)
2ad98889 5705 to apply on login. For further details see:
68410195
LP
5706
5707 https://systemd.io/USER_RECORD
5708 https://systemd.io/GROUP_RECORD
5709 https://systemd.io/USER_GROUP_API
5710
9a4940bf 5711 * A small new service systemd-homed.service has been added, that may be
2ad98889
ZJS
5712 used to securely manage home directories with built-in encryption.
5713 The complete user record data is unified with the home directory,
5714 thus making home directories naturally migratable. Its primary
5715 back-end is based on LUKS volumes, but fscrypt, plain directories,
5716 and other storage schemes are also supported. This solves a couple of
5717 problems we saw with traditional ways to manage home directories, in
5718 particular when it comes to encryption. For further discussion of
5719 this, see the video of Lennart's talk at AllSystemsGo! 2019:
9a4940bf
LP
5720
5721 https://media.ccc.de/v/ASG2019-164-reinventing-home-directories
5722
5723 For further details about the format and expectations on home
5724 directories this new daemon makes, see:
5725
5726 https://systemd.io/HOME_DIRECTORY
5727
5728 * systemd-journald is now multi-instantiable. In addition to the main
5729 instance systemd-journald.service there's now a template unit
2ad98889
ZJS
5730 systemd-journald@.service, with each instance defining a new named
5731 log 'namespace' (whose name is specified via the instance part of the
5732 unit name). A new unit file setting LogNamespace= has been added,
5733 taking such a namespace name, that assigns services to the specified
5734 log namespaces. As each log namespace is serviced by its own
5735 independent journal daemon, this functionality may be used to improve
5736 performance and increase isolation of applications, at the price of
5737 losing global message ordering. Each instance of journald has a
5738 separate set of configuration files, with possibly different disk
5739 usage limitations and other settings.
5740
5741 journalctl now takes a new option --namespace= to show logs from a
5742 specific log namespace. The sd-journal.h API gained
5743 sd_journal_open_namespace() for opening the log stream of a specific
5744 log namespace. systemd-journald also gained the ability to exit on
5745 idle, which is useful in the context of log namespaces, as this means
5746 log daemons for log namespaces can be activated automatically on
5747 demand and will stop automatically when no longer used, minimizing
5748 resource usage.
9a4940bf 5749
723822f0 5750 * When systemd-tmpfiles copies a file tree using the 'C' line type it
2ad98889 5751 will now label every copied file according to the SELinux database.
723822f0
LP
5752
5753 * When systemd/PID 1 detects it is used in the initrd it will now boot
5754 into initrd.target rather than default.target by default. This should
5755 make it simpler to build initrds with systemd as for many cases the
5756 only difference between a host OS image and an initrd image now is
2ad98889 5757 the presence of the /etc/initrd-release file.
723822f0
LP
5758
5759 * A new kernel command line option systemd.cpu_affinity= is now
5760 understood. It's equivalent to the CPUAffinity= option in
5761 /etc/systemd/system.conf and allows setting the CPU mask for PID 1
2ad98889 5762 itself and the default for all other processes.
723822f0 5763
2ad98889
ZJS
5764 * When systemd/PID 1 is reloaded (with systemctl daemon-reload or
5765 equivalent), the SELinux database is now reloaded, ensuring that
723822f0
LP
5766 sockets and other file system objects are generated taking the new
5767 database into account.
5768
d54bb638
ZJS
5769 * systemd/PID 1 accepts a new "systemd.show-status=error" setting, and
5770 "quiet" has been changed to imply that instead of
5771 "systemd.show-status=auto". In this mode, only messages about errors
5772 and significant delays in boot are shown on the console.
5773
2ad98889 5774 * The sd-event.h API gained native support for the new Linux "pidfd"
723822f0
LP
5775 concept. This permits watching processes using file descriptors
5776 instead of PID numbers, which fixes a number of races and makes
2ad98889 5777 process supervision more robust and efficient. All of systemd's
723822f0
LP
5778 components will now use pidfds if the kernel supports it for process
5779 watching, with the exception of PID 1 itself, unfortunately. We hope
5780 to move PID 1 to exclusively using pidfds too eventually, but this
5781 requires some more kernel work first. (Background: PID 1 watches
5782 processes using waitid() with the P_ALL flag, and that does not play
5783 together nicely with pidfds yet.)
5784
5785 * Closely related to this, the sd-event.h API gained two new calls
5786 sd_event_source_send_child_signal() (for sending a signal to a
5787 watched process) and sd_event_source_get_child_process_own() (for
2ad98889
ZJS
5788 marking a process so that it is killed automatically whenever the
5789 event source watching it is freed).
723822f0 5790
60ed2dcf 5791 * systemd-networkd gained support for configuring Token Bucket Filter
2ad98889
ZJS
5792 (TBF) parameters in its qdisc configuration support. Similarly,
5793 support for Stochastic Fairness Queuing (SFQ), Controlled-Delay
69f17347 5794 Active Queue Management (CoDel), and Fair Queue (FQ) has been added.
723822f0
LP
5795
5796 * systemd-networkd gained support for Intermediate Functional Block
5797 (IFB) network devices.
5798
5799 * systemd-networkd gained support for configuring multi-path IP routes,
5800 using the new MultiPathRoute= setting in the [Route] section.
5801
2ad98889
ZJS
5802 * systemd-networkd's DHCPv4 client has been updated to support a new
5803 SendDecline= option. If enabled, duplicate address detection is done
5804 after a DHCP offer is received from the server. If a conflict is
5805 detected, the address is declined. The DHCPv4 client also gained
723822f0
LP
5806 support for a new RouteMTUBytes= setting that allows to configure the
5807 MTU size to be used for routes generated from DHCPv4 leases.
5808
5809 * The PrefixRoute= setting in systemd-networkd's [Address] section of
5810 .network files has been deprecated, and replaced by AddPrefixRoute=,
2ad98889 5811 with its sense inverted.
723822f0
LP
5812
5813 * The Gateway= setting of [Route] sections of .network files gained
427928ca
ZJS
5814 support for a special new value "_dhcp". If set, the configured
5815 static route uses the gateway host configured via DHCP.
723822f0 5816
573e58f6 5817 * New User= and SuppressPrefixLength= settings have been implemented
f05c0615
YW
5818 for the [RoutingPolicyRule] section of .network files to configure
5819 source routing based on UID ranges and prefix length, respectively.
9a4940bf 5820
88b2a950
ZJS
5821 * The Type= match property of .link files has been generalized to
5822 always match the device type shown by 'networkctl status', even for
5823 devices where udev does not set DEVTYPE=. This allows e.g. Type=ether
5824 to be used.
5825
2ad98889
ZJS
5826 * sd-bus gained a new API call sd_bus_message_sensitive() that marks a
5827 D-Bus message object as "sensitive". Those objects are erased from
5828 memory when they are freed. This concept is intended to be used for
5829 messages that contain security sensitive data. A new flag
5830 SD_BUS_VTABLE_SENSITIVE has been introduced as well to mark methods
5831 in sd-bus vtables, causing any incoming and outgoing messages of
5832 those methods to be implicitly marked as "sensitive".
723822f0 5833
9a4940bf 5834 * sd-bus gained a new API call sd_bus_message_dump() for dumping the
2ad98889 5835 contents of a message (or parts thereof) to standard output for
9a4940bf
LP
5836 debugging purposes.
5837
2ad98889
ZJS
5838 * systemd-sysusers gained support for creating users with the primary
5839 group named differently than the user.
9a4940bf 5840
723822f0
LP
5841 * systemd-growfs (i.e. the x-systemd.growfs mount option in /etc/fstab)
5842 gained support for growing XFS partitions. Previously it supported
5843 only ext4 and btrfs partitions.
5844
5845 * The support for /etc/crypttab gained a new x-initrd.attach option. If
2ad98889
ZJS
5846 set, the specified encrypted volume is unlocked already in the
5847 initrd. This concept corresponds to the x-initrd.mount option in
723822f0
LP
5848 /etc/fstab.
5849
5850 * systemd-cryptsetup gained native support for unlocking encrypted
5851 volumes utilizing PKCS#11 smartcards, i.e. for example to bind
2ad98889 5852 encryption of volumes to YubiKeys. This is exposed in the new
723822f0
LP
5853 pkcs11-uri= option in /etc/crypttab.
5854
68410195
LP
5855 * The /etc/fstab support in systemd now supports two new mount options
5856 x-systemd.{required,wanted}-by=, for explicitly configuring the units
5857 that the specified mount shall be pulled in by, in place of
5858 the usual local-fs.target/remote-fs.target.
5859
723822f0
LP
5860 * The https://systemd.io/ web site has been relaunched, directly
5861 populated with most of the documentation included in the systemd
2ad98889
ZJS
5862 repository. systemd also acquired a new logo, thanks to Tobias
5863 Bernard.
723822f0
LP
5864
5865 * systemd-udevd gained support for managing "alternative" network
5866 interface names, as supported by new Linux kernels. For the first
5867 time this permits assigning multiple (and longer!) names to a network
5868 interface. systemd-udevd will now by default assign the names
2ad98889
ZJS
5869 generated via all supported naming schemes to each interface. This
5870 may be further tweaked with .link files and the AlternativeName= and
5871 AlternativeNamesPolicy= settings. Other components of systemd have
5872 been updated to support the new alternative names wherever
5873 appropriate. For example, systemd-nspawn will now generate
5874 alternative interface names for the host-facing side of container
5875 veth links based on the full container name without truncation.
723822f0
LP
5876
5877 * systemd-nspawn interface naming logic has been updated in another way
5878 too: if the main interface name (i.e. as opposed to new-style
2ad98889
ZJS
5879 "alternative" names) based on the container name is truncated, a
5880 simple hashing scheme is used to give different interface names to
5881 multiple containers whose names all begin with the same prefix. Since
5882 this changes the primary interface names pointing to containers if
5883 truncation happens, the old scheme may still be requested by
5884 selecting an older naming scheme, via the net.naming-scheme= kernel
5885 command line option.
723822f0 5886
68410195
LP
5887 * PrivateUsers= in service files now works in services run by the
5888 systemd --user per-user instance of the service manager.
5889
5890 * A new per-service sandboxing option ProtectClock= has been added that
5891 locks down write access to the system clock. It takes away device
2ad98889
ZJS
5892 node access to /dev/rtc as well as the system calls that set the
5893 system clock and the CAP_SYS_TIME and CAP_WAKE_ALARM capabilities.
5894 Note that this option does not affect access to auxiliary services
5895 that allow changing the clock, for example access to
5896 systemd-timedated.
68410195
LP
5897
5898 * The systemd-id128 tool gained a new "show" verb for listing or
da890466 5899 resolving a number of well-known UUIDs/128-bit IDs, currently mostly
68410195 5900 GPT partition table types.
723822f0
LP
5901
5902 * The Discoverable Partitions Specification has been updated to support
5903 /var and /var/tmp partition discovery. Support for this has been
5904 added to systemd-gpt-auto-generator. For details see:
5905
5906 https://systemd.io/DISCOVERABLE_PARTITIONS
5907
5908 * "systemctl list-unit-files" has been updated to show a new column
5909 with the suggested enablement state based on the vendor preset files
5910 for the respective units.
5911
68410195
LP
5912 * "systemctl" gained a new option "--with-dependencies". If specified
5913 commands such as "systemctl status" or "systemctl cat" will now show
5914 all specified units along with all units they depend on.
5915
723822f0
LP
5916 * networkctl gained support for showing per-interface logs in its
5917 "status" output.
5918
a100fe3c 5919 * systemd-networkd-wait-online gained support for specifying the maximum
573e58f6
ZJS
5920 operational state to wait for, and to wait for interfaces to
5921 disappear.
5922
723822f0
LP
5923 * The [Match] section of .link and .network files now supports a new
5924 option PermanentMACAddress= which may be used to check against the
5925 permanent MAC address of a network device even if a randomized MAC
5926 address is used.
5927
69f17347
ZJS
5928 * The [TrafficControlQueueingDiscipline] section in .network files has
5929 been renamed to [NetworkEmulator] with the "NetworkEmulator" prefix
5930 dropped from the individual setting names.
68410195 5931
823b0352
ZJS
5932 * Any .link and .network files that have an empty [Match] section (this
5933 also includes empty and commented-out files) will now be
5934 rejected. systemd-udev and systemd-networkd started warning about
5935 such files in version 243.
5936
2ad98889 5937 * systemd-logind will now validate access to the operation of changing
98ab0dae 5938 the virtual terminal via a polkit action. By default, only users
2ad98889 5939 with at least one session on a local VT are granted permission.
68410195 5940
2ad98889
ZJS
5941 * When systemd sets up PAM sessions that invoked service processes
5942 shall run in, the pam_setcred() API is now invoked, thus permitting
5943 PAM modules to set additional credentials for the processes.
68410195 5944
d54bb638
ZJS
5945 * portablectl attach/detach verbs now accept --now and --enable options
5946 to combine attachment with enablement and invocation, or detachment
5947 with stopping and disablement.
5948
2ca17c78
ZJS
5949 * UPGRADE ISSUE: a bug where some jobs were trimmed as redundant was
5950 fixed, which in turn exposed bugs in unit configuration of services
5951 which have Type=oneshot and should only run once, but do not have
5952 RemainAfterExit=yes set. Without RemainAfterExit=yes, a one-shot
5953 service may be started again after exiting successfully, for example
5954 as a dependency in another transaction. Affected services included
5955 some internal systemd services (most notably
5956 systemd-vconsole-setup.service, which was updated to have
5957 RemainAfterExit=yes), and plymouth-start.service. Please ensure that
5958 plymouth has been suitably updated or patched before upgrading to
5959 this systemd release. See
5960 https://bugzilla.redhat.com/show_bug.cgi?id=1807771 for some
5961 additional discussion.
5962
9c4d3d79
ZJS
5963 Contributions from: AJ Bagwell, Alin Popa, Andreas Rammhold, Anita
5964 Zhang, Ansgar Burchardt, Antonio Russo, Arian van Putten, Ashley Davis,
5965 Balint Reczey, Bart Willems, Bastien Nocera, Benjamin Dahlhoff, Charles
5966 (Chas) Williams, cheese1, Chris Down, Chris Murphy, Christian Ehrhardt,
5967 Christian Göttsche, cvoinf, Daan De Meyer, Daniele Medri, Daniel Rusek,
5968 Daniel Shahaf, Dann Frazier, Dan Streetman, Dariusz Gadomski, David
5969 Michael, Dimitri John Ledkov, Emmanuel Bourg, Evgeny Vereshchagin,
5970 ezst036, Felipe Sateler, Filipe Brandenburger, Florian Klink, Franck
5971 Bui, Fran Dieguez, Frantisek Sumsal, Greg "GothAck" Miell, Guilhem
5972 Lettron, Guillaume Douézan-Grard, Hans de Goede, HATAYAMA Daisuke, Iain
5973 Lane, James Buren, Jan Alexander Steffens (heftig), Jérémy Rosen, Jin
5974 Park, Jun'ichi Nomura, Kai Krakow, Kevin Kuehler, Kevin P. Fleming,
5975 Lennart Poettering, Leonid Bloch, Leonid Evdokimov, lothrond, Luca
5976 Boccassi, Lukas K, Lynn Kirby, Mario Limonciello, Mark Deneen, Matthew
5977 Leeds, Michael Biebl, Michal Koutný, Michal Sekletár, Mike Auty, Mike
5978 Gilbert, mtron, nabijaczleweli, Naïm Favier, Nate Jones, Norbert Lange,
5979 Oliver Giles, Paul Davey, Paul Menzel, Peter Hutterer, Piotr Drąg, Rafa
5980 Couto, Raphael, rhn, Robert Scheck, Rocka, Romain Naour, Ryan Attard,
5981 Sascha Dewald, Shengjing Zhu, Slava Kardakov, Spencer Michaels, Sylvain
5982 Plantefeve, Stanislav Angelovič, Susant Sahani, Thomas Haller, Thomas
5983 Schmitt, Timo Schlüßler, Timo Wilken, Tobias Bernard, Tobias Klauser,
5984 Tobias Stoeckmann, Topi Miettinen, tsia, WataruMatsuoka, Wieland
5985 Hoffmann, Wilhelm Schuster, Will Fleming, xduugu, Yong Cong Sin, Yuri
5986 Chornoivan, Yu Watanabe, Zach Smith, Zbigniew Jędrzejewski-Szmek, Zeyu
5987 DONG
901d1ce8 5988
03985d06 5989 – Warsaw, 2020-03-06
723822f0 5990
bdf2357c 5991CHANGES WITH 244:
ee50dada
ZJS
5992
5993 * Support for the cpuset cgroups v2 controller has been added.
5994 Processes may be restricted to specific CPUs using the new
5995 AllowedCPUs= setting, and to specific memory NUMA nodes using the new
5996 AllowedMemoryNodes= setting.
5997
5998 * The signal used in restart jobs (as opposed to e.g. stop jobs) may
1e904320 5999 now be configured using a new RestartKillSignal= setting. This
ee50dada
ZJS
6000 allows units which signals to request termination to implement
6001 different behaviour when stopping in preparation for a restart.
6002
6003 * "systemctl clean" may now be used also for socket, mount, and swap
6004 units.
6005
6006 * systemd will also read configuration options from the EFI variable
6007 SystemdOptions. This may be used to configure systemd behaviour when
6008 modifying the kernel command line is inconvenient, but configuration
6009 on disk is read too late, for example for the options related to
2536752d 6010 cgroup hierarchy setup. 'bootctl systemd-efi-options' may be used to
ee50dada
ZJS
6011 set the EFI variable.
6012
6013 * systemd will now disable printk ratelimits in early boot. This should
6014 allow us to capture more logs from the early boot phase where normal
6015 storage is not available and the kernel ring buffer is used for
6016 logging. Configuration on the kernel command line has higher priority
6017 and overrides the systemd setting.
6018
6019 systemd programs which log to /dev/kmsg directly use internal
6020 ratelimits to prevent runaway logging. (Normally this is only used
6021 during early boot, so in practice this change has very little
6022 effect.)
6023
3e1db806
AZ
6024 * Unit files now support top level dropin directories of the form
6025 <unit_type>.d/ (e.g. service.d/) that may be used to add configuration
6026 that affects all corresponding unit files.
ee50dada 6027
852b7272
ZJS
6028 * systemctl gained support for 'stop --job-mode=triggering' which will
6029 stop the specified unit and any units which could trigger it.
6030
6031 * Unit status display now includes units triggering and triggered by
6032 the unit being shown.
6033
ee50dada
ZJS
6034 * The RuntimeMaxSec= setting is now supported by scopes, not just
6035 .service units. This is particularly useful for PAM sessions which
6036 create a scope unit for the user login. systemd.runtime_max_sec=
6037 setting may used with the pam_systemd module to limit the duration
6038 of the PAM session, for example for time-limited logins.
6039
852b7272 6040 * A new @pkey system call group is now defined to make it easier to
6b000af4 6041 allow-list memory protection syscalls for containers and services
852b7272
ZJS
6042 which need to use them.
6043
6044 * systemd-udevd: removed the 30s timeout for killing stale workers on
6045 exit. systemd-udevd now waits for workers to finish. The hard-coded
6046 exit timeout of 30s was too short for some large installations, where
6047 driver initialization could be prematurely interrupted during initrd
6048 processing if the root file system had been mounted and init was
6049 preparing to switch root. If udevd is run without systemd and workers
6050 are hanging while udevd receives an exit signal, udevd will now exit
6051 when udev.event_timeout is reached for the last hanging worker. With
6052 systemd, the exit timeout can additionally be configured using
6053 TimeoutStopSec= in systemd-udevd.service.
6054
ee50dada
ZJS
6055 * udev now provides a program (fido_id) that identifies FIDO CTAP1
6056 ("U2F")/CTAP2 security tokens based on the usage declared in their
6057 report and descriptor and outputs suitable environment variables.
6b000af4 6058 This replaces the externally maintained allow lists of all known
ee50dada
ZJS
6059 security tokens that were used previously.
6060
6b000af4 6061 * Automatically generated autosuspend udev rules for allow-listed
ee50dada 6062 devices have been imported from the Chromium OS project. This should
b7db8b7b 6063 improve power saving with many more devices.
ee50dada
ZJS
6064
6065 * udev gained a new "CONST{key}=value" setting that allows matching
6066 against system-wide constants without forking a helper binary.
6067 Currently "arch" and "virt" keys are supported.
6068
6069 * udev now opens CDROMs in non-exclusive mode when querying their
6070 capabilities. This should fix issues where other programs trying to
6071 use the CDROM cannot gain access to it, but carries a risk of
6072 interfering with programs writing to the disk, if they did not open
6073 the device in exclusive mode as they should.
6074
6075 * systemd-networkd does not create a default route for IPv4 link local
6076 addressing anymore. The creation of the route was unexpected and was
6077 breaking routing in various cases, but people who rely on it being
6078 created implicitly will need to adjust. Such a route may be requested
6079 with DefaultRouteOnDevice=yes.
6080
6081 Similarly, systemd-networkd will not assign a link-local IPv6 address
6082 when IPv6 link-local routing is not enabled.
6083
6084 * Receive and transmit buffers may now be configured on links with
6085 the new RxBufferSize= and TxBufferSize= settings.
6086
6087 * systemd-networkd may now advertise additional IPv6 routes. A new
6088 [IPv6RoutePrefix] section with Route= and LifetimeSec= options is
6089 now supported.
6090
6091 * systemd-networkd may now configure "next hop" routes using the
6092 [NextHop] section and Gateway= and Id= settings.
6093
6094 * systemd-networkd will now retain DHCP config on restarts by default
6095 (but this may be overridden using the KeepConfiguration= setting).
6096 The default for SendRelease= has been changed to true.
6097
6098 * The DHCPv4 client now uses the OPTION_INFORMATION_REFRESH_TIME option
6099 received from the server.
6100
6101 The client will use the received SIP server list if UseSIP=yes is
6102 set.
6103
6104 The client may be configured to request specific options from the
6105 server using a new RequestOptions= setting.
6106
852b7272
ZJS
6107 The client may be configured to send arbitrary options to the server
6108 using a new SendOption= setting.
6109
ee50dada
ZJS
6110 A new IPServiceType= setting has been added to configure the "IP
6111 service type" value used by the client.
6112
6113 * The DHCPv6 client learnt a new PrefixDelegationHint= option to
6114 request prefix hints in the DHCPv6 solicitation.
6115
852b7272 6116 * The DHCPv4 server may be configured to send arbitrary options using
88b86003 6117 a new SendOption= setting.
852b7272
ZJS
6118
6119 * The DHCPv4 server may now be configured to emit SIP server list using
6120 the new EmitSIP= and SIP= settings.
6121
ee50dada
ZJS
6122 * systemd-networkd and networkctl may now renew DHCP leases on demand.
6123 networkctl has a new 'networkctl renew' verb.
6124
6125 * systemd-networkd may now reconfigure links on demand. networkctl
6126 gained two new verbs: "reload" will reload the configuration, and
6127 "reconfigure DEVICE…" will reconfigure one or more devices.
6128
6129 * .network files may now match on SSID and BSSID of a wireless network,
6130 i.e. the access point name and hardware address using the new SSID=
6131 and BSSID= options. networkctl will display the current SSID and
6132 BSSID for wireless links.
6133
6134 .network files may also match on the wireless network type using the
f36e6a4a 6135 new WLANInterfaceType= option.
ee50dada
ZJS
6136
6137 * systemd-networkd now includes default configuration that enables
6138 link-local addressing when connected to an ad-hoc wireless network.
6139
ee50dada
ZJS
6140 * systemd-networkd may configure the Traffic Control queueing
6141 disciplines in the kernel using the new
6142 [TrafficControlQueueingDiscipline] section and Parent=,
6143 NetworkEmulatorDelaySec=, NetworkEmulatorDelayJitterSec=,
6878c022
YW
6144 NetworkEmulatorPacketLimit=, NetworkEmulatorLossRate=,
6145 NetworkEmulatorDuplicateRate= settings.
ee50dada
ZJS
6146
6147 * systemd-tmpfiles gained a new w+ setting to append to files.
6148
6149 * systemd-analyze dump will now report when the memory configuration in
6150 the kernel does not match what systemd has configured (usually,
6151 because some external program has modified the kernel configuration
6152 on its own).
6153
852b7272
ZJS
6154 * systemd-analyze gained a new --base-time= switch instructs the
6155 'calendar' verb to resolve times relative to that timestamp instead
6156 of the present time.
6157
ee50dada
ZJS
6158 * journalctl --update-catalog now produces deterministic output (making
6159 reproducible image builds easier).
6160
6161 * A new devicetree-overlay setting is now documented in the Boot Loader
6162 Specification.
6163
6164 * The default value of the WatchdogSec= setting used in systemd
6165 services (the ones bundled with the project itself) may be set at
6166 configuration time using the -Dservice-watchdog= setting. If set to
6167 empty, the watchdogs will be disabled.
6168
0e4daba1
MK
6169 * systemd-resolved validates IP addresses in certificates now when GnuTLS
6170 is being used.
597f905c 6171
852b7272
ZJS
6172 * libcryptsetup >= 2.0.1 is now required.
6173
6174 * A configuration option -Duser-path= may be used to override the $PATH
6175 used by the user service manager. The default is again to use the same
6176 path as the system manager.
6177
168e131b 6178 * The systemd-id128 tool gained a new switch "-u" (or "--uuid") for
da890466 6179 outputting the 128-bit IDs in UUID format (i.e. in the "canonical
168e131b
LP
6180 representation").
6181
6182 * Service units gained a new sandboxing option ProtectKernelLogs= which
6183 makes sure the program cannot get direct access to the kernel log
6184 buffer anymore, i.e. the syslog() system call (not to be confused
6185 with the API of the same name in libc, which is not affected), the
6186 /proc/kmsg and /dev/kmsg nodes and the CAP_SYSLOG capability are made
6187 inaccessible to the service. It's recommended to enable this setting
6188 for all services that should not be able to read from or write to the
6189 kernel log buffer, which are probably almost all.
6190
bdf2357c 6191 Contributions from: Aaron Plattner, Alcaro, Anita Zhang, Balint Reczey,
8bf2a311
LP
6192 Bastien Nocera, Baybal Ni, Benjamin Bouvier, Benjamin Gilbert, Carlo
6193 Teubner, cbzxt, Chen Qi, Chris Down, Christian Rebischke, Claudio
6194 Zumbo, ClydeByrdIII, crashfistfight, Cyprien Laplace, Daniel Edgecumbe,
6195 Daniel Gorbea, Daniel Rusek, Daniel Stuart, Dan Streetman, David
6196 Pedersen, David Tardon, Dimitri John Ledkov, Dominique Martinet, Donald
6197 A. Cupp Jr, Evgeny Vereshchagin, Fabian Henneke, Filipe Brandenburger,
6198 Franck Bui, Frantisek Sumsal, Georg Müller, Hans de Goede, Haochen
6199 Tong, HATAYAMA Daisuke, Iwan Timmer, Jan Janssen, Jan Kundrát, Jan
6200 Synacek, Jan Tojnar, Jay Strict, Jérémy Rosen, Jóhann B. Guðmundsson,
6201 Jonas Jelten, Jonas Thelemann, Justin Trudell, J. Xing, Kai-Heng Feng,
6202 Kenneth D'souza, Kevin Becker, Kevin Kuehler, Lennart Poettering,
6203 Léonard Gérard, Lorenz Bauer, Luca Boccassi, Maciej Stanczew, Mario
6204 Limonciello, Marko Myllynen, Mark Stosberg, Martin Wilck, matthiasroos,
6205 Michael Biebl, Michael Olbrich, Michael Tretter, Michal Sekletar,
6206 Michal Sekletár, Michal Suchanek, Mike Gilbert, Mike Kazantsev, Nicolas
6207 Douma, nikolas, Norbert Lange, pan93412, Pascal de Bruijn, Paul Menzel,
6208 Pavel Hrdina, Peter Wu, Philip Withnall, Piotr Drąg, Rafael Fontenelle,
6209 Renaud Métrich, Riccardo Schirone, RoadrunnerWMC, Ronan Pigott, Ryan
6210 Attard, Sebastian Wick, Serge, Siddharth Chandrasekara, Steve Ramage,
6211 Steve Traylen, Susant Sahani, Thibault Nélis, Tim Teichmann, Tom
6212 Fitzhenry, Tommy J, Torsten Hilbrich, Vito Caputo, ypf791, Yu Watanabe,
6213 Zach Smith, Zbigniew Jędrzejewski-Szmek
6214
6215 – Warsaw, 2019-11-29
bdf2357c 6216
efb536d0 6217CHANGES WITH 243:
6af90583 6218
0338934f
LP
6219 * This release enables unprivileged programs (i.e. requiring neither
6220 setuid nor file capabilities) to send ICMP Echo (i.e. ping) requests
08b59539 6221 by turning on the "net.ipv4.ping_group_range" sysctl of the Linux
0338934f
LP
6222 kernel for the whole UNIX group range, i.e. all processes. This
6223 change should be reasonably safe, as the kernel support for it was
6224 specifically implemented to allow safe access to ICMP Echo for
6225 processes lacking any privileges. If this is not desirable, it can be
6226 disabled again by setting the parameter to "1 0".
6227
4cd82631 6228 * Previously, filters defined with SystemCallFilter= would have the
08b59539
CR
6229 effect that any calling of an offending system call would terminate
6230 the calling thread. This behaviour never made much sense, since
6231 killing individual threads of unsuspecting processes is likely to
6232 create more problems than it solves. With this release the default
6233 action changed from killing the thread to killing the whole
6234 process. For this to work correctly both a kernel version (>= 4.14)
6235 and a libseccomp version (>= 2.4.0) supporting this new seccomp
6236 action is required. If an older kernel or libseccomp is used the old
6237 behaviour continues to be used. This change does not affect any
6238 services that have no system call filters defined, or that use
6239 SystemCallErrorNumber= (and thus see EPERM or another error instead
6240 of being killed when calling an offending system call). Note that
6241 systemd documentation always claimed that the whole process is
6242 killed. With this change behaviour is thus adjusted to match the
6243 documentation.
4cd82631 6244
4860f5c2
ZJS
6245 * On 64 bit systems, the "kernel.pid_max" sysctl is now bumped to
6246 4194304 by default, i.e. the full 22bit range the kernel allows, up
da890466 6247 from the old 16-bit range. This should improve security and
4860f5c2
ZJS
6248 robustness, as PID collisions are made less likely (though certainly
6249 still possible). There are rumours this might create compatibility
6af90583
LP
6250 problems, though at this moment no practical ones are known to
6251 us. Downstream distributions are hence advised to undo this change in
6252 their builds if they are concerned about maximum compatibility, but
6253 for everybody else we recommend leaving the value bumped. Besides
6254 improving security and robustness this should also simplify things as
6255 the maximum number of allowed concurrent tasks was previously bounded
4860f5c2
ZJS
6256 by both "kernel.pid_max" and "kernel.threads-max" and now effectively
6257 only a single knob is left ("kernel.threads-max"). There have been
6258 concerns that usability is affected by this change because larger PID
6259 numbers are harder to type, but we believe the change from 5 digits
6260 to 7 digits doesn't hamper usability.
6af90583 6261
2875a36b
LP
6262 * MemoryLow= and MemoryMin= gained hierarchy-aware counterparts,
6263 DefaultMemoryLow= and DefaultMemoryMin=, which can be used to
acdb4b52
CD
6264 hierarchically set default memory protection values for a particular
6265 subtree of the unit hierarchy.
6266
22bf131b
CD
6267 * Memory protection directives can now take a value of zero, allowing
6268 explicit opting out of a default value propagated by an ancestor.
6269
87cf1f8f
LP
6270 * systemd now defaults to the "unified" cgroup hierarchy setup during
6271 build-time, i.e. -Ddefault-hierarchy=unified is now the build-time
6272 default. Previously, -Ddefault-hierarchy=hybrid was the default. This
6273 change reflects the fact that cgroupsv2 support has matured
6274 substantially in both systemd and in the kernel, and is clearly the
6275 way forward. Downstream production distributions might want to
6276 continue to use -Ddefault-hierarchy=hybrid (or even =legacy) for
6277 their builds as unfortunately the popular container managers have not
6278 caught up with the kernel API changes.
6279
51b568f7
ZJS
6280 * Man pages are not built by default anymore (html pages were already
6281 disabled by default), to make development builds quicker. When
6282 building systemd for a full installation with documentation, meson
4860f5c2
ZJS
6283 should be called with -Dman=true and/or -Dhtml=true as appropriate.
6284 The default was changed based on the assumption that quick one-off or
6285 repeated development builds are much more common than full optimized
6286 builds for installation, and people need to pass various other
6287 options to when doing "proper" builds anyway, so the gain from making
6288 development builds quicker is bigger than the one time disruption for
6289 packagers.
51b568f7
ZJS
6290
6291 Two scripts are created in the *build* directory to generate and
6292 preview man and html pages on demand, e.g.:
6293
6294 build/man/man systemctl
6295 build/man/html systemd.index
6296
e110599b 6297 * libidn2 is used by default if both libidn2 and libidn are installed.
4860f5c2 6298 Please use -Dlibidn=true if libidn is preferred.
e110599b 6299
2875a36b 6300 * The D-Bus "wire format" of the CPUAffinity= attribute is changed on
9120e2bf
ZJS
6301 big-endian machines. Before, bytes were written and read in native
6302 machine order as exposed by the native libc __cpu_mask interface.
6303 Now, little-endian order is always used (CPUs 0–7 are described by
6304 bits 0–7 in byte 0, CPUs 8–15 are described by byte 1, and so on).
6305 This change fixes D-Bus calls that cross endianness boundary.
6306
2875a36b
LP
6307 The presentation format used for CPUAffinity= by "systemctl show" and
6308 "systemd-analyze dump" is changed to present CPU indices instead of
6309 the raw __cpu_mask bitmask. For example, CPUAffinity=0-1 would be
6310 shown as CPUAffinity=03000000000000000000000000000… (on
6311 little-endian) or CPUAffinity=00000000000000300000000000000… (on
6312 64-bit big-endian), and is now shown as CPUAffinity=0-1, matching the
6313 input format. The maximum integer that will be printed in the new
6314 format is 8191 (four digits), while the old format always used a very
6315 long number (with the length varying by architecture), so they can be
6316 unambiguously distinguished.
9120e2bf 6317
51b568f7
ZJS
6318 * /usr/sbin/halt.local is no longer supported. Implementation in
6319 distributions was inconsistent and it seems this functionality was
6320 very rarely used.
6321
6322 To replace this functionality, users should:
6323 - either define a new unit and make it a dependency of final.target
6324 (systemctl add-wants final.target my-halt-local.service)
6325 - or move the shutdown script to /usr/lib/systemd/system-shutdown/
6326 and ensure that it accepts "halt", "poweroff", "reboot", and
6327 "kexec" as an argument, see the description in systemd-shutdown(8).
6328
6329 * When a [Match] section in .link or .network file is empty (contains
6330 no match patterns), a warning will be emitted. Please add any "match
9120e2bf 6331 all" pattern instead, e.g. OriginalName=* or Name=* in case all
51b568f7
ZJS
6332 interfaces should really be matched.
6333
b070c7c0 6334 * A new setting NUMAPolicy= may be used to set process memory
08b59539
CR
6335 allocation policy. This setting can be specified in
6336 /etc/systemd/system.conf and hence will set the default policy for
6337 PID1. The default policy can be overridden on a per-service
6338 basis. The related setting NUMAMask= is used to specify NUMA node
6339 mask that should be associated with the selected policy.
2875a36b
LP
6340
6341 * PID 1 will now listen to Out-Of-Memory (OOM) events the kernel
eebaa724 6342 generates when processes it manages are reaching their memory limits,
2875a36b
LP
6343 and will place their units in a special state, and optionally kill or
6344 stop the whole unit.
6345
6346 * The service manager will now expose bus properties for the IO
6347 resources used by units. This information is also shown in "systemctl
6348 status" now (for services that have IOAccounting=yes set). Moreover,
6349 the IO accounting data is included in the resource log message
6350 generated whenever a unit stops.
6351
201632e3 6352 * Units may now configure an explicit timeout to wait for when killed
2875a36b 6353 with SIGABRT, for example when a service watchdog is hit. Previously,
201632e3
ZJS
6354 the regular TimeoutStopSec= timeout was applied in this case too —
6355 now a separate timeout may be set using TimeoutAbortSec=.
2875a36b
LP
6356
6357 * Services may now send a special WATCHDOG=trigger message with
6358 sd_notify() to trigger an immediate "watchdog missed" event, and thus
4860f5c2 6359 trigger service termination. This is useful both for testing watchdog
2875a36b
LP
6360 handling, but also for defining error paths in services, that shall
6361 be handled the same way as watchdog events.
6362
6363 * There are two new per-unit settings IPIngressFilterPath= and
6364 IPEgressFilterPath= which allow configuration of a BPF program
6365 (usually by specifying a path to a program uploaded to /sys/fs/bpf/)
6366 to apply to the IP packet ingress/egress path of all processes of a
6367 unit. This is useful to allow running systemd services with BPF
6368 programs set up externally.
6369
6370 * systemctl gained a new "clean" verb for removing the state, cache,
6371 runtime or logs directories of a service while it is terminated. The
6372 new verb may also be used to remove the state maintained on disk for
6373 timer units that have Persistent= configured.
6374
6375 * During the last phase of shutdown systemd will now automatically
6376 increase the log level configured in the "kernel.printk" sysctl so
6377 that any relevant loggable events happening during late shutdown are
6378 made visible. Previously, loggable events happening so late during
6379 shutdown were generally lost if the "kernel.printk" sysctl was set to
6380 high thresholds, as regular logging daemons are terminated at that
6381 time and thus nothing is written to disk.
6382
6383 * If processes terminated during the last phase of shutdown do not exit
6384 quickly systemd will now show their names after a short time, to make
201632e3 6385 debugging easier. After a longer timeout they are forcibly killed,
2875a36b
LP
6386 as before.
6387
6388 * journalctl (and the other tools that display logs) will now highlight
6389 warnings in yellow (previously, both LOG_NOTICE and LOG_WARNING where
6390 shown in bright bold, now only LOG_NOTICE is). Moreover, audit logs
6391 are now shown in blue color, to separate them visually from regular
6392 logs. References to configuration files are now turned into clickable
6393 links on terminals that support that.
6394
6395 * systemd-journald will now stop logging to /var/log/journal during
6396 shutdown when /var/ is on a separate mount, so that it can be
6397 unmounted safely during shutdown.
6398
6399 * systemd-resolved gained support for a new 'strict' DNS-over-TLS mode.
6400
29db4c3a
LP
6401 * systemd-resolved "Cache=" configuration option in resolved.conf has
6402 been extended to also accept the 'no-negative' value. Previously,
6403 only a boolean option was allowed (yes/no), having yes as the
4860f5c2
ZJS
6404 default. If this option is set to 'no-negative', negative answers are
6405 not cached while the old cache heuristics are used positive answers.
6406 The default remains unchanged.
37d7a7d9 6407
2875a36b
LP
6408 * The predictable naming scheme for network devices now supports
6409 generating predictable names for "netdevsim" devices.
6410
4860f5c2
ZJS
6411 Moreover, the "en" prefix was dropped from the ID_NET_NAME_ONBOARD
6412 udev property.
6413
6414 Those two changes form a new net.naming-policy-scheme= entry.
6415 Distributions which want to preserve naming stability may want to set
6416 the -Ddefault-net-naming-scheme= configuration option.
6417
2875a36b
LP
6418 * systemd-networkd now supports MACsec, nlmon, IPVTAP and Xfrm
6419 interfaces natively.
6420
6421 * systemd-networkd's bridge FDB support now allows configuration of a
6422 destination address for each entry (Destination=), as well as the
6423 VXLAN VNI (VNI=), as well as an option to declare what an entry is
6424 associated with (AssociatedWith=).
6425
6426 * systemd-networkd's DHCPv4 support now understands a new MaxAttempts=
33db1b90 6427 option for configuring the maximum number of DHCP lease requests. It
6b000af4 6428 also learnt a new BlackList= option for deny-listing DHCP servers (a
08b59539
CR
6429 similar setting has also been added to the IPv6 RA client), as well
6430 as a SendRelease= option for configuring whether to send a DHCP
6431 RELEASE message when terminating.
2875a36b
LP
6432
6433 * systemd-networkd's DHCPv4 and DHCPv6 stacks can now be configured
29db4c3a
LP
6434 separately in the [DHCPv4] and [DHCPv6] sections.
6435
6436 * systemd-networkd's DHCP support will now optionally create an
6437 implicit host route to the DNS server specified in the DHCP lease, in
6438 addition to the routes listed explicitly in the lease. This should
6439 ensure that in multi-homed systems DNS traffic leaves the systems on
6440 the interface that acquired the DNS server information even if other
6441 routes such as default routes exist. This behaviour may be turned on
6442 with the new RoutesToDNS= option.
2875a36b
LP
6443
6444 * systemd-networkd's VXLAN support gained a new option
eebaa724 6445 GenericProtocolExtension= for enabling VXLAN Generic Protocol
2875a36b
LP
6446 Extension support, as well as IPDoNotFragment= for setting the IP
6447 "Don't fragment" bit on outgoing packets. A similar option has been
6448 added to the GENEVE support.
6449
6450 * In systemd-networkd's [Route] section you may now configure
6451 FastOpenNoCookie= for configuring per-route TCP fast-open support, as
6452 well as TTLPropagate= for configuring Label Switched Path (LSP) TTL
6453 propagation. The Type= setting now supports local, broadcast,
6454 anycast, multicast, any, xresolve routes, too.
6455
6456 * systemd-networkd's [Network] section learnt a new option
6457 DefaultRouteOnDevice= for automatically configuring a default route
6458 onto the network device.
6459
6460 * systemd-networkd's bridging support gained two new options ProxyARP=
6461 and ProxyARPWifi= for configuring proxy ARP behaviour as well as
9f0d45e4
YW
6462 MulticastRouter= for configuring multicast routing behaviour. A new
6463 option MulticastIGMPVersion= may be used to change bridge's multicast
6464 Internet Group Management Protocol (IGMP) version.
2875a36b
LP
6465
6466 * systemd-networkd's FooOverUDP support gained the ability to configure
6467 local and peer IP addresses via Local= and Peer=. A new option
6468 PeerPort= may be used to configure the peer's IP port.
6469
6470 * systemd-networkd's TUN support gained a new setting VnetHeader= for
6471 tweaking Generic Segment Offload support.
6472
70fcda85
ZJS
6473 * The address family for policy rules may be specified using the new
6474 Family= option in the [RoutingPolicyRule] section.
6475
2875a36b
LP
6476 * networkctl gained a new "delete" command for removing virtual network
6477 devices, as well as a new "--stats" switch for showing device
6478 statistics.
6479
13cb62af
YW
6480 * networkd.conf gained a new setting SpeedMeter= and
6481 SpeedMeterIntervalSec=, to measure bitrate of network interfaces. The
6482 measured speed may be shown by 'networkctl status'.
6483
4860f5c2
ZJS
6484 * "networkctl status" now displays MTU and queue lengths, and more
6485 detailed information about VXLAN and bridge devices.
6486
2875a36b
LP
6487 * systemd-networkd's .network and .link files gained a new Property=
6488 setting in the [Match] section, to match against devices with
6489 specific udev properties.
6490
6491 * systemd-networkd's tunnel support gained a new option
6492 AssignToLoopback= for selecting whether to use the loopback device
6493 "lo" as underlying device.
6494
70183735 6495 * systemd-networkd's MACAddress= setting in the [Neighbor] section has
2875a36b
LP
6496 been renamed to LinkLayerAddress=, and it now allows configuration of
6497 IP addresses, too.
6498
efb536d0
ZJS
6499 * systemd-networkd's handling of the kernel's disable_ipv6 sysctl is
6500 simplified: systemd-networkd will disable the sysctl (enable IPv6) if
6501 IPv6 configuration (static or DHCPv6) was found for a given
6502 interface. It will not touch the sysctl otherwise.
6503
6504 * The order of entries is $PATH used by the user manager instance was
6505 changed to put bin/ entries before the corresponding sbin/ entries.
6506 It is recommended to not rely on this order, and only ever have one
6507 binary with a given name in the system paths under /usr.
6508
29db4c3a
LP
6509 * A new tool systemd-network-generator has been added that may generate
6510 .network, .netdev and .link files from IP configuration specified on
4860f5c2 6511 the kernel command line in the format used by Dracut.
29db4c3a 6512
2875a36b
LP
6513 * The CriticalConnection= setting in .network files is now deprecated,
6514 and replaced by a new KeepConfiguration= setting which allows more
6515 detailed configuration of the IP configuration to keep in place.
6516
4860f5c2
ZJS
6517 * systemd-analyze gained a few new verbs:
6518
6519 - "systemd-analyze timestamp" parses and converts timestamps. This is
6520 similar to the existing "systemd-analyze calendar" command which
6521 does the same for recurring calendar events.
6522
6523 - "systemd-analyze timespan" parses and converts timespans (i.e.
6524 durations as opposed to points in time).
6525
6526 - "systemd-analyze condition" will parse and test ConditionXYZ=
6527 expressions.
6528
6529 - "systemd-analyze exit-status" will parse and convert exit status
6530 codes to their names and back.
6531
6532 - "systemd-analyze unit-files" will print a list of all unit
6533 file paths and unit aliases.
6534
6535 * SuccessExitStatus=, RestartPreventExitStatus=, and
6536 RestartForceExitStatus= now accept exit status names (e.g. "DATAERR"
6537 is equivalent to "65"). Those exit status name mappings may be
cc560ac0 6538 displayed with the systemd-analyze exit-status verb describe above.
2875a36b
LP
6539
6540 * systemd-logind now exposes a per-session SetBrightness() bus call,
6541 which may be used to securely change the brightness of a kernel
6542 brightness device, if it belongs to the session's seat. By using this
6543 call unprivileged clients can make changes to "backlight" and "leds"
4860f5c2
ZJS
6544 devices securely with strict requirements on session membership.
6545 Desktop environments may use this to generically make brightness
6546 changes to such devices without shipping private SUID binaries or
6547 udev rules for that purpose.
2875a36b
LP
6548
6549 * "udevadm info" gained a --wait-for-initialization switch to wait for
6550 a device to be initialized.
6551
6552 * systemd-hibernate-resume-generator will now look for resumeflags= on
6553 the kernel command line, which is similar to rootflags= and may be
4860f5c2 6554 used to configure device timeout for the hibernation device.
2875a36b
LP
6555
6556 * sd-event learnt a new API call sd_event_source_disable_unref() for
6557 disabling and unref'ing an event source in a single function. A
6558 related call sd_event_source_disable_unrefp() has been added for use
4860f5c2 6559 with gcc's cleanup extension.
2875a36b
LP
6560
6561 * The sd-id128.h public API gained a new definition
da890466 6562 SD_ID128_UUID_FORMAT_STR for formatting a 128-bit ID in UUID format
2875a36b
LP
6563 with printf().
6564
6565 * "busctl introspect" gained a new switch --xml-interface for dumping
6566 XML introspection data unmodified.
6567
6568 * PID 1 may now show the unit name instead of the unit description
6569 string in its status output during boot. This may be configured in
6570 the StatusUnitFormat= setting in /etc/systemd/system.conf or the
6571 kernel command line option systemd.status_unit_format=.
6572
907ddcd3 6573 * PID 1 now understands a new option KExecWatchdogSec= in
4860f5c2
ZJS
6574 /etc/systemd/system.conf to set a watchdog timeout for kexec reboots.
6575 Previously watchdog functionality was only available for regular
6576 reboots. The new setting defaults to off, because we don't know in
6577 the general case if the watchdog will be reset after kexec (some
6578 drivers do reset it, but not all), and the new userspace might not be
6579 configured to handle the watchdog.
6580
6581 Moreover, the old ShutdownWatchdogSec= setting has been renamed to
6582 RebootWatchdogSec= to more clearly communicate what it is about. The
6583 old name is still accepted for compatibility.
907ddcd3 6584
2875a36b 6585 * The systemd.debug_shell kernel command line option now optionally
4860f5c2
ZJS
6586 takes a tty name to spawn the debug shell on, which allows a
6587 different tty to be selected than the built-in default.
2875a36b 6588
a4d5848a
AZ
6589 * Service units gained a new ExecCondition= setting which will run
6590 before ExecStartPre= and either continue execution of the unit (for
6591 clean exit codes), stop execution without marking the unit failed
6592 (for exit codes 1 through 254), or stop execution and fail the unit
4860f5c2 6593 (for exit code 255 or abnormal termination).
a4d5848a 6594
29db4c3a 6595 * A new service systemd-pstore.service has been added that pulls data
08b59539 6596 from /sys/fs/pstore/ and saves it to /var/lib/pstore for later
29db4c3a
LP
6597 review.
6598
6599 * timedatectl gained new verbs for configuring per-interface NTP
6600 service configuration for systemd-timesyncd.
6601
6602 * "localectl list-locales" won't list non-UTF-8 locales anymore. It's
a18a3aac 6603 2019. (You can set non-UTF-8 locales though, if you know their name.)
29db4c3a 6604
b64c47c0
LP
6605 * If variable assignments in sysctl.d/ files are prefixed with "-" any
6606 failures to apply them are now ignored.
6607
a18a3aac
LP
6608 * systemd-random-seed.service now optionally credits entropy when
6609 applying the seed to the system. Set $SYSTEMD_RANDOM_SEED_CREDIT to
6610 true for the service to enable this behaviour, but please consult the
6611 documentation first, since this comes with a couple of caveats.
6612
4860f5c2
ZJS
6613 * systemd-random-seed.service is now a synchronization point for full
6614 initialization of the kernel's entropy pool. Services that require
6615 /dev/urandom to be correctly initialized should be ordered after this
6616 service.
a18a3aac
LP
6617
6618 * The systemd-boot boot loader has been updated to optionally maintain
6619 a random seed file in the EFI System Partition (ESP). During the boot
6620 phase, this random seed is read and updated with a new seed
4860f5c2 6621 cryptographically derived from it. Another derived seed is passed to
a18a3aac
LP
6622 the OS. The latter seed is then credited to the kernel's entropy pool
6623 very early during userspace initialization (from PID 1). This allows
6624 systems to boot up with a fully initialized kernel entropy pool from
6625 earliest boot on, and thus entirely removes all entropy pool
6626 initialization delays from systems using systemd-boot. Special care
6627 is taken to ensure different seeds are derived on system images
4860f5c2
ZJS
6628 replicated to multiple systems. "bootctl status" will show whether
6629 a seed was received from the boot loader.
6630
6631 * bootctl gained two new verbs:
6632
6633 - "bootctl random-seed" will generate the file in ESP and an EFI
6634 variable to allow a random seed to be passed to the OS as described
6635 above.
6636
6637 - "bootctl is-installed" checks whether systemd-boot is currently
6638 installed.
a18a3aac 6639
4860f5c2
ZJS
6640 * bootctl will warn if it detects that boot entries are misconfigured
6641 (for example if the kernel image was removed without purging the
6642 bootloader entry).
a18a3aac
LP
6643
6644 * A new document has been added describing systemd's use and support
6645 for the kernel's entropy pool subsystem:
6646
6647 https://systemd.io/RANDOM_SEEDS
6648
48fd50f7
LP
6649 * When the system is hibernated the swap device to write the
6650 hibernation image to is now automatically picked from all available
6651 swap devices, preferring the swap device with the highest configured
6652 priority over all others, and picking the device with the most free
6653 space if there are multiple devices with the highest priority.
6654
6655 * /etc/crypttab support has learnt a new keyfile-timeout= per-device
86b52a39 6656 option that permits selecting the timeout how long to wait for a
48fd50f7
LP
6657 device with an encryption key before asking for the password.
6658
2dbc45ae
KK
6659 * IOWeight= has learnt to properly set the IO weight when using the
6660 BFQ scheduler officially found in kernels 5.0+.
6661
6d8cf864
ZJS
6662 * A new mailing list has been created for reporting of security issues:
6663 systemd-security@redhat.com. For mode details, see
6664 https://systemd.io/CONTRIBUTING#security-vulnerability-reports.
6665
f21e2ecb
ZJS
6666 Contributions from: Aaron Barany, Adrian Bunk, Alan Jenkins, Albrecht
6667 Lohofener, Andrej Valek, Anita Zhang, Arian van Putten, Balint Reczey,
6668 Bastien Nocera, Ben Boeckel, Benjamin Robin, camoz, Chen Qi, Chris
03985d06
ZJS
6669 Chiu, Chris Down, Christian Göttsche, Christian Kellner, Clinton Roy,
6670 Connor Reeder, Daniel Black, Daniel Lublin, Daniele Medri, Dan
6671 Streetman, Dave Reisner, Dave Ross, David Art, David Tardon, Debarshi
6672 Ray, Dimitri John Ledkov, Dominick Grift, Donald Buczek, Douglas
6673 Christman, Eric DeVolder, EtherGraf, Evgeny Vereshchagin, Feldwor,
6674 Felix Riemann, Florian Dollinger, Francesco Pennica, Franck Bui,
6675 Frantisek Sumsal, Franz Pletz, frederik, Hans de Goede, Iago López
6676 Galeiras, Insun Pyo, Ivan Shapovalov, Iwan Timmer, Jack, Jakob
6677 Unterwurzacher, Jan Chren, Jan Klötzke, Jan Losinski, Jan Pokorný, Jan
6678 Synacek, Jan-Michael Brummer, Jeka Pats, Jeremy Soller, Jérémy Rosen,
6679 Jiri Pirko, Joe Lin, Joerg Behrmann, Joe Richey, Jóhann B. Guðmundsson,
6680 Johannes Christ, Johannes Schmitz, Jonathan Rouleau, Jorge Niedbalski,
6681 Jörg Thalheim, Kai Krakow, Kai Lüke, Karel Zak, Kashyap Chamarthy,
f21e2ecb
ZJS
6682 Krayushkin Konstantin, Lennart Poettering, Lubomir Rintel, Luca
6683 Boccassi, Luís Ferreira, Marc-André Lureau, Markus Felten, Martin Pitt,
6684 Matthew Leeds, Mattias Jernberg, Michael Biebl, Michael Olbrich,
6685 Michael Prokop, Michael Stapelberg, Michael Zhivich, Michal Koutný,
6686 Michal Sekletar, Mike Gilbert, Milan Broz, Miroslav Lichvar, mpe85,
6687 Mr-Foo, Network Silence, Oliver Harley, pan93412, Paul Menzel, pEJipE,
03985d06
ZJS
6688 Peter A. Bigot, Philip Withnall, Piotr Drąg, Rafael Fontenelle, Robert
6689 Scheck, Roberto Santalla, Ronan Pigott, root, RussianNeuroMancer,
6690 Sebastian Jennen, shinygold, Shreyas Behera, Simon Schricker, Susant
6691 Sahani, Thadeu Lima de Souza Cascardo, Theo Ouzhinski, Thiebaud
6692 Weksteen, Thomas Haller, Thomas Weißschuh, Tomas Mraz, Tommi Rantala,
6693 Topi Miettinen, VD-Lycos, ven, Vladimir Yerilov, Wieland Hoffmann,
6694 William A. Kennington III, William Wold, Xi Ruoyao, Yuri Chornoivan,
6695 Yu Watanabe, Zach Smith, Zbigniew Jędrzejewski-Szmek, Zhang Xianwei
29db4c3a 6696
efb536d0 6697 – Camerino, 2019-09-03
6af90583 6698
d822bd4e 6699CHANGES WITH 242:
9b89e602
ZJS
6700
6701 * In .link files, MACAddressPolicy=persistent (the default) is changed
6702 to cover more devices. For devices like bridges, tun, tap, bond, and
6703 similar interfaces that do not have other identifying information,
6704 the interface name is used as the basis for persistent seed for MAC
6705 and IPv4LL addresses. The way that devices that were handled
fd9baae8
ZJS
6706 previously is not changed, and this change is about covering more
6707 devices then previously by the "persistent" policy.
9b89e602
ZJS
6708
6709 MACAddressPolicy=random may be used to force randomized MACs and
6710 IPv4LL addresses for a device if desired.
6711
6712 Hint: the log output from udev (at debug level) was enhanced to
6713 clarify what policy is followed and which attributes are used.
6714 `SYSTEMD_LOG_LEVEL=debug udevadm test-builtin net_setup_link /sys/class/net/<name>`
6715 may be used to view this.
6716
c111cd98
YW
6717 Hint: if a bridge interface is created without any slaves, and gains
6718 a slave later, then now the bridge does not inherit slave's MAC.
6719 To inherit slave's MAC, for example, create the following file:
6720 ```
6721 # /etc/systemd/network/98-bridge-inherit-mac.link
6722 [Match]
6723 Type=bridge
6724
6725 [Link]
6726 MACAddressPolicy=none
6727 ```
6728
9b89e602
ZJS
6729 * The .device units generated by systemd-fstab-generator and other
6730 generators do not automatically pull in the corresponding .mount unit
6731 as a Wants= dependency. This means that simply plugging in the device
6732 will not cause the mount unit to be started automatically. But please
5787c509
LP
6733 note that the mount unit may be started for other reasons, in
6734 particular if it is part of local-fs.target, and any unit which
6735 (transitively) depends on local-fs.target is started.
9b89e602 6736
5787c509
LP
6737 * networkctl list/status/lldp now accept globbing wildcards for network
6738 interface names to match against all existing interfaces.
6739
6740 * The $PIDFILE environment variable is set to point the absolute path
6741 configured with PIDFile= for processes of that service.
9b89e602
ZJS
6742
6743 * The fallback DNS server list was augmented with Cloudflare public DNS
6744 servers. Use `-Ddns-servers=` to set a different fallback.
6745
6746 * A new special target usb-gadget.target will be started automatically
6747 when a USB Device Controller is detected (which means that the system
6748 is a USB peripheral).
6749
5787c509
LP
6750 * A new unit setting CPUQuotaPeriodSec= assigns the time period
6751 relatively to which the CPU time quota specified by CPUQuota= is
6752 measured.
9b89e602 6753
5787c509 6754 * A new unit setting ProtectHostname= may be used to prevent services
9b89e602
ZJS
6755 from modifying hostname information (even if they otherwise would
6756 have privileges to do so).
6757
5787c509 6758 * A new unit setting NetworkNamespacePath= may be used to specify a
9b89e602
ZJS
6759 namespace for service or socket units through a path referring to a
6760 Linux network namespace pseudo-file.
6761
5787c509
LP
6762 * The PrivateNetwork= setting and JoinsNamespaceOf= dependencies now
6763 have an effect on .socket units: when used the listening socket is
6764 created within the configured network namespace instead of the host
6765 namespace.
6766
6767 * ExecStart= command lines in unit files may now be prefixed with ':'
6768 in which case environment variable substitution is
6769 disabled. (Supported for the other ExecXYZ= settings, too.)
6770
2eb466fc
LP
6771 * .timer units gained two new boolean settings OnClockChange= and
6772 OnTimezoneChange= which may be used to also trigger a unit when the
6773 system clock is changed or the local timezone is
6774 modified. systemd-run has been updated to make these options easily
6775 accessible from the command line for transient timers.
6776
6777 * Two new conditions for units have been added: ConditionMemory= may be
6778 used to conditionalize a unit based on installed system
6779 RAM. ConditionCPUs= may be used to conditionalize a unit based on
39e445c9 6780 installed CPU cores.
2eb466fc
LP
6781
6782 * The @default system call filter group understood by SystemCallFilter=
6783 has been updated to include the new rseq() system call introduced in
6784 kernel 4.15.
6785
ab80eca1
ZJS
6786 * A new time-set.target has been added that indicates that the system
6787 time has been set from a local source (possibly imprecise). The
6788 existing time-sync.target is stronger and indicates that the time has
6789 been synchronized with a precise external source. Services where
6790 approximate time is sufficient should use the new target.
6791
2eb466fc
LP
6792 * "systemctl start" (and related commands) learnt a new
6793 --show-transaction option. If specified brief information about all
6794 jobs queued because of the requested operation is shown.
6795
5787c509
LP
6796 * systemd-networkd recognizes a new operation state 'enslaved', used
6797 (instead of 'degraded' or 'carrier') for interfaces which form a
6798 bridge, bond, or similar, and an new 'degraded-carrier' operational
6799 state used for the bond or bridge master interface when one of the
6800 enslaved devices is not operational.
9b89e602 6801
5787c509
LP
6802 * .network files learnt the new IgnoreCarrierLoss= option for leaving
6803 networks configured even if the carrier is lost.
6804
6805 * The RequiredForOnline= setting in .network files may now specify a
9b89e602 6806 minimum operational state required for the interface to be considered
5787c509
LP
6807 "online" by systemd-networkd-wait-online. Related to this
6808 systemd-networkd-wait-online gained a new option --operational-state=
6809 to configure the same, and its --interface= option was updated to
6810 optionally also take an operational state specific for an interface.
9b89e602 6811
2eb466fc
LP
6812 * systemd-networkd-wait-online gained a new setting --any for waiting
6813 for only one of the requested interfaces instead of all of them.
6814
9b89e602
ZJS
6815 * systemd-networkd now implements L2TP tunnels.
6816
5787c509
LP
6817 * Two new .network settings UseAutonomousPrefix= and UseOnLinkPrefix=
6818 may be used to cause autonomous and onlink prefixes received in IPv6
9b89e602
ZJS
6819 Router Advertisements to be ignored.
6820
5787c509
LP
6821 * New MulticastFlood=, NeighborSuppression=, and Learning= .network
6822 file settings may be used to tweak bridge behaviour.
6823
6824 * The new TripleSampling= option in .network files may be used to
6825 configure CAN triple sampling.
9b89e602 6826
78bb2866
YW
6827 * A new .netdev settings PrivateKeyFile= and PresharedKeyFile= may be
6828 used to point to private or preshared key for a WireGuard interface.
9b89e602 6829
5787c509
LP
6830 * /etc/crypttab now supports the same-cpu-crypt and
6831 submit-from-crypt-cpus options to tweak encryption work scheduling
6832 details.
9b89e602
ZJS
6833
6834 * systemd-tmpfiles will now take a BSD file lock before operating on a
6835 contents of directory. This may be used to temporarily exclude
6836 directories from aging by taking the same lock (useful for example
6837 when extracting a tarball into /tmp or /var/tmp as a privileged user,
6838 which might create files with really old timestamps, which
5787c509
LP
6839 nevertheless should not be deleted). For further details, see:
6840
6841 https://systemd.io/TEMPORARY_DIRECTORIES
9b89e602 6842
70d8401d
LP
6843 * systemd-tmpfiles' h line type gained support for the
6844 FS_PROJINHERIT_FL ('P') file attribute (introduced in kernel 4.5),
6845 controlling project quota inheritance.
6846
9b89e602
ZJS
6847 * sd-boot and bootctl now implement support for an Extended Boot Loader
6848 (XBOOTLDR) partition, that is intended to be mounted to /boot, in
6849 addition to the ESP partition mounted to /efi or /boot/efi.
6850 Configuration file fragments, kernels, initrds and other EFI images
6851 to boot will be loaded from both the ESP and XBOOTLDR partitions.
6852 The XBOOTLDR partition was previously described by the Boot Loader
5787c509
LP
6853 Specification, but implementation was missing in sd-boot. Support for
6854 this concept allows using the sd-boot boot loader in more
6855 conservative scenarios where the boot loader itself is placed in the
6856 ESP but the kernels to boot (and their metadata) in a separate
6857 partition.
9b89e602 6858
5787c509
LP
6859 * A system may now be booted with systemd.volatile=overlay on the
6860 kernel command line, which causes the root file system to be set up
6861 an overlayfs mount combining the root-only root directory with a
6862 writable tmpfs. In this setup, the underlying root device is not
6863 modified, and any changes are lost at reboot.
9b89e602 6864
5787c509
LP
6865 * Similar, systemd-nspawn can now boot containers with a volatile
6866 overlayfs root with the new --volatile=overlay switch.
9b89e602
ZJS
6867
6868 * systemd-nspawn can now consume OCI runtime bundles using a new
6869 --oci-bundle= option. This implementation is fully usable, with most
6870 features in the specification implemented, but since this a lot of
6871 new code and functionality, this feature should most likely not
6872 be used in production yet.
6873
5787c509
LP
6874 * systemd-nspawn now supports various options described by the OCI
6875 runtime specification on the command-line and in .nspawn files:
9b89e602 6876 --inaccessible=/Inaccessible= may be used to mask parts of the file
5787c509 6877 system tree, --console=/--pipe may be used to configure how standard
9b89e602
ZJS
6878 input, output, and error are set up.
6879
6880 * busctl learned the `emit` verb to generate D-Bus signals.
6881
6882 * systemd-analyze cat-config may be used to gather and display
6883 configuration spread over multiple files, for example system and user
6884 presets, tmpfiles.d, sysusers.d, udev rules, etc.
6885
5787c509
LP
6886 * systemd-analyze calendar now takes an optional new parameter
6887 --iterations= which may be used to show a maximum number of iterations
6888 the specified expression will elapse next.
6889
6890 * The sd-bus C API gained support for naming method parameters in the
6891 introspection data.
6892
6893 * systemd-logind gained D-Bus APIs to specify the "reboot parameter"
6894 the reboot() system call expects.
6895
6896 * journalctl learnt a new --cursor-file= option that points to a file
9b89e602
ZJS
6897 from which a cursor should be loaded in the beginning and to which
6898 the updated cursor should be stored at the end.
6899
6900 * ACRN hypervisor and Windows Subsystem for Linux (WSL) are now
6901 detected by systemd-detect-virt (and may also be used in
6902 ConditionVirtualization=).
6903
6904 * The behaviour of systemd-logind may now be modified with environment
6905 variables $SYSTEMD_REBOOT_TO_FIRMWARE_SETUP,
6906 $SYSTEMD_REBOOT_TO_BOOT_LOADER_MENU, and
6907 $SYSTEMD_REBOOT_TO_BOOT_LOADER_ENTRY. They cause logind to either
6908 skip the relevant operation completely (when set to false), or to
6909 create a flag file in /run/systemd (when set to true), instead of
6910 actually commencing the real operation when requested. The presence
6911 of /run/systemd/reboot-to-firmware-setup,
6912 /run/systemd/reboot-to-boot-loader-menu, and
6913 /run/systemd/reboot-to-boot-loader-entry, may be used by alternative
6914 boot loader implementations to replace some steps logind performs
6915 during reboot with their own operations.
6916
6917 * systemctl can be used to request a reboot into the boot loader menu
5787c509
LP
6918 or a specific boot loader entry with the new --boot-load-menu= and
6919 --boot-loader-entry= options to a reboot command. (This requires a
6920 boot loader that supports this, for example sd-boot.)
9b89e602
ZJS
6921
6922 * kernel-install will no longer unconditionally create the output
6923 directory (e.g. /efi/<machine-id>/<kernel-version>) for boot loader
6924 snippets, but will do only if the machine-specific parent directory
6925 (i.e. /efi/<machine-id>/) already exists. bootctl has been modified
6926 to create this parent directory during sd-boot installation.
6927
6928 This makes it easier to use kernel-install with plugins which support
6929 a different layout of the bootloader partitions (for example grub2).
6930
a3134241 6931 * During package installation (with `ninja install`), we would create
1fa3ba90
PM
6932 symlinks for getty@tty1.service, systemd-networkd.service,
6933 systemd-networkd.socket, systemd-resolved.service,
6934 remote-cryptsetup.target, remote-fs.target,
a3134241
ZJS
6935 systemd-networkd-wait-online.service, and systemd-timesyncd.service
6936 in /etc, as if `systemctl enable` was called for those units, to make
6937 the system usable immediately after installation. Now this is not
6938 done anymore, and instead calling `systemctl preset-all` is
6939 recommended after the first installation of systemd.
6940
bf65b7e0
LP
6941 * A new boolean sandboxing option RestrictSUIDSGID= has been added that
6942 is built on seccomp. When turned on creation of SUID/SGID files is
6943 prohibited.
6944
6945 * The NoNewPrivileges= and the new RestrictSUIDSGID= options are now
6946 implied if DynamicUser= is turned on for a service. This hardens
6947 these services, so that they neither can benefit from nor create
6948 SUID/SGID executables. This is a minor compatibility breakage, given
6949 that when DynamicUser= was first introduced SUID/SGID behaviour was
6950 unaffected. However, the security benefit of these two options is
6951 substantial, and the setting is still relatively new, hence we opted
6952 to make it mandatory for services with dynamic users.
6953
5b2fc74f
LP
6954 Contributions from: Adam Jackson, Alexander Tsoy, Andrey Yashkin,
6955 Andrzej Pietrasiewicz, Anita Zhang, Balint Reczey, Beniamino Galvani,
6956 Ben Iofel, Benjamin Berg, Benjamin Dahlhoff, Chris, Chris Morin,
6957 Christopher Wong, Claudius Ellsel, Clemens Gruber, dana, Daniel Black,
6958 Davide Cavalca, David Michael, David Rheinsberg, emersion, Evgeny
6959 Vereshchagin, Filipe Brandenburger, Franck Bui, Frantisek Sumsal,
6960 Giacinto Cifelli, Hans de Goede, Hugo Kindel, Ignat Korchagin, Insun
c3287a42
LP
6961 Pyo, Jan Engelhardt, Jonas Dorel, Jonathan Lebon, Jonathon Kowalski,
6962 Jörg Sommer, Jörg Thalheim, Jussi Pakkanen, Kai-Heng Feng, Lennart
6963 Poettering, Lubomir Rintel, Luís Ferreira, Martin Pitt, Matthias
6964 Klumpp, Michael Biebl, Michael Niewöhner, Michael Olbrich, Michal
ab80eca1
ZJS
6965 Sekletar, Mike Lothian, Paul Menzel, Piotr Drąg, Riccardo Schirone,
6966 Robin Elvedi, Roman Kulikov, Ronald Tschalär, Ross Burton, Ryan
1e5d2d65
ZJS
6967 Gonzalez, Sebastian Krzyszkowiak, Stephane Chazelas, StKob, Susant
6968 Sahani, Sylvain Plantefève, Szabolcs Fruhwald, Taro Yamada, Theo
6969 Ouzhinski, Thomas Haller, Tobias Jungel, Tom Yan, Tony Asleson, Topi
6970 Miettinen, unixsysadmin, Van Laser, Vesa Jääskeläinen, Yu, Li-Yu,
6971 Yu Watanabe, Zbigniew Jędrzejewski-Szmek
c3287a42 6972
1e5d2d65 6973 — Warsaw, 2019-04-11
bf65b7e0 6974
d0f71749 6975CHANGES WITH 241:
b4ff3dbb
ZJS
6976
6977 * The default locale can now be configured at compile time. Otherwise,
6978 a suitable default will be selected automatically (one of C.UTF-8,
6979 en_US.UTF-8, and C).
6980
6981 * The version string shown by systemd and other tools now includes the
6982 git commit hash when built from git. An override may be specified
6983 during compilation, which is intended to be used by distributions to
6984 include the package release information.
6985
6986 * systemd-cat can now filter standard input and standard error streams
6987 for different syslog priorities using the new --stderr-priority=
6988 option.
6989
6990 * systemd-journald and systemd-journal-remote reject entries which
6991 contain too many fields (CVE-2018-16865) and set limits on the
6992 process' command line length (CVE-2018-16864).
6993
6994 * $DBUS_SESSION_BUS_ADDRESS environment variable is set by pam_systemd
6995 again.
6996
08e1fe42
ZJS
6997 * A new network device NamePolicy "keep" is implemented for link files,
6998 and used by default in 99-default.link (the fallback configuration
6999 provided by systemd). With this policy, if the network device name
7000 was already set by userspace, the device will not be renamed again.
7001 This matches the naming scheme that was implemented before
7002 systemd-240. If naming-scheme < 240 is specified, the "keep" policy
7003 is also enabled by default, even if not specified. Effectively, this
7004 means that if naming-scheme >= 240 is specified, network devices will
7005 be renamed according to the configuration, even if they have been
7006 renamed already, if "keep" is not specified as the naming policy in
7007 the .link file. The 99-default.link file provided by systemd includes
7008 "keep" for backwards compatibility, but it is recommended for user
7009 installed .link files to *not* include it.
7010
7011 The "kernel" policy, which keeps kernel names declared to be
7012 "persistent", now works again as documented.
7013
ba7a6b8c
LP
7014 * kernel-install script now optionally takes the paths to one or more
7015 initrd files, and passes them to all plugins.
bd36ef0a 7016
57c03b1e
LP
7017 * The mincore() system call has been dropped from the @system-service
7018 system call filter group, as it is pretty exotic and may potentially
7019 used for side-channel attacks.
7020
774d6375
ZJS
7021 * -fPIE is dropped from compiler and linker options. Please specify
7022 -Db_pie=true option to meson to build position-independent
bd36ef0a
YW
7023 executables. Note that the meson option is supported since meson-0.49.
7024
27325875
LW
7025 * The fs.protected_regular and fs.protected_fifos sysctls, which were
7026 added in Linux 4.19 to make some data spoofing attacks harder, are
7027 now enabled by default. While this will hopefully improve the
7028 security of most installations, it is technically a backwards
7029 incompatible change; to disable these sysctls again, place the
7030 following lines in /etc/sysctl.d/60-protected.conf or a similar file:
7031
7032 fs.protected_regular = 0
7033 fs.protected_fifos = 0
7034
7035 Note that the similar hardlink and symlink protection has been
7036 enabled since v199, and may be disabled likewise.
7037
a77f438b
LT
7038 * The files read from the EnvironmentFile= setting in unit files now
7039 parse backslashes inside quotes literally, matching the behaviour of
7040 POSIX shells.
7041
ba7a6b8c
LP
7042 * udevadm trigger, udevadm control, udevadm settle and udevadm monitor
7043 now automatically become NOPs when run in a chroot() environment.
7044
7045 * The tmpfiles.d/ "C" line type will now copy directory trees not only
7046 when the destination is so far missing, but also if it already exists
7047 as a directory and is empty. This is useful to cater for systems
7048 where directory trees are put together from multiple separate mount
7049 points but otherwise empty.
7050
7051 * A new function sd_bus_close_unref() (and the associated
7052 sd_bus_close_unrefp()) has been added to libsystemd, that combines
7053 sd_bus_close() and sd_bus_unref() in one.
7054
7055 * udevadm control learnt a new option for --ping for testing whether a
7056 systemd-udevd instance is running and reacting.
7057
ecebd1ec
YW
7058 * udevadm trigger learnt a new option for --wait-daemon for waiting
7059 systemd-udevd daemon to be initialized.
7060
d0f71749
LP
7061 Contributions from: Aaron Plattner, Alberts Muktupāvels, Alex Mayer,
7062 Ayman Bagabas, Beniamino Galvani, Burt P, Chris Down, Chris Lamb, Chris
7063 Morin, Christian Hesse, Claudius Ellsel, dana, Daniel Axtens, Daniele
7064 Medri, Dave Reisner, David Santamaría Rogado, Diego Canuhe, Dimitri
7065 John Ledkov, Evgeny Vereshchagin, Fabrice Fontaine, Filipe
7066 Brandenburger, Franck Bui, Frantisek Sumsal, govwin, Hans de Goede,
7067 James Hilliard, Jan Engelhardt, Jani Uusitalo, Jan Janssen, Jan
7068 Synacek, Jonathan McDowell, Jonathan Roemer, Jonathon Kowalski, Joost
7069 Heitbrink, Jörg Thalheim, Lance, Lennart Poettering, Louis Taylor,
7070 Lucas Werkmeister, Mantas Mikulėnas, Marc-Antoine Perennou,
7071 marvelousblack, Michael Biebl, Michael Sloan, Michal Sekletar, Mike
7072 Auty, Mike Gilbert, Mikhail Kasimov, Neil Brown, Niklas Hambüchen,
7073 Patrick Williams, Paul Seyfert, Peter Hutterer, Philip Withnall, Roger
7074 James, Ronnie P. Thomas, Ryan Gonzalez, Sam Morris, Stephan Edel,
7075 Stephan Gerhold, Susant Sahani, Taro Yamada, Thomas Haller, Topi
7076 Miettinen, YiFei Zhu, YmrDtnJu, YunQiang Su, Yu Watanabe, Zbigniew
7077 Jędrzejewski-Szmek, zsergeant77, Дамјан Георгиевски
7078
36d28ebc 7079 — Berlin, 2019-02-14
ba7a6b8c 7080
32673162 7081CHANGES WITH 240:
fcb97512 7082
e68a35a7
ZJS
7083 * NoNewPrivileges=yes has been set for all long-running services
7084 implemented by systemd. Previously, this was problematic due to
7085 SELinux (as this would also prohibit the transition from PID1's label
7086 to the service's label). This restriction has since been lifted, but
7087 an SELinux policy update is required.
7088 (See e.g. https://github.com/fedora-selinux/selinux-policy/pull/234.)
7089
aa2437e2
YW
7090 * DynamicUser=yes is dropped from systemd-networkd.service,
7091 systemd-resolved.service and systemd-timesyncd.service, which was
7092 enabled in v239 for systemd-networkd.service and systemd-resolved.service,
7093 and since v236 for systemd-timesyncd.service. The users and groups
7094 systemd-network, systemd-resolve and systemd-timesync are created
7095 by systemd-sysusers again. Distributors or system administrators
7096 may need to create these users and groups if they not exist (or need
7097 to re-enable DynamicUser= for those units) while upgrading systemd.
787a133f
YW
7098 Also, the clock file for systemd-timesyncd may need to move from
7099 /var/lib/private/systemd/timesync/clock to /var/lib/systemd/timesync/clock.
aa2437e2 7100
b1a082cd
ZJS
7101 * When unit files are loaded from disk, previously systemd would
7102 sometimes (depending on the unit loading order) load units from the
7103 target path of symlinks in .wants/ or .requires/ directories of other
7104 units. This meant that unit could be loaded from different paths
7105 depending on whether the unit was requested explicitly or as a
7106 dependency of another unit, not honouring the priority of directories
7107 in search path. It also meant that it was possible to successfully
7108 load and start units which are not found in the unit search path, as
7109 long as they were requested as a dependency and linked to from
7110 .wants/ or .requires/. The target paths of those symlinks are not
7111 used for loading units anymore and the unit file must be found in
7112 the search path.
7113
fcb97512 7114 * A new service type has been added: Type=exec. It's very similar to
421e3b45 7115 Type=simple but ensures the service manager will wait for both fork()
fcb97512
LP
7116 and execve() of the main service binary to complete before proceeding
7117 with follow-up units. This is primarily useful so that the manager
7118 propagates any errors in the preparation phase of service execution
7119 back to the job that requested the unit to be started. For example,
7120 consider a service that has ExecStart= set to a file system binary
421e3b45
ZJS
7121 that doesn't exist. With Type=simple starting the unit would be
7122 considered instantly successful, as only fork() has to complete
7123 successfully and the manager does not wait for execve(), and hence
7124 its failure is seen "too late". With the new Type=exec service type
7125 starting the unit will fail, as the manager will wait for the
7126 execve() and notice its failure, which is then propagated back to the
7127 start job.
fcb97512
LP
7128
7129 NOTE: with the next release 241 of systemd we intend to change the
7130 systemd-run tool to default to Type=exec for transient services
7131 started by it. This should be mostly safe, but in specific corner
7132 cases might result in problems, as the systemd-run tool will then
6b1ab752 7133 block on NSS calls (such as user name look-ups due to User=) done
fcb97512
LP
7134 between the fork() and execve(), which under specific circumstances
7135 might cause problems. It is recommended to specify "-p Type=simple"
7136 explicitly in the few cases where this applies. For regular,
7137 non-transient services (i.e. those defined with unit files on disk)
7138 we will continue to default to Type=simple.
7139
0972c1ae
LP
7140 * The Linux kernel's current default RLIMIT_NOFILE resource limit for
7141 userspace processes is set to 1024 (soft) and 4096
7142 (hard). Previously, systemd passed this on unmodified to all
7143 processes it forked off. With this systemd release the hard limit
0abf9492 7144 systemd passes on is increased to 512K, overriding the kernel's
0972c1ae
LP
7145 defaults and substantially increasing the number of simultaneous file
7146 descriptors unprivileged userspace processes can allocate. Note that
7147 the soft limit remains at 1024 for compatibility reasons: the
7148 traditional UNIX select() call cannot deal with file descriptors >=
7149 1024 and increasing the soft limit globally might thus result in
7150 programs unexpectedly allocating a high file descriptor and thus
7151 failing abnormally when attempting to use it with select() (of
7152 course, programs shouldn't use select() anymore, and prefer
7153 poll()/epoll, but the call unfortunately remains undeservedly popular
7154 at this time). This change reflects the fact that file descriptor
7155 handling in the Linux kernel has been optimized in more recent
7156 kernels and allocating large numbers of them should be much cheaper
7157 both in memory and in performance than it used to be. Programs that
7158 want to take benefit of the increased limit have to "opt-in" into
421e3b45
ZJS
7159 high file descriptors explicitly by raising their soft limit. Of
7160 course, when they do that they must acknowledge that they cannot use
7161 select() anymore (and neither can any shared library they use — or
7162 any shared library used by any shared library they use and so on).
7163 Which default hard limit is most appropriate is of course hard to
7164 decide. However, given reports that ~300K file descriptors are used
7165 in real-life applications we believe 512K is sufficiently high as new
7166 default for now. Note that there are also reports that using very
7167 high hard limits (e.g. 1G) is problematic: some software allocates
7168 large arrays with one element for each potential file descriptor
7169 (Java, …) — a high hard limit thus triggers excessively large memory
7170 allocations in these applications. Hopefully, the new default of 512K
7171 is a good middle ground: higher than what real-life applications
7172 currently need, and low enough for avoid triggering excessively large
7173 allocations in problematic software. (And yes, somebody should fix
7174 Java.)
0972c1ae 7175
a8b627aa
LP
7176 * The fs.nr_open and fs.file-max sysctls are now automatically bumped
7177 to the highest possible values, as separate accounting of file
7178 descriptors is no longer necessary, as memcg tracks them correctly as
7179 part of the memory accounting anyway. Thus, from the four limits on
7180 file descriptors currently enforced (fs.file-max, fs.nr_open,
7181 RLIMIT_NOFILE hard, RLIMIT_NOFILE soft) we turn off the first two,
7182 and keep only the latter two. A set of build-time options
a579d42a 7183 (-Dbump-proc-sys-fs-file-max=false and -Dbump-proc-sys-fs-nr-open=false)
a8b627aa
LP
7184 has been added to revert this change in behaviour, which might be
7185 an option for systems that turn off memcg in the kernel.
7186
4f7dc24f
LP
7187 * When no /etc/locale.conf file exists (and hence no locale settings
7188 are in place), systemd will now use the "C.UTF-8" locale by default,
7189 and set LANG= to it. This locale is supported by various
7190 distributions including Fedora, with clear indications that upstream
7191 glibc is going to make it available too. This locale enables UTF-8
7192 mode by default, which appears appropriate for 2018.
7193
230450d4
LR
7194 * The "net.ipv4.conf.all.rp_filter" sysctl will now be set to 2 by
7195 default. This effectively switches the RFC3704 Reverse Path filtering
7196 from Strict mode to Loose mode. This is more appropriate for hosts
7197 that have multiple links with routes to the same networks (e.g.
7198 a client with a Wi-Fi and Ethernet both connected to the internet).
7199
6b1ab752 7200 Consult the kernel documentation for details on this sysctl:
0e685823 7201 https://docs.kernel.org/networking/ip-sysctl.html
195d181c 7202
e447ffe4
SI
7203 * The v239 change to turn on "net.ipv4.tcp_ecn" by default has been
7204 reverted.
230450d4 7205
23305a29
CD
7206 * CPUAccounting=yes no longer enables the CPU controller when using
7207 kernel 4.15+ and the unified cgroup hierarchy, as required accounting
7208 statistics are now provided independently from the CPU controller.
7209
6b1ab752 7210 * Support for disabling a particular cgroup controller within a sub-tree
a8467688
CD
7211 has been added through the DisableControllers= directive.
7212
8f044cf9
CD
7213 * cgroup_no_v1=all on the kernel command line now also implies
7214 using the unified cgroup hierarchy, unless one explicitly passes
7215 systemd.unified_cgroup_hierarchy=0 on the kernel command line.
7216
6b1ab752
LP
7217 * The new "MemoryMin=" unit file property may now be used to set the
7218 memory usage protection limit of processes invoked by the unit. This
4e1dfa45 7219 controls the cgroup v2 memory.min attribute. Similarly, the new
6b1ab752 7220 "IODeviceLatencyTargetSec=" property has been added, wrapping the new
4e1dfa45 7221 cgroup v2 io.latency cgroup property for configuring per-service I/O
6b1ab752
LP
7222 latency.
7223
4e1dfa45
CD
7224 * systemd now supports the cgroup v2 devices BPF logic, as counterpart
7225 to the cgroup v1 "devices" cgroup controller.
6b1ab752
LP
7226
7227 * systemd-escape now is able to combine --unescape with --template. It
7228 also learnt a new option --instance for extracting and unescaping the
7229 instance part of a unit name.
7230
7231 * sd-bus now provides the sd_bus_message_readv() which is similar to
7232 sd_bus_message_read() but takes a va_list object. The pair
7233 sd_bus_set_method_call_timeout() and sd_bus_get_method_call_timeout()
421e3b45 7234 has been added for configuring the default method call timeout to
6b1ab752
LP
7235 use. sd_bus_error_move() may be used to efficiently move the contents
7236 from one sd_bus_error structure to another, invalidating the
7237 source. sd_bus_set_close_on_exit() and sd_bus_get_close_on_exit() may
7238 be used to control whether a bus connection object is automatically
7239 flushed when an sd-event loop is exited.
7240
7241 * When processing classic BSD syslog log messages, journald will now
7242 save the original time-stamp string supplied in the new
7243 SYSLOG_TIMESTAMP= journal field. This permits consumers to
7244 reconstruct the original BSD syslog message more correctly.
7245
7246 * StandardOutput=/StandardError= in service files gained support for
7247 new "append:…" parameters, for connecting STDOUT/STDERR of a service
7248 to a file, and appending to it.
7249
7250 * The signal to use as last step of killing of unit processes is now
7251 configurable. Previously it was hard-coded to SIGKILL, which may now
7252 be overridden with the new KillSignal= setting. Note that this is the
46b028f2 7253 signal used when regular termination (i.e. SIGTERM) does not suffice.
421e3b45
ZJS
7254 Similarly, the signal used when aborting a program in case of a
7255 watchdog timeout may now be configured too (WatchdogSignal=).
6b1ab752
LP
7256
7257 * The XDG_SESSION_DESKTOP environment variable may now be configured in
7258 the pam_systemd argument line, using the new desktop= switch. This is
7259 useful to initialize it properly from a display manager without
7260 having to touch C code.
7261
421e3b45
ZJS
7262 * Most configuration options that previously accepted percentage values
7263 now also accept permille values with the '‰' suffix (instead of '%').
6b1ab752 7264
6b1ab752
LP
7265 * systemd-resolved may now optionally use OpenSSL instead of GnuTLS for
7266 DNS-over-TLS.
7267
7268 * systemd-resolved's configuration file resolved.conf gained a new
7269 option ReadEtcHosts= which may be used to turn off processing and
7270 honoring /etc/hosts entries.
7271
7272 * The "--wait" switch may now be passed to "systemctl
7273 is-system-running", in which case the tool will synchronously wait
7274 until the system finished start-up.
7275
7276 * hostnamed gained a new bus call to determine the DMI product UUID.
7277
7278 * On x86-64 systemd will now prefer using the RDRAND processor
7279 instruction over /dev/urandom whenever it requires randomness that
7280 neither has to be crypto-grade nor should be reproducible. This
7281 should substantially reduce the amount of entropy systemd requests
7282 from the kernel during initialization on such systems, though not
7283 reduce it to zero. (Why not zero? systemd still needs to allocate
7284 UUIDs and such uniquely, which require high-quality randomness.)
7285
7286 * networkd gained support for Foo-Over-UDP, ERSPAN and ISATAP
7287 tunnels. It also gained a new option ForceDHCPv6PDOtherInformation=
7288 for forcing the "Other Information" bit in IPv6 RA messages. The
d6131be9 7289 bonding logic gained four new options AdActorSystemPriority=,
6b1ab752 7290 AdUserPortKey=, AdActorSystem= for configuring various 802.3ad
d6131be9
YW
7291 aspects, and DynamicTransmitLoadBalancing= for enabling dynamic
7292 shuffling of flows. The tunnel logic gained a new
7293 IPv6RapidDeploymentPrefix= option for configuring IPv6 Rapid
7294 Deployment. The policy rule logic gained four new options IPProtocol=,
7295 SourcePort= and DestinationPort=, InvertRule=. The bridge logic gained
7296 support for the MulticastToUnicast= option. networkd also gained
7297 support for configuring static IPv4 ARP or IPv6 neighbor entries.
6b1ab752
LP
7298
7299 * .preset files (as read by 'systemctl preset') may now be used to
7300 instantiate services.
7301
7302 * /etc/crypttab now understands the sector-size= option to configure
7303 the sector size for an encrypted partition.
7304
7305 * Key material for encrypted disks may now be placed on a formatted
421e3b45
ZJS
7306 medium, and referenced from /etc/crypttab by the UUID of the file
7307 system, followed by "=" suffixed by the path to the key file.
6b1ab752
LP
7308
7309 * The "collect" udev component has been removed without replacement, as
421e3b45 7310 it is neither used nor maintained.
6b1ab752
LP
7311
7312 * When the RuntimeDirectory=, StateDirectory=, CacheDirectory=,
7313 LogsDirectory=, ConfigurationDirectory= settings are used in a
7314 service the executed processes will now receive a set of environment
421e3b45
ZJS
7315 variables containing the full paths of these directories.
7316 Specifically, RUNTIME_DIRECTORY=, STATE_DIRECTORY, CACHE_DIRECTORY,
7317 LOGS_DIRECTORY, CONFIGURATION_DIRECTORY are now set if these options
7318 are used. Note that these options may be used multiple times per
7319 service in which case the resulting paths will be concatenated and
7320 separated by colons.
6b1ab752
LP
7321
7322 * Predictable interface naming has been extended to cover InfiniBand
7323 NICs. They will be exposed with an "ib" prefix.
7324
7325 * tmpfiles.d/ line types may now be suffixed with a '-' character, in
7326 which case the respective line failing is ignored.
7327
7328 * .link files may now be used to configure the equivalent to the
7329 "ethtool advertise" commands.
7330
7331 * The sd-device.h and sd-hwdb.h APIs are now exported, as an
7332 alternative to libudev.h. Previously, the latter was just an internal
7333 wrapper around the former, but now these two APIs are exposed
7334 directly.
7335
7336 * sd-id128.h gained a new function sd_id128_get_boot_app_specific()
7337 which calculates an app-specific boot ID similar to how
7338 sd_id128_get_machine_app_specific() generates an app-specific machine
7339 ID.
7340
7341 * A new tool systemd-id128 has been added that can be used to determine
da890466 7342 and generate various 128-bit IDs.
6b1ab752
LP
7343
7344 * /etc/os-release gained two new standardized fields DOCUMENTATION_URL=
7345 and LOGO=.
7346
7347 * systemd-hibernate-resume-generator will now honor the "noresume"
7348 kernel command line option, in which case it will bypass resuming
7349 from any hibernated image.
7350
7351 * The systemd-sleep.conf configuration file gained new options
7352 AllowSuspend=, AllowHibernation=, AllowSuspendThenHibernate=,
7353 AllowHybridSleep= for prohibiting specific sleep modes even if the
421e3b45 7354 kernel exports them.
6b1ab752
LP
7355
7356 * portablectl is now officially supported and has thus moved to
7357 /usr/bin/.
7358
7359 * bootctl learnt the two new commands "set-default" and "set-oneshot"
7360 for setting the default boot loader item to boot to (either
7361 persistently or only for the next boot). This is currently only
7362 compatible with sd-boot, but may be implemented on other boot loaders
7363 too, that follow the boot loader interface. The updated interface is
7364 now documented here:
7365
7366 https://systemd.io/BOOT_LOADER_INTERFACE
7367
7368 * A new kernel command line option systemd.early_core_pattern= is now
7369 understood which may be used to influence the core_pattern PID 1
7370 installs during early boot.
7371
7372 * busctl learnt two new options -j and --json= for outputting method
7373 call replies, properties and monitoring output in JSON.
7374
7375 * journalctl's JSON output now supports simple ANSI coloring as well as
7376 a new "json-seq" mode for generating RFC7464 output.
7377
7378 * Unit files now support the %g/%G specifiers that resolve to the UNIX
7379 group/GID of the service manager runs as, similar to the existing
7380 %u/%U specifiers that resolve to the UNIX user/UID.
7381
7382 * systemd-logind learnt a new global configuration option
7383 UserStopDelaySec= that may be set in logind.conf. It specifies how
7384 long the systemd --user instance shall remain started after a user
7385 logs out. This is useful to speed up repetitive re-connections of the
7386 same user, as it means the user's service manager doesn't have to be
7387 stopped/restarted on each iteration, but can be reused between
7388 subsequent options. This setting defaults to 10s. systemd-logind also
7389 exports two new properties on its Manager D-Bus objects indicating
421e3b45
ZJS
7390 whether the system's lid is currently closed, and whether the system
7391 is on AC power.
6b1ab752
LP
7392
7393 * systemd gained support for a generic boot counting logic, which
7394 generically permits automatic reverting to older boot loader entries
7395 if newer updated ones don't work. The boot loader side is implemented
7396 in sd-boot, but is kept open for other boot loaders too. For details
7397 see:
7398
7399 https://systemd.io/AUTOMATIC_BOOT_ASSESSMENT
7400
7401 * The SuccessAction=/FailureAction= unit file settings now learnt two
7402 new parameters: "exit" and "exit-force", which result in immediate
7403 exiting of the service manager, and are only useful in systemd --user
7404 and container environments.
7405
7406 * Unit files gained support for a pair of options
7407 FailureActionExitStatus=/SuccessActionExitStatus= for configuring the
7408 exit status to use as service manager exit status when
7409 SuccessAction=/FailureAction= is set to exit or exit-force.
7410
7411 * A pair of LogRateLimitIntervalSec=/LogRateLimitBurst= per-service
7412 options may now be used to configure the log rate limiting applied by
7413 journald per-service.
7414
7415 * systemd-analyze gained a new verb "timespan" for parsing and
7416 normalizing time span values (i.e. strings like "5min 7s 8us").
7417
7418 * systemd-analyze also gained a new verb "security" for analyzing the
7419 security and sand-boxing settings of services in order to determine an
7420 "exposure level" for them, indicating whether a service would benefit
7421 from more sand-boxing options turned on for them.
7422
7423 * "systemd-analyze syscall-filter" will now also show system calls
7424 supported by the local kernel but not included in any of the defined
7425 groups.
7426
7427 * .nspawn files now understand the Ephemeral= setting, matching the
7428 --ephemeral command line switch.
7429
7430 * sd-event gained the new APIs sd_event_source_get_floating() and
7431 sd_event_source_set_floating() for controlling whether a specific
7432 event source is "floating", i.e. destroyed along with the even loop
7433 object itself.
7434
7435 * Unit objects on D-Bus gained a new "Refs" property that lists all
421e3b45
ZJS
7436 clients that currently have a reference on the unit (to ensure it is
7437 not unloaded).
6b1ab752
LP
7438
7439 * The JoinControllers= option in system.conf is no longer supported, as
7440 it didn't work correctly, is hard to support properly, is legacy (as
4e1dfa45 7441 the concept only exists on cgroup v1) and apparently wasn't used.
6b1ab752
LP
7442
7443 * Journal messages that are generated whenever a unit enters the failed
421e3b45
ZJS
7444 state are now tagged with a unique MESSAGE_ID. Similarly, messages
7445 generated whenever a service process exits are now made recognizable,
5238e957 7446 too. A tagged message is also emitted whenever a unit enters the
421e3b45 7447 "dead" state on success.
6b1ab752
LP
7448
7449 * systemd-run gained a new switch --working-directory= for configuring
7450 the working directory of the service to start. A shortcut -d is
7451 equivalent, setting the working directory of the service to the
7452 current working directory of the invoking program. The new --shell
7453 (or just -S) option has been added for invoking the $SHELL of the
7454 caller as a service, and implies --pty --same-dir --wait --collect
421e3b45 7455 --service-type=exec. Or in other words, "systemd-run -S" is now the
6b1ab752
LP
7456 quickest way to quickly get an interactive in a fully clean and
7457 well-defined system service context.
7458
7459 * machinectl gained a new verb "import-fs" for importing an OS tree
7460 from a directory. Moreover, when a directory or tarball is imported
7461 and single top-level directory found with the OS itself below the OS
7462 tree is automatically mangled and moved one level up.
7463
421e3b45
ZJS
7464 * systemd-importd will no longer set up an implicit btrfs loop-back
7465 file system on /var/lib/machines. If one is already set up, it will
7466 continue to be used.
6b1ab752
LP
7467
7468 * A new generator "systemd-run-generator" has been added. It will
7469 synthesize a unit from one or more program command lines included in
7470 the kernel command line. This is very useful in container managers
7471 for example:
7472
7473 # systemd-nspawn -i someimage.raw -b systemd.run='"some command line"'
7474
7475 This will run "systemd-nspawn" on an image, invoke the specified
421e3b45
ZJS
7476 command line and immediately shut down the container again, returning
7477 the command line's exit code.
6b1ab752 7478
421e3b45 7479 * The block device locking logic is now documented:
6b1ab752
LP
7480
7481 https://systemd.io/BLOCK_DEVICE_LOCKING
7482
7483 * loginctl and machinectl now optionally output the various tables in
7484 JSON using the --output= switch. It is our intention to add similar
7485 support to systemctl and all other commands.
7486
7487 * udevadm's query and trigger verb now optionally take a .device unit
7488 name as argument.
7489
7490 * systemd-udevd's network naming logic now understands a new
421e3b45 7491 net.naming-scheme= kernel command line switch, which may be used to
6b1ab752
LP
7492 pick a specific version of the naming scheme. This helps stabilizing
7493 interface names even as systemd/udev are updated and the naming logic
7494 is improved.
7495
67081438 7496 * sd-id128.h learnt two new auxiliary helpers: sd_id128_is_allf() and
da890466 7497 SD_ID128_ALLF to test if a 128-bit ID is set to all 0xFF bytes, and to
67081438
LP
7498 initialize one to all 0xFF.
7499
144d7f1d
LP
7500 * After loading the SELinux policy systemd will now recursively relabel
7501 all files and directories listed in
7502 /run/systemd/relabel-extra.d/*.relabel (which should be simple
7503 newline separated lists of paths) in addition to the ones it already
7504 implicitly relabels in /run, /dev and /sys. After the relabelling is
7505 completed the *.relabel files (and /run/systemd/relabel-extra.d/) are
7506 removed. This is useful to permit initrds (i.e. code running before
7507 the SELinux policy is in effect) to generate files in the host
7508 filesystem safely and ensure that the correct label is applied during
7509 the transition to the host OS.
7510
98a7b55a
LP
7511 * KERNEL API BREAKAGE: Linux kernel 4.18 changed behaviour regarding
7512 mknod() handling in user namespaces. Previously mknod() would always
7513 fail with EPERM in user namespaces. Since 4.18 mknod() will succeed
7514 but device nodes generated that way cannot be opened, and attempts to
7515 open them result in EPERM. This breaks the "graceful fallback" logic
7516 in systemd's PrivateDevices= sand-boxing option. This option is
7517 implemented defensively, so that when systemd detects it runs in a
7518 restricted environment (such as a user namespace, or an environment
7519 where mknod() is blocked through seccomp or absence of CAP_SYS_MKNOD)
7520 where device nodes cannot be created the effect of PrivateDevices= is
7521 bypassed (following the logic that 2nd-level sand-boxing is not
7522 essential if the system systemd runs in is itself already sand-boxed
7523 as a whole). This logic breaks with 4.18 in container managers where
7524 user namespacing is used: suddenly PrivateDevices= succeeds setting
7525 up a private /dev/ file system containing devices nodes — but when
7526 these are opened they don't work.
7527
d238709c 7528 At this point it is recommended that container managers utilizing
98a7b55a
LP
7529 user namespaces that intend to run systemd in the payload explicitly
7530 block mknod() with seccomp or similar, so that the graceful fallback
7531 logic works again.
7532
7533 We are very sorry for the breakage and the requirement to change
7534 container configurations for newer kernels. It's purely caused by an
7535 incompatible kernel change. The relevant kernel developers have been
7536 notified about this userspace breakage quickly, but they chose to
7537 ignore it.
7538
455027c9
ZJS
7539 * PermissionsStartOnly= setting is deprecated (but is still supported
7540 for backwards compatibility). The same functionality is provided by
7541 the more flexible "+", "!", and "!!" prefixes to ExecStart= and other
7542 commands.
7543
b4ff3dbb
ZJS
7544 * $DBUS_SESSION_BUS_ADDRESS environment variable is not set by
7545 pam_systemd anymore.
7546
08e1fe42
ZJS
7547 * The naming scheme for network devices was changed to always rename
7548 devices, even if they were already renamed by userspace. The "kernel"
7549 policy was changed to only apply as a fallback, if no other naming
7550 policy took effect.
7551
bd36ef0a
YW
7552 * The requirements to build systemd is bumped to meson-0.46 and
7553 python-3.5.
7554
6b1ab752
LP
7555 Contributions from: afg, Alan Jenkins, Aleksei Timofeyev, Alexander
7556 Filippov, Alexander Kurtz, Alexey Bogdanenko, Andreas Henriksson,
7557 Andrew Jorgensen, Anita Zhang, apnix-uk, Arkan49, Arseny Maslennikov,
7558 asavah, Asbjørn Apeland, aszlig, Bastien Nocera, Ben Boeckel, Benedikt
c37e2358
LP
7559 Morbach, Benjamin Berg, Bruce Zhang, Carlo Caione, Cedric Viou, Chen
7560 Qi, Chris Chiu, Chris Down, Chris Morin, Christian Rebischke, Claudius
7561 Ellsel, Colin Guthrie, dana, Daniel, Daniele Medri, Daniel Kahn
7562 Gillmor, Daniel Rusek, Daniel van Vugt, Dariusz Gadomski, Dave Reisner,
7563 David Anderson, Davide Cavalca, David Leeds, David Malcolm, David
1742aae2
ZJS
7564 Strauss, David Tardon, Dimitri John Ledkov, Dmitry Torokhov, dj-kaktus,
7565 Dongsu Park, Elias Probst, Emil Soleyman, Erik Kooistra, Ervin Peters,
7566 Evgeni Golov, Evgeny Vereshchagin, Fabrice Fontaine, Faheel Ahmad,
7567 Faizal Luthfi, Felix Yan, Filipe Brandenburger, Franck Bui, Frank
7568 Schaefer, Frantisek Sumsal, Gautier Husson, Gianluca Boiano, Giuseppe
7569 Scrivano, glitsj16, Hans de Goede, Harald Hoyer, Harry Mallon, Harshit
7570 Jain, Helmut Grohne, Henry Tung, Hui Yiqun, imayoda, Insun Pyo, Iwan
7571 Timmer, Jan Janssen, Jan Pokorný, Jan Synacek, Jason A. Donenfeld,
7572 javitoom, Jérémy Nouhaud, Jeremy Su, Jiuyang Liu, João Paulo Rechi
7573 Vita, Joe Hershberger, Joe Rayhawk, Joerg Behrmann, Joerg Steffens,
7574 Jonas Dorel, Jon Ringle, Josh Soref, Julian Andres Klode, Jun Bo Bi,
7575 Jürg Billeter, Keith Busch, Khem Raj, Kirill Marinushkin, Larry
7576 Bernstone, Lennart Poettering, Lion Yang, Li Song, Lorenz
7577 Hübschle-Schneider, Lubomir Rintel, Lucas Werkmeister, Ludwin Janvier,
7578 Lukáš Nykrýn, Luke Shumaker, mal, Marc-Antoine Perennou, Marcin
7579 Skarbek, Marco Trevisan (Treviño), Marian Cepok, Mario Hros, Marko
7580 Myllynen, Markus Grimm, Martin Pitt, Martin Sobotka, Martin Wilck,
7581 Mathieu Trudel-Lapierre, Matthew Leeds, Michael Biebl, Michael Olbrich,
7582 Michael 'pbone' Pobega, Michael Scherer, Michal Koutný, Michal
7583 Sekletar, Michal Soltys, Mike Gilbert, Mike Palmer, Muhammet Kara, Neal
7584 Gompa, Neil Brown, Network Silence, Niklas Tibbling, Nikolas Nyby,
7585 Nogisaka Sadata, Oliver Smith, Patrik Flykt, Pavel Hrdina, Paweł
7586 Szewczyk, Peter Hutterer, Piotr Drąg, Ray Strode, Reinhold Mueller,
7587 Renaud Métrich, Roman Gushchin, Ronny Chevalier, Rubén Suárez Alvarez,
7588 Ruixin Bao, RussianNeuroMancer, Ryutaroh Matsumoto, Saleem Rashid, Sam
7589 Morris, Samuel Morris, Sandy Carter, scootergrisen, Sébastien Bacher,
7590 Sergey Ptashnick, Shawn Landden, Shengyao Xue, Shih-Yuan Lee
7591 (FourDollars), Silvio Knizek, Sjoerd Simons, Stasiek Michalski, Stephen
7592 Gallagher, Steven Allen, Steve Ramage, Susant Sahani, Sven Joachim,
7593 Sylvain Plantefève, Tanu Kaskinen, Tejun Heo, Thiago Macieira, Thomas
7594 Blume, Thomas Haller, Thomas H. P. Andersen, Tim Ruffing, TJ, Tobias
7595 Jungel, Todd Walton, Tommi Rantala, Tomsod M, Tony Novak, Tore
7596 Anderson, Trevonn, Victor Laskurain, Victor Tapia, Violet Halo, Vojtech
7597 Trefny, welaq, William A. Kennington III, William Douglas, Wyatt Ward,
7598 Xiang Fan, Xi Ruoyao, Xuanwo, Yann E. Morin, YmrDtnJu, Yu Watanabe,
7599 Zbigniew Jędrzejewski-Szmek, Zhang Xianwei, Zsolt Dollenstein
7600
7601 — Warsaw, 2018-12-21
6b1ab752 7602
e8498f82 7603CHANGES WITH 239:
019cb3ab
SH
7604
7605 * NETWORK INTERFACE DEVICE NAMING CHANGES: systemd-udevd's "net_id"
d69f5282
ZJS
7606 builtin will name network interfaces differently than in previous
7607 versions for virtual network interfaces created with SR-IOV and NPAR
7608 and for devices where the PCI network controller device does not have
7609 a slot number associated.
7610
7611 SR-IOV virtual devices are now named based on the name of the parent
7612 interface, with a suffix of "v<N>", where <N> is the virtual device
7613 number. Previously those virtual devices were named as if completely
7614 independent.
7615
7616 The ninth and later NPAR virtual devices will be named following the
7617 scheme used for the first eight NPAR partitions. Previously those
7618 devices were not renamed and the kernel default (eth<n>) was used.
7619
7620 "net_id" will also generate names for PCI devices where the PCI
7621 network controller device does not have an associated slot number
7622 itself, but one of its parents does. Previously those devices were
7623 not renamed and the kernel default (eth<n>) was used.
019cb3ab 7624
6e2d744b
YW
7625 * AF_INET and AF_INET6 are dropped from RestrictAddressFamilies= in
7626 systemd-logind.service. Since v235, IPAddressDeny=any has been set to
fe903cf4
LP
7627 the unit. So, it is expected that the default behavior of
7628 systemd-logind is not changed. However, if distribution packagers or
7629 administrators disabled or modified IPAddressDeny= setting by a
7630 drop-in config file, then it may be necessary to update the file to
7631 re-enable AF_INET and AF_INET6 to support network user name services,
7632 e.g. NIS.
7633
7634 * When the RestrictNamespaces= unit property is specified multiple
7635 times, then the specified types are merged now. Previously, only the
7636 last assignment was used. So, if distribution packagers or
7637 administrators modified the setting by a drop-in config file, then it
7638 may be necessary to update the file.
e0eee477 7639
1fc83d09
LP
7640 * When OnFailure= is used in combination with Restart= on a service
7641 unit, then the specified units will no longer be triggered on
7642 failures that result in restarting. Previously, the specified units
7643 would be activated each time the unit failed, even when the unit was
7644 going to be restarted automatically. This behaviour contradicted the
7645 documentation. With this release the code is adjusted to match the
7646 documentation.
7647
41a4c3ec
LP
7648 * systemd-tmpfiles will now print a notice whenever it encounters
7649 tmpfiles.d/ lines referencing the /var/run/ directory. It will
7650 recommend reworking them to use the /run/ directory instead (for
5cadf58e
ZJS
7651 which /var/run/ is simply a symlinked compatibility alias). This way
7652 systemd-tmpfiles can properly detect line conflicts and merge lines
7653 referencing the same file by two paths, without having to access
7654 them.
41a4c3ec 7655
ce55bd5e
ZJS
7656 * systemctl disable/unmask/preset/preset-all cannot be used with
7657 --runtime. Previously this was allowed, but resulted in unintuitive
fe903cf4
LP
7658 behaviour that wasn't useful. systemctl disable/unmask will now undo
7659 both runtime and persistent enablement/masking, i.e. it will remove
7660 any relevant symlinks both in /run and /etc.
ce55bd5e 7661
e01d9e21 7662 * Note that all long-running system services shipped with systemd will
6b000af4 7663 now default to a system call allow list (rather than a deny list, as
e01d9e21
LP
7664 before). In particular, systemd-udevd will now enforce one too. For
7665 most cases this should be safe, however downstream distributions
7666 which disabled sandboxing of systemd-udevd (specifically the
7667 MountFlags= setting), might want to disable this security feature
6b000af4 7668 too, as the default allow-listing will prohibit all mount, swap,
e01d9e21
LP
7669 reboot and clock changing operations from udev rules.
7670
5cadf58e
ZJS
7671 * sd-boot acquired new loader configuration settings to optionally turn
7672 off Windows and MacOS boot partition discovery as well as
7673 reboot-into-firmware menu items. It is also able to pick a better
7674 screen resolution for HiDPI systems, and now provides loader
41a4c3ec
LP
7675 configuration settings to change the resolution explicitly.
7676
c9299be2
IT
7677 * systemd-resolved now supports DNS-over-TLS. It's still
7678 turned off by default, use DNSOverTLS=opportunistic to turn it on in
c086ce8c
LP
7679 resolved.conf. We intend to make this the default as soon as couple
7680 of additional techniques for optimizing the initial latency caused by
7681 establishing a TLS/TCP connection are implemented.
7682
73c718a9
YW
7683 * systemd-resolved.service and systemd-networkd.service now set
7684 DynamicUser=yes. The users systemd-resolve and systemd-network are
abc291aa
LP
7685 not created by systemd-sysusers anymore.
7686
7687 NOTE: This has a chance of breaking nss-ldap and similar NSS modules
5238e957 7688 that embed a network facing module into any process using getpwuid()
abc291aa
LP
7689 or related call: the dynamic allocation of the user ID for
7690 systemd-resolved.service means the service manager has to check NSS
7691 if the user name is already taken when forking off the service. Since
7692 the user in the common case won't be defined in /etc/passwd the
7693 lookup is likely to trigger nss-ldap which in turn might use NSS to
7694 ask systemd-resolved for hostname lookups. This will hence result in
7695 a deadlock: a user name lookup in order to start
38b38500 7696 systemd-resolved.service will result in a hostname lookup for which
abc291aa
LP
7697 systemd-resolved.service needs to be started already. There are
7698 multiple ways to work around this problem: pre-allocate the
7699 "systemd-resolve" user on such systems, so that nss-ldap won't be
7700 triggered; or use a different NSS package that doesn't do networking
7701 in-process but provides a local asynchronous name cache; or configure
7702 the NSS package to avoid lookups for UIDs in the range `pkg-config
7703 systemd --variable=dynamicuidmin` … `pkg-config systemd
7704 --variable=dynamicuidmax`, so that it does not consider itself
7705 authoritative for the same UID range systemd allocates dynamic users
7706 from.
73c718a9 7707
41a4c3ec
LP
7708 * The systemd-resolve tool has been renamed to resolvectl (it also
7709 remains available under the old name, for compatibility), and its
7710 interface is now verb-based, similar in style to the other <xyz>ctl
5cadf58e
ZJS
7711 tools, such as systemctl or loginctl.
7712
75da262a
LP
7713 * The resolvectl/systemd-resolve tool also provides 'resolvconf'
7714 compatibility. It may be symlinked under the 'resolvconf' name, in
5cadf58e
ZJS
7715 which case it will take arguments and input compatible with the
7716 Debian and FreeBSD resolvconf tool.
41a4c3ec
LP
7717
7718 * Support for suspend-then-hibernate has been added, i.e. a sleep mode
3f9a0a52 7719 where the system initially suspends, and after a timeout resumes and
41a4c3ec
LP
7720 hibernates again.
7721
7722 * networkd's ClientIdentifier= now accepts a new option "duid-only". If
7723 set the client will only send a DUID as client identifier.
7724
7725 * The nss-systemd glibc NSS module will now enumerate dynamic users and
7726 groups in effect. Previously, it could resolve UIDs/GIDs to user
7727 names/groups and vice versa, but did not support enumeration.
7728
7729 * journald's Compress= configuration setting now optionally accepts a
7730 byte threshold value. All journal objects larger than this threshold
7731 will be compressed, smaller ones will not. Previously this threshold
7732 was not configurable and set to 512.
7733
5cadf58e
ZJS
7734 * A new system.conf setting NoNewPrivileges= is now available which may
7735 be used to turn off acquisition of new privileges system-wide
7736 (i.e. set Linux' PR_SET_NO_NEW_PRIVS for PID 1 itself, and thus also
7737 for all its children). Note that turning this option on means setuid
7738 binaries and file system capabilities lose their special powers.
7739 While turning on this option is a big step towards a more secure
7740 system, doing so is likely to break numerous pre-existing UNIX tools,
7741 in particular su and sudo.
41a4c3ec
LP
7742
7743 * A new service systemd-time-sync-wait.service has been added. If
7744 enabled it will delay the time-sync.target unit at boot until time
bc99dac5 7745 synchronization has been received from the network. This
41a4c3ec
LP
7746 functionality is useful on systems lacking a local RTC or where it is
7747 acceptable that the boot process shall be delayed by external network
7748 services.
7749
7750 * When hibernating, systemd will now inform the kernel of the image
7751 write offset, on kernels new enough to support this. This means swap
7752 files should work for hibernation now.
7753
5cadf58e
ZJS
7754 * When loading unit files, systemd will now look for drop-in unit files
7755 extensions in additional places. Previously, for a unit file name
41a4c3ec
LP
7756 "foo-bar-baz.service" it would look for dropin files in
7757 "foo-bar-baz.service.d/*.conf". Now, it will also look in
7758 "foo-bar-.service.d/*.conf" and "foo-.service.d/", i.e. at the
7759 service name truncated after all inner dashes. This scheme allows
7760 writing drop-ins easily that apply to a whole set of unit files at
7761 once. It's particularly useful for mount and slice units (as their
5cadf58e
ZJS
7762 naming is prefix based), but is also useful for service and other
7763 units, for packages that install multiple unit files at once,
41a4c3ec 7764 following a strict naming regime of beginning the unit file name with
5cadf58e
ZJS
7765 the package's name. Two new specifiers are now supported in unit
7766 files to match this: %j and %J are replaced by the part of the unit
7767 name following the last dash.
7768
7769 * Unit files and other configuration files that support specifier
88099359 7770 expansion now understand another three new specifiers: %T and %V will
5cadf58e 7771 resolve to /tmp and /var/tmp respectively, or whatever temporary
88099359
ZJS
7772 directory has been set for the calling user. %E will expand to either
7773 /etc (for system units) or $XDG_CONFIG_HOME (for user units).
41a4c3ec
LP
7774
7775 * The ExecStart= lines of unit files are no longer required to
7776 reference absolute paths. If non-absolute paths are specified the
7777 specified binary name is searched within the service manager's
5cadf58e
ZJS
7778 built-in $PATH, which may be queried with 'systemd-path
7779 search-binaries-default'. It's generally recommended to continue to
7780 use absolute paths for all binaries specified in unit files.
41a4c3ec 7781
c7f93e28
ZJS
7782 * Units gained a new load state "bad-setting", which is used when a
7783 unit file was loaded, but contained fatal errors which prevent it
ba1dc1a1
LP
7784 from being started (for example, a service unit has been defined
7785 lacking both ExecStart= and ExecStop= lines).
c7f93e28 7786
41a4c3ec
LP
7787 * coredumpctl's "gdb" verb has been renamed to "debug", in order to
7788 support alternative debuggers, for example lldb. The old name
7789 continues to be available however, for compatibility reasons. Use the
5cadf58e
ZJS
7790 new --debugger= switch or the $SYSTEMD_DEBUGGER environment variable
7791 to pick an alternative debugger instead of the default gdb.
41a4c3ec
LP
7792
7793 * systemctl and the other tools will now output escape sequences that
7794 generate proper clickable hyperlinks in various terminal emulators
7795 where useful (for example, in the "systemctl status" output you can
7796 now click on the unit file name to quickly open it in the
7797 editor/viewer of your choice). Note that not all terminal emulators
7798 support this functionality yet, but many do. Unfortunately, the
7799 "less" pager doesn't support this yet, hence this functionality is
7800 currently automatically turned off when a pager is started (which
7801 happens quite often due to auto-paging). We hope to remove this
5cadf58e
ZJS
7802 limitation as soon as "less" learns these escape sequences. This new
7803 behaviour may also be turned off explicitly with the $SYSTEMD_URLIFY
7804 environment variable. For details on these escape sequences see:
41a4c3ec
LP
7805 https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
7806
7807 * networkd's .network files now support a new IPv6MTUBytes= option for
7808 setting the MTU used by IPv6 explicitly as well as a new MTUBytes=
7809 option in the [Route] section to configure the MTU to use for
7810 specific routes. It also gained support for configuration of the DHCP
7811 "UserClass" option through the new UserClass= setting. It gained
7812 three new options in the new [CAN] section for configuring CAN
7813 networks. The MULTICAST and ALLMULTI interface flags may now be
7814 controlled explicitly with the new Multicast= and AllMulticast=
7815 settings.
7816
7817 * networkd will now automatically make use of the kernel's route
7818 expiration feature, if it is available.
7819
5cadf58e
ZJS
7820 * udevd's .link files now support setting the number of receive and
7821 transmit channels, using the RxChannels=, TxChannels=,
7822 OtherChannels=, CombinedChannels= settings.
7823
7824 * Support for UDPSegmentationOffload= has been removed, given its
7825 limited support in hardware, and waning software support.
41a4c3ec
LP
7826
7827 * networkd's .netdev files now support creating "netdevsim" interfaces.
7828
7829 * PID 1 learnt a new bus call GetUnitByControlGroup() which may be used
7830 to query the unit belonging to a specific kernel control group.
7831
5cadf58e 7832 * systemd-analyze gained a new verb "cat-config", which may be used to
41a4c3ec
LP
7833 dump the contents of any configuration file, with all its matching
7834 drop-in files added in, and honouring the usual search and masking
7835 logic applied to systemd configuration files. For example use
7836 "systemd-analyze cat-config systemd/system.conf" to get the complete
7837 system configuration file of systemd how it would be loaded by PID 1
5cadf58e
ZJS
7838 itself. Similar to this, various tools such as systemd-tmpfiles or
7839 systemd-sysusers, gained a new option "--cat-config", which does the
41a4c3ec
LP
7840 corresponding operation for their own configuration settings. For
7841 example, "systemd-tmpfiles --cat-config" will now output the full
7842 list of tmpfiles.d/ lines in place.
7843
704ae536
YW
7844 * timedatectl gained three new verbs: "show" shows bus properties of
7845 systemd-timedated, "timesync-status" shows the current NTP
7846 synchronization state of systemd-timesyncd, and "show-timesync"
7847 shows bus properties of systemd-timesyncd.
41a4c3ec
LP
7848
7849 * systemd-timesyncd gained a bus interface on which it exposes details
7850 about its state.
7851
73c718a9
YW
7852 * A new environment variable $SYSTEMD_TIMEDATED_NTP_SERVICES is now
7853 understood by systemd-timedated. It takes a colon-separated list of
7854 unit names of NTP client services. The list is used by
7855 "timedatectl set-ntp".
7856
41a4c3ec
LP
7857 * systemd-nspawn gained a new --rlimit= switch for setting initial
7858 resource limits for the container payload. There's a new switch
5cadf58e 7859 --hostname= to explicitly override the container's hostname. A new
41a4c3ec
LP
7860 --no-new-privileges= switch may be used to control the
7861 PR_SET_NO_NEW_PRIVS flag for the container payload. A new
7862 --oom-score-adjust= switch controls the OOM scoring adjustment value
7863 for the payload. The new --cpu-affinity= switch controls the CPU
7864 affinity of the container payload. The new --resolv-conf= switch
7865 allows more detailed control of /etc/resolv.conf handling of the
5cadf58e 7866 container. Similarly, the new --timezone= switch allows more detailed
41a4c3ec
LP
7867 control of /etc/localtime handling of the container.
7868
5cadf58e 7869 * systemd-detect-virt gained a new --list switch, which will print a
41a4c3ec
LP
7870 list of all currently known VM and container environments.
7871
5cadf58e 7872 * Support for "Portable Services" has been added, see
41a4c3ec 7873 doc/PORTABLE_SERVICES.md for details. Currently, the support is still
5cadf58e
ZJS
7874 experimental, but this is expected to change soon. Reflecting this
7875 experimental state, the "portablectl" binary is not installed into
41a4c3ec
LP
7876 /usr/bin yet. The binary has to be called with the full path
7877 /usr/lib/systemd/portablectl instead.
7878
7879 * journalctl's and systemctl's -o switch now knows a new log output
7880 mode "with-unit". The output it generates is very similar to the
7881 regular "short" mode, but displays the unit name instead of the
7882 syslog tag for each log line. Also, the date is shown with timezone
7883 information. This mode is probably more useful than the classic
7884 "short" output mode for most purposes, except where pixel-perfect
7885 compatibility with classic /var/log/messages formatting is required.
7886
7887 * A new --dump-bus-properties switch has been added to the systemd
7888 binary, which may be used to dump all supported D-Bus properties.
c7f93e28
ZJS
7889 (Options which are still supported, but are deprecated, are *not*
7890 shown.)
41a4c3ec 7891
41a4c3ec
LP
7892 * sd-bus gained a set of new calls:
7893 sd_bus_slot_set_floating()/sd_bus_slot_get_floating() may be used to
7894 enable/disable the "floating" state of a bus slot object,
7895 i.e. whether the slot object pins the bus it is allocated for into
7896 memory or if the bus slot object gets disconnected when the bus goes
7897 away. sd_bus_open_with_description(),
7898 sd_bus_open_user_with_description(),
7899 sd_bus_open_system_with_description() may be used to allocate bus
7900 objects and set their description string already during allocation.
7901
7902 * sd-event gained support for watching inotify events from the event
7903 loop, in an efficient way, sharing inotify handles between multiple
7904 users. For this a new function sd_event_add_inotify() has been added.
7905
7906 * sd-event and sd-bus gained support for calling special user-supplied
7907 destructor functions for userdata pointers associated with
c7f93e28
ZJS
7908 sd_event_source, sd_bus_slot, and sd_bus_track objects. For this new
7909 functions sd_bus_slot_set_destroy_callback,
7910 sd_bus_slot_get_destroy_callback, sd_bus_track_set_destroy_callback,
7911 sd_bus_track_get_destroy_callback,
7912 sd_event_source_set_destroy_callback,
7913 sd_event_source_get_destroy_callback have been added.
41a4c3ec
LP
7914
7915 * The "net.ipv4.tcp_ecn" sysctl will now be turned on by default.
7916
7917 * PID 1 will now automatically reschedule .timer units whenever the
5cadf58e 7918 local timezone changes. (They previously got rescheduled
41a4c3ec
LP
7919 automatically when the system clock changed.)
7920
7921 * New documentation has been added to document cgroups delegation,
7922 portable services and the various code quality tools we have set up:
7923
a8a27374
SK
7924 https://github.com/systemd/systemd/blob/master/docs/CGROUP_DELEGATION.md
7925 https://github.com/systemd/systemd/blob/master/docs/PORTABLE_SERVICES.md
7926 https://github.com/systemd/systemd/blob/master/docs/CODE_QUALITY.md
41a4c3ec 7927
d6906108
LP
7928 * The Boot Loader Specification has been added to the source tree.
7929
a8a27374 7930 https://github.com/systemd/systemd/blob/master/docs/BOOT_LOADER_SPECIFICATION.md
d6906108
LP
7931
7932 While moving it into our source tree we have updated it and further
7933 changes are now accepted through the usual github PR workflow.
7934
41a4c3ec
LP
7935 * pam_systemd will now look for PAM userdata fields systemd.memory_max,
7936 systemd.tasks_max, systemd.cpu_weight, systemd.io_weight set by
7937 earlier PAM modules. The data in these fields is used to initialize
7938 the session scope's resource properties. Thus external PAM modules
7939 may now configure per-session limits, for example sourced from
7940 external user databases.
7941
7942 * socket units with Accept=yes will now maintain a "refused" counter in
7943 addition to the existing "accepted" counter, counting connections
7944 refused due to the enforced limits.
7945
7946 * The "systemd-path search-binaries-default" command may now be use to
7947 query the default, built-in $PATH PID 1 will pass to the services it
7948 manages.
7949
c49a7cbd
LP
7950 * A new unit file setting PrivateMounts= has been added. It's a boolean
7951 option. If enabled the unit's processes are invoked in their own file
7952 system namespace. Note that this behaviour is also implied if any
7953 other file system namespacing options (such as PrivateTmp=,
7954 PrivateDevices=, ProtectSystem=, …) are used. This option is hence
7955 primarily useful for services that do not use any of the other file
7956 system namespacing options. One such service is systemd-udevd.service
5238e957 7957 where this is now used by default.
c49a7cbd 7958
57ab451e
ZJS
7959 * ConditionSecurity= gained a new value "uefi-secureboot" that is true
7960 when the system is booted in UEFI "secure mode".
7961
c7668c1c
LP
7962 * A new unit "system-update-pre.target" is added, which defines an
7963 optional synchronization point for offline system updates, as
7964 implemented by the pre-existing "system-update.target" unit. It
7965 allows ordering services before the service that executes the actual
7966 update process in a generic way.
7967
f26ad321
ZJS
7968 * Systemd now emits warnings whenever .include syntax is used.
7969
41a4c3ec 7970 Contributions from: Adam Duskett, Alan Jenkins, Alessandro Casale,
ec53d48c 7971 Alexander Kurtz, Alex Gartrell, Anssi Hannula, Arnaud Rebillout, Brian
bb6f071f
LP
7972 J. Murrell, Bruno Vernay, Chris Lamb, Chris Lesiak, Christian Brauner,
7973 Christian Hesse, Christian Rebischke, Colin Guthrie, Daniel Dao, Daniel
7974 Lin, Danylo Korostil, Davide Cavalca, David Tardon, Dimitri John
7975 Ledkov, Dmitriy Geels, Douglas Christman, Elia Geretto, emelenas, Emil
7976 Velikov, Evgeny Vereshchagin, Felipe Sateler, Feng Sun, Filipe
7977 Brandenburger, Franck Bui, futpib, Giuseppe Scrivano, Guillem Jover,
7978 guixxx, Hannes Reinecke, Hans de Goede, Harald Hoyer, Henrique Dante de
7979 Almeida, Hiram van Paassen, Ian Miell, Igor Gnatenko, Ivan Shapovalov,
7980 Iwan Timmer, James Cowgill, Jan Janssen, Jan Synacek, Jared Kazimir,
7981 Jérémy Rosen, João Paulo Rechi Vita, Joost Heitbrink, Jui-Chi Ricky
7982 Liang, Jürg Billeter, Kai-Heng Feng, Karol Augustin, Kay Sievers,
7983 Krzysztof Nowicki, Lauri Tirkkonen, Lennart Poettering, Leonard König,
7984 Long Li, Luca Boccassi, Lucas Werkmeister, Marcel Hoppe, Marc
7985 Kleine-Budde, Mario Limonciello, Martin Jansa, Martin Wilck, Mathieu
7986 Malaterre, Matteo F. Vescovi, Matthew McGinn, Matthias-Christian Ott,
7987 Michael Biebl, Michael Olbrich, Michael Prokop, Michal Koutný, Michal
7988 Sekletar, Mike Gilbert, Mikhail Kasimov, Milan Broz, Milan Pässler,
7989 Mladen Pejaković, Muhammet Kara, Nicolas Boichat, Omer Katz, Paride
7990 Legovini, Paul Menzel, Paul Milliken, Pavel Hrdina, Peter A. Bigot,
7991 Peter D'Hoye, Peter Hutterer, Peter Jones, Philip Sequeira, Philip
61d0025d 7992 Withnall, Piotr Drąg, Radostin Stoyanov, Ricardo Salveti de Araujo,
bb6f071f
LP
7993 Ronny Chevalier, Rosen Penev, Rubén Suárez Alvarez, Ryan Gonzalez,
7994 Salvo Tomaselli, Sebastian Reichel, Sergey Ptashnick, Sergio Lindo
7995 Mansilla, Stefan Schweter, Stephen Hemminger, Stuart Hayes, Susant
7996 Sahani, Sylvain Plantefève, Thomas H. P. Andersen, Tobias Jungel,
7997 Tomasz Torcz, Vito Caputo, Will Dietz, Will Thompson, Wim van Mourik,
7998 Yu Watanabe, Zbigniew Jędrzejewski-Szmek
41a4c3ec 7999
e8498f82 8000 — Berlin, 2018-06-22
41a4c3ec 8001
c657bff1 8002CHANGES WITH 238:
e0c46a73
LP
8003
8004 * The MemoryAccounting= unit property now defaults to on. After
8005 discussions with the upstream control group maintainers we learnt
8006 that the negative impact of cgroup memory accounting on current
8007 kernels is finally relatively minimal, so that it should be safe to
444d5863
ZJS
8008 enable this by default without affecting system performance. Besides
8009 memory accounting only task accounting is turned on by default, all
8010 other forms of resource accounting (CPU, IO, IP) remain off for now,
8011 because it's not clear yet that their impact is small enough to move
8012 from opt-in to opt-out. We recommend downstreams to leave memory
07a35e84 8013 accounting on by default if kernel 4.14 or higher is primarily
444d5863
ZJS
8014 used. On very resource constrained systems or when support for old
8015 kernels is a necessity, -Dmemory-accounting-default=false can be used
8016 to revert this change.
e0c46a73 8017
313c32c3
ZJS
8018 * rpm scriptlets to update the udev hwdb and rules (%udev_hwdb_update,
8019 %udev_rules_update) and the journal catalog (%journal_catalog_update)
8020 from the upgrade scriptlets of individual packages now do nothing.
8021 Transfiletriggers have been added which will perform those updates
8022 once at the end of the transaction.
8023
8024 Similar transfiletriggers have been added to execute any sysctl.d
8025 and binfmt.d rules. Thus, it should be unnecessary to provide any
8026 scriptlets to execute this configuration from package installation
8027 scripts.
8028
8029 * systemd-sysusers gained a mode where the configuration to execute is
8030 specified on the command line, but this configuration is not executed
8031 directly, but instead it is merged with the configuration on disk,
8032 and the result is executed. This is useful for package installation
8033 scripts which want to create the user before installing any files on
8034 disk (in case some of those files are owned by that user), while
8035 still allowing local admin overrides.
8036
07a35e84 8037 This functionality is exposed to rpm scriptlets through a new
313c32c3
ZJS
8038 %sysusers_create_package macro. Old %sysusers_create and
8039 %sysusers_create_inline macros are deprecated.
8040
8041 A transfiletrigger for sysusers.d configuration is now installed,
07a35e84 8042 which means that it should be unnecessary to call systemd-sysusers from
313c32c3
ZJS
8043 package installation scripts, unless the package installs any files
8044 owned by those newly-created users, in which case
8045 %sysusers_create_package should be used.
8046
8047 * Analogous change has been done for systemd-tmpfiles: it gained a mode
8048 where the command-line configuration is merged with the configuration
8049 on disk. This is exposed as the new %tmpfiles_create_package macro,
8050 and %tmpfiles_create is deprecated. A transfiletrigger is installed
8051 for tmpfiles.d, hence it should be unnecessary to call systemd-tmpfiles
8052 from package installation scripts.
8053
8054 * sysusers.d configuration for a user may now also specify the group
8055 number, in addition to the user number ("u username 123:456"), or
8056 without the user number ("u username -:456").
8057
8058 * Configution items for systemd-sysusers can now be specified as
8059 positional arguments when the new --inline switch is used.
8060
8061 * The login shell of users created through sysusers.d may now be
8062 specified (previously, it was always /bin/sh for root and
8063 /sbin/nologin for other users).
8064
8065 * systemd-analyze gained a new --global switch to look at global user
8066 configuration. It also gained a unit-paths verb to list the unit load
8067 paths that are compiled into systemd (which can be used with
8068 --systemd, --user, or --global).
8069
8070 * udevadm trigger gained a new --settle/-w option to wait for any
8071 triggered events to finish (but just those, and not any other events
8072 which are triggered meanwhile).
8073
8074 * The action that systemd-logind takes when the lid is closed and the
8075 machine is connected to external power can now be configured using
8076 HandleLidSwitchExternalPower= in logind.conf. Previously, this action
8077 was determined by HandleLidSwitch=, and, for backwards compatibility,
8078 is still is, if HandleLidSwitchExternalPower= is not explicitly set.
8079
8080 * journalctl will periodically call sd_journal_process() to make it
8081 resilient against inotify queue overruns when journal files are
8082 rotated very quickly.
8083
8084 * Two new functions in libsystemd — sd_bus_get_n_queued_read and
8085 sd_bus_get_n_queued_write — may be used to check the number of
8086 pending bus messages.
8087
8088 * systemd gained a new
8089 org.freedesktop.systemd1.Manager.AttachProcessesToUnit dbus call
8090 which can be used to migrate foreign processes to scope and service
8091 units. The primary user for this new API is systemd itself: the
8092 systemd --user instance uses this call of the systemd --system
8093 instance to migrate processes if it itself gets the request to
8094 migrate processes and the kernel refuses this due to access
33db1b90 8095 restrictions. Thanks to this "systemd-run --scope --user …" works
4e1dfa45 8096 again in pure cgroup v2 environments when invoked from the user
313c32c3
ZJS
8097 session scope.
8098
8099 * A new TemporaryFileSystem= setting can be used to mask out part of
8100 the real file system tree with tmpfs mounts. This may be combined
8101 with BindPaths= and BindReadOnlyPaths= to hide files or directories
8102 not relevant to the unit, while still allowing some paths lower in
8103 the tree to be accessed.
8104
8105 ProtectHome=tmpfs may now be used to hide user home and runtime
8106 directories from units, in a way that is mostly equivalent to
8107 "TemporaryFileSystem=/home /run/user /root".
8108
8109 * Non-service units are now started with KeyringMode=shared by default.
8110 This means that mount and swapon and other mount tools have access
8111 to keys in the main keyring.
8112
8113 * /sys/fs/bpf is now mounted automatically.
8114
8115 * QNX virtualization is now detected by systemd-detect-virt and may
8116 be used in ConditionVirtualization=.
8117
8118 * IPAccounting= may now be enabled also for slice units.
8119
8120 * A new -Dsplit-bin= build configuration switch may be used to specify
8121 whether bin and sbin directories are merged, or if they should be
8122 included separately in $PATH and various listings of executable
8123 directories. The build configuration scripts will try to autodetect
8124 the proper values of -Dsplit-usr= and -Dsplit-bin= based on build
8125 system, but distributions are encouraged to configure this
8126 explicitly.
8127
8128 * A new -Dok-color= build configuration switch may be used to change
8129 the colour of "OK" status messages.
8130
8131 * UPGRADE ISSUE: serialization of units using JoinsNamespaceOf= with
8132 PrivateNetwork=yes was buggy in previous versions of systemd. This
8133 means that after the upgrade and daemon-reexec, any such units must
8134 be restarted.
8135
8136 * INCOMPATIBILITY: as announced in the NEWS for 237, systemd-tmpfiles
8137 will not exclude read-only files owned by root from cleanup.
8138
c657bff1
ZJS
8139 Contributions from: Alan Jenkins, Alexander F Rødseth, Alexis Jeandet,
8140 Andika Triwidada, Andrei Gherzan, Ansgar Burchardt, antizealot1337,
8141 Batuhan Osman Taşkaya, Beniamino Galvani, Bill Yodlowsky, Caio Marcelo
8142 de Oliveira Filho, CuBiC, Daniele Medri, Daniel Mouritzen, Daniel
8143 Rusek, Davide Cavalca, Dimitri John Ledkov, Douglas Christman, Evgeny
8144 Vereshchagin, Faalagorn, Filipe Brandenburger, Franck Bui, futpib,
8145 Giacomo Longo, Gunnar Hjalmarsson, Hans de Goede, Hermann Gausterer,
8146 Iago López Galeiras, Jakub Filak, Jan Synacek, Jason A. Donenfeld,
8147 Javier Martinez Canillas, Jérémy Rosen, Lennart Poettering, Lucas
8148 Werkmeister, Mao Huang, Marco Gulino, Michael Biebl, Michael Vogt,
8149 MilhouseVH, Neal Gompa (ニール・ゴンパ), Oleander Reis, Olof Mogren,
8150 Patrick Uiterwijk, Peter Hutterer, Peter Portante, Piotr Drąg, Robert
8151 Antoni Buj Gelonch, Sergey Ptashnick, Shawn Landden, Shuang Liu, Simon
8152 Fowler, SjonHortensius, snorreflorre, Susant Sahani, Sylvain
8153 Plantefève, Thomas Blume, Thomas Haller, Vito Caputo, Yu Watanabe,
8154 Zbigniew Jędrzejewski-Szmek, Марко М. Костић (Marko M. Kostić)
8155
8156 — Warsaw, 2018-03-05
8157
82c8e3e6 8158CHANGES WITH 237:
2b0c59ba
MP
8159
8160 * Some keyboards come with a zoom see-saw or rocker which until now got
8161 mapped to the Linux "zoomin/out" keys in hwdb. However, these
8162 keycodes are not recognized by any major desktop. They now produce
8163 Up/Down key events so that they can be used for scrolling.
8164
49e87292
LP
8165 * INCOMPATIBILITY: systemd-tmpfiles' "f" lines changed behaviour
8166 slightly: previously, if an argument was specified for lines of this
8167 type (i.e. the right-most column was set) this string was appended to
8168 existing files each time systemd-tmpfiles was run. This behaviour was
8169 different from what the documentation said, and not particularly
8170 useful, as repeated systemd-tmpfiles invocations would not be
8171 idempotent and grow such files without bounds. With this release
15c5594b
ZJS
8172 behaviour has been altered to match what the documentation says:
8173 lines of this type only have an effect if the indicated files don't
8174 exist yet, and only then the argument string is written to the file.
49e87292 8175
82c8e3e6
LP
8176 * FUTURE INCOMPATIBILITY: In systemd v238 we intend to slightly change
8177 systemd-tmpfiles behaviour: previously, read-only files owned by root
8178 were always excluded from the file "aging" algorithm (i.e. the
8179 automatic clean-up of directories like /tmp based on
8180 atime/mtime/ctime). We intend to drop this restriction, and age files
8181 by default even when owned by root and read-only. This behaviour was
8182 inherited from older tools, but there have been requests to remove
8183 it, and it's not obvious why this restriction was made in the first
28423d9a 8184 place. Please speak up now, if you are aware of software that requires
82c8e3e6
LP
8185 this behaviour, otherwise we'll remove the restriction in v238.
8186
95894b91
LP
8187 * A new environment variable $SYSTEMD_OFFLINE is now understood by
8188 systemctl. It takes a boolean argument. If on, systemctl assumes it
8189 operates on an "offline" OS tree, and will not attempt to talk to the
8190 service manager. Previously, this mode was implicitly enabled if a
8191 chroot() environment was detected, and this new environment variable
8192 now provides explicit control.
8193
1a0cd2c7
ZJS
8194 * .path and .socket units may now be created transiently, too.
8195 Previously only service, mount, automount and timer units were
95894b91
LP
8196 supported as transient units. The systemd-run tool has been updated
8197 to expose this new functionality, you may hence use it now to bind
8198 arbitrary commands to path or socket activation on-the-fly from the
1a0cd2c7
ZJS
8199 command line. Moreover, almost all properties are now exposed for the
8200 unit types that already supported transient operation.
95894b91
LP
8201
8202 * The systemd-mount command gained support for a new --owner= parameter
8203 which takes a user name, which is then resolved and included in uid=
8204 and gid= mount options string of the file system to mount.
8205
8206 * A new unit condition ConditionControlGroupController= has been added
8207 that checks whether a specific cgroup controller is available.
8208
8209 * Unit files, udev's .link files, and systemd-networkd's .netdev and
8210 .network files all gained support for a new condition
8211 ConditionKernelVersion= for checking against specific kernel
8212 versions.
8213
8214 * In systemd-networkd, the [IPVLAN] section in .netdev files gained
6cddc792 8215 support for configuring device flags in the Flags= setting. In the
95894b91 8216 same files, the [Tunnel] section gained support for configuring
33db1b90 8217 AllowLocalRemote=. The [Route] section in .network files gained
95894b91
LP
8218 support for configuring InitialCongestionWindow=,
8219 InitialAdvertisedReceiveWindow= and QuickAck=. The [DHCP] section now
8220 understands RapidCommit=.
8221
8222 * systemd-networkd's DHCPv6 support gained support for Prefix
8223 Delegation.
8224
8225 * sd-bus gained support for a new "watch-bind" feature. When this
8226 feature is enabled, an sd_bus connection may be set up to connect to
8227 an AF_UNIX socket in the file system as soon as it is created. This
8228 functionality is useful for writing early-boot services that
8229 automatically connect to the system bus as soon as it is started,
8230 without ugly time-based polling. systemd-networkd and
8231 systemd-resolved have been updated to make use of this
8232 functionality. busctl exposes this functionality in a new
8233 --watch-bind= command line switch.
8234
8235 * sd-bus will now optionally synthesize a local "Connected" signal as
8236 soon as a D-Bus connection is set up fully. This message mirrors the
8237 already existing "Disconnected" signal which is synthesized when the
8238 connection is terminated. This signal is generally useful but
8239 particularly handy in combination with the "watch-bind" feature
8240 described above. Synthesizing of this message has to be requested
8241 explicitly through the new API call sd_bus_set_connected_signal(). In
8242 addition a new call sd_bus_is_ready() has been added that checks
caf2a2d8 8243 whether a connection is fully set up (i.e. between the "Connected" and
95894b91
LP
8244 "Disconnected" signals).
8245
8246 * sd-bus gained two new calls sd_bus_request_name_async() and
8247 sd_bus_release_name_async() for asynchronously registering bus
8248 names. Similar, there is now sd_bus_add_match_async() for installing
8249 a signal match asynchronously. All of systemd's own services have
8250 been updated to make use of these calls. Doing these operations
8251 asynchronously has two benefits: it reduces the risk of deadlocks in
8252 case of cyclic dependencies between bus services, and it speeds up
8253 service initialization since synchronization points for bus
8254 round-trips are removed.
8255
8256 * sd-bus gained two new calls sd_bus_match_signal() and
8257 sd_bus_match_signal_async(), which are similar to sd_bus_add_match()
8258 and sd_bus_add_match_async() but instead of taking a D-Bus match
8259 string take match fields as normal function parameters.
8260
8261 * sd-bus gained two new calls sd_bus_set_sender() and
8262 sd_bus_message_set_sender() for setting the sender name of outgoing
8263 messages (either for all outgoing messages or for just one specific
8264 one). These calls are only useful in direct connections as on
8265 brokered connections the broker fills in the sender anyway,
8266 overwriting whatever the client filled in.
8267
8268 * sd-event gained a new pseudo-handle that may be specified on all API
8269 calls where an "sd_event*" object is expected: SD_EVENT_DEFAULT. When
8270 used this refers to the default event loop object of the calling
8271 thread. Note however that this does not implicitly allocate one —
6cddc792
CR
8272 which has to be done prior by using sd_event_default(). Similarly
8273 sd-bus gained three new pseudo-handles SD_BUS_DEFAULT,
95894b91
LP
8274 SD_BUS_DEFAULT_USER, SD_BUS_DEFAULT_SYSTEM that may be used to refer
8275 to the default bus of the specified type of the calling thread. Here
8276 too this does not implicitly allocate bus connection objects, this
8277 has to be done prior with sd_bus_default() and friends.
8278
8279 * sd-event gained a new call pair
6cddc792
CR
8280 sd_event_source_{get|set}_io_fd_own(). This may be used to request
8281 automatic closure of the file descriptor an IO event source watches
95894b91
LP
8282 when the event source is destroyed.
8283
8284 * systemd-networkd gained support for natively configuring WireGuard
8285 connections.
8286
6cddc792
CR
8287 * In previous versions systemd synthesized user records both for the
8288 "nobody" (UID 65534) and "root" (UID 0) users in nss-systemd and
8289 internally. In order to simplify distribution-wide renames of the
95894b91
LP
8290 "nobody" user (like it is planned in Fedora: nfsnobody → nobody), a
8291 new transitional flag file has been added: if
8292 /etc/systemd/dont-synthesize-nobody exists synthesizing of the 65534
8293 user and group record within the systemd codebase is disabled.
8294
8295 * systemd-notify gained a new --uid= option for selecting the source
8296 user/UID to use for notification messages sent to the service
8297 manager.
8298
31751f7e 8299 * journalctl gained a new --grep= option to list only entries in which
e6501af8
ZJS
8300 the message matches a certain pattern. By default matching is case
8301 insensitive if the pattern is lowercase, and case sensitive
8302 otherwise. Option --case-sensitive=yes|no can be used to override
8303 this an specify case sensitivity or case insensitivity.
8304
56a29112 8305 * There's now a "systemd-analyze service-watchdogs" command for printing
508058c9 8306 the current state of the service runtime watchdog, and optionally
56a29112 8307 enabling or disabling the per-service watchdogs system-wide if given a
508058c9
LP
8308 boolean argument (i.e. the concept you configure in WatchdogSec=), for
8309 debugging purposes. There's also a kernel command line option
56a29112 8310 systemd.service_watchdogs= for controlling the same.
508058c9
LP
8311
8312 * Two new "log-level" and "log-target" options for systemd-analyze were
bc99dac5 8313 added that merge the now deprecated get-log-level, set-log-level and
508058c9
LP
8314 get-log-target, set-log-target pairs. The deprecated options are still
8315 understood for backwards compatibility. The two new options print the
8316 current value when no arguments are given, and set them when a
56a29112 8317 level/target is given as an argument.
95894b91 8318
508058c9
LP
8319 * sysusers.d's "u" lines now optionally accept both a UID and a GID
8320 specification, separated by a ":" character, in order to create users
8321 where UID and GID do not match.
8322
95894b91 8323 Contributions from: Adam Duskett, Alan Jenkins, Alexander Kuleshov,
508058c9
LP
8324 Alexis Deruelle, Andrew Jeddeloh, Armin Widegreen, Batuhan Osman
8325 Taşkaya, Björn Esser, bleep_blop, Bruce A. Johnson, Chris Down, Clinton
8326 Roy, Colin Walters, Daniel Rusek, Dimitri John Ledkov, Dmitry Rozhkov,
8327 Evgeny Vereshchagin, Ewout van Mansom, Felipe Sateler, Franck Bui,
8328 Frantisek Sumsal, George Gaydarov, Gianluca Boiano, Hans-Christian
8329 Noren Egtvedt, Hans de Goede, Henrik Grindal Bakken, Jan Alexander
8330 Steffens, Jan Klötzke, Jason A. Donenfeld, jdkbx, Jérémy Rosen,
8331 Jerónimo Borque, John Lin, John Paul Herold, Jonathan Rudenberg, Jörg
8332 Thalheim, Ken (Bitsko) MacLeod, Larry Bernstone, Lennart Poettering,
8333 Lucas Werkmeister, Maciej S. Szmigiero, Marek Čermák, Martin Pitt,
8334 Mathieu Malaterre, Matthew Thode, Matthias-Christian Ott, Max Harmathy,
8335 Michael Biebl, Michael Vogt, Michal Koutný, Michal Sekletar, Michał
8336 Szczepański, Mike Gilbert, Nathaniel McCallum, Nicolas Chauvet, Olaf
8337 Hering, Olivier Schwander, Patrik Flykt, Paul Cercueil, Peter Hutterer,
8338 Piotr Drąg, Raphael Vogelgsang, Reverend Homer, Robert Kolchmeyer,
8339 Samuel Dionne-Riel, Sergey Ptashnick, Shawn Landden, Susant Sahani,
8340 Sylvain Plantefève, Thomas H. P. Andersen, Thomas Huth, Tomasz
8341 Bachorski, Vladislav Vishnyakov, Wieland Hoffmann, Yu Watanabe, Zachary
8342 Winnerman, Zbigniew Jędrzejewski-Szmek, Дамјан Георгиевски, Дилян
8343 Палаузов
8344
8345 — Brno, 2018-01-28
2b0c59ba 8346
a1b2c92d 8347CHANGES WITH 236:
195b943d 8348
89780840
ZJS
8349 * The modprobe.d/ drop-in for the bonding.ko kernel module introduced
8350 in v235 has been extended to also set the dummy.ko module option
8351 numdummies=0, preventing the kernel from automatically creating
8352 dummy0. All dummy interfaces must now be explicitly created.
195b943d 8353
3925496a
LP
8354 * Unknown '%' specifiers in configuration files are now rejected. This
8355 applies to units and tmpfiles.d configuration. Any percent characters
8356 that are followed by a letter or digit that are not supposed to be
8357 interpreted as the beginning of a specifier should be escaped by
8358 doubling ("%%"). (So "size=5%" is still accepted, as well as
8359 "size=5%,foo=bar", but not "LABEL=x%y%z" since %y and %z are not
8360 valid specifiers today.)
751223fe 8361
e6b2d948 8362 * systemd-resolved now maintains a new dynamic
89780840
ZJS
8363 /run/systemd/resolve/stub-resolv.conf compatibility file. It is
8364 recommended to make /etc/resolv.conf a symlink to it. This file
8365 points at the systemd-resolved stub DNS 127.0.0.53 resolver and
8366 includes dynamically acquired search domains, achieving more correct
8367 DNS resolution by software that bypasses local DNS APIs such as NSS.
e6b2d948 8368
67eb5b38
LP
8369 * The "uaccess" udev tag has been dropped from /dev/kvm and
8370 /dev/dri/renderD*. These devices now have the 0666 permissions by
8371 default (but this may be changed at build-time). /dev/dri/renderD*
8372 will now be owned by the "render" group along with /dev/kfd.
8373
89780840
ZJS
8374 * "DynamicUser=yes" has been enabled for systemd-timesyncd.service,
8375 systemd-journal-gatewayd.service and
8376 systemd-journal-upload.service. This means "nss-systemd" must be
8377 enabled in /etc/nsswitch.conf to ensure the UIDs assigned to these
8378 services are resolved properly.
67eb5b38 8379
3925496a
LP
8380 * In /etc/fstab two new mount options are now understood:
8381 x-systemd.makefs and x-systemd.growfs. The former has the effect that
8382 the configured file system is formatted before it is mounted, the
8383 latter that the file system is resized to the full block device size
8384 after it is mounted (i.e. if the file system is smaller than the
8385 partition it resides on, it's grown). This is similar to the fsck
8386 logic in /etc/fstab, and pulls in systemd-makefs@.service and
8387 systemd-growfs@.service as necessary, similar to
8388 systemd-fsck@.service. Resizing is currently only supported on ext4
8389 and btrfs.
8390
67eb5b38
LP
8391 * In systemd-networkd, the IPv6 RA logic now optionally may announce
8392 DNS server and domain information.
8393
8394 * Support for the LUKS2 on-disk format for encrypted partitions has
8395 been added. This requires libcryptsetup2 during compilation and
8396 runtime.
8397
89780840 8398 * The systemd --user instance will now signal "readiness" when its
67eb5b38
LP
8399 basic.target unit has been reached, instead of when the run queue ran
8400 empty for the first time.
8401
8ea2dcb0
ZJS
8402 * Tmpfiles.d with user configuration are now also supported.
8403 systemd-tmpfiles gained a new --user switch, and snippets placed in
8404 ~/.config/user-tmpfiles.d/ and corresponding directories will be
8405 executed by systemd-tmpfiles --user running in the new
8406 systemd-tmpfiles-setup.service and systemd-tmpfiles-clean.service
8407 running in the user session.
8408
8409 * Unit files and tmpfiles.d snippets learnt three new % specifiers:
8410 %S resolves to the top-level state directory (/var/lib for the system
8411 instance, $XDG_CONFIG_HOME for the user instance), %C resolves to the
8412 top-level cache directory (/var/cache for the system instance,
8413 $XDG_CACHE_HOME for the user instance), %L resolves to the top-level
8414 logs directory (/var/log for the system instance,
67eb5b38 8415 $XDG_CONFIG_HOME/log/ for the user instance). This matches the
8ea2dcb0 8416 existing %t specifier, that resolves to the top-level runtime
67eb5b38
LP
8417 directory (/run for the system instance, and $XDG_RUNTIME_DIR for the
8418 user instance).
8419
8420 * journalctl learnt a new parameter --output-fields= for limiting the
8421 set of journal fields to output in verbose and JSON output modes.
8422
8423 * systemd-timesyncd's configuration file gained a new option
89780840
ZJS
8424 RootDistanceMaxSec= for setting the maximum root distance of servers
8425 it'll use, as well as the new options PollIntervalMinSec= and
8426 PollIntervalMaxSec= to tweak the minimum and maximum poll interval.
67eb5b38
LP
8427
8428 * bootctl gained a new command "list" for listing all available boot
89780840 8429 menu items on systems that follow the boot loader specification.
67eb5b38
LP
8430
8431 * systemctl gained a new --dry-run switch that shows what would be done
8432 instead of doing it, and is currently supported by the shutdown and
8433 sleep verbs.
8434
e9ad86d5 8435 * ConditionSecurity= can now detect the TOMOYO security module.
67eb5b38
LP
8436
8437 * Unit file [Install] sections are now also respected in unit drop-in
89780840 8438 files. This is intended to be used by drop-ins under /usr/lib/.
67eb5b38 8439
89780840 8440 * systemd-firstboot may now also set the initial keyboard mapping.
67eb5b38 8441
89780840
ZJS
8442 * Udev "changed" events for devices which are exposed as systemd
8443 .device units are now propagated to units specified in
8444 ReloadPropagatedFrom= as reload requests.
67eb5b38 8445
89780840
ZJS
8446 * If a udev device has a SYSTEMD_WANTS= property containing a systemd
8447 unit template name (i.e. a name in the form of 'foobar@.service',
8448 without the instance component between the '@' and - the '.'), then
8449 the escaped sysfs path of the device is automatically used as the
8450 instance.
67eb5b38
LP
8451
8452 * SystemCallFilter= in unit files has been extended so that an "errno"
8453 can be specified individually for each system call. Example:
8454 SystemCallFilter=~uname:EILSEQ.
8455
8456 * The cgroup delegation logic has been substantially updated. Delegate=
8457 now optionally takes a list of controllers (instead of a boolean, as
8458 before), which lists the controllers to delegate at least.
8459
89780840 8460 * The networkd DHCPv6 client now implements the FQDN option (RFC 4704).
67eb5b38 8461
89780840
ZJS
8462 * A new LogLevelMax= setting configures the maximum log level any
8463 process of the service may log at (i.e. anything with a lesser
8464 priority than what is specified is automatically dropped). A new
8465 LogExtraFields= setting allows configuration of additional journal
8466 fields to attach to all log records generated by any of the unit's
8467 processes.
67eb5b38 8468
89780840
ZJS
8469 * New StandardInputData= and StandardInputText= settings along with the
8470 new option StandardInput=data may be used to configure textual or
8471 binary data that shall be passed to the executed service process via
8472 standard input, encoded in-line in the unit file.
67eb5b38
LP
8473
8474 * StandardInput=, StandardOutput= and StandardError= may now be used to
8475 connect stdin/stdout/stderr of executed processes directly with a
8476 file or AF_UNIX socket in the file system, using the new "file:" option.
8477
89780840
ZJS
8478 * A new unit file option CollectMode= has been added, that allows
8479 tweaking the garbage collection logic for units. It may be used to
8480 tell systemd to garbage collect units that have failed automatically
8481 (normally it only GCs units that exited successfully). systemd-run
8482 and systemd-mount expose this new functionality with a new -G option.
8483
67eb5b38
LP
8484 * "machinectl bind" may now be used to bind mount non-directories
8485 (i.e. regularfiles, devices, fifos, sockets).
8486
8487 * systemd-analyze gained a new verb "calendar" for validating and
8488 testing calendar time specifications to use for OnCalendar= in timer
8489 units. Besides validating the expression it will calculate the next
8490 time the specified expression would elapse.
8491
8492 * In addition to the pre-existing FailureAction= unit file setting
89780840
ZJS
8493 there's now SuccessAction=, for configuring a shutdown action to
8494 execute when a unit completes successfully. This is useful in
8495 particular inside containers that shall terminate after some workload
8496 has been completed. Also, both options are now supported for all unit
8497 types, not just services.
67eb5b38
LP
8498
8499 * networkds's IP rule support gained two new options
dd014eeb 8500 IncomingInterface= and OutgoingInterface= for configuring the incoming
67eb5b38
LP
8501 and outgoing interfaces of configured rules. systemd-networkd also
8502 gained support for "vxcan" network devices.
8503
8504 * networkd gained a new setting RequiredForOnline=, taking a
8505 boolean. If set, systemd-wait-online will take it into consideration
8506 when determining that the system is up, otherwise it will ignore the
8507 interface for this purpose.
8508
8509 * The sd_notify() protocol gained support for a new operation: with
8510 FDSTOREREMOVE=1 file descriptors may be removed from the per-service
8511 store again, ahead of POLLHUP or POLLERR when they are removed
8512 anyway.
8513
f09eb768
LP
8514 * A new document doc/UIDS-GIDS.md has been added to the source tree,
8515 that documents the UID/GID range and assignment assumptions and
3925496a
LP
8516 requirements of systemd.
8517
8518 * The watchdog device PID 1 will ping may now be configured through the
8519 WatchdogDevice= configuration file setting, or by setting the
8520 systemd.watchdog_service= kernel commandline option.
8521
8522 * systemd-resolved's gained support for registering DNS-SD services on
8523 the local network using MulticastDNS. Services may either be
8524 registered by dropping in a .dnssd file in /etc/systemd/dnssd/ (or
8525 the same dir below /run, /usr/lib), or through its D-Bus API.
8526
a327431b
DB
8527 * The sd_notify() protocol can now with EXTEND_TIMEOUT_USEC=microsecond
8528 extend the effective start, runtime, and stop time. The service must
8529 continue to send EXTEND_TIMEOUT_USEC within the period specified to
8530 prevent the service manager from making the service as timedout.
8531
ea2a3c9e
LP
8532 * systemd-resolved's DNSSEC support gained support for RFC 8080
8533 (Ed25519 keys and signatures).
8534
a1b2c92d
LP
8535 * The systemd-resolve command line tool gained a new set of options
8536 --set-dns=, --set-domain=, --set-llmnr=, --set-mdns=, --set-dnssec=,
8537 --set-nta= and --revert to configure per-interface DNS configuration
8538 dynamically during runtime. It's useful for pushing DNS information
8539 into systemd-resolved from DNS hook scripts that various interface
8540 managing software supports (such as pppd).
8541
8542 * systemd-nspawn gained a new --network-namespace-path= command line
8543 option, which may be used to make a container join an existing
8544 network namespace, by specifying a path to a "netns" file.
8545
3925496a
LP
8546 Contributions from: Alan Jenkins, Alan Robertson, Alessandro Ghedini,
8547 Andrew Jeddeloh, Antonio Rojas, Ari, asavah, bleep_blop, Carsten
8548 Strotmann, Christian Brauner, Christian Hesse, Clinton Roy, Collin
ea2a3c9e 8549 Eggert, Cong Wang, Daniel Black, Daniel Lockyer, Daniel Rusek, Dimitri
a1b2c92d
LP
8550 John Ledkov, Dmitry Rozhkov, Dongsu Park, Edward A. James, Evgeny
8551 Vereshchagin, Florian Klink, Franck Bui, Gwendal Grignou, Hans de
8552 Goede, Harald Hoyer, Hristo Venev, Iago López Galeiras, Ikey Doherty,
8553 Jakub Wilk, Jérémy Rosen, Jiahui Xie, John Lin, José Bollo, Josef
8554 Andersson, juga0, Krzysztof Nowicki, Kyle Walker, Lars Karlitski, Lars
8555 Kellogg-Stedman, Lauri Tirkkonen, Lennart Poettering, Lubomir Rintel,
8556 Luca Bruno, Lucas Werkmeister, Lukáš Nykrýn, Lukáš Říha, Lukasz
8557 Rubaszewski, Maciej S. Szmigiero, Mantas Mikulėnas, Marcus Folkesson,
8558 Martin Steuer, Mathieu Trudel-Lapierre, Matija Skala,
8559 Matthias-Christian Ott, Max Resch, Michael Biebl, Michael Vogt, Michal
8560 Koutný, Michal Sekletar, Mike Gilbert, Muhammet Kara, Neil Brown, Olaf
8561 Hering, Ondrej Kozina, Patrik Flykt, Patryk Kocielnik, Peter Hutterer,
8562 Piotr Drąg, Razvan Cojocaru, Robin McCorkell, Roland Hieber, Saran
8563 Tunyasuvunakool, Sergey Ptashnick, Shawn Landden, Shuang Liu, Simon
8564 Arlott, Simon Peeters, Stanislav Angelovič, Stefan Agner, Susant
8565 Sahani, Sylvain Plantefève, Thomas Blume, Thomas Haller, Tiago Salem
8566 Herrmann, Tinu Weber, Tom Stellard, Topi Miettinen, Torsten Hilbrich,
8567 Vito Caputo, Vladislav Vishnyakov, WaLyong Cho, Yu Watanabe, Zbigniew
8568 Jędrzejewski-Szmek, Zeal Jagannatha
67eb5b38 8569
ea2a3c9e 8570 — Berlin, 2017-12-14
3754abc5 8571
582faeb4
DJL
8572CHANGES WITH 235:
8573
2bcbffd6
LP
8574 * INCOMPATIBILITY: systemd-logind.service and other long-running
8575 services now run inside an IPv4/IPv6 sandbox, prohibiting them any IP
8576 communication with the outside. This generally improves security of
8577 the system, and is in almost all cases a safe and good choice, as
23d37367 8578 these services do not and should not provide any network-facing
2bcbffd6
LP
8579 functionality. However, systemd-logind uses the glibc NSS API to
8580 query the user database. This creates problems on systems where NSS
8581 is set up to directly consult network services for user database
8582 lookups. In particular, this creates incompatibilities with the
8583 "nss-nis" module, which attempts to directly contact the NIS/YP
8584 network servers it is configured for, and will now consistently
8585 fail. In such cases, it is possible to turn off IP sandboxing for
8586 systemd-logind.service (set IPAddressDeny= in its [Service] section
8587 to the empty string, via a .d/ unit file drop-in). Downstream
8588 distributions might want to update their nss-nis packaging to include
8589 such a drop-in snippet, accordingly, to hide this incompatibility
8590 from the user. Another option is to make use of glibc's nscd service
8591 to proxy such network requests through a privilege-separated, minimal
8592 local caching daemon, or to switch to more modern technologies such
8593 sssd, whose NSS hook-ups generally do not involve direct network
8594 access. In general, we think it's definitely time to question the
8595 implementation choices of nss-nis, i.e. whether it's a good idea
8596 today to embed a network-facing loadable module into all local
8597 processes that need to query the user database, including the most
8598 trivial and benign ones, such as "ls". For more details about
8599 IPAddressDeny= see below.
8600
fccf5419
LP
8601 * A new modprobe.d drop-in is now shipped by default that sets the
8602 bonding module option max_bonds=0. This overrides the kernel default,
8603 to avoid conflicts and ambiguity as to whether or not bond0 should be
8604 managed by systemd-networkd or not. This resolves multiple issues
8605 with bond0 properties not being applied, when bond0 is configured
8606 with systemd-networkd. Distributors may choose to not package this,
8607 however in that case users will be prevented from correctly managing
8608 bond0 interface using systemd-networkd.
582faeb4 8609
ef5a8cb1 8610 * systemd-analyze gained new verbs "get-log-level" and "get-log-target"
21723f53
ZJS
8611 which print the logging level and target of the system manager. They
8612 complement the existing "set-log-level" and "set-log-target" verbs
8613 used to change those values.
ef5a8cb1 8614
fccf5419
LP
8615 * journald.conf gained a new boolean setting ReadKMsg= which defaults
8616 to on. If turned off kernel log messages will not be read by
21723f53
ZJS
8617 systemd-journald or included in the logs. It also gained a new
8618 setting LineMax= for configuring the maximum line length in
8619 STDOUT/STDERR log streams. The new default for this value is 48K, up
8620 from the previous hardcoded 2048.
fccf5419 8621
21723f53
ZJS
8622 * A new unit setting RuntimeDirectoryPreserve= has been added, which
8623 allows more detailed control of what to do with a runtime directory
8624 configured with RuntimeDirectory= (i.e. a directory below /run or
8625 $XDG_RUNTIME_DIR) after a unit is stopped.
fccf5419
LP
8626
8627 * The RuntimeDirectory= setting for units gained support for creating
8628 deeper subdirectories below /run or $XDG_RUNTIME_DIR, instead of just
8629 one top-level directory.
8630
8631 * Units gained new options StateDirectory=, CacheDirectory=,
8632 LogsDirectory= and ConfigurationDirectory= which are closely related
8633 to RuntimeDirectory= but manage per-service directories below
21723f53 8634 /var/lib, /var/cache, /var/log and /etc. By making use of them it is
fccf5419
LP
8635 possible to write unit files which when activated automatically gain
8636 properly owned service specific directories in these locations, thus
8637 making unit files self-contained and increasing compatibility with
8638 stateless systems and factory reset where /etc or /var are
8639 unpopulated at boot. Matching these new settings there's also
8640 StateDirectoryMode=, CacheDirectoryMode=, LogsDirectoryMode=,
8641 ConfigurationDirectoryMode= for configuring the access mode of these
75dfbbac
LP
8642 directories. These settings are particularly useful in combination
8643 with DynamicUser=yes as they provide secure, properly-owned,
8644 writable, and stateful locations for storage, excluded from the
8645 sandbox that such services live in otherwise.
fccf5419
LP
8646
8647 * Automake support has been removed from this release. systemd is now
8648 Meson-only.
8649
8650 * systemd-journald will now aggressively cache client metadata during
8651 runtime, speeding up log write performance under pressure. This comes
8652 at a small price though: as much of the metadata is read
8653 asynchronously from /proc/ (and isn't implicitly attached to log
8654 datagrams by the kernel, like UID/GID/PID/SELinux are) this means the
8655 metadata stored alongside a log entry might be slightly
8656 out-of-date. Previously it could only be slightly newer than the log
8657 message. The time window is small however, and given that the kernel
8658 is unlikely to be improved anytime soon in this regard, this appears
8659 acceptable to us.
8660
8661 * nss-myhostname/systemd-resolved will now by default synthesize an
8662 A/AAAA resource record for the "_gateway" hostname, pointing to the
8663 current default IP gateway. Previously it did that for the "gateway"
8664 name, hampering adoption, as some distributions wanted to leave that
38b38500 8665 hostname open for local use. The old behaviour may still be
fccf5419
LP
8666 requested at build time.
8667
8668 * systemd-networkd's [Address] section in .network files gained a new
8669 Scope= setting for configuring the IP address scope. The [Network]
8670 section gained a new boolean setting ConfigureWithoutCarrier= that
8671 tells systemd-networkd to ignore link sensing when configuring the
8672 device. The [DHCP] section gained a new Anonymize= boolean option for
8673 turning on a number of options suggested in RFC 7844. A new
8674 [RoutingPolicyRule] section has been added for configuring the IP
8675 routing policy. The [Route] section has gained support for a new
8676 Type= setting which permits configuring
8677 blackhole/unreachable/prohibit routes.
8678
8679 * The [VRF] section in .netdev files gained a new Table= setting for
8680 configuring the routing table to use. The [Tunnel] section gained a
8681 new Independent= boolean field for configuring tunnels independent of
8682 an underlying network interface. The [Bridge] section gained a new
8683 GroupForwardMask= option for configuration of propagation of link
8684 local frames between bridge ports.
8685
8686 * The WakeOnLan= setting in .link files gained support for a number of
8687 new modes. A new TCP6SegmentationOffload= setting has been added for
8688 configuring TCP/IPv6 hardware segmentation offload.
8689
8690 * The IPv6 RA sender implementation may now optionally send out RDNSS
21723f53 8691 and RDNSSL records to supply DNS configuration to peers.
fccf5419
LP
8692
8693 * systemd-nspawn gained support for a new --system-call-filter= command
21723f53
ZJS
8694 line option for adding and removing entries in the default system
8695 call filter it applies. Moreover systemd-nspawn has been changed to
6b000af4 8696 implement a system call allow list instead of a deny list.
fccf5419
LP
8697
8698 * systemd-run gained support for a new --pipe command line option. If
8699 used the STDIN/STDOUT/STDERR file descriptors passed to systemd-run
8700 are directly passed on to the activated transient service
21723f53
ZJS
8701 executable. This allows invoking arbitrary processes as systemd
8702 services (for example to take benefit of dependency management,
8703 accounting management, resource management or log management that is
8704 done automatically for services) — while still allowing them to be
fccf5419
LP
8705 integrated in a classic UNIX shell pipeline.
8706
8707 * When a service sends RELOAD=1 via sd_notify() and reload propagation
8708 using ReloadPropagationTo= is configured, a reload is now propagated
8709 to configured units. (Previously this was only done on explicitly
8710 requested reloads, using "systemctl reload" or an equivalent
8711 command.)
8712
8713 * For each service unit a restart counter is now kept: it is increased
8714 each time the service is restarted due to Restart=, and may be
8715 queried using "systemctl show -p NRestarts …".
8716
44898c53
LP
8717 * New system call filter groups @aio, @sync, @chown, @setuid, @memlock,
8718 @signal and @timer have been added, for usage with SystemCallFilter=
fccf5419
LP
8719 in unit files and the new --system-call-filter= command line option
8720 of systemd-nspawn (see above).
8721
8722 * ExecStart= lines in unit files gained two new modifiers: when a
8723 command line is prefixed with "!" the command will be executed as
8724 configured, except for the credentials applied by
8725 setuid()/setgid()/setgroups(). It is very similar to the pre-existing
8726 "+", but does still apply namespacing options unlike "+". There's
8727 also "!!" now, which is mostly identical, but becomes a NOP on
8728 systems that support ambient capabilities. This is useful to write
8729 unit files that work with ambient capabilities where possible but
8730 automatically fall back to traditional privilege dropping mechanisms
8731 on systems where this is not supported.
8732
8733 * ListenNetlink= settings in socket units now support RDMA netlink
8734 sockets.
8735
8736 * A new unit file setting LockPersonality= has been added which permits
8737 locking down the chosen execution domain ("personality") of a service
8738 during runtime.
8739
8740 * A new special target "getty-pre.target" has been added, which is
8741 ordered before all text logins, and may be used to order services
21723f53 8742 before textual logins acquire access to the console.
fccf5419
LP
8743
8744 * systemd will now attempt to load the virtio-rng.ko kernel module very
8745 early on if a VM environment supporting this is detected. This should
8746 improve entropy during early boot in virtualized environments.
8747
8748 * A _netdev option is now supported in /etc/crypttab that operates in a
8749 similar way as the same option in /etc/fstab: it permits configuring
21723f53
ZJS
8750 encrypted devices that need to be ordered after the network is up.
8751 Following this logic, two new special targets
fccf5419 8752 remote-cryptsetup-pre.target and remote-cryptsetup.target have been
21723f53
ZJS
8753 added that are to cryptsetup.target what remote-fs.target and
8754 remote-fs-pre.target are to local-fs.target.
fccf5419
LP
8755
8756 * Service units gained a new UnsetEnvironment= setting which permits
21723f53
ZJS
8757 unsetting specific environment variables for services that are
8758 normally passed to it (for example in order to mask out locale
fccf5419
LP
8759 settings for specific services that can't deal with it).
8760
8761 * Units acquired a new boolean option IPAccounting=. When turned on, IP
8762 traffic accounting (packet count as well as byte count) is done for
8763 the service, and shown as part of "systemctl status" or "systemd-run
8764 --wait".
8765
8766 * Service units acquired two new options IPAddressAllow= and
8767 IPAddressDeny=, taking a list of IPv4 or IPv6 addresses and masks,
8768 for configuring a simple IP access control list for all sockets of
8769 the unit. These options are available also on .slice and .socket
8770 units, permitting flexible access list configuration for individual
8771 services as well as groups of services (as defined by a slice unit),
8772 including system-wide. Note that IP ACLs configured this way are
8773 enforced on every single IPv4 and IPv6 socket created by any process
8774 of the service unit, and apply to ingress as well as egress traffic.
8775
21723f53 8776 * If CPUAccounting= or IPAccounting= is turned on for a unit a new
608f70e6 8777 structured log message is generated each time the unit is stopped,
fccf5419
LP
8778 containing information about the consumed resources of this
8779 invocation.
8780
8781 * A new setting KeyringMode= has been added to unit files, which may be
8782 used to control how the kernel keyring is set up for executed
8783 processes.
8784
e06fafb2
LP
8785 * "systemctl poweroff", "systemctl reboot", "systemctl halt",
8786 "systemctl kexec" and "systemctl exit" are now always asynchronous in
8787 behaviour (that is: these commands return immediately after the
21723f53
ZJS
8788 operation was enqueued instead of waiting for the operation to
8789 complete). Previously, "systemctl poweroff" and "systemctl reboot"
e06fafb2
LP
8790 were asynchronous on systems using systemd-logind (i.e. almost
8791 always, and like they were on sysvinit), and the other three commands
8792 were unconditionally synchronous. With this release this is cleaned
8793 up, and callers will see the same asynchronous behaviour on all
8794 systems for all five operations.
8795
8796 * systemd-logind gained new Halt() and CanHalt() bus calls for halting
8797 the system.
8798
fccf5419
LP
8799 * .timer units now accept calendar specifications in other timezones
8800 than UTC or the local timezone.
8801
f6e64b78 8802 * The tmpfiles snippet var.conf has been changed to create
21723f53
ZJS
8803 /var/log/btmp with access mode 0660 instead of 0600. It was owned by
8804 the "utmp" group already, and it appears to be generally understood
8805 that members of "utmp" can modify/flush the utmp/wtmp/lastlog/btmp
8806 databases. Previously this was implemented correctly for all these
8807 databases excepts btmp, which has been opened up like this now
8808 too. Note that while the other databases are world-readable
8809 (i.e. 0644), btmp is not and remains more restrictive.
f6e64b78 8810
d55b0463
LP
8811 * The systemd-resolve tool gained a new --reset-server-features
8812 switch. When invoked like this systemd-resolved will forget
8813 everything it learnt about the features supported by the configured
8814 upstream DNS servers, and restarts the feature probing logic on the
cf84484a
LP
8815 next resolver look-up for them at the highest feature level
8816 again.
8817
8818 * The status dump systemd-resolved sends to the logs upon receiving
8819 SIGUSR1 now also includes information about all DNS servers it is
8820 configured to use, and the features levels it probed for them.
d55b0463 8821
fccf5419
LP
8822 Contributions from: Abdó Roig-Maranges, Alan Jenkins, Alexander
8823 Kuleshov, Andreas Rammhold, Andrew Jeddeloh, Andrew Soutar, Ansgar
76451c1d
LP
8824 Burchardt, Beniamino Galvani, Benjamin Berg, Benjamin Robin, Charles
8825 Huber, Christian Hesse, Daniel Berrange, Daniel Kahn Gillmor, Daniel
8826 Mack, Daniel Rusek, Daniel Șerbănescu, Davide Cavalca, Dimitri John
8827 Ledkov, Diogo Pereira, Djalal Harouni, Dmitriy Geels, Dmitry Torokhov,
8828 ettavolt, Evgeny Vereshchagin, Fabio Kung, Felipe Sateler, Franck Bui,
8829 Hans de Goede, Harald Hoyer, Insun Pyo, Ivan Kurnosov, Ivan Shapovalov,
8830 Jakub Wilk, Jan Synacek, Jason Gunthorpe, Jeremy Bicha, Jérémy Rosen,
8831 John Lin, jonasBoss, Jonathan Lebon, Jonathan Teh, Jon Ringle, Jörg
8832 Thalheim, Jouke Witteveen, juga0, Justin Capella, Justin Michaud,
8833 Kai-Heng Feng, Lennart Poettering, Lion Yang, Luca Bruno, Lucas
8834 Werkmeister, Lukáš Nykrýn, Marcel Hollerbach, Marcus Lundblad, Martin
8835 Pitt, Michael Biebl, Michael Grzeschik, Michal Sekletar, Mike Gilbert,
8836 Neil Brown, Nicolas Iooss, Patrik Flykt, pEJipE, Piotr Drąg, Russell
8837 Stuart, S. Fan, Shengyao Xue, Stefan Pietsch, Susant Sahani, Tejun Heo,
8838 Thomas Miller, Thomas Sailer, Tobias Hunger, Tomasz Pala, Tom
8839 Gundersen, Tommi Rantala, Topi Miettinen, Torstein Husebø, userwithuid,
8840 Vasilis Liaskovitis, Vito Caputo, WaLyong Cho, William Douglas, Xiang
8841 Fan, Yu Watanabe, Zbigniew Jędrzejewski-Szmek
fccf5419 8842
c1719d8b 8843 — Berlin, 2017-10-06
fccf5419 8844
4b4da299
LP
8845CHANGES WITH 234:
8846
8847 * Meson is now supported as build system in addition to Automake. It is
8848 our plan to remove Automake in one of our next releases, so that
8849 Meson becomes our exclusive build system. Hence, please start using
8850 the Meson build system in your downstream packaging. There's plenty
8851 of documentation around how to use Meson, the extremely brief
8852 summary:
8853
8854 ./autogen.sh && ./configure && make && sudo make install
8855
8856 becomes:
8857
8858 meson build && ninja -C build && sudo ninja -C build install
8859
8860 * Unit files gained support for a new JobRunningTimeoutUSec= setting,
8861 which permits configuring a timeout on the time a job is
8862 running. This is particularly useful for setting timeouts on jobs for
8863 .device units.
8864
8865 * Unit files gained two new options ConditionUser= and ConditionGroup=
8866 for conditionalizing units based on the identity of the user/group
8867 running a systemd user instance.
8868
8869 * systemd-networkd now understands a new FlowLabel= setting in the
8870 [VXLAN] section of .network files, as well as a Priority= in
8871 [Bridge], GVRP= + MVRP= + LooseBinding= + ReorderHeader= in [VLAN]
8872 and GatewayOnlink= + IPv6Preference= + Protocol= in [Route]. It also
8873 gained support for configuration of GENEVE links, and IPv6 address
8874 labels. The [Network] section gained the new IPv6ProxyNDP= setting.
8875
9f09a95a 8876 * .link files now understand a new Port= setting.
4b4da299
LP
8877
8878 * systemd-networkd's DHCP support gained support for DHCP option 119
8879 (domain search list).
8880
8881 * systemd-networkd gained support for serving IPv6 address ranges using
bc99dac5 8882 the Router Advertisement protocol. The new .network configuration
4b4da299
LP
8883 section [IPv6Prefix] may be used to configure the ranges to
8884 serve. This is implemented based on a new, minimal, native server
8885 implementation of RA.
8886
8887 * journalctl's --output= switch gained support for a new parameter
8888 "short-iso-precise" for a mode where timestamps are shown as precise
8889 ISO date values.
8890
8891 * systemd-udevd's "net_id" builtin may now generate stable network
8892 interface names from IBM PowerVM VIO devices as well as ACPI platform
8893 devices.
8894
8895 * MulticastDNS support in systemd-resolved may now be explicitly
8896 enabled/disabled using the new MulticastDNS= configuration file
8897 option.
8898
8899 * systemd-resolved may now optionally use libidn2 instead of the libidn
7f7ab228
ZJS
8900 for processing internationalized domain names. Support for libidn2
8901 should be considered experimental and should not be enabled by
8902 default yet.
4b4da299
LP
8903
8904 * "machinectl pull-tar" and related call may now do verification of
8905 downloaded images using SUSE-style .sha256 checksum files in addition
8906 to the already existing support for validating using Ubuntu-style
8907 SHA256SUMS files.
8908
8909 * sd-bus gained support for a new sd_bus_message_appendv() call which
8910 is va_list equivalent of sd_bus_message_append().
8911
8912 * sd-boot gained support for validating images using SHIM/MOK.
8913
8914 * The SMACK code learnt support for "onlycap".
8915
8916 * systemd-mount --umount is now much smarter in figuring out how to
8917 properly unmount a device given its mount or device path.
5486a31d
ZJS
8918
8919 * The code to call libnss_dns as a fallback from libnss_resolve when
8920 the communication with systemd-resolved fails was removed. This
8921 fallback was redundant and interfered with the [!UNAVAIL=return]
8922 suffix. See nss-resolve(8) for the recommended configuration.
8923
9f09a95a
ZJS
8924 * systemd-logind may now be restarted without losing state. It stores
8925 the file descriptors for devices it manages in the system manager
38d93385 8926 using the FDSTORE= mechanism. Please note that further changes in
9f09a95a
ZJS
8927 other components may be required to make use of this (for example
8928 Xorg has code to listen for stops of systemd-logind and terminate
8929 itself when logind is stopped or restarted, in order to avoid using
8930 stale file descriptors for graphical devices, which is now
8931 counterproductive and must be reverted in order for restarts of
8932 systemd-logind to be safe. See
8933 https://cgit.freedesktop.org/xorg/xserver/commit/?id=dc48bd653c7e101.)
8934
d271c5d3 8935 * All kernel-install plugins are called with the environment variable
9d8813b3 8936 KERNEL_INSTALL_MACHINE_ID which is set to the machine ID given by
d271c5d3
ZJS
8937 /etc/machine-id. If the machine ID could not be determined,
8938 $KERNEL_INSTALL_MACHINE_ID will be empty. Plugins should not put
8939 anything in the entry directory (passed as the second argument) if
5238e957 8940 $KERNEL_INSTALL_MACHINE_ID is empty. For backwards compatibility, a
d271c5d3
ZJS
8941 temporary directory is passed as the entry directory and removed
8942 after all the plugins exit.
9d8813b3 8943
357376d0
DDM
8944 * If KERNEL_INSTALL_MACHINE_ID is set in /etc/machine-info, kernel-install
8945 will now use its value as the machine ID instead of the machine ID
8946 from /etc/machine-id. If KERNEL_INSTALL_MACHINE_ID isn't set in
8947 /etc/machine-info and no machine ID is set in /etc/machine-id,
8948 kernel-install will try to store the current machine ID there as
8949 KERNEL_INSTALL_MACHINE_ID. If there is no machine ID, kernel-install
8950 will generate a new UUID, store it in /etc/machine-info as
8951 KERNEL_INSTALL_MACHINE_ID and use it as the machine ID.
8952
184d2c15 8953 Contributions from: Adrian Heine né Lang, Aggelos Avgerinos, Alexander
ac172e52
LP
8954 Kurtz, Alexandros Frantzis, Alexey Brodkin, Alex Lu, Amir Pakdel, Amir
8955 Yalon, Anchor Cat, Anthony Parsons, Bastien Nocera, Benjamin Gilbert,
8956 Benjamin Robin, Boucman, Charles Plessy, Chris Chiu, Chris Lamb,
8957 Christian Brauner, Christian Hesse, Colin Walters, Daniel Drake,
184d2c15
LP
8958 Danielle Church, Daniel Molkentin, Daniel Rusek, Daniel Wang, Davide
8959 Cavalca, David Herrmann, David Michael, Dax Kelson, Dimitri John
8960 Ledkov, Djalal Harouni, Dušan Kazik, Elias Probst, Evgeny Vereshchagin,
8961 Federico Di Pierro, Felipe Sateler, Felix Zhang, Franck Bui, Gary
ac172e52
LP
8962 Tierney, George McCollister, Giedrius Statkevičius, Hans de Goede,
8963 hecke, Hendrik Westerberg, Hristo Venev, Ian Wienand, Insun Pyo, Ivan
8964 Shapovalov, James Cowgill, James Hemsing, Janne Heß, Jan Synacek, Jason
8965 Reeder, João Paulo Rechi Vita, John Paul Adrian Glaubitz, Jörg
8966 Thalheim, Josef Andersson, Josef Gajdusek, Julian Mehne, Kai Krakow,
8967 Krzysztof Jackiewicz, Lars Karlitski, Lennart Poettering, Lluís Gili,
8968 Lucas Werkmeister, Lukáš Nykrýn, Łukasz Stelmach, Mantas Mikulėnas,
8969 Marcin Bachry, Marcus Cooper, Mark Stosberg, Martin Pitt, Matija Skala,
8970 Matt Clarkson, Matthew Garrett, Matthias Greiner, Matthijs van Duin,
8971 Max Resch, Michael Biebl, Michal Koutný, Michal Sekletar, Michal
8972 Soltys, Michal Suchanek, Mike Gilbert, Nate Clark, Nathaniel R. Lewis,
8973 Neil Brown, Nikolai Kondrashov, Pascal S. de Kloe, Pat Riehecky, Patrik
8974 Flykt, Paul Kocialkowski, Peter Hutterer, Philip Withnall, Piotr
8975 Szydełko, Rafael Fontenelle, Ray Strode, Richard Maw, Roelf Wichertjes,
8976 Ronny Chevalier, Sarang S. Dalal, Sjoerd Simons, slodki, Stefan
8977 Schweter, Susant Sahani, Ted Wood, Thomas Blume, Thomas Haller, Thomas
184d2c15
LP
8978 H. P. Andersen, Timothée Ravier, Tobias Jungel, Tobias Stoeckmann, Tom
8979 Gundersen, Tom Yan, Torstein Husebø, Umut Tezduyar Lindskog,
ac172e52
LP
8980 userwithuid, Vito Caputo, Waldemar Brodkorb, WaLyong Cho, Yu, Li-Yu,
8981 Yusuke Nojima, Yu Watanabe, Zbigniew Jędrzejewski-Szmek, Дамјан
8982 Георгиевски
4b4da299 8983
ac172e52 8984 — Berlin, 2017-07-12
4b4da299 8985
a2b53448 8986CHANGES WITH 233:
d08ee7cb 8987
23eb30b3
ZJS
8988 * The "hybrid" control group mode has been modified to improve
8989 compatibility with "legacy" cgroups-v1 setups. Specifically, the
8990 "hybrid" setup of /sys/fs/cgroup is now pretty much identical to
8991 "legacy" (including /sys/fs/cgroup/systemd as "name=systemd" named
8992 cgroups-v1 hierarchy), the only externally visible change being that
8993 the cgroups-v2 hierarchy is also mounted, to
8994 /sys/fs/cgroup/unified. This should provide a large degree of
8995 compatibility with "legacy" cgroups-v1, while taking benefit of the
8996 better management capabilities of cgroups-v2.
8997
8998 * The default control group setup mode may be selected both a boot-time
8999 via a set of kernel command line parameters (specifically:
9000 systemd.unified_cgroup_hierarchy= and
9001 systemd.legacy_systemd_cgroup_controller=), as well as a compile-time
9002 default selected on the configure command line
9003 (--with-default-hierarchy=). The upstream default is "hybrid"
9004 (i.e. the cgroups-v1 + cgroups-v2 mixture discussed above) now, but
9005 this will change in a future systemd version to be "unified" (pure
9006 cgroups-v2 mode). The third option for the compile time option is
9007 "legacy", to enter pure cgroups-v1 mode. We recommend downstream
9008 distributions to default to "hybrid" mode for release distributions,
9009 starting with v233. We recommend "unified" for development
9010 distributions (specifically: distributions such as Fedora's rawhide)
9011 as that's where things are headed in the long run. Use "legacy" for
9012 greatest stability and compatibility only.
9013
9014 * Note one current limitation of "unified" and "hybrid" control group
9015 setup modes: the kernel currently does not permit the systemd --user
9016 instance (i.e. unprivileged code) to migrate processes between two
9017 disconnected cgroup subtrees, even if both are managed and owned by
9018 the user. This effectively means "systemd-run --user --scope" doesn't
9019 work when invoked from outside of any "systemd --user" service or
9020 scope. Specifically, it is not supported from session scopes. We are
9021 working on fixing this in a future systemd version. (See #3388 for
9022 further details about this.)
9023
fb7c4eff
MG
9024 * DBus policy files are now installed into /usr rather than /etc. Make
9025 sure your system has dbus >= 1.9.18 running before upgrading to this
9026 version, or override the install path with --with-dbuspolicydir= .
9027
23eb30b3
ZJS
9028 * All python scripts shipped with systemd (specifically: the various
9029 tests written in Python) now require Python 3.
9030
d60c5270 9031 * systemd unit tests can now run standalone (without the source or
4dfe64f8
ZJS
9032 build directories), and can be installed into /usr/lib/systemd/tests/
9033 with 'make install-tests'.
9034
23eb30b3
ZJS
9035 * Note that from this version on, CONFIG_CRYPTO_USER_API_HASH,
9036 CONFIG_CRYPTO_HMAC and CONFIG_CRYPTO_SHA256 need to be enabled in the
9037 kernel.
9038
9039 * Support for the %c, %r, %R specifiers in unit files has been
9040 removed. Specifiers are not supposed to be dependent on configuration
9041 in the unit file itself (so that they resolve the same regardless
9042 where used in the unit files), but these specifiers were influenced
9043 by the Slice= option.
9044
5cfc0a84
LP
9045 * The shell invoked by debug-shell.service now defaults to /bin/sh in
9046 all cases. If distributions want to use a different shell for this
9047 purpose (for example Fedora's /sbin/sushell) they need to specify
9048 this explicitly at configure time using --with-debug-shell=.
9049
2bcc3309
FB
9050 * The confirmation spawn prompt has been reworked to offer the
9051 following choices:
9052
b0eb2944 9053 (c)ontinue, proceed without asking anymore
dd6f9ac0 9054 (D)ump, show the state of the unit
2bcc3309 9055 (f)ail, don't execute the command and pretend it failed
d172b175 9056 (h)elp
eedf223a 9057 (i)nfo, show a short summary of the unit
56fde33a 9058 (j)obs, show jobs that are in progress
2bcc3309
FB
9059 (s)kip, don't execute the command and pretend it succeeded
9060 (y)es, execute the command
9061
9062 The 'n' choice for the confirmation spawn prompt has been removed,
9063 because its meaning was confusing.
9064
d08ee7cb
LP
9065 The prompt may now also be redirected to an alternative console by
9066 specifying the console as parameter to systemd.confirm_spawn=.
9067
8e458bfe
JW
9068 * Services of Type=notify require a READY=1 notification to be sent
9069 during startup. If no such message is sent, the service now fails,
9070 even if the main process exited with a successful exit code.
9071
85266f9b
LP
9072 * Services that fail to start up correctly now always have their
9073 ExecStopPost= commands executed. Previously, they'd enter "failed"
9074 state directly, without executing these commands.
9075
baf32786
MP
9076 * The option MulticastDNS= of network configuration files has acquired
9077 an actual implementation. With MulticastDNS=yes a host can resolve
23eb30b3 9078 names of remote hosts and reply to mDNS A and AAAA requests.
fa8b4499 9079
631b676b
LP
9080 * When units are about to be started an additional check is now done to
9081 ensure that all dependencies of type BindsTo= (when used in
9082 combination with After=) have been started.
9083
d08ee7cb
LP
9084 * systemd-analyze gained a new verb "syscall-filter" which shows which
9085 system call groups are defined for the SystemCallFilter= unit file
23eb30b3 9086 setting, and which system calls they contain.
d08ee7cb
LP
9087
9088 * A new system call filter group "@filesystem" has been added,
23eb30b3 9089 consisting of various file system related system calls. Group
d08ee7cb 9090 "@reboot" has been added, covering reboot, kexec and shutdown related
23eb30b3 9091 calls. Finally, group "@swap" has been added covering swap
d08ee7cb
LP
9092 configuration related calls.
9093
9094 * A new unit file option RestrictNamespaces= has been added that may be
9095 used to restrict access to the various process namespace types the
9096 Linux kernel provides. Specifically, it may be used to take away the
23eb30b3
ZJS
9097 right for a service unit to create additional file system, network,
9098 user, and other namespaces. This sandboxing option is particularly
9099 relevant due to the high amount of recently discovered namespacing
9100 related vulnerabilities in the kernel.
d08ee7cb 9101
23eb30b3
ZJS
9102 * systemd-udev's .link files gained support for a new AutoNegotiation=
9103 setting for configuring Ethernet auto-negotiation.
d08ee7cb
LP
9104
9105 * systemd-networkd's .network files gained support for a new
9106 ListenPort= setting in the [DHCP] section to explicitly configure the
9107 UDP client port the DHCP client shall listen on.
9108
23eb30b3
ZJS
9109 * .network files gained a new Unmanaged= boolean setting for explicitly
9110 excluding one or more interfaces from management by systemd-networkd.
9111
9112 * The systemd-networkd ProxyARP= option has been renamed to
9113 IPV4ProxyARP=. Similarly, VXLAN-specific option ARPProxy= has been
9114 renamed to ReduceARPProxy=. The old names continue to be available
9115 for compatibility.
9116
9117 * systemd-networkd gained support for configuring IPv6 Proxy NDP
9118 addresses via the new IPv6ProxyNDPAddress= .network file setting.
9119
9120 * systemd-networkd's bonding device support gained support for two new
9121 configuration options ActiveSlave= and PrimarySlave=.
9122
9123 * The various options in the [Match] section of .network files gained
9124 support for negative matching.
9125
d08ee7cb
LP
9126 * New systemd-specific mount options are now understood in /etc/fstab:
9127
9128 x-systemd.mount-timeout= may be used to configure the maximum
9129 permitted runtime of the mount command.
9130
9131 x-systemd.device-bound may be set to bind a mount point to its
9132 backing device unit, in order to automatically remove a mount point
9133 if its backing device is unplugged. This option may also be
9134 configured through the new SYSTEMD_MOUNT_DEVICE_BOUND udev property
9135 on the block device, which is now automatically set for all CDROM
9136 drives, so that mounted CDs are automatically unmounted when they are
9137 removed from the drive.
9138
23eb30b3
ZJS
9139 x-systemd.after= and x-systemd.before= may be used to explicitly
9140 order a mount after or before another unit or mount point.
d08ee7cb
LP
9141
9142 * Enqueued start jobs for device units are now automatically garbage
9143 collected if there are no jobs waiting for them anymore.
9144
23eb30b3
ZJS
9145 * systemctl list-jobs gained two new switches: with --after, for every
9146 queued job the jobs it's waiting for are shown; with --before the
9147 jobs which it's blocking are shown.
d08ee7cb
LP
9148
9149 * systemd-nspawn gained support for ephemeral boots from disk images
9150 (or in other words: --ephemeral and --image= may now be
9151 combined). Moreover, ephemeral boots are now supported for normal
9152 directories, even if the backing file system is not btrfs. Of course,
baf32786
MP
9153 if the file system does not support file system snapshots or
9154 reflinks, the initial copy operation will be relatively expensive, but
9155 this should still be suitable for many use cases.
d08ee7cb
LP
9156
9157 * Calendar time specifications in .timer units now support
9158 specifications relative to the end of a month by using "~" instead of
9159 "-" as separator between month and day. For example, "*-02~03" means
23eb30b3 9160 "the third last day in February". In addition a new syntax for
d08ee7cb
LP
9161 repeated events has been added using the "/" character. For example,
9162 "9..17/2:00" means "every two hours from 9am to 5pm".
9163
9164 * systemd-socket-proxyd gained a new parameter --connections-max= for
9165 configuring the maximum number of concurrent connections.
9166
23eb30b3
ZJS
9167 * sd-id128 gained a new API for generating unique IDs for the host in a
9168 way that does not leak the machine ID. Specifically,
d08ee7cb 9169 sd_id128_get_machine_app_specific() derives an ID based on the
387f6955 9170 machine ID in a well-defined, non-reversible, stable way. This is
d08ee7cb
LP
9171 useful whenever an identifier for the host is needed but where the
9172 identifier shall not be useful to identify the system beyond the
9173 scope of the application itself. (Internally this uses HMAC-SHA256 as
9174 keyed hash function using the machine ID as input.)
9175
9176 * NotifyAccess= gained a new supported value "exec". When set
9177 notifications are accepted from all processes systemd itself invoked,
9178 including all control processes.
9179
9180 * .nspawn files gained support for defining overlay mounts using the
9181 Overlay= and OverlayReadOnly= options. Previously this functionality
9182 was only available on the systemd-nspawn command line.
9183
9184 * systemd-nspawn's --bind= and --overlay= options gained support for
9185 bind/overlay mounts whose source lies within the container tree by
9186 prefixing the source path with "+".
9187
9188 * systemd-nspawn's --bind= and --overlay= options gained support for
9189 automatically allocating a temporary source directory in /var/tmp
9190 that is removed when the container dies. Specifically, if the source
9191 directory is specified as empty string this mechanism is selected. An
9192 example usage is --overlay=+/var::/var, which creates an overlay
86b52a39 9193 mount based on the original /var contained in the image, overlaid
d08ee7cb
LP
9194 with a temporary directory in the host's /var/tmp. This way changes
9195 to /var are automatically flushed when the container shuts down.
9196
baf32786
MP
9197 * systemd-nspawn --image= option does now permit raw file system block
9198 devices (in addition to images containing partition tables, as
9199 before).
d08ee7cb
LP
9200
9201 * The disk image dissection logic in systemd-nspawn gained support for
9202 automatically setting up LUKS encrypted as well as Verity protected
9203 partitions. When a container is booted from an encrypted image the
9204 passphrase is queried at start-up time. When a container with Verity
9205 data is started, the root hash is search in a ".roothash" file
9206 accompanying the disk image (alternatively, pass the root hash via
9207 the new --root-hash= command line option).
9208
9209 * A new tool /usr/lib/systemd/systemd-dissect has been added that may
9210 be used to dissect disk images the same way as systemd-nspawn does
9211 it, following the Bootable Partition Specification. It may even be
9212 used to mount disk images with complex partition setups (including
9213 LUKS and Verity partitions) to a local host directory, in order to
9214 inspect them. This tool is not considered public API (yet), and is
9215 thus not installed into /usr/bin. Please do not rely on its
3b31c466 9216 existence, since it might go away or be changed in later systemd
d08ee7cb
LP
9217 versions.
9218
9219 * A new generator "systemd-verity-generator" has been added, similar in
baf32786 9220 style to "systemd-cryptsetup-generator", permitting automatic setup of
d08ee7cb
LP
9221 Verity root partitions when systemd boots up. In order to make use of
9222 this your partition setup should follow the Discoverable Partitions
9223 Specification, and the GPT partition ID of the root file system
da890466 9224 partition should be identical to the upper 128-bit of the Verity root
d08ee7cb 9225 hash. The GPT partition ID of the Verity partition protecting it
da890466 9226 should be the lower 128-bit of the Verity root hash. If the partition
d08ee7cb
LP
9227 image follows this model it is sufficient to specify a single
9228 "roothash=" kernel command line argument to both configure which root
9229 image and verity partition to use as well as the root hash for
9230 it. Note that systemd-nspawn's Verity support follows the same
9231 semantics, meaning that disk images with proper Verity data in place
9232 may be booted in containers with systemd-nspawn as well as on
9233 physical systems via the verity generator. Also note that the "mkosi"
9234 tool available at https://github.com/systemd/mkosi has been updated
9235 to generate Verity protected disk images following this scheme. In
9236 fact, it has been updated to generate disk images that optionally
9237 implement a complete UEFI SecureBoot trust chain, involving a signed
9238 kernel and initrd image that incorporates such a root hash as well as
9239 a Verity-enabled root partition.
9240
d08ee7cb
LP
9241 * The hardware database (hwdb) udev supports has been updated to carry
9242 accelerometer quirks.
9243
9244 * All system services are now run with a fresh kernel keyring set up
9245 for them. The invocation ID is stored by default in it, thus
9246 providing a safe, non-overridable way to determine the invocation
9247 ID of each service.
9248
9249 * Service unit files gained new BindPaths= and BindReadOnlyPaths=
9250 options for bind mounting arbitrary paths in a service-specific
9251 way. When these options are used, arbitrary host or service files and
9252 directories may be mounted to arbitrary locations in the service's
9253 view.
9254
9255 * Documentation has been added that lists all of systemd's low-level
9256 environment variables:
9257
a8a27374 9258 https://github.com/systemd/systemd/blob/master/docs/ENVIRONMENT.md
d08ee7cb
LP
9259
9260 * sd-daemon gained a new API sd_is_socket_sockaddr() for determining
9261 whether a specific socket file descriptor matches a specified socket
9262 address.
9263
9264 * systemd-firstboot has been updated to check for the
9265 systemd.firstboot= kernel command line option. It accepts a boolean
9266 and when set to false the first boot questions are skipped.
9267
d08ee7cb 9268 * systemd-fstab-generator has been updated to check for the
23eb30b3
ZJS
9269 systemd.volatile= kernel command line option, which either takes an
9270 optional boolean parameter or the special value "state". If used the
9271 system may be booted in a "volatile" boot mode. Specifically,
9272 "systemd.volatile" is used, the root directory will be mounted as
d08ee7cb 9273 tmpfs, and only /usr is mounted from the actual root file system. If
23eb30b3
ZJS
9274 "systemd.volatile=state" is used, the root directory will be mounted
9275 as usual, but /var is mounted as tmpfs. This concept provides similar
d08ee7cb
LP
9276 functionality as systemd-nspawn's --volatile= option, but provides it
9277 on physical boots. Use this option for implementing stateless
9278 systems, or testing systems with all state and/or configuration reset
9279 to the defaults. (Note though that many distributions are not
23eb30b3 9280 prepared to boot up without a populated /etc or /var, though.)
d08ee7cb
LP
9281
9282 * systemd-gpt-auto-generator gained support for LUKS encrypted root
9283 partitions. Previously it only supported LUKS encrypted partitions
9284 for all other uses, except for the root partition itself.
9285
9286 * Socket units gained support for listening on AF_VSOCK sockets for
9287 communication in virtualized QEMU environments.
9288
9289 * The "configure" script gained a new option --with-fallback-hostname=
9290 for specifying the fallback hostname to use if none is configured in
9291 /etc/hostname. For example, by specifying
9292 --with-fallback-hostname=fedora it is possible to default to a
23eb30b3 9293 hostname of "fedora" on pristine installations.
d08ee7cb
LP
9294
9295 * systemd-cgls gained support for a new --unit= switch for listing only
9296 the control groups of a specific unit. Similar --user-unit= has been
9297 added for listing only the control groups of a specific user unit.
9298
9299 * systemd-mount gained a new --umount switch for unmounting a mount or
9300 automount point (and all mount/automount points below it).
9301
9302 * systemd will now refuse full configuration reloads (via systemctl
9303 daemon-reload and related calls) unless at least 16MiB of free space
9304 are available in /run. This is a safety precaution in order to ensure
9305 that generators can safely operate after the reload completed.
9306
9307 * A new unit file option RootImage= has been added, which has a similar
9308 effect as RootDirectory= but mounts the service's root directory from
9309 a disk image instead of plain directory. This logic reuses the same
9310 image dissection and mount logic that systemd-nspawn already uses,
9311 and hence supports any disk images systemd-nspawn supports, including
9312 those following the Discoverable Partition Specification, as well as
9313 Verity enabled images. This option enables systemd to run system
9314 services directly off disk images acting as resource bundles,
9315 possibly even including full integrity data.
9316
9317 * A new MountAPIVFS= unit file option has been added, taking a boolean
baf32786 9318 argument. If enabled /proc, /sys and /dev (collectively called the
d08ee7cb
LP
9319 "API VFS") will be mounted for the service. This is only relevant if
9320 RootDirectory= or RootImage= is used for the service, as these mounts
9321 are of course in place in the host mount namespace anyway.
9322
9323 * systemd-nspawn gained support for a new --pivot-root= switch. If
9324 specified the root directory within the container image is pivoted to
9325 the specified mount point, while the original root disk is moved to a
9326 different place. This option enables booting of ostree images
9327 directly with systemd-nspawn.
9328
d08ee7cb 9329 * The systemd build scripts will no longer complain if the NTP server
23eb30b3 9330 addresses are not changed from the defaults. Google now supports
d08ee7cb
LP
9331 these NTP servers officially. We still recommend downstreams to
9332 properly register an NTP pool with the NTP pool project though.
9333
c1ec34d1 9334 * coredumpctl gained a new "--reverse" option for printing the list
d08ee7cb
LP
9335 of coredumps in reverse order.
9336
23eb30b3
ZJS
9337 * coredumpctl will now show additional information about truncated and
9338 inaccessible coredumps, as well as coredumps that are still being
9339 processed. It also gained a new --quiet switch for suppressing
9340 additional informational message in its output.
9341
9342 * coredumpctl gained support for only showing coredumps newer and/or
9343 older than specific timestamps, using the new --since= and --until=
9344 options, reminiscent of journalctl's options by the same name.
9345
d08ee7cb 9346 * The systemd-coredump logic has been improved so that it may be reused
23eb30b3 9347 to collect backtraces in non-compiled languages, for example in
d08ee7cb
LP
9348 scripting languages such as Python.
9349
9350 * machinectl will now show the UID shift of local containers, if user
9351 namespacing is enabled for them.
9352
baf32786 9353 * systemd will now optionally run "environment generator" binaries at
d08ee7cb
LP
9354 configuration load time. They may be used to add environment
9355 variables to the environment block passed to services invoked. One
baf32786 9356 user environment generator is shipped by default that sets up
23eb30b3
ZJS
9357 environment variables based on files dropped into /etc/environment.d
9358 and ~/.config/environment.d/.
d08ee7cb 9359
a2b53448
LP
9360 * systemd-resolved now includes the new, recently published 2017 DNSSEC
9361 root key (KSK).
9362
a2b53448
LP
9363 * hostnamed has been updated to report a new chassis type of
9364 "convertible" to cover "foldable" laptops that can both act as a
9365 tablet and as a laptop, such as various Lenovo Yoga devices.
9366
d08ee7cb
LP
9367 Contributions from: Adrián López, Alexander Galanin, Alexander
9368 Kochetkov, Alexandros Frantzis, Andrey Ulanov, Antoine Eiche, Baruch
9369 Siach, Bastien Nocera, Benjamin Robin, Björn, Brandon Philips, Cédric
9370 Schieli, Charles (Chas) Williams, Christian Hesse, Daniele Medri,
9371 Daniel Drake, Daniel Rusek, Daniel Wagner, Dan Streetman, Dave Reisner,
9372 David Glasser, David Herrmann, David Michael, Djalal Harouni, Dmitry
9373 Khlebnikov, Dmitry Rozhkov, Dongsu Park, Douglas Christman, Earnestly,
9374 Emil Soleyman, Eric Cook, Evgeny Vereshchagin, Felipe Sateler, Fionn
9375 Cleary, Florian Klink, Francesco Brozzu, Franck Bui, Gabriel Rauter,
a2b53448
LP
9376 Gianluca Boiano, Giedrius Statkevičius, Graeme Lawes, Hans de Goede,
9377 Harald Hoyer, Ian Kelling, Ivan Shapovalov, Jakub Wilk, Janne Heß, Jan
9378 Synacek, Jason Reeder, Jonathan Boulle, Jörg Thalheim, Jouke Witteveen,
9379 Karl Kraus, Kees Cook, Keith Busch, Kieran Colford, kilian-k, Lennart
9380 Poettering, Lubomir Rintel, Lucas Werkmeister, Lukas Rusak, Maarten de
9381 Vries, Maks Naumov, Mantas Mikulėnas, Marc-Andre Lureau, Marcin Bachry,
9382 Mark Stosberg, Martin Ejdestig, Martin Pitt, Mauricio Faria de
9383 Oliveira, micah, Michael Biebl, Michael Shields, Michal Schmidt, Michal
9384 Sekletar, Michel Kraus, Mike Gilbert, Mikko Ylinen, Mirza Krak,
9385 Namhyung Kim, nikolaof, peoronoob, Peter Hutterer, Peter Körner, Philip
9386 Withnall, Piotr Drąg, Ray Strode, Reverend Homer, Rike-Benjamin
9387 Schuppner, Robert Kreuzer, Ronny Chevalier, Ruslan Bilovol, sammynx,
9388 Sergey Ptashnick, Sergiusz Urbaniak, Stefan Berger, Stefan Hajnoczi,
9389 Stefan Schweter, Stuart McLaren, Susant Sahani, Sylvain Plantefève,
9390 Taylor Smock, Tejun Heo, Thomas Blume, Thomas H. P. Andersen, Tibor
9391 Nagy, Tobias Stoeckmann, Tom Gundersen, Torstein Husebø, Viktar
9392 Vaŭčkievič, Viktor Mihajlovski, Vitaly Sulimov, Waldemar Brodkorb,
9393 Walter Garcia-Fontes, Wim de With, Yassine Imounachen, Yi EungJun,
9394 YunQiang Su, Yu Watanabe, Zbigniew Jędrzejewski-Szmek, Александр
9395 Тихонов
9396
9397 — Berlin, 2017-03-01
d08ee7cb 9398
54b24597 9399CHANGES WITH 232:
76153ad4 9400
05f426d2
LP
9401 * udev now runs with MemoryDenyWriteExecute=, RestrictRealtime= and
9402 RestrictAddressFamilies= enabled. These sandboxing options should
9403 generally be compatible with the various external udev call-out
9404 binaries we are aware of, however there may be exceptions, in
9405 particular when exotic languages for these call-outs are used. In
9406 this case, consider turning off these settings locally.
9407
4ffe2479
ZJS
9408 * The new RemoveIPC= option can be used to remove IPC objects owned by
9409 the user or group of a service when that service exits.
9410
6fa44114 9411 * The new ProtectKernelModules= option can be used to disable explicit
4c37970d
LP
9412 load and unload operations of kernel modules by a service. In
9413 addition access to /usr/lib/modules is removed if this option is set.
6fa44114 9414
4a77c53d
ZJS
9415 * ProtectSystem= option gained a new value "strict", which causes the
9416 whole file system tree with the exception of /dev, /proc, and /sys,
9417 to be remounted read-only for a service.
9418
e49e2c25 9419 * The new ProtectKernelTunables= option can be used to disable
4a77c53d
ZJS
9420 modification of configuration files in /sys and /proc by a service.
9421 Various directories and files are remounted read-only, so access is
9422 restricted even if the file permissions would allow it.
9423
6fa44114 9424 * The new ProtectControlGroups= option can be used to disable write
4a77c53d
ZJS
9425 access by a service to /sys/fs/cgroup.
9426
9427 * Various systemd services have been hardened with
9428 ProtectKernelTunables=yes, ProtectControlGroups=yes,
9429 RestrictAddressFamilies=.
9430
4ffe2479
ZJS
9431 * Support for dynamically creating users for the lifetime of a service
9432 has been added. If DynamicUser=yes is specified, user and group IDs
1d3a473b 9433 will be allocated from the range 61184…65519 for the lifetime of the
4ffe2479
ZJS
9434 service. They can be resolved using the new nss-systemd.so NSS
9435 module. The module must be enabled in /etc/nsswitch.conf. Services
9436 started in this way have PrivateTmp= and RemoveIPC= enabled, so that
9437 any resources allocated by the service will be cleaned up when the
4a77c53d
ZJS
9438 service exits. They also have ProtectHome=read-only and
9439 ProtectSystem=strict enabled, so they are not able to make any
9440 permanent modifications to the system.
4ffe2479 9441
171ae2cd 9442 * The nss-systemd module also always resolves root and nobody, making
4ffe2479 9443 it possible to have no /etc/passwd or /etc/group files in minimal
171ae2cd 9444 container or chroot environments.
4ffe2479
ZJS
9445
9446 * Services may be started with their own user namespace using the new
171ae2cd
LP
9447 boolean PrivateUsers= option. Only root, nobody, and the uid/gid
9448 under which the service is running are mapped. All other users are
9449 mapped to nobody.
4ffe2479
ZJS
9450
9451 * Support for the cgroup namespace has been added to systemd-nspawn. If
9452 supported by kernel, the container system started by systemd-nspawn
9453 will have its own view of the cgroup hierarchy. This new behaviour
9454 can be disabled using $SYSTEMD_NSPAWN_USE_CGNS environment variable.
9455
9456 * The new MemorySwapMax= option can be used to limit the maximum swap
9457 usage under the unified cgroup hierarchy.
9458
9459 * Support for the CPU controller in the unified cgroup hierarchy has
9460 been added, via the CPUWeight=, CPUStartupWeight=, CPUAccounting=
9461 options. This controller requires out-of-tree patches for the kernel
9462 and the support is provisional.
9463
171ae2cd
LP
9464 * Mount and automount units may now be created transiently
9465 (i.e. dynamically at runtime via the bus API, instead of requiring
9466 unit files in the file system).
9467
9468 * systemd-mount is a new tool which may mount file systems – much like
9469 mount(8), optionally pulling in additional dependencies through
9470 transient .mount and .automount units. For example, this tool
9471 automatically runs fsck on a backing block device before mounting,
9472 and allows the automount logic to be used dynamically from the
9473 command line for establishing mount points. This tool is particularly
9474 useful when dealing with removable media, as it will ensure fsck is
9475 run – if necessary – before the first access and that the file system
9476 is quickly unmounted after each access by utilizing the automount
9477 logic. This maximizes the chance that the file system on the
9478 removable media stays in a clean state, and if it isn't in a clean
9479 state is fixed automatically.
4ffe2479
ZJS
9480
9481 * LazyUnmount=yes option for mount units has been added to expose the
9482 umount --lazy option. Similarly, ForceUnmount=yes exposes the --force
9483 option.
9484
9485 * /efi will be used as the mount point of the EFI boot partition, if
9486 the directory is present, and the mount point was not configured
9487 through other means (e.g. fstab). If /efi directory does not exist,
9488 /boot will be used as before. This makes it easier to automatically
9489 mount the EFI partition on systems where /boot is used for something
9490 else.
9491
171ae2cd
LP
9492 * When operating on GPT disk images for containers, systemd-nspawn will
9493 now mount the ESP to /boot or /efi according to the same rules as PID
9494 1 running on a host. This allows tools like "bootctl" to operate
9495 correctly within such containers, in order to make container images
9496 bootable on physical systems.
9497
4a77c53d 9498 * disk/by-id and disk/by-path symlinks are now created for NVMe drives.
4ffe2479
ZJS
9499
9500 * Two new user session targets have been added to support running
9501 graphical sessions under the systemd --user instance:
9502 graphical-session.target and graphical-session-pre.target. See
9503 systemd.special(7) for a description of how those targets should be
9504 used.
9505
9506 * The vconsole initialization code has been significantly reworked to
d4c08299 9507 use KD_FONT_OP_GET/SET ioctls instead of KD_FONT_OP_COPY and better
4ffe2479
ZJS
9508 support unicode keymaps. Font and keymap configuration will now be
9509 copied to all allocated virtual consoles.
9510
05ecf467 9511 * FreeBSD's bhyve virtualization is now detected.
4ffe2479 9512
d4c08299 9513 * Information recorded in the journal for core dumps now includes the
4ffe2479
ZJS
9514 contents of /proc/mountinfo and the command line of the process at
9515 the top of the process hierarchy (which is usually the init process
9516 of the container).
9517
171ae2cd 9518 * systemd-journal-gatewayd learned the --directory= option to serve
4ffe2479
ZJS
9519 files from the specified location.
9520
9521 * journalctl --root=… can be used to peruse the journal in the
9522 /var/log/ directories inside of a container tree. This is similar to
9523 the existing --machine= option, but does not require the container to
9524 be active.
9525
9526 * The hardware database has been extended to support
9527 ID_INPUT_TRACKBALL, used in addition to ID_INPUT_MOUSE to identify
9528 trackball devices.
9529
9530 MOUSE_WHEEL_CLICK_ANGLE_HORIZONTAL hwdb property has been added to
9531 specify the click rate for mice which include a horizontal wheel with
9532 a click rate that is different than the one for the vertical wheel.
9533
9534 * systemd-run gained a new --wait option that makes service execution
171ae2cd
LP
9535 synchronous. (Specifically, the command will not return until the
9536 specified service binary exited.)
4ffe2479 9537
171ae2cd 9538 * systemctl gained a new --wait option that causes the start command to
4a77c53d
ZJS
9539 wait until the units being started have terminated again.
9540
171ae2cd 9541 * A new journal output mode "short-full" has been added which displays
4ffe2479 9542 timestamps with abbreviated English day names and adds a timezone
171ae2cd
LP
9543 suffix. Those timestamps include more information than the default
9544 "short" output mode, and can be passed directly to journalctl's
9545 --since= and --until= options.
4ffe2479
ZJS
9546
9547 * /etc/resolv.conf will be bind-mounted into containers started by
9548 systemd-nspawn, if possible, so any changes to resolv.conf contents
9549 are automatically propagated to the container.
9550
9551 * The number of instances for socket-activated services originating
171ae2cd
LP
9552 from a single IP address can be limited with
9553 MaxConnectionsPerSource=, extending the existing setting of
9554 MaxConnections=.
4ffe2479 9555
4a77c53d
ZJS
9556 * systemd-networkd gained support for vcan ("Virtual CAN") interface
9557 configuration.
9558
9559 * .netdev and .network configuration can now be extended through
9560 drop-ins.
9561
4ffe2479
ZJS
9562 * UDP Segmentation Offload, TCP Segmentation Offload, Generic
9563 Segmentation Offload, Generic Receive Offload, Large Receive Offload
9564 can be enabled and disabled using the new UDPSegmentationOffload=,
9565 TCPSegmentationOffload=, GenericSegmentationOffload=,
9566 GenericReceiveOffload=, LargeReceiveOffload= options in the
9567 [Link] section of .link files.
9568
171ae2cd
LP
9569 * The Spanning Tree Protocol, Priority, Aging Time, and the Default
9570 Port VLAN ID can be configured for bridge devices using the new STP=,
9571 Priority=, AgeingTimeSec=, and DefaultPVID= settings in the [Bridge]
9572 section of .netdev files.
4ffe2479 9573
171ae2cd 9574 * The route table to which routes received over DHCP or RA should be
4a77c53d
ZJS
9575 added can be configured with the new RouteTable= option in the [DHCP]
9576 and [IPv6AcceptRA] sections of .network files.
9577
171ae2cd 9578 * The Address Resolution Protocol can be disabled on links managed by
4ffe2479
ZJS
9579 systemd-networkd using the ARP=no setting in the [Link] section of
9580 .network files.
9581
171ae2cd
LP
9582 * New environment variables $SERVICE_RESULT, $EXIT_CODE and
9583 $EXIT_STATUS are set for ExecStop= and ExecStopPost= commands, and
9584 encode information about the result and exit codes of the current
9585 service runtime cycle.
4ffe2479 9586
4a77c53d 9587 * systemd-sysctl will now configure kernel parameters in the order
1f4f4cf7 9588 they occur in the configuration files. This matches what sysctl
4a77c53d
ZJS
9589 has been traditionally doing.
9590
9591 * kernel-install "plugins" that are executed to perform various
9592 tasks after a new kernel is added and before an old one is removed
9593 can now return a special value to terminate the procedure and
9594 prevent any later plugins from running.
9595
76153ad4 9596 * Journald's SplitMode=login setting has been deprecated. It has been
d4c08299 9597 removed from documentation, and its use is discouraged. In a future
76153ad4
ZJS
9598 release it will be completely removed, and made equivalent to current
9599 default of SplitMode=uid.
9600
4a77c53d
ZJS
9601 * Storage=both option setting in /etc/systemd/coredump.conf has been
9602 removed. With fast LZ4 compression storing the core dump twice is not
9603 useful.
9604
4ffe2479
ZJS
9605 * The --share-system systemd-nspawn option has been replaced with an
9606 (undocumented) variable $SYSTEMD_NSPAWN_SHARE_SYSTEM, but the use of
9607 this functionality is discouraged. In addition the variables
9608 $SYSTEMD_NSPAWN_SHARE_NS_IPC, $SYSTEMD_NSPAWN_SHARE_NS_PID,
9609 $SYSTEMD_NSPAWN_SHARE_NS_UTS may be used to control the unsharing of
9610 individual namespaces.
9611
171ae2cd
LP
9612 * "machinectl list" now shows the IP address of running containers in
9613 the output, as well as OS release information.
9614
9615 * "loginctl list" now shows the TTY of each session in the output.
9616
9617 * sd-bus gained new API calls sd_bus_track_set_recursive(),
9618 sd_bus_track_get_recursive(), sd_bus_track_count_name(),
9619 sd_bus_track_count_sender(). They permit usage of sd_bus_track peer
9620 tracking objects in a "recursive" mode, where a single client can be
9621 counted multiple times, if it takes multiple references.
9622
9623 * sd-bus gained new API calls sd_bus_set_exit_on_disconnect() and
bc99dac5 9624 sd_bus_get_exit_on_disconnect(). They may be used to make a
171ae2cd
LP
9625 process using sd-bus automatically exit if the bus connection is
9626 severed.
9627
9628 * Bus clients of the service manager may now "pin" loaded units into
9629 memory, by taking an explicit reference on them. This is useful to
9630 ensure the client can retrieve runtime data about the service even
9631 after the service completed execution. Taking such a reference is
9632 available only for privileged clients and should be helpful to watch
9633 running services in a race-free manner, and in particular collect
9634 information about exit statuses and results.
9635
4c37970d
LP
9636 * The nss-resolve module has been changed to strictly return UNAVAIL
9637 when communication via D-Bus with resolved failed, and NOTFOUND when
9638 a lookup completed but was negative. This means it is now possible to
9639 neatly configure fallbacks using nsswitch.conf result checking
9640 expressions. Taking benefit of this, the new recommended
9641 configuration line for the "hosts" entry in /etc/nsswitch.conf is:
9642
9643 hosts: files mymachines resolve [!UNAVAIL=return] dns myhostname
9644
9645 * A new setting CtrlAltDelBurstAction= has been added to
9646 /etc/systemd/system.conf which may be used to configure the precise
9647 behaviour if the user on the console presses Ctrl-Alt-Del more often
9648 than 7 times in 2s. Previously this would unconditionally result in
9649 an expedited, immediate reboot. With this new setting the precise
9650 operation may be configured in more detail, and also turned off
9651 entirely.
9652
9653 * In .netdev files two new settings RemoteChecksumTx= and
9654 RemoteChecksumRx= are now understood that permit configuring the
9655 remote checksumming logic for VXLAN networks.
9656
9657 * The service manager learnt a new "invocation ID" concept for invoked
9658 services. Each runtime cycle of a service will get a new invocation
da890466 9659 ID (a 128-bit random UUID) assigned that identifies the current
4c37970d
LP
9660 run of the service uniquely and globally. A new invocation ID
9661 is generated each time a service starts up. The journal will store
9662 the invocation ID of a service along with any logged messages, thus
9663 making the invocation ID useful for matching the online runtime of a
9664 service with the offline log data it generated in a safe way without
9665 relying on synchronized timestamps. In many ways this new service
9666 invocation ID concept is similar to the kernel's boot ID concept that
9667 uniquely and globally identifies the runtime of each boot. The
9668 invocation ID of a service is passed to the service itself via an
9669 environment variable ($INVOCATION_ID). A new bus call
9670 GetUnitByInvocationID() has been added that is similar to GetUnit()
9671 but instead of retrieving the bus path for a unit by its name
9672 retrieves it by its invocation ID. The returned path is valid only as
9673 long as the passed invocation ID is current.
9674
9675 * systemd-resolved gained a new "DNSStubListener" setting in
9676 resolved.conf. It either takes a boolean value or the special values
9677 "udp" and "tcp", and configures whether to enable the stub DNS
9678 listener on 127.0.0.53:53.
9679
9680 * IP addresses configured via networkd may now carry additional
9681 configuration settings supported by the kernel. New options include:
9682 HomeAddress=, DuplicateAddressDetection=, ManageTemporaryAddress=,
9683 PrefixRoute=, AutoJoin=.
9684
9685 * The PAM configuration fragment file for "user@.service" shipped with
9686 systemd (i.e. the --user instance of systemd) has been stripped to
9687 the minimum necessary to make the system boot. Previously, it
9688 contained Fedora-specific stanzas that did not apply to other
9689 distributions. It is expected that downstream distributions add
9690 additional configuration lines, matching their needs to this file,
9691 using it only as rough template of what systemd itself needs. Note
9692 that this reduced fragment does not even include an invocation of
9693 pam_limits which most distributions probably want to add, even though
9694 systemd itself does not need it. (There's also the new build time
9695 option --with-pamconfdir=no to disable installation of the PAM
9696 fragment entirely.)
9697
9698 * If PrivateDevices=yes is set for a service the CAP_SYS_RAWIO
9699 capability is now also dropped from its set (in addition to
9700 CAP_SYS_MKNOD as before).
9701
9702 * In service unit files it is now possible to connect a specific named
9703 file descriptor with stdin/stdout/stdout of an executed service. The
9704 name may be specified in matching .socket units using the
9705 FileDescriptorName= setting.
9706
9707 * A number of journal settings may now be configured on the kernel
9708 command line. Specifically, the following options are now understood:
9709 systemd.journald.max_level_console=,
9710 systemd.journald.max_level_store=,
9711 systemd.journald.max_level_syslog=, systemd.journald.max_level_kmsg=,
9712 systemd.journald.max_level_wall=.
9713
9714 * "systemctl is-enabled --full" will now show by which symlinks a unit
9715 file is enabled in the unit dependency tree.
9716
b4eed568
LP
9717 * Support for VeraCrypt encrypted partitions has been added to the
9718 "cryptsetup" logic and /etc/crypttab.
9719
9720 * systemd-detect-virt gained support for a new --private-users switch
9721 that checks whether the invoking processes are running inside a user
9722 namespace. Similar, a new special value "private-users" for the
9723 existing ConditionVirtualization= setting has been added, permitting
9724 skipping of specific units in user namespace environments.
9725
07393b6e
LP
9726 Contributions from: Alban Crequy, Alexander Kuleshov, Alfie John,
9727 Andreas Henriksson, Andrew Jeddeloh, Balázs Úr, Bart Rulon, Benjamin
9728 Richter, Ben Gamari, Ben Harris, Brian J. Murrell, Christian Brauner,
9729 Christian Rebischke, Clinton Roy, Colin Walters, Cristian Rodríguez,
9730 Daniel Hahler, Daniel Mack, Daniel Maixner, Daniel Rusek, Dan Dedrick,
9731 Davide Cavalca, David Herrmann, David Michael, Dennis Wassenberg,
9732 Djalal Harouni, Dongsu Park, Douglas Christman, Elias Probst, Eric
9733 Cook, Erik Karlsson, Evgeny Vereshchagin, Felipe Sateler, Felix Zhang,
9734 Franck Bui, George Hilliard, Giuseppe Scrivano, HATAYAMA Daisuke,
9735 Heikki Kemppainen, Hendrik Brueckner, hi117, Ismo Puustinen, Ivan
9736 Shapovalov, Jakub Filak, Jakub Wilk, Jan Synacek, Jason Kölker,
9737 Jean-Sébastien Bour, Jiří Pírko, Jonathan Boulle, Jorge Niedbalski,
9738 Keith Busch, kristbaum, Kyle Russell, Lans Zhang, Lennart Poettering,
9739 Leonardo Brondani Schenkel, Lucas Werkmeister, Luca Bruno, Lukáš
9740 Nykrýn, Maciek Borzecki, Mantas Mikulėnas, Marc-Antoine Perennou,
9741 Marcel Holtmann, Marcos Mello, Martin Ejdestig, Martin Pitt, Matej
9742 Habrnal, Maxime de Roucy, Michael Biebl, Michael Chapman, Michael Hoy,
9743 Michael Olbrich, Michael Pope, Michal Sekletar, Michal Soltys, Mike
9744 Gilbert, Nick Owens, Patrik Flykt, Paweł Szewczyk, Peter Hutterer,
9745 Piotr Drąg, Reid Price, Richard W.M. Jones, Roman Stingler, Ronny
9746 Chevalier, Seraphime Kirkovski, Stefan Schweter, Steve Muir, Susant
9747 Sahani, Tejun Heo, Thomas Blume, Thomas H. P. Andersen, Tiago Levit,
9748 Tobias Jungel, Tomáš Janoušek, Topi Miettinen, Torstein Husebø, Umut
9749 Tezduyar Lindskog, Vito Caputo, WaLyong Cho, Wilhelm Schuster, Yann
9750 E. MORIN, Yi EungJun, Yuki Inoguchi, Yu Watanabe, Zbigniew
9751 Jędrzejewski-Szmek, Zeal Jagannatha
9752
54b24597 9753 — Santa Fe, 2016-11-03
07393b6e 9754
5cd118ba
MP
9755CHANGES WITH 231:
9756
fcd30826
LP
9757 * In service units the various ExecXYZ= settings have been extended
9758 with an additional special character as first argument of the
43eb109a 9759 assigned value: if the character '+' is used the specified command
fcd30826
LP
9760 line it will be run with full privileges, regardless of User=,
9761 Group=, CapabilityBoundingSet= and similar options. The effect is
9762 similar to the existing PermissionsStartOnly= option, but allows
9763 configuration of this concept for each executed command line
9764 independently.
9765
9766 * Services may now alter the service watchdog timeout at runtime by
9767 sending a WATCHDOG_USEC= message via sd_notify().
9768
9769 * MemoryLimit= and related unit settings now optionally take percentage
9770 specifications. The percentage is taken relative to the amount of
9771 physical memory in the system (or in case of containers, the assigned
9772 amount of memory). This allows scaling service resources neatly with
771de3f5 9773 the amount of RAM available on the system. Similarly, systemd-logind's
fcd30826
LP
9774 RuntimeDirectorySize= option now also optionally takes percentage
9775 values.
9776
9777 * In similar fashion TasksMax= takes percentage values now, too. The
9778 value is taken relative to the configured maximum number of processes
9779 on the system. The per-service task maximum has been changed to 15%
9780 using this functionality. (Effectively this is an increase of 512 →
9781 4915 for service units, given the kernel's default pid_max setting.)
9782
9783 * Calendar time specifications in .timer units now understand a ".."
9784 syntax for time ranges. Example: "4..7:10" may now be used for
9785 defining a timer that is triggered at 4:10am, 5:10am, 6:10am and
9786 7:10am every day.
9787
9788 * The InaccessableDirectories=, ReadOnlyDirectories= and
9789 ReadWriteDirectories= unit file settings have been renamed to
9790 InaccessablePaths=, ReadOnlyPaths= and ReadWritePaths= and may now be
9791 applied to all kinds of file nodes, and not just directories, with
9792 the exception of symlinks. Specifically these settings may now be
9793 used on block and character device nodes, UNIX sockets and FIFOS as
9794 well as regular files. The old names of these settings remain
9795 available for compatibility.
9796
9797 * systemd will now log about all service processes it kills forcibly
9798 (using SIGKILL) because they remained after the clean shutdown phase
9799 of the service completed. This should help identifying services that
9800 shut down uncleanly. Moreover if KillUserProcesses= is enabled in
9801 systemd-logind's configuration a similar log message is generated for
9802 processes killed at the end of each session due to this setting.
9803
9804 * systemd will now set the $JOURNAL_STREAM environment variable for all
9805 services whose stdout/stderr are connected to the Journal (which
9806 effectively means by default: all services). The variable contains
9807 the device and inode number of the file descriptor used for
9808 stdout/stderr. This may be used by invoked programs to detect whether
9809 their stdout/stderr is connected to the Journal, in which case they
9810 can switch over to direct Journal communication, thus being able to
9811 pass extended, structured metadata along with their log messages. As
9812 one example, this is now used by glib's logging primitives.
9813
9814 * When using systemd's default tmp.mount unit for /tmp, the mount point
9815 will now be established with the "nosuid" and "nodev" options. This
9816 avoids privilege escalation attacks that put traps and exploits into
33db1b90 9817 /tmp. However, this might cause problems if you e.g. put container
5cd118ba
MP
9818 images or overlays into /tmp; if you need this, override tmp.mount's
9819 "Options=" with a drop-in, or mount /tmp from /etc/fstab with your
9820 desired options.
9821
fcd30826 9822 * systemd now supports the "memory" cgroup controller also on
4e1dfa45 9823 cgroup v2.
fcd30826
LP
9824
9825 * The systemd-cgtop tool now optionally takes a control group path as
9826 command line argument. If specified, the control group list shown is
9827 limited to subgroups of that group.
9828
9829 * The SystemCallFilter= unit file setting gained support for
9830 pre-defined, named system call filter sets. For example
9831 SystemCallFilter=@clock is now an effective way to make all clock
771de3f5 9832 changing-related system calls unavailable to a service. A number of
fcd30826
LP
9833 similar pre-defined groups are defined. Writing system call filters
9834 for system services is simplified substantially with this new
9835 concept. Accordingly, all of systemd's own, long-running services now
9836 enable system call filtering based on this, by default.
9837
9838 * A new service setting MemoryDenyWriteExecute= has been added, taking
9839 a boolean value. If turned on, a service may no longer create memory
9840 mappings that are writable and executable at the same time. This
9841 enhances security for services where this is enabled as it becomes
9842 harder to dynamically write and then execute memory in exploited
9843 service processes. This option has been enabled for all of systemd's
9844 own long-running services.
9845
9846 * A new RestrictRealtime= service setting has been added, taking a
9847 boolean argument. If set the service's processes may no longer
9848 acquire realtime scheduling. This improves security as realtime
9849 scheduling may otherwise be used to easily freeze the system.
9850
9851 * systemd-nspawn gained a new switch --notify-ready= taking a boolean
9852 value. This may be used for requesting that the system manager inside
9853 of the container reports start-up completion to nspawn which then
9854 propagates this notification further to the service manager
9855 supervising nspawn itself. A related option NotifyReady= in .nspawn
9856 files has been added too. This functionality allows ordering of the
9857 start-up of multiple containers using the usual systemd ordering
9858 primitives.
9859
9860 * machinectl gained a new command "stop" that is an alias for
9861 "terminate".
9862
9863 * systemd-resolved gained support for contacting DNS servers on
9864 link-local IPv6 addresses.
9865
9866 * If systemd-resolved receives the SIGUSR2 signal it will now flush all
9867 its caches. A method call for requesting the same operation has been
9868 added to the bus API too, and is made available via "systemd-resolve
9869 --flush-caches".
9870
771de3f5 9871 * systemd-resolve gained a new --status switch. If passed a brief
fcd30826
LP
9872 summary of the used DNS configuration with per-interface information
9873 is shown.
9874
9875 * resolved.conf gained a new Cache= boolean option, defaulting to
9876 on. If turned off local DNS caching is disabled. This comes with a
9877 performance penalty in particular when DNSSEC is enabled. Note that
771de3f5 9878 resolved disables its internal caching implicitly anyway, when the
fcd30826
LP
9879 configured DNS server is on a host-local IP address such as ::1 or
9880 127.0.0.1, thus automatically avoiding double local caching.
9881
9882 * systemd-resolved now listens on the local IP address 127.0.0.53:53
9883 for DNS requests. This improves compatibility with local programs
9884 that do not use the libc NSS or systemd-resolved's bus APIs for name
9885 resolution. This minimal DNS service is only available to local
9886 programs and does not implement the full DNS protocol, but enough to
9887 cover local DNS clients. A new, static resolv.conf file, listing just
9888 this DNS server is now shipped in /usr/lib/systemd/resolv.conf. It is
9889 now recommended to make /etc/resolv.conf a symlink to this file in
9890 order to route all DNS lookups to systemd-resolved, regardless if
9891 done via NSS, the bus API or raw DNS packets. Note that this local
9892 DNS service is not as fully featured as the libc NSS or
9893 systemd-resolved's bus APIs. For example, as unicast DNS cannot be
9894 used to deliver link-local address information (as this implies
9895 sending a local interface index along), LLMNR/mDNS support via this
9896 interface is severely restricted. It is thus strongly recommended for
9897 all applications to use the libc NSS API or native systemd-resolved
9898 bus API instead.
9899
9900 * systemd-networkd's bridge support learned a new setting
9901 VLANFiltering= for controlling VLAN filtering. Moreover a new section
9902 in .network files has been added for configuring VLAN bridging in
9903 more detail: VLAN=, EgressUntagged=, PVID= in [BridgeVLAN].
9904
9905 * systemd-networkd's IPv6 Router Advertisement code now makes use of
9906 the DNSSL and RDNSS options. This means IPv6 DNS configuration may
9907 now be acquired without relying on DHCPv6. Two new options
9908 UseDomains= and UseDNS= have been added to configure this behaviour.
9909
9910 * systemd-networkd's IPv6AcceptRouterAdvertisements= option has been
9911 renamed IPv6AcceptRA=, without altering its behaviour. The old
9912 setting name remains available for compatibility reasons.
9913
9914 * The systemd-networkd VTI/VTI6 tunneling support gained new options
9915 Key=, InputKey= and OutputKey=.
9916
9917 * systemd-networkd gained support for VRF ("Virtual Routing Function")
9918 interface configuration.
9919
9920 * "systemctl edit" may now be used to create new unit files by
9921 specifying the --force switch.
9922
9923 * sd-event gained a new function sd_event_get_iteration() for
9924 requesting the current iteration counter of the event loop. It starts
9925 at zero and is increased by one with each event loop iteration.
9926
43a569a1
ZJS
9927 * A new rpm macro %systemd_ordering is provided by the macros.systemd
9928 file. It can be used in lieu of %systemd_requires in packages which
9929 don't use any systemd functionality and are intended to be installed
9930 in minimal containers without systemd present. This macro provides
ce830873 9931 ordering dependencies to ensure that if the package is installed in
43a569a1
ZJS
9932 the same rpm transaction as systemd, systemd will be installed before
9933 the scriptlets for the package are executed, allowing unit presets
9934 to be handled.
9935
9936 New macros %_systemdgeneratordir and %_systemdusergeneratordir have
9937 been added to simplify packaging of generators.
9938
9939 * The os-release file gained VERSION_CODENAME field for the
9940 distribution nickname (e.g. VERSION_CODENAME=woody).
9941
9942 * New udev property UDEV_DISABLE_PERSISTENT_STORAGE_RULES_FLAG=1
9943 can be set to disable parsing of metadata and the creation
9944 of persistent symlinks for that device.
9945
0f1da52b
LP
9946 * The v230 change to tag framebuffer devices (/dev/fb*) with "uaccess"
9947 to make them available to logged-in users has been reverted.
9948
9949 * Much of the common code of the various systemd components is now
9950 built into an internal shared library libsystemd-shared-231.so
9951 (incorporating the systemd version number in the name, to be updated
9952 with future releases) that the components link to. This should
9953 decrease systemd footprint both in memory during runtime and on
9954 disk. Note that the shared library is not for public use, and is
ead6bd25 9955 neither API nor ABI stable, but is likely to change with every new
1ecbf32f
ZJS
9956 released update. Packagers need to make sure that binaries
9957 linking to libsystemd-shared.so are updated in step with the
9958 library.
43a569a1 9959
fcd30826
LP
9960 * Configuration for "mkosi" is now part of the systemd
9961 repository. mkosi is a tool to easily build legacy-free OS images,
9962 and is available on github: https://github.com/systemd/mkosi. If
9963 "mkosi" is invoked in the build tree a new raw OS image is generated
9964 incorporating the systemd sources currently being worked on and a
9965 clean, fresh distribution installation. The generated OS image may be
ce830873 9966 booted up with "systemd-nspawn -b -i", qemu-kvm or on any physical
fcd30826
LP
9967 UEFI PC. This functionality is particularly useful to easily test
9968 local changes made to systemd in a pristine, defined environment. See
f09eb768 9969 doc/HACKING for details.
ceeddf79 9970
4ffe2479
ZJS
9971 * configure learned the --with-support-url= option to specify the
9972 distribution's bugtracker.
9973
38b383d9
LP
9974 Contributions from: Alban Crequy, Alessandro Puccetti, Alessio Igor
9975 Bogani, Alexander Kuleshov, Alexander Kurtz, Alex Gaynor, Andika
9976 Triwidada, Andreas Pokorny, Andreas Rammhold, Andrew Jeddeloh, Ansgar
9977 Burchardt, Atrotors, Benjamin Drung, Brian Boylston, Christian Hesse,
9978 Christian Rebischke, Daniele Medri, Daniel Mack, Dave Reisner, David
9979 Herrmann, David Michael, Djalal Harouni, Douglas Christman, Elias
9980 Probst, Evgeny Vereshchagin, Federico Mena Quintero, Felipe Sateler,
9981 Franck Bui, Harald Hoyer, Ian Lee, Ivan Shapovalov, Jakub Wilk, Jan
9982 Janssen, Jean-Sébastien Bour, John Paul Adrian Glaubitz, Jouke
9983 Witteveen, Kai Ruhnau, kpengboy, Kyle Walker, Lénaïc Huard, Lennart
9984 Poettering, Luca Bruno, Lukas Lösche, Lukáš Nykrýn, mahkoh, Marcel
9985 Holtmann, Martin Pitt, Marty Plummer, Matthieu Codron, Max Prokhorov,
9986 Michael Biebl, Michael Karcher, Michael Olbrich, Michał Bartoszkiewicz,
9987 Michal Sekletar, Michal Soltys, Minkyung, Muhammet Kara, mulkieran,
9988 Otto Wallenius, Pablo Lezaeta Reyes, Peter Hutterer, Ronny Chevalier,
9989 Rusty Bird, Stef Walter, Susant Sahani, Tejun Heo, Thomas Blume, Thomas
771de3f5
ZJS
9990 Haller, Thomas H. P. Andersen, Tobias Jungel, Tom Gundersen, Tom Yan,
9991 Topi Miettinen, Torstein Husebø, Valentin Vidić, Viktar Vaŭčkievič,
38b383d9 9992 WaLyong Cho, Weng Xuetian, Werner Fink, Zbigniew Jędrzejewski-Szmek
5cd118ba 9993
38b383d9 9994 — Berlin, 2016-07-25
5cd118ba 9995
46e40fab 9996CHANGES WITH 230:
7f6e8043 9997
61ecb465
LP
9998 * DNSSEC is now turned on by default in systemd-resolved (in
9999 "allow-downgrade" mode), but may be turned off during compile time by
10000 passing "--with-default-dnssec=no" to "configure" (and of course,
10001 during runtime with DNSSEC= in resolved.conf). We recommend
10002 downstreams to leave this on at least during development cycles and
10003 report any issues with the DNSSEC logic upstream. We are very
10004 interested in collecting feedback about the DNSSEC validator and its
10005 limitations in the wild. Note however, that DNSSEC support is
10006 probably nothing downstreams should turn on in stable distros just
96d49011 10007 yet, as it might create incompatibilities with a few DNS servers and
61ecb465
LP
10008 networks. We tried hard to make sure we downgrade to non-DNSSEC mode
10009 automatically whenever we detect such incompatible setups, but there
10010 might be systems we do not cover yet. Hence: please help us testing
10011 the DNSSEC code, leave this on where you can, report back, but then
10012 again don't consider turning this on in your stable, LTS or
e40a326c
LP
10013 production release just yet. (Note that you have to enable
10014 nss-resolve in /etc/nsswitch.conf, to actually use systemd-resolved
38b38500 10015 and its DNSSEC mode for hostname resolution from local
e40a326c 10016 applications.)
61ecb465 10017
96515dbf 10018 * systemd-resolve conveniently resolves DANE records with the --tlsa
e40a326c 10019 option and OPENPGPKEY records with the --openpgp option. It also
e75690c3 10020 supports dumping raw DNS record data via the new --raw= switch.
96515dbf 10021
97e5530c
ZJS
10022 * systemd-logind will now by default terminate user processes that are
10023 part of the user session scope unit (session-XX.scope) when the user
977f2bea 10024 logs out. This behavior is controlled by the KillUserProcesses=
e40a326c
LP
10025 setting in logind.conf, and the previous default of "no" is now
10026 changed to "yes". This means that user sessions will be properly
10027 cleaned up after, but additional steps are necessary to allow
10028 intentionally long-running processes to survive logout.
97e5530c
ZJS
10029
10030 While the user is logged in at least once, user@.service is running,
10031 and any service that should survive the end of any individual login
10032 session can be started at a user service or scope using systemd-run.
e40a326c 10033 systemd-run(1) man page has been extended with an example which shows
8951eaec 10034 how to run screen in a scope unit underneath user@.service. The same
e40a326c 10035 command works for tmux.
97e5530c
ZJS
10036
10037 After the user logs out of all sessions, user@.service will be
10038 terminated too, by default, unless the user has "lingering" enabled.
10039 To effectively allow users to run long-term tasks even if they are
152199f2
ZJS
10040 logged out, lingering must be enabled for them. See loginctl(1) for
10041 details. The default polkit policy was modified to allow users to
10042 set lingering for themselves without authentication.
7f6e8043 10043
95365a57 10044 Previous defaults can be restored at compile time by the
e40a326c 10045 --without-kill-user-processes option to "configure".
7f6e8043 10046
e75690c3
ZJS
10047 * systemd-logind gained new configuration settings SessionsMax= and
10048 InhibitorsMax=, both with a default of 8192. It will not register new
188d3082 10049 user sessions or inhibitors above this limit.
e75690c3
ZJS
10050
10051 * systemd-logind will now reload configuration on SIGHUP.
10052
96515dbf 10053 * The unified cgroup hierarchy added in Linux 4.5 is now supported.
e40a326c 10054 Use systemd.unified_cgroup_hierarchy=1 on the kernel command line to
25b0e6cb
LP
10055 enable. Also, support for the "io" cgroup controller in the unified
10056 hierarchy has been added, so that the "memory", "pids" and "io" are
10057 now the controllers that are supported on the unified hierarchy.
e40a326c 10058
96515dbf
ZJS
10059 WARNING: it is not possible to use previous systemd versions with
10060 systemd.unified_cgroup_hierarchy=1 and the new kernel. Therefore it
10061 is necessary to also update systemd in the initramfs if using the
e40a326c 10062 unified hierarchy. An updated SELinux policy is also required.
96515dbf 10063
e40a326c
LP
10064 * LLDP support has been extended, and both passive (receive-only) and
10065 active (sender) modes are supported. Passive mode ("routers-only") is
8951eaec
ZJS
10066 enabled by default in systemd-networkd. Active LLDP mode is enabled
10067 by default for containers on the internal network. The "networkctl
e40a326c
LP
10068 lldp" command may be used to list information gathered. "networkctl
10069 status" will also show basic LLDP information on connected peers now.
96515dbf 10070
e40a326c
LP
10071 * The IAID and DUID unique identifier sent in DHCP requests may now be
10072 configured for the system and each .network file managed by
e75690c3
ZJS
10073 systemd-networkd using the DUIDType=, DUIDRawData=, IAID= options.
10074
10075 * systemd-networkd gained support for configuring proxy ARP support for
10076 each interface, via the ProxyArp= setting in .network files. It also
10077 gained support for configuring the multicast querier feature of
10078 bridge devices, via the new MulticastQuerier= setting in .netdev
10079 files. Similarly, snooping on the IGMP traffic can be controlled
10080 via the new setting MulticastSnooping=.
10081
10082 A new setting PreferredLifetime= has been added for addresses
10083 configured in .network file to configure the lifetime intended for an
10084 address.
10085
10086 The systemd-networkd DHCP server gained the option EmitRouter=, which
10087 defaults to yes, to configure whether the DHCP Option 3 (Router)
10088 should be emitted.
96515dbf 10089
e40a326c 10090 * The testing tool /usr/lib/systemd/systemd-activate is renamed to
97e5530c
ZJS
10091 systemd-socket-activate and installed into /usr/bin. It is now fully
10092 supported.
10093
e40a326c
LP
10094 * systemd-journald now uses separate threads to flush changes to disk
10095 when closing journal files, thus reducing impact of slow disk I/O on
10096 logging performance.
96515dbf 10097
e75690c3
ZJS
10098 * The sd-journal API gained two new calls
10099 sd_journal_open_directory_fd() and sd_journal_open_files_fd() which
10100 can be used to open journal files using file descriptors instead of
10101 file or directory paths. sd_journal_open_container() has been
10102 deprecated, sd_journal_open_directory_fd() should be used instead
10103 with the flag SD_JOURNAL_OS_ROOT.
10104
10105 * journalctl learned a new output mode "-o short-unix" that outputs log
10106 lines prefixed by their UNIX time (i.e. seconds since Jan 1st, 1970
10107 UTC). It also gained support for a new --no-hostname setting to
10108 suppress the hostname column in the family of "short" output modes.
10109
e40a326c
LP
10110 * systemd-ask-password now optionally skips printing of the password to
10111 stdout with --no-output which can be useful in scripts.
96515dbf
ZJS
10112
10113 * Framebuffer devices (/dev/fb*) and 3D printers and scanners
10114 (devices tagged with ID_MAKER_TOOL) are now tagged with
10115 "uaccess" and are available to logged in users.
10116
e75690c3 10117 * The DeviceAllow= unit setting now supports specifiers (with "%").
e40a326c
LP
10118
10119 * "systemctl show" gained a new --value switch, which allows print a
10120 only the contents of a specific unit property, without also printing
8951eaec
ZJS
10121 the property's name. Similar support was added to "show*" verbs
10122 of loginctl and machinectl that output "key=value" lists.
e40a326c 10123
e75690c3
ZJS
10124 * A new unit type "generated" was added for files dynamically generated
10125 by generator tools. Similarly, a new unit type "transient" is used
10126 for unit files created using the runtime API. "systemctl enable" will
10127 refuse to operate on such files.
10128
e40a326c
LP
10129 * A new command "systemctl revert" has been added that may be used to
10130 revert to the vendor version of a unit file, in case local changes
10131 have been made by adding drop-ins or overriding the unit file.
10132
10133 * "machinectl clean" gained a new verb to automatically remove all or
10134 just hidden container images.
10135
e40a326c
LP
10136 * systemd-tmpfiles gained support for a new line type "e" for emptying
10137 directories, if they exist, without creating them if they don't.
10138
e40a326c
LP
10139 * systemd-nspawn gained support for automatically patching the UID/GIDs
10140 of the owners and the ACLs of all files and directories in a
10141 container tree to match the UID/GID user namespacing range selected
10142 for the container invocation. This mode is enabled via the new
24597ee0
ZJS
10143 --private-users-chown switch. It also gained support for
10144 automatically choosing a free, previously unused UID/GID range when
10145 starting a container, via the new --private-users=pick setting (which
10146 implies --private-users-chown). Together, these options for the first
10147 time make user namespacing for nspawn containers fully automatic and
10148 thus deployable. The systemd-nspawn@.service template unit file has
10149 been changed to use this functionality by default.
e40a326c 10150
25b0e6cb
LP
10151 * systemd-nspawn gained a new --network-zone= switch, that allows
10152 creating ad-hoc virtual Ethernet links between multiple containers,
10153 that only exist as long as at least one container referencing them is
10154 running. This allows easy connecting of multiple containers with a
10155 common link that implements an Ethernet broadcast domain. Each of
10156 these network "zones" may be named relatively freely by the user, and
10157 may be referenced by any number of containers, but each container may
10158 only reference one of these "zones". On the lower level, this is
10159 implemented by an automatically managed bridge network interface for
10160 each zone, that is created when the first container referencing its
10161 zone is created and removed when the last one referencing its zone
10162 terminates.
10163
e40a326c 10164 * The default start timeout may now be configured on the kernel command
8951eaec
ZJS
10165 line via systemd.default_timeout_start_sec=. It was already
10166 configurable via the DefaultTimeoutStartSec= option in
10167 /etc/systemd/system.conf.
e40a326c 10168
030bd839 10169 * Socket units gained a new TriggerLimitIntervalSec= and
e40a326c
LP
10170 TriggerLimitBurst= setting to configure a limit on the activation
10171 rate of the socket unit.
10172
10173 * The LimitNICE= setting now optionally takes normal UNIX nice values
10174 in addition to the raw integer limit value. If the specified
1d3a473b 10175 parameter is prefixed with "+" or "-" and is in the range -20…19 the
e40a326c
LP
10176 value is understood as UNIX nice value. If not prefixed like this it
10177 is understood as raw RLIMIT_NICE limit.
10178
999a43f8
LP
10179 * Note that the effect of the PrivateDevices= unit file setting changed
10180 slightly with this release: the per-device /dev file system will be
10181 mounted read-only from this version on, and will have "noexec"
188d3082 10182 set. This (minor) change of behavior might cause some (exceptional)
999a43f8
LP
10183 legacy software to break, when PrivateDevices=yes is set for its
10184 service. Please leave PrivateDevices= off if you run into problems
10185 with this.
10186
e75690c3
ZJS
10187 * systemd-bootchart has been split out to a separate repository:
10188 https://github.com/systemd/systemd-bootchart
10189
10190 * systemd-bus-proxyd has been removed, as kdbus is unlikely to still be
10191 merged into the kernel in its current form.
10192
10193 * The compatibility libraries libsystemd-daemon.so,
10194 libsystemd-journal.so, libsystemd-id128.so, and libsystemd-login.so
10195 which have been deprecated since systemd-209 have been removed along
10196 with the corresponding pkg-config files. All symbols provided by
10197 those libraries are provided by libsystemd.so.
10198
10199 * The Capabilities= unit file setting has been removed (it is ignored
10200 for backwards compatibility). AmbientCapabilities= and
10201 CapabilityBoundingSet= should be used instead.
10202
4f9020fa
DR
10203 * A new special target has been added, initrd-root-device.target,
10204 which creates a synchronization point for dependencies of the root
10205 device in early userspace. Initramfs builders must ensure that this
10206 target is now included in early userspace.
10207
e75690c3
ZJS
10208 Contributions from: Alban Crequy, Alexander Kuleshov, Alexander Shopov,
10209 Alex Crawford, Andre Klärner, Andrew Eikum, Beniamino Galvani, Benjamin
10210 Robin, Biao Lu, Bjørnar Ness, Calvin Owens, Christian Hesse, Clemens
10211 Gruber, Colin Guthrie, Daniel Drake, Daniele Medri, Daniel J Walsh,
10212 Daniel Mack, Dan Nicholson, daurnimator, David Herrmann, David
10213 R. Hedges, Elias Probst, Emmanuel Gil Peyrot, EMOziko, Evgeny
10214 Vereshchagin, Federico, Felipe Sateler, Filipe Brandenburger, Franck
10215 Bui, frankheckenbach, gdamjan, Georgia Brikis, Harald Hoyer, Hendrik
77ff6022
CG
10216 Brueckner, Hristo Venev, Iago López Galeiras, Ian Kelling, Ismo
10217 Puustinen, Jakub Wilk, Jaroslav Škarvada, Jeff Huang, Joel Holdsworth,
e75690c3
ZJS
10218 John Paul Adrian Glaubitz, Jonathan Boulle, kayrus, Klearchos
10219 Chaloulos, Kyle Russell, Lars Uebernickel, Lennart Poettering, Lubomir
10220 Rintel, Lukáš Nykrýn, Mantas Mikulėnas, Marcel Holtmann, Martin Pitt,
77ff6022
CG
10221 Michael Biebl, michaelolbrich, Michał Bartoszkiewicz, Michal Koutný,
10222 Michal Sekletar, Mike Frysinger, Mike Gilbert, Mingcong Bai, Ming Lin,
10223 mulkieran, muzena, Nalin Dahyabhai, Naohiro Aota, Nathan McSween,
e75690c3
ZJS
10224 Nicolas Braud-Santoni, Patrik Flykt, Peter Hutterer, Peter Mattern,
10225 Petr Lautrbach, Petros Angelatos, Piotr Drąg, Rabin Vincent, Robert
10226 Węcławski, Ronny Chevalier, Samuel Tardieu, Stefan Saraev, Stefan
10227 Schallenberg aka nafets227, Steven Siloti, Susant Sahani, Sylvain
10228 Plantefève, Taylor Smock, Tejun Heo, Thomas Blume, Thomas Haller,
10229 Thomas H. P. Andersen, Tobias Klauser, Tom Gundersen, topimiettinen,
46e40fab
ZJS
10230 Torstein Husebø, Umut Tezduyar Lindskog, Uwe Kleine-König, Victor Toso,
10231 Vinay Kulkarni, Vito Caputo, Vittorio G (VittGam), Vladimir Panteleev,
10232 Wieland Hoffmann, Wouter Verhelst, Yu Watanabe, Zbigniew
10233 Jędrzejewski-Szmek
e40a326c 10234
46e40fab 10235 — Fairfax, 2016-05-21
96515dbf 10236
61f32bff
MP
10237CHANGES WITH 229:
10238
d5f8b295
LP
10239 * The systemd-resolved DNS resolver service has gained a substantial
10240 set of new features, most prominently it may now act as a DNSSEC
10241 validating stub resolver. DNSSEC mode is currently turned off by
ed5f8840
ZJS
10242 default, but is expected to be turned on by default in one of the
10243 next releases. For now, we invite everybody to test the DNSSEC logic
10244 by setting DNSSEC=allow-downgrade in /etc/systemd/resolved.conf. The
10245 service also gained a full set of D-Bus interfaces, including calls
10246 to configure DNS and DNSSEC settings per link (for use by external
10247 network management software). systemd-resolved and systemd-networkd
10248 now distinguish between "search" and "routing" domains. The former
10249 are used to qualify single-label names, the latter are used purely
10250 for routing lookups within certain domains to specific links.
10251 resolved now also synthesizes RRs for all entries from /etc/hosts.
d5f8b295
LP
10252
10253 * The systemd-resolve tool (which is a client utility for
ed5f8840
ZJS
10254 systemd-resolved) has been improved considerably and is now fully
10255 supported and documented. Hence it has moved from /usr/lib/systemd to
10256 /usr/bin.
d5f8b295
LP
10257
10258 * /dev/disk/by-path/ symlink support has been (re-)added for virtio
10259 devices.
10260
a7c723c0
LP
10261 * The coredump collection logic has been reworked: when a coredump is
10262 collected it is now written to disk, compressed and processed
10263 (including stacktrace extraction) from a new instantiated service
10264 systemd-coredump@.service, instead of directly from the
10265 /proc/sys/kernel/core_pattern hook we provide. This is beneficial as
10266 processing large coredumps can take up a substantial amount of
10267 resources and time, and this previously happened entirely outside of
10268 systemd's service supervision. With the new logic the core_pattern
10269 hook only does minimal metadata collection before passing off control
10270 to the new instantiated service, which is configured with a time
10271 limit, a nice level and other settings to minimize negative impact on
10272 the rest of the system. Also note that the new logic will honour the
10273 RLIMIT_CORE setting of the crashed process, which now allows users
10274 and processes to turn off coredumping for their processes by setting
10275 this limit.
10276
10277 * The RLIMIT_CORE resource limit now defaults to "unlimited" for PID 1
10278 and all forked processes by default. Previously, PID 1 would leave
10279 the setting at "0" for all processes, as set by the kernel. Note that
10280 the resource limit traditionally has no effect on the generated
10281 coredumps on the system if the /proc/sys/kernel/core_pattern hook
10282 logic is used. Since the limit is now honoured (see above) its
10283 default has been changed so that the coredumping logic is enabled by
10284 default for all processes, while allowing specific opt-out.
10285
10286 * When the stacktrace is extracted from processes of system users, this
10287 is now done as "systemd-coredump" user, in order to sandbox this
10288 potentially security sensitive parsing operation. (Note that when
10289 processing coredumps of normal users this is done under the user ID
10290 of process that crashed, as before.) Packagers should take notice
10291 that it is now necessary to create the "systemd-coredump" system user
10292 and group at package installation time.
10293
d5f8b295
LP
10294 * The systemd-activate socket activation testing tool gained support
10295 for SOCK_DGRAM and SOCK_SEQPACKET sockets using the new --datagram
10296 and --seqpacket switches. It also has been extended to support both
10297 new-style and inetd-style file descriptor passing. Use the new
10298 --inetd switch to request inetd-style file descriptor passing.
10299
8968aea0
MP
10300 * Most systemd tools now honor a new $SYSTEMD_COLORS environment
10301 variable, which takes a boolean value. If set to false, ANSI color
d5f8b295
LP
10302 output is disabled in the tools even when run on a terminal that
10303 supports it.
10304
10305 * The VXLAN support in networkd now supports two new settings
10306 DestinationPort= and PortRange=.
10307
10308 * A new systemd.machine_id= kernel command line switch has been added,
10309 that may be used to set the machine ID in /etc/machine-id if it is
10310 not initialized yet. This command line option has no effect if the
10311 file is already initialized.
10312
10313 * systemd-nspawn gained a new --as-pid2 switch that invokes any
10314 specified command line as PID 2 rather than PID 1 in the
ed5f8840
ZJS
10315 container. In this mode PID 1 is a minimal stub init process that
10316 implements the special POSIX and Linux semantics of PID 1 regarding
10317 signal and child process management. Note that this stub init process
10318 is implemented in nspawn itself and requires no support from the
10319 container image. This new logic is useful to support running
10320 arbitrary commands in the container, as normal processes are
d5f8b295
LP
10321 generally not prepared to run as PID 1.
10322
10323 * systemd-nspawn gained a new --chdir= switch for setting the current
10324 working directory for the process started in the container.
10325
ed5f8840
ZJS
10326 * "journalctl /dev/sda" will now output all kernel log messages for
10327 specified device from the current boot, in addition to all devices
10328 that are parents of it. This should make log output about devices
10329 pretty useful, as long as kernel drivers attach enough metadata to
10330 the log messages. (The usual SATA drivers do.)
d5f8b295
LP
10331
10332 * The sd-journal API gained two new calls
10333 sd_journal_has_runtime_files() and sd_journal_has_persistent_files()
10334 that report whether log data from /run or /var has been found.
10335
10336 * journalctl gained a new switch "--fields" that prints all journal
33db1b90 10337 record field names currently in use in the journal. This is backed
d5f8b295
LP
10338 by two new sd-journal API calls sd_journal_enumerate_fields() and
10339 sd_journal_restart_fields().
10340
10341 * Most configurable timeouts in systemd now expect an argument of
8968aea0
MP
10342 "infinity" to turn them off, instead of "0" as before. The semantics
10343 from now on is that a timeout of "0" means "now", and "infinity"
10344 means "never". To maintain backwards compatibility, "0" continues to
10345 turn off previously existing timeout settings.
d5f8b295
LP
10346
10347 * "systemctl reload-or-try-restart" has been renamed to "systemctl
8968aea0
MP
10348 try-reload-or-restart" to clarify what it actually does: the "try"
10349 logic applies to both reloading and restarting, not just restarting.
10350 The old name continues to be accepted for compatibility.
10351
10352 * On boot-up, when PID 1 detects that the system clock is behind the
10353 release date of the systemd version in use, the clock is now set
10354 to the latter. Previously, this was already done in timesyncd, in order
d5f8b295
LP
10355 to avoid running with clocks set to the various clock epochs such as
10356 1902, 1938 or 1970. With this change the logic is now done in PID 1
10357 in addition to timesyncd during early boot-up, so that it is enforced
10358 before the first process is spawned by systemd. Note that the logic
10359 in timesyncd remains, as it is more comprehensive and ensures
ed5f8840 10360 clock monotonicity by maintaining a persistent timestamp file in
d5f8b295
LP
10361 /var. Since /var is generally not available in earliest boot or the
10362 initrd, this part of the logic remains in timesyncd, and is not done
10363 by PID 1.
10364
50f48ad3
DM
10365 * Support for tweaking details in net_cls.class_id through the
10366 NetClass= configuration directive has been removed, as the kernel
10367 people have decided to deprecate that controller in cgroup v2.
10368 Userspace tools such as nftables are moving over to setting rules
10369 that are specific to the full cgroup path of a task, which obsoletes
10370 these controllers anyway. The NetClass= directive is kept around for
10371 legacy compatibility reasons. For a more in-depth description of the
10372 kernel change, please refer to the respective upstream commit:
10373
10374 https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=bd1060a1d671
10375
d5f8b295 10376 * A new service setting RuntimeMaxSec= has been added that may be used
8968aea0 10377 to specify a maximum runtime for a service. If the timeout is hit, the
d5f8b295
LP
10378 service is terminated and put into a failure state.
10379
8968aea0
MP
10380 * A new service setting AmbientCapabilities= has been added. It allows
10381 configuration of additional Linux process capabilities that are
10382 passed to the activated processes. This is only available on very
d5f8b295
LP
10383 recent kernels.
10384
10385 * The process resource limit settings in service units may now be used
10386 to configure hard and soft limits individually.
10387
8968aea0 10388 * The various libsystemd APIs such as sd-bus or sd-event now publicly
ed5f8840
ZJS
10389 expose support for gcc's __attribute__((cleanup())) C extension.
10390 Specifically, for many object destructor functions alternative
10391 versions have been added that have names suffixed with "p" and take a
10392 pointer to a pointer to the object to destroy, instead of just a
10393 pointer to the object itself. This is useful because these destructor
10394 functions may be used directly as parameters to the cleanup
10395 construct. Internally, systemd has been a heavy user of this GCC
10396 extension for a long time, and with this change similar support is
10397 now available to consumers of the library outside of systemd. Note
8968aea0 10398 that by using this extension in your sources compatibility with old
ed5f8840
ZJS
10399 and strictly ANSI compatible C compilers is lost. However, all gcc or
10400 LLVM versions of recent years support this extension.
d5f8b295
LP
10401
10402 * Timer units gained support for a new setting RandomizedDelaySec= that
8968aea0
MP
10403 allows configuring some additional randomized delay to the configured
10404 time. This is useful to spread out timer events to avoid load peaks in
10405 clusters or larger setups.
d5f8b295
LP
10406
10407 * Calendar time specifications now support sub-second accuracy.
10408
10409 * Socket units now support listening on SCTP and UDP-lite protocol
10410 sockets.
10411
10412 * The sd-event API now comes with a full set of man pages.
10413
10414 * Older versions of systemd contained experimental support for
10415 compressing journal files and coredumps with the LZ4 compressor that
10416 was not compatible with the lz4 binary (due to API limitations of the
10417 lz4 library). This support has been removed; only support for files
10418 compatible with the lz4 binary remains. This LZ4 logic is now
10419 officially supported and no longer considered experimental.
10420
10421 * The dkr image import logic has been removed again from importd. dkr's
10422 micro-services focus doesn't fit into the machine image focus of
10423 importd, and quickly got out of date with the upstream dkr API.
10424
10425 * Creation of the /run/lock/lockdev/ directory was dropped from
10426 tmpfiles.d/legacy.conf. Better locking mechanisms like flock() have
61f32bff
MP
10427 been available for many years. If you still need this, you need to
10428 create your own tmpfiles.d config file with:
d5f8b295
LP
10429
10430 d /run/lock/lockdev 0775 root lock -
61f32bff 10431
dd95b381
LP
10432 * The settings StartLimitBurst=, StartLimitInterval=, StartLimitAction=
10433 and RebootArgument= have been moved from the [Service] section of
10434 unit files to [Unit], and they are now supported on all unit types,
10435 not just service units. Of course, systemd will continue to
10436 understand these settings also at the old location, in order to
10437 maintain compatibility.
10438
3545ab35
LP
10439 Contributions from: Abdo Roig-Maranges, Alban Crequy, Aleksander
10440 Adamowski, Alexander Kuleshov, Andreas Pokorny, Andrei Borzenkov,
10441 Andrew Wilcox, Arthur Clement, Beniamino Galvani, Casey Schaufler,
10442 Chris Atkinson, Chris Mayo, Christian Hesse, Damjan Georgievski, Dan
10443 Dedrick, Daniele Medri, Daniel J Walsh, Daniel Korostil, Daniel Mack,
10444 David Herrmann, Dimitri John Ledkov, Dominik Hannen, Douglas Christman,
10445 Evgeny Vereshchagin, Filipe Brandenburger, Franck Bui, Gabor Kelemen,
10446 Harald Hoyer, Hayden Walles, Helmut Grohne, Henrik Kaare Poulsen,
10447 Hristo Venev, Hui Wang, Indrajit Raychaudhuri, Ismo Puustinen, Jakub
10448 Wilk, Jan Alexander Steffens (heftig), Jan Engelhardt, Jan Synacek,
10449 Joost Bremmer, Jorgen Schaefer, Karel Zak, Klearchos Chaloulos,
10450 lc85446, Lennart Poettering, Lukas Nykryn, Mantas Mikulėnas, Marcel
10451 Holtmann, Martin Pitt, Michael Biebl, Michael Olbrich, Michael Scherer,
10452 Michał Górny, Michal Sekletar, Nicolas Cornu, Nicolas Iooss, Nils
10453 Carlson, nmartensen, nnz1024, Patrick Ohly, Peter Hutterer, Phillip Sz,
10454 Ronny Chevalier, Samu Kallio, Shawn Landden, Stef Walter, Susant
10455 Sahani, Sylvain Plantefève, Tadej Janež, Thomas Hindoe Paaboel
10456 Andersen, Tom Gundersen, Torstein Husebø, Umut Tezduyar Lindskog, Vito
10457 Caputo, WaLyong Cho, Yu Watanabe, Zbigniew Jędrzejewski-Szmek
10458
ccddd104 10459 — Berlin, 2016-02-11
61f32bff 10460
a11c7ea5
LP
10461CHANGES WITH 228:
10462
a11c7ea5
LP
10463 * A number of properties previously only settable in unit
10464 files are now also available as properties to set when
10465 creating transient units programmatically via the bus, as it
10466 is exposed with systemd-run's --property=
10467 setting. Specifically, these are: SyslogIdentifier=,
10468 SyslogLevelPrefix=, TimerSlackNSec=, OOMScoreAdjust=,
10469 EnvironmentFile=, ReadWriteDirectories=,
10470 ReadOnlyDirectories=, InaccessibleDirectories=,
10471 ProtectSystem=, ProtectHome=, RuntimeDirectory=.
10472
28c85daf
LP
10473 * When creating transient services via the bus API it is now
10474 possible to pass in a set of file descriptors to use as
10475 STDIN/STDOUT/STDERR for the invoked process.
a11c7ea5 10476
f1f8a5a5
LP
10477 * Slice units may now be created transiently via the bus APIs,
10478 similar to the way service and scope units may already be
10479 created transiently.
10480
a11c7ea5
LP
10481 * Wherever systemd expects a calendar timestamp specification
10482 (like in journalctl's --since= and --until= switches) UTC
10483 timestamps are now supported. Timestamps suffixed with "UTC"
10484 are now considered to be in Universal Time Coordinated
10485 instead of the local timezone. Also, timestamps may now
815bb5bd 10486 optionally be specified with sub-second accuracy. Both of
a11c7ea5
LP
10487 these additions also apply to recurring calendar event
10488 specification, such as OnCalendar= in timer units.
10489
28c85daf
LP
10490 * journalctl gained a new "--sync" switch that asks the
10491 journal daemon to write all so far unwritten log messages to
10492 disk and sync the files, before returning.
10493
a11c7ea5
LP
10494 * systemd-tmpfiles learned two new line types "q" and "Q" that
10495 operate like "v", but also set up a basic btrfs quota
10496 hierarchy when used on a btrfs file system with quota
10497 enabled.
10498
f1f8a5a5
LP
10499 * tmpfiles' "v", "q" and "Q" will now create a plain directory
10500 instead of a subvolume (even on a btrfs file system) if the
10501 root directory is a plain directory, and not a
10502 subvolume. This should simplify things with certain chroot()
10503 environments which are not aware of the concept of btrfs
10504 subvolumes.
10505
a11c7ea5
LP
10506 * systemd-detect-virt gained a new --chroot switch to detect
10507 whether execution takes place in a chroot() environment.
10508
28c85daf 10509 * CPUAffinity= now takes CPU index ranges in addition to
a11c7ea5
LP
10510 individual indexes.
10511
28c85daf 10512 * The various memory-related resource limit settings (such as
1d3a473b 10513 LimitAS=) now understand the usual K, M, G, … suffixes to
28c85daf 10514 the base of 1024 (IEC). Similar, the time-related resource
1d3a473b
ZJS
10515 limit settings understand the usual min, h, day, … suffixes
10516 now.
28c85daf 10517
f1f8a5a5
LP
10518 * There's a new system.conf setting DefaultTasksMax= to
10519 control the default TasksMax= setting for services and
10520 scopes running on the system. (TasksMax= is the primary
10521 setting that exposes the "pids" cgroup controller on systemd
10522 and was introduced in the previous systemd release.) The
10523 setting now defaults to 512, which means services that are
10524 not explicitly configured otherwise will only be able to
10525 create 512 processes or threads at maximum, from this
10526 version on. Note that this means that thread- or
10527 process-heavy services might need to be reconfigured to set
10528 TasksMax= to a higher value. It is sufficient to set
10529 TasksMax= in these specific unit files to a higher value, or
10530 even "infinity". Similar, there's now a logind.conf setting
10531 UserTasksMax= that defaults to 4096 and limits the total
10532 number of processes or tasks each user may own
10533 concurrently. nspawn containers also have the TasksMax=
10534 value set by default now, to 8192. Note that all of this
10535 only has an effect if the "pids" cgroup controller is
10536 enabled in the kernel. The general benefit of these changes
10537 should be a more robust and safer system, that provides a
10538 certain amount of per-service fork() bomb protection.
10539
28c85daf
LP
10540 * systemd-nspawn gained the new --network-veth-extra= switch
10541 to define additional and arbitrarily-named virtual Ethernet
10542 links between the host and the container.
10543
10544 * A new service execution setting PassEnvironment= has been
10545 added that allows importing select environment variables
10546 from PID1's environment block into the environment block of
10547 the service.
10548
ddb4b0d3 10549 * Timer units gained support for a new RemainAfterElapse=
595bfe7d 10550 setting which takes a boolean argument. It defaults to on,
ddb4b0d3
LP
10551 exposing behaviour unchanged to previous releases. If set to
10552 off, timer units are unloaded after they elapsed if they
10553 cannot elapse again. This is particularly useful for
10554 transient timer units, which shall not stay around longer
10555 than until they first elapse.
10556
a11c7ea5 10557 * systemd will now bump the net.unix.max_dgram_qlen to 512 by
28c85daf
LP
10558 default now (the kernel default is 16). This is beneficial
10559 for avoiding blocking on AF_UNIX/SOCK_DGRAM sockets since it
a11c7ea5
LP
10560 allows substantially larger numbers of queued
10561 datagrams. This should increase the capability of systemd to
10562 parallelize boot-up, as logging and sd_notify() are unlikely
10563 to stall execution anymore. If you need to change the value
10564 from the new defaults, use the usual sysctl.d/ snippets.
10565
28c85daf
LP
10566 * The compression framing format used by the journal or
10567 coredump processing has changed to be in line with what the
10568 official LZ4 tools generate. LZ4 compression support in
10569 systemd was considered unsupported previously, as the format
10570 was not compatible with the normal tools. With this release
10571 this has changed now, and it is hence safe for downstream
10572 distributions to turn it on. While not compressing as well
815bb5bd 10573 as the XZ, LZ4 is substantially faster, which makes
28c85daf
LP
10574 it a good default choice for the compression logic in the
10575 journal and in coredump handling.
a11c7ea5 10576
28c85daf
LP
10577 * Any reference to /etc/mtab has been dropped from
10578 systemd. The file has been obsolete since a while, but
10579 systemd refused to work on systems where it was incorrectly
815bb5bd 10580 set up (it should be a symlink or non-existent). Please make
28c85daf
LP
10581 sure to update to util-linux 2.27.1 or newer in conjunction
10582 with this systemd release, which also drops any reference to
10583 /etc/mtab. If you maintain a distribution make sure that no
10584 software you package still references it, as this is a
10585 likely source of bugs. There's also a glibc bug pending,
10586 asking for removal of any reference to this obsolete file:
10587
10588 https://sourceware.org/bugzilla/show_bug.cgi?id=19108
a11c7ea5 10589
d5bd92bb
LP
10590 Note that only util-linux versions built with
10591 --enable-libmount-force-mountinfo are supported.
10592
a11c7ea5
LP
10593 * Support for the ".snapshot" unit type has been removed. This
10594 feature turned out to be little useful and little used, and
10595 has now been removed from the core and from systemctl.
10596
b9e2f7eb
LP
10597 * The dependency types RequiresOverridable= and
10598 RequisiteOverridable= have been removed from systemd. They
10599 have been used only very sparingly to our knowledge and
10600 other options that provide a similar effect (such as
10601 systemctl --mode=ignore-dependencies) are much more useful
10602 and commonly used. Moreover, they were only half-way
10603 implemented as the option to control behaviour regarding
10604 these dependencies was never added to systemctl. By removing
10605 these dependency types the execution engine becomes a bit
10606 simpler. Unit files that use these dependencies should be
10607 changed to use the non-Overridable dependency types
10608 instead. In fact, when parsing unit files with these
10609 options, that's what systemd will automatically convert them
10610 too, but it will also warn, asking users to fix the unit
10611 files accordingly. Removal of these dependency types should
10612 only affect a negligible number of unit files in the wild.
10613
10614 * Behaviour of networkd's IPForward= option changed
10615 (again). It will no longer maintain a per-interface setting,
10616 but propagate one way from interfaces where this is enabled
10617 to the global kernel setting. The global setting will be
10618 enabled when requested by a network that is set up, but
10619 never be disabled again. This change was made to make sure
10620 IPv4 and IPv6 behaviour regarding packet forwarding is
10621 similar (as the Linux IPv6 stack does not support
10622 per-interface control of this setting) and to minimize
10623 surprises.
10624
28c85daf
LP
10625 * In unit files the behaviour of %u, %U, %h, %s has
10626 changed. These specifiers will now unconditionally resolve
10627 to the various user database fields of the user that the
10628 systemd instance is running as, instead of the user
10629 configured in the specific unit via User=. Note that this
10630 effectively doesn't change much, as resolving of these
10631 specifiers was already turned off in the --system instance
10632 of systemd, as we cannot do NSS lookups from PID 1. In the
10633 --user instance of systemd these specifiers where correctly
10634 resolved, but hardly made any sense, since the user instance
10635 lacks privileges to do user switches anyway, and User= is
ce830873 10636 hence useless. Moreover, even in the --user instance of
28c85daf
LP
10637 systemd behaviour was awkward as it would only take settings
10638 from User= assignment placed before the specifier into
10639 account. In order to unify and simplify the logic around
10640 this the specifiers will now always resolve to the
10641 credentials of the user invoking the manager (which in case
10642 of PID 1 is the root user).
10643
10644 Contributions from: Andrew Jones, Beniamino Galvani, Boyuan
10645 Yang, Daniel Machon, Daniel Mack, David Herrmann, David
10646 Reynolds, David Strauss, Dongsu Park, Evgeny Vereshchagin,
f1f8a5a5
LP
10647 Felipe Sateler, Filipe Brandenburger, Franck Bui, Hristo
10648 Venev, Iago López Galeiras, Jan Engelhardt, Jan Janssen, Jan
10649 Synacek, Jesus Ornelas Aguayo, Karel Zak, kayrus, Kay Sievers,
10650 Lennart Poettering, Liu Yuan Yuan, Mantas Mikulėnas, Marcel
10651 Holtmann, Marcin Bachry, Marcos Alano, Marcos Mello, Mark
10652 Theunissen, Martin Pitt, Michael Marineau, Michael Olbrich,
10653 Michal Schmidt, Michal Sekletar, Mirco Tischler, Nick Owens,
10654 Nicolas Cornu, Patrik Flykt, Peter Hutterer, reverendhomer,
10655 Ronny Chevalier, Sangjung Woo, Seong-ho Cho, Shawn Landden,
10656 Susant Sahani, Thomas Haller, Thomas Hindoe Paaboel Andersen,
10657 Tom Gundersen, Torstein Husebø, Vito Caputo, Zbigniew
10658 Jędrzejewski-Szmek
28c85daf 10659
ccddd104 10660 — Berlin, 2015-11-18
a11c7ea5 10661
c97e586d
DM
10662CHANGES WITH 227:
10663
10664 * systemd now depends on util-linux v2.27. More specifically,
10665 the newly added mount monitor feature in libmount now
10666 replaces systemd's former own implementation.
10667
10668 * libmount mandates /etc/mtab not to be regular file, and
10669 systemd now enforces this condition at early boot.
10670 /etc/mtab has been deprecated and warned about for a very
10671 long time, so systems running systemd should already have
10672 stopped having this file around as anything else than a
10673 symlink to /proc/self/mounts.
10674
33db1b90 10675 * Support for the "pids" cgroup controller has been added. It
d046fb93 10676 allows accounting the number of tasks in a cgroup and
c97e586d
DM
10677 enforcing limits on it. This adds two new setting
10678 TasksAccounting= and TasksMax= to each unit, as well as a
6fd5517b 10679 global option DefaultTasksAccounting=.
c97e586d
DM
10680
10681 * Support for the "net_cls" cgroup controller has been added.
fe08a30b
LP
10682 It allows assigning a net class ID to each task in the
10683 cgroup, which can then be used in firewall rules and traffic
10684 shaping configurations. Note that the kernel netfilter net
10685 class code does not currently work reliably for ingress
10686 packets on unestablished sockets.
c97e586d
DM
10687
10688 This adds a new config directive called NetClass= to CGroup
6fd5517b 10689 enabled units. Allowed values are positive numbers for fixed
c97e586d
DM
10690 assignments and "auto" for picking a free value
10691 automatically.
10692
21d86c61
DM
10693 * 'systemctl is-system-running' now returns 'offline' if the
10694 system is not booted with systemd. This command can now be
10695 used as a substitute for 'systemd-notify --booted'.
10696
10697 * Watchdog timeouts have been increased to 3 minutes for all
10698 in-tree service files. Apparently, disk IO issues are more
10699 frequent than we hoped, and user reported >1 minute waiting
10700 for disk IO.
10701
10702 * 'machine-id-commit' functionality has been merged into
10703 'machine-id-setup --commit'. The separate binary has been
10704 removed.
10705
d046fb93
LP
10706 * The WorkingDirectory= directive in unit files may now be set
10707 to the special value '~'. In this case, the working
10708 directory is set to the home directory of the user
10709 configured in User=.
21d86c61 10710
fe08a30b
LP
10711 * "machinectl shell" will now open the shell in the home
10712 directory of the selected user by default.
10713
21d86c61 10714 * The CrashChVT= configuration file setting is renamed to
d046fb93
LP
10715 CrashChangeVT=, following our usual logic of not
10716 abbreviating unnecessarily. The old directive is still
10717 supported for compat reasons. Also, this directive now takes
10718 an integer value between 1 and 63, or a boolean value. The
10719 formerly supported '-1' value for disabling stays around for
10720 compat reasons.
21d86c61 10721
fe08a30b 10722 * The PrivateTmp=, PrivateDevices=, PrivateNetwork=,
8b5f9d15 10723 NoNewPrivileges=, TTYPath=, WorkingDirectory= and
fe08a30b
LP
10724 RootDirectory= properties can now be set for transient
10725 units.
10726
10727 * The systemd-analyze tool gained a new "set-log-target" verb
10728 to change the logging target the system manager logs to
10729 dynamically during runtime. This is similar to how
10730 "systemd-analyze set-log-level" already changes the log
10731 level.
10732
10733 * In nspawn /sys is now mounted as tmpfs, with only a selected
10734 set of subdirectories mounted in from the real sysfs. This
10735 enhances security slightly, and is useful for ensuring user
10736 namespaces work correctly.
10737
10738 * Support for USB FunctionFS activation has been added. This
10739 allows implementation of USB gadget services that are
10740 activated as soon as they are requested, so that they don't
595bfe7d 10741 have to run continuously, similar to classic socket
fe08a30b
LP
10742 activation.
10743
10744 * The "systemctl exit" command now optionally takes an
10745 additional parameter that sets the exit code to return from
10746 the systemd manager when exiting. This is only relevant when
10747 running the systemd user instance, or when running the
10748 system instance in a container.
10749
10750 * sd-bus gained the new API calls sd_bus_path_encode_many()
10751 and sd_bus_path_decode_many() that allow easy encoding and
10752 decoding of multiple identifier strings inside a D-Bus
10753 object path. Another new call sd_bus_default_flush_close()
10754 has been added to flush and close per-thread default
10755 connections.
10756
10757 * systemd-cgtop gained support for a -M/--machine= switch to
10758 show the control groups within a certain container only.
10759
10760 * "systemctl kill" gained support for an optional --fail
10761 switch. If specified the requested operation will fail of no
10762 processes have been killed, because the unit had no
10763 processes attached, or similar.
10764
bdba9227
DM
10765 * A new systemd.crash_reboot=1 kernel command line option has
10766 been added that triggers a reboot after crashing. This can
10767 also be set through CrashReboot= in systemd.conf.
10768
10769 * The RuntimeDirectory= setting now understands unit
10770 specifiers like %i or %f.
10771
ce830873 10772 * A new (still internal) library API sd-ipv4acd has been added,
fe08a30b
LP
10773 that implements address conflict detection for IPv4. It's
10774 based on code from sd-ipv4ll, and will be useful for
10775 detecting DHCP address conflicts.
10776
bdba9227
DM
10777 * File descriptors passed during socket activation may now be
10778 named. A new API sd_listen_fds_with_names() is added to
33db1b90 10779 access the names. The default names may be overridden,
bdba9227
DM
10780 either in the .socket file using the FileDescriptorName=
10781 parameter, or by passing FDNAME= when storing the file
10782 descriptors using sd_notify().
fe08a30b 10783
d046fb93
LP
10784 * systemd-networkd gained support for:
10785
0053598f 10786 - Setting the IPv6 Router Advertisement settings via
edf4126f 10787 IPv6AcceptRouterAdvertisements= in .network files.
d046fb93
LP
10788
10789 - Configuring the HelloTimeSec=, MaxAgeSec= and
10790 ForwardDelaySec= bridge parameters in .netdev files.
10791
10792 - Configuring PreferredSource= for static routes in
edf4126f 10793 .network files.
fe08a30b 10794
bdba9227
DM
10795 * The "ask-password" framework used to query for LUKS harddisk
10796 passwords or SSL passwords during boot gained support for
10797 caching passwords in the kernel keyring, if it is
10798 available. This makes sure that the user only has to type in
10799 a passphrase once if there are multiple objects to unlock
10800 with the same one. Previously, such password caching was
10801 available only when Plymouth was used; this moves the
10802 caching logic into the systemd codebase itself. The
10803 "systemd-ask-password" utility gained a new --keyname=
10804 switch to control which kernel keyring key to use for
10805 caching a password in. This functionality is also useful for
10806 enabling display managers such as gdm to automatically
10807 unlock the user's GNOME keyring if its passphrase, the
10808 user's password and the harddisk password are the same, if
10809 gdm-autologin is used.
fe08a30b
LP
10810
10811 * When downloading tar or raw images using "machinectl
10812 pull-tar" or "machinectl pull-raw", a matching ".nspawn"
10813 file is now also downloaded, if it is available and stored
10814 next to the image file.
c97e586d 10815
91d0d699
LP
10816 * Units of type ".socket" gained a new boolean setting
10817 Writable= which is only useful in conjunction with
10818 ListenSpecial=. If true, enables opening the specified
10819 special file in O_RDWR mode rather than O_RDONLY mode.
10820
10821 * systemd-rfkill has been reworked to become a singleton
10822 service that is activated through /dev/rfkill on each rfkill
10823 state change and saves the settings to disk. This way,
10824 systemd-rfkill is now compatible with devices that exist
10825 only intermittendly, and even restores state if the previous
10826 system shutdown was abrupt rather than clean.
10827
d046fb93
LP
10828 * The journal daemon gained support for vacuuming old journal
10829 files controlled by the number of files that shall remain,
10830 in addition to the already existing control by size and by
10831 date. This is useful as journal interleaving performance
6dd6a9c4 10832 degrades with too many separate journal files, and allows
d046fb93
LP
10833 putting an effective limit on them. The new setting defaults
10834 to 100, but this may be changed by setting SystemMaxFiles=
10835 and RuntimeMaxFiles= in journald.conf. Also, the
10836 "journalctl" tool gained the new --vacuum-files= switch to
10837 manually vacuum journal files to leave only the specified
10838 number of files in place.
c48eb61f 10839
bdba9227
DM
10840 * udev will now create /dev/disk/by-path links for ATA devices
10841 on kernels where that is supported.
c30f086f 10842
efce0ffe 10843 * Galician, Serbian, Turkish and Korean translations were added.
c97e586d 10844
61e6771c
LP
10845 Contributions from: Aaro Koskinen, Alban Crequy, Beniamino
10846 Galvani, Benjamin Robin, Branislav Blaskovic, Chen-Han Hsiao
10847 (Stanley), Daniel Buch, Daniel Machon, Daniel Mack, David
10848 Herrmann, David Milburn, doubleodoug, Evgeny Vereshchagin,
10849 Felipe Franciosi, Filipe Brandenburger, Fran Dieguez, Gabriel
10850 de Perthuis, Georg Müller, Hans de Goede, Hendrik Brueckner,
10851 Ivan Shapovalov, Jacob Keller, Jan Engelhardt, Jan Janssen,
10852 Jan Synacek, Jens Kuske, Karel Zak, Kay Sievers, Krzesimir
10853 Nowak, Krzysztof Kotlenga, Lars Uebernickel, Lennart
10854 Poettering, Lukas Nykryn, Łukasz Stelmach, Maciej Wereski,
10855 Marcel Holtmann, Marius Thesing, Martin Pitt, Michael Biebl,
10856 Michael Gebetsroither, Michal Schmidt, Michal Sekletar, Mike
10857 Gilbert, Muhammet Kara, nazgul77, Nicolas Cornu, NoXPhasma,
10858 Olof Johansson, Patrik Flykt, Pawel Szewczyk, reverendhomer,
10859 Ronny Chevalier, Sangjung Woo, Seong-ho Cho, Susant Sahani,
10860 Sylvain Plantefève, Thomas Haller, Thomas Hindoe Paaboel
10861 Andersen, Tom Gundersen, Tom Lyon, Viktar Vauchkevich,
10862 Zbigniew Jędrzejewski-Szmek, Марко М. Костић
10863
ccddd104 10864 — Berlin, 2015-10-07
c97e586d 10865
c9912c5e
DH
10866CHANGES WITH 226:
10867
5e8d4254
LP
10868 * The DHCP implementation of systemd-networkd gained a set of
10869 new features:
10870
10871 - The DHCP server now supports emitting DNS and NTP
10872 information. It may be enabled and configured via
10873 EmitDNS=, DNS=, EmitNTP=, and NTP=. If transmission of DNS
10874 and NTP information is enabled, but no servers are
10875 configured, the corresponding uplink information (if there
10876 is any) is propagated.
10877
10878 - Server and client now support transmission and reception
10879 of timezone information. It can be configured via the
10880 newly introduced network options UseTimezone=,
33db1b90 10881 EmitTimezone=, and Timezone=. Transmission of timezone
5e8d4254
LP
10882 information is enabled between host and containers by
10883 default now: the container will change its local timezone
10884 to what the host has set.
10885
10886 - Lease timeouts can now be configured via
10887 MaxLeaseTimeSec= and DefaultLeaseTimeSec=.
10888
10889 - The DHCP server improved on the stability of
10890 leases. Clients are more likely to get the same lease
10891 information back, even if the server loses state.
10892
10893 - The DHCP server supports two new configuration options to
10894 control the lease address pool metrics, PoolOffset= and
10895 PoolSize=.
10896
10897 * The encapsulation limit of tunnels in systemd-networkd may
10898 now be configured via 'EncapsulationLimit='. It allows
10899 modifying the maximum additional levels of encapsulation
10900 that are permitted to be prepended to a packet.
10901
10902 * systemd now supports the concept of user buses replacing
10903 session buses, if used with dbus-1.10 (and enabled via dbus
10904 --enable-user-session). It previously only supported this on
10905 kdbus-enabled systems, and this release expands this to
10906 'dbus-daemon' systems.
10907
10908 * systemd-networkd now supports predictable interface names
10909 for virtio devices.
10910
10911 * systemd now optionally supports the new Linux kernel
10912 "unified" control group hierarchy. If enabled via the kernel
10913 command-line option 'systemd.unified_cgroup_hierarchy=1',
10914 systemd will try to mount the unified cgroup hierarchy
10915 directly on /sys/fs/cgroup. If not enabled, or not
10916 available, systemd will fall back to the legacy cgroup
10917 hierarchy setup, as before. Host system and containers can
10918 mix and match legacy and unified hierarchies as they
856ca72b 10919 wish. nspawn understands the $UNIFIED_CGROUP_HIERARCHY
5e8d4254
LP
10920 environment variable to individually select the hierarchy to
10921 use for executed containers. By default, nspawn will use the
10922 unified hierarchy for the containers if the host uses the
10923 unified hierarchy, and the legacy hierarchy otherwise.
10924 Please note that at this point the unified hierarchy is an
10925 experimental kernel feature and is likely to change in one
33db1b90 10926 of the next kernel releases. Therefore, it should not be
5e8d4254
LP
10927 enabled by default in downstream distributions yet. The
10928 minimum required kernel version for the unified hierarchy to
10929 work is 4.2. Note that when the unified hierarchy is used
10930 for the first time delegated access to controllers is
10931 safe. Because of this systemd-nspawn containers will get
10932 access to controllers now, as will systemd user
10933 sessions. This means containers and user sessions may now
10934 manage their own resources, partitioning up what the system
10935 grants them.
10936
10937 * A new special scope unit "init.scope" has been introduced
10938 that encapsulates PID 1 of the system. It may be used to
10939 determine resource usage and enforce resource limits on PID
10940 1 itself. PID 1 hence moved out of the root of the control
10941 group tree.
10942
10943 * The cgtop tool gained support for filtering out kernel
10944 threads when counting tasks in a control group. Also, the
10945 count of processes is now recursively summed up by
10946 default. Two options -k and --recursive= have been added to
10947 revert to old behaviour. The tool has also been updated to
10948 work correctly in containers now.
10949
10950 * systemd-nspawn's --bind= and --bind-ro= options have been
10951 extended to allow creation of non-recursive bind mounts.
10952
c626bf1d
DM
10953 * libsystemd gained two new calls sd_pid_get_cgroup() and
10954 sd_peer_get_cgroup() which return the control group path of
5e8d4254
LP
10955 a process or peer of a connected AF_UNIX socket. This
10956 function call is particularly useful when implementing
10957 delegated subtrees support in the control group hierarchy.
10958
10959 * The "sd-event" event loop API of libsystemd now supports
10960 correct dequeuing of real-time signals, without losing
10961 signal events.
10962
d35f51ea
ZJS
10963 * When systemd requests a polkit decision when managing units it
10964 will now add additional fields to the request, including unit
10965 name and desired operation. This enables more powerful polkit
10966 policies, that make decisions depending on these parameters.
c9912c5e 10967
47f5a38c
LP
10968 * nspawn learnt support for .nspawn settings files, that may
10969 accompany the image files or directories of containers, and
10970 may contain additional settings for the container. This is
10971 an alternative to configuring container parameters via the
10972 nspawn command line.
10973
2f77decc
LP
10974 Contributions from: Cristian Rodríguez, Daniel Mack, David
10975 Herrmann, Eugene Yakubovich, Evgeny Vereshchagin, Filipe
10976 Brandenburger, Hans de Goede, Jan Alexander Steffens, Jan
10977 Synacek, Kay Sievers, Lennart Poettering, Mangix, Marcel
10978 Holtmann, Martin Pitt, Michael Biebl, Michael Chapman, Michal
10979 Sekletar, Peter Hutterer, Piotr Drąg, reverendhomer, Robin
10980 Hack, Susant Sahani, Sylvain Pasche, Thomas Hindoe Paaboel
23d08d1b 10981 Andersen, Tom Gundersen, Torstein Husebø
c9912c5e 10982
ccddd104 10983 — Berlin, 2015-09-08
c9912c5e 10984
ec5249a2
DM
10985CHANGES WITH 225:
10986
5e8d4254
LP
10987 * machinectl gained a new verb 'shell' which opens a fresh
10988 shell on the target container or the host. It is similar to
10989 the existing 'login' command of machinectl, but spawns the
10990 shell directly without prompting for username or
10991 password. The pseudo machine '.host' now refers to the local
10992 host and is used by default. Hence, 'machinectl shell' can
10993 be used as replacement for 'su -' which spawns a session as
10994 a fresh systemd unit in a way that is fully isolated from
10995 the originating session.
10996
10997 * systemd-networkd learned to cope with private-zone DHCP
10998 options and allows other programs to query the values.
10999
11000 * SELinux access control when enabling/disabling units is no
d35f51ea
ZJS
11001 longer enforced with this release. The previous implementation
11002 was incorrect, and a new corrected implementation is not yet
11003 available. As unit file operations are still protected via
11004 polkit and D-Bus policy this is not a security problem. Yet,
11005 distributions which care about optimal SELinux support should
11006 probably not stabilize on this release.
5e8d4254
LP
11007
11008 * sd-bus gained support for matches of type "arg0has=", that
11009 test for membership of strings in string arrays sent in bus
11010 messages.
11011
11012 * systemd-resolved now dumps the contents of its DNS and LLMNR
11013 caches to the logs on reception of the SIGUSR1 signal. This
11014 is useful to debug DNS behaviour.
11015
11016 * The coredumpctl tool gained a new --directory= option to
11017 operate on journal files in a specific directory.
11018
11019 * "systemctl reboot" and related commands gained a new
11020 "--message=" option which may be used to set a free-text
11021 wall message when shutting down or rebooting the
11022 system. This message is also logged, which is useful for
11023 figuring out the reason for a reboot or shutdown a
11024 posteriori.
11025
11026 * The "systemd-resolve-host" tool's -i switch now takes
11027 network interface numbers as alternative to interface names.
11028
11029 * A new unit file setting for services has been introduced:
11030 UtmpMode= allows configuration of how precisely systemd
11031 handles utmp and wtmp entries for the service if this is
11032 enabled. This allows writing services that appear similar to
11033 user sessions in the output of the "w", "who", "last" and
11034 "lastlog" tools.
11035
11036 * systemd-resolved will now locally synthesize DNS resource
11037 records for the "localhost" and "gateway" domains as well as
11038 the local hostname. This should ensure that clients querying
11039 RRs via resolved will get similar results as those going via
11040 NSS, if nss-myhostname is enabled.
11041
11042 Contributions from: Alastair Hughes, Alex Crawford, Daniel
11043 Mack, David Herrmann, Dimitri John Ledkov, Eric Kostrowski,
11044 Evgeny Vereshchagin, Felipe Sateler, HATAYAMA Daisuke, Jan
11045 Pokorný, Jan Synacek, Johnny Robeson, Karel Zak, Kay Sievers,
11046 Kefeng Wang, Lennart Poettering, Major Hayden, Marcel
11047 Holtmann, Markus Elfring, Martin Mikkelsen, Martin Pitt, Matt
11048 Turner, Maxim Mikityanskiy, Michael Biebl, Namhyung Kim,
11049 Nicolas Cornu, Owen W. Taylor, Patrik Flykt, Peter Hutterer,
11050 reverendhomer, Richard Maw, Ronny Chevalier, Seth Jennings,
11051 Stef Walter, Susant Sahani, Thomas Blume, Thomas Hindoe
11052 Paaboel Andersen, Thomas Meyer, Tom Gundersen, Vincent Batts,
11053 WaLyong Cho, Zbigniew Jędrzejewski-Szmek
e1439a14 11054
ccddd104 11055 — Berlin, 2015-08-27
ec5249a2 11056
11811e85
DH
11057CHANGES WITH 224:
11058
10fa421c
DH
11059 * The systemd-efi-boot-generator functionality was merged into
11060 systemd-gpt-auto-generator.
11061
5e8d4254
LP
11062 * systemd-networkd now supports Group Policy for vxlan
11063 devices. It can be enabled via the new boolean configuration
11064 option called 'GroupPolicyExtension='.
10fa421c 11065
11811e85
DH
11066 Contributions from: Andreas Kempf, Christian Hesse, Daniel Mack, David
11067 Herrmann, Herman Fries, Johannes Nixdorf, Kay Sievers, Lennart
11068 Poettering, Peter Hutterer, Susant Sahani, Tom Gundersen
11069
ccddd104 11070 — Berlin, 2015-07-31
11811e85 11071
e57eaef8
DH
11072CHANGES WITH 223:
11073
11074 * The python-systemd code has been removed from the systemd repository.
11075 A new repository has been created which accommodates the code from
11076 now on, and we kindly ask distributions to create a separate package
11077 for this: https://github.com/systemd/python-systemd
11078
01608bc8 11079 * The systemd daemon will now reload its main configuration
e57eaef8
DH
11080 (/etc/systemd/system.conf) on daemon-reload.
11081
11082 * sd-dhcp now exposes vendor specific extensions via
11083 sd_dhcp_lease_get_vendor_specific().
11084
931618d0
DM
11085 * systemd-networkd gained a number of new configuration options.
11086
11087 - A new boolean configuration option for TAP devices called
37d54b93 11088 'VNetHeader='. If set, the IFF_VNET_HDR flag is set for the
931618d0
DM
11089 device, thus allowing to send and receive GSO packets.
11090
11091 - A new tunnel configuration option called 'CopyDSCP='.
11092 If enabled, the DSCP field of ip6 tunnels is copied into the
11093 decapsulated packet.
11094
11095 - A set of boolean bridge configuration options were added.
11096 'UseBPDU=', 'HairPin=', 'FastLeave=', 'AllowPortToBeRoot=',
11097 and 'UnicastFlood=' are now parsed by networkd and applied to the
11098 respective bridge link device via the respective IFLA_BRPORT_*
11099 netlink attribute.
11100
11101 - A new string configuration option to override the hostname sent
11102 to a DHCP server, called 'Hostname='. If set and 'SendHostname='
11103 is true, networkd will use the configured hostname instead of the
11104 system hostname when sending DHCP requests.
11105
11106 - A new tunnel configuration option called 'IPv6FlowLabel='. If set,
11107 networkd will configure the IPv6 flow-label of the tunnel device
11108 according to RFC2460.
e57eaef8 11109
f5f113f6
DH
11110 - The 'macvtap' virtual network devices are now supported, similar to
11111 the already supported 'macvlan' devices.
11112
e57eaef8 11113 * systemd-resolved now implements RFC5452 to improve resilience against
01608bc8 11114 cache poisoning. Additionally, source port randomization is enabled
e57eaef8
DH
11115 by default to further protect against DNS spoofing attacks.
11116
11117 * nss-mymachines now supports translating UIDs and GIDs of running
11118 containers with user-namespaces enabled. If a container 'foo'
11119 translates a host uid 'UID' to the container uid 'TUID', then
11120 nss-mymachines will also map uid 'UID' to/from username 'vu-foo-TUID'
11121 (with 'foo' and 'TUID' replaced accordingly). Similarly, groups are
11122 mapped as 'vg-foo-TGID'.
11123
11124 Contributions from: Beniamino Galvani, cee1, Christian Hesse, Daniel
e4e66993
DH
11125 Buch, Daniel Mack, daurnimator, David Herrmann, Dimitri John Ledkov,
11126 HATAYAMA Daisuke, Ivan Shapovalov, Jan Alexander Steffens (heftig),
11127 Johan Ouwerkerk, Jose Carlos Venegas Munoz, Karel Zak, Kay Sievers,
11128 Lennart Poettering, Lidong Zhong, Martin Pitt, Michael Biebl, Michael
11129 Olbrich, Michal Schmidt, Michal Sekletar, Mike Gilbert, Namhyung Kim,
11130 Nick Owens, Peter Hutterer, Richard Maw, Steven Allen, Sungbae Yoo,
11131 Susant Sahani, Thomas Blume, Thomas Hindoe Paaboel Andersen, Tom
11132 Gundersen, Torstein Husebø, Umut Tezduyar Lindskog, Vito Caputo,
11133 Vivenzio Pagliari, Zbigniew Jędrzejewski-Szmek
11134
ccddd104 11135 — Berlin, 2015-07-29
e57eaef8 11136
0db83ad7 11137CHANGES WITH 222:
5541c889 11138
861b02eb
KS
11139 * udev does not longer support the WAIT_FOR_SYSFS= key in udev rules.
11140 There are no known issues with current sysfs, and udev does not need
11141 or should be used to work around such bugs.
11142
11143 * udev does no longer enable USB HID power management. Several reports
11144 indicate, that some devices cannot handle that setting.
0db83ad7
DH
11145
11146 * The udev accelerometer helper was removed. The functionality
11147 is now fully included in iio-sensor-proxy. But this means,
11148 older iio-sensor-proxy versions will no longer provide
11149 accelerometer/orientation data with this systemd version.
11150 Please upgrade iio-sensor-proxy to version 1.0.
11151
5541c889
DH
11152 * networkd gained a new configuration option IPv6PrivacyExtensions=
11153 which enables IPv6 privacy extensions (RFC 4941, "Privacy Extensions
11154 for Stateless Address") on selected networks.
11155
9b361114
DM
11156 * For the sake of fewer build-time dependencies and less code in the
11157 main repository, the python bindings are about to be removed in the
11158 next release. A new repository has been created which accommodates
11159 the code from now on, and we kindly ask distributions to create a
11160 separate package for this. The removal will take place in v223.
11161
11162 https://github.com/systemd/python-systemd
11163
0db83ad7
DH
11164 Contributions from: Abdo Roig-Maranges, Andrew Eikum, Bastien Nocera,
11165 Cédric Delmas, Christian Hesse, Christos Trochalakis, Daniel Mack,
11166 daurnimator, David Herrmann, Dimitri John Ledkov, Eric Biggers, Eric
11167 Cook, Felipe Sateler, Geert Jansen, Gerd Hoffmann, Gianpaolo Macario,
5541c889
DH
11168 Greg Kroah-Hartman, Iago López Galeiras, Jan Alexander Steffens
11169 (heftig), Jan Engelhardt, Jay Strict, Kay Sievers, Lennart Poettering,
0db83ad7
DH
11170 Markus Knetschke, Martin Pitt, Michael Biebl, Michael Marineau, Michal
11171 Sekletar, Miguel Bernal Marin, Peter Hutterer, Richard Maw, rinrinne,
2d1ca112
DH
11172 Susant Sahani, Thomas Hindoe Paaboel Andersen, Tom Gundersen, Torstein
11173 Husebø, Vedran Miletić, WaLyong Cho, Zbigniew Jędrzejewski-Szmek
0db83ad7 11174
ccddd104 11175 — Berlin, 2015-07-07
0db83ad7 11176
0f0467e6
MP
11177CHANGES WITH 221:
11178
470e72d4 11179 * The sd-bus.h and sd-event.h APIs have now been declared
5f92d24f 11180 stable and have been added to the official interface of
470e72d4
LP
11181 libsystemd.so. sd-bus implements an alternative D-Bus client
11182 library, that is relatively easy to use, very efficient and
11183 supports both classic D-Bus as well as kdbus as transport
11184 backend. sd-event is a generic event loop abstraction that
11185 is built around Linux epoll, but adds features such as event
0aee49d5 11186 prioritization or efficient timer handling. Both APIs are good
470e72d4
LP
11187 choices for C programs looking for a bus and/or event loop
11188 implementation that is minimal and does not have to be
5f92d24f 11189 portable to other kernels.
0f0467e6 11190
470e72d4
LP
11191 * kdbus support is no longer compile-time optional. It is now
11192 always built-in. However, it can still be disabled at
11193 runtime using the kdbus=0 kernel command line setting, and
c6551464 11194 that setting may be changed to default to off, by specifying
470e72d4
LP
11195 --disable-kdbus at build-time. Note though that the kernel
11196 command line setting has no effect if the kdbus.ko kernel
11197 module is not installed, in which case kdbus is (obviously)
11198 also disabled. We encourage all downstream distributions to
0aee49d5 11199 begin testing kdbus by adding it to the kernel images in the
470e72d4
LP
11200 development distributions, and leaving kdbus support in
11201 systemd enabled.
0f0467e6 11202
470e72d4
LP
11203 * The minimal required util-linux version has been bumped to
11204 2.26.
11205
11206 * Support for chkconfig (--enable-chkconfig) was removed in
0aee49d5 11207 favor of calling an abstraction tool
470e72d4
LP
11208 /lib/systemd/systemd-sysv-install. This needs to be
11209 implemented for your distribution. See "SYSV INIT.D SCRIPTS"
11210 in README for details.
11211
11212 * If there's a systemd unit and a SysV init script for the
11213 same service name, and the user executes "systemctl enable"
11214 for it (or a related call), then this will now enable both
11215 (or execute the related operation on both), not just the
11216 unit.
11217
11218 * The libudev API documentation has been converted from gtkdoc
11219 into man pages.
11220
11221 * gudev has been removed from the systemd tree, it is now an
11222 external project.
11223
11224 * The systemd-cgtop tool learnt a new --raw switch to generate
0aee49d5 11225 "raw" (machine parsable) output.
470e72d4
LP
11226
11227 * networkd's IPForwarding= .network file setting learnt the
11228 new setting "kernel", which ensures that networkd does not
11229 change the IP forwarding sysctl from the default kernel
11230 state.
11231
11232 * The systemd-logind bus API now exposes a new boolean
11233 property "Docked" that reports whether logind considers the
11234 system "docked", i.e. connected to a docking station or not.
11235
11236 Contributions from: Alex Crawford, Andreas Pokorny, Andrei
11237 Borzenkov, Charles Duffy, Colin Guthrie, Cristian Rodríguez,
11238 Daniele Medri, Daniel Hahler, Daniel Mack, David Herrmann,
11239 David Mohr, Dimitri John Ledkov, Djalal Harouni, dslul, Ed
11240 Swierk, Eric Cook, Filipe Brandenburger, Gianpaolo Macario,
11241 Harald Hoyer, Iago López Galeiras, Igor Vuk, Jan Synacek,
11242 Jason Pleau, Jason S. McMullan, Jean Delvare, Jeff Huang,
11243 Jonathan Boulle, Karel Zak, Kay Sievers, kloun, Lennart
11244 Poettering, Marc-Antoine Perennou, Marcel Holtmann, Mario
11245 Limonciello, Martin Pitt, Michael Biebl, Michael Olbrich,
11246 Michal Schmidt, Mike Gilbert, Nick Owens, Pablo Lezaeta Reyes,
b912e251
LP
11247 Patrick Donnelly, Pavel Odvody, Peter Hutterer, Philip
11248 Withnall, Ronny Chevalier, Simon McVittie, Susant Sahani,
11249 Thomas Hindoe Paaboel Andersen, Tom Gundersen, Torstein
11250 Husebø, Umut Tezduyar Lindskog, Viktar Vauchkevich, Werner
11251 Fink, Zbigniew Jędrzejewski-Szmek
470e72d4 11252
ccddd104 11253 — Berlin, 2015-06-19
0f0467e6 11254
481a0aa2
LP
11255CHANGES WITH 220:
11256
f7a73a25
DH
11257 * The gudev library has been extracted into a separate repository
11258 available at: https://git.gnome.org/browse/libgudev/
11259 It is now managed as part of the Gnome project. Distributions
11260 are recommended to pass --disable-gudev to systemd and use
11261 gudev from the Gnome project instead. gudev is still included
11262 in systemd, for now. It will be removed soon, though. Please
11263 also see the announcement-thread on systemd-devel:
56cadcb6 11264 https://lists.freedesktop.org/archives/systemd-devel/2015-May/032070.html
f7a73a25 11265
481a0aa2
LP
11266 * systemd now exposes a CPUUsageNSec= property for each
11267 service unit on the bus, that contains the overall consumed
11268 CPU time of a service (the sum of what each process of the
11269 service consumed). This value is only available if
11270 CPUAccounting= is turned on for a service, and is then shown
11271 in the "systemctl status" output.
11272
11273 * Support for configuring alternative mappings of the old SysV
11274 runlevels to systemd targets has been removed. They are now
29d1fcb4 11275 hardcoded in a way that runlevels 2, 3, 4 all map to
481a0aa2
LP
11276 multi-user.target and 5 to graphical.target (which
11277 previously was already the default behaviour).
11278
11279 * The auto-mounter logic gained support for mount point
11280 expiry, using a new TimeoutIdleSec= setting in .automount
11281 units. (Also available as x-systemd.idle-timeout= in /etc/fstab).
11282
11283 * The EFI System Partition (ESP) as mounted to /boot by
11284 systemd-efi-boot-generator will now be unmounted
29d1fcb4 11285 automatically after 2 minutes of not being used. This should
481a0aa2
LP
11286 minimize the risk of ESP corruptions.
11287
11288 * New /etc/fstab options x-systemd.requires= and
11289 x-systemd.requires-mounts-for= are now supported to express
11290 additional dependencies for mounts. This is useful for
28423d9a 11291 journaling file systems that support external journal
481a0aa2
LP
11292 devices or overlay file systems that require underlying file
11293 systems to be mounted.
11294
11295 * systemd does not support direct live-upgrades (via systemctl
11296 daemon-reexec) from versions older than v44 anymore. As no
11297 distribution we are aware of shipped such old versions in a
11298 stable release this should not be problematic.
11299
11300 * When systemd forks off a new per-connection service instance
11301 it will now set the $REMOTE_ADDR environment variable to the
11302 remote IP address, and $REMOTE_PORT environment variable to
11303 the remote IP port. This behaviour is similar to the
11304 corresponding environment variables defined by CGI.
11305
11306 * systemd-networkd gained support for uplink failure
11307 detection. The BindCarrier= option allows binding interface
11308 configuration dynamically to the link sense of other
11309 interfaces. This is useful to achieve behaviour like in
11310 network switches.
11311
11312 * systemd-networkd gained support for configuring the DHCP
11313 client identifier to use when requesting leases.
11314
11315 * systemd-networkd now has a per-network UseNTP= option to
11316 configure whether NTP server information acquired via DHCP
11317 is passed on to services like systemd-timesyncd.
11318
11319 * systemd-networkd gained support for vti6 tunnels.
11320
1579dd2c
LP
11321 * Note that systemd-networkd manages the sysctl variable
11322 /proc/sys/net/ipv[46]/conf/*/forwarding for each interface
11323 it is configured for since v219. The variable controls IP
11324 forwarding, and is a per-interface alternative to the global
11325 /proc/sys/net/ipv[46]/ip_forward. This setting is
11326 configurable in the IPForward= option, which defaults to
11327 "no". This means if networkd is used for an interface it is
11328 no longer sufficient to set the global sysctl option to turn
11329 on IP forwarding! Instead, the .network file option
11330 IPForward= needs to be turned on! Note that the
11331 implementation of this behaviour was broken in v219 and has
11332 been fixed in v220.
11333
481a0aa2
LP
11334 * Many bonding and vxlan options are now configurable in
11335 systemd-networkd.
11336
11337 * systemd-nspawn gained a new --property= setting to set unit
11338 properties for the container scope. This is useful for
ce830873 11339 setting resource parameters (e.g. "CPUShares=500") on
481a0aa2
LP
11340 containers started from the command line.
11341
11342 * systemd-nspawn gained a new --private-users= switch to make
11343 use of user namespacing available on recent Linux kernels.
11344
11345 * systemd-nspawn may now be called as part of a shell pipeline
11346 in which case the pipes used for stdin and stdout are passed
11347 directly to the process invoked in the container, without
11348 indirection via a pseudo tty.
11349
11350 * systemd-nspawn gained a new switch to control the UNIX
11351 signal to use when killing the init process of the container
11352 when shutting down.
11353
11354 * systemd-nspawn gained a new --overlay= switch for mounting
11355 overlay file systems into the container using the new kernel
11356 overlayfs support.
11357
11358 * When a container image is imported via systemd-importd and
11359 the host file system is not btrfs, a loopback block device
11360 file is created in /var/lib/machines.raw with a btrfs file
11361 system inside. It is then mounted to /var/lib/machines to
11362 enable btrfs features for container management. The loopback
11363 file and btrfs file system is grown as needed when container
11364 images are imported via systemd-importd.
11365
11366 * systemd-machined/systemd-importd gained support for btrfs
11367 quota, to enforce container disk space limits on disk. This
11368 is exposed in "machinectl set-limit".
11369
11370 * systemd-importd now can import containers from local .tar,
11371 .raw and .qcow2 images, and export them to .tar and .raw. It
11372 can also import dkr v2 images now from the network (on top
11373 of v1 as before).
11374
11375 * systemd-importd gained support for verifying downloaded
11376 images with gpg2 (previously only gpg1 was supported).
11377
d35f51ea
ZJS
11378 * systemd-machined, systemd-logind, systemd: most bus calls are
11379 now accessible to unprivileged processes via polkit. Also,
11380 systemd-logind will now allow users to kill their own sessions
11381 without further privileges or authorization.
481a0aa2
LP
11382
11383 * systemd-shutdownd has been removed. This service was
11384 previously responsible for implementing scheduled shutdowns
11385 as exposed in /usr/bin/shutdown's time parameter. This
11386 functionality has now been moved into systemd-logind and is
11387 accessible via a bus interface.
11388
11389 * "systemctl reboot" gained a new switch --firmware-setup that
11390 can be used to reboot into the EFI firmware setup, if that
11391 is available. systemd-logind now exposes an API on the bus
11392 to trigger such reboots, in case graphical desktop UIs want
11393 to cover this functionality.
11394
11395 * "systemctl enable", "systemctl disable" and "systemctl mask"
1579dd2c 11396 now support a new "--now" switch. If specified the units
481a0aa2
LP
11397 that are enabled will also be started, and the ones
11398 disabled/masked also stopped.
11399
11400 * The Gummiboot EFI boot loader tool has been merged into
1a2d5fbe
DH
11401 systemd, and renamed to "systemd-boot". The bootctl tool has been
11402 updated to support systemd-boot.
481a0aa2
LP
11403
11404 * An EFI kernel stub has been added that may be used to create
11405 kernel EFI binaries that contain not only the actual kernel,
11406 but also an initrd, boot splash, command line and OS release
11407 information. This combined binary can then be signed as a
11408 single image, so that the firmware can verify it all in one
1a2d5fbe 11409 step. systemd-boot has special support for EFI binaries created
481a0aa2
LP
11410 like this and can extract OS release information from them
11411 and show them in the boot menu. This functionality is useful
11412 to implement cryptographically verified boot schemes.
11413
11414 * Optional support has been added to systemd-fsck to pass
11415 fsck's progress report to an AF_UNIX socket in the file
11416 system.
11417
6b000af4
LP
11418 * udev will no longer create device symlinks for all block devices by
11419 default. A deny list for excluding special block devices from this
387f6955 11420 logic has been turned into an allow list that requires picking block
6b000af4 11421 devices explicitly that require device symlinks.
481a0aa2
LP
11422
11423 * A new (currently still internal) API sd-device.h has been
11424 added to libsystemd. This modernized API is supposed to
11425 replace libudev eventually. In fact, already much of libudev
11426 is now just a wrapper around sd-device.h.
11427
11428 * A new hwdb database for storing metadata about pointing
11429 stick devices has been added.
11430
11431 * systemd-tmpfiles gained support for setting file attributes
11432 similar to the "chattr" tool with new 'h' and 'H' lines.
11433
11434 * systemd-journald will no longer unconditionally set the
11435 btrfs NOCOW flag on new journal files. This is instead done
11436 with tmpfiles snippet using the new 'h' line type. This
11437 allows easy disabling of this logic, by masking the
11438 journal-nocow.conf tmpfiles file.
11439
11440 * systemd-journald will now translate audit message types to
11441 human readable identifiers when writing them to the
11442 journal. This should improve readability of audit messages.
11443
11444 * The LUKS logic gained support for the offset= and skip=
11445 options in /etc/crypttab, as previously implemented by
11446 Debian.
11447
11448 * /usr/lib/os-release gained a new optional field VARIANT= for
11449 distributions that support multiple variants (such as a
1d3a473b 11450 desktop edition, a server edition, …)
481a0aa2
LP
11451
11452 Contributions from: Aaro Koskinen, Adam Goode, Alban Crequy,
11453 Alberto Fanjul Alonso, Alexander Sverdlin, Alex Puchades, Alin
11454 Rauta, Alison Chaiken, Andrew Jones, Arend van Spriel,
11455 Benedikt Morbach, Benjamin Franzke, Benjamin Tissoires, Blaž
11456 Tomažič, Chris Morgan, Chris Morin, Colin Walters, Cristian
11457 Rodríguez, Daniel Buch, Daniel Drake, Daniele Medri, Daniel
11458 Mack, Daniel Mustieles, daurnimator, Davide Bettio, David
11459 Herrmann, David Strauss, Didier Roche, Dimitri John Ledkov,
11460 Eric Cook, Gavin Li, Goffredo Baroncelli, Hannes Reinecke,
11461 Hans de Goede, Hans-Peter Deifel, Harald Hoyer, Iago López
11462 Galeiras, Ivan Shapovalov, Jan Engelhardt, Jan Janssen, Jan
11463 Pazdziora, Jan Synacek, Jasper St. Pierre, Jay Faulkner, John
11464 Paul Adrian Glaubitz, Jonathon Gilbert, Karel Zak, Kay
11465 Sievers, Koen Kooi, Lennart Poettering, Lubomir Rintel, Lucas
11466 De Marchi, Lukas Nykryn, Lukas Rusak, Lukasz Skalski, Łukasz
11467 Stelmach, Mantas Mikulėnas, Marc-Antoine Perennou, Marcel
11468 Holtmann, Martin Pitt, Mathieu Chevrier, Matthew Garrett,
11469 Michael Biebl, Michael Marineau, Michael Olbrich, Michal
11470 Schmidt, Michal Sekletar, Mirco Tischler, Nir Soffer, Patrik
11471 Flykt, Pavel Odvody, Peter Hutterer, Peter Lemenkov, Peter
11472 Waller, Piotr Drąg, Raul Gutierrez S, Richard Maw, Ronny
11473 Chevalier, Ross Burton, Sebastian Rasmussen, Sergey Ptashnick,
11474 Seth Jennings, Shawn Landden, Simon Farnsworth, Stefan Junker,
11475 Stephen Gallagher, Susant Sahani, Sylvain Plantefève, Thomas
11476 Haller, Thomas Hindoe Paaboel Andersen, Tobias Hunger, Tom
11477 Gundersen, Torstein Husebø, Umut Tezduyar Lindskog, Will
11478 Woods, Zachary Cook, Zbigniew Jędrzejewski-Szmek
11479
ccddd104 11480 — Berlin, 2015-05-22
481a0aa2 11481
615aaf41
LP
11482CHANGES WITH 219:
11483
615aaf41
LP
11484 * Introduce a new API "sd-hwdb.h" for querying the hardware
11485 metadata database. With this minimal interface one can query
11486 and enumerate the udev hwdb, decoupled from the old libudev
11487 library. libudev's interface for this is now only a wrapper
11488 around sd-hwdb. A new tool systemd-hwdb has been added to
11489 interface with and update the database.
11490
11491 * When any of systemd's tools copies files (for example due to
11492 tmpfiles' C lines) a btrfs reflink will attempted first,
11493 before bytewise copying is done.
11494
11495 * systemd-nspawn gained a new --ephemeral switch. When
11496 specified a btrfs snapshot is taken of the container's root
11497 directory, and immediately removed when the container
11498 terminates again. Thus, a container can be started whose
11499 changes never alter the container's root directory, and are
11500 lost on container termination. This switch can also be used
11501 for starting a container off the root file system of the
11502 host without affecting the host OS. This switch is only
11503 available on btrfs file systems.
11504
11505 * systemd-nspawn gained a new --template= switch. It takes the
11506 path to a container tree to use as template for the tree
7edecf21 11507 specified via --directory=, should that directory be
615aaf41
LP
11508 missing. This allows instantiating containers dynamically,
11509 on first run. This switch is only available on btrfs file
11510 systems.
11511
11512 * When a .mount unit refers to a mount point on which multiple
11513 mounts are stacked, and the .mount unit is stopped all of
11514 the stacked mount points will now be unmounted until no
11515 mount point remains.
11516
11517 * systemd now has an explicit notion of supported and
11518 unsupported unit types. Jobs enqueued for unsupported unit
11519 types will now fail with an "unsupported" error code. More
11520 specifically .swap, .automount and .device units are not
11521 supported in containers, .busname units are not supported on
11522 non-kdbus systems. .swap and .automount are also not
11523 supported if their respective kernel compile time options
11524 are disabled.
11525
11526 * machinectl gained support for two new "copy-from" and
11527 "copy-to" commands for copying files from a running
11528 container to the host or vice versa.
11529
11530 * machinectl gained support for a new "bind" command to bind
11531 mount host directories into local containers. This is
11532 currently only supported for nspawn containers.
11533
11534 * networkd gained support for configuring bridge forwarding
11535 database entries (fdb) from .network files.
11536
11537 * A new tiny daemon "systemd-importd" has been added that can
11538 download container images in tar, raw, qcow2 or dkr formats,
11539 and make them available locally in /var/lib/machines, so
11540 that they can run as nspawn containers. The daemon can GPG
11541 verify the downloads (not supported for dkr, since it has no
11542 provisions for verifying downloads). It will transparently
11543 decompress bz2, xz, gzip compressed downloads if necessary,
11544 and restore sparse files on disk. The daemon uses privilege
11545 separation to ensure the actual download logic runs with
94e5ba37 11546 fewer privileges than the daemon itself. machinectl has
615aaf41
LP
11547 gained new commands "pull-tar", "pull-raw" and "pull-dkr" to
11548 make the functionality of importd available to the
11549 user. With this in place the Fedora and Ubuntu "Cloud"
11550 images can be downloaded and booted as containers unmodified
11551 (the Fedora images lack the appropriate GPG signature files
11552 currently, so they cannot be verified, but this will change
11553 soon, hopefully). Note that downloading images is currently
11554 only fully supported on btrfs.
11555
11556 * machinectl is now able to list container images found in
11557 /var/lib/machines, along with some metadata about sizes of
11558 disk and similar. If the directory is located on btrfs and
11559 quota is enabled, this includes quota display. A new command
11560 "image-status" has been added that shows additional
11561 information about images.
11562
11563 * machinectl is now able to clone container images
11564 efficiently, if the underlying file system (btrfs) supports
f59dba26 11565 it, with the new "machinectl clone" command. It also
615aaf41
LP
11566 gained commands for renaming and removing images, as well as
11567 marking them read-only or read-write (supported also on
11568 legacy file systems).
11569
11570 * networkd gained support for collecting LLDP network
11571 announcements, from hardware that supports this. This is
11572 shown in networkctl output.
11573
11574 * systemd-run gained support for a new -t (--pty) switch for
11575 invoking a binary on a pty whose input and output is
11576 connected to the invoking terminal. This allows executing
11577 processes as system services while interactively
11578 communicating with them via the terminal. Most interestingly
11579 this is supported across container boundaries. Invoking
11580 "systemd-run -t /bin/bash" is an alternative to running a
11581 full login session, the difference being that the former
11582 will not register a session, nor go through the PAM session
11583 setup.
11584
11585 * tmpfiles gained support for a new "v" line type for creating
11586 btrfs subvolumes. If the underlying file system is a legacy
11587 file system, this automatically degrades to creating a
11588 normal directory. Among others /var/lib/machines is now
11589 created like this at boot, should it be missing.
11590
11591 * The directory /var/lib/containers/ has been deprecated and
11592 been replaced by /var/lib/machines. The term "machines" has
11593 been used in the systemd context as generic term for both
11594 VMs and containers, and hence appears more appropriate for
11595 this, as the directory can also contain raw images bootable
11596 via qemu/kvm.
11597
11598 * systemd-nspawn when invoked with -M but without --directory=
11599 or --image= is now capable of searching for the container
11600 root directory, subvolume or disk image automatically, in
11601 /var/lib/machines. systemd-nspawn@.service has been updated
11602 to make use of this, thus allowing it to be used for raw
11603 disk images, too.
11604
11605 * A new machines.target unit has been introduced that is
11606 supposed to group all containers/VMs invoked as services on
11607 the system. systemd-nspawn@.service has been updated to
11608 integrate with that.
11609
11610 * machinectl gained a new "start" command, for invoking a
11611 container as a service. "machinectl start foo" is mostly
11612 equivalent to "systemctl start systemd-nspawn@foo.service",
11613 but handles escaping in a nicer way.
11614
11615 * systemd-nspawn will now mount most of the cgroupfs tree
11616 read-only into each container, with the exception of the
11617 container's own subtree in the name=systemd hierarchy.
11618
11619 * journald now sets the special FS_NOCOW file flag for its
11620 journal files. This should improve performance on btrfs, by
11621 avoiding heavy fragmentation when journald's write-pattern
11622 is used on COW file systems. It degrades btrfs' data
11623 integrity guarantees for the files to the same levels as for
11624 ext3/ext4 however. This should be OK though as journald does
11625 its own data integrity checks and all its objects are
11626 checksummed on disk. Also, journald should handle btrfs disk
11627 full events a lot more gracefully now, by processing SIGBUS
11628 errors, and not relying on fallocate() anymore.
11629
11630 * When journald detects that journal files it is writing to
11631 have been deleted it will immediately start new journal
11632 files.
11633
11634 * systemd now provides a way to store file descriptors
4c37970d 11635 per-service in PID 1. This is useful for daemons to ensure
615aaf41 11636 that fds they require are not lost during a daemon
94e5ba37 11637 restart. The fds are passed to the daemon on the next
615aaf41
LP
11638 invocation in the same way socket activation fds are
11639 passed. This is now used by journald to ensure that the
11640 various sockets connected to all the system's stdout/stderr
11641 are not lost when journald is restarted. File descriptors
11642 may be stored in PID 1 via the sd_pid_notify_with_fds() API,
11643 an extension to sd_notify(). Note that a limit is enforced
11644 on the number of fds a service can store in PID 1, and it
11645 defaults to 0, so that no fds may be stored, unless this is
11646 explicitly turned on.
11647
11648 * The default TERM variable to use for units connected to a
11649 terminal, when no other value is explicitly is set is now
11650 vt220 rather than vt102. This should be fairly safe still,
11651 but allows PgUp/PgDn work.
11652
11653 * The /etc/crypttab option header= as known from Debian is now
11654 supported.
11655
11656 * "loginctl user-status" and "loginctl session-status" will
11657 now show the last 10 lines of log messages of the
11658 user/session following the status output. Similar,
11659 "machinectl status" will show the last 10 log lines
11660 associated with a virtual machine or container
11661 service. (Note that this is usually not the log messages
11662 done in the VM/container itself, but simply what the
11663 container manager logs. For nspawn this includes all console
11664 output however.)
11665
11666 * "loginctl session-status" without further argument will now
11667 show the status of the session of the caller. Similar,
11668 "lock-session", "unlock-session", "activate",
11669 "enable-linger", "disable-linger" may now be called without
11670 session/user parameter in which case they apply to the
11671 caller's session/user.
11672
11673 * An X11 session scriptlet is now shipped that uploads
11674 $DISPLAY and $XAUTHORITY into the environment of the systemd
11675 --user daemon if a session begins. This should improve
11676 compatibility with X11 enabled applications run as systemd
11677 user services.
11678
11679 * Generators are now subject to masking via /etc and /run, the
11680 same way as unit files.
11681
11682 * networkd .network files gained support for configuring
11683 per-link IPv4/IPv6 packet forwarding as well as IPv4
11684 masquerading. This is by default turned on for veth links to
11685 containers, as registered by systemd-nspawn. This means that
11686 nspawn containers run with --network-veth will now get
11687 automatic routed access to the host's networks without any
11688 further configuration or setup, as long as networkd runs on
11689 the host.
11690
11691 * systemd-nspawn gained the --port= (-p) switch to expose TCP
11692 or UDP posts of a container on the host. With this in place
11693 it is possible to run containers with private veth links
11694 (--network-veth), and have their functionality exposed on
11695 the host as if their services were running directly on the
11696 host.
11697
dd2fd155 11698 * systemd-nspawn's --network-veth switch now gained a short
615aaf41
LP
11699 version "-n", since with the changes above it is now truly
11700 useful out-of-the-box. The systemd-nspawn@.service has been
11701 updated to make use of it too by default.
11702
11703 * systemd-nspawn will now maintain a per-image R/W lock, to
11704 ensure that the same image is not started more than once
11705 writable. (It's OK to run an image multiple times
11706 simultaneously in read-only mode.)
11707
11708 * systemd-nspawn's --image= option is now capable of
11709 dissecting and booting MBR and GPT disk images that contain
11710 only a single active Linux partition. Previously it
11711 supported only GPT disk images with proper GPT type
11712 IDs. This allows running cloud images from major
11713 distributions directly with systemd-nspawn, without
11714 modification.
11715
11716 * In addition to collecting mouse dpi data in the udev
11717 hardware database, there's now support for collecting angle
11718 information for mouse scroll wheels. The database is
7edecf21 11719 supposed to guarantee similar scrolling behavior on mice
615aaf41
LP
11720 that it knows about. There's also support for collecting
11721 information about Touchpad types.
11722
11723 * udev's input_id built-in will now also collect touch screen
11724 dimension data and attach it to probed devices.
11725
11726 * /etc/os-release gained support for a Distribution Privacy
11727 Policy link field.
11728
11729 * networkd gained support for creating "ipvlan", "gretap",
11730 "ip6gre", "ip6gretap" and "ip6tnl" network devices.
11731
11732 * systemd-tmpfiles gained support for "a" lines for setting
11733 ACLs on files.
11734
11735 * systemd-nspawn will now mount /tmp in the container to
11736 tmpfs, automatically.
11737
11738 * systemd now exposes the memory.usage_in_bytes cgroup
11739 attribute and shows it for each service in the "systemctl
11740 status" output, if available.
11741
11742 * When the user presses Ctrl-Alt-Del more than 7x within 2s an
11743 immediate reboot is triggered. This useful if shutdown is
11744 hung and is unable to complete, to expedite the
11745 operation. Note that this kind of reboot will still unmount
11746 all file systems, and hence should not result in fsck being
11747 run on next reboot.
11748
11749 * A .device unit for an optical block device will now be
11750 considered active only when a medium is in the drive. Also,
11751 mount units are now bound to their backing devices thus
11752 triggering automatic unmounting when devices become
11753 unavailable. With this in place systemd will now
11754 automatically unmount left-over mounts when a CD-ROM is
11755 ejected or an USB stick is yanked from the system.
11756
11757 * networkd-wait-online now has support for waiting for
11758 specific interfaces only (with globbing), and for giving up
11759 after a configurable timeout.
11760
11761 * networkd now exits when idle. It will be automatically
11762 restarted as soon as interfaces show up, are removed or
11763 change state. networkd will stay around as long as there is
11764 at least one DHCP state machine or similar around, that keep
11765 it non-idle.
11766
11767 * networkd may now configure IPv6 link-local addressing in
11768 addition to IPv4 link-local addressing.
11769
11770 * The IPv6 "token" for use in SLAAC may now be configured for
11771 each .network interface in networkd.
11772
11773 * Routes configured with networkd may now be assigned a scope
11774 in .network files.
11775
11776 * networkd's [Match] sections now support globbing and lists
11777 of multiple space-separated matches per item.
11778
11ea2781 11779 Contributions from: Alban Crequy, Alin Rauta, Andrey Chaser,
d2c643c6
LP
11780 Bastien Nocera, Bruno Bottazzini, Carlos Garnacho, Carlos
11781 Morata Castillo, Chris Atkinson, Chris J. Arges, Christian
11782 Kirbach, Christian Seiler, Christoph Brill, Colin Guthrie,
11783 Colin Walters, Cristian Rodríguez, Daniele Medri, Daniel Mack,
11784 Dave Reisner, David Herrmann, Djalal Harouni, Erik Auerswald,
11785 Filipe Brandenburger, Frank Theile, Gabor Kelemen, Gabriel de
11786 Perthuis, Harald Hoyer, Hui Wang, Ivan Shapovalov, Jan
11787 Engelhardt, Jan Synacek, Jay Faulkner, Johannes Hölzl, Jonas
11788 Ådahl, Jonathan Boulle, Josef Andersson, Kay Sievers, Ken
11789 Werner, Lennart Poettering, Lucas De Marchi, Lukas Märdian,
11790 Lukas Nykryn, Lukasz Skalski, Luke Shumaker, Mantas Mikulėnas,
11791 Manuel Mendez, Marcel Holtmann, Marc Schmitzer, Marko
11792 Myllynen, Martin Pitt, Maxim Mikityanskiy, Michael Biebl,
11793 Michael Marineau, Michael Olbrich, Michal Schmidt, Mindaugas
11ea2781
LP
11794 Baranauskas, Moez Bouhlel, Naveen Kumar, Patrik Flykt, Paul
11795 Martin, Peter Hutterer, Peter Mattern, Philippe De Swert,
11796 Piotr Drąg, Rafael Ferreira, Rami Rosen, Robert Milasan, Ronny
11797 Chevalier, Sangjung Woo, Sebastien Bacher, Sergey Ptashnick,
11798 Shawn Landden, Stéphane Graber, Susant Sahani, Sylvain
11799 Plantefève, Thomas Hindoe Paaboel Andersen, Tim JP, Tom
11800 Gundersen, Topi Miettinen, Torstein Husebø, Umut Tezduyar
d2c643c6
LP
11801 Lindskog, Veres Lajos, Vincent Batts, WaLyong Cho, Wieland
11802 Hoffmann, Zbigniew Jędrzejewski-Szmek
11ea2781 11803
ccddd104 11804 — Berlin, 2015-02-16
11ea2781 11805
d4f5a1f4
DH
11806CHANGES WITH 218:
11807
f9e00a9f
LP
11808 * When querying unit file enablement status (for example via
11809 "systemctl is-enabled"), a new state "indirect" is now known
11810 which indicates that a unit might not be enabled itself, but
c7683ffb 11811 another unit listed in its Also= setting might be.
f9e00a9f
LP
11812
11813 * Similar to the various existing ConditionXYZ= settings for
b938cb90 11814 units, there are now matching AssertXYZ= settings. While
f9e00a9f
LP
11815 failing conditions cause a unit to be skipped, but its job
11816 to succeed, failing assertions declared like this will cause
11817 a unit start operation and its job to fail.
11818
11819 * hostnamed now knows a new chassis type "embedded".
11820
11821 * systemctl gained a new "edit" command. When used on a unit
b938cb90 11822 file, this allows extending unit files with .d/ drop-in
f9e00a9f
LP
11823 configuration snippets or editing the full file (after
11824 copying it from /usr/lib to /etc). This will invoke the
11825 user's editor (as configured with $EDITOR), and reload the
11826 modified configuration after editing.
11827
11828 * "systemctl status" now shows the suggested enablement state
11829 for a unit, as declared in the (usually vendor-supplied)
11830 system preset files.
11831
38b38500 11832 * nss-myhostname will now resolve the single-label hostname
f9e00a9f
LP
11833 "gateway" to the locally configured default IP routing
11834 gateways, ordered by their metrics. This assigns a stable
11835 name to the used gateways, regardless which ones are
11836 currently configured. Note that the name will only be
11837 resolved after all other name sources (if nss-myhostname is
11838 configured properly) and should hence not negatively impact
38b38500 11839 systems that use the single-label hostname "gateway" in
f9e00a9f
LP
11840 other contexts.
11841
11842 * systemd-inhibit now allows filtering by mode when listing
11843 inhibitors.
11844
122676c9 11845 * Scope and service units gained a new "Delegate" boolean
b938cb90 11846 property, which, when set, allows processes running inside the
122676c9
LP
11847 unit to further partition resources. This is primarily
11848 useful for systemd user instances as well as container
11849 managers.
f9e00a9f
LP
11850
11851 * journald will now pick up audit messages directly from
11852 the kernel, and log them like any other log message. The
11853 audit fields are split up and fully indexed. This means that
11854 journalctl in many ways is now a (nicer!) alternative to
11855 ausearch, the traditional audit client. Note that this
b938cb90 11856 implements only a minimal audit client. If you want the
f9e00a9f
LP
11857 special audit modes like reboot-on-log-overflow, please use
11858 the traditional auditd instead, which can be used in
11859 parallel to journald.
11860
11861 * The ConditionSecurity= unit file option now understands the
11862 special string "audit" to check whether auditing is
11863 available.
11864
11865 * journalctl gained two new commands --vacuum-size= and
11866 --vacuum-time= to delete old journal files until the
a8eaaee7 11867 remaining ones take up no more than the specified size on disk,
f9e00a9f
LP
11868 or are not older than the specified time.
11869
11870 * A new, native PPPoE library has been added to sd-network,
11871 systemd's library of light-weight networking protocols. This
11872 library will be used in a future version of networkd to
11873 enable PPPoE communication without an external pppd daemon.
11874
11875 * The busctl tool now understands a new "capture" verb that
11876 works similar to "monitor", but writes a packet capture
11877 trace to STDOUT that can be redirected to a file which is
11878 compatible with libcap's capture file format. This can then
11879 be loaded in Wireshark and similar tools to inspect bus
11880 communication.
11881
11882 * The busctl tool now understands a new "tree" verb that shows
11883 the object trees of a specific service on the bus, or of all
11884 services.
11885
11886 * The busctl tool now understands a new "introspect" verb that
11887 shows all interfaces and members of objects on the bus,
11888 including their signature and values. This is particularly
11889 useful to get more information about bus objects shown by
11890 the new "busctl tree" command.
11891
11892 * The busctl tool now understands new verbs "call",
11893 "set-property" and "get-property" for invoking bus method
11894 calls, setting and getting bus object properties in a
11895 friendly way.
11896
11897 * busctl gained a new --augment-creds= argument that controls
11898 whether the tool shall augment credential information it
11899 gets from the bus with data from /proc, in a possibly
11900 race-ful way.
11901
11902 * nspawn's --link-journal= switch gained two new values
11903 "try-guest" and "try-host" that work like "guest" and
17c29493 11904 "host", but do not fail if the host has no persistent
28423d9a 11905 journaling enabled. -j is now equivalent to
f9e00a9f
LP
11906 --link-journal=try-guest.
11907
11908 * macvlan network devices created by nspawn will now have
11909 stable MAC addresses.
11910
11911 * A new SmackProcessLabel= unit setting has been added, which
11912 controls the SMACK security label processes forked off by
11913 the respective unit shall use.
11914
d4f5a1f4
DH
11915 * If compiled with --enable-xkbcommon, systemd-localed will
11916 verify x11 keymap settings by compiling the given keymap. It
11917 will spew out warnings if the compilation fails. This
11918 requires libxkbcommon to be installed.
11919
b938cb90 11920 * When a coredump is collected, a larger number of metadata
f9e00a9f 11921 fields is now collected and included in the journal records
b938cb90 11922 created for it. More specifically, control group membership,
f9e00a9f
LP
11923 environment variables, memory maps, working directory,
11924 chroot directory, /proc/$PID/status, and a list of open file
11925 descriptors is now stored in the log entry.
11926
17c29493 11927 * The udev hwdb now contains DPI information for mice. For
f9e00a9f
LP
11928 details see:
11929
11930 http://who-t.blogspot.de/2014/12/building-a-dpi-database-for-mice.html
11931
11932 * All systemd programs that read standalone configuration
11933 files in /etc now also support a corresponding series of
997b2b43
JT
11934 .conf.d configuration directories in /etc/, /run/,
11935 /usr/local/lib/, /usr/lib/, and (if configured with
33db1b90 11936 --enable-split-usr) /lib/. In particular, the following
997b2b43
JT
11937 configuration files now have corresponding configuration
11938 directories: system.conf user.conf, logind.conf,
11939 journald.conf, sleep.conf, bootchart.conf, coredump.conf,
11940 resolved.conf, timesyncd.conf, journal-remote.conf, and
33db1b90 11941 journal-upload.conf. Note that distributions should use the
997b2b43
JT
11942 configuration directories in /usr/lib/; the directories in
11943 /etc/ are reserved for the system administrator.
11944
f9e00a9f
LP
11945 * systemd-rfkill will no longer take the rfkill device name
11946 into account when storing rfkill state on disk, as the name
11947 might be dynamically assigned and not stable. Instead, the
11948 ID_PATH udev variable combined with the rfkill type (wlan,
1d3a473b 11949 bluetooth, …) is used.
f9e00a9f
LP
11950
11951 * A new service systemd-machine-id-commit.service has been
11952 added. When used on systems where /etc is read-only during
11953 boot, and /etc/machine-id is not initialized (but an empty
11954 file), this service will copy the temporary machine ID
11955 created as replacement into /etc after the system is fully
11956 booted up. This is useful for systems that are freshly
11957 installed with a non-initialized machine ID, but should get
11958 a fixed machine ID for subsequent boots.
11959
11960 * networkd's .netdev files now provide a large set of
a8eaaee7 11961 configuration parameters for VXLAN devices. Similarly, the
f9e00a9f
LP
11962 bridge port cost parameter is now configurable in .network
11963 files. There's also new support for configuring IP source
11964 routing. networkd .link files gained support for a new
11965 OriginalName= match that is useful to match against the
11966 original interface name the kernel assigned. .network files
11967 may include MTU= and MACAddress= fields for altering the MTU
11968 and MAC address while being connected to a specific network
11969 interface.
11970
11971 * The LUKS logic gained supported for configuring
11972 UUID-specific key files. There's also new support for naming
11973 LUKS device from the kernel command line, using the new
11974 luks.name= argument.
11975
11976 * Timer units may now be transiently created via the bus API
11977 (this was previously already available for scope and service
11978 units). In addition it is now possible to create multiple
11979 transient units at the same time with a single bus call. The
11980 "systemd-run" tool has been updated to make use of this for
11981 running commands on a specified time, in at(1)-style.
11982
11983 * tmpfiles gained support for "t" lines, for assigning
11984 extended attributes to files. Among other uses this may be
11985 used to assign SMACK labels to files.
11986
13e92f39
LP
11987 Contributions from: Alin Rauta, Alison Chaiken, Andrej
11988 Manduch, Bastien Nocera, Chris Atkinson, Chris Leech, Chris
11989 Mayo, Colin Guthrie, Colin Walters, Cristian Rodríguez,
11990 Daniele Medri, Daniel Mack, Dan Williams, Dan Winship, Dave
11991 Reisner, David Herrmann, Didier Roche, Felipe Sateler, Gavin
11992 Li, Hans de Goede, Harald Hoyer, Iago López Galeiras, Ivan
11993 Shapovalov, Jakub Filak, Jan Janssen, Jan Synacek, Joe
11994 Lawrence, Josh Triplett, Kay Sievers, Lennart Poettering,
11995 Lukas Nykryn, Łukasz Stelmach, Maciej Wereski, Mantas
11996 Mikulėnas, Marcel Holtmann, Martin Pitt, Maurizio Lombardi,
11997 Michael Biebl, Michael Chapman, Michael Marineau, Michal
7da81d33
LP
11998 Schmidt, Michal Sekletar, Olivier Brunel, Patrik Flykt, Peter
11999 Hutterer, Przemyslaw Kedzierski, Rami Rosen, Ray Strode,
12000 Richard Schütz, Richard W.M. Jones, Ronny Chevalier, Ross
12001 Lagerwall, Sean Young, Stanisław Pitucha, Susant Sahani,
12002 Thomas Haller, Thomas Hindoe Paaboel Andersen, Tom Gundersen,
12003 Torstein Husebø, Umut Tezduyar Lindskog, Vicente Olivert
12004 Riera, WaLyong Cho, Wesley Dawson, Zbigniew Jędrzejewski-Szmek
13e92f39 12005
ccddd104 12006 — Berlin, 2014-12-10
f9e00a9f 12007
b62a309a
ZJS
12008CHANGES WITH 217:
12009
78b6b7ce
LP
12010 * journalctl gained the new options -t/--identifier= to match
12011 on the syslog identifier (aka "tag"), as well as --utc to
12012 show log timestamps in the UTC timezone. journalctl now also
12013 accepts -n/--lines=all to disable line capping in a pager.
b62a309a 12014
a65b8245
ZJS
12015 * journalctl gained a new switch, --flush, that synchronously
12016 flushes logs from /run/log/journal to /var/log/journal if
12017 persistent storage is enabled. systemd-journal-flush.service
12018 now waits until the operation is complete.
2a97b03b 12019
b62a309a
ZJS
12020 * Services can notify the manager before they start a reload
12021 (by sending RELOADING=1) or shutdown (by sending
4bdc60cb
LP
12022 STOPPING=1). This allows the manager to track and show the
12023 internal state of daemons and closes a race condition when
78b6b7ce 12024 the process is still running but has closed its D-Bus
4bdc60cb 12025 connection.
b62a309a 12026
78b6b7ce
LP
12027 * Services with Type=oneshot do not have to have any ExecStart
12028 commands anymore.
b62a309a
ZJS
12029
12030 * User units are now loaded also from
12031 $XDG_RUNTIME_DIR/systemd/user/. This is similar to the
12032 /run/systemd/user directory that was already previously
12033 supported, but is under the control of the user.
12034
3f9a0a52 12035 * Job timeouts (i.e. timeouts on the time a job that is
4ffd29fd
LP
12036 queued stays in the run queue) can now optionally result in
12037 immediate reboot or power-off actions (JobTimeoutAction= and
12038 JobTimeoutRebootArgument=). This is useful on ".target"
12039 units, to limit the maximum time a target remains
12040 undispatched in the run queue, and to trigger an emergency
12041 operation in such a case. This is now used by default to
12042 turn off the system if boot-up (as defined by everything in
12043 basic.target) hangs and does not complete for at least
12044 15min. Also, if power-off or reboot hang for at least 30min
12045 an immediate power-off/reboot operation is triggered. This
12046 functionality is particularly useful to increase reliability
12047 on embedded devices, but also on laptops which might
12048 accidentally get powered on when carried in a backpack and
12049 whose boot stays stuck in a hard disk encryption passphrase
12050 question.
12051
b62a309a
ZJS
12052 * systemd-logind can be configured to also handle lid switch
12053 events even when the machine is docked or multiple displays
12054 are attached (HandleLidSwitchDocked= option).
12055
12056 * A helper binary and a service have been added which can be
12057 used to resume from hibernation in the initramfs. A
12058 generator will parse the resume= option on the kernel
81c7dd89 12059 command line to trigger resume.
b62a309a 12060
78b6b7ce
LP
12061 * A user console daemon systemd-consoled has been
12062 added. Currently, it is a preview, and will so far open a
12063 single terminal on each session of the user marked as
09077149 12064 Desktop=systemd-console.
b62a309a
ZJS
12065
12066 * Route metrics can be specified for DHCP routes added by
12067 systemd-networkd.
12068
ba8df74b 12069 * The SELinux context of socket-activated services can be set
78b6b7ce 12070 from the information provided by the networking stack
b62a309a
ZJS
12071 (SELinuxContextFromNet= option).
12072
12073 * Userspace firmware loading support has been removed and
12074 the minimum supported kernel version is thus bumped to 3.7.
12075
12076 * Timeout for udev workers has been increased from 1 to 3
12077 minutes, but a warning will be printed after 1 minute to
12078 help diagnose kernel modules that take a long time to load.
12079
78b6b7ce 12080 * Udev rules can now remove tags on devices with TAG-="foobar".
b62a309a 12081
4bdc60cb 12082 * systemd's readahead implementation has been removed. In many
f6d1de85 12083 circumstances it didn't give expected benefits even for
b62a309a 12084 rotational disk drives and was becoming less relevant in the
78b6b7ce
LP
12085 age of SSDs. As none of the developers has been using
12086 rotating media anymore, and nobody stepped up to actively
12087 maintain this component of systemd it has now been removed.
b62a309a 12088
c4ac9900 12089 * Swap units can use Options= to specify discard options.
b62a309a
ZJS
12090 Discard options specified for swaps in /etc/fstab are now
12091 respected.
12092
12093 * Docker containers are now detected as a separate type of
12094 virtualization.
12095
12096 * The Password Agent protocol gained support for queries where
ba8df74b 12097 the user input is shown, useful e.g. for user names.
78b6b7ce
LP
12098 systemd-ask-password gained a new --echo option to turn that
12099 on.
b62a309a 12100
e6c253e3
MS
12101 * The default sysctl.d/ snippets will now set:
12102
12103 net.core.default_qdisc = fq_codel
12104
ba8df74b
KS
12105 This selects Fair Queuing Controlled Delay as the default
12106 queuing discipline for network interfaces. fq_codel helps
e6c253e3
MS
12107 fight the network bufferbloat problem. It is believed to be
12108 a good default with no tuning required for most workloads.
12109 Downstream distributions may override this choice. On 10Gbit
12110 servers that do not do forwarding, "fq" may perform better.
12111 Systems without a good clocksource should use "pfifo_fast".
12112
4bdc60cb
LP
12113 * If kdbus is enabled during build a new option BusPolicy= is
12114 available for service units, that allows locking all service
12115 processes into a stricter bus policy, in order to limit
12116 access to various bus services, or even hide most of them
12117 from the service's view entirely.
12118
12119 * networkctl will now show the .network and .link file
12120 networkd has applied to a specific interface.
12121
12122 * sd-login gained a new API call sd_session_get_desktop() to
12123 query which desktop environment has been selected for a
12124 session.
12125
12126 * UNIX utmp support is now compile-time optional to support
12127 legacy-free systems.
12128
78b6b7ce
LP
12129 * systemctl gained two new commands "add-wants" and
12130 "add-requires" for pulling in units from specific targets
12131 easily.
12132
12133 * If the word "rescue" is specified on the kernel command line
12134 the system will now boot into rescue mode (aka
12135 rescue.target), which was previously available only by
12136 specifying "1" or "systemd.unit=rescue.target" on the kernel
12137 command line. This new kernel command line option nicely
12138 mirrors the already existing "emergency" kernel command line
12139 option.
12140
12141 * New kernel command line options mount.usr=, mount.usrflags=,
d4474c41 12142 mount.usrfstype= have been added that match root=, rootflags=,
78b6b7ce
LP
12143 rootfstype= but allow mounting a specific file system to
12144 /usr.
12145
f6d1de85 12146 * The $NOTIFY_SOCKET is now also passed to control processes of
78b6b7ce
LP
12147 services, not only the main process.
12148
12149 * This version reenables support for fsck's -l switch. This
12150 means at least version v2.25 of util-linux is required for
12151 operation, otherwise dead-locks on device nodes may
12152 occur. Again: you need to update util-linux to at least
12153 v2.25 when updating systemd to v217.
12154
3769415e
TT
12155 * The "multi-seat-x" tool has been removed from systemd, as
12156 its functionality has been integrated into X servers 1.16,
12157 and the tool is hence redundant. It is recommended to update
12158 display managers invoking this tool to simply invoke X
12159 directly from now on, again.
12160
fae9332b 12161 * Support for the new ALLOW_INTERACTIVE_AUTHORIZATION D-Bus
d35f51ea
ZJS
12162 message flag has been added for all of systemd's polkit
12163 authenticated method calls has been added. In particular this
12164 now allows optional interactive authorization via polkit for
12165 many of PID1's privileged operations such as unit file
12166 enabling and disabling.
fae9332b 12167
cfa1571b
LP
12168 * "udevadm hwdb --update" learnt a new switch "--usr" for
12169 placing the rebuilt hardware database in /usr instead of
12170 /etc. When used only hardware database entries stored in
12171 /usr will be used, and any user database entries in /etc are
12172 ignored. This functionality is useful for vendors to ship a
12173 pre-built database on systems where local configuration is
12174 unnecessary or unlikely.
12175
7e63dd10
LP
12176 * Calendar time specifications in .timer units now also
12177 understand the strings "semi-annually", "quarterly" and
ba8df74b 12178 "minutely" as shortcuts (in addition to the preexisting
1d3a473b 12179 "annually", "hourly", …).
7e63dd10 12180
d4474c41
TG
12181 * systemd-tmpfiles will now correctly create files in /dev
12182 at boot which are marked for creation only at boot. It is
12183 recommended to always create static device nodes with 'c!'
12184 and 'b!', so that they are created only at boot and not
12185 overwritten at runtime.
12186
3b187c5c
LP
12187 * When the watchdog logic is used for a service (WatchdogSec=)
12188 and the watchdog timeout is hit the service will now be
12189 terminated with SIGABRT (instead of just SIGTERM), in order
12190 to make sure a proper coredump and backtrace is
12191 generated. This ensures that hanging services will result in
12192 similar coredump/backtrace behaviour as services that hit a
12193 segmentation fault.
12194
4b08dd87
LP
12195 Contributions from: Andreas Henriksson, Andrei Borzenkov,
12196 Angus Gibson, Ansgar Burchardt, Ben Wolsieffer, Brandon L.
12197 Black, Christian Hesse, Cristian Rodríguez, Daniel Buch,
12198 Daniele Medri, Daniel Mack, Dan Williams, Dave Reisner, David
12199 Herrmann, David Sommerseth, David Strauss, Emil Renner
12200 Berthing, Eric Cook, Evangelos Foutras, Filipe Brandenburger,
12201 Gustavo Sverzut Barbieri, Hans de Goede, Harald Hoyer, Hristo
12202 Venev, Hugo Grostabussiat, Ivan Shapovalov, Jan Janssen, Jan
12203 Synacek, Jonathan Liu, Juho Son, Karel Zak, Kay Sievers, Klaus
12204 Purer, Koen Kooi, Lennart Poettering, Lukas Nykryn, Lukasz
12205 Skalski, Łukasz Stelmach, Mantas Mikulėnas, Marcel Holtmann,
12206 Marius Tessmann, Marko Myllynen, Martin Pitt, Michael Biebl,
12207 Michael Marineau, Michael Olbrich, Michael Scherer, Michal
12208 Schmidt, Michal Sekletar, Miroslav Lichvar, Patrik Flykt,
12209 Philippe De Swert, Piotr Drąg, Rahul Sundaram, Richard
12210 Weinberger, Robert Milasan, Ronny Chevalier, Ruben Kerkhof,
12211 Santiago Vila, Sergey Ptashnick, Simon McVittie, Sjoerd
12212 Simons, Stefan Brüns, Steven Allen, Steven Noonan, Susant
12213 Sahani, Sylvain Plantefève, Thomas Hindoe Paaboel Andersen,
12214 Timofey Titovets, Tobias Hunger, Tom Gundersen, Torstein
12215 Husebø, Umut Tezduyar Lindskog, WaLyong Cho, Zbigniew
13e92f39 12216 Jędrzejewski-Szmek
4b08dd87 12217
ccddd104 12218 — Berlin, 2014-10-28
4b08dd87 12219
b72ddf0f 12220CHANGES WITH 216:
b2ca0d63
LP
12221
12222 * timedated no longer reads NTP implementation unit names from
b72ddf0f 12223 /usr/lib/systemd/ntp-units.d/*.list. Alternative NTP
b2ca0d63
LP
12224 implementations should add a
12225
b72ddf0f 12226 Conflicts=systemd-timesyncd.service
b2ca0d63
LP
12227
12228 to their unit files to take over and replace systemd's NTP
12229 default functionality.
12230
12231 * systemd-sysusers gained a new line type "r" for configuring
12232 which UID/GID ranges to allocate system users/groups
12233 from. Lines of type "u" may now add an additional column
12234 that specifies the home directory for the system user to be
12235 created. Also, systemd-sysusers may now optionally read user
12236 information from STDIN instead of a file. This is useful for
12237 invoking it from RPM preinst scriptlets that need to create
12238 users before the first RPM file is installed since these
12239 files might need to be owned by them. A new
12240 %sysusers_create_inline RPM macro has been introduced to do
12241 just that. systemd-sysusers now updates the shadow files as
12242 well as the user/group databases, which should enhance
12243 compatibility with certain tools like grpck.
12244
d35f51ea
ZJS
12245 * A number of bus APIs of PID 1 now optionally consult polkit to
12246 permit access for otherwise unprivileged clients under certain
12247 conditions. Note that this currently doesn't support
12248 interactive authentication yet, but this is expected to be
12249 added eventually, too.
b2ca0d63
LP
12250
12251 * /etc/machine-info now has new fields for configuring the
12252 deployment environment of the machine, as well as the
12253 location of the machine. hostnamectl has been updated with
12254 new command to update these fields.
12255
12256 * systemd-timesyncd has been updated to automatically acquire
12257 NTP server information from systemd-networkd, which might
12258 have been discovered via DHCP.
12259
12260 * systemd-resolved now includes a caching DNS stub resolver
12261 and a complete LLMNR name resolution implementation. A new
daa05349
AB
12262 NSS module "nss-resolve" has been added which can be used
12263 instead of glibc's own "nss-dns" to resolve hostnames via
b2ca0d63
LP
12264 systemd-resolved. Hostnames, addresses and arbitrary RRs may
12265 be resolved via systemd-resolved D-Bus APIs. In contrast to
12266 the glibc internal resolver systemd-resolved is aware of
12267 multi-homed system, and keeps DNS server and caches separate
5f02e26c 12268 and per-interface. Queries are sent simultaneously on all
b2ca0d63
LP
12269 interfaces that have DNS servers configured, in order to
12270 properly handle VPNs and local LANs which might resolve
12271 separate sets of domain names. systemd-resolved may acquire
a1a4a25e 12272 DNS server information from systemd-networkd automatically,
b2ca0d63
LP
12273 which in turn might have discovered them via DHCP. A tool
12274 "systemd-resolve-host" has been added that may be used to
12275 query the DNS logic in resolved. systemd-resolved implements
12276 IDNA and automatically uses IDNA or UTF-8 encoding depending
12277 on whether classic DNS or LLMNR is used as transport. In the
12278 next releases we intend to add a DNSSEC and mDNS/DNS-SD
12279 implementation to systemd-resolved.
12280
12281 * A new NSS module nss-mymachines has been added, that
12282 automatically resolves the names of all local registered
12283 containers to their respective IP addresses.
12284
12285 * A new client tool "networkctl" for systemd-networkd has been
12286 added. It currently is entirely passive and will query
12287 networking configuration from udev, rtnetlink and networkd,
5f02e26c 12288 and present it to the user in a very friendly
b2ca0d63
LP
12289 way. Eventually, we hope to extend it to become a full
12290 control utility for networkd.
12291
12292 * .socket units gained a new DeferAcceptSec= setting that
12293 controls the kernels' TCP_DEFER_ACCEPT sockopt for
a8eaaee7 12294 TCP. Similarly, support for controlling TCP keep-alive
b2ca0d63
LP
12295 settings has been added (KeepAliveTimeSec=,
12296 KeepAliveIntervalSec=, KeepAliveProbes=). Also, support for
12297 turning off Nagle's algorithm on TCP has been added
12298 (NoDelay=).
12299
a1a4a25e 12300 * logind learned a new session type "web", for use in projects
b2ca0d63
LP
12301 like Cockpit which register web clients as PAM sessions.
12302
12303 * timer units with at least one OnCalendar= setting will now
46ae28d8 12304 be started only after time-sync.target has been
b2ca0d63
LP
12305 reached. This way they will not elapse before the system
12306 clock has been corrected by a local NTP client or
12307 similar. This is particular useful on RTC-less embedded
12308 machines, that come up with an invalid system clock.
12309
12310 * systemd-nspawn's --network-veth= switch should now result in
12311 stable MAC addresses for both the outer and the inner side
12312 of the link.
12313
12314 * systemd-nspawn gained a new --volatile= switch for running
12315 container instances with /etc or /var unpopulated.
12316
12317 * The kdbus client code has been updated to use the new Linux
12318 3.17 memfd subsystem instead of the old kdbus-specific one.
12319
12320 * systemd-networkd's DHCP client and server now support
01da80b1
LP
12321 FORCERENEW. There are also new configuration options to
12322 configure the vendor client identifier and broadcast mode
12323 for DHCP.
b2ca0d63
LP
12324
12325 * systemd will no longer inform the kernel about the current
12326 timezone, as this is necessarily incorrect and racy as the
12327 kernel has no understanding of DST and similar
12328 concepts. This hence means FAT timestamps will be always
12329 considered UTC, similar to what Android is already
12330 doing. Also, when the RTC is configured to the local time
12331 (rather than UTC) systemd will never synchronize back to it,
12332 as this might confuse Windows at a later boot.
12333
12334 * systemd-analyze gained a new command "verify" for offline
12335 validation of unit files.
12336
12337 * systemd-networkd gained support for a couple of additional
12338 settings for bonding networking setups. Also, the metric for
12339 statically configured routes may now be configured. For
12340 network interfaces where this is appropriate the peer IP
12341 address may now be configured.
12342
26568403
TG
12343 * systemd-networkd's DHCP client will no longer request
12344 broadcasting by default, as this tripped up some networks.
12345 For hardware where broadcast is required the feature should
12346 be switched back on using RequestBroadcast=yes.
12347
12348 * systemd-networkd will now set up IPv4LL addresses (when
12349 enabled) even if DHCP is configured successfully.
12350
12351 * udev will now default to respect network device names given
12352 by the kernel when the kernel indicates that these are
12353 predictable. This behavior can be tweaked by changing
12354 NamePolicy= in the relevant .link file.
12355
b2ca0d63
LP
12356 * A new library systemd-terminal has been added that
12357 implements full TTY stream parsing and rendering. This
12358 library is supposed to be used later on for implementing a
12359 full userspace VT subsystem, replacing the current kernel
12360 implementation.
12361
12362 * A new tool systemd-journal-upload has been added to push
12363 journal data to a remote system running
12364 systemd-journal-remote.
12365
12366 * journald will no longer forward all local data to another
12367 running syslog daemon. This change has been made because
12368 rsyslog (which appears to be the most commonly used syslog
12369 implementation these days) no longer makes use of this, and
12370 instead pulls the data out of the journal on its own. Since
5f02e26c 12371 forwarding the messages to a non-existent syslog server is
b2ca0d63
LP
12372 more expensive than we assumed we have now turned this
12373 off. If you run a syslog server that is not a recent rsyslog
12374 version, you have to turn this option on again
12375 (ForwardToSyslog= in journald.conf).
12376
12377 * journald now optionally supports the LZ4 compressor for
12378 larger journal fields. This compressor should perform much
12379 better than XZ which was the previous default.
12380
12381 * machinectl now shows the IP addresses of local containers,
12382 if it knows them, plus the interface name of the container.
12383
12384 * A new tool "systemd-escape" has been added that makes it
12385 easy to escape strings to build unit names and similar.
12386
12387 * sd_notify() messages may now include a new ERRNO= field
12388 which is parsed and collected by systemd and shown among the
12389 "systemctl status" output for a service.
12390
12391 * A new component "systemd-firstboot" has been added that
12392 queries the most basic systemd information (timezone,
a1a4a25e 12393 hostname, root password) interactively on first
b2ca0d63
LP
12394 boot. Alternatively it may also be used to provision these
12395 things offline on OS images installed into directories.
12396
01da80b1
LP
12397 * The default sysctl.d/ snippets will now set
12398
12399 net.ipv4.conf.default.promote_secondaries=1
12400
12401 This has the benefit of no flushing secondary IP addresses
12402 when primary addresses are removed.
12403
b2ca0d63
LP
12404 Contributions from: Ansgar Burchardt, Bastien Nocera, Colin
12405 Walters, Dan Dedrick, Daniel Buch, Daniel Korostil, Daniel
12406 Mack, Dan Williams, Dave Reisner, David Herrmann, Denis
12407 Kenzior, Eelco Dolstra, Eric Cook, Hannes Reinecke, Harald
12408 Hoyer, Hong Shick Pak, Hui Wang, Jean-André Santoni, Jóhann
12409 B. Guðmundsson, Jon Severinsson, Karel Zak, Kay Sievers, Kevin
12410 Wells, Lennart Poettering, Lukas Nykryn, Mantas Mikulėnas,
12411 Marc-Antoine Perennou, Martin Pitt, Michael Biebl, Michael
12412 Marineau, Michael Olbrich, Michal Schmidt, Michal Sekletar,
12413 Miguel Angel Ajo, Mike Gilbert, Olivier Brunel, Robert
12414 Schiele, Ronny Chevalier, Simon McVittie, Sjoerd Simons, Stef
12415 Walter, Steven Noonan, Susant Sahani, Tanu Kaskinen, Thomas
12416 Blume, Thomas Hindoe Paaboel Andersen, Timofey Titovets,
12417 Tobias Geerinckx-Rice, Tomasz Torcz, Tom Gundersen, Umut
12418 Tezduyar Lindskog, Zbigniew Jędrzejewski-Szmek
12419
ccddd104 12420 — Berlin, 2014-08-19
b72ddf0f 12421
3dff3e00 12422CHANGES WITH 215:
24a2bf4c
LP
12423
12424 * A new tool systemd-sysusers has been added. This tool
12425 creates system users and groups in /etc/passwd and
12426 /etc/group, based on static declarative system user/group
12427 definitions in /usr/lib/sysusers.d/. This is useful to
12428 enable factory resets and volatile systems that boot up with
12429 an empty /etc directory, and thus need system users and
12430 groups created during early boot. systemd now also ships
12431 with two default sysusers.d/ files for the most basic
12432 users and groups systemd and the core operating system
12433 require.
12434
12435 * A new tmpfiles snippet has been added that rebuilds the
12436 essential files in /etc on boot, should they be missing.
12437
12438 * A directive for ensuring automatic clean-up of
12439 /var/cache/man/ has been removed from the default
12440 configuration. This line should now be shipped by the man
12441 implementation. The necessary change has been made to the
12442 man-db implementation. Note that you need to update your man
12443 implementation to one that ships this line, otherwise no
12444 automatic clean-up of /var/cache/man will take place.
12445
12446 * A new condition ConditionNeedsUpdate= has been added that
12447 may conditionalize services to only run when /etc or /var
12448 are "older" than the vendor operating system resources in
12449 /usr. This is useful for reconstructing or updating /etc
12450 after an offline update of /usr or a factory reset, on the
12451 next reboot. Services that want to run once after such an
12452 update or reset should use this condition and order
12453 themselves before the new systemd-update-done.service, which
12454 will mark the two directories as fully updated. A number of
12455 service files have been added making use of this, to rebuild
12456 the udev hardware database, the journald message catalog and
12457 dynamic loader cache (ldconfig). The systemd-sysusers tool
12458 described above also makes use of this now. With this in
12459 place it is now possible to start up a minimal operating
ce1dde29 12460 system with /etc empty cleanly. For more information on the
24a2bf4c
LP
12461 concepts involved see this recent blog story:
12462
dc7e580e 12463 https://0pointer.de/blog/projects/stateless.html
24a2bf4c
LP
12464
12465 * A new system group "input" has been introduced, and all
12466 input device nodes get this group assigned. This is useful
12467 for system-level software to get access to input devices. It
3dff3e00
KS
12468 complements what is already done for "audio" and "video".
12469
24a2bf4c
LP
12470 * systemd-networkd learnt minimal DHCPv4 server support in
12471 addition to the existing DHCPv4 client support. It also
12472 learnt DHCPv6 client and IPv6 Router Solicitation client
12473 support. The DHCPv4 client gained support for static routes
12474 passed in from the server. Note that the [DHCPv4] section
12475 known in older systemd-networkd versions has been renamed to
12476 [DHCP] and is now also used by the DHCPv6 client. Existing
c7435cc9
LP
12477 .network files using settings of this section should be
12478 updated, though compatibility is maintained. Optionally, the
12479 client hostname may now be sent to the DHCP server.
24a2bf4c 12480
c7435cc9
LP
12481 * networkd gained support for vxlan virtual networks as well
12482 as tun/tap and dummy devices.
24a2bf4c
LP
12483
12484 * networkd gained support for automatic allocation of address
12485 ranges for interfaces from a system-wide pool of
12486 addresses. This is useful for dynamically managing a large
12487 number of interfaces with a single network configuration
12488 file. In particular this is useful to easily assign
12489 appropriate IP addresses to the veth links of a large number
12490 of nspawn instances.
12491
12492 * RPM macros for processing sysusers, sysctl and binfmt
12493 drop-in snippets at package installation time have been
12494 added.
12495
12496 * The /etc/os-release file should now be placed in
12497 /usr/lib/os-release. The old location is automatically
12498 created as symlink. /usr/lib is the more appropriate
12499 location of this file, since it shall actually describe the
12500 vendor operating system shipped in /usr, and not the
12501 configuration stored in /etc.
12502
12503 * .mount units gained a new boolean SloppyOptions= setting
12504 that maps to mount(8)'s -s option which enables permissive
12505 parsing of unknown mount options.
12506
12507 * tmpfiles learnt a new "L+" directive which creates a symlink
12508 but (unlike "L") deletes a pre-existing file first, should
12509 it already exist and not already be the correct
a8eaaee7 12510 symlink. Similarly, "b+", "c+" and "p+" directives have been
24a2bf4c
LP
12511 added as well, which create block and character devices, as
12512 well as fifos in the filesystem, possibly removing any
12513 pre-existing files of different types.
12514
12515 * For tmpfiles' "L", "L+", "C" and "C+" directives the final
12516 'argument' field (which so far specified the source to
ce1dde29 12517 symlink/copy the files from) is now optional. If omitted the
24a2bf4c
LP
12518 same file os copied from /usr/share/factory/ suffixed by the
12519 full destination path. This is useful for populating /etc
12520 with essential files, by copying them from vendor defaults
12521 shipped in /usr/share/factory/etc.
12522
12523 * A new command "systemctl preset-all" has been added that
12524 applies the service preset settings to all installed unit
12525 files. A new switch --preset-mode= has been added that
12526 controls whether only enable or only disable operations
12527 shall be executed.
12528
12529 * A new command "systemctl is-system-running" has been added
12530 that allows checking the overall state of the system, for
ce1dde29 12531 example whether it is fully up and running.
24a2bf4c
LP
12532
12533 * When the system boots up with an empty /etc, the equivalent
12534 to "systemctl preset-all" is executed during early boot, to
12535 make sure all default services are enabled after a factory
12536 reset.
12537
12538 * systemd now contains a minimal preset file that enables the
12539 most basic services systemd ships by default.
12540
12541 * Unit files' [Install] section gained a new DefaultInstance=
12542 field for defining the default instance to create if a
12543 template unit is enabled with no instance specified.
12544
12545 * A new passive target cryptsetup-pre.target has been added
12546 that may be used by services that need to make they run and
12547 finish before the first LUKS cryptographic device is set up.
12548
12549 * The /dev/loop-control and /dev/btrfs-control device nodes
12550 are now owned by the "disk" group by default, opening up
12551 access to this group.
12552
12553 * systemd-coredump will now automatically generate a
12554 stack trace of all core dumps taking place on the system,
12555 based on elfutils' libdw library. This stack trace is logged
12556 to the journal.
12557
12558 * systemd-coredump may now optionally store coredumps directly
12559 on disk (in /var/lib/systemd/coredump, possibly compressed),
12560 instead of storing them unconditionally in the journal. This
12561 mode is the new default. A new configuration file
12562 /etc/systemd/coredump.conf has been added to configure this
12563 and other parameters of systemd-coredump.
12564
12565 * coredumpctl gained a new "info" verb to show details about a
12566 specific coredump. A new switch "-1" has also been added
12567 that makes sure to only show information about the most
12568 recent entry instead of all entries. Also, as the tool is
12569 generally useful now the "systemd-" prefix of the binary
12570 name has been removed. Distributions that want to maintain
12571 compatibility with the old name should add a symlink from
12572 the old name to the new name.
12573
12574 * journald's SplitMode= now defaults to "uid". This makes sure
ce1dde29 12575 that unprivileged users can access their own coredumps with
24a2bf4c
LP
12576 coredumpctl without restrictions.
12577
12578 * New kernel command line options "systemd.wants=" (for
12579 pulling an additional unit during boot), "systemd.mask="
12580 (for masking a specific unit for the boot), and
12581 "systemd.debug-shell" (for enabling the debug shell on tty9)
12582 have been added. This is implemented in the new generator
12583 "systemd-debug-generator".
12584
12585 * systemd-nspawn will now by default filter a couple of
12586 syscalls for containers, among them those required for
12587 kernel module loading, direct x86 IO port access, swap
12588 management, and kexec. Most importantly though
12589 open_by_handle_at() is now prohibited for containers,
12590 closing a hole similar to a recently discussed vulnerability
12591 in docker regarding access to files on file hierarchies the
b938cb90
JE
12592 container should normally not have access to. Note that, for
12593 nspawn, we generally make no security claims anyway (and
24a2bf4c
LP
12594 this is explicitly documented in the man page), so this is
12595 just a fix for one of the most obvious problems.
12596
12597 * A new man page file-hierarchy(7) has been added that
12598 contains a minimized, modernized version of the file system
12599 layout systemd expects, similar in style to the FHS
c7435cc9
LP
12600 specification or hier(5). A new tool systemd-path(1) has
12601 been added to query many of these paths for the local
12602 machine and user.
24a2bf4c
LP
12603
12604 * Automatic time-based clean-up of $XDG_RUNTIME_DIR is no
12605 longer done. Since the directory now has a per-user size
12606 limit, and is cleaned on logout this appears unnecessary,
12607 in particular since this now brings the lifecycle of this
12608 directory closer in line with how IPC objects are handled.
12609
12610 * systemd.pc now exports a number of additional directories,
12611 including $libdir (which is useful to identify the library
12612 path for the primary architecture of the system), and a
12613 couple of drop-in directories.
12614
3058e017
TLSC
12615 * udev's predictable network interface names now use the dev_port
12616 sysfs attribute, introduced in linux 3.15 instead of dev_id to
12617 distinguish between ports of the same PCI function. dev_id should
12618 only be used for ports using the same HW address, hence the need
12619 for dev_port.
12620
c7435cc9
LP
12621 * machined has been updated to export the OS version of a
12622 container (read from /etc/os-release and
12623 /usr/lib/os-release) on the bus. This is now shown in
12624 "machinectl status" for a machine.
12625
12626 * A new service setting RestartForceExitStatus= has been
12627 added. If configured to a set of exit signals or process
12628 return values, the service will be restarted when the main
12629 daemon process exits with any of them, regardless of the
12630 Restart= setting.
12631
12632 * systemctl's -H switch for connecting to remote systemd
12633 machines has been extended so that it may be used to
12634 directly connect to a specific container on the
12635 host. "systemctl -H root@foobar:waldi" will now connect as
12636 user "root" to host "foobar", and then proceed directly to
12637 the container named "waldi". Note that currently you have to
12638 authenticate as user "root" for this to work, as entering
12639 containers is a privileged operation.
12640
12641 Contributions from: Andreas Henriksson, Benjamin Steinwender,
12642 Carl Schaefer, Christian Hesse, Colin Ian King, Cristian
12643 Rodríguez, Daniel Mack, Dave Reisner, David Herrmann, Eugene
12644 Yakubovich, Filipe Brandenburger, Frederic Crozat, Hristo
12645 Venev, Jan Engelhardt, Jonathan Boulle, Kay Sievers, Lennart
12646 Poettering, Luke Shumaker, Mantas Mikulėnas, Marc-Antoine
12647 Perennou, Marcel Holtmann, Michael Marineau, Michael Olbrich,
12648 Michał Bartoszkiewicz, Michal Sekletar, Patrik Flykt, Ronan Le
12649 Martret, Ronny Chevalier, Ruediger Oertel, Steven Noonan,
12650 Susant Sahani, Thadeu Lima de Souza Cascardo, Thomas Hindoe
12651 Paaboel Andersen, Tom Gundersen, Tom Hirst, Umut Tezduyar
12652 Lindskog, Uoti Urpala, Zbigniew Jędrzejewski-Szmek
12653
ccddd104 12654 — Berlin, 2014-07-03
c7435cc9 12655
4196a3ea
KS
12656CHANGES WITH 214:
12657
12658 * As an experimental feature, udev now tries to lock the
12659 disk device node (flock(LOCK_SH|LOCK_NB)) while it
12660 executes events for the disk or any of its partitions.
12661 Applications like partitioning programs can lock the
12662 disk device node (flock(LOCK_EX)) and claim temporary
12663 device ownership that way; udev will entirely skip all event
12664 handling for this disk and its partitions. If the disk
12665 was opened for writing, the close will trigger a partition
12666 table rescan in udev's "watch" facility, and if needed
71449caf 12667 synthesize "change" events for the disk and all its partitions.
8d0e0ddd 12668 This is now unconditionally enabled, and if it turns out to
4196a3ea 12669 cause major problems, we might turn it on only for specific
45df8656 12670 devices, or might need to disable it entirely. Device Mapper
4196a3ea
KS
12671 devices are excluded from this logic.
12672
04e91da2
LP
12673 * We temporarily dropped the "-l" switch for fsck invocations,
12674 since they collide with the flock() logic above. util-linux
12675 upstream has been changed already to avoid this conflict,
5238e957 12676 and we will re-add "-l" as soon as util-linux with this
04e91da2
LP
12677 change has been released.
12678
12679 * The dependency on libattr has been removed. Since a long
8d0e0ddd 12680 time, the extended attribute calls have moved to glibc, and
04e91da2
LP
12681 libattr is thus unnecessary.
12682
ce830873 12683 * Virtualization detection works without privileges now. This
04e91da2
LP
12684 means the systemd-detect-virt binary no longer requires
12685 CAP_SYS_PTRACE file capabilities, and our daemons can run
71449caf 12686 with fewer privileges.
04e91da2
LP
12687
12688 * systemd-networkd now runs under its own "systemd-network"
12689 user. It retains the CAP_NET_ADMIN, CAP_NET_BIND_SERVICE,
12690 CAP_NET_BROADCAST, CAP_NET_RAW capabilities though, but
12691 loses the ability to write to files owned by root this way.
12692
a8eaaee7 12693 * Similarly, systemd-resolved now runs under its own
04e91da2
LP
12694 "systemd-resolve" user with no capabilities remaining.
12695
a8eaaee7 12696 * Similarly, systemd-bus-proxyd now runs under its own
04e91da2
LP
12697 "systemd-bus-proxy" user with only CAP_IPC_OWNER remaining.
12698
12699 * systemd-networkd gained support for setting up "veth"
a8eaaee7 12700 virtual Ethernet devices for container connectivity, as well
04e91da2
LP
12701 as GRE and VTI tunnels.
12702
12703 * systemd-networkd will no longer automatically attempt to
12704 manually load kernel modules necessary for certain tunnel
8d0e0ddd 12705 transports. Instead, it is assumed the kernel loads them
04e91da2
LP
12706 automatically when required. This only works correctly on
12707 very new kernels. On older kernels, please consider adding
c54bed5d 12708 the kernel modules to /etc/modules-load.d/ as a work-around.
04e91da2 12709
cd14eda3 12710 * The resolv.conf file systemd-resolved generates has been
8d0e0ddd
JE
12711 moved to /run/systemd/resolve/. If you have a symlink from
12712 /etc/resolv.conf, it might be necessary to correct it.
cd14eda3 12713
ef392da6 12714 * Two new service settings, ProtectHome= and ProtectSystem=,
8d0e0ddd 12715 have been added. When enabled, they will make the user data
04e91da2
LP
12716 (such as /home) inaccessible or read-only and the system
12717 (such as /usr) read-only, for specific services. This allows
12718 very light-weight per-service sandboxing to avoid
12719 modifications of user data or system files from
12720 services. These two new switches have been enabled for all
12721 of systemd's long-running services, where appropriate.
12722
12723 * Socket units gained new SocketUser= and SocketGroup=
12724 settings to set the owner user and group of AF_UNIX sockets
12725 and FIFOs in the file system.
12726
8d0e0ddd 12727 * Socket units gained a new RemoveOnStop= setting. If enabled,
04e91da2
LP
12728 all FIFOS and sockets in the file system will be removed
12729 when the specific socket unit is stopped.
12730
12731 * Socket units gained a new Symlinks= setting. It takes a list
12732 of symlinks to create to file system sockets or FIFOs
45df8656 12733 created by the specific Unix sockets. This is useful to
de04bbdc 12734 manage symlinks to socket nodes with the same lifecycle as
04e91da2
LP
12735 the socket itself.
12736
12737 * The /dev/log socket and /dev/initctl FIFO have been moved to
12738 /run, and have been replaced by symlinks. This allows
12739 connecting to these facilities even if PrivateDevices=yes is
12740 used for a service (which makes /dev/log itself unavailable,
12741 but /run is left). This also has the benefit of ensuring
12742 that /dev only contains device nodes, directories and
12743 symlinks, and nothing else.
12744
12745 * sd-daemon gained two new calls sd_pid_notify() and
12746 sd_pid_notifyf(). They are similar to sd_notify() and
12747 sd_notifyf(), but allow overriding of the source PID of
12748 notification messages if permissions permit this. This is
12749 useful to send notify messages on behalf of a different
12750 process (for example, the parent process). The
12751 systemd-notify tool has been updated to make use of this
12752 when sending messages (so that notification messages now
12753 originate from the shell script invoking systemd-notify and
12754 not the systemd-notify process itself. This should minimize
12755 a race where systemd fails to associate notification
12756 messages to services when the originating process already
12757 vanished.
12758
12759 * A new "on-abnormal" setting for Restart= has been added. If
8d0e0ddd 12760 set, it will result in automatic restarts on all "abnormal"
04e91da2
LP
12761 reasons for a process to exit, which includes unclean
12762 signals, core dumps, timeouts and watchdog timeouts, but
12763 does not include clean and unclean exit codes or clean
12764 signals. Restart=on-abnormal is an alternative for
12765 Restart=on-failure for services that shall be able to
12766 terminate and avoid restarts on certain errors, by
12767 indicating so with an unclean exit code. Restart=on-failure
12768 or Restart=on-abnormal is now the recommended setting for
12769 all long-running services.
12770
12771 * If the InaccessibleDirectories= service setting points to a
12772 mount point (or if there are any submounts contained within
12773 it), it is now attempted to completely unmount it, to make
12774 the file systems truly unavailable for the respective
12775 service.
12776
12777 * The ReadOnlyDirectories= service setting and
12778 systemd-nspawn's --read-only parameter are now recursively
12779 applied to all submounts, too.
12780
12781 * Mount units may now be created transiently via the bus APIs.
12782
12783 * The support for SysV and LSB init scripts has been removed
12784 from the systemd daemon itself. Instead, it is now
12785 implemented as a generator that creates native systemd units
12786 from these scripts when needed. This enables us to remove a
12787 substantial amount of legacy code from PID 1, following the
12788 fact that many distributions only ship a very small number
12789 of LSB/SysV init scripts nowadays.
12790
cc98b302 12791 * Privileged Xen (dom0) domains are not considered
04e91da2
LP
12792 virtualization anymore by the virtualization detection
12793 logic. After all, they generally have unrestricted access to
71449caf 12794 the hardware and usually are used to manage the unprivileged
04e91da2
LP
12795 (domU) domains.
12796
12797 * systemd-tmpfiles gained a new "C" line type, for copying
12798 files or entire directories.
12799
12800 * systemd-tmpfiles "m" lines are now fully equivalent to "z"
8d0e0ddd
JE
12801 lines. So far, they have been non-globbing versions of the
12802 latter, and have thus been redundant. In future, it is
12803 recommended to only use "z". "m" has hence been removed
04e91da2
LP
12804 from the documentation, even though it stays supported.
12805
12806 * A tmpfiles snippet to recreate the most basic structure in
12807 /var has been added. This is enough to create the /var/run →
12808 /run symlink and create a couple of structural
12809 directories. This allows systems to boot up with an empty or
8d0e0ddd
JE
12810 volatile /var. Of course, while with this change, the core OS
12811 now is capable with dealing with a volatile /var, not all
04e91da2 12812 user services are ready for it. However, we hope that sooner
8d0e0ddd 12813 or later, many service daemons will be changed upstream so
04e91da2
LP
12814 that they are able to automatically create their necessary
12815 directories in /var at boot, should they be missing. This is
12816 the first step to allow state-less systems that only require
12817 the vendor image for /usr to boot.
12818
12819 * systemd-nspawn has gained a new --tmpfs= switch to mount an
12820 empty tmpfs instance to a specific directory. This is
12821 particularly useful for making use of the automatic
12822 reconstruction of /var (see above), by passing --tmpfs=/var.
12823
12824 * Access modes specified in tmpfiles snippets may now be
12825 prefixed with "~", which indicates that they shall be masked
daa05349 12826 by whether the existing file or directory is currently
8d0e0ddd 12827 writable, readable or executable at all. Also, if specified,
04e91da2
LP
12828 the sgid/suid/sticky bits will be masked for all
12829 non-directories.
12830
12831 * A new passive target unit "network-pre.target" has been
12832 added which is useful for services that shall run before any
12833 network is configured, for example firewall scripts.
12834
4c0d13bd
LP
12835 * The "floppy" group that previously owned the /dev/fd*
12836 devices is no longer used. The "disk" group is now used
12837 instead. Distributions should probably deprecate usage of
12838 this group.
12839
dc1d6c02
LP
12840 Contributions from: Camilo Aguilar, Christian Hesse, Colin Ian
12841 King, Cristian Rodríguez, Daniel Buch, Dave Reisner, David
12842 Strauss, Denis Tikhomirov, John, Jonathan Liu, Kay Sievers,
12843 Lennart Poettering, Mantas Mikulėnas, Mark Eichin, Ronny
12844 Chevalier, Susant Sahani, Thomas Blume, Thomas Hindoe Paaboel
12845 Andersen, Tom Gundersen, Umut Tezduyar Lindskog, Zbigniew
12846 Jędrzejewski-Szmek
12847
ccddd104 12848 — Berlin, 2014-06-11
dc1d6c02 12849
6936cd89
LP
12850CHANGES WITH 213:
12851
12852 * A new "systemd-timesyncd" daemon has been added for
69beda1f 12853 synchronizing the system clock across the network. It
6936cd89 12854 implements an SNTP client. In contrast to NTP
8d0e0ddd 12855 implementations such as chrony or the NTP reference server,
6936cd89 12856 this only implements a client side, and does not bother with
c9679c65
LP
12857 the full NTP complexity, focusing only on querying time from
12858 one remote server and synchronizing the local clock to
6936cd89 12859 it. Unless you intend to serve NTP to networked clients or
8d0e0ddd 12860 want to connect to local hardware clocks, this simple NTP
6936cd89
LP
12861 client should be more than appropriate for most
12862 installations. The daemon runs with minimal privileges, and
12863 has been hooked up with networkd to only operate when
12864 network connectivity is available. The daemon saves the
12865 current clock to disk every time a new NTP sync has been
12866 acquired, and uses this to possibly correct the system clock
69beda1f 12867 early at bootup, in order to accommodate for systems that
6936cd89 12868 lack an RTC such as the Raspberry Pi and embedded devices,
8d0e0ddd 12869 and to make sure that time monotonically progresses on these
c9679c65 12870 systems, even if it is not always correct. To make use of
8d0e0ddd 12871 this daemon, a new system user and group "systemd-timesync"
c9679c65 12872 needs to be created on installation of systemd.
6936cd89 12873
69beda1f
KS
12874 * The queue "seqnum" interface of libudev has been disabled, as
12875 it was generally incompatible with device namespacing as
6936cd89
LP
12876 sequence numbers of devices go "missing" if the devices are
12877 part of a different namespace.
12878
12879 * "systemctl list-timers" and "systemctl list-sockets" gained
12880 a --recursive switch for showing units of these types also
499b604b
ZJS
12881 for all local containers, similar in style to the already
12882 supported --recursive switch for "systemctl list-units".
6936cd89
LP
12883
12884 * A new RebootArgument= setting has been added for service
12885 units, which may be used to specify a kernel reboot argument
499b604b 12886 to use when triggering reboots with StartLimitAction=.
6936cd89
LP
12887
12888 * A new FailureAction= setting has been added for service
12889 units which may be used to specify an operation to trigger
499b604b 12890 when a service fails. This works similarly to
8d0e0ddd 12891 StartLimitAction=, but unlike it, controls what is done
6936cd89
LP
12892 immediately rather than only after several attempts to
12893 restart the service in question.
12894
12895 * hostnamed got updated to also expose the kernel name,
499b604b
ZJS
12896 release, and version on the bus. This is useful for
12897 executing commands like hostnamectl with the -H switch.
12898 systemd-analyze makes use of this to properly display
12899 details when running non-locally.
6936cd89
LP
12900
12901 * The bootchart tool can now show cgroup information in the
12902 graphs it generates.
12903
12904 * The CFS CPU quota cgroup attribute is now exposed for
12905 services. The new CPUQuota= switch has been added for this
12906 which takes a percentage value. Setting this will have the
12907 result that a service may never get more CPU time than the
12908 specified percentage, even if the machine is otherwise idle.
12909
12910 * systemd-networkd learned IPIP and SIT tunnel support.
12911
12912 * LSB init scripts exposing a dependency on $network will now
12913 get a dependency on network-online.target rather than simply
12914 network.target. This should bring LSB handling closer to
12915 what it was on SysV systems.
12916
12917 * A new fsck.repair= kernel option has been added to control
12918 how fsck shall deal with unclean file systems at boot.
12919
2ad98889
ZJS
12920 * The (.ini) configuration file parser will now silently ignore
12921 sections whose names begin with "X-". This may be used to maintain
12922 application-specific extension sections in unit files.
6936cd89
LP
12923
12924 * machined gained a new API to query the IP addresses of
12925 registered containers. "machinectl status" has been updated
12926 to show these addresses in its output.
12927
12928 * A new call sd_uid_get_display() has been added to the
12929 sd-login APIs for querying the "primary" session of a
12930 user. The "primary" session of the user is elected from the
12931 user's sessions and generally a graphical session is
12932 preferred over a text one.
12933
12934 * A minimal systemd-resolved daemon has been added. It
12935 currently simply acts as a companion to systemd-networkd and
12936 manages resolv.conf based on per-interface DNS
12937 configuration, possibly supplied via DHCP. In the long run
12938 we hope to extend this into a local DNSSEC enabled DNS and
12939 mDNS cache.
12940
68dd0956
TG
12941 * The systemd-networkd-wait-online tool is now enabled by
12942 default. It will delay network-online.target until a network
12943 connection has been configured. The tool primarily integrates
12944 with networkd, but will also make a best effort to make sense
12945 of network configuration performed in some other way.
12946
6936cd89 12947 * Two new service options StartupCPUShares= and
499b604b 12948 StartupBlockIOWeight= have been added that work similarly to
6936cd89 12949 CPUShares= and BlockIOWeight= however only apply during
69beda1f 12950 system startup. This is useful to prioritize certain services
6936cd89
LP
12951 differently during bootup than during normal runtime.
12952
8e7acf67
LP
12953 * hostnamed has been changed to prefer the statically
12954 configured hostname in /etc/hostname (unless set to
12955 'localhost' or empty) over any dynamic one supplied by
8d0e0ddd 12956 dhcp. With this change, the rules for picking the hostname
8e7acf67
LP
12957 match more closely the rules of other configuration settings
12958 where the local administrator's configuration in /etc always
12959 overrides any other settings.
12960
5238e957 12961 Contributions from: Ali H. Caliskan, Alison Chaiken, Bas van
6936cd89
LP
12962 den Berg, Brandon Philips, Cristian Rodríguez, Daniel Buch,
12963 Dan Kilman, Dave Reisner, David Härdeman, David Herrmann,
12964 David Strauss, Dimitris Spingos, Djalal Harouni, Eelco
12965 Dolstra, Evan Nemerson, Florian Albrechtskirchinger, Greg
12966 Kroah-Hartman, Harald Hoyer, Holger Hans Peter Freyther, Jan
12967 Engelhardt, Jani Nikula, Jason St. John, Jeffrey Clark,
12968 Jonathan Boulle, Kay Sievers, Lennart Poettering, Lukas
12969 Nykryn, Lukasz Skalski, Łukasz Stelmach, Mantas Mikulėnas,
8e7acf67
LP
12970 Marcel Holtmann, Martin Pitt, Matthew Monaco, Michael
12971 Marineau, Michael Olbrich, Michal Sekletar, Mike Gilbert, Nis
12972 Martensen, Patrik Flykt, Philip Lorenz, poma, Ray Strode,
12973 Reyad Attiyat, Robert Milasan, Scott Thrasher, Stef Walter,
12974 Steven Siloti, Susant Sahani, Tanu Kaskinen, Thomas Bächler,
12975 Thomas Hindoe Paaboel Andersen, Tom Gundersen, Umut Tezduyar
12976 Lindskog, WaLyong Cho, Will Woods, Zbigniew
6936cd89
LP
12977 Jędrzejewski-Szmek
12978
ccddd104 12979 — Beijing, 2014-05-28
6936cd89 12980
51c61cda
LP
12981CHANGES WITH 212:
12982
12983 * When restoring the screen brightness at boot, stay away from
12984 the darkest setting or from the lowest 5% of the available
12985 range, depending on which is the larger value of both. This
12986 should effectively protect the user from rebooting into a
12987 black screen, should the brightness have been set to minimum
12988 by accident.
12989
12990 * sd-login gained a new sd_machine_get_class() call to
12991 determine the class ("vm" or "container") of a machine
12992 registered with machined.
12993
12994 * sd-login gained new calls
12995 sd_peer_get_{session,owner_uid,unit,user_unit,slice,machine_name}(),
12996 to query the identity of the peer of a local AF_UNIX
499b604b 12997 connection. They operate similarly to their sd_pid_get_xyz()
51c61cda
LP
12998 counterparts.
12999
13000 * PID 1 will now maintain a system-wide system state engine
13001 with the states "starting", "running", "degraded",
13002 "maintenance", "stopping". These states are bound to system
13003 startup, normal runtime, runtime with at least one failed
13004 service, rescue/emergency mode and system shutdown. This
13005 state is shown in the "systemctl status" output when no unit
13006 name is passed. It is useful to determine system state, in
13007 particularly when doing so for many systems or containers at
13008 once.
13009
13010 * A new command "list-machines" has been added to "systemctl"
13011 that lists all local OS containers and shows their system
13012 state (see above), if systemd runs inside of them.
13013
13014 * systemctl gained a new "-r" switch to recursively enumerate
13015 units on all local containers, when used with the
13016 "list-unit" command (which is the default one that is
13017 executed when no parameters are specified).
13018
13019 * The GPT automatic partition discovery logic will now honour
13020 two GPT partition flags: one may be set on a partition to
13021 cause it to be mounted read-only, and the other may be set
13022 on a partition to ignore it during automatic discovery.
13023
13024 * Two new GPT type UUIDs have been added for automatic root
70a44afe 13025 partition discovery, for 32-bit and 64-bit ARM. This is not
51c61cda
LP
13026 particularly useful for discovering the root directory on
13027 these architectures during bare-metal boots (since UEFI is
13028 not common there), but still very useful to allow booting of
13029 ARM disk images in nspawn with the -i option.
13030
13031 * MAC addresses of interfaces created with nspawn's
13032 --network-interface= switch will now be generated from the
13033 machine name, and thus be stable between multiple invocations
13034 of the container.
13035
13036 * logind will now automatically remove all IPC objects owned
13037 by a user if she or he fully logs out. This makes sure that
13038 users who are logged out cannot continue to consume IPC
13039 resources. This covers SysV memory, semaphores and message
13040 queues as well as POSIX shared memory and message
de04bbdc 13041 queues. Traditionally, SysV and POSIX IPC had no lifecycle
b8bde116
JE
13042 limits. With this functionality, that is corrected. This may
13043 be turned off by using the RemoveIPC= switch of logind.conf.
51c61cda
LP
13044
13045 * The systemd-machine-id-setup and tmpfiles tools gained a
13046 --root= switch to operate on a specific root directory,
13047 instead of /.
13048
13049 * journald can now forward logged messages to the TTYs of all
13050 logged in users ("wall"). This is the default for all
13051 emergency messages now.
13052
13053 * A new tool systemd-journal-remote has been added to stream
13054 journal log messages across the network.
13055
13056 * /sys/fs/cgroup/ is now mounted read-only after all cgroup
13057 controller trees are mounted into it. Note that the
13058 directories mounted beneath it are not read-only. This is a
13059 security measure and is particularly useful because glibc
13060 actually includes a search logic to pick any tmpfs it can
13061 find to implement shm_open() if /dev/shm is not available
13062 (which it might very well be in namespaced setups).
13063
13064 * machinectl gained a new "poweroff" command to cleanly power
13065 down a local OS container.
13066
13067 * The PrivateDevices= unit file setting will now also drop the
13068 CAP_MKNOD capability from the capability bound set, and
13069 imply DevicePolicy=closed.
13070
13071 * PrivateDevices=, PrivateNetwork= and PrivateTmp= is now used
13072 comprehensively on all long-running systemd services where
13073 this is appropriate.
13074
13075 * systemd-udevd will now run in a disassociated mount
b8bde116 13076 namespace. To mount directories from udev rules, make sure to
51c61cda
LP
13077 pull in mount units via SYSTEMD_WANTS properties.
13078
13079 * The kdbus support gained support for uploading policy into
13080 the kernel. sd-bus gained support for creating "monitoring"
13081 connections that can eavesdrop into all bus communication
13082 for debugging purposes.
13083
13084 * Timestamps may now be specified in seconds since the UNIX
13085 epoch Jan 1st, 1970 by specifying "@" followed by the value
13086 in seconds.
13087
13088 * Native tcpwrap support in systemd has been removed. tcpwrap
13089 is old code, not really maintained anymore and has serious
13090 shortcomings, and better options such as firewalls
13091 exist. For setups that require tcpwrap usage, please
13092 consider invoking your socket-activated service via tcpd,
13093 like on traditional inetd.
13094
13095 * A new system.conf configuration option
13096 DefaultTimerAccuracySec= has been added that controls the
13097 default AccuracySec= setting of .timer units.
13098
b8bde116 13099 * Timer units gained a new WakeSystem= switch. If enabled,
51c61cda
LP
13100 timers configured this way will cause the system to resume
13101 from system suspend (if the system supports that, which most
13102 do these days).
13103
b8bde116 13104 * Timer units gained a new Persistent= switch. If enabled,
51c61cda
LP
13105 timers configured this way will save to disk when they have
13106 been last triggered. This information is then used on next
13107 reboot to possible execute overdue timer events, that
d28315e4
JE
13108 could not take place because the system was powered off.
13109 This enables simple anacron-like behaviour for timer units.
51c61cda
LP
13110
13111 * systemctl's "list-timers" will now also list the time a
13112 timer unit was last triggered in addition to the next time
13113 it will be triggered.
13114
13115 * systemd-networkd will now assign predictable IPv4LL
13116 addresses to its local interfaces.
13117
13118 Contributions from: Brandon Philips, Daniel Buch, Daniel Mack,
13119 Dave Reisner, David Herrmann, Gerd Hoffmann, Greg
13120 Kroah-Hartman, Hendrik Brueckner, Jason St. John, Josh
13121 Triplett, Kay Sievers, Lennart Poettering, Marc-Antoine
13122 Perennou, Michael Marineau, Michael Olbrich, Miklos Vajna,
13123 Patrik Flykt, poma, Sebastian Thorarensen, Thomas Bächler,
13124 Thomas Hindoe Paaboel Andersen, Tomasz Torcz, Tom Gundersen,
13125 Umut Tezduyar Lindskog, Wieland Hoffmann, Zbigniew
13126 Jędrzejewski-Szmek
13127
ccddd104 13128 — Berlin, 2014-03-25
51c61cda 13129
699b6b34
LP
13130CHANGES WITH 211:
13131
13132 * A new unit file setting RestrictAddressFamilies= has been
13133 added to restrict which socket address families unit
13134 processes gain access to. This takes address family names
13135 like "AF_INET" or "AF_UNIX", and is useful to minimize the
13136 attack surface of services via exotic protocol stacks. This
13137 is built on seccomp system call filters.
13138
13139 * Two new unit file settings RuntimeDirectory= and
13140 RuntimeDirectoryMode= have been added that may be used to
13141 manage a per-daemon runtime directories below /run. This is
13142 an alternative for setting up directory permissions with
13143 tmpfiles snippets, and has the advantage that the runtime
13144 directory's lifetime is bound to the daemon runtime and that
13145 the daemon starts up with an empty directory each time. This
13146 is particularly useful when writing services that drop
f1721625 13147 privileges using the User= or Group= setting.
699b6b34
LP
13148
13149 * The DeviceAllow= unit setting now supports globbing for
13150 matching against device group names.
13151
13152 * The systemd configuration file system.conf gained new
13153 settings DefaultCPUAccounting=, DefaultBlockIOAccounting=,
13154 DefaultMemoryAccounting= to globally turn on/off accounting
13155 for specific resources (cgroups) for all units. These
22e7062d 13156 settings may still be overridden individually in each unit
699b6b34
LP
13157 though.
13158
13159 * systemd-gpt-auto-generator is now able to discover /srv and
13160 root partitions in addition to /home and swap partitions. It
13161 also supports LUKS-encrypted partitions now. With this in
b8bde116 13162 place, automatic discovery of partitions to mount following
699b6b34 13163 the Discoverable Partitions Specification
a794a4d8 13164 (https://systemd.io/DISCOVERABLE_PARTITIONS/)
699b6b34
LP
13165 is now a lot more complete. This allows booting without
13166 /etc/fstab and without root= on the kernel command line on
b8bde116 13167 systems prepared appropriately.
699b6b34
LP
13168
13169 * systemd-nspawn gained a new --image= switch which allows
13170 booting up disk images and Linux installations on any block
13171 device that follow the Discoverable Partitions Specification
13172 (see above). This means that installations made with
13173 appropriately updated installers may now be started and
13174 deployed using container managers, completely
13175 unmodified. (We hope that libvirt-lxc will add support for
13176 this feature soon, too.)
13177
13178 * systemd-nspawn gained a new --network-macvlan= setting to
13179 set up a private macvlan interface for the
499b604b 13180 container. Similarly, systemd-networkd gained a new
699b6b34
LP
13181 Kind=macvlan setting in .netdev files.
13182
13183 * systemd-networkd now supports configuring local addresses
13184 using IPv4LL.
13185
13186 * A new tool systemd-network-wait-online has been added to
13187 synchronously wait for network connectivity using
13188 systemd-networkd.
13189
13190 * The sd-bus.h bus API gained a new sd_bus_track object for
de04bbdc 13191 tracking the lifecycle of bus peers. Note that sd-bus.h is
699b6b34
LP
13192 still not a public API though (unless you specify
13193 --enable-kdbus on the configure command line, which however
13194 voids your warranty and you get no API stability guarantee).
13195
13196 * The $XDG_RUNTIME_DIR runtime directories for each user are
13197 now individual tmpfs instances, which has the benefit of
13198 introducing separate pools for each user, with individual
4ef6e535 13199 size limits, and thus making sure that unprivileged clients
699b6b34
LP
13200 can no longer negatively impact the system or other users by
13201 filling up their $XDG_RUNTIME_DIR. A new logind.conf setting
13202 RuntimeDirectorySize= has been introduced that allows
13203 controlling the default size limit for all users. It
13204 defaults to 10% of the available physical memory. This is no
13205 replacement for quotas on tmpfs though (which the kernel
13206 still does not support), as /dev/shm and /tmp are still
4ef6e535 13207 shared resources used by both the system and unprivileged
699b6b34
LP
13208 users.
13209
13210 * logind will now automatically turn off automatic suspending
13211 on laptop lid close when more than one display is
13212 connected. This was previously expected to be implemented
13213 individually in desktop environments (such as GNOME),
13214 however has been added to logind now, in order to fix a
13215 boot-time race where a desktop environment might not have
13216 been started yet and thus not been able to take an inhibitor
13217 lock at the time where logind already suspends the system
13218 due to a closed lid.
13219
13220 * logind will now wait at least 30s after each system
13221 suspend/resume cycle, and 3min after system boot before
13222 suspending the system due to a closed laptop lid. This
13223 should give USB docking stations and similar enough time to
4ef6e535 13224 be probed and configured after system resume and boot in
699b6b34
LP
13225 order to then act as suspend blocker.
13226
13227 * systemd-run gained a new --property= setting which allows
13228 initialization of resource control properties (and others)
13229 for the created scope or service unit. Example: "systemd-run
13230 --property=BlockIOWeight=10 updatedb" may be used to run
13231 updatedb at a low block IO scheduling weight.
13232
13233 * systemd-run's --uid=, --gid=, --setenv=, --setenv= switches
13234 now also work in --scope mode.
13235
13236 * When systemd is compiled with kdbus support, basic support
13237 for enforced policies is now in place. (Note that enabling
13238 kdbus still voids your warranty and no API compatibility
13239 promises are made.)
13240
13241 Contributions from: Andrey Borzenkov, Ansgar Burchardt, Armin
13242 K., Daniel Mack, Dave Reisner, David Herrmann, Djalal Harouni,
13243 Harald Hoyer, Henrik Grindal Bakken, Jasper St. Pierre, Kay
13244 Sievers, Kieran Clancy, Lennart Poettering, Lukas Nykryn,
13245 Mantas Mikulėnas, Marcel Holtmann, Mark Oteiza, Martin Pitt,
13246 Mike Gilbert, Peter Rajnoha, poma, Samuli Suominen, Stef
13247 Walter, Susant Sahani, Tero Roponen, Thomas Andersen, Thomas
13248 Bächler, Thomas Hindoe Paaboel Andersen, Tomasz Torcz, Tom
13249 Gundersen, Umut Tezduyar Lindskog, Uoti Urpala, Zachary Cook,
13250 Zbigniew Jędrzejewski-Szmek
13251
ccddd104 13252 — Berlin, 2014-03-12
699b6b34 13253
43c71255
LP
13254CHANGES WITH 210:
13255
13256 * systemd will now relabel /dev after loading the SMACK policy
13257 according to SMACK rules.
13258
67dd87c5 13259 * A new unit file option AppArmorProfile= has been added to
43c71255
LP
13260 set the AppArmor profile for the processes of a unit.
13261
13262 * A new condition check ConditionArchitecture= has been added
13263 to conditionalize units based on the system architecture, as
13264 reported by uname()'s "machine" field.
13265
13266 * systemd-networkd now supports matching on the system
38b38500 13267 virtualization, architecture, kernel command line, hostname
43c71255
LP
13268 and machine ID.
13269
ed28905e 13270 * logind is now a lot more aggressive when suspending the
43c71255 13271 machine due to a closed laptop lid. Instead of acting only
b8bde116 13272 on the lid close action, it will continuously watch the lid
43c71255
LP
13273 status and act on it. This is useful for laptops where the
13274 power button is on the outside of the chassis so that it can
ed28905e 13275 be reached without opening the lid (such as the Lenovo
b8bde116 13276 Yoga). On those machines, logind will now immediately
ed28905e 13277 re-suspend the machine if the power button has been
43c71255
LP
13278 accidentally pressed while the laptop was suspended and in a
13279 backpack or similar.
13280
13281 * logind will now watch SW_DOCK switches and inhibit reaction
13282 to the lid switch if it is pressed. This means that logind
d27893ef 13283 will not suspend the machine anymore if the lid is closed
949138cc 13284 and the system is docked, if the laptop supports SW_DOCK
43c71255
LP
13285 notifications via the input layer. Note that ACPI docking
13286 stations do not generate this currently. Also note that this
13287 logic is usually not fully sufficient and Desktop
13288 Environments should take a lid switch inhibitor lock when an
13289 external display is connected, as systemd will not watch
13290 this on its own.
13291
13292 * nspawn will now make use of the devices cgroup controller by
13293 default, and only permit creation of and access to the usual
13294 API device nodes like /dev/null or /dev/random, as well as
13295 access to (but not creation of) the pty devices.
13296
13297 * We will now ship a default .network file for
13298 systemd-networkd that automatically configures DHCP for
13299 network interfaces created by nspawn's --network-veth or
13300 --network-bridge= switches.
13301
13302 * systemd will now understand the usual M, K, G, T suffixes
13303 according to SI conventions (i.e. to the base 1000) when
13304 referring to throughput and hardware metrics. It will stay
13305 with IEC conventions (i.e. to the base 1024) for software
13306 metrics, according to what is customary according to
13307 Wikipedia. We explicitly document which base applies for
13308 each configuration option.
13309
6b000af4
LP
13310 * The DeviceAllow= setting in unit files now supports a syntax to
13311 allow-list an entire group of devices node majors at once, based on
13312 the /proc/devices listing. For example, with the string "char-pts",
13313 it is now possible to allow-list all current and future pseudo-TTYs
13314 at once.
43c71255
LP
13315
13316 * sd-event learned a new "post" event source. Event sources of
13317 this type are triggered by the dispatching of any event
13318 source of a type that is not "post". This is useful for
13319 implementing clean-up and check event sources that are
13320 triggered by other work being done in the program.
13321
13322 * systemd-networkd is no longer statically enabled, but uses
13323 the usual [Install] sections so that it can be
13324 enabled/disabled using systemctl. It still is enabled by
13325 default however.
13326
b8bde116 13327 * When creating a veth interface pair with systemd-nspawn, the
43c71255
LP
13328 host side will now be prefixed with "vb-" if
13329 --network-bridge= is used, and with "ve-" if --network-veth
b8bde116 13330 is used. This way, it is easy to distinguish these cases on
43c71255
LP
13331 the host, for example to apply different configuration to
13332 them with systemd-networkd.
13333
d27893ef
LP
13334 * The compatibility libraries for libsystemd-journal.so,
13335 libsystem-id128.so, libsystemd-login.so and
13336 libsystemd-daemon.so do not make use of IFUNC
b8bde116 13337 anymore. Instead, we now build libsystemd.so multiple times
d27893ef
LP
13338 under these alternative names. This means that the footprint
13339 is drastically increased, but given that these are
b8bde116 13340 transitional compatibility libraries, this should not matter
d27893ef
LP
13341 much. This change has been made necessary to support the ARM
13342 platform for these compatibility libraries, as the ARM
d28315e4 13343 toolchain is not really at the same level as the toolchain
ed28905e 13344 for other architectures like x86 and does not support
d27893ef
LP
13345 IFUNC. Please make sure to use --enable-compat-libs only
13346 during a transitional period!
13347
f26ad321
ZJS
13348 * The .include syntax has been deprecated and is not documented
13349 anymore. Drop-in files in .d directories should be used instead.
13350
13b28d82 13351 Contributions from: Andreas Fuchs, Armin K., Colin Walters,
43c71255
LP
13352 Daniel Mack, Dave Reisner, David Herrmann, Djalal Harouni,
13353 Holger Schurig, Jason A. Donenfeld, Jason St. John, Jasper
13354 St. Pierre, Kay Sievers, Lennart Poettering, Łukasz Stelmach,
13355 Marcel Holtmann, Michael Scherer, Michal Sekletar, Mike
13356 Gilbert, Samuli Suominen, Thomas Bächler, Thomas Hindoe
13357 Paaboel Andersen, Tom Gundersen, Umut Tezduyar Lindskog,
13358 Zbigniew Jędrzejewski-Szmek
13359
ccddd104 13360 — Berlin, 2014-02-24
43c71255 13361
e49b5aad
LP
13362CHANGES WITH 209:
13363
13364 * A new component "systemd-networkd" has been added that can
13365 be used to configure local network interfaces statically or
8b7d0494
JSJ
13366 via DHCP. It is capable of bringing up bridges, VLANs, and
13367 bonding. Currently, no hook-ups for interactive network
4670e9d5 13368 configuration are provided. Use this for your initrd,
8b7d0494
JSJ
13369 container, embedded, or server setup if you need a simple,
13370 yet powerful, network configuration solution. This
4670e9d5 13371 configuration subsystem is quite nifty, as it allows wildcard
1e190502 13372 hotplug matching in interfaces. For example, with a single
4670e9d5 13373 configuration snippet, you can configure that all Ethernet
1e190502
ZJS
13374 interfaces showing up are automatically added to a bridge,
13375 or similar. It supports link-sensing and more.
e49b5aad
LP
13376
13377 * A new tool "systemd-socket-proxyd" has been added which can
4c2413bf 13378 act as a bidirectional proxy for TCP sockets. This is
e49b5aad
LP
13379 useful for adding socket activation support to services that
13380 do not actually support socket activation, including virtual
4c2413bf 13381 machines and the like.
e49b5aad
LP
13382
13383 * Add a new tool to save/restore rfkill state on
13384 shutdown/boot.
13385
8b7d0494
JSJ
13386 * Save/restore state of keyboard backlights in addition to
13387 display backlights on shutdown/boot.
e49b5aad
LP
13388
13389 * udev learned a new SECLABEL{} construct to label device
13390 nodes with a specific security label when they appear. For
4c2413bf 13391 now, only SECLABEL{selinux} is supported, but the syntax is
e49b5aad
LP
13392 prepared for additional security frameworks.
13393
13394 * udev gained a new scheme to configure link-level attributes
13395 from files in /etc/systemd/network/*.link. These files can
8b7d0494 13396 match against MAC address, device path, driver name and type,
4c2413bf 13397 and will apply attributes like the naming policy, link speed,
8b7d0494 13398 MTU, duplex settings, Wake-on-LAN settings, MAC address, MAC
1d3a473b 13399 address assignment policy (randomized, …).
e49b5aad 13400
dfb08b05
ZJS
13401 * The configuration of network interface naming rules for
13402 "permanent interface names" has changed: a new NamePolicy=
13403 setting in the [Link] section of .link files determines the
a8eaaee7 13404 priority of possible naming schemes (onboard, slot, MAC,
dfb08b05
ZJS
13405 path). The default value of this setting is determined by
13406 /usr/lib/net/links/99-default.link. Old
13407 80-net-name-slot.rules udev configuration file has been
13408 removed, so local configuration overriding this file should
ce830873 13409 be adapted to override 99-default.link instead.
dfb08b05 13410
e49b5aad 13411 * When the User= switch is used in a unit file, also
4c2413bf 13412 initialize $SHELL= based on the user database entry.
e49b5aad
LP
13413
13414 * systemd no longer depends on libdbus. All communication is
13415 now done with sd-bus, systemd's low-level bus library
13416 implementation.
13417
13418 * kdbus support has been added to PID 1 itself. When kdbus is
4c2413bf 13419 enabled, this causes PID 1 to set up the system bus and
e49b5aad
LP
13420 enable support for a new ".busname" unit type that
13421 encapsulates bus name activation on kdbus. It works a little
13422 bit like ".socket" units, except for bus names. A new
13423 generator has been added that converts classic dbus1 service
13424 activation files automatically into native systemd .busname
13425 and .service units.
13426
13427 * sd-bus: add a light-weight vtable implementation that allows
13428 defining objects on the bus with a simple static const
13429 vtable array of its methods, signals and properties.
13430
8b7d0494 13431 * systemd will not generate or install static dbus
e49b5aad 13432 introspection data anymore to /usr/share/dbus-1/interfaces,
1e190502 13433 as the precise format of these files is unclear, and
e49b5aad
LP
13434 nothing makes use of it.
13435
13436 * A proxy daemon is now provided to proxy clients connecting
13437 via classic D-Bus AF_UNIX sockets to kdbus, to provide full
13438 compatibility with classic D-Bus.
13439
13440 * A bus driver implementation has been added that supports the
13441 classic D-Bus bus driver calls on kdbus, also for
13442 compatibility purposes.
13443
13444 * A new API "sd-event.h" has been added that implements a
13445 minimal event loop API built around epoll. It provides a
13446 couple of features that direct epoll usage is lacking:
b9761003 13447 prioritization of events, scales to large numbers of timer
e49b5aad
LP
13448 events, per-event timer slack (accuracy), system-wide
13449 coalescing of timer events, exit handlers, watchdog
13450 supervision support using systemd's sd_notify() API, child
13451 process handling.
13452
13453 * A new API "sd-rntl.h" has been added that provides an API
13454 around the route netlink interface of the kernel, similar in
13455 style to "sd-bus.h".
13456
7e95eda5
PF
13457 * A new API "sd-dhcp-client.h" has been added that provides a
13458 small DHCPv4 client-side implementation. This is used by
e49b5aad
LP
13459 "systemd-networkd".
13460
4c2413bf 13461 * There is a new kernel command line option
8b7d0494
JSJ
13462 "systemd.restore_state=0|1". When set to "0", none of the
13463 systemd tools will restore saved runtime state to hardware
13464 devices. More specifically, the rfkill and backlight states
13465 are not restored.
e49b5aad
LP
13466
13467 * The FsckPassNo= compatibility option in mount/service units
13468 has been removed. The fstab generator will now add the
13469 necessary dependencies automatically, and does not require
13470 PID1's support for that anymore.
13471
8b7d0494 13472 * journalctl gained a new switch, --list-boots, that lists
e49b5aad
LP
13473 recent boots with their times and boot IDs.
13474
13475 * The various tools like systemctl, loginctl, timedatectl,
1d3a473b 13476 busctl, systemd-run, … have gained a new switch "-M" to
e49b5aad
LP
13477 connect to a specific, local OS container (as direct
13478 connection, without requiring SSH). This works on any
13479 container that is registered with machined, such as those
13480 created by libvirt-lxc or nspawn.
13481
13482 * systemd-run and systemd-analyze also gained support for "-H"
4c2413bf 13483 to connect to remote hosts via SSH. This is particularly
8b7d0494
JSJ
13484 useful for systemd-run because it enables queuing of jobs
13485 onto remote systems.
e49b5aad
LP
13486
13487 * machinectl gained a new command "login" to open a getty
13488 login in any local container. This works with any container
13489 that is registered with machined (such as those created by
8e420494 13490 libvirt-lxc or nspawn), and which runs systemd inside.
e49b5aad
LP
13491
13492 * machinectl gained a new "reboot" command that may be used to
13493 trigger a reboot on a specific container that is registered
13494 with machined. This works on any container that runs an init
13495 system of some kind.
13496
13497 * systemctl gained a new "list-timers" command to print a nice
13498 listing of installed timer units with the times they elapse
13499 next.
13500
13501 * Alternative reboot() parameters may now be specified on the
13502 "systemctl reboot" command line and are passed to the
13503 reboot() system call.
13504
13505 * systemctl gained a new --job-mode= switch to configure the
13506 mode to queue a job with. This is a more generic version of
8b7d0494 13507 --fail, --irreversible, and --ignore-dependencies, which are
e49b5aad
LP
13508 still available but not advertised anymore.
13509
e49b5aad
LP
13510 * /etc/systemd/system.conf gained new settings to configure
13511 various default timeouts of units, as well as the default
b9761003 13512 start limit interval and burst. These may still be overridden
e49b5aad
LP
13513 within each Unit.
13514
270f1624
LP
13515 * PID1 will now export on the bus profile data of the security
13516 policy upload process (such as the SELinux policy upload to
8e420494 13517 the kernel).
e49b5aad 13518
4670e9d5 13519 * journald: when forwarding logs to the console, include
1e190502
ZJS
13520 timestamps (following the setting in
13521 /sys/module/printk/parameters/time).
e49b5aad
LP
13522
13523 * OnCalendar= in timer units now understands the special
13524 strings "yearly" and "annually". (Both are equivalent)
13525
13526 * The accuracy of timer units is now configurable with the new
13527 AccuracySec= setting. It defaults to 1min.
13528
13529 * A new dependency type JoinsNamespaceOf= has been added that
13530 allows running two services within the same /tmp and network
13531 namespace, if PrivateNetwork= or PrivateTmp= are used.
13532
13533 * A new command "cat" has been added to systemctl. It outputs
13534 the original unit file of a unit, and concatenates the
1e190502
ZJS
13535 contents of additional "drop-in" unit file snippets, so that
13536 the full configuration is shown.
e49b5aad
LP
13537
13538 * systemctl now supports globbing on the various "list-xyz"
13539 commands, like "list-units" or "list-sockets", as well as on
1e190502
ZJS
13540 those commands which take multiple unit names.
13541
13542 * journalctl's --unit= switch gained support for globbing.
e49b5aad
LP
13543
13544 * All systemd daemons now make use of the watchdog logic so
13545 that systemd automatically notices when they hang.
13546
4c2413bf 13547 * If the $container_ttys environment variable is set,
e49b5aad
LP
13548 getty-generator will automatically spawn a getty for each
13549 listed tty. This is useful for container managers to request
13550 login gettys to be spawned on as many ttys as needed.
13551
13552 * %h, %s, %U specifier support is not available anymore when
13553 used in unit files for PID 1. This is because NSS calls are
13554 not safe from PID 1. They stay available for --user
13555 instances of systemd, and as special case for the root user.
13556
e49b5aad
LP
13557 * loginctl gained a new "--no-legend" switch to turn off output
13558 of the legend text.
13559
13560 * The "sd-login.h" API gained three new calls:
13561 sd_session_is_remote(), sd_session_get_remote_user(),
13562 sd_session_get_remote_host() to query information about
13563 remote sessions.
13564
8e420494
LP
13565 * The udev hardware database now also carries vendor/product
13566 information of SDIO devices.
e49b5aad
LP
13567
13568 * The "sd-daemon.h" API gained a new sd_watchdog_enabled() to
13569 determine whether watchdog notifications are requested by
13570 the system manager.
13571
1e190502 13572 * Socket-activated per-connection services now include a
e49b5aad
LP
13573 short description of the connection parameters in the
13574 description.
13575
4c2413bf 13576 * tmpfiles gained a new "--boot" option. When this is not used,
e49b5aad 13577 only lines where the command character is not suffixed with
4670e9d5 13578 "!" are executed. When this option is specified, those
1e190502
ZJS
13579 options are executed too. This partitions tmpfiles
13580 directives into those that can be safely executed at any
13581 time, and those which should be run only at boot (for
13582 example, a line that creates /run/nologin).
e49b5aad 13583
c0c5af00 13584 * A new API "sd-resolve.h" has been added which provides a simple
38b38500 13585 asynchronous wrapper around glibc NSS hostname resolution
e49b5aad 13586 calls, such as getaddrinfo(). In contrast to glibc's
4c2413bf
JE
13587 getaddrinfo_a(), it does not use signals. In contrast to most
13588 other asynchronous name resolution libraries, this one does
13589 not reimplement DNS, but reuses NSS, so that alternate
38b38500 13590 hostname resolution systems continue to work, such as mDNS,
8b7d0494 13591 LDAP, etc. This API is based on libasyncns, but it has been
e49b5aad
LP
13592 cleaned up for inclusion in systemd.
13593
6300b3ec
LP
13594 * The APIs "sd-journal.h", "sd-login.h", "sd-id128.h",
13595 "sd-daemon.h" are no longer found in individual libraries
13596 libsystemd-journal.so, libsystemd-login.so,
13597 libsystemd-id128.so, libsystemd-daemon.so. Instead, we have
8b7d0494
JSJ
13598 merged them into a single library, libsystemd.so, which
13599 provides all symbols. The reason for this is cyclic
e49b5aad 13600 dependencies, as these libraries tend to use each other's
d28315e4 13601 symbols. So far, we have managed to workaround that by linking
6300b3ec
LP
13602 a copy of a good part of our code into each of these
13603 libraries again and again, which, however, makes certain
13604 things hard to do, like sharing static variables. Also, it
13605 substantially increases footprint. With this change, there
13606 is only one library for the basic APIs systemd
13607 provides. Also, "sd-bus.h", "sd-memfd.h", "sd-event.h",
13608 "sd-rtnl.h", "sd-resolve.h", "sd-utf8.h" are found in this
13609 library as well, however are subject to the --enable-kdbus
13610 switch (see below). Note that "sd-dhcp-client.h" is not part
13611 of this library (this is because it only consumes, never
13612 provides, services of/to other APIs). To make the transition
8b7d0494 13613 easy from the separate libraries to the unified one, we
4c2413bf 13614 provide the --enable-compat-libs compile-time switch which
e49b5aad
LP
13615 will generate stub libraries that are compatible with the
13616 old ones but redirect all calls to the new one.
13617
8b7d0494 13618 * All of the kdbus logic and the new APIs "sd-bus.h",
e49b5aad 13619 "sd-memfd.h", "sd-event.h", "sd-rtnl.h", "sd-resolve.h",
8b7d0494
JSJ
13620 and "sd-utf8.h" are compile-time optional via the
13621 "--enable-kdbus" switch, and they are not compiled in by
13622 default. To make use of kdbus, you have to explicitly enable
4c2413bf 13623 the switch. Note however, that neither the kernel nor the
e49b5aad
LP
13624 userspace API for all of this is considered stable yet. We
13625 want to maintain the freedom to still change the APIs for
4c2413bf 13626 now. By specifying this build-time switch, you acknowledge
e49b5aad 13627 that you are aware of the instability of the current
ad42cf73
KS
13628 APIs.
13629
13630 * Also, note that while kdbus is pretty much complete,
e49b5aad 13631 it lacks one thing: proper policy support. This means you
8b7d0494 13632 can build a fully working system with all features; however,
4c2413bf
JE
13633 it will be highly insecure. Policy support will be added in
13634 one of the next releases, at the same time that we will
13635 declare the APIs stable.
e49b5aad 13636
81c7dd89 13637 * When the kernel command line argument "kdbus" is specified,
ad42cf73 13638 systemd will automatically load the kdbus.ko kernel module. At
8b7d0494 13639 this stage of development, it is only useful for testing kdbus
ad42cf73 13640 and should not be used in production. Note: if "--enable-kdbus"
8b7d0494 13641 is specified, and the kdbus.ko kernel module is available, and
ad42cf73
KS
13642 "kdbus" is added to the kernel command line, the entire system
13643 runs with kdbus instead of dbus-daemon, with the above mentioned
13644 problem of missing the system policy enforcement. Also a future
13645 version of kdbus.ko or a newer systemd will not be compatible with
13646 each other, and will unlikely be able to boot the machine if only
13647 one of them is updated.
13648
e49b5aad 13649 * systemctl gained a new "import-environment" command which
4c2413bf 13650 uploads the caller's environment (or parts thereof) into the
e49b5aad
LP
13651 service manager so that it is inherited by services started
13652 by the manager. This is useful to upload variables like
13653 $DISPLAY into the user service manager.
13654
13655 * A new PrivateDevices= switch has been added to service units
13656 which allows running a service with a namespaced /dev
13657 directory that does not contain any device nodes for
4c2413bf 13658 physical devices. More specifically, it only includes devices
8b7d0494 13659 such as /dev/null, /dev/urandom, and /dev/zero which are API
e49b5aad
LP
13660 entry points.
13661
13662 * logind has been extended to support behaviour like VT
13663 switching on seats that do not support a VT. This makes
13664 multi-session available on seats that are not the first seat
13665 (seat0), and on systems where kernel support for VTs has
8b7d0494 13666 been disabled at compile-time.
e49b5aad
LP
13667
13668 * If a process holds a delay lock for system sleep or shutdown
1e190502 13669 and fails to release it in time, we will now log its
e49b5aad
LP
13670 identity. This makes it easier to identify processes that
13671 cause slow suspends or power-offs.
13672
1e190502
ZJS
13673 * When parsing /etc/crypttab, support for a new key-slot=
13674 option as supported by Debian is added. It allows indicating
13675 which LUKS slot to use on disk, speeding up key loading.
e49b5aad 13676
000b1ba5 13677 * The sd_journal_sendv() API call has been checked and
1e190502
ZJS
13678 officially declared to be async-signal-safe so that it may
13679 be invoked from signal handlers for logging purposes.
e49b5aad
LP
13680
13681 * Boot-time status output is now enabled automatically after a
13682 short timeout if boot does not progress, in order to give
8e420494 13683 the user an indication what she or he is waiting for.
1e190502
ZJS
13684
13685 * The boot-time output has been improved to show how much time
13686 remains until jobs expire.
e49b5aad
LP
13687
13688 * The KillMode= switch in service units gained a new possible
8b7d0494 13689 value "mixed". If set, and the unit is shut down, then the
e49b5aad 13690 initial SIGTERM signal is sent only to the main daemon
8e420494 13691 process, while the following SIGKILL signal is sent to
e49b5aad
LP
13692 all remaining processes of the service.
13693
4c2413bf
JE
13694 * When a scope unit is registered, a new property "Controller"
13695 may be set. If set to a valid bus name, systemd will send a
e49b5aad
LP
13696 RequestStop() signal to this name when it would like to shut
13697 down the scope. This may be used to hook manager logic into
13698 the shutdown logic of scope units. Also, scope units may now
8b7d0494 13699 be put in a special "abandoned" state, in which case the
e49b5aad
LP
13700 manager process which created them takes no further
13701 responsibilities for it.
13702
1e190502 13703 * When reading unit files, systemd will now verify
e49b5aad
LP
13704 the access mode of these files, and warn about certain
13705 suspicious combinations. This has been added to make it
13706 easier to track down packaging bugs where unit files are
13707 marked executable or world-writable.
13708
13709 * systemd-nspawn gained a new "--setenv=" switch to set
8b7d0494 13710 container-wide environment variables. The similar option in
1e190502
ZJS
13711 systemd-activate was renamed from "--environment=" to
13712 "--setenv=" for consistency.
e49b5aad
LP
13713
13714 * systemd-nspawn has been updated to create a new kdbus domain
13715 for each container that is invoked, thus allowing each
b9761003 13716 container to have its own set of system and user buses,
8b7d0494 13717 independent of the host.
e49b5aad
LP
13718
13719 * systemd-nspawn gained a new --drop-capability= switch to run
13720 the container with less capabilities than the default. Both
b9761003 13721 --drop-capability= and --capability= now take the special
e49b5aad
LP
13722 string "all" for dropping or keeping all capabilities.
13723
13724 * systemd-nspawn gained new switches for executing containers
13725 with specific SELinux labels set.
13726
13727 * systemd-nspawn gained a new --quiet switch to not generate
13728 any additional output but the container's own console
13729 output.
13730
13731 * systemd-nspawn gained a new --share-system switch to run a
13732 container without PID namespacing enabled.
13733
13734 * systemd-nspawn gained a new --register= switch to control
1e190502 13735 whether the container is registered with systemd-machined or
8e420494 13736 not. This is useful for containers that do not run full
e49b5aad
LP
13737 OS images, but only specific apps.
13738
13739 * systemd-nspawn gained a new --keep-unit which may be used
8b7d0494 13740 when invoked as the only program from a service unit, and
e49b5aad 13741 results in registration of the unit service itself in
1e190502 13742 systemd-machined, instead of a newly opened scope unit.
e49b5aad
LP
13743
13744 * systemd-nspawn gained a new --network-interface= switch for
13745 moving arbitrary interfaces to the container. The new
4c2413bf 13746 --network-veth switch creates a virtual Ethernet connection
8b7d0494
JSJ
13747 between host and container. The new --network-bridge=
13748 switch then allows assigning the host side of this virtual
13749 Ethernet connection to a bridge device.
e49b5aad 13750
6afc95b7
LP
13751 * systemd-nspawn gained a new --personality= switch for
13752 setting the kernel personality for the container. This is
70a44afe 13753 useful when running a 32-bit container on a 64-bit host. A
b8bde116
JE
13754 similar option Personality= is now also available for service
13755 units to use.
6afc95b7 13756
e49b5aad
LP
13757 * logind will now also track a "Desktop" identifier for each
13758 session which encodes the desktop environment of it. This is
13759 useful for desktop environments that want to identify
13760 multiple running sessions of itself easily.
13761
13762 * A new SELinuxContext= setting for service units has been
13763 added that allows setting a specific SELinux execution
13764 context for a service.
13765
13766 * Most systemd client tools will now honour $SYSTEMD_LESS for
13767 settings of the "less" pager. By default, these tools will
8b7d0494
JSJ
13768 override $LESS to allow certain operations to work, such as
13769 jump-to-the-end. With $SYSTEMD_LESS, it is possible to
e49b5aad
LP
13770 influence this logic.
13771
13772 * systemd's "seccomp" hook-up has been changed to make use of
13773 the libseccomp library instead of using its own
13774 implementation. This has benefits for portability among
13775 other things.
13776
4c2413bf 13777 * For usage together with SystemCallFilter=, a new
8b7d0494 13778 SystemCallErrorNumber= setting has been introduced that
b8bde116
JE
13779 allows configuration of a system error number to be returned
13780 on filtered system calls, instead of immediately killing the
e49b5aad
LP
13781 process. Also, SystemCallArchitectures= has been added to
13782 limit access to system calls of a particular architecture
13783 (in order to turn off support for unused secondary
4c2413bf 13784 architectures). There is also a global
8b7d0494 13785 SystemCallArchitectures= setting in system.conf now to turn
e49b5aad
LP
13786 off support for non-native system calls system-wide.
13787
210054d7
KS
13788 * systemd requires a kernel with a working name_to_handle_at(),
13789 please see the kernel config requirements in the README file.
13790
e49b5aad
LP
13791 Contributions from: Adam Williamson, Alex Jia, Anatol Pomozov,
13792 Ansgar Burchardt, AppleBloom, Auke Kok, Bastien Nocera,
13793 Chengwei Yang, Christian Seiler, Colin Guthrie, Colin Walters,
13794 Cristian Rodríguez, Daniel Buch, Daniele Medri, Daniel J
13795 Walsh, Daniel Mack, Dan McGee, Dave Reisner, David Coppa,
13796 David Herrmann, David Strauss, Djalal Harouni, Dmitry Pisklov,
13797 Elia Pinto, Florian Weimer, George McCollister, Goffredo
13798 Baroncelli, Greg Kroah-Hartman, Hendrik Brueckner, Igor
13799 Zhbanov, Jan Engelhardt, Jan Janssen, Jason A. Donenfeld,
13800 Jason St. John, Jasper St. Pierre, Jóhann B. Guðmundsson, Jose
13801 Ignacio Naranjo, Karel Zak, Kay Sievers, Kristian Høgsberg,
13802 Lennart Poettering, Lubomir Rintel, Lukas Nykryn, Lukasz
13803 Skalski, Łukasz Stelmach, Luke Shumaker, Mantas Mikulėnas,
13804 Marc-Antoine Perennou, Marcel Holtmann, Marcos Felipe Rasia de
13805 Mello, Marko Myllynen, Martin Pitt, Matthew Monaco, Michael
13806 Marineau, Michael Scherer, Michał Górny, Michal Sekletar,
13807 Michele Curti, Oleksii Shevchuk, Olivier Brunel, Patrik Flykt,
13808 Pavel Holica, Raudi, Richard Marko, Ronny Chevalier, Sébastien
13809 Luttringer, Sergey Ptashnick, Shawn Landden, Simon Peeters,
13810 Stefan Beller, Susant Sahani, Sylvain Plantefeve, Sylvia Else,
13811 Tero Roponen, Thomas Bächler, Thomas Hindoe Paaboel Andersen,
13812 Tom Gundersen, Umut Tezduyar Lindskog, Unai Uribarri, Václav
13813 Pavlín, Vincent Batts, WaLyong Cho, William Giokas, Yang
13814 Zhiyong, Yin Kangkai, Yuxuan Shui, Zbigniew Jędrzejewski-Szmek
13815
ccddd104 13816 — Berlin, 2014-02-20
e49b5aad 13817
cd4010b3
LP
13818CHANGES WITH 208:
13819
13820 * logind has gained support for facilitating privileged input
13821 and drm device access for unprivileged clients. This work is
13822 useful to allow Wayland display servers (and similar
13823 programs, such as kmscon) to run under the user's ID and
13824 access input and drm devices which are normally
13825 protected. When this is used (and the kernel is new enough)
13826 logind will "mute" IO on the file descriptors passed to
13827 Wayland as long as it is in the background and "unmute" it
13828 if it returns into the foreground. This allows secure
13829 session switching without allowing background sessions to
13830 eavesdrop on input and display data. This also introduces
13831 session switching support if VT support is turned off in the
13832 kernel, and on seats that are not seat0.
13833
13834 * A new kernel command line option luks.options= is understood
06b643e7 13835 now which allows specifying LUKS options for usage for LUKS
cd4010b3
LP
13836 encrypted partitions specified with luks.uuid=.
13837
13838 * tmpfiles.d(5) snippets may now use specifier expansion in
13839 path names. More specifically %m, %b, %H, %v, are now
13840 replaced by the local machine id, boot id, hostname, and
13841 kernel version number.
13842
13843 * A new tmpfiles.d(5) command "m" has been introduced which
13844 may be used to change the owner/group/access mode of a file
d28315e4 13845 or directory if it exists, but do nothing if it does not.
cd4010b3
LP
13846
13847 * This release removes high-level support for the
13848 MemorySoftLimit= cgroup setting. The underlying kernel
13849 cgroup attribute memory.soft_limit= is currently badly
13850 designed and likely to be removed from the kernel API in its
d28315e4 13851 current form, hence we should not expose it for now.
cd4010b3
LP
13852
13853 * The memory.use_hierarchy cgroup attribute is now enabled for
13854 all cgroups systemd creates in the memory cgroup
13855 hierarchy. This option is likely to be come the built-in
cc98b302
TH
13856 default in the kernel anyway, and the non-hierarchical mode
13857 never made much sense in the intrinsically hierarchical
cd4010b3
LP
13858 cgroup system.
13859
13860 * A new field _SYSTEMD_SLICE= is logged along with all journal
13861 messages containing the slice a message was generated
13862 from. This is useful to allow easy per-customer filtering of
13863 logs among other things.
13864
13865 * systemd-journald will no longer adjust the group of journal
13866 files it creates to the "systemd-journal" group. Instead we
13867 rely on the journal directory to be owned by the
13868 "systemd-journal" group, and its setgid bit set, so that the
13869 kernel file system layer will automatically enforce that
13870 journal files inherit this group assignment. The reason for
13871 this change is that we cannot allow NSS look-ups from
13872 journald which would be necessary to resolve
13873 "systemd-journal" to a numeric GID, because this might
13874 create deadlocks if NSS involves synchronous queries to
13875 other daemons (such as nscd, or sssd) which in turn are
13876 logging clients of journald and might block on it, which
13877 would then dead lock. A tmpfiles.d(5) snippet included in
13878 systemd will make sure the setgid bit and group are
13879 properly set on the journal directory if it exists on every
13880 boot. However, we recommend adjusting it manually after
13881 upgrades too (or from RPM scriptlets), so that the change is
13882 not delayed until next reboot.
13883
13884 * Backlight and random seed files in /var/lib/ have moved into
13885 the /var/lib/systemd/ directory, in order to centralize all
13886 systemd generated files in one directory.
13887
13888 * Boot time performance measurements (as displayed by
13889 "systemd-analyze" for example) will now read ACPI 5.0 FPDT
13890 performance information if that's available to determine how
13891 much time BIOS and boot loader initialization required. With
13892 a sufficiently new BIOS you hence no longer need to boot
13893 with Gummiboot to get access to such information.
13894
13895 Contributions from: Andrey Borzenkov, Chen Jie, Colin Walters,
13896 Cristian Rodríguez, Dave Reisner, David Herrmann, David
13897 Mackey, David Strauss, Eelco Dolstra, Evan Callicoat, Gao
13898 feng, Harald Hoyer, Jimmie Tauriainen, Kay Sievers, Lennart
13899 Poettering, Lukas Nykryn, Mantas Mikulėnas, Martin Pitt,
13900 Michael Scherer, Michał Górny, Mike Gilbert, Patrick McCarty,
13901 Sebastian Ott, Tom Gundersen, Zbigniew Jędrzejewski-Szmek
13902
ccddd104 13903 — Berlin, 2013-10-02
cd4010b3 13904
4f0be680
LP
13905CHANGES WITH 207:
13906
13907 * The Restart= option for services now understands a new
f3a165b0 13908 on-watchdog setting, which will restart the service
4f0be680
LP
13909 automatically if the service stops sending out watchdog keep
13910 alive messages (as configured with WatchdogSec=).
13911
13912 * The getty generator (which is responsible for bringing up a
13913 getty on configured serial consoles) will no longer only
13914 start a getty on the primary kernel console but on all
13915 others, too. This makes the order in which console= is
13916 specified on the kernel command line less important.
13917
13918 * libsystemd-logind gained a new sd_session_get_vt() call to
13919 retrieve the VT number of a session.
13920
13921 * If the option "tries=0" is set for an entry of /etc/crypttab
13922 its passphrase is queried indefinitely instead of any
13923 maximum number of tries.
13924
13925 * If a service with a configure PID file terminates its PID
13926 file will now be removed automatically if it still exists
13927 afterwards. This should put an end to stale PID files.
13928
13929 * systemd-run will now also take relative binary path names
13930 for execution and no longer insists on absolute paths.
13931
13932 * InaccessibleDirectories= and ReadOnlyDirectories= now take
13933 paths that are optionally prefixed with "-" to indicate that
d28315e4 13934 it should not be considered a failure if they do not exist.
4f0be680 13935
f3a165b0
KS
13936 * journalctl -o (and similar commands) now understands a new
13937 output mode "short-precise", it is similar to "short" but
4f0be680
LP
13938 shows timestamps with usec accuracy.
13939
13940 * The option "discard" (as known from Debian) is now
13941 synonymous to "allow-discards" in /etc/crypttab. In fact,
387abf80 13942 "discard" is preferred now (since it is easier to remember
4f0be680
LP
13943 and type).
13944
f3a165b0 13945 * Some licensing clean-ups were made, so that more code is now
4f0be680
LP
13946 LGPL-2.1 licensed than before.
13947
13948 * A minimal tool to save/restore the display backlight
13949 brightness across reboots has been added. It will store the
f3a165b0 13950 backlight setting as late as possible at shutdown, and
4f0be680
LP
13951 restore it as early as possible during reboot.
13952
13953 * A logic to automatically discover and enable home and swap
13954 partitions on GPT disks has been added. With this in place
13955 /etc/fstab becomes optional for many setups as systemd can
13956 discover certain partitions located on the root disk
13957 automatically. Home partitions are recognized under their
13958 GPT type ID 933ac7e12eb44f13b8440e14e2aef915. Swap
13959 partitions are recognized under their GPT type ID
13960 0657fd6da4ab43c484e50933c84b4f4f.
13961
13962 * systemd will no longer pass any environment from the kernel
13963 or initrd to system services. If you want to set an
13964 environment for all services, do so via the kernel command
13965 line systemd.setenv= assignment.
13966
387abf80
LP
13967 * The systemd-sysctl tool no longer natively reads the file
13968 /etc/sysctl.conf. If desired, the file should be symlinked
13969 from /etc/sysctl.d/99-sysctl.conf. Apart from providing
13970 legacy support by a symlink rather than built-in code, it
13971 also makes the otherwise hidden order of application of the
13972 different files visible. (Note that this partly reverts to a
13973 pre-198 application order of sysctl knobs!)
04bf3c1a 13974
4f0be680
LP
13975 * The "systemctl set-log-level" and "systemctl dump" commands
13976 have been moved to systemd-analyze.
13977
13978 * systemd-run learned the new --remain-after-exit switch,
13979 which causes the scope unit not to be cleaned up
13980 automatically after the process terminated.
13981
13982 * tmpfiles learned a new --exclude-prefix= switch to exclude
13983 certain paths from operation.
13984
13985 * journald will now automatically flush all messages to disk
f47ad593
ZJS
13986 as soon as a message at the log level CRIT, ALERT or EMERG
13987 is received.
4f0be680
LP
13988
13989 Contributions from: Andrew Cook, Brandon Philips, Christian
13990 Hesse, Christoph Junghans, Colin Walters, Daniel Schaal,
13991 Daniel Wallace, Dave Reisner, David Herrmann, Gao feng, George
13992 McCollister, Giovanni Campagna, Hannes Reinecke, Harald Hoyer,
13993 Herczeg Zsolt, Holger Hans Peter Freyther, Jan Engelhardt,
13994 Jesper Larsen, Kay Sievers, Khem Raj, Lennart Poettering,
13995 Lukas Nykryn, Maciej Wereski, Mantas Mikulėnas, Marcel
13996 Holtmann, Martin Pitt, Michael Biebl, Michael Marineau,
13997 Michael Scherer, Michael Stapelberg, Michal Sekletar, Michał
13998 Górny, Olivier Brunel, Ondrej Balaz, Ronny Chevalier, Shawn
13999 Landden, Steven Hiscocks, Thomas Bächler, Thomas Hindoe
14000 Paaboel Andersen, Tom Gundersen, Umut Tezduyar, WANG Chao,
14001 William Giokas, Zbigniew Jędrzejewski-Szmek
14002
ccddd104 14003 — Berlin, 2013-09-13
4f0be680 14004
408f281b
LP
14005CHANGES WITH 206:
14006
14007 * The documentation has been updated to cover the various new
14008 concepts introduced with 205.
14009
14010 * Unit files now understand the new %v specifier which
14011 resolves to the kernel version string as returned by "uname
14012 -r".
14013
14014 * systemctl now supports filtering the unit list output by
14015 load state, active state and sub state, using the new
33b521be 14016 --state= parameter.
408f281b
LP
14017
14018 * "systemctl status" will now show the results of the
14019 condition checks (like ConditionPathExists= and similar) of
14020 the last start attempts of the unit. They are also logged to
14021 the journal.
14022
14023 * "journalctl -b" may now be used to look for boot output of a
14024 specific boot. Try "journalctl -b -1" for the previous boot,
14025 but the syntax is substantially more powerful.
14026
14027 * "journalctl --show-cursor" has been added which prints the
14028 cursor string the last shown log line. This may then be used
14029 with the new "journalctl --after-cursor=" switch to continue
14030 browsing logs from that point on.
14031
14032 * "journalctl --force" may now be used to force regeneration
14033 of an FSS key.
14034
251cc819
LP
14035 * Creation of "dead" device nodes has been moved from udev
14036 into kmod and tmpfiles. Previously, udev would read the kmod
14037 databases to pre-generate dead device nodes based on meta
14038 information contained in kernel modules, so that these would
14039 be auto-loaded on access rather then at boot. As this
d28315e4 14040 does not really have much to do with the exposing actual
251cc819
LP
14041 kernel devices to userspace this has always been slightly
14042 alien in the udev codebase. Following the new scheme kmod
14043 will now generate a runtime snippet for tmpfiles from the
14044 module meta information and it now is tmpfiles' job to the
14045 create the nodes. This also allows overriding access and
14046 other parameters for the nodes using the usual tmpfiles
14047 facilities. As side effect this allows us to remove the
14048 CAP_SYS_MKNOD capability bit from udevd entirely.
14049
14050 * logind's device ACLs may now be applied to these "dead"
14051 devices nodes too, thus finally allowing managed access to
ce830873 14052 devices such as /dev/snd/sequencer without loading the
251cc819 14053 backing module right-away.
408f281b
LP
14054
14055 * A new RPM macro has been added that may be used to apply
14056 tmpfiles configuration during package installation.
14057
14058 * systemd-detect-virt and ConditionVirtualization= now can
14059 detect User-Mode-Linux machines (UML).
14060
251cc819
LP
14061 * journald will now implicitly log the effective capabilities
14062 set of processes in the message metadata.
408f281b
LP
14063
14064 * systemd-cryptsetup has gained support for TrueCrypt volumes.
14065
14066 * The initrd interface has been simplified (more specifically,
14067 support for passing performance data via environment
14068 variables and fsck results via files in /run has been
14069 removed). These features were non-essential, and are
14070 nowadays available in a much nicer way by having systemd in
14071 the initrd serialize its state and have the hosts systemd
14072 deserialize it again.
14073
28f5c779
KS
14074 * The udev "keymap" data files and tools to apply keyboard
14075 specific mappings of scan to key codes, and force-release
14076 scan code lists have been entirely replaced by a udev
14077 "keyboard" builtin and a hwdb data file.
408f281b 14078
251cc819
LP
14079 * systemd will now honour the kernel's "quiet" command line
14080 argument also during late shutdown, resulting in a
14081 completely silent shutdown when used.
14082
14083 * There's now an option to control the SO_REUSEPORT socket
14084 option in .socket units.
14085
14086 * Instance units will now automatically get a per-template
14087 subslice of system.slice unless something else is explicitly
14088 configured. For example, instances of sshd@.service will now
14089 implicitly be placed in system-sshd.slice rather than
14090 system.slice as before.
14091
14092 * Test coverage support may now be enabled at build time.
14093
14094 Contributions from: Dave Reisner, Frederic Crozat, Harald
14095 Hoyer, Holger Hans Peter Freyther, Jan Engelhardt, Jan
14096 Janssen, Jason St. John, Jesper Larsen, Kay Sievers, Lennart
14097 Poettering, Lukas Nykryn, Maciej Wereski, Martin Pitt, Michael
14098 Olbrich, Ramkumar Ramachandra, Ross Lagerwall, Shawn Landden,
14099 Thomas H.P. Andersen, Tom Gundersen, Tomasz Torcz, William
14100 Giokas, Zbigniew Jędrzejewski-Szmek
14101
ccddd104 14102 — Berlin, 2013-07-23
4f0be680 14103
00aa832b
LP
14104CHANGES WITH 205:
14105
14106 * Two new unit types have been introduced:
14107
14108 Scope units are very similar to service units, however, are
ccddd104 14109 created out of pre-existing processes — instead of PID 1
00aa832b
LP
14110 forking off the processes. By using scope units it is
14111 possible for system services and applications to group their
14112 own child processes (worker processes) in a powerful way
14113 which then maybe used to organize them, or kill them
14114 together, or apply resource limits on them.
14115
14116 Slice units may be used to partition system resources in an
cc98b302 14117 hierarchical fashion and then assign other units to them. By
00aa832b
LP
14118 default there are now three slices: system.slice (for all
14119 system services), user.slice (for all user sessions),
14120 machine.slice (for VMs and containers).
14121
14122 Slices and scopes have been introduced primarily in
14123 context of the work to move cgroup handling to a
14124 single-writer scheme, where only PID 1
14125 creates/removes/manages cgroups.
14126
14127 * There's a new concept of "transient" units. In contrast to
14128 normal units these units are created via an API at runtime,
14129 not from configuration from disk. More specifically this
14130 means it is now possible to run arbitrary programs as
14131 independent services, with all execution parameters passed
14132 in via bus APIs rather than read from disk. Transient units
14133 make systemd substantially more dynamic then it ever was,
14134 and useful as a general batch manager.
14135
14136 * logind has been updated to make use of scope and slice units
14137 for managing user sessions. As a user logs in he will get
14138 his own private slice unit, to which all sessions are added
14139 as scope units. We also added support for automatically
14140 adding an instance of user@.service for the user into the
14141 slice. Effectively logind will no longer create cgroup
14142 hierarchies on its own now, it will defer entirely to PID 1
14143 for this by means of scope, service and slice units. Since
14144 user sessions this way become entities managed by PID 1
14145 the output of "systemctl" is now a lot more comprehensive.
14146
14147 * A new mini-daemon "systemd-machined" has been added which
14148 may be used by virtualization managers to register local
14149 VMs/containers. nspawn has been updated accordingly, and
14150 libvirt will be updated shortly. machined will collect a bit
14151 of meta information about the VMs/containers, and assign
14152 them their own scope unit (see above). The collected
14153 meta-data is then made available via the "machinectl" tool,
14154 and exposed in "ps" and similar tools. machined/machinectl
14155 is compile-time optional.
14156
14157 * As discussed earlier, the low-level cgroup configuration
14158 options ControlGroup=, ControlGroupModify=,
14159 ControlGroupPersistent=, ControlGroupAttribute= have been
14160 removed. Please use high-level attribute settings instead as
14161 well as slice units.
14162
14163 * A new bus call SetUnitProperties() has been added to alter
14164 various runtime parameters of a unit. This is primarily
14165 useful to alter cgroup parameters dynamically in a nice way,
14166 but will be extended later on to make more properties
14167 modifiable at runtime. systemctl gained a new set-properties
14168 command that wraps this call.
14169
14170 * A new tool "systemd-run" has been added which can be used to
14171 run arbitrary command lines as transient services or scopes,
14172 while configuring a number of settings via the command
14173 line. This tool is currently very basic, however already
14174 very useful. We plan to extend this tool to even allow
14175 queuing of execution jobs with time triggers from the
14176 command line, similar in fashion to "at".
14177
14178 * nspawn will now inform the user explicitly that kernels with
14179 audit enabled break containers, and suggest the user to turn
14180 off audit.
14181
14182 * Support for detecting the IMA and AppArmor security
14183 frameworks with ConditionSecurity= has been added.
14184
14185 * journalctl gained a new "-k" switch for showing only kernel
1fda0ab5
ZJS
14186 messages, mimicking dmesg output; in addition to "--user"
14187 and "--system" switches for showing only user's own logs
14188 and system logs.
00aa832b
LP
14189
14190 * systemd-delta can now show information about drop-in
14191 snippets extending unit files.
14192
14193 * libsystemd-bus has been substantially updated but is still
14194 not available as public API.
14195
14196 * systemd will now look for the "debug" argument on the kernel
499b604b 14197 command line and enable debug logging, similar to what
00aa832b
LP
14198 "systemd.log_level=debug" already did before.
14199
14200 * "systemctl set-default", "systemctl get-default" has been
14201 added to configure the default.target symlink, which
14202 controls what to boot into by default.
14203
1fda0ab5
ZJS
14204 * "systemctl set-log-level" has been added as a convenient
14205 way to raise and lower systemd logging threshold.
14206
00aa832b
LP
14207 * "systemd-analyze plot" will now show the time the various
14208 generators needed for execution, as well as information
14209 about the unit file loading.
14210
00aa832b
LP
14211 * libsystemd-journal gained a new sd_journal_open_files() call
14212 for opening specific journal files. journactl also gained a
14213 new switch to expose this new functionality. Previously we
14214 only supported opening all files from a directory, or all
14215 files from the system, as opening individual files only is
14216 racy due to journal file rotation.
14217
14218 * systemd gained the new DefaultEnvironment= setting in
14219 /etc/systemd/system.conf to set environment variables for
14220 all services.
14221
14222 * If a privileged process logs a journal message with the
14223 OBJECT_PID= field set, then journald will automatically
14224 augment this with additional OBJECT_UID=, OBJECT_GID=,
1d3a473b 14225 OBJECT_COMM=, OBJECT_EXE=, … fields. This is useful if
00aa832b
LP
14226 system services want to log events about specific client
14227 processes. journactl/systemctl has been updated to make use
14228 of this information if all log messages regarding a specific
14229 unit is requested.
14230
14231 Contributions from: Auke Kok, Chengwei Yang, Colin Walters,
14232 Cristian Rodríguez, Daniel Albers, Daniel Wallace, Dave
14233 Reisner, David Coppa, David King, David Strauss, Eelco
14234 Dolstra, Gabriel de Perthuis, Harald Hoyer, Jan Alexander
14235 Steffens, Jan Engelhardt, Jan Janssen, Jason St. John, Johan
14236 Heikkilä, Karel Zak, Karol Lewandowski, Kay Sievers, Lennart
14237 Poettering, Lukas Nykryn, Mantas Mikulėnas, Marius Vollmer,
14238 Martin Pitt, Michael Biebl, Michael Olbrich, Michael Tremer,
14239 Michal Schmidt, Michał Bartoszkiewicz, Nirbheek Chauhan,
14240 Pierre Neidhardt, Ross Burton, Ross Lagerwall, Sean McGovern,
14241 Thomas Hindoe Paaboel Andersen, Tom Gundersen, Umut Tezduyar,
14242 Václav Pavlín, Zachary Cook, Zbigniew Jędrzejewski-Szmek,
14243 Łukasz Stelmach, 장동준
14244
606c24e3
LP
14245CHANGES WITH 204:
14246
14247 * The Python bindings gained some minimal support for the APIs
14248 exposed by libsystemd-logind.
14249
14250 * ConditionSecurity= gained support for detecting SMACK. Since
14251 this condition already supports SELinux and AppArmor we only
14252 miss IMA for this. Patches welcome!
14253
14254 Contributions from: Karol Lewandowski, Lennart Poettering,
14255 Zbigniew Jędrzejewski-Szmek
14256
2f3fcf85
LP
14257CHANGES WITH 203:
14258
14259 * systemd-nspawn will now create /etc/resolv.conf if
14260 necessary, before bind-mounting the host's file onto it.
14261
14262 * systemd-nspawn will now store meta information about a
14263 container on the container's cgroup as extended attribute
14264 fields, including the root directory.
14265
14266 * The cgroup hierarchy has been reworked in many ways. All
14267 objects any of the components systemd creates in the cgroup
b82eed9a 14268 tree are now suffixed. More specifically, user sessions are
2f3fcf85
LP
14269 now placed in cgroups suffixed with ".session", users in
14270 cgroups suffixed with ".user", and nspawn containers in
14271 cgroups suffixed with ".nspawn". Furthermore, all cgroup
14272 names are now escaped in a simple scheme to avoid collision
14273 of userspace object names with kernel filenames. This work
14274 is preparation for making these objects relocatable in the
14275 cgroup tree, in order to allow easy resource partitioning of
14276 these objects without causing naming conflicts.
14277
14278 * systemctl list-dependencies gained the new switches
14279 --plain, --reverse, --after and --before.
14280
14281 * systemd-inhibit now shows the process name of processes that
14282 have taken an inhibitor lock.
14283
14284 * nss-myhostname will now also resolve "localhost"
14285 implicitly. This makes /etc/hosts an optional file and
14286 nicely handles that on IPv6 ::1 maps to both "localhost" and
14287 the local hostname.
14288
14289 * libsystemd-logind.so gained a new call
14290 sd_get_machine_names() to enumerate running containers and
14291 VMs (currently only supported by very new libvirt and
14292 nspawn). sd_login_monitor can now be used to watch
14293 VMs/containers coming and going.
14294
14295 * .include is not allowed recursively anymore, and only in
14296 unit files. Usually it is better to use drop-in snippets in
14297 .d/*.conf anyway, as introduced with systemd 198.
14298
14299 * systemd-analyze gained a new "critical-chain" command that
14300 determines the slowest chain of units run during system
14301 boot-up. It is very useful for tracking down where
14302 optimizing boot time is the most beneficial.
14303
14304 * systemd will no longer allow manipulating service paths in
14305 the name=systemd:/system cgroup tree using ControlGroup= in
14306 units. (But is still fine with it in all other dirs.)
14307
14308 * There's a new systemd-nspawn@.service service file that may
14309 be used to easily run nspawn containers as system
14310 services. With the container's root directory in
14311 /var/lib/container/foobar it is now sufficient to run
14312 "systemctl start systemd-nspawn@foobar.service" to boot it.
14313
14314 * systemd-cgls gained a new parameter "--machine" to list only
14315 the processes within a certain container.
14316
14317 * ConditionSecurity= now can check for "apparmor". We still
14318 are lacking checks for SMACK and IMA for this condition
14319 check though. Patches welcome!
14320
14321 * A new configuration file /etc/systemd/sleep.conf has been
14322 added that may be used to configure which kernel operation
14323 systemd is supposed to execute when "suspend", "hibernate"
14324 or "hybrid-sleep" is requested. This makes the new kernel
14325 "freeze" state accessible to the user.
14326
14327 * ENV{SYSTEMD_WANTS} in udev rules will now implicitly escape
14328 the passed argument if applicable.
14329
14330 Contributions from: Auke Kok, Colin Guthrie, Colin Walters,
14331 Cristian Rodríguez, Daniel Buch, Daniel Wallace, Dave Reisner,
14332 Evangelos Foutras, Greg Kroah-Hartman, Harald Hoyer, Josh
14333 Triplett, Kay Sievers, Lennart Poettering, Lukas Nykryn,
14334 MUNEDA Takahiro, Mantas Mikulėnas, Mirco Tischler, Nathaniel
14335 Chen, Nirbheek Chauhan, Ronny Chevalier, Ross Lagerwall, Tom
14336 Gundersen, Umut Tezduyar, Ville Skyttä, Zbigniew
14337 Jędrzejewski-Szmek
14338
ef3b5246
LP
14339CHANGES WITH 202:
14340
14341 * The output of 'systemctl list-jobs' got some polishing. The
14342 '--type=' argument may now be passed more than once. A new
14343 command 'systemctl list-sockets' has been added which shows
14344 a list of kernel sockets systemd is listening on with the
14345 socket units they belong to, plus the units these socket
14346 units activate.
14347
14348 * The experimental libsystemd-bus library got substantial
14349 updates to work in conjunction with the (also experimental)
14350 kdbus kernel project. It works well enough to exchange
14351 messages with some sophistication. Note that kdbus is not
14352 ready yet, and the library is mostly an elaborate test case
14353 for now, and not installable.
14354
14355 * systemd gained a new unit 'systemd-static-nodes.service'
14356 that generates static device nodes earlier during boot, and
14357 can run in conjunction with udev.
14358
14359 * libsystemd-login gained a new call sd_pid_get_user_unit()
14360 to retrieve the user systemd unit a process is running
14361 in. This is useful for systems where systemd is used as
14362 session manager.
14363
14364 * systemd-nspawn now places all containers in the new /machine
14365 top-level cgroup directory in the name=systemd
14366 hierarchy. libvirt will soon do the same, so that we get a
14367 uniform separation of /system, /user and /machine for system
14368 services, user processes and containers/virtual
14369 machines. This new cgroup hierarchy is also useful to stick
14370 stable names to specific container instances, which can be
7c04ad2d 14371 recognized later this way (this name may be controlled
ef3b5246
LP
14372 via systemd-nspawn's new -M switch). libsystemd-login also
14373 gained a new call sd_pid_get_machine_name() to retrieve the
14374 name of the container/VM a specific process belongs to.
14375
14376 * bootchart can now store its data in the journal.
14377
14378 * libsystemd-journal gained a new call
14379 sd_journal_add_conjunction() for AND expressions to the
14380 matching logic. This can be used to express more complex
14381 logical expressions.
14382
14383 * journactl can now take multiple --unit= and --user-unit=
14384 switches.
14385
14386 * The cryptsetup logic now understands the "luks.key=" kernel
14387 command line switch for specifying a file to read the
7c04ad2d 14388 decryption key from. Also, if a configured key file is not
ef3b5246
LP
14389 found the tool will now automatically fall back to prompting
14390 the user.
14391
cbeabcfb
ZJS
14392 * Python systemd.journal module was updated to wrap recently
14393 added functions from libsystemd-journal. The interface was
14394 changed to bring the low level interface in s.j._Reader
14395 closer to the C API, and the high level interface in
14396 s.j.Reader was updated to wrap and convert all data about
14397 an entry.
14398
ef3b5246
LP
14399 Contributions from: Anatol Pomozov, Auke Kok, Harald Hoyer,
14400 Henrik Grindal Bakken, Josh Triplett, Kay Sievers, Lennart
14401 Poettering, Lukas Nykryn, Mantas Mikulėnas Marius Vollmer,
14402 Martin Jansa, Martin Pitt, Michael Biebl, Michal Schmidt,
14403 Mirco Tischler, Pali Rohar, Simon Peeters, Steven Hiscocks,
14404 Tom Gundersen, Zbigniew Jędrzejewski-Szmek
14405
d3a86981
LP
14406CHANGES WITH 201:
14407
14408 * journalctl --update-catalog now understands a new --root=
14409 option to operate on catalogs found in a different root
14410 directory.
14411
14412 * During shutdown after systemd has terminated all running
14413 services a final killing loop kills all remaining left-over
14414 processes. We will now print the name of these processes
14415 when we send SIGKILL to them, since this usually indicates a
14416 problem.
14417
14418 * If /etc/crypttab refers to password files stored on
14419 configured mount points automatic dependencies will now be
14420 generated to ensure the specific mount is established first
14421 before the key file is attempted to be read.
14422
14423 * 'systemctl status' will now show information about the
14424 network sockets a socket unit is listening on.
14425
14426 * 'systemctl status' will also shown information about any
14427 drop-in configuration file for units. (Drop-In configuration
14428 files in this context are files such as
5ada98cd 14429 /etc/systemd/system/foobar.service.d/*.conf)
d3a86981
LP
14430
14431 * systemd-cgtop now optionally shows summed up CPU times of
14432 cgroups. Press '%' while running cgtop to switch between
14433 percentage and absolute mode. This is useful to determine
14434 which cgroups use up the most CPU time over the entire
14435 runtime of the system. systemd-cgtop has also been updated
14436 to be 'pipeable' for processing with further shell tools.
14437
14438 * 'hostnamectl set-hostname' will now allow setting of FQDN
14439 hostnames.
14440
14441 * The formatting and parsing of time span values has been
14442 changed. The parser now understands fractional expressions
14443 such as "5.5h". The formatter will now output fractional
14444 expressions for all time spans under 1min, i.e. "5.123456s"
14445 rather than "5s 123ms 456us". For time spans under 1s
14446 millisecond values are shown, for those under 1ms
14447 microsecond values are shown. This should greatly improve
14448 all time-related output of systemd.
14449
14450 * libsystemd-login and libsystemd-journal gained new
14451 functions for querying the poll() events mask and poll()
14452 timeout value for integration into arbitrary event
14453 loops.
14454
14455 * localectl gained the ability to list available X11 keymaps
14456 (models, layouts, variants, options).
14457
14458 * 'systemd-analyze dot' gained the ability to filter for
14459 specific units via shell-style globs, to create smaller,
d28315e4 14460 more useful graphs. I.e. it is now possible to create simple
d3a86981
LP
14461 graphs of all the dependencies between only target units, or
14462 of all units that Avahi has dependencies with.
14463
14464 Contributions from: Cristian Rodríguez, Dr. Tilmann Bubeck,
14465 Harald Hoyer, Holger Hans Peter Freyther, Kay Sievers, Kelly
14466 Anderson, Koen Kooi, Lennart Poettering, Maksim Melnikau,
14467 Marc-Antoine Perennou, Marius Vollmer, Martin Pitt, Michal
14468 Schmidt, Oleksii Shevchuk, Ronny Chevalier, Simon McVittie,
14469 Steven Hiscocks, Thomas Weißschuh, Umut Tezduyar, Václav
14470 Pavlín, Zbigniew Jędrzejewski-Szmek, Łukasz Stelmach
14471
9ca3c17f
LP
14472CHANGES WITH 200:
14473
14474 * The boot-time readahead implementation for rotating media
14475 will now read the read-ahead data in multiple passes which
14476 consist of all read requests made in equidistant time
14477 intervals. This means instead of strictly reading read-ahead
14478 data in its physical order on disk we now try to find a
14479 middle ground between physical and access time order.
14480
14481 * /etc/os-release files gained a new BUILD_ID= field for usage
14482 on operating systems that provide continuous builds of OS
14483 images.
14484
14485 Contributions from: Auke Kok, Eelco Dolstra, Kay Sievers,
14486 Lennart Poettering, Lukas Nykryn, Martin Pitt, Václav Pavlín
14487 William Douglas, Zbigniew Jędrzejewski-Szmek
14488
35911459
LP
14489CHANGES WITH 199:
14490
14491 * systemd-python gained an API exposing libsystemd-daemon.
14492
14493 * The SMACK setup logic gained support for uploading CIPSO
14494 security policy.
14495
14496 * Behaviour of PrivateTmp=, ReadWriteDirectories=,
14497 ReadOnlyDirectories= and InaccessibleDirectories= has
14498 changed. The private /tmp and /var/tmp directories are now
14499 shared by all processes of a service (which means
14500 ExecStartPre= may now leave data in /tmp that ExecStart= of
14501 the same service can still access). When a service is
14502 stopped its temporary directories are immediately deleted
a87197f5 14503 (normal clean-up with tmpfiles is still done in addition to
35911459
LP
14504 this though).
14505
14506 * By default, systemd will now set a couple of sysctl
14507 variables in the kernel: the safe sysrq options are turned
14508 on, IP route verification is turned on, and source routing
14509 disabled. The recently added hardlink and softlink
14510 protection of the kernel is turned on. These settings should
14511 be reasonably safe, and good defaults for all new systems.
14512
14513 * The predictable network naming logic may now be turned off
a87197f5 14514 with a new kernel command line switch: net.ifnames=0.
35911459
LP
14515
14516 * A new libsystemd-bus module has been added that implements a
14517 pretty complete D-Bus client library. For details see:
14518
56cadcb6 14519 https://lists.freedesktop.org/archives/systemd-devel/2013-March/009797.html
35911459 14520
c20d8298 14521 * journald will now explicitly flush the journal files to disk
a87197f5
ZJS
14522 at the latest 5min after each write. The file will then also
14523 be marked offline until the next write. This should increase
14524 reliability in case of a crash. The synchronization delay
14525 can be configured via SyncIntervalSec= in journald.conf.
35911459
LP
14526
14527 * There's a new remote-fs-setup.target unit that can be used
14528 to pull in specific services when at least one remote file
14529 system is to be mounted.
14530
14531 * There are new targets timers.target and paths.target as
14532 canonical targets to pull user timer and path units in
14533 from. This complements sockets.target with a similar
14534 purpose for socket units.
14535
6a7d3d68
LP
14536 * libudev gained a new call udev_device_set_attribute_value()
14537 to set sysfs attributes of a device.
14538
a87197f5
ZJS
14539 * The udev daemon now sets the default number of worker
14540 processes executed in parallel based on the number of available
c20d8298 14541 CPUs instead of the amount of available RAM. This is supposed
ab06eef8 14542 to provide a more reliable default and limit a too aggressive
ce830873 14543 parallelism for setups with 1000s of devices connected.
c20d8298 14544
35911459
LP
14545 Contributions from: Auke Kok, Colin Walters, Cristian
14546 Rodríguez, Daniel Buch, Dave Reisner, Frederic Crozat, Hannes
14547 Reinecke, Harald Hoyer, Jan Alexander Steffens, Jan
14548 Engelhardt, Josh Triplett, Kay Sievers, Lennart Poettering,
14549 Mantas Mikulėnas, Martin Pitt, Mathieu Bridon, Michael Biebl,
14550 Michal Schmidt, Michal Sekletar, Miklos Vajna, Nathaniel Chen,
14551 Oleksii Shevchuk, Ozan Çağlayan, Thomas Hindoe Paaboel
14552 Andersen, Tollef Fog Heen, Tom Gundersen, Umut Tezduyar,
14553 Zbigniew Jędrzejewski-Szmek
14554
85d68397
LP
14555CHANGES WITH 198:
14556
14557 * Configuration of unit files may now be extended via drop-in
14558 files without having to edit/override the unit files
14559 themselves. More specifically, if the administrator wants to
14560 change one value for a service file foobar.service he can
14561 now do so by dropping in a configuration snippet into
ad88e758 14562 /etc/systemd/system/foobar.service.d/*.conf. The unit logic
85d68397
LP
14563 will load all these snippets and apply them on top of the
14564 main unit configuration file, possibly extending or
14565 overriding its settings. Using these drop-in snippets is
40e21da8
KS
14566 generally nicer than the two earlier options for changing
14567 unit files locally: copying the files from
85d68397
LP
14568 /usr/lib/systemd/system/ to /etc/systemd/system/ and editing
14569 them there; or creating a new file in /etc/systemd/system/
14570 that incorporates the original one via ".include". Drop-in
14571 snippets into these .d/ directories can be placed in any
fd868975 14572 directory systemd looks for units in, and the usual
85d68397
LP
14573 overriding semantics between /usr/lib, /etc and /run apply
14574 for them too.
14575
14576 * Most unit file settings which take lists of items can now be
6aa8d43a 14577 reset by assigning the empty string to them. For example,
85d68397
LP
14578 normally, settings such as Environment=FOO=BAR append a new
14579 environment variable assignment to the environment block,
14580 each time they are used. By assigning Environment= the empty
14581 string the environment block can be reset to empty. This is
14582 particularly useful with the .d/*.conf drop-in snippets
156f7d09
KS
14583 mentioned above, since this adds the ability to reset list
14584 settings from vendor unit files via these drop-ins.
85d68397
LP
14585
14586 * systemctl gained a new "list-dependencies" command for
14587 listing the dependencies of a unit recursively.
14588
40e21da8 14589 * Inhibitors are now honored and listed by "systemctl
85d68397
LP
14590 suspend", "systemctl poweroff" (and similar) too, not only
14591 GNOME. These commands will also list active sessions by
14592 other users.
14593
14594 * Resource limits (as exposed by the various control group
14595 controllers) can now be controlled dynamically at runtime
14596 for all units. More specifically, you can now use a command
14597 like "systemctl set-cgroup-attr foobar.service cpu.shares
14598 2000" to alter the CPU shares a specific service gets. These
6aa8d43a 14599 settings are stored persistently on disk, and thus allow the
85d68397
LP
14600 administrator to easily adjust the resource usage of
14601 services with a few simple commands. This dynamic resource
6aa8d43a 14602 management logic is also available to other programs via the
85d68397
LP
14603 bus. Almost any kernel cgroup attribute and controller is
14604 supported.
14605
14606 * systemd-vconsole-setup will now copy all font settings to
6aa8d43a
LP
14607 all allocated VTs, where it previously applied them only to
14608 the foreground VT.
85d68397
LP
14609
14610 * libsystemd-login gained the new sd_session_get_tty() API
14611 call.
14612
6aa8d43a
LP
14613 * This release drops support for a few legacy or
14614 distribution-specific LSB facility names when parsing init
14615 scripts: $x-display-manager, $mail-transfer-agent,
85d68397
LP
14616 $mail-transport-agent, $mail-transfer-agent, $smtp,
14617 $null. Also, the mail-transfer-agent.target unit backing
14618 this has been removed. Distributions which want to retain
6aa8d43a
LP
14619 compatibility with this should carry the burden for
14620 supporting this themselves and patch support for these back
14621 in, if they really need to. Also, the facilities $syslog and
14622 $local_fs are now ignored, since systemd does not support
14623 early-boot LSB init scripts anymore, and these facilities
14624 are implied anyway for normal services. syslog.target has
14625 also been removed.
85d68397 14626
40e21da8 14627 * There are new bus calls on PID1's Manager object for
6aa8d43a 14628 cancelling jobs, and removing snapshot units. Previously,
85d68397
LP
14629 both calls were only available on the Job and Snapshot
14630 objects themselves.
14631
14632 * systemd-journal-gatewayd gained SSL support.
14633
14634 * The various "environment" files, such as /etc/locale.conf
14635 now support continuation lines with a backslash ("\") as
499b604b 14636 last character in the line, similarly in style (but different)
85d68397
LP
14637 to how this is supported in shells.
14638
14639 * For normal user processes the _SYSTEMD_USER_UNIT= field is
14640 now implicitly appended to every log entry logged. systemctl
14641 has been updated to filter by this field when operating on a
14642 user systemd instance.
14643
14644 * nspawn will now implicitly add the CAP_AUDIT_WRITE and
14645 CAP_AUDIT_CONTROL capabilities to the capabilities set for
14646 the container. This makes it easier to boot unmodified
14647 Fedora systems in a container, which however still requires
14648 audit=0 to be passed on the kernel command line. Auditing in
14649 kernel and userspace is unfortunately still too broken in
14650 context of containers, hence we recommend compiling it out
14651 of the kernel or using audit=0. Hopefully this will be fixed
14652 one day for good in the kernel.
14653
14654 * nspawn gained the new --bind= and --bind-ro= parameters to
14655 bind mount specific directories from the host into the
14656 container.
14657
40e21da8 14658 * nspawn will now mount its own devpts file system instance
6aa8d43a 14659 into the container, in order not to leak pty devices from
85d68397
LP
14660 the host into the container.
14661
14662 * systemd will now read the firmware boot time performance
6aa8d43a
LP
14663 information from the EFI variables, if the used boot loader
14664 supports this, and takes it into account for boot performance
14665 analysis via "systemd-analyze". This is currently supported
14666 only in conjunction with Gummiboot, but could be supported
14667 by other boot loaders too. For details see:
85d68397 14668
a794a4d8 14669 https://systemd.io/BOOT_LOADER_INTERFACE
85d68397
LP
14670
14671 * A new generator has been added that automatically mounts the
14672 EFI System Partition (ESP) to /boot, if that directory
6aa8d43a
LP
14673 exists, is empty, and no other file system has been
14674 configured to be mounted there.
85d68397
LP
14675
14676 * logind will now send out PrepareForSleep(false) out
14677 unconditionally, after coming back from suspend. This may be
14678 used by applications as asynchronous notification for
14679 system resume events.
14680
14681 * "systemctl unlock-sessions" has been added, that allows
14682 unlocking the screens of all user sessions at once, similar
499b604b 14683 to how "systemctl lock-sessions" already locked all users
40e21da8 14684 sessions. This is backed by a new D-Bus call UnlockSessions().
85d68397
LP
14685
14686 * "loginctl seat-status" will now show the master device of a
14687 seat. (i.e. the device of a seat that needs to be around for
14688 the seat to be considered available, usually the graphics
14689 card).
14690
14691 * tmpfiles gained a new "X" line type, that allows
14692 configuration of files and directories (with wildcards) that
14693 shall be excluded from automatic cleanup ("aging").
14694
bf933560
KS
14695 * udev default rules set the device node permissions now only
14696 at "add" events, and do not change them any longer with a
14697 later "change" event.
85d68397
LP
14698
14699 * The log messages for lid events and power/sleep keypresses
14700 now carry a message ID.
14701
14702 * We now have a substantially larger unit test suite, but this
14703 continues to be work in progress.
14704
14705 * udevadm hwdb gained a new --root= parameter to change the
14706 root directory to operate relative to.
14707
40e21da8
KS
14708 * logind will now issue a background sync() request to the kernel
14709 early at shutdown, so that dirty buffers are flushed to disk early
85d68397
LP
14710 instead of at the last moment, in order to optimize shutdown
14711 times a little.
14712
14713 * A new bootctl tool has been added that is an interface for
14714 certain boot loader operations. This is currently a preview
14715 and is likely to be extended into a small mechanism daemon
14716 like timedated, localed, hostnamed, and can be used by
14717 graphical UIs to enumerate available boot options, and
14718 request boot into firmware operations.
14719
14720 * systemd-bootchart has been relicensed to LGPLv2.1+ to match
14721 the rest of the package. It also has been updated to work
14722 correctly in initrds.
14723
d35f51ea
ZJS
14724 * polkit previously has been runtime optional, and is now also
14725 compile time optional via a configure switch.
85d68397
LP
14726
14727 * systemd-analyze has been reimplemented in C. Also "systemctl
14728 dot" has moved into systemd-analyze.
14729
14730 * "systemctl status" with no further parameters will now print
14731 the status of all active or failed units.
14732
14733 * Operations such as "systemctl start" can now be executed
14734 with a new mode "--irreversible" which may be used to queue
14735 operations that cannot accidentally be reversed by a later
6aa8d43a 14736 job queuing. This is by default used to make shutdown
85d68397
LP
14737 requests more robust.
14738
14739 * The Python API of systemd now gained a new module for
14740 reading journal files.
14741
14742 * A new tool kernel-install has been added that can install
14743 kernel images according to the Boot Loader Specification:
14744
a794a4d8 14745 https://systemd.io/BOOT_LOADER_SPECIFICATION
85d68397
LP
14746
14747 * Boot time console output has been improved to provide
6aa8d43a 14748 animated boot time output for hanging jobs.
85d68397
LP
14749
14750 * A new tool systemd-activate has been added which can be used
14751 to test socket activation with, directly from the command
14752 line. This should make it much easier to test and debug
14753 socket activation in daemons.
14754
14755 * journalctl gained a new "--reverse" (or -r) option to show
14756 journal output in reverse order (i.e. newest line first).
14757
43447fb7
LP
14758 * journalctl gained a new "--pager-end" (or -e) option to jump
14759 to immediately jump to the end of the journal in the
14760 pager. This is only supported in conjunction with "less".
14761
85d68397 14762 * journalctl gained a new "--user-unit=" option, that works
499b604b 14763 similarly to "--unit=" but filters for user units rather than
85d68397
LP
14764 system units.
14765
14766 * A number of unit files to ease adoption of systemd in
14767 initrds has been added. This moves some minimal logic from
14768 the various initrd implementations into systemd proper.
14769
14770 * The journal files are now owned by a new group
14771 "systemd-journal", which exists specifically to allow access
14772 to the journal, and nothing else. Previously, we used the
6aa8d43a 14773 "adm" group for that, which however possibly covers more
85d68397
LP
14774 than just journal/log file access. This new group is now
14775 already used by systemd-journal-gatewayd to ensure this
14776 daemon gets access to the journal files and as little else
14777 as possible. Note that "make install" will also set FS ACLs
14778 up for /var/log/journal to give "adm" and "wheel" read
14779 access to it, in addition to "systemd-journal" which owns
14780 the journal files. We recommend that packaging scripts also
6aa8d43a 14781 add read access to "adm" + "wheel" to /var/log/journal, and
85d68397
LP
14782 all existing/future journal files. To normal users and
14783 administrators little changes, however packagers need to
14784 ensure to create the "systemd-journal" system group at
14785 package installation time.
14786
14787 * The systemd-journal-gatewayd now runs as unprivileged user
14788 systemd-journal-gateway:systemd-journal-gateway. Packaging
14789 scripts need to create these system user/group at
14790 installation time.
14791
14792 * timedated now exposes a new boolean property CanNTP that
14793 indicates whether a local NTP service is available or not.
14794
14795 * systemd-detect-virt will now also detect xen PVs
14796
40e21da8
KS
14797 * The pstore file system is now mounted by default, if it is
14798 available.
85d68397 14799
1aed4590
LP
14800 * In addition to the SELinux and IMA policies we will now also
14801 load SMACK policies at early boot.
14802
85d68397
LP
14803 Contributions from: Adel Gadllah, Aleksander Morgado, Auke
14804 Kok, Ayan George, Bastien Nocera, Colin Walters, Daniel Buch,
14805 Daniel Wallace, Dave Reisner, David Herrmann, David Strauss,
14806 Eelco Dolstra, Enrico Scholz, Frederic Crozat, Harald Hoyer,
14807 Jan Janssen, Jonathan Callen, Kay Sievers, Lennart Poettering,
14808 Lukas Nykryn, Mantas Mikulėnas, Marc-Antoine Perennou, Martin
14809 Pitt, Mauro Dreissig, Max F. Albrecht, Michael Biebl, Michael
14810 Olbrich, Michal Schmidt, Michal Sekletar, Michal Vyskocil,
14811 Michał Bartoszkiewicz, Mirco Tischler, Nathaniel Chen, Nestor
14812 Ovroy, Oleksii Shevchuk, Paul W. Frields, Piotr Drąg, Rob
14813 Clark, Ryan Lortie, Simon McVittie, Simon Peeters, Steven
14814 Hiscocks, Thomas Hindoe Paaboel Andersen, Tollef Fog Heen, Tom
14815 Gundersen, Umut Tezduyar, William Giokas, Zbigniew
14816 Jędrzejewski-Szmek, Zeeshan Ali (Khattak)
14817
8ad26859
LP
14818CHANGES WITH 197:
14819
14820 * Timer units now support calendar time events in addition to
14821 monotonic time events. That means you can now trigger a unit
14822 based on a calendar time specification such as "Thu,Fri
14823 2013-*-1,5 11:12:13" which refers to 11:12:13 of the first
14824 or fifth day of any month of the year 2013, given that it is
c3fb1e43 14825 a Thursday or a Friday. This brings timer event support
8ad26859
LP
14826 considerably closer to cron's capabilities. For details on
14827 the supported calendar time specification language see
14828 systemd.time(7).
14829
14830 * udev now supports a number of different naming policies for
14831 network interfaces for predictable names, and a combination
14832 of these policies is now the default. Please see this wiki
14833 document for details:
14834
a794a4d8 14835 https://www.freedesktop.org/software/systemd/man/systemd.net-naming-scheme.html
8ad26859
LP
14836
14837 * Auke Kok's bootchart implementation has been added to the
d28315e4
JE
14838 systemd tree. It is an optional component that can graph the
14839 boot in quite some detail. It is one of the best bootchart
8ad26859
LP
14840 implementations around and minimal in its code and
14841 dependencies.
14842
14843 * nss-myhostname has been integrated into the systemd source
14844 tree. nss-myhostname guarantees that the local hostname
14845 always stays resolvable via NSS. It has been a weak
14846 requirement of systemd-hostnamed since a long time, and
14847 since its code is actually trivial we decided to just
14848 include it in systemd's source tree. It can be turned off
14849 with a configure switch.
14850
14851 * The read-ahead logic is now capable of properly detecting
14852 whether a btrfs file system is on SSD or rotating media, in
14853 order to optimize the read-ahead scheme. Previously, it was
14854 only capable of detecting this on traditional file systems
14855 such as ext4.
14856
14857 * In udev, additional device properties are now read from the
14858 IAB in addition to the OUI database. Also, Bluetooth company
14859 identities are attached to the devices as well.
14860
14861 * In service files %U may be used as specifier that is
14862 replaced by the configured user name of the service.
14863
14864 * nspawn may now be invoked without a controlling TTY. This
14865 makes it suitable for invocation as its own service. This
14866 may be used to set up a simple containerized server system
14867 using only core OS tools.
14868
14869 * systemd and nspawn can now accept socket file descriptors
14870 when they are started for socket activation. This enables
14871 implementation of socket activated nspawn
14872 containers. i.e. think about autospawning an entire OS image
14873 when the first SSH or HTTP connection is received. We expect
14874 that similar functionality will also be added to libvirt-lxc
14875 eventually.
14876
14877 * journalctl will now suppress ANSI color codes when
14878 presenting log data.
14879
14880 * systemctl will no longer show control group information for
ce830873 14881 a unit if the control group is empty anyway.
8ad26859
LP
14882
14883 * logind can now automatically suspend/hibernate/shutdown the
14884 system on idle.
14885
14886 * /etc/machine-info and hostnamed now also expose the chassis
14887 type of the system. This can be used to determine whether
14888 the local system is a laptop, desktop, handset or
14889 tablet. This information may either be configured by the
14890 user/vendor or is automatically determined from ACPI and DMI
14891 information if possible.
14892
d35f51ea
ZJS
14893 * A number of polkit actions are now bound together with "imply"
14894 rules. This should simplify creating UIs because many actions
14895 will now authenticate similar ones as well.
8ad26859
LP
14896
14897 * Unit files learnt a new condition ConditionACPower= which
14898 may be used to conditionalize a unit depending on whether an
14899 AC power source is connected or not, of whether the system
14900 is running on battery power.
14901
14902 * systemctl gained a new "is-failed" verb that may be used in
14903 shell scripts and suchlike to check whether a specific unit
14904 is in the "failed" state.
14905
14906 * The EnvironmentFile= setting in unit files now supports file
14907 globbing, and can hence be used to easily read a number of
14908 environment files at once.
14909
14910 * systemd will no longer detect and recognize specific
14911 distributions. All distribution-specific #ifdeffery has been
14912 removed, systemd is now fully generic and
14913 distribution-agnostic. Effectively, not too much is lost as
14914 a lot of the code is still accessible via explicit configure
14915 switches. However, support for some distribution specific
14916 legacy configuration file formats has been dropped. We
14917 recommend distributions to simply adopt the configuration
14918 files everybody else uses now and convert the old
14919 configuration from packaging scripts. Most distributions
14920 already did that. If that's not possible or desirable,
14921 distributions are welcome to forward port the specific
14922 pieces of code locally from the git history.
14923
14924 * When logging a message about a unit systemd will now always
14925 log the unit name in the message meta data.
14926
14927 * localectl will now also discover system locale data that is
14928 not stored in locale archives, but directly unpacked.
14929
14930 * logind will no longer unconditionally use framebuffer
14931 devices as seat masters, i.e. as devices that are required
14932 to be existing before a seat is considered preset. Instead,
14933 it will now look for all devices that are tagged as
b938cb90
JE
14934 "seat-master" in udev. By default, framebuffer devices will
14935 be marked as such, but depending on local systems, other
8ad26859
LP
14936 devices might be marked as well. This may be used to
14937 integrate graphics cards using closed source drivers (such
14938 as NVidia ones) more nicely into logind. Note however, that
14939 we recommend using the open source NVidia drivers instead,
14940 and no udev rules for the closed-source drivers will be
14941 shipped from us upstream.
14942
14943 Contributions from: Adam Williamson, Alessandro Crismani, Auke
14944 Kok, Colin Walters, Daniel Wallace, Dave Reisner, David
14945 Herrmann, David Strauss, Dimitrios Apostolou, Eelco Dolstra,
14946 Eric Benoit, Giovanni Campagna, Hannes Reinecke, Henrik
14947 Grindal Bakken, Hermann Gausterer, Kay Sievers, Lennart
14948 Poettering, Lukas Nykryn, Mantas Mikulėnas, Marcel Holtmann,
14949 Martin Pitt, Matthew Monaco, Michael Biebl, Michael Terry,
14950 Michal Schmidt, Michal Sekletar, Michał Bartoszkiewicz, Oleg
14951 Samarin, Pekka Lundstrom, Philip Nilsson, Ramkumar
14952 Ramachandra, Richard Yao, Robert Millan, Sami Kerola, Shawn
14953 Landden, Thomas Hindoe Paaboel Andersen, Thomas Jarosch,
14954 Tollef Fog Heen, Tom Gundersen, Umut Tezduyar, Zbigniew
14955 Jędrzejewski-Szmek
14956
0428ddb7
LP
14957CHANGES WITH 196:
14958
14959 * udev gained support for loading additional device properties
14960 from an indexed database that is keyed by vendor/product IDs
14961 and similar device identifiers. For the beginning this
14962 "hwdb" is populated with data from the well-known PCI and
14963 USB database, but also includes PNP, ACPI and OID data. In
14964 the longer run this indexed database shall grow into
14965 becoming the one central database for non-essential
14966 userspace device metadata. Previously, data from the PCI/USB
96ec33c0 14967 database was only attached to select devices, since the
0428ddb7 14968 lookup was a relatively expensive operation due to O(n) time
96ec33c0
LP
14969 complexity (with n being the number of entries in the
14970 database). Since this is now O(1), we decided to add in this
14971 data for all devices where this is available, by
0428ddb7
LP
14972 default. Note that the indexed database needs to be rebuilt
14973 when new data files are installed. To achieve this you need
14974 to update your packaging scripts to invoke "udevadm hwdb
14975 --update" after installation of hwdb data files. For
14976 RPM-based distributions we introduced the new
14977 %udev_hwdb_update macro for this purpose.
14978
14979 * The Journal gained support for the "Message Catalog", an
14980 indexed database to link up additional information with
14981 journal entries. For further details please check:
14982
56cadcb6 14983 https://www.freedesktop.org/wiki/Software/systemd/catalog
0428ddb7
LP
14984
14985 The indexed message catalog database also needs to be
14986 rebuilt after installation of message catalog files. Use
14987 "journalctl --update-catalog" for this. For RPM-based
14988 distributions we introduced the %journal_catalog_update
14989 macro for this purpose.
14990
14991 * The Python Journal bindings gained support for the standard
14992 Python logging framework.
14993
14994 * The Journal API gained new functions for checking whether
14995 the underlying file system of a journal file is capable of
14996 properly reporting file change notifications, or whether
14997 applications that want to reflect journal changes "live"
ab06eef8 14998 need to recheck journal files continuously in appropriate
0428ddb7
LP
14999 time intervals.
15000
15001 * It is now possible to set the "age" field for tmpfiles
15002 entries to 0, indicating that files matching this entry
15003 shall always be removed when the directories are cleaned up.
15004
15005 * coredumpctl gained a new "gdb" verb which invokes gdb
15006 right-away on the selected coredump.
15007
15008 * There's now support for "hybrid sleep" on kernels that
15009 support this, in addition to "suspend" and "hibernate". Use
15010 "systemctl hybrid-sleep" to make use of this.
15011
15012 * logind's HandleSuspendKey= setting (and related settings)
15013 now gained support for a new "lock" setting to simply
15014 request the screen lock on all local sessions, instead of
15015 actually executing a suspend or hibernation.
15016
15017 * systemd will now mount the EFI variables file system by
15018 default.
15019
15020 * Socket units now gained support for configuration of the
15021 SMACK security label.
15022
15023 * timedatectl will now output the time of the last and next
15024 daylight saving change.
15025
15026 * We dropped support for various legacy and distro-specific
15027 concepts, such as insserv, early-boot SysV services
15028 (i.e. those for non-standard runlevels such as 'b' or 'S')
15029 or ArchLinux /etc/rc.conf support. We recommend the
15030 distributions who still need support this to either continue
15031 to maintain the necessary patches downstream, or find a
15032 different solution. (Talk to us if you have questions!)
15033
d35f51ea
ZJS
15034 * Various systemd components will now bypass polkit checks for
15035 root and otherwise handle properly if polkit is not found to
15036 be around. This should fix most issues for polkit-less
15037 systems. Quite frankly this should have been this way since
15038 day one. It is absolutely our intention to make systemd work
15039 fine on polkit-less systems, and we consider it a bug if
15040 something does not work as it should if polkit is not around.
0428ddb7
LP
15041
15042 * For embedded systems it is now possible to build udev and
15043 systemd without blkid and/or kmod support.
15044
15045 * "systemctl switch-root" is now capable of switching root
15046 more than once. I.e. in addition to transitions from the
15047 initrd to the host OS it is now possible to transition to
15048 further OS images from the host. This is useful to implement
15049 offline updating tools.
15050
15051 * Various other additions have been made to the RPM macros
15052 shipped with systemd. Use %udev_rules_update() after
15053 installing new udev rules files. %_udevhwdbdir,
15054 %_udevrulesdir, %_journalcatalogdir, %_tmpfilesdir,
15055 %_sysctldir are now available which resolve to the right
15056 directories for packages to place various data files in.
15057
15058 * journalctl gained the new --full switch (in addition to
15059 --all, to disable ellipsation for long messages.
15060
15061 Contributions from: Anders Olofsson, Auke Kok, Ben Boeckel,
15062 Colin Walters, Cosimo Cecchi, Daniel Wallace, Dave Reisner,
15063 Eelco Dolstra, Holger Hans Peter Freyther, Kay Sievers,
15064 Chun-Yi Lee, Lekensteyn, Lennart Poettering, Mantas Mikulėnas,
15065 Marti Raudsepp, Martin Pitt, Mauro Dreissig, Michael Biebl,
15066 Michal Schmidt, Michal Sekletar, Miklos Vajna, Nis Martensen,
15067 Oleksii Shevchuk, Olivier Brunel, Ramkumar Ramachandra, Thomas
15068 Bächler, Thomas Hindoe Paaboel Andersen, Tom Gundersen, Tony
15069 Camuso, Umut Tezduyar, Zbigniew Jędrzejewski-Szmek
15070
139ee8cc
LP
15071CHANGES WITH 195:
15072
6827101a 15073 * journalctl gained new --since= and --until= switches to
139ee8cc
LP
15074 filter by time. It also now supports nice filtering for
15075 units via --unit=/-u.
15076
6827101a 15077 * Type=oneshot services may use ExecReload= and do the
139ee8cc
LP
15078 right thing.
15079
15080 * The journal daemon now supports time-based rotation and
15081 vacuuming, in addition to the usual disk-space based
15082 rotation.
15083
15084 * The journal will now index the available field values for
15085 each field name. This enables clients to show pretty drop
15086 downs of available match values when filtering. The bash
15087 completion of journalctl has been updated
15088 accordingly. journalctl gained a new switch -F to list all
15089 values a certain field takes in the journal database.
15090
15091 * More service events are now written as structured messages
15092 to the journal, and made recognizable via message IDs.
15093
15094 * The timedated, localed and hostnamed mini-services which
15095 previously only provided support for changing time, locale
15096 and hostname settings from graphical DEs such as GNOME now
15097 also have a minimal (but very useful) text-based client
15098 utility each. This is probably the nicest way to changing
15099 these settings from the command line now, especially since
15100 it lists available options and is fully integrated with bash
15101 completion.
15102
15103 * There's now a new tool "systemd-coredumpctl" to list and
15104 extract coredumps from the journal.
15105
15106 * We now install a README each in /var/log/ and
15107 /etc/rc.d/init.d explaining where the system logs and init
15108 scripts went. This hopefully should help folks who go to
15109 that dirs and look into the otherwise now empty void and
15110 scratch their heads.
15111
15112 * When user-services are invoked (by systemd --user) the
15113 $MANAGERPID env var is set to the PID of systemd.
15114
15115 * SIGRTMIN+24 when sent to a --user instance will now result
15116 in immediate termination of systemd.
15117
15118 * gatewayd received numerous feature additions such as a
15119 "follow" mode, for live syncing and filtering.
15120
15121 * browse.html now allows filtering and showing detailed
15122 information on specific entries. Keyboard navigation and
15123 mouse screen support has been added.
15124
15125 * gatewayd/journalctl now supports HTML5/JSON
15126 Server-Sent-Events as output.
15127
1cb88f2c 15128 * The SysV init script compatibility logic will now
139ee8cc
LP
15129 heuristically determine whether a script supports the
15130 "reload" verb, and only then make this available as
15131 "systemctl reload".
15132
15f47220 15133 * "systemctl status --follow" has been removed, use "journalctl
139ee8cc
LP
15134 -u" instead.
15135
15136 * journald.conf's RuntimeMinSize=, PersistentMinSize= settings
15137 have been removed since they are hardly useful to be
15138 configured.
15139
15140 * And I'd like to take the opportunity to specifically mention
15141 Zbigniew for his great contributions. Zbigniew, you rock!
15142
15143 Contributions from: Andrew Eikum, Christian Hesse, Colin
15144 Guthrie, Daniel J Walsh, Dave Reisner, Eelco Dolstra, Ferenc
4d92e078
LP
15145 Wágner, Kay Sievers, Lennart Poettering, Lukas Nykryn, Mantas
15146 Mikulėnas, Martin Mikkelsen, Martin Pitt, Michael Olbrich,
15147 Michael Stapelberg, Michal Schmidt, Sebastian Ott, Thomas
15148 Bächler, Umut Tezduyar, Will Woods, Wulf C. Krueger, Zbigniew
15149 Jędrzejewski-Szmek, Сковорода Никита Андреевич
139ee8cc 15150
f9b55720
LP
15151CHANGES WITH 194:
15152
15153 * If /etc/vconsole.conf is non-existent or empty we will no
15154 longer load any console font or key map at boot by
15155 default. Instead the kernel defaults will be left
15156 intact. This is definitely the right thing to do, as no
15157 configuration should mean no configuration, and hard-coding
15158 font names that are different on all archs is probably a bad
15159 idea. Also, the kernel default key map and font should be
15160 good enough for most cases anyway, and mostly identical to
15161 the userspace fonts/key maps we previously overloaded them
15162 with. If distributions want to continue to default to a
15163 non-kernel font or key map they should ship a default
15164 /etc/vconsole.conf with the appropriate contents.
15165
15166 Contributions from: Colin Walters, Daniel J Walsh, Dave
15167 Reisner, Kay Sievers, Lennart Poettering, Lukas Nykryn, Tollef
15168 Fog Heen, Tom Gundersen, Zbigniew Jędrzejewski-Szmek
15169
597c52cf
LP
15170CHANGES WITH 193:
15171
15172 * journalctl gained a new --cursor= switch to show entries
15173 starting from the specified location in the journal.
15174
15175 * We now enforce a size limit on journal entry fields exported
15176 with "-o json" in journalctl. Fields larger than 4K will be
15177 assigned null. This can be turned off with --all.
15178
15179 * An (optional) journal gateway daemon is now available as
15180 "systemd-journal-gatewayd.service". This service provides
15181 access to the journal via HTTP and JSON. This functionality
15182 will be used to implement live log synchronization in both
15183 pull and push modes, but has various other users too, such
15184 as easy log access for debugging of embedded devices. Right
15185 now it is already useful to retrieve the journal via HTTP:
15186
15187 # systemctl start systemd-journal-gatewayd.service
15188 # wget http://localhost:19531/entries
15189
15190 This will download the journal contents in a
15191 /var/log/messages compatible format. The same as JSON:
15192
15193 # curl -H"Accept: application/json" http://localhost:19531/entries
15194
15195 This service is also accessible via a web browser where a
15196 single static HTML5 app is served that uses the JSON logic
15197 to enable the user to do some basic browsing of the
15198 journal. This will be extended later on. Here's an example
15199 screenshot of this app in its current state:
15200
dc7e580e 15201 https://0pointer.de/public/journal-gatewayd
597c52cf
LP
15202
15203 Contributions from: Kay Sievers, Lennart Poettering, Robert
15204 Milasan, Tom Gundersen
15205
075d4ecb
LP
15206CHANGES WITH 192:
15207
15208 * The bash completion logic is now available for journalctl
15209 too.
15210
d28315e4 15211 * We do not mount the "cpuset" controller anymore together with
075d4ecb
LP
15212 "cpu" and "cpuacct", as "cpuset" groups generally cannot be
15213 started if no parameters are assigned to it. "cpuset" hence
61233823 15214 broke code that assumed it could create "cpu" groups and
075d4ecb
LP
15215 just start them.
15216
15217 * journalctl -f will now subscribe to terminal size changes,
15218 and line break accordingly.
15219
597c52cf
LP
15220 Contributions from: Dave Reisner, Kay Sievers, Lennart
15221 Poettering, Lukas Nykrynm, Mirco Tischler, Václav Pavlín
075d4ecb 15222
b6a86739
LP
15223CHANGES WITH 191:
15224
15225 * nspawn will now create a symlink /etc/localtime in the
15226 container environment, copying the host's timezone
15227 setting. Previously this has been done via a bind mount, but
15228 since symlinks cannot be bind mounted this has now been
15229 changed to create/update the appropriate symlink.
15230
15231 * journalctl -n's line number argument is now optional, and
15232 will default to 10 if omitted.
15233
15234 * journald will now log the maximum size the journal files may
15235 take up on disk. This is particularly useful if the default
15236 built-in logic of determining this parameter from the file
15237 system size is used. Use "systemctl status
6563b535 15238 systemd-journald.service" to see this information.
b6a86739
LP
15239
15240 * The multi-seat X wrapper tool has been stripped down. As X
15241 is now capable of enumerating graphics devices via udev in a
15242 seat-aware way the wrapper is not strictly necessary
15243 anymore. A stripped down temporary stop-gap is still shipped
15244 until the upstream display managers have been updated to
15245 fully support the new X logic. Expect this wrapper to be
6563b535 15246 removed entirely in one of the next releases.
b6a86739
LP
15247
15248 * HandleSleepKey= in logind.conf has been split up into
15249 HandleSuspendKey= and HandleHibernateKey=. The old setting
6563b535 15250 is not available anymore. X11 and the kernel are
45afd519 15251 distinguishing between these keys and we should too. This
b6a86739
LP
15252 also means the inhibition lock for these keys has been split
15253 into two.
15254
597c52cf
LP
15255 Contributions from: Dave Airlie, Eelco Dolstra, Lennart
15256 Poettering, Lukas Nykryn, Václav Pavlín
b6a86739 15257
0c11f949
LP
15258CHANGES WITH 190:
15259
d28315e4 15260 * Whenever a unit changes state we will now log this to the
0c11f949
LP
15261 journal and show along the unit's own log output in
15262 "systemctl status".
15263
15264 * ConditionPathIsMountPoint= can now properly detect bind
15265 mount points too. (Previously, a bind mount of one file
8d0256b7 15266 system to another place in the same file system could not be
0c11f949
LP
15267 detected as mount, since they shared struct stat's st_dev
15268 field.)
15269
15270 * We will now mount the cgroup controllers cpu, cpuacct,
15271 cpuset and the controllers net_cls, net_prio together by
15272 default.
15273
15274 * nspawn containers will now have a virtualized boot
15275 ID. (i.e. /proc/sys/kernel/random/boot_id is now mounted
15276 over with a randomized ID at container initialization). This
15277 has the effect of making "journalctl -b" do the right thing
15278 in a container.
15279
15280 * The JSON output journal serialization has been updated not
15281 to generate "endless" list objects anymore, but rather one
15282 JSON object per line. This is more in line how most JSON
15283 parsers expect JSON objects. The new output mode
15284 "json-pretty" has been added to provide similar output, but
15285 neatly aligned for readability by humans.
15286
15287 * We dropped all explicit sync() invocations in the shutdown
15288 code. The kernel does this implicitly anyway in the kernel
15289 reboot() syscall. halt(8)'s -n option is now a compatibility
15290 no-op.
15291
15292 * We now support virtualized reboot() in containers, as
15293 supported by newer kernels. We will fall back to exit() if
15294 CAP_SYS_REBOOT is not available to the container. Also,
15295 nspawn makes use of this now and will actually reboot the
15296 container if the containerized OS asks for that.
15297
15298 * journalctl will only show local log output by default
15299 now. Use --merge (-m) to show remote log output, too.
15300
15301 * libsystemd-journal gained the new sd_journal_get_usage()
15302 call to determine the current disk usage of all journal
15303 files. This is exposed in the new "journalctl --disk-usage"
15304 command.
15305
15306 * journald gained a new configuration setting SplitMode= in
15307 journald.conf which may be used to control how user journals
15308 are split off. See journald.conf(5) for details.
15309
15310 * A new condition type ConditionFileNotEmpty= has been added.
15311
15312 * tmpfiles' "w" lines now support file globbing, to write
15313 multiple files at once.
15314
15315 * We added Python bindings for the journal submission
15316 APIs. More Python APIs for a number of selected APIs will
15317 likely follow. Note that we intend to add native bindings
15318 only for the Python language, as we consider it common
15319 enough to deserve bindings shipped within systemd. There are
15320 various projects outside of systemd that provide bindings
15321 for languages such as PHP or Lua.
15322
a98d5d64
LP
15323 * Many conditions will now resolve specifiers such as %i. In
15324 addition, PathChanged= and related directives of .path units
15325 now support specifiers as well.
0c11f949
LP
15326
15327 * There's now a new RPM macro definition for the system preset
15328 dir: %_presetdir.
15329
d28315e4 15330 * journald will now warn if it ca not forward a message to the
dca348bc 15331 syslog daemon because its socket is full.
0c11f949
LP
15332
15333 * timedated will no longer write or process /etc/timezone,
15334 except on Debian. As we do not support late mounted /usr
15335 anymore /etc/localtime always being a symlink is now safe,
15336 and hence the information in /etc/timezone is not necessary
15337 anymore.
15338
aaccc32c 15339 * logind will now always reserve one VT for a text getty (VT6
0c11f949
LP
15340 by default). Previously if more than 6 X sessions where
15341 started they took up all the VTs with auto-spawned gettys,
15342 so that no text gettys were available anymore.
15343
15344 * udev will now automatically inform the btrfs kernel logic
15345 about btrfs RAID components showing up. This should make
15346 simple hotplug based btrfs RAID assembly work.
15347
15348 * PID 1 will now increase its RLIMIT_NOFILE to 64K by default
15349 (but not for its children which will stay at the kernel
15350 default). This should allow setups with a lot more listening
15351 sockets.
15352
15353 * systemd will now always pass the configured timezone to the
15354 kernel at boot. timedated will do the same when the timezone
15355 is changed.
15356
15357 * logind's inhibition logic has been updated. By default,
15358 logind will now handle the lid switch, the power and sleep
15359 keys all the time, even in graphical sessions. If DEs want
15360 to handle these events on their own they should take the new
15361 handle-power-key, handle-sleep-key and handle-lid-switch
f131770b 15362 inhibitors during their runtime. A simple way to achieve
0c11f949
LP
15363 that is to invoke the DE wrapped in an invocation of:
15364
1d3a473b 15365 systemd-inhibit --what=handle-power-key:handle-sleep-key:handle-lid-switch …
0c11f949
LP
15366
15367 * Access to unit operations is now checked via SELinux taking
15368 the unit file label and client process label into account.
15369
aad803af
LP
15370 * systemd will now notify the administrator in the journal
15371 when he over-mounts a non-empty directory.
15372
15373 * There are new specifiers that are resolved in unit files,
38b38500 15374 for the hostname (%H), the machine ID (%m) and the boot ID
aad803af
LP
15375 (%b).
15376
b6a86739 15377 Contributions from: Allin Cottrell, Auke Kok, Brandon Philips,
0c11f949
LP
15378 Colin Guthrie, Colin Walters, Daniel J Walsh, Dave Reisner,
15379 Eelco Dolstra, Jan Engelhardt, Kay Sievers, Lennart
15380 Poettering, Lucas De Marchi, Lukas Nykryn, Mantas Mikulėnas,
15381 Martin Pitt, Matthias Clasen, Michael Olbrich, Pierre Schmitz,
15382 Shawn Landden, Thomas Hindoe Paaboel Andersen, Tom Gundersen,
15383 Václav Pavlín, Yin Kangkai, Zbigniew Jędrzejewski-Szmek
15384
38a60d71
LP
15385CHANGES WITH 189:
15386
15387 * Support for reading structured kernel messages from
15388 /dev/kmsg has now been added and is enabled by default.
15389
15390 * Support for reading kernel messages from /proc/kmsg has now
15391 been removed. If you want kernel messages in the journal
15392 make sure to run a recent kernel (>= 3.5) that supports
15393 reading structured messages from /dev/kmsg (see
15394 above). /proc/kmsg is now exclusive property of classic
15395 syslog daemons again.
15396
15397 * The libudev API gained the new
15398 udev_device_new_from_device_id() call.
15399
15400 * The logic for file system namespace (ReadOnlyDirectory=,
15401 ReadWriteDirectoy=, PrivateTmp=) has been reworked not to
15402 require pivot_root() anymore. This means fewer temporary
15403 directories are created below /tmp for this feature.
15404
15405 * nspawn containers will now see and receive all submounts
15406 made on the host OS below the root file system of the
15407 container.
15408
15409 * Forward Secure Sealing is now supported for Journal files,
15410 which provide cryptographical sealing of journal files so
15411 that attackers cannot alter log history anymore without this
15412 being detectable. Lennart will soon post a blog story about
15413 this explaining it in more detail.
15414
15415 * There are two new service settings RestartPreventExitStatus=
15416 and SuccessExitStatus= which allow configuration of exit
15417 status (exit code or signal) which will be excepted from the
15418 restart logic, resp. consider successful.
15419
15420 * journalctl gained the new --verify switch that can be used
15421 to check the integrity of the structure of journal files and
15422 (if Forward Secure Sealing is enabled) the contents of
15423 journal files.
15424
15425 * nspawn containers will now be run with /dev/stdin, /dev/fd/
15426 and similar symlinks pre-created. This makes running shells
15427 as container init process a lot more fun.
15428
15429 * The fstab support can now handle PARTUUID= and PARTLABEL=
15430 entries.
15431
15432 * A new ConditionHost= condition has been added to match
15433 against the hostname (with globs) and machine ID. This is
15434 useful for clusters where a single OS image is used to
15435 provision a large number of hosts which shall run slightly
15436 different sets of services.
15437
15438 * Services which hit the restart limit will now be placed in a
15439 failure state.
15440
b6a86739 15441 Contributions from: Bertram Poettering, Dave Reisner, Huang
38a60d71
LP
15442 Hang, Kay Sievers, Lennart Poettering, Lukas Nykryn, Martin
15443 Pitt, Simon Peeters, Zbigniew Jędrzejewski-Szmek
15444
c269cec3
LP
15445CHANGES WITH 188:
15446
15447 * When running in --user mode systemd will now become a
15448 subreaper (PR_SET_CHILD_SUBREAPER). This should make the ps
15449 tree a lot more organized.
15450
15451 * A new PartOf= unit dependency type has been introduced that
15452 may be used to group services in a natural way.
15453
15454 * "systemctl enable" may now be used to enable instances of
15455 services.
15456
15457 * journalctl now prints error log levels in red, and
15458 warning/notice log levels in bright white. It also supports
15459 filtering by log level now.
15460
15461 * cgtop gained a new -n switch (similar to top), to configure
15462 the maximum number of iterations to run for. It also gained
15463 -b, to run in batch mode (accepting no input).
15464
ab06eef8 15465 * The suffix ".service" may now be omitted on most systemctl
c269cec3
LP
15466 command lines involving service unit names.
15467
15468 * There's a new bus call in logind to lock all sessions, as
15469 well as a loginctl verb for it "lock-sessions".
15470
15471 * libsystemd-logind.so gained a new call sd_journal_perror()
15472 that works similar to libc perror() but logs to the journal
15473 and encodes structured information about the error number.
15474
15475 * /etc/crypttab entries now understand the new keyfile-size=
15476 option.
15477
15478 * shutdown(8) now can send a (configurable) wall message when
15479 a shutdown is cancelled.
15480
15481 * The mount propagation mode for the root file system will now
15482 default to "shared", which is useful to make containers work
15483 nicely out-of-the-box so that they receive new mounts from
15484 the host. This can be undone locally by running "mount
15485 --make-rprivate /" if needed.
15486
15487 * The prefdm.service file has been removed. Distributions
15488 should maintain this unit downstream if they intend to keep
15489 it around. However, we recommend writing normal unit files
15490 for display managers instead.
15491
15492 * Since systemd is a crucial part of the OS we will now
15493 default to a number of compiler switches that improve
15494 security (hardening) such as read-only relocations, stack
15495 protection, and suchlike.
15496
15497 * The TimeoutSec= setting for services is now split into
15498 TimeoutStartSec= and TimeoutStopSec= to allow configuration
15499 of individual time outs for the start and the stop phase of
15500 the service.
15501
15502 Contributions from: Artur Zaprzala, Arvydas Sidorenko, Auke
15503 Kok, Bryan Kadzban, Dave Reisner, David Strauss, Harald Hoyer,
15504 Jim Meyering, Kay Sievers, Lennart Poettering, Mantas
15505 Mikulėnas, Martin Pitt, Michal Schmidt, Michal Sekletar, Peter
15506 Alfredsen, Shawn Landden, Simon Peeters, Terence Honles, Tom
15507 Gundersen, Zbigniew Jędrzejewski-Szmek
15508
c4f1b862
LP
15509CHANGES WITH 187:
15510
15511 * The journal and id128 C APIs are now fully documented as man
15512 pages.
15513
15514 * Extra safety checks have been added when transitioning from
15515 the initial RAM disk to the main system to avoid accidental
15516 data loss.
15517
c269cec3 15518 * /etc/crypttab entries now understand the new keyfile-offset=
c4f1b862
LP
15519 option.
15520
15521 * systemctl -t can now be used to filter by unit load state.
15522
15523 * The journal C API gained the new sd_journal_wait() call to
15524 make writing synchronous journal clients easier.
15525
15526 * journalctl gained the new -D switch to show journals from a
15527 specific directory.
15528
15529 * journalctl now displays a special marker between log
15530 messages of two different boots.
15531
15532 * The journal is now explicitly flushed to /var via a service
15533 systemd-journal-flush.service, rather than implicitly simply
15534 by seeing /var/log/journal to be writable.
15535
15536 * journalctl (and the journal C APIs) can now match for much
15537 more complex expressions, with alternatives and
15538 disjunctions.
15539
15540 * When transitioning from the initial RAM disk to the main
15541 system we will now kill all processes in a killing spree to
15542 ensure no processes stay around by accident.
15543
15544 * Three new specifiers may be used in unit files: %u, %h, %s
15545 resolve to the user name, user home directory resp. user
15546 shell. This is useful for running systemd user instances.
15547
15548 * We now automatically rotate journal files if their data
15549 object hash table gets a fill level > 75%. We also size the
15550 hash table based on the configured maximum file size. This
15551 together should lower hash collisions drastically and thus
15552 speed things up a bit.
15553
15554 * journalctl gained the new "--header" switch to introspect
15555 header data of journal files.
15556
6b000af4
LP
15557 * A new setting SystemCallFilters= has been added to services which may
15558 be used to apply deny lists or allow lists to system calls. This is
15559 based on SECCOMP Mode 2 of Linux 3.5.
c4f1b862
LP
15560
15561 * nspawn gained a new --link-journal= switch (and quicker: -j)
15562 to link the container journal with the host. This makes it
15563 very easy to centralize log viewing on the host for all
15564 guests while still keeping the journal files separated.
15565
15566 * Many bugfixes and optimizations
15567
15568 Contributions from: Auke Kok, Eelco Dolstra, Harald Hoyer, Kay
15569 Sievers, Lennart Poettering, Malte Starostik, Paul Menzel, Rex
15570 Tsai, Shawn Landden, Tom Gundersen, Ville Skyttä, Zbigniew
15571 Jędrzejewski-Szmek
15572
b5b4c94a
LP
15573CHANGES WITH 186:
15574
15575 * Several tools now understand kernel command line arguments,
15576 which are only read when run in an initial RAM disk. They
15577 usually follow closely their normal counterparts, but are
15578 prefixed with rd.
15579
15580 * There's a new tool to analyze the readahead files that are
15581 automatically generated at boot. Use:
15582
15583 /usr/lib/systemd/systemd-readahead analyze /.readahead
15584
15585 * We now provide an early debug shell on tty9 if this enabled. Use:
15586
d1f9edaf 15587 systemctl enable debug-shell.service
b5b4c94a
LP
15588
15589 * All plymouth related units have been moved into the Plymouth
15590 package. Please make sure to upgrade your Plymouth version
15591 as well.
15592
15593 * systemd-tmpfiles now supports getting passed the basename of
15594 a configuration file only, in which case it will look for it
15595 in all appropriate directories automatically.
15596
15597 * udevadm info now takes a /dev or /sys path as argument, and
15598 does the right thing. Example:
15599
15600 udevadm info /dev/sda
15601 udevadm info /sys/class/block/sda
15602
15603 * systemctl now prints a warning if a unit is stopped but a
15604 unit that might trigger it continues to run. Example: a
15605 service is stopped but the socket that activates it is left
15606 running.
15607
15608 * "systemctl status" will now mention if the log output was
15609 shortened due to rotation since a service has been started.
15610
15611 * The journal API now exposes functions to determine the
15612 "cutoff" times due to rotation.
15613
15614 * journald now understands SIGUSR1 and SIGUSR2 for triggering
15615 immediately flushing of runtime logs to /var if possible,
15616 resp. for triggering immediate rotation of the journal
15617 files.
15618
15619 * It is now considered an error if a service is attempted to
15620 be stopped that is not loaded.
15621
15622 * XDG_RUNTIME_DIR now uses numeric UIDs instead of usernames.
15623
15624 * systemd-analyze now supports Python 3
15625
15626 * tmpfiles now supports cleaning up directories via aging
15627 where the first level dirs are always kept around but
15628 directories beneath it automatically aged. This is enabled
15629 by prefixing the age field with '~'.
15630
15631 * Seat objects now expose CanGraphical, CanTTY properties
15632 which is required to deal with very fast bootups where the
15633 display manager might be running before the graphics drivers
15634 completed initialization.
15635
15636 * Seat objects now expose a State property.
15637
15638 * We now include RPM macros for service enabling/disabling
15639 based on the preset logic. We recommend RPM based
15640 distributions to make use of these macros if possible. This
15641 makes it simpler to reuse RPM spec files across
15642 distributions.
15643
15644 * We now make sure that the collected systemd unit name is
15645 always valid when services log to the journal via
15646 STDOUT/STDERR.
15647
15648 * There's a new man page kernel-command-line(7) detailing all
15649 command line options we understand.
15650
15651 * The fstab generator may now be disabled at boot by passing
15652 fstab=0 on the kernel command line.
15653
91ac7425 15654 * A new kernel command line option modules-load= is now understood
b5b4c94a
LP
15655 to load a specific kernel module statically, early at boot.
15656
15657 * Unit names specified on the systemctl command line are now
15658 automatically escaped as needed. Also, if file system or
15659 device paths are specified they are automatically turned
15660 into the appropriate mount or device unit names. Example:
15661
15662 systemctl status /home
15663 systemctl status /dev/sda
15664
15665 * The SysVConsole= configuration option has been removed from
15666 system.conf parsing.
15667
15668 * The SysV search path is no longer exported on the D-Bus
15669 Manager object.
15670
ce830873 15671 * The Names= option has been removed from unit file parsing.
b5b4c94a
LP
15672
15673 * There's a new man page bootup(7) detailing the boot process.
15674
15675 * Every unit and every generator we ship with systemd now
15676 comes with full documentation. The self-explanatory boot is
15677 complete.
15678
15679 * A couple of services gained "systemd-" prefixes in their
15680 name if they wrap systemd code, rather than only external
15681 code. Among them fsck@.service which is now
15682 systemd-fsck@.service.
15683
15684 * The HaveWatchdog property has been removed from the D-Bus
15685 Manager object.
15686
15687 * systemd.confirm_spawn= on the kernel command line should now
15688 work sensibly.
15689
15690 * There's a new man page crypttab(5) which details all options
15691 we actually understand.
15692
15693 * systemd-nspawn gained a new --capability= switch to pass
15694 additional capabilities to the container.
15695
15696 * timedated will now read known NTP implementation unit names
5b00c016 15697 from /usr/lib/systemd/ntp-units.d/*.list,
b5b4c94a
LP
15698 systemd-timedated-ntp.target has been removed.
15699
15700 * journalctl gained a new switch "-b" that lists log data of
15701 the current boot only.
15702
15703 * The notify socket is in the abstract namespace again, in
15704 order to support daemons which chroot() at start-up.
15705
15706 * There is a new Storage= configuration option for journald
15707 which allows configuration of where log data should go. This
15708 also provides a way to disable journal logging entirely, so
15709 that data collected is only forwarded to the console, the
15710 kernel log buffer or another syslog implementation.
15711
c4f1b862 15712 * Many bugfixes and optimizations
b5b4c94a 15713
2d938ac7
LP
15714 Contributions from: Auke Kok, Colin Guthrie, Dave Reisner,
15715 David Strauss, Eelco Dolstra, Kay Sievers, Lennart Poettering,
15716 Lukas Nykryn, Michal Schmidt, Michal Sekletar, Paul Menzel,
15717 Shawn Landden, Tom Gundersen
b5b4c94a 15718
2d197285 15719CHANGES WITH 185:
b6a86739 15720
2d197285
KS
15721 * "systemctl help <unit>" now shows the man page if one is
15722 available.
15723
15724 * Several new man pages have been added.
15725
b5b4c94a
LP
15726 * MaxLevelStore=, MaxLevelSyslog=, MaxLevelKMsg=,
15727 MaxLevelConsole= can now be specified in
15728 journald.conf. These options allow reducing the amount of
15729 data stored on disk or forwarded by the log level.
2d197285 15730
b5b4c94a
LP
15731 * TimerSlackNSec= can now be specified in system.conf for
15732 PID1. This allows system-wide power savings.
2d197285
KS
15733
15734 Contributions from: Dave Reisner, Kay Sievers, Lauri Kasanen,
15735 Lennart Poettering, Malte Starostik, Marc-Antoine Perennou,
15736 Matthias Clasen
15737
4c8cd173 15738CHANGES WITH 184:
b6a86739 15739
4c8cd173
LP
15740 * logind is now capable of (optionally) handling power and
15741 sleep keys as well as the lid switch.
15742
15743 * journalctl now understands the syntax "journalctl
15744 /usr/bin/avahi-daemon" to get all log output of a specific
15745 daemon.
15746
15747 * CapabilityBoundingSet= in system.conf now also influences
15748 the capability bound set of usermode helpers of the kernel.
15749
15750 Contributions from: Daniel Drake, Daniel J. Walsh, Gert
15751 Michael Kulyk, Harald Hoyer, Jean Delvare, Kay Sievers,
15752 Lennart Poettering, Matthew Garrett, Matthias Clasen, Paul
15753 Menzel, Shawn Landden, Tero Roponen, Tom Gundersen
15754
ea5943d3 15755CHANGES WITH 183:
b6a86739 15756
187076d4
LP
15757 * Note that we skipped 139 releases here in order to set the
15758 new version to something that is greater than both udev's
15759 and systemd's most recent version number.
15760
194bbe33
KS
15761 * udev: all udev sources are merged into the systemd source tree now.
15762 All future udev development will happen in the systemd tree. It
15763 is still fully supported to use the udev daemon and tools without
15764 systemd running, like in initramfs or other init systems. Building
15765 udev though, will require the *build* of the systemd tree, but
ea5943d3 15766 udev can be properly *run* without systemd.
07cd4fc1 15767
91cf7e5c 15768 * udev: /lib/udev/devices/ are not read anymore; systemd-tmpfiles
f13b388f
KS
15769 should be used to create dead device nodes as workarounds for broken
15770 subsystems.
64661ee7 15771
1d3a473b 15772 * udev: RUN+="socket:…" and udev_monitor_new_from_socket() is
2d13da88
KS
15773 no longer supported. udev_monitor_new_from_netlink() needs to be
15774 used to subscribe to events.
15775
194bbe33
KS
15776 * udev: when udevd is started by systemd, processes which are left
15777 behind by forking them off of udev rules, are unconditionally cleaned
15778 up and killed now after the event handling has finished. Services or
15779 daemons must be started as systemd services. Services can be
ea5943d3 15780 pulled-in by udev to get started, but they can no longer be directly
194bbe33
KS
15781 forked by udev rules.
15782
f13b388f
KS
15783 * udev: the daemon binary is called systemd-udevd now and installed
15784 in /usr/lib/systemd/. Standalone builds or non-systemd systems need
15785 to adapt to that, create symlink, or rename the binary after building
15786 it.
15787
ea5943d3 15788 * libudev no longer provides these symbols:
c1959569
KS
15789 udev_monitor_from_socket()
15790 udev_queue_get_failed_list_entry()
15791 udev_get_{dev,sys,run}_path()
ea5943d3 15792 The versions number was bumped and symbol versioning introduced.
c1959569 15793
ea5943d3 15794 * systemd-loginctl and systemd-journalctl have been renamed
9ae9afce 15795 to loginctl and journalctl to match systemctl.
18b754d3
KS
15796
15797 * The config files: /etc/systemd/systemd-logind.conf and
15798 /etc/systemd/systemd-journald.conf have been renamed to
15799 logind.conf and journald.conf. Package updates should rename
15800 the files to the new names on upgrade.
15801
ea5943d3
LP
15802 * For almost all files the license is now LGPL2.1+, changed
15803 from the previous GPL2.0+. Exceptions are some minor stuff
15804 of udev (which will be changed to LGPL2.1 eventually, too),
15805 and the MIT licensed sd-daemon.[ch] library that is suitable
15806 to be used as drop-in files.
15807
15808 * systemd and logind now handle system sleep states, in
49f43d5f 15809 particular suspending and hibernating.
ea5943d3
LP
15810
15811 * logind now implements a sleep/shutdown/idle inhibiting logic
15812 suitable for a variety of uses. Soonishly Lennart will blog
15813 about this in more detail.
15814
15815 * var-run.mount and var-lock.mount are no longer provided
ce830873 15816 (which previously bind mounted these directories to their new
ea5943d3
LP
15817 places). Distributions which have not converted these
15818 directories to symlinks should consider stealing these files
15819 from git history and add them downstream.
15820
15821 * We introduced the Documentation= field for units and added
15822 this to all our shipped units. This is useful to make it
3943231c 15823 easier to explore the boot and the purpose of the various
ea5943d3
LP
15824 units.
15825
15826 * All smaller setup units (such as
15827 systemd-vconsole-setup.service) now detect properly if they
15828 are run in a container and are skipped when
15829 appropriate. This guarantees an entirely noise-free boot in
15830 Linux container environments such as systemd-nspawn.
15831
15832 * A framework for implementing offline system updates is now
15833 integrated, for details see:
a794a4d8 15834 https://www.freedesktop.org/software/systemd/man/systemd.offline-updates.html
ea5943d3
LP
15835
15836 * A new service type Type=idle is available now which helps us
15837 avoiding ugly interleaving of getty output and boot status
15838 messages.
15839
439d6dfd
LP
15840 * There's now a system-wide CapabilityBoundingSet= option to
15841 globally reduce the set of capabilities for the
ea5943d3
LP
15842 system. This is useful to drop CAP_SYS_MKNOD, CAP_SYS_RAWIO,
15843 CAP_NET_RAW, CAP_SYS_MODULE, CAP_SYS_TIME, CAP_SYS_PTRACE or
15844 even CAP_NET_ADMIN system-wide for secure systems.
15845
15846 * There are now system-wide DefaultLimitXXX= options to
15847 globally change the defaults of the various resource limits
15848 for all units started by PID 1.
15849
15850 * Harald Hoyer's systemd test suite has been integrated into
15851 systemd which allows easy testing of systemd builds in qemu
15852 and nspawn. (This is really awesome! Ask us for details!)
15853
3943231c
LP
15854 * The fstab parser is now implemented as generator, not inside
15855 of PID 1 anymore.
ea5943d3
LP
15856
15857 * systemctl will now warn you if .mount units generated from
15858 /etc/fstab are out of date due to changes in fstab that
d28315e4 15859 have not been read by systemd yet.
ea5943d3
LP
15860
15861 * systemd is now suitable for usage in initrds. Dracut has
15862 already been updated to make use of this. With this in place
15863 initrds get a slight bit faster but primarily are much
15864 easier to introspect and debug since "systemctl status" in
15865 the host system can be used to introspect initrd services,
15866 and the journal from the initrd is kept around too.
15867
15868 * systemd-delta has been added, a tool to explore differences
15869 between user/admin configuration and vendor defaults.
15870
15871 * PrivateTmp= now affects both /tmp and /var/tmp.
15872
15873 * Boot time status messages are now much prettier and feature
15874 proper english language. Booting up systemd has never been
15875 so sexy.
15876
15877 * Read-ahead pack files now include the inode number of all
15878 files to pre-cache. When the inode changes the pre-caching
15879 is not attempted. This should be nicer to deal with updated
15880 packages which might result in changes of read-ahead
15881 patterns.
15882
15883 * We now temporaritly lower the kernel's read_ahead_kb variable
15884 when collecting read-ahead data to ensure the kernel's
15885 built-in read-ahead does not add noise to our measurements
15886 of necessary blocks to pre-cache.
15887
15888 * There's now RequiresMountsFor= to add automatic dependencies
15889 for all mounts necessary for a specific file system path.
15890
15891 * MountAuto= and SwapAuto= have been removed from
15892 system.conf. Mounting file systems at boot has to take place
15893 in systemd now.
15894
15895 * nspawn now learned a new switch --uuid= to set the machine
15896 ID on the command line.
15897
f8c0a2cb 15898 * nspawn now learned the -b switch to automatically search
ea5943d3
LP
15899 for an init system.
15900
15901 * vt102 is now the default TERM for serial TTYs, upgraded from
15902 vt100.
15903
15904 * systemd-logind now works on VT-less systems.
15905
15906 * The build tree has been reorganized. The individual
3943231c 15907 components now have directories of their own.
ea5943d3
LP
15908
15909 * A new condition type ConditionPathIsReadWrite= is now available.
15910
15911 * nspawn learned the new -C switch to create cgroups for the
15912 container in other hierarchies.
15913
15914 * We now have support for hardware watchdogs, configurable in
15915 system.conf.
15916
15917 * The scheduled shutdown logic now has a public API.
15918
15919 * We now mount /tmp as tmpfs by default, but this can be
15920 masked and /etc/fstab can override it.
15921
d28315e4 15922 * Since udisks does not make use of /media anymore we are not
ea5943d3
LP
15923 mounting a tmpfs on it anymore.
15924
15925 * journalctl gained a new --local switch to only interleave
15926 locally generated journal files.
15927
15928 * We can now load the IMA policy at boot automatically.
15929
15930 * The GTK tools have been split off into a systemd-ui.
15931
79849bf9
LP
15932 Contributions from: Andreas Schwab, Auke Kok, Ayan George,
15933 Colin Guthrie, Daniel Mack, Dave Reisner, David Ward, Elan
15934 Ruusamäe, Frederic Crozat, Gergely Nagy, Guillermo Vidal,
15935 Hannes Reinecke, Harald Hoyer, Javier Jardón, Kay Sievers,
15936 Lennart Poettering, Lucas De Marchi, Léo Gillot-Lamure,
15937 Marc-Antoine Perennou, Martin Pitt, Matthew Monaco, Maxim
15938 A. Mikityanskiy, Michael Biebl, Michael Olbrich, Michal
15939 Schmidt, Nis Martensen, Patrick McCarty, Roberto Sassu, Shawn
15940 Landden, Sjoerd Simons, Sven Anders, Tollef Fog Heen, Tom
15941 Gundersen
15942
16f1239e 15943CHANGES WITH 44:
b6a86739 15944
16f1239e
LP
15945 * This is mostly a bugfix release
15946
15947 * Support optional initialization of the machine ID from the
15948 KVM or container configured UUID.
15949
15950 * Support immediate reboots with "systemctl reboot -ff"
15951
15952 * Show /etc/os-release data in systemd-analyze output
15953
ab06eef8 15954 * Many bugfixes for the journal, including endianness fixes and
16f1239e
LP
15955 ensuring that disk space enforcement works
15956
ce830873 15957 * sd-login.h is C++ compatible again
16f1239e
LP
15958
15959 * Extend the /etc/os-release format on request of the Debian
15960 folks
15961
15962 * We now refuse non-UTF8 strings used in various configuration
d28315e4 15963 and unit files. This is done to ensure we do not pass invalid
16f1239e
LP
15964 data over D-Bus or expose it elsewhere.
15965
15966 * Register Mimo USB Screens as suitable for automatic seat
15967 configuration
15968
15969 * Read SELinux client context from journal clients in a race
15970 free fashion
15971
15972 * Reorder configuration file lookup order. /etc now always
15973 overrides /run in order to allow the administrator to always
b938cb90 15974 and unconditionally override vendor-supplied or
16f1239e
LP
15975 automatically generated data.
15976
15977 * The various user visible bits of the journal now have man
15978 pages. We still lack man pages for the journal API calls
15979 however.
15980
15981 * We now ship all man pages in HTML format again in the
15982 tarball.
15983
15984 Contributions from: Dave Reisner, Dirk Eibach, Frederic
15985 Crozat, Harald Hoyer, Kay Sievers, Lennart Poettering, Marti
15986 Raudsepp, Michal Schmidt, Shawn Landden, Tero Roponen, Thierry
15987 Reding
15988
437b7dee 15989CHANGES WITH 43:
b6a86739 15990
437b7dee
LP
15991 * This is mostly a bugfix release
15992
15993 * systems lacking /etc/os-release are no longer supported.
15994
15995 * Various functionality updates to libsystemd-login.so
15996
45afd519 15997 * Track class of PAM logins to distinguish greeters from
437b7dee
LP
15998 normal user logins.
15999
16000 Contributions from: Kay Sievers, Lennart Poettering, Michael
16001 Biebl
16002
204fa33c 16003CHANGES WITH 42:
b6a86739 16004
204fa33c
LP
16005 * This is an important bugfix release for v41.
16006
16007 * Building man pages is now optional which should be useful
16008 for those building systemd from git but unwilling to install
16009 xsltproc.
16010
16011 * Watchdog support for supervising services is now usable. In
16012 a future release support for hardware watchdogs
16013 (i.e. /dev/watchdog) will be added building on this.
16014
16015 * Service start rate limiting is now configurable and can be
16016 turned off per service. When a start rate limit is hit a
16017 reboot can automatically be triggered.
16018
16019 * New CanReboot(), CanPowerOff() bus calls in systemd-logind.
16020
16021 Contributions from: Benjamin Franzke, Bill Nottingham,
16022 Frederic Crozat, Lennart Poettering, Michael Olbrich, Michal
16023 Schmidt, Michał Górny, Piotr Drąg
16024
e0d25329 16025CHANGES WITH 41:
b6a86739 16026
e0d25329
KS
16027 * The systemd binary is installed /usr/lib/systemd/systemd now;
16028 An existing /sbin/init symlink needs to be adapted with the
16029 package update.
16030
b13df964
LP
16031 * The code that loads kernel modules has been ported to invoke
16032 libkmod directly, instead of modprobe. This means we do not
16033 support systems with module-init-tools anymore.
16034
16035 * Watchdog support is now already useful, but still not
16036 complete.
16037
16038 * A new kernel command line option systemd.setenv= is
16039 understood to set system wide environment variables
16040 dynamically at boot.
16041
e9c1ea9d 16042 * We now limit the set of capabilities of systemd-journald.
ccd07a08 16043
353e12c2
LP
16044 * We now set SIGPIPE to ignore by default, since it only is
16045 useful in shell pipelines, and has little use in general
16046 code. This can be disabled with IgnoreSIPIPE=no in unit
16047 files.
16048
b13df964
LP
16049 Contributions from: Benjamin Franzke, Kay Sievers, Lennart
16050 Poettering, Michael Olbrich, Michal Schmidt, Tom Gundersen,
16051 William Douglas
16052
d26e4270 16053CHANGES WITH 40:
b6a86739 16054
d26e4270
LP
16055 * This is mostly a bugfix release
16056
16057 * We now expose the reason why a service failed in the
16058 "Result" D-Bus property.
16059
16060 * Rudimentary service watchdog support (will be completed over
16061 the next few releases.)
16062
16063 * When systemd forks off in order execute some service we will
16064 now immediately changes its argv[0] to reflect which process
16065 it will execute. This is useful to minimize the time window
16066 with a generic argv[0], which makes bootcharts more useful
16067
b13df964
LP
16068 Contributions from: Alvaro Soliverez, Chris Paulson-Ellis, Kay
16069 Sievers, Lennart Poettering, Michael Olbrich, Michal Schmidt,
16070 Mike Kazantsev, Ray Strode
16071
220a21d3 16072CHANGES WITH 39:
b6a86739 16073
220a21d3
LP
16074 * This is mostly a test release, but incorporates many
16075 bugfixes.
16076
16077 * New systemd-cgtop tool to show control groups by their
16078 resource usage.
16079
16080 * Linking against libacl for ACLs is optional again. If
16081 disabled, support tracking device access for active logins
16082 goes becomes unavailable, and so does access to the user
16083 journals by the respective users.
16084
16085 * If a group "adm" exists, journal files are automatically
16086 owned by them, thus allow members of this group full access
16087 to the system journal as well as all user journals.
16088
16089 * The journal now stores the SELinux context of the logging
16090 client for all entries.
16091
16092 * Add C++ inclusion guards to all public headers
16093
16094 * New output mode "cat" in the journal to print only text
16095 messages, without any meta data like date or time.
16096
16097 * Include tiny X server wrapper as a temporary stop-gap to
16098 teach XOrg udev display enumeration. This is used by display
16099 managers such as gdm, and will go away as soon as XOrg
16100 learned native udev hotplugging for display devices.
16101
16102 * Add new systemd-cat tool for executing arbitrary programs
16103 with STDERR/STDOUT connected to the journal. Can also act as
16104 BSD logger replacement, and does so by default.
16105
16106 * Optionally store all locally generated coredumps in the
16107 journal along with meta data.
16108
16109 * systemd-tmpfiles learnt four new commands: n, L, c, b, for
16110 writing short strings to files (for usage for /sys), and for
16111 creating symlinks, character and block device nodes.
16112
16113 * New unit file option ControlGroupPersistent= to make cgroups
16114 persistent, following the mechanisms outlined in
56cadcb6 16115 https://www.freedesktop.org/wiki/Software/systemd/PaxControlGroups
220a21d3
LP
16116
16117 * Support multiple local RTCs in a sane way
16118
16119 * No longer monopolize IO when replaying readahead data on
16120 rotating disks, since we might starve non-file-system IO to
16121 death, since fanotify() will not see accesses done by blkid,
16122 or fsck.
16123
d28315e4 16124 * Do not show kernel threads in systemd-cgls anymore, unless
220a21d3
LP
16125 requested with new -k switch.
16126
16127 Contributions from: Dan Horák, Kay Sievers, Lennart
16128 Poettering, Michal Schmidt
16129
16130CHANGES WITH 38:
b6a86739 16131
220a21d3
LP
16132 * This is mostly a test release, but incorporates many
16133 bugfixes.
16134
16135 * The git repository moved to:
16136 git://anongit.freedesktop.org/systemd/systemd
16137 ssh://git.freedesktop.org/git/systemd/systemd
16138
16139 * First release with the journal
dc7e580e 16140 https://0pointer.de/blog/projects/the-journal.html
220a21d3
LP
16141
16142 * The journal replaces both systemd-kmsg-syslogd and
16143 systemd-stdout-bridge.
16144
16145 * New sd_pid_get_unit() API call in libsystemd-logind
16146
16147 * Many systemadm clean-ups
16148
16149 * Introduce remote-fs-pre.target which is ordered before all
16150 remote mounts and may be used to start services before all
16151 remote mounts.
16152
16153 * Added Mageia support
16154
16155 * Add bash completion for systemd-loginctl
16156
16157 * Actively monitor PID file creation for daemons which exit in
16158 the parent process before having finished writing the PID
16159 file in the daemon process. Daemons which do this need to be
16160 fixed (i.e. PID file creation must have finished before the
16161 parent exits), but we now react a bit more gracefully to them.
16162
16163 * Add colourful boot output, mimicking the well-known output
16164 of existing distributions.
16165
16166 * New option PassCredentials= for socket units, for
16167 compatibility with a recent kernel ABI breakage.
16168
16169 * /etc/rc.local is now hooked in via a generator binary, and
16170 thus will no longer act as synchronization point during
16171 boot.
16172
16173 * systemctl list-unit-files now supports --root=.
16174
16175 * systemd-tmpfiles now understands two new commands: z, Z for
16176 relabelling files according to the SELinux database. This is
16177 useful to apply SELinux labels to specific files in /sys,
16178 among other things.
16179
16180 * Output of SysV services is now forwarded to both the console
16181 and the journal by default, not only just the console.
16182
16183 * New man pages for all APIs from libsystemd-login.
16184
ce830873 16185 * The build tree got reorganized and the build system is a
220a21d3
LP
16186 lot more modular allowing embedded setups to specifically
16187 select the components of systemd they are interested in.
16188
16189 * Support for Linux systems lacking the kernel VT subsystem is
16190 restored.
16191
16192 * configure's --with-rootdir= got renamed to
16193 --with-rootprefix= to follow the naming used by udev and
16194 kmod
16195
d28315e4 16196 * Unless specified otherwise we will now install to /usr instead
220a21d3
LP
16197 of /usr/local by default.
16198
16199 * Processes with '@' in argv[0][0] are now excluded from the
16200 final shut-down killing spree, following the logic explained
16201 in:
a794a4d8 16202 https://systemd.io/ROOT_STORAGE_DAEMONS/
220a21d3
LP
16203
16204 * All processes remaining in a service cgroup when we enter
16205 the START or START_PRE states are now killed with
16206 SIGKILL. That means it is no longer possible to spawn
16207 background processes from ExecStart= lines (which was never
16208 supported anyway, and bad style).
16209
16210 * New PropagateReloadTo=/PropagateReloadFrom= options to bind
16211 reloading of units together.
16212
4c8cd173 16213 Contributions from: Bill Nottingham, Daniel J. Walsh, Dave
220a21d3
LP
16214 Reisner, Dexter Morgan, Gregs Gregs, Jonathan Nieder, Kay
16215 Sievers, Lennart Poettering, Michael Biebl, Michal Schmidt,
16216 Michał Górny, Ran Benita, Thomas Jarosch, Tim Waugh, Tollef
16217 Fog Heen, Tom Gundersen, Zbigniew Jędrzejewski-Szmek