]> git.ipfire.org Git - thirdparty/systemd.git/blame - NEWS
man: only document new PCR 12
[thirdparty/systemd.git] / NEWS
CommitLineData
d657c51f 1systemd System and Service Manager
220a21d3 2
1d2842d1
YW
3CHANGES WITH 251:
4 * Incompatibility and Regression note:
f338a496
YW
5 In v250, the feature that automatically configures routes to addresses
6 specified in AllowedIPs= was added and enabled by default. However,
7 this feature causes network connectivity issues on many existing
8 setups. Hence, this is disabled by default since v250.3. The feature
9 can still be used by explicitly configuring RouteTable= setting in
10 .netdev files.
1d2842d1 11
169bb1de
LB
12 * Jobs started via StartUnitWithFlags() will no longer return 'skipped'
13 when a Condition*= check does not succeed, restoring the JobRemoved
14 signal to the behaviour it had before v250.
15
ce3ca32c
LB
16 * The org.freedesktop.portable1 methods GetMetadataWithExtensions and
17 GetImageMetadataWithExtensions have been fixed to provide an extra return
18 parameter, containing the actual extensions release metadata. The
19 current implementation was judged to be broken and unusable, and thus
20 the usual procedure of adding a new set of methods is skipped, opting
21 for breaking backward compatibility instead, as nobody should be
22 affected, given the state of the current interface.
23
5e9c57d2
LP
24 * Service monitor environment variables will only be passed to
25 OnFailure=/OnSuccess= handlers if exactly one unit lists the handler
26 unit as OnFailure=/OnSuccess=. Therefore, $MONITOR_METADATA is no
27 longer used, and instead separate variables are used:
28 $MONITOR_SERVICE_RESULT, $MONITOR_EXIT_CODE, $MONITOR_EXIT_STATUS,
29 $MONITOR_INVOCATION_ID and $MONITOR_UNIT. For cases when a single
30 handler needs to watch multiple units, use a templated handler.
31
32 * kernel-install's and bootctl's Boot Loader Specification Type #1
33 entry generation logic has been reworked. The user may now pick
34 explicitly by which "token" string to name the installation's boot
35 entries, through the new /etc/kernel/entry-token file or the new
36 --entry-token= switch to bootctl. By default — as before — the
37 entries are named after the local machine ID. However, in "golden
38 image" environments, where the machine ID shall be initialized on
39 first boot (as opposed to at installation time before first boot) the
40 machine ID is not be available at build time to name the entry
41 after. In this case the the --entry-token= switch to bootctl (or the
42 /etc/kernel/entry-token file) may be used to override the "token" to
43 identify the entry by, and use another ID, for example the IMAGE_ID=
44 or ID= fields from /etc/os-release. This will make the OS images
45 independent of any machine ID, and ensure that the images will not
46 carry any identifiable information before first boot, but on the
47 other hand means that multiple parallel installations of the very
48 same image on the same disk cannot be supported. Summary: if you are
49 building golden images that shall acquire identity information
50 exclusively on first boot, make sure to both remove /etc/machine-id
51 *and* to write /etc/kernel/entry-token to the value of the IMAGE_ID
52 or ID field of /etc/os-release or another suitable identifier before
53 deploying the image.
54
55 * The --make-machine-id-directory= switch to bootctl has been replaced
56 by --make-entry-directory=, given that the entry directory is not
57 necessarily named after the machine ID, but after some other suitable
58 ID as selected via --entry-token= described above. The old name of
59 the option is still understood to maximize compatibility.
3fbd5f20 60
429cddba
LB
61 * Services with Restart=always and a failing ExecCondition= will no longer
62 be restarted, to bring ExecCondition= in line with Condition*= settings.
63
dfdaf9f2
LP
64 * Starting with v250 systemd-homed uses UID/GID mapping on the mounts
65 of activated home directories it manages (if the kernel and selected
66 file systems support it). So far it mapped three UID ranges: the
67 range from 0…60000, the user's own UID, and the range 60514…65534,
68 leaving everything else unmapped (in other words, the 16bit UID range
69 is mapped almost fully, with the exception of the UID subrange used
70 for systemd-homed users, with one exception from that: the user's own
71 UID). Unmapped UIDs may not be used for file ownership in the home
5cf84d25 72 directory — any chown() attempts with them will fail. With this
dfdaf9f2
LP
73 release a fourth range is added to these mappings:
74 524288…1879048191. This range is the UID range intended for container
75 uses, see:
76
77 https://systemd.io/UIDS-GIDS
78
79 This range may be used for container managers that place container OS
80 trees in the home directory (which is a questionable approach, for
81 quota, permission, SUID handling and network file system
82 compatibility reasons, but nonetheless apparently commonplace). Note
83 that this mapping is mapped 1:1 in a pass-through fashion, i.e. the
84 UID assignments from the range are not managed or mapped by
85 `systemd-homed`, and must be managed with other mechanisms, in the
86 context of the local system.
87
88 Typically, a better approach to user namespacing in relevant
89 container managers would be to leave container OS trees on disk at
90 UID offset 0, but then map them to a dynamically allocated runtime
91 UID range via another UID mount map at container invocation
92 time. That way user namespace UID ranges become strictly a runtime
93 concept, and do not leak into persistent file systems, persistent
94 user databases or persistent configuration, thus greatly simplifying
95 handling, and improving compatibility with home directories intended
96 to be portable like the ones managed by systemd-homed.
7e7a9f9c 97
ffa047a0
JD
98 * All kernels supported by systemd mix RDRAND (or similar) into the
99 entropy pool at early boot. This means that on those systems, even
100 if /dev/urandom is not yet initialized, it still returns bytes that
101 that are at least as high quality as RDRAND. For that reason, we no
102 longer have reason to invoke RDRAND from systemd itself, which has
103 historically been a source of bugs. Furthermore, kernels ≥5.6 provide
104 the getrandom(GRND_INSECURE) interface for returning random bytes
105 before the entropy pool is initialized without warning into kmsg,
106 which is what we attempt to use if available. By removing systemd's
107 direct usage of RDRAND, x86 systems ≥Broadwell that are running an
108 older kernel may experience kmsg warnings that were not seen with
109 250. For newer kernels, non-x86 systems, or older x86 systems,
110 there should be no visible changes.
111
a420d717 112CHANGES WITH 250:
195d181c 113
dcdc652f
ZJS
114 * Support for encrypted and authenticated credentials has been added.
115 This extends the credential logic introduced with v247 to support
116 non-interactive symmetric encryption and authentication, based on a
117 key that is stored on the /var/ file system or in the TPM2 chip (if
118 available), or the combination of both (by default if a TPM2 chip
119 exists the combination is used, otherwise the /var/ key only). The
120 credentials are automatically decrypted at the moment a service is
121 started, and are made accessible to the service itself in unencrypted
122 form. A new tool 'systemd-creds' encrypts credentials for this
123 purpose, and two new service file settings LoadCredentialEncrypted=
124 and SetCredentialEncrypted= configure such credentials.
125
126 This feature is useful to store sensitive material such as SSL
127 certificates, passwords and similar securely at rest and only decrypt
128 them when needed, and in a way that is tied to the local OS
129 installation or hardware.
195d181c
LP
130
131 * systemd-gpt-auto-generator can now automatically set up discoverable
132 LUKS2 encrypted swap partitions.
133
dcdc652f
ZJS
134 * The GPT Discoverable Partitions Specification has been substantially
135 extended with support for root and /usr/ partitions for the majority
136 of architectures systemd supports. This includes platforms that do
137 not natively support UEFI, because even though GPT is specified under
138 UEFI umbrella, it is useful on other systems too. Specifically,
195d181c 139 systemd-nspawn, systemd-sysext, systemd-gpt-auto-generator and
dcdc652f
ZJS
140 Portable Services use the concept without requiring UEFI.
141
142 * The GPT Discoverable Partitions Specifications has been extended with
143 a new set of partitions that may carry PKCS#7 signatures for Verity
144 partitions, encoded in a simple JSON format. This implements a simple
145 mechanism for building disk images that are fully authenticated and
146 can be tested against a set of cryptographic certificates. This is
147 now implemented for the various systemd tools that can operate with
148 disk images, such as systemd-nspawn, systemd-sysext, systemd-dissect,
149 Portable services/RootImage=, systemd-tmpfiles, and systemd-sysusers.
150 The PKCS#7 signatures are passed to the kernel (where they are
195d181c
LP
151 checked against certificates from the kernel keyring), or can be
152 verified against certificates provided in userspace (via a simple
153 drop-in file mechanism).
154
155 * systemd-dissect's inspection logic will now report for which uses a
156 disk image is intended. Specifically, it will display whether an
157 image is suitable for booting on UEFI or in a container (using
158 systemd-nspawn's --image= switch), whether it can be used as portable
159 service, or attached as system extension.
160
161 * The system-extension.d/ drop-in files now support a new field
162 SYSEXT_SCOPE= that may encode which purpose a system extension image
163 is for: one of "initrd", "system" or "portable". This is useful to
164 make images more self-descriptive, and to ensure system extensions
165 cannot be attached in the wrong contexts.
166
167 * The os-release file learnt a new PORTABLE_PREFIXES= field which may
168 be used in portable service images to indicate which unit prefixes
169 are supported.
170
171 * The GPT image dissection logic in systemd-nspawn/systemd-dissect/…
172 now is able to decode images for non-native architectures as well.
dcdc652f
ZJS
173 This allows systemd-nspawn to boot images of non-native architectures
174 if the corresponding user mode emulator is installed and
175 systemd-binfmtd is running.
195d181c 176
dcdc652f 177 * systemd-logind gained new settings HandlePowerKeyLongPress=,
195d181c
LP
178 HandleRebootKeyLongPress=, HandleSuspendKeyLongPress= and
179 HandleHibernateKeyLongPress= which may be used to configure actions
180 when the relevant keys are pressed for more than 5s. This is useful
181 on devices that only have hardware for a subset of these keys. By
182 default, if the reboot key is pressed long the poweroff operation is
183 now triggered, and when the suspend key is pressed long the hibernate
184 operation is triggered. Long pressing the other two keys currently
185 does not trigger any operation by default.
186
187 * When showing unit status updates on the console during boot and
368910b1 188 shutdown, and a service is slow to start so that the cylon animation
195d181c
LP
189 is shown, the most recent sd_notify() STATUS= text is now shown as
190 well. Services may use this to make the boot/shutdown output easier
191 to understand, and to indicate what precisely a service that is slow
dcdc652f 192 to start or stop is waiting for. In particular, the per-user service
195d181c
LP
193 manager instance now reports what it is doing and which service it is
194 waiting for this way to the system service manager.
195
196 * The service manager will now re-execute on reception of the
197 SIGRTMIN+25 signal. It previously already did that on SIGTERM — but
198 only when running as PID 1. There was no signal to request this when
dcdc652f
ZJS
199 running as per-user service manager, i.e. as any other PID than 1.
200 SIGRTMIN+25 works for both system and user managers.
195d181c
LP
201
202 * The hardware watchdog logic in PID 1 gained support for operating
203 with the default timeout configured in the hardware, instead of
204 insisting on re-configuring it. Set RuntimeWatchdogSec=default to
205 request this behavior.
206
207 * A new kernel command line option systemd.watchdog_sec= is now
208 understood which may be used to override the hardware watchdog
209 time-out for the boot.
210
211 * A new setting DefaultOOMScoreAdjust= is now supported in
212 /etc/systemd/system.conf + /etc/systemd/user.conf that may be used to
213 set the default process OOM score adjustment value for processes
214 forked off the service manager. For per-user service managers this
215 now defaults to 100, but for per-system service managers is left as
216 is. This means that by default now services forked off the user
217 service manager are more likely to be killed by the OOM killer than
218 system services or the managers themselves.
219
220 * A new per-service setting RestrictFileSystems= as been added that
dcdc652f
ZJS
221 restricts the file systems a service has access to by their type.
222 This is based on the new BPF LSM of the Linux kernel. It provides an
223 effective way to make certain API file systems unavailable to
195d181c
LP
224 services (and thus minimizing attack surface). A new command
225 "systemd-analyze filesystems" has been added that lists all known
226 file system types (and how they are grouped together under useful
227 group handles).
228
229 * Services now support a new setting RestrictNetworkInterfaces= for
230 restricting access to specific network interfaces.
231
dcdc652f 232 * Service unit files gained new settings StartupAllowedCPUs= and
195d181c
LP
233 StartupAllowedMemoryNodes=. These are similar to their counterparts
234 without the "Startup" prefix and apply during the boot process
235 only. This is useful to improve boot-time behavior of the system and
236 assign resources differently during boot than during regular
237 runtime. This is similar to the preexisting StartupCPUWeight=
238 vs. CPUWeight.
239
240 * Related to this: the various StartupXYZ= settings
241 (i.e. StartupCPUWeight=, StartupAllowedCPUs=, …) are now also applied
242 during shutdown. The settings not prefixed with "Startup" hence apply
243 during regular runtime, and those that are prefixed like that apply
244 during boot and shutdown.
245
bf71ade8
LB
246 * A new per-unit set of conditions/asserts
247 [Condition|Assert][Memory|CPU|IO]Pressure= have been added to make a
248 unit skip/fail activation if the system's (or a slice's) memory/cpu/io
249 pressure is above the configured threshold, using the kernel PSI
dcdc652f 250 feature. For more details see systemd.unit(5) and
bf71ade8
LB
251 https://www.kernel.org/doc/html/latest/accounting/psi.html
252
253 * The combination of ProcSubset=pid and ProtectKernelTunables=yes and/or
254 ProtectKernelLogs=yes can now be used.
255
e63fa075 256 * The default maximum numbers of inodes have been raised from 64k to 1M
bb7031bc 257 for /dev/, and from 400k to 1M for /tmp/.
bf71ade8 258
195d181c
LP
259 * The per-user service manager learnt support for communicating with
260 systemd-oomd to acquire OOM kill information.
261
262 * A new service setting ExecSearchPath= has been added that allows
dcdc652f
ZJS
263 changing the search path for executables for services. It affects
264 where we look for the binaries specified in ExecStart= and similar,
265 and the specified directories are also added the $PATH environment
266 variable passed to invoked processes.
195d181c
LP
267
268 * A new setting RuntimeRandomizedExtraSec= has been added for service
269 and scope units that allows extending the runtime time-out as
270 configured by RuntimeMaxSec= with a randomized amount.
271
272 * The syntax of the service unit settings RuntimeDirectory=,
273 StateDirectory=, CacheDirectory=, LogsDirectory= has been extended:
dcdc652f 274 if the specified value is now suffixed with a colon, followed by
195d181c
LP
275 another filename, the latter will be created as symbolic link to the
276 specified directory. This allows creating these service directories
277 together with alias symlinks to make them available under multiple
278 names.
279
280 * Service unit files gained two new settings TTYRows=/TTYColumns= for
281 configuring rows/columns of the TTY device passed to
282 stdin/stdout/stderr of the service. This is useful to propagate TTY
dcdc652f 283 dimensions to a virtual machine.
195d181c 284
dcdc652f
ZJS
285 * A new service unit file setting ExitType= has been added that
286 specifies when to assume a service has exited. By default systemd
287 only watches the main process of a service. By setting
288 ExitType=cgroup it can be told to wait for the last process in a
289 cgroup instead.
195d181c
LP
290
291 * Automount unit files gained a new setting ExtraOptions= that can be
292 used to configure additional mount options to pass to the kernel when
293 mounting the autofs instance.
294
dcdc652f
ZJS
295 * "Urlification" (generation of ESC sequences that generate clickable
296 hyperlinks in modern terminals) may now be turned off altogether
297 during build-time.
195d181c 298
616779c3 299 * Path units gained new TriggerLimitBurst= and TriggerLimitIntervalSec=
28be02e0
ZJS
300 settings that default to 200 and 2 s respectively. The ratelimit
301 ensures that a path unit cannot cause PID1 to busy-loop when it is
302 trying to trigger a service that is skipped because of a Condition*=
303 not being satisfied. This matches the configuration and behaviour of
304 socket units.
616779c3 305
dcdc652f
ZJS
306 * The TPM2/FIDO2/PKCS11 support in systemd-cryptsetup is now also built
307 as a plug-in for cryptsetup. This means the plain cryptsetup command
308 may now be used to unlock volumes set up this way.
195d181c
LP
309
310 * The TPM2 logic in cryptsetup will now automatically detect systems
dcdc652f 311 where the TPM2 chip advertises SHA256 PCR banks but the firmware only
195d181c
LP
312 updates the SHA1 banks. In such a case PCR policies will be
313 automatically bound to the latter, not the former. This makes the PCR
314 policies reliable, but of course do not provide the same level of
315 trust as SHA256 banks.
316
317 * The TPM2 logic in systemd-cryptsetup/systemd-cryptsetup now supports
318 RSA primary keys in addition to ECC, improving compatibility with
319 TPM2 chips that do not support ECC. RSA keys are much slower to use
320 than ECC, and hence are only used if ECC is not available.
321
322 * /etc/crypttab gained support for a new token-timeout= setting for
dcdc652f
ZJS
323 encrypted volumes that allows configuration of the maximum time to
324 wait for PKCS#11/FIDO2 tokens to be plugged in. If the time elapses
325 the logic will query the user for a regular passphrase/recovery key
195d181c
LP
326 instead.
327
328 * Support for activating dm-integrity volumes at boot via a new file
dcdc652f
ZJS
329 /etc/integritytab and the tool systemd-integritysetup have been
330 added. This is similar to /etc/crypttab and /etc/veritytab, but deals
331 with dm-integrity instead of dm-crypt/dm-verity.
195d181c
LP
332
333 * The systemd-veritysetup-generator now understands a new usrhash=
334 kernel command line option for specifying the Verity root hash for
335 the partition backing the /usr/ file system. A matching set of
336 systemd.verity_usr_* kernel command line options has been added as
337 well. These all work similar to the corresponding options for the
338 root partition.
339
340 * The sd-device API gained a new API call sd_device_get_diskseq() to
341 return the DISKSEQ property of a device structure. The "disk
342 sequence" concept is a new feature recently introduced to the Linux
343 kernel that allows detecting reuse cycles of block devices, i.e. can
344 be used to recognize when loopback block devices are reused for a
345 different purpose or CD-ROM drives get their media changed.
346
347 * A new unit systemd-boot-update.service has been added. If enabled
348 (the default) and the sd-boot loader is detected to be installed, it
dcdc652f
ZJS
349 is automatically updated to the newest version when out of date. This
350 is useful to ensure the boot loader remains up-to-date, and updates
351 automatically propagate from the OS tree in /usr/.
195d181c 352
bf71ade8
LB
353 * sd-boot will now build with SBAT by default in order to facilitate
354 working with recent versions of Shim that require it to be present.
355
97b6ed32
ZJS
356 * sd-boot can now parse Microsoft Windows' Boot Configuration Data.
357 This is used to robustly generate boot entry titles for Windows.
358
195d181c
LP
359 * A new generic target unit factory-reset.target has been added. It is
360 hooked into systemd-logind similar in fashion to
361 reboot/poweroff/suspend/hibernate, and is supposed to be used to
362 initiate a factory reset operation. What precisely this operation
363 entails is up for the implementer to decide, the primary goal of the
364 new unit is provide a framework where to plug in the implementation
365 and how to trigger it.
366
367 * A new meson build-time option 'clock-valid-range-usec-max' has been
368 added which takes a time in µs and defaults to 15 years. If the RTC
369 time is noticed to be more than the specified time ahead of the
370 built-in epoch of systemd (which by default is the release timestamp
371 of systemd) it is assumed that the RTC is not working correctly, and
372 the RTC is reset to the epoch. (It already is reset to the epoch when
373 noticed to be before it.) This should increase the chance that time
374 doesn't accidentally jump too far ahead due to faulty hardware or
375 batteries.
376
63b7d347
YW
377 * A new setting SaveIntervalSec= has been added to systemd-timesyncd,
378 which may be used to automatically save the current system time to
379 disk in regular intervals. This is useful to maintain a roughly
380 monotonic clock even without RTC hardware and with some robustness
381 against abnormal system shutdown.
382
195d181c
LP
383 * systemd-analyze verify gained support for a pair of new --image= +
384 --root= switches for verifying units below a specific root
385 directory/image instead of on the host.
386
387 * systemd-analyze verify gained support for verifying unit files under
388 an explicitly specified unit name, independently of what the filename
389 actually is.
390
dcdc652f
ZJS
391 * systemd-analyze verify gained a new switch --recursive-errors= which
392 controls whether to only fail on errors found in the specified units
393 or recursively any dependent units.
394
395 * systemd-analyze security now supports a new --offline mode for
396 analyzing unit files stored on disk instead of loaded units. It may
397 be combined with --root=/--image to analyze unit files under a root
398 directory or disk image. It also learnt a new --threshold= parameter
399 for specifying an exposure level threshold: if the exposure level
400 exceeds the specified value the call will fail. It also gained a new
401 --security-policy= switch for configuring security policies to
402 enforce on the units. A policy is a JSON file that lists which tests
403 shall be weighted how much to determine the overall exposure
404 level. Altogether these new features are useful for fully automatic
405 analysis and enforcement of security policies on unit files.
406
407 * systemd-analyze security gain a new --json= switch for JSON output.
408
409 * systemd-analyze learnt a new --quiet switch for reducing
410 non-essential output. It's honored by the "dot", "syscall-filter",
411 "filesystems" commands.
412
bb7031bc 413 * systemd-analyze security gained a --profile= option that can be used
dcdc652f
ZJS
414 to take into account a portable profile when analyzing portable
415 services, since a lot of the security-related settings are enabled
416 through them.
417
418 * systemd-analyze learnt a new inspect-elf verb that parses ELF core
419 files, binaries and executables and prints metadata information,
420 including the build-id and other info described on:
421 https://systemd.io/COREDUMP_PACKAGE_METADATA/
422
c0b28d44
YW
423 * .network files gained a new UplinkInterface= in the [IPv6SendRA]
424 section, for automatically propagating DNS settings from other
425 interfaces.
bf71ade8 426
c0b28d44
YW
427 * The static lease DHCP server logic in systemd-networkd may now serve
428 IP addresses outside of the configured IP pool range for the server.
97b6ed32 429
c0b28d44
YW
430 * CAN support in systemd-networkd gained four new settings Loopback=,
431 OneShot=, PresumeAck=, ClassicDataLengthCode= for tweaking CAN
432 control modes. It gained a number of further settings for tweaking
433 CAN timing quanta.
bf71ade8 434
c0b28d44
YW
435 * The [CAN] section in .network file gained new TimeQuantaNSec=,
436 PropagationSegment=, PhaseBufferSegment1=, PhaseBufferSegment2=,
437 SyncJumpWidth=, DataTimeQuantaNSec=, DataPropagationSegment=,
438 DataPhaseBufferSegment1=, DataPhaseBufferSegment2=, and
439 DataSyncJumpWidth= settings to control bit-timing processed by the
440 CAN interface.
bf71ade8 441
c0b28d44
YW
442 * DHCPv4 client support in systemd-networkd learnt a new Label= option
443 for configuring the address label to apply to configure IPv4
444 addresses.
bf71ade8 445
c0b28d44
YW
446 * The [IPv6AcceptRA] section of .network files gained support for a new
447 UseMTU= setting that may be used to control whether to apply the
448 announced MTU settings to the local interface.
195d181c 449
63b7d347
YW
450 * The [DHCPv4] section in .network file gained a new Use6RD= boolean
451 setting to control whether the DHCPv4 client request and process the
452 DHCP 6RD option.
453
454 * The [DHCPv6PrefixDelegation] section in .network file is renamed to
455 [DHCPPrefixDelegation], as now the prefix delegation is also supported
456 with DHCPv4 protocol by enabling the Use6RD= setting.
457
458 * The [DHCPPrefixDelegation] section in .network file gained a new
459 setting UplinkInterface= to specify the upstream interface.
460
461 * The [DHCPv6] section in .network file gained a new setting
462 UseDelegatedPrefix= to control whether the delegated prefixes will be
463 propagated to the downstream interfaces.
195d181c
LP
464
465 * The [IPv6AcceptRA] section of .network files now understands two new
466 settings UseGateway=/UseRoutePrefix= for explicitly configuring
467 whether to use the relevant fields from the IPv6 Router Advertisement
468 records.
469
8adba772
ZJS
470 * The ForceDHCPv6PDOtherInformation= setting in the [DHCPv6] section
471 has been removed. Please use the WithoutRA= and UseDelegatedPrefix=
63b7d347
YW
472 settings in the [DHCPv6] section and the DHCPv6Client= setting in the
473 [IPv6AcceptRA] section to control when the DHCPv6 client is started
474 and how the delegated prefixes are handled by the DHCPv6 client.
475
63b7d347
YW
476 * The IPv6Token= section in the [Network] section is deprecated, and
477 the [IPv6AcceptRA] section gained the Token= setting for its
478 replacement. The [IPv6Prefix] section also gained the Token= setting.
479 The Token= setting gained 'eui64' mode to explicitly configure an
480 address with the EUI64 algorithm based on the interface MAC address.
481 The 'prefixstable' mode can now optionally take a secret key. The
482 Token= setting in the [DHCPPrefixDelegation] section now supports all
483 algorithms supported by the same settings in the other sections.
484
485 * The [RoutingPolicyRule] section of .network file gained a new
486 SuppressInterfaceGroup= setting.
195d181c
LP
487
488 * The IgnoreCarrierLoss= setting in the [Network] section of .network
dcdc652f
ZJS
489 files now allows a duration to be specified, controlling how long to
490 wait before reacting to carrier loss.
195d181c 491
dcdc652f
ZJS
492 * The [DHCPServer] section of .network file gained a new Router=
493 setting to specify the router address.
11b10922 494
c0b28d44
YW
495 * The [CAKE] section of .network files gained various new settings
496 AutoRateIngress=, CompensationMode=, FlowIsolationMode=, NAT=,
497 MPUBytes=, PriorityQueueingPreset=, FirewallMark=, Wash=, SplitGSO=,
498 and UseRawPacketSize= for configuring CAKE.
499
500 * systemd-networkd now ships with new default .network files:
501 80-container-vb.network which matches host-side network bridge device
502 created by systemd-nspawn's --network-bridge or --network-zone
503 switch, and 80-6rd-tunnel.network which matches automatically created
504 sit tunnel with 6rd prefix when the DHCP 6RD option is received.
505
506 * systemd-networkd's handling of Endpoint= resolution for WireGuard
507 interfaces has been improved.
508
509 * systemd-networkd will now automatically configure routes to addresses
510 specified in AllowedIPs=. This feature can be controlled via
511 RouteTable= and RouteMetric= settings in [WireGuard] or
512 [WireGuardPeer] sections.
513
514 * systemd-networkd will now once again automatically generate persistent
515 MAC addresses for batadv and bridge interfaces. Users can disable this
516 by using MACAddress=none in .netdev files.
517
518 * systemd-networkd and systemd-udevd now support IP over InfiniBand
519 interfaces. The Kind= setting in .netdev file accepts "ipoib". And
520 systemd.netdev files gained the [IPoIB] section.
521
522 * systemd-networkd and systemd-udevd now support net.ifname-policy=
523 option on the kernel command-line. This is implemented through the
524 systemd-network-generator service that automatically generates
525 appropriate .link, .network, and .netdev files.
526
527 * The various systemd-udevd "ethtool" buffer settings now understand
528 the special value "max" to configure the buffers to the maximum the
529 hardware supports.
530
531 * systemd-udevd's .link files may now configure a large variety of
532 NIC coalescing settings, plus more hardware offload settings.
533
534 * .link files gained a new WakeOnLanPassword= setting in the [Link]
535 section that allows to specify a WoL "SecureOn" password on hardware
536 that supports this.
537
195d181c
LP
538 * systemd-nspawn's --setenv= switch now supports an additional syntax:
539 if only a variable name is specified (i.e. without being suffixed by
540 a '=' character and a value) the current value of the environment
541 variable is propagated to the container. e.g. --setenv=FOO will
542 lookup the current value of $FOO in the environment, and pass it down
543 to the container. Similar behavior has been added to homectl's,
544 machinectl's and systemd-run's --setenv= switch.
545
546 * systemd-nspawn gained a new switch --suppress-sync= which may be used
547 to optionally suppress the effect of the sync()/fsync()/fdatasync()
548 system calls for the container payload. This is useful for build
549 system environments where safety against abnormal system shutdown is
550 not essential as all build artifacts can be regenerated any time, but
551 the performance win is beneficial.
552
dcdc652f
ZJS
553 * systemd-nspawn will now raise the RLIMIT_NOFILE hard limit to the
554 same value that PID 1 uses for most forked off processes.
195d181c
LP
555
556 * systemd-nspawn's --bind=/--bind-ro= switches now optionally take
557 uidmap/nouidmap options as last parameter. If "uidmap" is used the
558 bind mounts are created with UID mapping taking place that ensures
559 the host's file ownerships are mapped 1:1 to container file
560 ownerships, even if user namespacing is used. This way
561 files/directories bound into containers will no longer show up as
dcdc652f 562 owned by the nobody user as they typically did if no special care was
195d181c
LP
563 taken to shift them manually.
564
565 * When discovering Windows installations sd-boot will now attempt to
dcdc652f 566 show the Windows version.
195d181c
LP
567
568 * The color scheme to use in sd-boot may now be configured at
569 build-time.
570
195d181c
LP
571 * sd-boot gained the ability to change screen resolution during
572 boot-time, by hitting the "r" key. This will cycle through available
dcdc652f 573 resolutions and save the last selection.
195d181c
LP
574
575 * sd-boot learnt a new hotkey "f". When pressed the system will enter
576 firmware setup. This is useful in environments where it is difficult
577 to hit the right keys early enough to enter the firmware, and works
578 on any firmware regardless which key it natively uses.
579
580 * sd-boot gained support for automatically booting into the menu item
581 selected on the last boot (using the "@saved" identifier for menu
582 items).
583
dcdc652f
ZJS
584 * sd-boot gained support for automatically loading all EFI drivers
585 placed in the /EFI/systemd/drivers/ subdirectory of the EFI System
586 Partition (ESP). These drivers are loaded before the menu entries are
587 loaded. This is useful e.g. to load additional file system drivers
588 for the XBOOTLDR partition.
589
590 * systemd-boot will now paint the input cursor on its own instead of
591 relying on the firmware to do so, increasing compatibility with broken
592 firmware that doesn't make the cursor reasonably visible.
593
195d181c
LP
594 * sd-boot now embeds a .osrel PE section like we expect from Boot
595 Loader Specification Type #2 Unified Kernels. This means sd-boot
596 itself may be used in place of a Type #2 Unified Kernel. This is
597 useful for debugging purposes as it allows chain-loading one a
598 (development) sd-boot instance from another.
599
600 * sd-boot now supports a new "devicetree" field in Boot Loader
601 Specification Type #1 entries: if configured the specified device
602 tree file is installed before the kernel is invoked. This is useful
603 for installing/applying new devicetree files without updating the
604 kernel image.
605
dcdc652f 606 * Similarly, sd-stub now can read devicetree data from a PE section
195d181c
LP
607 ".dtb" and apply it before invoking the kernel.
608
609 * sd-stub (the EFI stub that can be glued in front of a Linux kernel)
97b6ed32
ZJS
610 gained the ability to pick up credentials and sysext files, wrap them
611 in a cpio archive, and pass as an additional initrd to the invoked
612 Linux kernel, in effect placing those files in the /.extra/ directory
613 of the initrd environment. This is useful to implement trusted initrd
614 environments which are fully authenticated but still can be extended
615 (via sysexts) and parameterized (via encrypted/authenticated
616 credentials, see above).
617
618 Credentials can be located next to the kernel image file (credentials
619 specific to a single boot entry), or in one of the shared directories
620 (credentials applicable to multiple boot entries).
195d181c
LP
621
622 * sd-stub now comes with a full man page, that explains its feature set
623 and how to combine a kernel image, an initrd and the stub to build a
624 complete EFI unified kernel image, implementing Boot Loader
625 Specification Type #2.
626
dcdc652f 627 * sd-stub may now provide the initrd to the executed kernel via the
195d181c
LP
628 LINUX_EFI_INITRD_MEDIA_GUID EFI protocol, adding compatibility for
629 non-x86 architectures.
630
dcdc652f
ZJS
631 * bootctl learnt new set-timeout and set-timeout-oneshot commands that
632 may be used to set the boot menu time-out of the boot loader (for all
633 or just the subsequent boot).
195d181c 634
c20ecc94
ZJS
635 * bootctl and kernel-install will now read KERNEL_INSTALL_MACHINE_ID
636 and KERNEL_INSTALL_LAYOUT from kernel/install.conf. The first
637 variable specifies the machine-id to use for installation. It would
638 previously be used if set in the environment, and now it'll also be
639 read automatically from the config file. The second variable is new.
640 When set, it specifies the layout to use for installation directories
641 on the boot partition, so that tools don't need to guess it based on
642 the already-existing directories. The only value that is defined
643 natively is "bls", corresponding to the layout specified in
644 https://systemd.io/BOOT_LOADER_SPECIFICATION/. Plugins for
645 kernel-install that implement a different layout can declare other
646 values for this variable.
647
648 'bootctl install' will now write KERNEL_INSTALL_LAYOUT=bls, on the
649 assumption that if the user installed sd-boot to the ESP, they intend
650 to use the entry layout understood by sd-boot. It'll also write
651 KERNEL_INSTALL_MACHINE_ID= if it creates any directories using the ID
652 (and it wasn't specified in the config file yet). Similarly,
653 kernel-install will now write KERNEL_INSTALL_MACHINE_ID= (if it
654 wasn't specified in the config file yet). Effectively, those changes
655 mean that the machine-id used for boot loader entry installation is
656 "frozen" upon first use and becomes independent of the actual
657 machine-id.
658
659 Configuring KERNEL_INSTALL_MACHINE_ID fixes the following problem:
660 images created for distribution ("golden images") are built with no
661 machine-id, so that a unique machine-id can be created on the first
662 boot. But those images may contain boot loader entries with the
663 machine-id used during build included in paths. Using a "frozen"
664 value allows unambiguously identifying entries that match the
665 specific installation, while still permitting parallel installations
666 without conflict.
667
668 Configuring KERNEL_INSTALL_LAYOUT obviates the need for
669 kernel-install to guess the installation layout. This fixes the
670 problem where a (possibly empty) directory in the boot partition is
671 created from a different layout causing kernel-install plugins to
672 assume the wrong layout. A particular example of how this may happen
673 is the grub2 package in Fedora which includes directories under /boot
674 directly in its file list. Various other packages pull in grub2 as a
675 dependency, so it may be installed even if unused, breaking
676 installations that use the bls layout.
677
97b6ed32
ZJS
678 * bootctl and systemd-bless-boot can now be linked statically.
679
195d181c 680 * systemd-sysext now optionally doesn't insist on extension-release.d/
dcdc652f 681 files being placed in the image under the image's file name. If the
195d181c 682 file system xattr user.extension-release.strict is set on the
dcdc652f 683 extension release file, it is accepted regardless of its name. This
195d181c
LP
684 relaxes security restrictions a bit, as system extension may be
685 attached under a wrong name this way.
686
687 * udevadm's test-builtin command learnt a new --action= switch for
688 testing the built-in with the specified action (in place of the
dcdc652f 689 default 'add').
195d181c
LP
690
691 * udevadm info gained new switches --property=/--value for showing only
692 specific udev properties/values instead of all.
693
694 * A new hwdb database has been added that contains matches for various
695 types of signal analyzers (protocol analyzers, logic analyzers,
696 oscilloscopes, multimeters, bench power supplies, etc.) that should
697 be accessible to regular users.
698
699 * A new hwdb database entry has been added that carries information
dcdc652f
ZJS
700 about types of cameras (regular or infrared), and in which direction
701 they point (front or back).
195d181c 702
11b10922
LB
703 * A new rule to allow console users access to rfkill by default has been
704 added to hwdb.
705
97b6ed32
ZJS
706 * Device nodes for the Software Guard eXtension enclaves (sgx_vepc) are
707 now also owned by the system group "sgx".
708
195d181c 709 * A new build-time meson option "extra-net-naming-schemes=" has been
dcdc652f
ZJS
710 added to define additional naming schemes schemes for udev's network
711 interface naming logic. This is useful for enterprise distributions
712 and similar which want to pin the schemes of certain distribution
713 releases under a specific name and previously had to patch the
714 sources to introduce new named schemes.
195d181c
LP
715
716 * The predictable naming logic for network interfaces has been extended
717 to generate stable names from Xen netfront device information.
718
719 * hostnamed's chassis property can now be sourced from chassis-type
dcdc652f 720 field encoded in devicetree (in addition to the existing DMI
195d181c
LP
721 support).
722
dcdc652f 723 * systemd-cgls now optionally displays cgroup IDs and extended
195d181c
LP
724 attributes for each cgroup. (Controllable via the new --xattr= +
725 --cgroup-id= switches.)
726
727 * coredumpctl gained a new --all switch for operating on all
728 Journal files instead of just the local ones.
729
bf71ade8
LB
730 * systemd-coredump will now use libdw/libelf via dlopen() rather than
731 directly linking, allowing users to easily opt-out of backtrace/metadata
732 analysis of core files, and reduce image sizes when this is not needed.
733
734 * systemd-coredump will now analyze core files with libdw/libelf in a
735 forked, sandboxed process.
736
195d181c
LP
737 * systemd-homed will now try to unmount an activate home area in
738 regular intervals once the user logged out fully. Previously this was
739 attempted exactly once but if the home directory was busy for some
740 reason it was not tried again.
741
dcdc652f 742 * systemd-homed's LUKS2 home area backend will now create a BSD file
195d181c 743 system lock on the image file while the home area is active
dcdc652f 744 (i.e. mounted). If a home area is found to be locked, logins are
195d181c
LP
745 politely refused. This should improve behavior when using home areas
746 images that are accessible via the network from multiple clients, and
747 reduce the chance of accidental file system corruption in that case.
748
749 * Optionally, systemd-homed will now drop the kernel buffer cache once
dcdc652f 750 a user has fully logged out, configurable via the new --drop-caches=
195d181c
LP
751 homectl switch.
752
dcdc652f
ZJS
753 * systemd-homed now makes use of UID mapped mounts for the home areas.
754 If the kernel and used file system support it, files are now
195d181c
LP
755 internally owned by the "nobody" user (i.e. the user typically used
756 for indicating "this ownership is not mapped"), and dynamically
757 mapped to the UID used locally on the system via the UID mapping
758 mount logic of recent kernels. This makes migrating home areas
dcdc652f
ZJS
759 between different systems cheaper because recursively chown()ing file
760 system trees is no longer necessary.
195d181c
LP
761
762 * systemd-homed's CIFS backend now optionally supports CIFS service
763 names with a directory suffix, in order to place home directories in
764 a subdirectory of a CIFS share, instead of the top-level directory.
765
766 * systemd-homed's CIFS backend gained support for specifying additional
767 mount options in the JSON user record (cifsExtraMountOptions field,
768 and --cifs-extra-mount-options= homectl switch). This is for example
769 useful for configuring mount options such as "noserverino" that some
dcdc652f
ZJS
770 SMB3 services require (use that to run a homed home directory from a
771 FritzBox SMB3 share this way).
195d181c
LP
772
773 * systemd-homed will now default to btrfs' zstd compression for home
dcdc652f
ZJS
774 areas. This is inspired by Fedora's recent decision to switch to zstd
775 by default.
195d181c
LP
776
777 * Additional mount options to use when mounting the file system of
778 LUKS2 volumes in systemd-homed has been added. Via the
779 $SYSTEMD_HOME_MOUNT_OPTIONS_BTRFS, $SYSTEMD_HOME_MOUNT_OPTIONS_EXT4,
780 $SYSTEMD_HOME_MOUNT_OPTIONS_XFS environment variables to
781 systemd-homed or via the luksExtraMountOptions user record JSON
782 property. (Exposed via homectl --luks-extra-mount-options)
783
784 * homectl's resize command now takes the special size specifications
785 "min" and "max" to shrink/grow the home area to the minimum/maximum
786 size possible, taking disk usage/space constraints and file system
787 limitations into account. Resizing is now generally graceful: the
788 logic will try to get as close to the specified size as possible, but
789 not consider it a failure if the request couldn't be fulfilled
790 precisely.
791
792 * systemd-homed gained the ability to automatically shrink home areas
793 on logout to their minimal size and grow them again on next
dcdc652f
ZJS
794 login. This ensures that while inactive, a home area only takes up
795 the minimal space necessary, but once activated, it provides
796 sufficient space for the user's needs. This behavior is only
797 supported if btrfs is used as file system inside the home area
798 (because only for btrfs online growing/shrinking is implemented in
799 the kernel). This behavior is now enabled by default, but may be
800 controlled via the new --auto-resize-mode= setting of homectl.
195d181c
LP
801
802 * systemd-homed gained support for automatically re-balancing free disk
803 space among active home areas, in case the LUKS2 backends are used,
804 and no explicit disk size was requested. This way disk space is
805 automatically managed and home areas resized in regular intervals and
806 manual resizing when disk space becomes scarce should not be
807 necessary anymore. This behavior is only supported if btrfs is used
808 within the home areas (as only then online shrinking and growing is
809 supported), and may be configured via the new rebalanceWeight JSON
810 user record field (as exposed via the new --rebalance-weight= homectl
811 setting). Re-balancing is mostly automatic, but can also be requested
812 explicitly via "homectl rebalance", which is synchronous, and thus
dcdc652f 813 may be used to wait until the rebalance run is complete.
195d181c
LP
814
815 * userdbctl gained a --json= switch for configured the JSON formatting
816 to use when outputting user or group records.
817
818 * userdbctl gained a new --multiplexer= switch for explicitly
819 configuring whether to use the systemd-userdbd server side user
820 record resolution logic.
821
822 * userdbctl's ssh-authorized-keys command learnt a new --chain switch,
823 for chaining up another command to execute after completing the
824 look-up. Since the OpenSSH's AuthorizedKeysCommand only allows
dcdc652f
ZJS
825 configuration of a single command to invoke, this maybe used to
826 invoke multiple: first userdbctl's own implementation, and then any
827 other also configured in the command line.
195d181c
LP
828
829 * The sd-event API gained a new function sd_event_add_inotify_fd() that
830 is similar to sd_event_add_inotify() but accepts a file descriptor
831 instead of a path in the file system for referencing the inode to
832 watch.
833
834 * The sd-event API gained a new function
835 sd_event_source_set_ratelimit_expire_callback() that may be used to
836 define a callback function that is called whenever an event source
837 leaves the rate limiting phase.
838
839 * New documentation has been added explaining which steps are necessary
840 to port systemd to a new architecture:
841
842 https://systemd.io/PORTING_TO_NEW_ARCHITECTURES
843
844 * The x-systemd.makefs option in /etc/fstab now explicitly supports
dcdc652f 845 ext2, ext3, and f2fs file systems.
195d181c 846
97b6ed32
ZJS
847 * Mount units and units generated from /etc/fstab entries with 'noauto'
848 are now ordered the same as other units. Effectively, they will be
849 started earlier (if something actually pulled them in) and stopped
850 later, similarly to normal mount units that are part of
b0b1edc2 851 fs-local.target. This change should be invisible to users, but
97b6ed32
ZJS
852 should prevent those units from being stopped too early during
853 shutdown.
854
195d181c
LP
855 * The systemd-getty-generator now honors a new kernel command line
856 argument systemd.getty_auto= and a new environment variable
857 $SYSTEMD_GETTY_AUTO that allows turning it off at boot. This is for
dcdc652f 858 example useful to turn off gettys inside of containers or similar
195d181c
LP
859 environments.
860
861 * systemd-resolved now listens on a second DNS stub address: 127.0.0.54
862 (in addition to 127.0.0.53, as before). If DNS requests are sent to
863 this address they are propagated in "bypass" mode only, i.e. are
864 almost not processed locally, but mostly forwarded as-is to the
865 current upstream DNS servers. This provides a stable DNS server
866 address that proxies all requests dynamically to the right upstream
867 DNS servers even if these dynamically change. This stub does not do
868 mDNS/LLMNR resolution. However, it will translate look-ups to
869 DNS-over-TLS if necessary. This new stub is particularly useful in
870 container/VM environments, or for tethering setups: use DNAT to
871 redirect traffic to any IP address to this stub.
872
bf71ade8
LB
873 * systemd-importd now honors new environment variables
874 $SYSTEMD_IMPORT_BTRFS_SUBVOL, $SYSTEMD_IMPORT_BTRFS_QUOTA,
875 $SYSTEMD_IMPORT_SYNC, which may be used disable btrfs subvolume
876 generation, btrfs quota setup and disk synchronization.
877
878 * systemd-importd and systemd-resolved can now be optionally built with
879 OpenSSL instead of libgcrypt.
880
881 * systemd-repart no longer requires OpenSSL.
882
dcdc652f
ZJS
883 * systemd-sysusers will no longer create the redundant 'nobody' group
884 by default, as the 'nobody' user is already created with an
885 appropriate primary group.
bf71ade8
LB
886
887 * If a unit uses RuntimeMaxSec, systemctl show will now display it.
888
11b10922
LB
889 * systemctl show-environment gained support for --output=json.
890
bf71ade8 891 * pam_systemd will now first try to use the X11 abstract socket, and
dcdc652f
ZJS
892 fallback to the socket file in /tmp/.X11-unix/ only if that does not
893 work.
11b10922 894
dcdc652f
ZJS
895 * systemd-journald will no longer go back to volatile storage
896 regardless of configuration when its unit is restarted.
bf71ade8 897
dcdc652f
ZJS
898 * Initial support for the LoongArch architecture has been added (system
899 call lists, GPT partition table UUIDs, etc).
efeecf40 900
dcdc652f
ZJS
901 * systemd-journald's own logging messages are now also logged to the
902 journal itself when systemd-journald logs to /dev/kmsg.
6959a051 903
dcdc652f
ZJS
904 * systemd-journald now re-enables COW for archived journal files on
905 filesystems that support COW. One benefit of this change is that
906 archived journal files will now get compressed on btrfs filesystems
907 that have compression enabled.
6959a051 908
dcdc652f
ZJS
909 * systemd-journald now deduplicates fields in a single log message
910 before adding it to the journal. In archived journal files, it will
911 also punch holes for unused parts and truncate the file as
912 appropriate, leading to reductions in disk usage.
6959a051 913
dcdc652f
ZJS
914 * journalctl --verify was extended with more informative error
915 messages.
6959a051 916
dcdc652f
ZJS
917 * More of sd-journal's functions are now resistant against journal file
918 corruption.
6959a051 919
e63fa075
ZJS
920 * The shutdown command learnt a new option --show, to display the
921 scheduled shutdown.
922
dcdc652f
ZJS
923 * A LICENSES/ directory is now included in the git tree. It contains a
924 README.md file that explains the licenses used by source files in
925 this repository. It also contains the text of all applicable
926 licenses as they appear on spdx.org.
6959a051 927
97b6ed32
ZJS
928 Contributions from: Aakash Singh, acsfer, Adolfo Jayme Barrientos,
929 Adrian Vovk, Albert Brox, Alberto Mardegan, Alexander Kanavin,
930 alexlzhu, Alfonso Sánchez-Beato, Alvin Šipraga, Alyssa Ross,
931 Amir Omidi, Anatol Pomozov, Andika Triwidada, Andreas Rammhold,
932 Andreas Valder, Andrej Lajovic, Andrew Soutar, Andrew Stone, Andy Chi,
933 Anita Zhang, Anssi Hannula, Antonio Alvarez Feijoo,
934 Antony Deepak Thomas, Arnaud Ferraris, Arvid E. Picciani,
935 Bastien Nocera, Benjamin Berg, Benjamin Herrenschmidt, Ben Stockett,
936 Bogdan Seniuc, Boqun Feng, Carl Lei, chlorophyll-zz, Chris Packham,
937 Christian Brauner, Christian Göttsche, Christian Wehrli,
938 Christoph Anton Mitterer, Cristian Rodríguez, Daan De Meyer,
939 Daniel Maixner, Dann Frazier, Dan Streetman, Davide Cavalca,
940 David Seifert, David Tardon, dependabot[bot], Dimitri John Ledkov,
941 Dimitri Papadopoulos, Dimitry Ishenko, Dmitry Khlebnikov,
942 Dominique Martinet, duament, Egor, Egor Ignatov, Emil Renner Berthing,
943 Emily Gonyer, Ettore Atalan, Evgeny Vereshchagin, Florian Klink,
944 Franck Bui, Frantisek Sumsal, Geass-LL, Gibeom Gwon, GnunuX,
945 Gogo Gogsi, gregzuro, Greg Zuro, Gustavo Costa, Hans de Goede,
484abbe6
ZJS
946 Hela Basa, Henri Chain, hikigaya58, Hugo Carvalho,
947 Hugo Osvaldo Barrera, Iago Lopez Galeiras, Iago López Galeiras,
97b6ed32
ZJS
948 I-dont-need-name, igo95862, Jack Dähn, James Hilliard, Jan Janssen,
949 Jan Kuparinen, Jan Macku, Jan Palus, Jarkko Sakkinen, Jayce Fayne,
950 jiangchuangang, jlempen, John Lindgren, Jonas Dreßler, Jonas Jelten,
951 Jonas Witschel, Joris Hartog, José Expósito, Julia Kartseva,
952 Kai-Heng Feng, Kai Wohlfahrt, Kay Siver Bø, KennthStailey,
953 Kevin Kuehler, Kevin Orr, Khem Raj, Kristian Klausen, Kyle Laker,
954 lainahai, LaserEyess, Lennart Poettering, Lia Lenckowski, longpanda,
955 Luca Boccassi, Luca BRUNO, Ludwig Nussel, Lukas Senionis,
956 Maanya Goenka, Maciek Borzecki, Marcel Menzel, Marco Scardovi,
957 Marcus Harrison, Mark Boudreau, Matthijs van Duin, Mauricio Vásquez,
958 Maxime de Roucy, Max Resch, MertsA, Michael Biebl, Michael Catanzaro,
959 Michal Koutný, Michal Sekletár, Miika Karanki, Mike Gilbert,
960 Milo Turner, ml, monosans, Nacho Barrientos, nassir90, Nishal Kulkarni,
e63fa075 961 nl6720, Ondrej Kozina, Paulo Neves, Pavel Březina, pedro martelletto,
484abbe6 962 Peter Hutterer, Peter Morrow, Piotr Drąg, Rasmus Villemoes, ratijas,
97b6ed32 963 Raul Tambre, rene, Riccardo Schirone, Robert-L-Turner, Robert Scheck,
6e6dc095
YW
964 Ross Jennings, saikat0511, Scott Lamb, Scott Worley,
965 Sergei Trofimovich, Sho Iizuka, Slava Bacherikov, Slimane Selyan Amiri,
966 StefanBruens, Steven Siloti, svonohr, Taiki Sugawara, Takashi Sakamoto,
967 Takuro Onoue, Thomas Blume, Thomas Haller, Thomas Mühlbacher,
968 Tianlu Shao, Toke Høiland-Jørgensen, Tom Yan, Tony Asleson,
969 Topi Miettinen, Ulrich Ölmann, Urs Ritzmann, Vincent Bernat,
970 Vito Caputo, Vladimir Panteleev, WANG Xuerui, Wind/owZ, Wu Xiaotian,
971 xdavidwu, Xiaotian Wu, xujing, yangmingtai, Yao Wei, Yao Wei (魏銘廷),
972 Yegor Alexeyev, Yu Watanabe, Zbigniew Jędrzejewski-Szmek,
973 Дамјан Георгиевски, наб
974
975 — Warsaw, 2021-12-23
484abbe6 976
e7fbba56 977CHANGES WITH 249:
f973aea7
LP
978
979 * When operating on disk images via the --image= switch of various
e7fbba56
LB
980 tools (such as systemd-nspawn or systemd-dissect), or when udev finds
981 no 'root=' parameter on the kernel command line, and multiple
f973aea7 982 suitable root or /usr/ partitions exist in the image, then a simple
28707969
ZJS
983 comparison inspired by strverscmp() is done on the GPT partition
984 label, and the newest partition is picked. This permits a simple and
985 generic whole-file-system A/B update logic where new operating system
f973aea7
LP
986 versions are dropped into partitions whose label is then updated with
987 a matching version identifier.
988
989 * systemd-sysusers now supports querying the passwords to set for the
990 users it creates via the "credentials" logic introduced in v247: the
991 passwd.hashed-password.<user> and passwd.plaintext-password.<user>
992 credentials are consulted for the password to use (either in UNIX
993 hashed form, or literally). By default these credentials are inherited
994 down from PID1 (which in turn imports it from a container manager if
995 there is one). This permits easy configuration of user passwords
996 during first boot. Example:
997
998 # systemd-nspawn -i foo.raw --volatile=yes --set-credential=passwd.plaintext-password.root:foo
999
1000 Note that systemd-sysusers operates in purely additive mode: it
1001 executes no operation if the declared users already exist, and hence
1002 doesn't set any passwords as effect of the command line above if the
1003 specified root user exists already in the image. (Note that
1004 --volatile=yes ensures it doesn't, though.)
1005
1006 * systemd-firstboot now also supports querying various system
1007 parameters via the credential subsystems. Thus, as above this may be
1008 used to initialize important system parameters on first boot of
1009 previously unprovisioned images (i.e. images with a mostly empty
1010 /etc/).
1011
66e6128f
LP
1012 * PID 1 may now show both the unit name and the unit description
1013 strings in its status output during boot. This may be configured with
1014 StatusUnitFormat=combined in system.conf or
1015 systemd.status-unit-format=combined on the kernel command line.
1016
f973aea7
LP
1017 * The systemd-machine-id-setup tool now supports a --image= switch for
1018 provisioning a machine ID file into an OS disk image, similar to how
1019 --root= operates on an OS file tree. This matches the existing switch
28707969 1020 of the same name for systemd-tmpfiles, systemd-firstboot, and
f973aea7
LP
1021 systemd-sysusers tools.
1022
28707969
ZJS
1023 * Similarly, systemd-repart gained support for the --image= switch too.
1024 In combination with the existing --size= option, this makes the tool
1025 particularly useful for easily growing disk images in a single
1026 invocation, following the declarative rules included in the image
1027 itself.
f973aea7
LP
1028
1029 * systemd-repart's partition configuration files gained support for a
1030 new switch MakeDirectories= which may be used to create arbitrary
1031 directories inside file systems that are created, before registering
28707969
ZJS
1032 them in the partition table. This is useful in particular for root
1033 partitions to create mount point directories for other partitions
1034 included in the image. For example, a disk image that contains a
1035 root, /home/, and /var/ partitions, may set MakeDirectories=yes to
1036 create /home/ and /var/ as empty directories in the root file system
5601400e
JB
1037 on its creation, so that the resulting image can be mounted
1038 immediately, even in read-only mode.
28707969
ZJS
1039
1040 * systemd-repart's CopyBlocks= setting gained support for the special
1041 value "auto". If used, a suitable matching partition on the booted OS
1042 is found as source to copy blocks from. This is useful when
f973aea7 1043 implementing replicating installers, that are booted from one medium
28707969 1044 and then stream their own root partition onto the target medium.
f973aea7
LP
1045
1046 * systemd-repart's partition configuration files gained support for a
66e6128f
LP
1047 Flags=, a ReadOnly= and a NoAuto= setting, allowing control of these
1048 GPT partition flags for the created partitions: this is useful for
1049 marking newly created partitions as read-only, or as not being
1050 subject for automatic mounting from creation on.
f973aea7
LP
1051
1052 * The /etc/os-release file has been extended with two new (optional)
28707969
ZJS
1053 variables IMAGE_VERSION= and IMAGE_ID=, carrying identity and version
1054 information for OS images that are updated comprehensively and
1055 atomically as one image. Two new specifiers %M, %A now resolve to
1056 these two fields in the various configuration options that resolve
1057 specifiers.
f973aea7
LP
1058
1059 * portablectl gained a new switch --extension= for enabling portable
1060 service images with extensions that follow the extension image
165c23c6
LB
1061 concept introduced with v248, and thus allows layering multiple
1062 images when setting up the root filesystem of the service.
f973aea7
LP
1063
1064 * systemd-coredump will now extract ELF build-id information from
28707969
ZJS
1065 processes dumping core and include it in the coredump report.
1066 Moreover, it will look for ELF .note.package sections with
1067 distribution packaging meta-information about the crashing process.
1068 This is useful to directly embed the rpm or deb (or any other)
1069 package name and version in ELF files, making it easy to match
1070 coredump reports with the specific package for which the software was
1071 compiled. This is particularly useful on environments with ELF files
1072 from multiple vendors, different distributions and versions, as is
1073 common today in our containerized and sand-boxed world. For further
1074 information, see:
f973aea7
LP
1075
1076 https://systemd.io/COREDUMP_PACKAGE_METADATA
1077
28707969
ZJS
1078 * A new udev hardware database has been added for FireWire devices
1079 (IEEE 1394).
f973aea7 1080
14e97d24
ZJS
1081 * The "net_id" built-in of udev has been updated with three
1082 backwards-incompatible changes:
1083
1084 - PCI hotplug slot names on s390 systems are now parsed as
1085 hexadecimal numbers. They were incorrectly parsed as decimal
1086 previously, or ignored if the name was not a valid decimal
1087 number.
1088
1089 - PCI onboard indices up to 65535 are allowed. Previously, numbers
1090 above 16383 were rejected. This primarily impacts s390 systems,
1091 where values up to 65535 are used.
1092
1093 - Invalid characters in interface names are replaced with "_".
1094
1095 The new version of the net naming scheme is "v249". The previous
1096 scheme can be selected via the "net.naming-scheme=v247" kernel
1097 command line parameter.
1098
f973aea7
LP
1099 * sd-bus' sd_bus_is_ready() and sd_bus_is_open() calls now accept a
1100 NULL bus object, for which they will return false. Or in other words,
1101 an unallocated bus connection is neither ready nor open.
1102
99c2a955 1103 * The sd-device API acquired a new API function
28707969
ZJS
1104 sd_device_get_usec_initialized() that returns the monotonic time when
1105 the udev device first appeared in the database.
99c2a955
LP
1106
1107 * sd-device gained a new APIs sd_device_trigger_with_uuid() and
1108 sd_device_get_trigger_uuid(). The former is similar to
1109 sd_device_trigger() but returns a randomly generated UUID that is
1110 associated with the synthetic uevent generated by the call. This UUID
1111 may be read from the sd_device object a monitor eventually receives,
1112 via the sd_device_get_trigger_uuid(). This interface requires kernel
1113 4.13 or above to work, and allows tracking a synthetic uevent through
1114 the entire device management stack. The "udevadm trigger --settle"
1115 logic has been updated to make use of this concept if available to
1116 wait precisely for the uevents it generates. "udevadm trigger" also
1117 gained a new parameter --uuid that prints the UUID for each generated
1118 uevent.
1119
ca1e8584
LP
1120 * sd-device also gained new APIs sd_device_new_from_ifname() and
1121 sd_device_new_from_ifindex() for allocating an sd-device object for
1122 the specified network interface. The former accepts an interface name
1123 (either a primary or an alternative name), the latter an interface
1124 index.
1125
f973aea7
LP
1126 * The native Journal protocol has been documented. Clients may talk
1127 this as alternative to the classic BSD syslog protocol for locally
1128 delivering log records to the Journal. The protocol has been stable
5601400e 1129 for a long time and in fact been implemented already in a variety
f973aea7
LP
1130 of alternative client libraries. This documentation makes the support
1131 for that official:
1132
1133 https://systemd.io/JOURNAL_NATIVE_PROTOCOL
1134
1135 * A new BPFProgram= setting has been added to service files. It may be
1136 set to a path to a loaded kernel BPF program, i.e. a path to a bpffs
1137 file, or a bind mount or symlink to one. This may be used to upload
1138 and manage BPF programs externally and then hook arbitrary systemd
1139 services into them.
1140
1141 * The "home.arpa" domain that has been officially declared as the
1142 choice for domain for local home networks per RFC 8375 has been added
1143 to the default NTA list of resolved, since DNSSEC is generally not
1144 available on private domains.
1145
1146 * The CPUAffinity= setting of unit files now resolves "%" specifiers.
1147
1148 * A new ManageForeignRoutingPolicyRules= setting has been added to
1149 .network files which may be used to exclude foreign-created routing
1150 policy rules from systemd-networkd management.
1151
1152 * systemd-network-wait-online gained two new switches -4 and -6 that
1153 may be used to tweak whether to wait for only IPv4 or only IPv6
1154 connectivity.
1155
1156 * .network files gained a new RequiredFamilyForOnline= setting to
1157 fine-tune whether to require an IPv4 or IPv6 address in order to
1158 consider an interface "online".
1159
99c2a955
LP
1160 * networkctl will now show an over-all "online" state in the per-link
1161 information.
1162
1163 * In .network files a new OutgoingInterface= setting has been added to
1164 specify the output interface in bridge FDB setups.
1165
566c8176 1166 * In .network files the Multipath group ID may now be configured for
99c2a955 1167 [NextHop] entries, via the new Group= setting.
f973aea7
LP
1168
1169 * The DHCP server logic configured in .network files gained a new
28707969
ZJS
1170 setting RelayTarget= that turns the server into a DHCP server relay.
1171 The RelayAgentCircuitId= and RelayAgentRemoteId= settings may be used
1172 to further tweak the DHCP relay behaviour.
f973aea7 1173
28707969
ZJS
1174 * The DHCP server logic also gained a new ServerAddress= setting in
1175 .network files that explicitly specifies the server IP address to
1176 use. If not specified, the address is determined automatically, as
1177 before.
f973aea7 1178
99c2a955
LP
1179 * The DHCP server logic in systemd-networkd gained support for static
1180 DHCP leases, configurable via the [DHCPServerStaticLease]
1181 section. This allows explicitly mapping specific MAC addresses to
1182 fixed IP addresses and vice versa.
1183
1184 * The RestrictAddressFamilies= setting in service files now supports a
1185 new special value "none". If specified sockets of all address
1186 families will be made unavailable to services configured that way.
f973aea7
LP
1187
1188 * systemd-fstab-generator and systemd-repart have been updated to
1189 support booting from disks that carry only a /usr/ partition but no
28707969
ZJS
1190 root partition yet, and where systemd-repart can add it in on the
1191 first boot. This is useful for implementing systems that ship with a
1192 single /usr/ file system, and whose root file system shall be set up
1193 and formatted on a LUKS-encrypted volume whose key is generated
1194 locally (and possibly enrolled in the TPM) during the first boot.
f973aea7
LP
1195
1196 * The [Address] section of .network files now accepts a new
1197 RouteMetric= setting that configures the routing metric to use for
28707969
ZJS
1198 the prefix route created as effect of the address configuration.
1199 Similarly, the [DHCPv6PrefixDelegation] and [IPv6Prefix] sections
1200 gained matching settings for their prefix routes. (The option of the
1201 same name in the [DHCPv6] section is moved to [IPv6AcceptRA], since
1202 it conceptually belongs there; the old option is still understood for
1203 compatibility.)
f973aea7 1204
f973aea7
LP
1205 * The DHCPv6 IAID and DUID are now explicitly configurable in .network
1206 files.
1207
1208 * A new udev property ID_NET_DHCP_BROADCAST on network interface
28707969 1209 devices is now honoured by systemd-networkd, controlling whether to
f973aea7
LP
1210 issue DHCP offers via broadcasting. This is used to ensure that s390
1211 layer 3 network interfaces work out-of-the-box with systemd-networkd.
1212
1213 * nss-myhostname and systemd-resolved will now synthesize address
1214 records for a new special hostname "_outbound". The name will always
1215 resolve to the local IP addresses most likely used for outbound
28707969 1216 connections towards the default routes. On multi-homed hosts this is
f973aea7
LP
1217 useful to have a stable handle referring to "the" local IP address
1218 that matters most, to the point where this is defined.
1219
1220 * The Discoverable Partition Specification has been updated with a new
5601400e
JB
1221 GPT partition flag "grow-file-system" defined for its partition
1222 types. Whenever partitions with this flag set are automatically
1223 mounted (i.e. via systemd-gpt-auto-generator or the --image= switch
1224 of systemd-nspawn or other tools; and as opposed to explicit mounting
f973aea7 1225 via /etc/fstab), the file system within the partition is
28707969
ZJS
1226 automatically grown to the full size of the partition. If the file
1227 system size already matches the partition size this flag has no
1228 effect. Previously, this functionality has been available via the
1229 explicit x-systemd.growfs mount option, and this new flag extends
1230 this to automatically discovered mounts. A new GrowFileSystem=
1231 setting has been added to systemd-repart drop-in files that allows
1232 configuring this partition flag. This new flag defaults to on for
1233 partitions automatically created by systemd-repart, except if they
1234 are marked read-only. See the specification for further details:
f973aea7
LP
1235
1236 https://systemd.io/DISCOVERABLE_PARTITIONS
1237
99c2a955 1238 * .network files gained a new setting RoutesToNTP= in the [DHCPv4]
f973aea7
LP
1239 section. If enabled (which is the default), and an NTP server address
1240 is acquired through a DHCP lease on this interface an explicit route
1241 to this address is created on this interface to ensure that NTP
1242 traffic to the NTP server acquired on an interface is also routed
4076ad9d 1243 through that interface. The pre-existing RoutesToDNS= setting that
f973aea7
LP
1244 implements the same for DNS servers is now enabled by default.
1245
1246 * A pair of service settings SocketBindAllow= + SocketBindDeny= have
1247 been added that may be used to restrict the network interfaces
1248 sockets created by the service may be bound to. This is implemented
1249 via BPF.
1250
14e97d24
ZJS
1251 * A new ConditionFirmware= setting has been added to unit files to
1252 conditionalize on certain firmware features. At the moment it may
1253 check whether running on an UEFI system, a device.tree system, or if
1254 the system is compatible with some specified device-tree feature.
1255
1256 * A new ConditionOSRelease= setting has been added to unit files to
1257 check os-release(5) fields. The "=", "!=", "<", "<=", ">=", ">"
1258 operators may be used to check if some field has some specific value
387f6955
YW
1259 or do an alphanumerical comparison. Equality comparisons are useful
1260 for fields like ID, but relative comparisons for fields like
1261 VERSION_ID or IMAGE_VERSION.
f973aea7
LP
1262
1263 * hostnamed gained a new Describe() D-Bus method that returns a JSON
1264 serialization of the host data it exposes. This is exposed via
28707969
ZJS
1265 "hostnamectl --json=" to acquire a host identity description in JSON.
1266 It's our intention to add a similar features to most services and
1267 objects systemd manages, in order to simplify integration with
1268 program code that can consume JSON.
f973aea7 1269
28707969
ZJS
1270 * Similarly, networkd gained a Describe() method on its Manager and
1271 Link bus objects. This is exposed via "networkctl --json=".
5f94ac54 1272
28707969
ZJS
1273 * hostnamectl's various "get-xyz"/"set-xyz" verb pairs
1274 (e.g. "hostnamectl get-hostname", "hostnamectl "set-hostname") have
1275 been replaced by a single "xyz" verb (e.g. "hostnamectl hostname")
1276 that is used both to get the value (when no argument is given), and
1277 to set the value (when an argument is specified). The old names
1278 continue to be supported for compatibility.
f973aea7
LP
1279
1280 * systemd-detect-virt and ConditionVirtualization= are now able to
1281 correctly identify Amazon EC2 environments.
1282
1283 * The LogLevelMax= setting of unit files now applies not only to log
1284 messages generated *by* the service, but also to log messages
1285 generated *about* the service by PID 1. To suppress logs concerning a
1286 specific service comprehensively, set this option to a high log
1287 level.
1288
1289 * bootctl gained support for a new --make-machine-id-directory= switch
1290 that allows precise control on whether to create the top-level
28707969
ZJS
1291 per-machine directory in the boot partition that typically contains
1292 Type 1 boot loader entries.
f973aea7 1293
5f94ac54
LP
1294 * During build SBAT data to include in the systemd-boot EFI PE binaries
1295 may be specified now.
1296
1297 * /etc/crypttab learnt a new option "headless". If specified any
1298 requests to query the user interactively for passwords or PINs will
1299 be skipped. This is useful on systems that are headless, i.e. where
1300 an interactive user is generally not present.
1301
00fb6caf
LP
1302 * /etc/crypttab also learnt a new option "password-echo=" that allows
1303 configuring whether the encryption password prompt shall echo the
1304 typed password and if so, do so literally or via asterisks. (The
1305 default is the same behaviour as before: provide echo feedback via
1306 asterisks.)
1307
5f94ac54
LP
1308 * FIDO2 support in systemd-cryptenroll/systemd-cryptsetup and
1309 systemd-homed has been updated to allow explicit configuration of the
1310 "user presence" and "user verification" checks, as well as whether a
1311 PIN is required for authentication, via the new switches
1312 --fido2-with-user-presence=, --fido2-with-user-verification=,
1313 --fido2-with-client-pin= to systemd-cryptenroll and homectl. Which
1314 features are available, and may be enabled or disabled depends on the
1315 used FIDO2 token.
1316
1317 * systemd-nspawn's --private-user= switch now accepts the special value
1318 "identity" which configures a user namespacing environment with an
1319 identity mapping of 65535 UIDs. This means the container UID 0 is
1320 mapped to the host UID 0, and the UID 1 to host UID 1. On first look
1321 this doesn't appear to be useful, however it does reduce the attack
1322 surface a bit, since the resulting container will possess process
1323 capabilities only within its namespace and not on the host.
1324
1325 * systemd-nspawn's --private-user-chown switch has been replaced by a
1326 more generic --private-user-ownership= switch that accepts one of
1327 three values: "chown" is equivalent to the old --private-user-chown,
1328 and "off" is equivalent to the absence of the old switch. The value
1329 "map" uses the new UID mapping mounts of Linux 5.12 to map ownership
1330 of files and directories of the underlying image to the chosen UID
1331 range for the container. "auto" is equivalent to "map" if UID mapping
1332 mount are supported, otherwise it is equivalent to "chown". The short
1333 -U switch systemd-nspawn now implies --private-user-ownership=auto
1334 instead of the old --private-user-chown. Effectively this means: if
1335 the backing file system supports UID mapping mounts the feature is
1336 now used by default if -U is used. Generally, it's a good idea to use
1337 UID mapping mounts instead of recursive chown()ing, since it allows
1338 running containers off immutable images (since no modifications of
1339 the images need to take place), and share images between multiple
1340 instances. Moreover, the recursive chown()ing operation is slow and
1341 can be avoided. Conceptually it's also a good thing if transient UID
1342 range uses do not leak into persistent file ownership anymore. TLDR:
1343 finally, the last major drawback of user namespacing has been
1344 removed, and -U should always be used (unless you use btrfs, where
1345 UID mapped mounts do not exist; or your container actually needs
1346 privileges on the host).
1347
1348 * nss-systemd now synthesizes user and group shadow records in addition
1349 to the main user and group records. Thus, hashed passwords managed by
1350 systemd-homed are now accessible via the shadow database.
1351
1352 * The userdb logic (and thus nss-systemd, and so on) now read
1353 additional user/group definitions in JSON format from the drop-in
1354 directories /etc/userdb/, /run/userdb/, /run/host/userdb/ and
1355 /usr/lib/userdb/. This is a simple and powerful mechanism for making
1356 additional users available to the system, with full integration into
1357 NSS including the shadow databases. Since the full JSON user/group
1358 record format is supported this may also be used to define users with
1359 resource management settings and other runtime settings that
1360 pam_systemd and systemd-logind enforce at login.
1361
1362 * The userdbctl tool gained two new switches --with-dropin= and
1363 --with-varlink= which can be used to fine-tune the sources used for
1364 user database lookups.
1365
1366 * systemd-nspawn gained a new switch --bind-user= for binding a host
1367 user account into the container. This does three things: the user's
1368 home directory is bind mounted from the host into the container,
1369 below the /run/userdb/home/ hierarchy. A free UID is picked in the
1370 container, and a user namespacing UID mapping to the host user's UID
1371 installed. And finally, a minimal JSON user and group record (along
1372 with its hashed password) is dropped into /run/host/userdb/. These
1373 records are picked up automatically by the userdb drop-in logic
1374 describe above, and allow the user to login with the same password as
1375 on the host. Effectively this means: if host and container run new
1376 enough systemd versions making a host user available to the container
1377 is trivially simple.
1378
1379 * systemd-journal-gatewayd now supports the switches --user, --system,
1380 --merge, --file= that are equivalent to the same switches of
1381 journalctl, and permit exposing only the specified subset of the
1382 Journal records.
1383
5f94ac54
LP
1384 * The OnFailure= dependency between units is now augmented with a
1385 implicit reverse dependency OnFailureOf= (this new dependency cannot
1386 be configured directly it's only created as effect of an OnFailure=
1387 dependency in the reverse order — it's visible in "systemctl show"
1388 however). Similar, Slice= now has an reverse dependency SliceOf=,
1389 that is also not configurable directly, but useful to determine all
1390 units that are members of a slice.
1391
1392 * A pair of new dependency types between units PropagatesStopTo= +
1393 StopPropagatedFrom= has been added, that allows propagation of unit
1394 stop events between two units. It operates similar to the existing
1395 PropagatesReloadTo= + ReloadPropagatedFrom= dependencies.
f973aea7 1396
99c2a955
LP
1397 * A new dependency type OnSuccess= has been added (plus the reverse
1398 dependency OnSuccessOf=, which cannot be configured directly, but
28707969
ZJS
1399 exists only as effect of the reverse OnSuccess=). It is similar to
1400 OnFailure=, but triggers in the opposite case: when a service exits
99c2a955 1401 cleanly. This allows "chaining up" of services where one or more
28707969 1402 services are started once another service has successfully completed.
99c2a955
LP
1403
1404 * A new dependency type Upholds= has been added (plus the reverse
28707969
ZJS
1405 dependency UpheldBy=, which cannot be configured directly, but exists
1406 only as effect of Upholds=). This dependency type is a stronger form
1407 of Wants=: if a unit has an UpHolds= dependency on some other unit
1408 and the former is active then the latter is started whenever it is
1409 found inactive (and no job is queued for it). This is an alternative
1410 to Restart= inside service units, but less configurable, and the
1411 request to uphold a unit is not encoded in the unit itself but in
1412 another unit that intends to uphold it.
99c2a955
LP
1413
1414 * The systemd-ask-password tool now also supports reading passwords
1415 from the credentials subsystem, via the new --credential= switch.
1416
1417 * The systemd-ask-password tool learnt a new switch --emoji= which may
1418 be used to explicit control whether the lock and key emoji (🔐) is
1419 shown in the password prompt on suitable TTYs.
1420
1421 * The --echo switch of systemd-ask-password now optionally takes a
28707969
ZJS
1422 parameter that controls character echo. It may either show asterisks
1423 (default, as before), turn echo off entirely, or echo the typed
1424 characters literally.
99c2a955 1425
66e6128f
LP
1426 * The systemd-ask-password tool also gained a new -n switch for
1427 suppressing output of a trailing newline character when writing the
1428 acquired password to standard output, similar to /bin/echo's -n
1429 switch.
1430
99c2a955
LP
1431 * New documentation has been added that describes the organization of
1432 the systemd source code tree:
1433
1434 https://systemd.io/ARCHITECTURE
1435
165c23c6
LB
1436 * Units using ConditionNeedsUpdate= will no longer be activated in
1437 the initrd.
1438
00fb6caf
LP
1439 * It is now possible to list a template unit in the WantedBy= or
1440 RequiredBy= settings of the [Install] section of another template
1441 unit, which will be instantiated using the same instance name.
165c23c6
LB
1442
1443 * A new MemoryAvailable property is available for units. If the unit,
1444 or the slice(s) it is part of, have a memory limit set via MemoryMax=/
1445 MemoryHigh=, MemoryAvailable will indicate how much more memory the
1446 unit can claim before hitting the limit(s).
1447
1448 * systemd-coredump will now try to stay below the cgroup memory limit
1449 placed on itself or one of the slices it runs under, if the storage
1450 area for core files (/var/lib/systemd/coredump/) is placed on a tmpfs,
1451 since files written on such filesystems count toward the cgroup memory
1452 limit. If there is not enough available memory in such cases to store
1453 the core file uncompressed, systemd-coredump will skip to compressed
1454 storage directly (if enabled) and it will avoid analyzing the core file
1455 to print backtrace and metadata in the journal.
1456
00fb6caf
LP
1457 * tmpfiles.d/ drop-ins gained a new '=' modifier to check if the type
1458 of a path matches the configured expectations, and remove it if not.
165c23c6 1459
00fb6caf
LP
1460 * tmpfiles.d/'s 'Age' now accepts an 'age-by' argument, which allows to
1461 specify which of the several available filesystem timestamps (access
1462 time, birth time, change time, modification time) to look at when
1463 deciding whether a path has aged enough to be cleaned.
165c23c6 1464
00fb6caf
LP
1465 * A new IPv6StableSecretAddress= setting has been added to .network
1466 files, which takes an IPv6 address to use as secret for IPv6 address
1467 generation.
1468
1469 * The [DHCPServer] logic in .network files gained support for a new
1470 UplinkInterface= setting that permits configuration of the uplink
1471 interface name to propagate DHCP lease information from.
1472
1473 * The WakeOnLan= setting in .link files now accepts a list of flags
1474 instead of a single one, to configure multiple wake-on-LAN policies.
1475
ca1e8584
LP
1476 * User-space defined tracepoints (USDT) have been added to udev at
1477 strategic locations. This is useful for tracing udev behaviour and
1478 performance with bpftrace and similar tools.
1479
1480 * systemd-journald-upload gained a new NetworkTimeoutSec= option for
1481 setting a network timeout time.
1482
5b8fdb18
LB
1483 * If a system service is running in a new mount namespace (RootDirectory=
1484 and friends), all file systems will be mounted with MS_NOSUID by
1485 default, unless the system is running with SELinux enabled.
1486
66e6128f
LP
1487 * When enumerating time zones the timedatectl tool will now consult the
1488 'tzdata.zi' file shipped by the IANA time zone database package, in
1489 addition to 'zone1970.tab', as before. This makes sure time zone
1490 aliases are now correctly supported. Some distributions so far did
1491 not install this additional file, most do however. If you
1492 distribution does not install it yet, it might make sense to change
1493 that.
1494
3c88ade5
KHF
1495 * Intel HID rfkill event is no longer masked, since it's the only
1496 source of rfkill event on newer HP laptops. To have both backward and
1497 forward compatibility, userspace daemon needs to debounce duplicated
1498 events in a short time window.
1499
b2f0876b 1500 Contributions from: Aakash Singh, adrian5, Albert Brox,
fc4340b0
LB
1501 Alexander Sverdlin, Alexander Tsoy, Alexey Rubtsov, alexlzhu,
1502 Allen Webb, Alvin Šipraga, Alyssa Ross, Anders Wenhaug,
1503 Andrea Pappacoda, Anita Zhang, asavah, Balint Reczey, Bertrand Jacquin,
1504 borna-blazevic, caoxia2008cxx, Carlo Teubner, Christian Göttsche,
1505 Christian Hesse, Daniel Schaefer, Dan Streetman,
1506 David Santamaría Rogado, David Tardon, Deepak Rawat, dgcampea,
1507 Dimitri John Ledkov, ei-ke, Emilio Herrera, Emil Renner Berthing,
1508 Eric Cook, Flos Lonicerae, Franck Bui, Francois Gervais,
1509 Frantisek Sumsal, Gibeom Gwon, gitm0, Hamish Moffatt, Hans de Goede,
1510 Harsh Barsaiyan, Henri Chain, Hristo Venev, Icenowy Zheng, Igor Zhbanov,
1511 imayoda, Jakub Warczarek, James Buren, Jan Janssen, Jan Macku,
1512 Jan Synacek, Jason Francis, Jayanth Ananthapadmanaban, Jeremy Szu,
1513 Jérôme Carretero, Jesse Stricker, jiangchuangang, Joerg Behrmann,
1514 Jóhann B. Guðmundsson, Jörg Deckert, Jörg Thalheim, Juergen Hoetzel,
1515 Julia Kartseva, Kai-Heng Feng, Khem Raj, KoyamaSohei, laineantti,
1516 Lennart Poettering, LetzteInstanz, Luca Adrian L, Luca Boccassi,
1517 Lucas Magasweran, Mantas Mikulėnas, Marco Antonio Mauro, Mark Wielaard,
1518 Masahiro Matsuya, Matt Johnston, Michael Catanzaro, Michal Koutný,
1519 Michal Sekletár, Mike Crowe, Mike Kazantsev, Milan, milaq,
1520 Miroslav Suchý, Morten Linderud, nerdopolis, nl6720, Noah Meyerhans,
1521 Oleg Popov, Olle Lundberg, Ondrej Kozina, Paweł Marciniak, Perry.Yuan,
1522 Peter Hutterer, Peter Kjellerstedt, Peter Morrow, Phaedrus Leeds,
1523 plattrap, qhill, Raul Tambre, Roman Beranek, Roshan Shariff,
1524 Ryan Hendrickson, Samuel BF, scootergrisen, Sebastian Blunt,
1525 Seong-ho Cho, Sergey Bugaev, Sevan Janiyan, Sibo Dong, simmon,
1526 Simon Watts, Srinidhi Kaushik, Štěpán Němec, Steve Bonds, Susant Sahani,
1527 sverdlin, syyhao1994, Takashi Sakamoto, Topi Miettinen, tramsay,
1528 Trent Piepho, Uwe Kleine-König, Viktor Mihajlovski, Vincent Dechenaux,
1529 Vito Caputo, William A. Kennington III, Yangyang Shen, Yegor Alexeyev,
1530 Yi Gao, Yu Watanabe, Zbigniew Jędrzejewski-Szmek, zsien, наб
6969135f 1531
f6278558 1532 — Edinburgh, 2021-07-07
99c2a955 1533
94293d65
LB
1534CHANGES WITH 248:
1535
6dd990f3
ZJS
1536 * A concept of system extension images is introduced. Such images may
1537 be used to extend the /usr/ and /opt/ directory hierarchies at
1538 runtime with additional files (even if the file system is read-only).
1539 When a system extension image is activated, its /usr/ and /opt/
1540 hierarchies and os-release information are combined via overlayfs
1541 with the file system hierarchy of the host OS.
1542
1543 A new systemd-sysext tool can be used to merge, unmerge, list, and
1544 refresh system extension hierarchies. See
1545 https://www.freedesktop.org/software/systemd/man/systemd-sysext.html.
1546
1547 The systemd-sysext.service automatically merges installed system
1548 extensions during boot (before basic.target, but not in very early
1549 boot, since various file systems have to be mounted first).
1550
1551 The SYSEXT_LEVEL= field in os-release(5) may be used to specify the
1552 supported system extension level.
1553
873b5cbd
LB
1554 * A new ExtensionImages= unit setting can be used to apply the same
1555 system extension image concept from systemd-sysext to the namespaced
1556 file hierarchy of specific services, following the same rules and
1557 constraints.
1558
33e68cce
ZJS
1559 * Support for a new special "root=tmpfs" kernel command-line option has
1560 been added. When specified, a tmpfs is mounted on /, and mount.usr=
1561 should be used to point to the operating system implementation.
1562
6dd990f3 1563 * A new configuration file /etc/veritytab may be used to configure
2b6a8a4b
LP
1564 dm-verity integrity protection for block devices. Each line is in the
1565 format "volume-name data-device hash-device roothash options",
1566 similar to /etc/crypttab.
6dd990f3 1567
2b6a8a4b 1568 * A new kernel command-line option systemd.verity.root_options= may be
6dd990f3
ZJS
1569 used to configure dm-verity behaviour for the root device.
1570
1571 * The key file specified in /etc/crypttab (the third field) may now
1f3315b8
LP
1572 refer to an AF_UNIX/SOCK_STREAM socket in the file system. The key is
1573 acquired by connecting to that socket and reading from it. This
1574 allows the implementation of a service to provide key information
1575 dynamically, at the moment when it is needed.
6dd990f3 1576
89b6acfd
ZJS
1577 * When the hostname is set explicitly to "localhost", systemd-hostnamed
1578 will respect this. Previously such a setting would be mostly silently
1579 ignored. The goal is to honour configuration as specified by the
1580 user.
1581
1582 * The fallback hostname that will be used by the system manager and
1583 systemd-hostnamed can now be configured in two new ways: by setting
1584 DEFAULT_HOSTNAME= in os-release(5), or by setting
1585 $SYSTEMD_DEFAULT_HOSTNAME in the environment block. As before, it can
1586 also be configured during compilation. The environment variable is
1587 intended for testing and local overrides, the os-release(5) field is
1588 intended to allow customization by different variants of a
1589 distribution that share the same compiled packages.
1590
1591 * The environment block of the manager itself may be configured through
1592 a new ManagerEnvironment= setting in system.conf or user.conf. This
1593 complements existing ways to set the environment block (the kernel
1594 command line for the system manager, the inherited environment and
1595 user@.service unit file settings for the user manager).
1596
1597 * systemd-hostnamed now exports the default hostname and the source of
1598 the configured hostname ("static", "transient", or "default") as
1599 D-Bus properties.
1600
1601 * systemd-hostnamed now exports the "HardwareVendor" and
1602 "HardwareModel" D-Bus properties, which are supposed to contain a
1603 pair of cleaned up, human readable strings describing the system's
1604 vendor and model. It's typically sourced from the firmware's DMI
1605 tables, but may be augmented from a new hwdb database. hostnamectl
1606 shows this in the status output.
1607
1f3315b8
LP
1608 * Support has been added to systemd-cryptsetup for extracting the
1609 PKCS#11 token URI and encrypted key from the LUKS2 JSON embedded
1610 metadata header. This allows the information how to open the
1611 encrypted device to be embedded directly in the device and obviates
1612 the need for configuration in an external file.
6dd990f3 1613
1f3315b8 1614 * systemd-cryptsetup gained support for unlocking LUKS2 volumes using
2b6a8a4b
LP
1615 TPM2 hardware, as well as FIDO2 security tokens (in addition to the
1616 pre-existing support for PKCS#11 security tokens).
6dd990f3 1617
2b6a8a4b
LP
1618 * systemd-repart may enroll encrypted partitions using TPM2
1619 hardware. This may be useful for example to create an encrypted /var
1620 partition bound to the machine on first boot.
6dd990f3 1621
1f3315b8
LP
1622 * A new systemd-cryptenroll tool has been added to enroll TPM2, FIDO2
1623 and PKCS#11 security tokens to LUKS volumes, list and destroy
1624 them. See:
1625
1626 http://0pointer.net/blog/unlocking-luks2-volumes-with-tpm2-fido2-pkcs11-security-hardware-on-systemd-248.html
1627
1628 It also supports enrolling "recovery keys" and regular passphrases.
1629
1630 * The libfido2 dependency is now based on dlopen(), so that the library
2b6a8a4b
LP
1631 is used at runtime when installed, but is not a hard runtime
1632 dependency.
1f3315b8
LP
1633
1634 * systemd-cryptsetup gained support for two new options in
2b6a8a4b
LP
1635 /etc/crypttab: "no-write-workqueue" and "no-read-workqueue" which
1636 request synchronous processing of encryption/decryption IO.
6dd990f3 1637
2b6a8a4b
LP
1638 * The manager may be configured at compile time to use the fexecve()
1639 instead of the execve() system call when spawning processes. Using
1640 fexecve() closes a window between checking the security context of an
1641 executable and spawning it, but unfortunately the kernel displays
1642 stale information in the process' "comm" field, which impacts ps
1643 output and such.
6dd990f3
ZJS
1644
1645 * The configuration option -Dcompat-gateway-hostname has been dropped.
1646 "_gateway" is now the only supported name.
1647
1f3315b8
LP
1648 * The ConditionSecurity=tpm2 unit file setting may be used to check if
1649 the system has at least one TPM2 (tpmrm class) device.
6dd990f3 1650
2b6a8a4b
LP
1651 * A new ConditionCPUFeature= has been added that may be used to
1652 conditionalize units based on CPU features. For example,
1653 ConditionCPUFeature=rdrand will condition a unit so that it is only
1654 run when the system CPU supports the RDRAND opcode.
1655
89b6acfd
ZJS
1656 * The existing ConditionControlGroupController= setting has been
1657 extended with two new values "v1" and "v2". "v2" means that the
b49bb286 1658 unified v2 cgroup hierarchy is used, and "v1" means that legacy v1
89b6acfd
ZJS
1659 hierarchy or the hybrid hierarchy are used.
1660
33e68cce
ZJS
1661 * A new PrivateIPC= setting on a unit file allows executed processes to
1662 be moved into a private IPC namespace, with separate System V IPC
1663 identifiers and POSIX message queues.
1664
1665 A new IPCNamespacePath= allows the unit to be joined to an existing
1666 IPC namespace.
1667
64297c86 1668 * The tables of system calls in seccomp filters are now automatically
6dd990f3
ZJS
1669 generated from kernel lists exported on
1670 https://fedora.juszkiewicz.com.pl/syscalls.html.
1671
1672 The following architectures should now have complete lists:
1673 alpha, arc, arm64, arm, i386, ia64, m68k, mips64n32, mips64, mipso32,
1674 powerpc, powerpc64, s390, s390x, tilegx, sparc, x86_64, x32.
1675
94293d65 1676 * The MountAPIVFS= service file setting now additionally mounts a tmpfs
6dd990f3
ZJS
1677 on /run/ if it is not already a mount point. A writable /run/ has
1678 always been a requirement for a functioning system, but this was not
94293d65 1679 guaranteed when using a read-only image.
6dd990f3
ZJS
1680
1681 Users can always specify BindPaths= or InaccessiblePaths= as
1682 overrides, and they will take precedence. If the host's root mount
1683 point is used, there is no change in behaviour.
1684
1685 * New bind mounts and file system image mounts may be injected into the
1686 mount namespace of a service (without restarting it). This is exposed
9ba008cb
LB
1687 respectively as 'systemctl bind <unit> <path>…' and
1688 'systemctl mount-image <unit> <image>…'.
6dd990f3 1689
2b6a8a4b 1690 * The StandardOutput= and StandardError= settings can now specify files
6dd990f3
ZJS
1691 to be truncated for output (as "truncate:<path>").
1692
1693 * The ExecPaths= and NoExecPaths= settings may be used to specify
1694 noexec for parts of the file system.
1695
1f3315b8 1696 * sd-bus has a new function sd_bus_open_user_machine() to open a
6dd990f3 1697 connection to the session bus of a specific user in a local container
2b6a8a4b
LP
1698 or on the local host. This is exposed in the existing -M switch to
1699 systemctl and similar tools:
1f3315b8
LP
1700
1701 systemctl --user -M lennart@foobar start foo
1702
1703 This will connect to the user bus of a user "lennart" in container
1704 "foobar". If no container name is specified, the specified user on
1705 the host itself is connected to
1706
1707 systemctl --user -M lennart@ start quux
6dd990f3 1708
6c41cf44
LP
1709 * sd-bus also gained a convenience function sd_bus_message_send() to
1710 simplify invocations of sd_bus_send(), taking only a single
1711 parameter: the message to send.
1f3315b8
LP
1712
1713 * sd-event allows rate limits to be set on event sources, for dealing
1714 with high-priority event sources that might starve out others. See
1715 the new man page sd_event_source_set_ratelimit(3) for details.
6dd990f3
ZJS
1716
1717 * systemd.link files gained a [Link] Promiscuous= switch, which allows
1718 the device to be raised in promiscuous mode.
1719
1720 New [Link] TransmitQueues= and ReceiveQueues= settings allow the
1721 number of TX and RX queues to be configured.
1722
1723 New [Link] TransmitQueueLength= setting allows the size of the TX
1724 queue to be configured.
1725
1726 New [Link] GenericSegmentOffloadMaxBytes= and
1727 GenericSegmentOffloadMaxSegments= allow capping the packet size and
1728 the number of segments accepted in Generic Segment Offload.
1729
33e68cce
ZJS
1730 * systemd-networkd gained support for the "B.A.T.M.A.N. advanced"
1731 wireless routing protocol that operates on ISO/OSI Layer 2 only and
1732 uses ethernet frames to route/bridge packets. This encompasses a new
1733 "batadv" netdev Type=, a new [BatmanAdvanced] section with a bunch of
1734 new settings in .netdev files, and a new BatmanAdvanced= setting in
1735 .network files.
1736
6dd990f3
ZJS
1737 * systemd.network files gained a [Network] RouteTable= configuration
1738 switch to select the routing policy table.
1739
1740 systemd.network files gained a [RoutingPolicyRule] Type=
1741 configuration switch (one of "blackhole, "unreachable", "prohibit").
1742
1743 systemd.network files gained a [IPv6AcceptRA] RouteDenyList= and
1744 RouteAllowList= settings to ignore/accept route advertisements from
1745 routers matching specified prefixes. The DenyList= setting has been
1746 renamed to PrefixDenyList= and a new PrefixAllowList= option has been
1747 added.
1748
1749 systemd.network files gained a [DHCPv6] UseAddress= setting to
1750 optionally ignore the address provided in the lease.
1751
1752 systemd.network files gained a [DHCPv6PrefixDelegation]
1753 ManageTemporaryAddress= switch.
1754
33e68cce
ZJS
1755 systemd.network files gained a new ActivationPolicy= setting which
1756 allows configuring how the UP state of an interface shall be managed,
b480543c 1757 i.e. whether the interface is always upped, always downed, or may be
6d18c13e 1758 upped/downed by the user using "ip link set dev".
1f3315b8 1759
897a2561
ZJS
1760 * The default for the Broadcast= setting in .network files has slightly
1761 changed: the broadcast address will not be configured for wireguard
1762 devices.
1763
6dd990f3
ZJS
1764 * systemd.netdev files gained a [VLAN] Protocol=, IngressQOSMaps=,
1765 EgressQOSMaps=, and [MACVLAN] BroadcastMulticastQueueLength=
1766 configuration options for VLAN packet handling.
1767
1768 * udev rules may now set log_level= option. This allows debug logs to
1769 be enabled for select events, e.g. just for a specific subsystem or
1770 even a single device.
1771
1772 * udev now exports the VOLUME_ID, LOGICAL_VOLUME_ID, VOLUME_SET_ID, and
2b6a8a4b
LP
1773 DATA_PREPARED_ID properties for block devices with ISO9660 file
1774 systems.
6dd990f3 1775
2b6a8a4b
LP
1776 * udev now exports decoded DMI information about installed memory slots
1777 as device properties under the /sys/class/dmi/id/ pseudo device.
6dd990f3 1778
2b6a8a4b 1779 * /dev/ is not mounted noexec anymore. This didn't provide any
64297c86
TM
1780 significant security benefits and would conflict with the executable
1781 mappings used with /dev/sgx device nodes. The previous behaviour can
1782 be restored for individual services with NoExecPaths=/dev (or by allow-
1783 listing and excluding /dev from ExecPaths=).
6dd990f3 1784
de0b8991 1785 * Permissions for /dev/vsock are now set to 0o666, and /dev/vhost-vsock
6dd990f3
ZJS
1786 and /dev/vhost-net are owned by the kvm group.
1787
1788 * The hardware database has been extended with a list of fingerprint
2b6a8a4b
LP
1789 readers that correctly support USB auto-suspend using data from
1790 libfprint.
6dd990f3
ZJS
1791
1792 * systemd-resolved can now answer DNSSEC questions through the stub
1793 resolver interface in a way that allows local clients to do DNSSEC
1794 validation themselves. For a question with DO+CD set, it'll proxy the
1795 DNS query and respond with a mostly unmodified packet received from
1796 the upstream server.
1797
1f3315b8
LP
1798 * systemd-resolved learnt a new boolean option CacheFromLocalhost= in
1799 resolved.conf. If true the service will provide caching even for DNS
1800 lookups made to an upstream DNS server on the 127.0.0.1/::1
1801 addresses. By default (and when the option is false) systemd-resolved
1802 will not cache such lookups, in order to avoid duplicate local
1803 caching, under the assumption the local upstream server caches
1804 anyway.
1805
2b6a8a4b
LP
1806 * systemd-resolved now implements RFC5001 NSID in its local DNS
1807 stub. This may be used by local clients to determine whether they are
1808 talking to the DNS resolver stub or a different DNS server.
1809
1810 * When resolving host names and other records resolvectl will now
1811 report where the data was acquired from (i.e. the local cache, the
1812 network, locally synthesized, …) and whether the network traffic it
1813 effected was encrypted or not. Moreover the tool acquired a number of
1814 new options --cache=, --synthesize=, --network=, --zone=,
1815 --trust-anchor=, --validate= that take booleans and may be used to
1816 tweak a lookup, i.e. whether it may be answered from cached
1817 information, locally synthesized information, information acquired
1818 through the network, the local mDNS/LLMNR zone, the DNSSEC trust
1819 anchor, and whether DNSSEC validation shall be executed for the
1820 lookup.
1821
9ba008cb 1822 * systemd-nspawn gained a new --ambient-capability= setting
6dd990f3
ZJS
1823 (AmbientCapability= in .nspawn files) to configure ambient
1824 capabilities passed to the container payload.
1825
1826 * systemd-nspawn gained the ability to configure the firewall using the
1f3315b8 1827 nftables subsystem (in addition to the existing iptables
897a2561 1828 support). Similarly, systemd-networkd's IPMasquerade= option now
2b6a8a4b
LP
1829 supports nftables as back-end, too. In both cases NAT on IPv6 is now
1830 supported too, in addition to IPv4 (the iptables back-end still is
1f3315b8
LP
1831 IPv4-only).
1832
897a2561
ZJS
1833 "IPMasquerade=yes", which was the same as "IPMasquerade=ipv4" before,
1834 retains its meaning, but has been deprecated. Please switch to either
1835 "ivp4" or "both" (if covering IPv6 is desired).
1836
1f3315b8
LP
1837 * systemd-importd will now download .verity and .roothash.p7s files
1838 along with the machine image (as exposed via machinectl pull-raw).
6dd990f3
ZJS
1839
1840 * systemd-oomd now gained a new DefaultMemoryPressureDurationSec=
1841 setting to configure the time a unit's cgroup needs to exceed memory
897a2561
ZJS
1842 pressure limits before action will be taken, and a new
1843 ManagedOOMPreference=none|avoid|omit setting to avoid killing certain
1844 units.
6dd990f3
ZJS
1845
1846 systemd-oomd is now considered fully supported (the usual
1847 backwards-compatiblity promises apply). Swap is not required for
1848 operation, but it is still recommended.
1849
1850 * systemd-timesyncd gained a new ConnectionRetrySec= setting which
1851 configures the retry delay when trying to contact servers.
1852
1853 * systemd-stdio-bridge gained --system/--user options to connect to the
1854 system bus (previous default) or the user session bus.
1855
6dd990f3
ZJS
1856 * systemd-localed may now call locale-gen to generate missing locales
1857 on-demand (UTF-8-only). This improves integration with Debian-based
1858 distributions (Debian/Ubuntu/PureOS/Tanglu/...) and Arch Linux.
1859
1f3315b8
LP
1860 * systemctl --check-inhibitors=true may now be used to obey inhibitors
1861 even when invoked non-interactively. The old --ignore-inhibitors
1862 switch is now deprecated and replaced by --check-inhibitors=false.
6dd990f3
ZJS
1863
1864 * systemctl import-environment will now emit a warning when called
1865 without any arguments (i.e. to import the full environment block of
1866 the called program). This command will usually be invoked from a
1867 shell, which means that it'll inherit a bunch of variables which are
1868 specific to that shell, and usually to the TTY the shell is connected
1869 to, and don't have any meaning in the global context of the system or
1870 user service manager. Instead, only specific variables should be
1871 imported into the manager environment block.
1872
1873 Similarly, programs which update the manager environment block by
1874 directly calling the D-Bus API of the manager, should also push
1875 specific variables, and not the full inherited environment.
1876
1f3315b8 1877 * systemctl's status output now shows unit state with a more careful
2b6a8a4b
LP
1878 choice of Unicode characters: units in maintenance show a "○" symbol
1879 instead of the usual "●", failed units show "×", and services being
1880 reloaded "↻".
1f3315b8 1881
6dd990f3 1882 * coredumpctl gained a --debugger-arguments= switch to pass arguments
2b6a8a4b
LP
1883 to the debugger. It also gained support for showing coredump info in
1884 a simple JSON format.
1885
1886 * systemctl/loginctl/machinectl's --signal= option now accept a special
1887 value "list", which may be used to show a brief table with known
1888 process signals and their numbers.
6dd990f3
ZJS
1889
1890 * networkctl now shows the link activation policy in status.
1891
2b6a8a4b 1892 * Various tools gained --pager/--no-pager/--json= switches to
6dd990f3
ZJS
1893 enable/disable the pager and provide JSON output.
1894
2b6a8a4b
LP
1895 * Various tools now accept two new values for the SYSTEMD_COLORS
1896 environment variable: "16" and "256", to configure how many terminal
1897 colors are used in output.
6dd990f3 1898
2b6a8a4b
LP
1899 * less 568 or newer is now required for the auto-paging logic of the
1900 various tools. Hyperlink ANSI sequences in terminal output are now
1901 used even if a pager is used, and older versions of less are not able
1902 to display these sequences correctly. SYSTEMD_URLIFY=0 may be used to
1903 disable this output again.
6dd990f3 1904
2b6a8a4b 1905 * Builds with support for separate / and /usr/ hierarchies ("split-usr"
6dd990f3
ZJS
1906 builds, non-merged-usr builds) are now officially deprecated. A
1907 warning is emitted during build. Support is slated to be removed in
1908 about a year (when the Debian Bookworm release development starts).
1909
897a2561
ZJS
1910 * Systems with the legacy cgroup v1 hierarchy are now marked as
1911 "tainted", to make it clearer that using the legacy hierarchy is not
1912 recommended.
1913
33e68cce
ZJS
1914 * systemd-localed will now refuse to configure a keymap which is not
1915 installed in the file system. This is intended as a bug fix, but
1916 could break cases where systemd-localed was used to configure the
1917 keymap in advanced of it being installed. It is necessary to install
1918 the keymap file first.
1919
2b6a8a4b 1920 * The main git development branch has been renamed to 'main'.
94293d65 1921
26c59e4e
LB
1922 * mmcblk[0-9]boot[0-9] devices will no longer be probed automatically
1923 for partitions, as in the vast majority of cases they contain none
1924 and are used internally by the bootloader (eg: uboot).
1925
1f3315b8
LP
1926 * systemd will now set the $SYSTEMD_EXEC_PID environment variable for
1927 spawned processes to the PID of the process itself. This may be used
1928 by programs for detecting whether they were forked off by the service
1929 manager itself or are a process forked off further down the tree.
1930
897a2561
ZJS
1931 * The sd-device API gained four new calls: sd_device_get_action() to
1932 determine the uevent add/remove/change/… action the device object has
1933 been seen for, sd_device_get_seqno() to determine the uevent sequence
1934 number, sd_device_new_from_stat_rdev() to allocate a new sd_device
1935 object from stat(2) data of a device node, and sd_device_trigger() to
1936 write to the 'uevent' attribute of a device.
2b6a8a4b
LP
1937
1938 * For most tools the --no-legend= switch has been replaced by
1939 --legend=no and --legend=yes, to force whether tables are shown with
1940 headers/legends.
1941
1942 * Units acquired a new property "Markers" that takes a list of zero,
1943 one or two of the following strings: "needs-reload" and
1944 "needs-restart". These markers may be set via "systemctl
1945 set-property". Once a marker is set, "systemctl reload-or-restart
1946 --marked" may be invoked to execute the operation the units are
1947 marked for. This is useful for package managers that want to mark
1948 units for restart/reload while updating, but effect the actual
1949 operations at a later step at once.
1950
1951 * The sd_bus_message_read_strv() API call of sd-bus may now also be
1952 used to parse arrays of D-Bus signatures and D-Bus paths, in addition
1953 to regular strings.
1954
1955 * bootctl will now report whether the UEFI firmware used a TPM2 device
1956 and measured the boot process into it.
1957
1958 * systemd-tmpfiles learnt support for a new environment variable
1959 $SYSTEMD_TMPFILES_FORCE_SUBVOL which takes a boolean value. If true
1960 the v/q/Q lines in tmpfiles.d/ snippets will create btrfs subvolumes
1961 even if the root fs of the system is not itself a btrfs volume.
1962
1963 * systemd-detect-virt/ConditionVirtualization= will now explicitly
1964 detect Docker/Podman environments where possible. Moreover, they
1965 should be able to generically detect any container manager as long as
1966 it assigns the container a cgroup.
1967
1968 * portablectl gained a new "reattach" verb for detaching/reattaching a
1969 portable service image, useful for updating images on-the-fly.
1970
d94d261c
LP
1971 * Intel SGX enclave device nodes (which expose a security feature of
1972 newer Intel CPUs) will now be owned by a new system group "sgx".
1973
8ce22551
ZJS
1974 Contributions from: Adam Nielsen, Adrian Vovk, AJ Jordan, Alan Perry,
1975 Alastair Pharo, Alexander Batischev, Ali Abdallah, Andrew Balmos,
1976 Anita Zhang, Annika Wickert, Ansgar Burchardt, Antonio Terceiro,
1977 Antonius Frie, Ardy, Arian van Putten, Ariel Fermani, Arnaud T,
1978 A S Alam, Bastien Nocera, Benjamin Berg, Benjamin Robin, Björn Daase,
1979 caoxia, Carlo Wood, Charles Lee, ChopperRob, chri2, Christian Ehrhardt,
1980 Christian Hesse, Christopher Obbard, clayton craft, corvusnix, cprn,
1981 Daan De Meyer, Daniele Medri, Daniel Rusek, Dan Sanders, Dan Streetman,
1982 Darren Ng, David Edmundson, David Tardon, Deepak Rawat, Devon Pringle,
1983 Dmitry Borodaenko, dropsignal, Einsler Lee, Endre Szabo,
1984 Evgeny Vereshchagin, Fabian Affolter, Fangrui Song, Felipe Borges,
1985 feliperodriguesfr, Felix Stupp, Florian Hülsmann, Florian Klink,
1986 Florian Westphal, Franck Bui, Frantisek Sumsal, Gablegritule,
1987 Gaël PORTAY, Gaurav, Giedrius Statkevičius, Greg Depoire-Ferrer,
1988 Gustavo Costa, Hans de Goede, Hela Basa, heretoenhance, hide,
1989 Iago López Galeiras, igo95862, Ilya Dmitrichenko, Jameer Pathan,
1990 Jan Tojnar, Jiehong, Jinyuan Si, Joerg Behrmann, John Slade,
1991 Jonathan G. Underwood, Jonathan McDowell, Josh Triplett, Joshua Watt,
1992 Julia Cartwright, Julien Humbert, Kairui Song, Karel Zak,
1993 Kevin Backhouse, Kevin P. Fleming, Khem Raj, Konomi, krissgjeng,
1994 l4gfcm, Lajos Veres, Lennart Poettering, Lincoln Ramsay, Luca Boccassi,
1995 Luca BRUNO, Lucas Werkmeister, Luka Kudra, Luna Jernberg,
1996 Marc-André Lureau, Martin Wilck, Matthias Klumpp, Matt Turner,
1997 Michael Gisbers, Michael Marley, Michael Trapp, Michal Fabik,
1998 Michał Kopeć, Michal Koutný, Michal Sekletár, Michele Guerini Rocco,
1999 Mike Gilbert, milovlad, moson-mo, Nick, nihilix-melix, Oğuz Ersen,
2000 Ondrej Mosnacek, pali, Pavel Hrdina, Pavel Sapezhko, Perry Yuan,
2001 Peter Hutterer, Pierre Dubouilh, Piotr Drąg, Pjotr Vertaalt,
2002 Richard Laager, RussianNeuroMancer, Sam Lunt, Sebastiaan van Stijn,
2003 Sergey Bugaev, shenyangyang4, simmon, Simonas Kazlauskas,
2004 Slimane Selyan Amiri, Stefan Agner, Steve Ramage, Susant Sahani,
2005 Sven Mueller, Tad Fisher, Takashi Iwai, Thomas Haller, Tom Shield,
2006 Topi Miettinen, Torsten Hilbrich, tpgxyz, Tyler Hicks, ulf-f,
2007 Ulrich Ölmann, Vincent Pelletier, Vinnie Magro, Vito Caputo, Vlad,
2008 walbit-de, Whired Planck, wouter bolsterlee, Xℹ Ruoyao, Yangyang Shen,
2009 Yuri Chornoivan, Yu Watanabe, Zach Smith, Zbigniew Jędrzejewski-Szmek,
2010 Zmicer Turok, Дамјан Георгиевски
d94d261c 2011
9ca34cf5 2012 — Berlin, 2021-03-30
60d31370 2013
d0dcf59b 2014CHANGES WITH 247:
bf6e5c57 2015
d90922fb 2016 * KERNEL API INCOMPATIBILITY: Linux 4.14 introduced two new uevents
bf6e5c57
LP
2017 "bind" and "unbind" to the Linux device model. When this kernel
2018 change was made, systemd-udevd was only minimally updated to handle
2019 and propagate these new event types. The introduction of these new
2020 uevents (which are typically generated for USB devices and devices
2021 needing a firmware upload before being functional) resulted in a
b182195a
ZJS
2022 number of issues which we so far didn't address. We hoped the kernel
2023 maintainers would themselves address these issues in some form, but
2024 that did not happen. To handle them properly, many (if not most) udev
2025 rules files shipped in various packages need updating, and so do many
2026 programs that monitor or enumerate devices with libudev or sd-device,
2027 or otherwise process uevents. Please note that this incompatibility
2028 is not fault of systemd or udev, but caused by an incompatible kernel
832eedd1 2029 change that happened back in Linux 4.14, but is becoming more and
dc6a3162 2030 more visible as the new uevents are generated by more kernel drivers.
bf6e5c57
LP
2031
2032 To minimize issues resulting from this kernel change (but not avoid
2033 them entirely) starting with systemd-udevd 247 the udev "tags"
2034 concept (which is a concept for marking and filtering devices during
2035 enumeration and monitoring) has been reworked: udev tags are now
2036 "sticky", meaning that once a tag is assigned to a device it will not
2037 be removed from the device again until the device itself is removed
2038 (i.e. unplugged). This makes sure that any application monitoring
2039 devices that match a specific tag is guaranteed to both see uevents
2040 where the device starts being relevant, and those where it stops
2041 being relevant (the latter now regularly happening due to the new
2042 "unbind" uevent type). The udev tags concept is hence now a concept
2043 tied to a *device* instead of a device *event* — unlike for example
2044 udev properties whose lifecycle (as before) is generally tied to a
2045 device event, meaning that the previously determined properties are
2046 forgotten whenever a new uevent is processed.
2047
2048 With the newly redefined udev tags concept, sometimes it's necessary
2049 to determine which tags are the ones applied by the most recent
2050 uevent/database update, in order to discern them from those
2051 originating from earlier uevents/database updates of the same
2052 device. To accommodate for this a new automatic property CURRENT_TAGS
2053 has been added that works similar to the existing TAGS property but
2054 only lists tags set by the most recent uevent/database
b182195a
ZJS
2055 update. Similarly, the libudev/sd-device API has been updated with
2056 new functions to enumerate these 'current' tags, in addition to the
bf6e5c57
LP
2057 existing APIs that now enumerate the 'sticky' ones.
2058
832eedd1 2059 To properly handle "bind"/"unbind" on Linux 4.14 and newer it is
bf6e5c57
LP
2060 essential that all udev rules files and applications are updated to
2061 handle the new events. Specifically:
2062
2063 • All rule files that currently use a header guard similar to
2064 ACTION!="add|change",GOTO="xyz_end" should be updated to use
2065 ACTION=="remove",GOTO="xyz_end" instead, so that the
2066 properties/tags they add are also applied whenever "bind" (or
2067 "unbind") is seen. (This is most important for all physical device
b182195a
ZJS
2068 types — those for which "bind" and "unbind" are currently
2069 generated, for all other device types this change is still
bf6e5c57
LP
2070 recommended but not as important — but certainly prepares for
2071 future kernel uevent type additions).
2072
b182195a 2073 • Similarly, all code monitoring devices that contains an 'if' branch
bf6e5c57
LP
2074 discerning the "add" + "change" uevent actions from all other
2075 uevents actions (i.e. considering devices only relevant after "add"
2076 or "change", and irrelevant on all other events) should be reworked
2077 to instead negatively check for "remove" only (i.e. considering
2078 devices relevant after all event types, except for "remove", which
2079 invalidates the device). Note that this also means that devices
2080 should be considered relevant on "unbind", even though conceptually
2081 this — in some form — invalidates the device. Since the precise
2082 effect of "unbind" is not generically defined, devices should be
2083 considered relevant even after "unbind", however I/O errors
2084 accessing the device should then be handled gracefully.
2085
2086 • Any code that uses device tags for deciding whether a device is
2087 relevant or not most likely needs to be updated to use the new
2088 udev_device_has_current_tag() API (or sd_device_has_current_tag()
db2db708
LP
2089 in case sd-device is used), to check whether the tag is set at the
2090 moment an uevent is seen (as opposed to the existing
bf6e5c57
LP
2091 udev_device_has_tag() API which checks if the tag ever existed on
2092 the device, following the API concept redefinition explained
2093 above).
2094
2095 We are very sorry for this breakage and the requirement to update
2096 packages using these interfaces. We'd again like to underline that
2097 this is not caused by systemd/udev changes, but result of a kernel
2098 behaviour change.
2099
7bfcc0de
LP
2100 * UPCOMING INCOMPATIBILITY: So far most downstream distribution
2101 packages have not retriggered devices once the udev package (or any
2102 auxiliary package installing additional udev rules) is updated. We
2103 intend to work with major distributions to change this, so that
2104 "udevadm trigger -a change" is issued on such upgrades, ensuring that
2105 the updated ruleset is applied to the devices already discovered, so
2106 that (asynchronously) after the upgrade completed the udev database
2107 is consistent with the updated rule set. This means udev rules must
2108 be ready to be retriggered with a "change" action any time, and
2109 result in correct and complete udev database entries. While the
2110 majority of udev rule files known to us currently get this right,
2111 some don't. Specifically, there are udev rules files included in
2112 various packages that only set udev properties on the "add" action,
2113 but do not handle the "change" action. If a device matching those
2114 rules is retriggered with the "change" action (as is intended here)
2115 it would suddenly lose the relevant properties. This always has been
48e0abb5
YW
2116 problematic, but as soon as all udev devices are triggered on relevant
2117 package upgrades this will become particularly so. It is strongly
2118 recommended to fix offending rules so that they can handle a "change"
2119 action at any time, and acquire all necessary udev properties even
2120 then. Or in other words: the header guard mentioned above
2121 (ACTION=="remove",GOTO="xyz_end") is the correct approach to handle
2122 this, as it makes sure rules are rerun on "change" correctly, and
2123 accumulate the correct and complete set of udev properties. udev rule
2124 definitions that cannot handle "change" events being triggered at
2125 arbitrary times should be considered buggy.
7bfcc0de 2126
db2db708 2127 * The MountAPIVFS= service file setting now defaults to on if
b182195a
ZJS
2128 RootImage= and RootDirectory= are used, which means that with those
2129 two settings /proc/, /sys/ and /dev/ are automatically properly set
2130 up for services. Previous behaviour may be restored by explicitly
2131 setting MountAPIVFS=off.
db2db708 2132
bae66f4b
LP
2133 * Since PAM 1.2.0 (2015) configuration snippets may be placed in
2134 /usr/lib/pam.d/ in addition to /etc/pam.d/. If a file exists in the
2135 latter it takes precedence over the former, similar to how most of
2136 systemd's own configuration is handled. Given that PAM stack
2137 definitions are primarily put together by OS vendors/distributions
69e3234d 2138 (though possibly overridden by users), this systemd release moves its
bae66f4b
LP
2139 own PAM stack configuration for the "systemd-user" PAM service (i.e.
2140 for the PAM session invoked by the per-user user@.service instance)
2141 from /etc/pam.d/ to /usr/lib/pam.d/. We recommend moving all
2142 packages' vendor versions of their PAM stack definitions from
2143 /etc/pam.d/ to /usr/lib/pam.d/, but if such OS-wide migration is not
2144 desired the location to which systemd installs its PAM stack
b182195a 2145 configuration may be changed via the -Dpamconfdir Meson option.
bae66f4b 2146
dc6a3162
LP
2147 * The runtime dependencies on libqrencode, libpcre2, libidn/libidn2,
2148 libpwquality and libcryptsetup have been changed to be based on
2149 dlopen(): instead of regular dynamic library dependencies declared in
2150 the binary ELF headers, these libraries are now loaded on demand
2151 only, if they are available. If the libraries cannot be found the
2152 relevant operations will fail gracefully, or a suitable fallback
2153 logic is chosen. This is supposed to be useful for general purpose
2154 distributions, as it allows minimizing the list of dependencies the
2155 systemd packages pull in, permitting building of more minimal OS
2156 images, while still making use of these "weak" dependencies should
2157 they be installed. Since many package managers automatically
2158 synthesize package dependencies from ELF shared library dependencies,
2159 some additional manual packaging work has to be done now to replace
2160 those (slightly downgraded from "required" to "recommended" or
2161 whatever is conceptually suitable for the package manager). Note that
2162 this change does not alter build-time behaviour: as before the
2163 build-time dependencies have to be installed during build, even if
2164 they now are optional during runtime.
db2db708
LP
2165
2166 * sd-event.h gained a new call sd_event_add_time_relative() for
2167 installing timers relative to the current time. This is mostly a
2168 convenience wrapper around the pre-existing sd_event_add_time() call
2169 which installs absolute timers.
2170
dc6a3162
LP
2171 * sd-event event sources may now be placed in a new "exit-on-failure"
2172 mode, which may be controlled via the new
2173 sd_event_source_get_exit_on_failure() and
2174 sd_event_source_set_exit_on_failure() functions. If enabled, any
2175 failure returned by the event source handler functions will result in
2176 exiting the event loop (unlike the default behaviour of just
2177 disabling the event source but continuing with the event loop). This
2178 feature is useful to set for all event sources that define "primary"
2179 program behaviour (where failure should be fatal) in contrast to
2180 "auxiliary" behaviour (where failure should remain local).
2181
2182 * Most event source types sd-event supports now accept a NULL handler
2183 function, in which case the event loop is exited once the event
2184 source is to be dispatched, using the userdata pointer — converted to
2185 a signed integer — as exit code of the event loop. Previously this
2186 was supported for IO and signal event sources already. Exit event
2187 sources still do not support this (simply because it makes little
2188 sense there, as the event loop is already exiting when they are
2189 dispatched).
2190
db2db708
LP
2191 * A new per-unit setting RootImageOptions= has been added which allows
2192 tweaking the mount options for any file system mounted as effect of
2193 the RootImage= setting.
2194
2195 * Another new per-unit setting MountImages= has been added, that allows
2196 mounting additional disk images into the file system tree accessible
2197 to the service.
2198
6fc5b951 2199 * Timer units gained a new FixedRandomDelay= boolean setting. If
b5e798de
ZJS
2200 enabled, the random delay configured with RandomizedDelaySec= is
2201 selected in a way that is stable on a given system (though still
2202 different for different units).
6fc5b951
LP
2203
2204 * Socket units gained a new setting Timestamping= that takes "us", "ns"
2205 or "off". This controls the SO_TIMESTAMP/SO_TIMESTAMPNS socket
2206 options.
2207
b182195a
ZJS
2208 * systemd-repart now generates JSON output when requested with the new
2209 --json= switch.
db2db708
LP
2210
2211 * systemd-machined's OpenMachineShell() bus call will now pass
2212 additional policy metadata data fields to the PolicyKit
2213 authentication request.
2214
2215 * systemd-tmpfiles gained a new -E switch, which is equivalent to
2216 --exclude-prefix=/dev --exclude-prefix=/proc --exclude=/run
2217 --exclude=/sys. It's particularly useful in combination with --root=,
2218 when operating on OS trees that do not have any of these four runtime
2219 directories mounted, as this means no files below these subtrees are
2220 created or modified, since those mount points should probably remain
2221 empty.
2222
b182195a
ZJS
2223 * systemd-tmpfiles gained a new --image= switch which is like --root=,
2224 but takes a disk image instead of a directory as argument. The
2225 specified disk image is mounted inside a temporary mount namespace
2226 and the tmpfiles.d/ drop-ins stored in the image are executed and
2227 applied to the image. systemd-sysusers similarly gained a new
2228 --image= switch, that allows the sysusers.d/ drop-ins stored in the
2229 image to be applied onto the image.
db2db708 2230
b182195a
ZJS
2231 * Similarly, the journalctl command also gained an --image= switch,
2232 which is a quick one-step solution to look at the log data included
2233 in OS disk images.
db2db708
LP
2234
2235 * journalctl's --output=cat option (which outputs the log content
2236 without any metadata, just the pure text messages) will now make use
b182195a 2237 of terminal colors when run on a suitable terminal, similarly to the
db2db708
LP
2238 other output modes.
2239
2240 * JSON group records now support a "description" string that may be
2241 used to add a human-readable textual description to such groups. This
2242 is supposed to match the user's GECOS field which traditionally
2243 didn't have a counterpart for group records.
2244
2245 * The "systemd-dissect" tool that may be used to inspect OS disk images
2246 and that was previously installed to /usr/lib/systemd/ has now been
b182195a 2247 moved to /usr/bin/, reflecting its updated status of an officially
db2db708
LP
2248 supported tool with a stable interface. It gained support for a new
2249 --mkdir switch which when combined with --mount has the effect of
2250 creating the directory to mount the image to if it is missing
2251 first. It also gained two new commands --copy-from and --copy-to for
2252 copying files and directories in and out of an OS image without the
2253 need to manually mount it. It also acquired support for a new option
b182195a 2254 --json= to generate JSON output when inspecting an OS image.
db2db708
LP
2255
2256 * The cgroup2 file system is now mounted with the
2257 "memory_recursiveprot" mount option, supported since kernel 5.7. This
2258 means that the MemoryLow= and MemoryMin= unit file settings now apply
2259 recursively to whole subtrees.
2260
2261 * systemd-homed now defaults to using the btrfs file system — if
2262 available — when creating home directories in LUKS volumes. This may
b182195a
ZJS
2263 be changed with the DefaultFileSystemType= setting in homed.conf.
2264 It's now the default file system in various major distributions and
2265 has the major benefit for homed that it can be grown and shrunk while
2266 mounted, unlike the other contenders ext4 and xfs, which can both be
2267 grown online, but not shrunk (in fact xfs is the technically most
2268 limited option here, as it cannot be shrunk at all).
db2db708
LP
2269
2270 * JSON user records managed by systemd-homed gained support for
2271 "recovery keys". These are basically secondary passphrases that can
b182195a
ZJS
2272 unlock user accounts/home directories. They are computer-generated
2273 rather than user-chosen, and typically have greater entropy.
2274 homectl's --recovery-key= option may be used to add a recovery key to
2275 a user account. The generated recovery key is displayed as a QR code,
2276 so that it can be scanned to be kept in a safe place. This feature is
2277 particularly useful in combination with systemd-homed's support for
2278 FIDO2 or PKCS#11 authentication, as a secure fallback in case the
2279 security tokens are lost. Recovery keys may be entered wherever the
2280 system asks for a password.
db2db708
LP
2281
2282 * systemd-homed now maintains a "dirty" flag for each LUKS encrypted
b182195a 2283 home directory which indicates that a home directory has not been
db2db708
LP
2284 deactivated cleanly when offline. This flag is useful to identify
2285 home directories for which the offline discard logic did not run when
2286 offlining, and where it would be a good idea to log in again to catch
2287 up.
2288
2289 * systemctl gained a new parameter --timestamp= which may be used to
2290 change the style in which timestamps are output, i.e. whether to show
2291 them in local timezone or UTC, or whether to show µs granularity.
2292
2293 * Alibaba's "pouch" container manager is now detected by
dc6a3162
LP
2294 systemd-detect-virt, ConditionVirtualization= and similar
2295 constructs. Similar, they now also recognize IBM PowerVM machine
2296 virtualization.
db2db708
LP
2297
2298 * systemd-nspawn has been reworked to use the /run/host/incoming/ as
2299 place to use for propagating external mounts into the
b182195a
ZJS
2300 container. Similarly /run/host/notify is now used as the socket path
2301 for container payloads to communicate with the container manager
2302 using sd_notify(). The container manager now uses the
2303 /run/host/inaccessible/ directory to place "inaccessible" file nodes
2304 of all relevant types which may be used by the container payload as
2305 bind mount source to over-mount inodes to make them inaccessible.
2306 /run/host/container-manager will now be initialized with the same
2307 string as the $container environment variable passed to the
2308 container's PID 1. /run/host/container-uuid will be initialized with
2309 the same string as $container_uuid. This means the /run/host/
2310 hierarchy is now the primary way to make host resources available to
2311 the container. The Container Interface documents these new files and
2312 directories:
db2db708
LP
2313
2314 https://systemd.io/CONTAINER_INTERFACE
2315
2316 * Support for the "ConditionNull=" unit file condition has been
b182195a
ZJS
2317 deprecated and undocumented for 6 years. systemd started to warn
2318 about its use 1.5 years ago. It has now been removed entirely.
db2db708 2319
db2db708
LP
2320 * sd-bus.h gained a new API call sd_bus_error_has_names(), which takes
2321 a sd_bus_error struct and a list of error names, and checks if the
2322 error matches one of these names. It's a convenience wrapper that is
2323 useful in cases where multiple errors shall be handled the same way.
2324
2325 * A new system call filter list "@known" has been added, that contains
b182195a 2326 all system calls known at the time systemd was built.
db2db708
LP
2327
2328 * Behaviour of system call filter allow lists has changed slightly:
387f6955 2329 system calls that are contained in @known will result in EPERM by
db2db708 2330 default, while those not contained in it result in ENOSYS. This
dc6a3162 2331 should improve compatibility because known system calls will thus be
db2db708
LP
2332 communicated as prohibited, while unknown (and thus newer ones) will
2333 be communicated as not implemented, which hopefully has the greatest
2334 chance of triggering the right fallback code paths in client
2335 applications.
2336
dc6a3162
LP
2337 * "systemd-analyze syscall-filter" will now show two separate sections
2338 at the bottom of the output: system calls known during systemd build
2339 time but not included in any of the filter groups shown above, and
2340 system calls defined on the local kernel but known during systemd
2341 build time.
2342
2343 * If the $SYSTEMD_LOG_SECCOMP=1 environment variable is set for
2344 systemd-nspawn all system call filter violations will be logged by
2345 the kernel (audit). This is useful for tracking down system calls
2346 invoked by container payloads that are prohibited by the container's
2347 system call filter policy.
2348
6fc5b951
LP
2349 * If the $SYSTEMD_SECCOMP=0 environment variable is set for
2350 systemd-nspawn (and other programs that use seccomp) all seccomp
2351 filtering is turned off.
2352
db2db708 2353 * Two new unit file settings ProtectProc= and ProcSubset= have been
b182195a
ZJS
2354 added that expose the hidepid= and subset= mount options of procfs.
2355 All processes of the unit will only see processes in /proc that are
2356 are owned by the unit's user. This is an important new sandboxing
2357 option that is recommended to be set on all system services. All
2358 long-running system services that are included in systemd itself set
2359 this option now. This option is only supported on kernel 5.8 and
2360 above, since the hidepid= option supported on older kernels was not a
2361 per-mount option but actually applied to the whole PID namespace.
db2db708
LP
2362
2363 * Socket units gained a new boolean setting FlushPending=. If enabled
2364 all pending socket data/connections are flushed whenever the socket
2365 unit enters the "listening" state, i.e. after the associated service
2366 exited.
2367
b182195a
ZJS
2368 * The unit file setting NUMAMask= gained a new "all" value: when used,
2369 all existing NUMA nodes are added to the NUMA mask.
db2db708
LP
2370
2371 * A new "credentials" logic has been added to system services. This is
2372 a simple mechanism to pass privileged data to services in a safe and
2373 secure way. It's supposed to be used to pass per-service secret data
2374 such as passwords or cryptographic keys but also associated less
2375 private information such as user names, certificates, and similar to
2376 system services. Each credential is identified by a short user-chosen
2377 name and may contain arbitrary binary data. Two new unit file
b182195a
ZJS
2378 settings have been added: SetCredential= and LoadCredential=. The
2379 former allows setting a credential to a literal string, the latter
2380 sets a credential to the contents of a file (or data read from a
2381 user-chosen AF_UNIX stream socket). Credentials are passed to the
2382 service via a special credentials directory, one file for each
2383 credential. The path to the credentials directory is passed in a new
2384 $CREDENTIALS_DIRECTORY environment variable. Since the credentials
db2db708 2385 are passed in the file system they may be easily referenced in
b182195a
ZJS
2386 ExecStart= command lines too, thus no explicit support for the
2387 credentials logic in daemons is required (though ideally daemons
2388 would look for the bits they need in $CREDENTIALS_DIRECTORY
2389 themselves automatically, if set). The $CREDENTIALS_DIRECTORY is
2390 backed by unswappable memory if privileges allow it, immutable if
2391 privileges allow it, is accessible only to the service's UID, and is
2392 automatically destroyed when the service stops.
db2db708
LP
2393
2394 * systemd-nspawn supports the same credentials logic. It can both
2395 consume credentials passed to it via the aforementioned
2396 $CREDENTIALS_DIRECTORY protocol as well as pass these credentials on
2397 to its payload. The service manager/PID 1 has been updated to match
2398 this: it can also accept credentials from the container manager that
b182195a
ZJS
2399 invokes it (in fact: any process that invokes it), and passes them on
2400 to its services. Thus, credentials can be propagated recursively down
2401 the tree: from a system's service manager to a systemd-nspawn
2402 service, to the service manager that runs as container payload and to
2403 the service it runs below. Credentials may also be added on the
2404 systemd-nspawn command line, using new --set-credential= and
2405 --load-credential= command line switches that match the
2406 aforementioned service settings.
db2db708
LP
2407
2408 * systemd-repart gained new settings Format=, Encrypt=, CopyFiles= in
2409 the partition drop-ins which may be used to format/LUKS
2410 encrypt/populate any created partitions. The partitions are
2411 encrypted/formatted/populated before they are registered in the
b182195a
ZJS
2412 partition table, so that they appear atomically: either the
2413 partitions do not exist yet or they exist fully encrypted, formatted,
2414 and populated — there is no time window where they are
2415 "half-initialized". Thus the system is robust to abrupt shutdown: if
2416 the tool is terminated half-way during its operations on next boot it
2417 will start from the beginning.
db2db708
LP
2418
2419 * systemd-repart's --size= operation gained a new "auto" value. If
2420 specified, and operating on a loopback file it is automatically sized
2421 to the minimal size the size constraints permit. This is useful to
2422 use "systemd-repart" as an image builder for minimally sized images.
2423
b182195a
ZJS
2424 * systemd-resolved now gained a third IPC interface for requesting name
2425 resolution: besides D-Bus and local DNS to 127.0.0.53 a Varlink
2426 interface is now supported. The nss-resolve NSS module has been
2427 modified to use this new interface instead of D-Bus. Using Varlink
2428 has a major benefit over D-Bus: it works without a broker service,
2429 and thus already during earliest boot, before the dbus daemon has
2430 been started. This means name resolution via systemd-resolved now
2431 works at the same time systemd-networkd operates: from earliest boot
2432 on, including in the initrd.
db2db708
LP
2433
2434 * systemd-resolved gained support for a new DNSStubListenerExtra=
2435 configuration file setting which may be used to specify additional IP
2436 addresses the built-in DNS stub shall listen on, in addition to the
2437 main one on 127.0.0.53:53.
2438
2439 * Name lookups issued via systemd-resolved's D-Bus and Varlink
2440 interfaces (and thus also via glibc NSS if nss-resolve is used) will
2441 now honour a trailing dot in the hostname: if specified the search
b182195a
ZJS
2442 path logic is turned off. Thus "resolvectl query foo." is now
2443 equivalent to "resolvectl query --search=off foo.".
db2db708
LP
2444
2445 * systemd-resolved gained a new D-Bus property "ResolvConfMode" that
2446 exposes how /etc/resolv.conf is currently managed: by resolved (and
2447 in which mode if so) or another subsystem. "resolvctl" will display
2448 this property in its status output.
2449
2450 * The resolv.conf snippets systemd-resolved provides will now set "."
b182195a
ZJS
2451 as the search domain if no other search domain is known. This turns
2452 off the derivation of an implicit search domain by nss-dns for the
2453 hostname, when the hostname is set to an FQDN. This change is done to
2454 make nss-dns using resolv.conf provided by systemd-resolved behave
2455 more similarly to nss-resolve.
db2db708
LP
2456
2457 * systemd-tmpfiles' file "aging" logic (i.e. the automatic clean-up of
2458 /tmp/ and /var/tmp/ based on file timestamps) now looks at the
b182195a
ZJS
2459 "birth" time (btime) of a file in addition to the atime, mtime, and
2460 ctime.
db2db708
LP
2461
2462 * systemd-analyze gained a new verb "capability" that lists all known
2463 capabilities by the systemd build and by the kernel.
2464
2465 * If a file /usr/lib/clock-epoch exists, PID 1 will read its mtime and
2466 advance the system clock to it at boot if it is noticed to be before
2467 that time. Previously, PID 1 would only advance the time to an epoch
2468 time that is set during build-time. With this new file OS builders
2469 can change this epoch timestamp on individual OS images without
2470 having to rebuild systemd.
2471
2472 * systemd-logind will now listen to the KEY_RESTART key from the Linux
b182195a
ZJS
2473 input layer and reboot the system if it is pressed, similarly to how
2474 it already handles KEY_POWER, KEY_SUSPEND or KEY_SLEEP. KEY_RESTART
2475 was originally defined in the Multimedia context (to restart playback
2476 of a song or film), but is now primarily used in various embedded
2477 devices for "Reboot" buttons. Accordingly, systemd-logind will now
2478 honour it as such. This may configured in more detail via the new
db2db708
LP
2479 HandleRebootKey= and RebootKeyIgnoreInhibited=.
2480
2481 * systemd-nspawn/systemd-machined will now reconstruct hardlinks when
2482 copying OS trees, for example in "systemd-nspawn --ephemeral",
2483 "systemd-nspawn --template=", "machinectl clone" and similar. This is
2484 useful when operating with OSTree images, which use hardlinks heavily
2485 throughout, and where such copies previously resulting in "exploding"
2486 hardlinks.
2487
2488 * systemd-nspawn's --console= setting gained support for a new
2489 "autopipe" value, which is identical to "interactive" when invoked on
2490 a TTY, and "pipe" otherwise.
2491
2492 * systemd-networkd's .network files gained support for explicitly
2493 configuring the multicast membership entries of bridge devices in the
2494 [BridgeMDB] section. It also gained support for the PIE queuing
2495 discipline in the [FlowQueuePIE] sections.
2496
2497 * systemd-networkd's .netdev files may now be used to create "BareUDP"
905a03e7 2498 tunnels, configured in the new [BareUDP] setting.
db2db708 2499
dc6a3162 2500 * systemd-networkd's Gateway= setting in .network files now accepts the
70a51d7e
YW
2501 special values "_dhcp4" and "_ipv6ra" to configure additional,
2502 locally defined, explicit routes to the gateway acquired via DHCP or
2503 IPv6 Router Advertisements. The old setting "_dhcp" is deprecated,
2504 but still accepted for backwards compatibility.
dc6a3162 2505
cb9a48a9
ZJS
2506 * systemd-networkd's [IPv6PrefixDelegation] section and
2507 IPv6PrefixDelegation= options have been renamed as [IPv6SendRA] and
2508 IPv6SendRA= (the old names are still accepted for backwards
2509 compatibility).
2510
70a51d7e
YW
2511 * systemd-networkd's .network files gained the DHCPv6PrefixDelegation=
2512 boolean setting in [Network] section. If enabled, the delegated prefix
2513 gained by another link will be configured, and an address within the
2514 prefix will be assigned.
2515
2516 * systemd-networkd's .network files gained the Announce= boolean setting
2517 in [DHCPv6PrefixDelegation] section. When enabled, the delegated
2518 prefix will be announced through IPv6 router advertisement (IPv6 RA).
2519 The setting is enabled by default.
2520
905a03e7
ZJS
2521 * VXLAN tunnels may now be marked as independent of any underlying
2522 network interface via the new Independent= boolean setting.
70a51d7e 2523
b182195a
ZJS
2524 * systemctl gained support for two new verbs: "service-log-level" and
2525 "service-log-target" may be used on services that implement the
2526 generic org.freedesktop.LogControl1 D-Bus interface to dynamically
2527 adjust the log level and target. All of systemd's long-running
2528 services support this now, but ideally all system services would
2529 implement this interface to make the system more uniformly
db2db708
LP
2530 debuggable.
2531
2532 * The SystemCallErrorNumber= unit file setting now accepts the new
2533 "kill" and "log" actions, in addition to arbitrary error number
10f34849
YW
2534 specifications as before. If "kill" the processes are killed on the
2535 event, if "log" the offending system call is audit logged.
db2db708
LP
2536
2537 * A new SystemCallLog= unit file setting has been added that accepts a
dc6a3162 2538 list of system calls that shall be logged about (audit).
db2db708
LP
2539
2540 * The OS image dissection logic (as used by RootImage= in unit files or
b182195a 2541 systemd-nspawn's --image= switch) has gained support for identifying
db2db708
LP
2542 and mounting explicit /usr/ partitions, which are now defined in the
2543 discoverable partition specification. This should be useful for
2544 environments where the root file system is
2545 generated/formatted/populated dynamically on first boot and combined
2546 with an immutable /usr/ tree that is supplied by the vendor.
2547
2548 * In the final phase of shutdown, within the systemd-shutdown binary
2549 we'll now try to detach MD devices (i.e software RAID) in addition to
2550 loopback block devices and DM devices as before. This is supposed to
2551 be a safety net only, in order to increase robustness if things go
2552 wrong. Storage subsystems are expected to properly detach their
2553 storage volumes during regular shutdown already (or in case of
2554 storage backing the root file system: in the initrd hook we return to
2555 later).
2556
2557 * If the SYSTEMD_LOG_TID environment variable is set all systemd tools
2558 will now log the thread ID in their log output. This is useful when
2559 working with heavily threaded programs.
2560
dc6a3162 2561 * If the SYSTEMD_RDRAND environment variable is set to "0", systemd will
b182195a
ZJS
2562 not use the RDRAND CPU instruction. This is useful in environments
2563 such as replay debuggers where non-deterministic behaviour is not
2564 desirable.
db2db708 2565
dc6a3162
LP
2566 * The autopaging logic in systemd's various tools (such as systemctl)
2567 has been updated to turn on "secure" mode in "less"
2568 (i.e. $LESSECURE=1) if execution in a "sudo" environment is
2569 detected. This disables invoking external programs from the pager,
2570 via the pipe logic. This behaviour may be overridden via the new
2571 $SYSTEMD_PAGERSECURE environment variable.
db2db708 2572
6e88f9e7
ZJS
2573 * Units which have resource limits (.service, .mount, .swap, .slice,
2574 .socket, and .slice) gained new configuration settings
2575 ManagedOOMSwap=, ManagedOOMMemoryPressure=, and
90616bb9 2576 ManagedOOMMemoryPressureLimitPercent= that specify resource pressure
6e88f9e7
ZJS
2577 limits and optional action taken by systemd-oomd.
2578
2579 * A new service systemd-oomd has been added. It monitors resource
2580 contention for selected parts of the unit hierarchy using the PSI
2581 information reported by the kernel, and kills processes when memory
2582 or swap pressure is above configured limits. This service is only
08c1864f
ZJS
2583 enabled by default in developer mode (see below) and should be
2584 considered a preview in this release. Behaviour details and option
2585 names are subject to change without the usual backwards-compatibility
2586 promises.
6e88f9e7
ZJS
2587
2588 * A new helper oomctl has been added to introspect systemd-oomd state.
042b028a 2589 It is only enabled by default in developer mode and should be
08c1864f
ZJS
2590 considered a preview without the usual backwards-compatibility
2591 promises.
6e88f9e7
ZJS
2592
2593 * New meson option -Dcompat-mutable-uid-boundaries= has been added. If
2594 enabled, systemd reads the system UID boundaries from /etc/login.defs
2595 at runtime, instead of using the built-in values selected during
2596 build. This is an option to improve compatibility for upgrades from
2597 old systems. It's strongly recommended not to make use of this
2598 functionality on new systems (or even enable it during build), as it
2599 makes something runtime-configurable that is mostly an implementation
2600 detail of the OS, and permits avoidable differences in deployments
2601 that create all kinds of problems in the long run.
2602
2603 * New meson option '-Dmode=developer|release' has been added. When
2604 'developer', additional checks and features are enabled that are
2605 relevant during upstream development, e.g. verification that
2606 semi-automatically-generated documentation has been properly updated
2607 following API changes. Those checks are considered hints for
2608 developers and are not actionable in downstream builds. In addition,
2609 extra features that are not ready for general consumption may be
2610 enabled in developer mode. It is thus recommended to set
2611 '-Dmode=release' in end-user and distro builds.
2612
da7511d5
LP
2613 * systemd-cryptsetup gained support for processing detached LUKS
2614 headers specified on the kernel command line via the header=
2615 parameter of the luks.options= kernel command line option. The same
2616 device/path syntax as for key files is supported for header files
2617 like this.
2618
2619 * The "net_id" built-in of udev has been updated to ignore ACPI _SUN
2620 slot index data for devices that are connected through a PCI bridge
2621 where the _SUN index is associated with the bridge instead of the
2622 network device itself. Previously this would create ambiguous device
2623 naming if multiple network interfaces were connected to the same PCI
2624 bridge. Since this is a naming scheme incompatibility on systems that
2625 possess hardware like this it has been introduced as new naming
2626 scheme "v247". The previous scheme can be selected via the
2627 "net.naming-scheme=v245" kernel command line parameter.
2628
2629 * ConditionFirstBoot= semantics have been modified to be safe towards
2630 abnormal system power-off during first boot. Specifically, the
2631 "systemd-machine-id-commit.service" service now acts as boot
2632 milestone indicating when the first boot process is sufficiently
2633 complete in order to not consider the next following boot also a
2634 first boot. If the system is reset before this unit is reached the
2635 first time, the next boot will still be considered a first boot; once
2636 it has been reached, no further boots will be considered a first
2637 boot. The "first-boot-complete.target" unit now acts as official hook
2638 point to order against this. If a service shall be run on every boot
2639 until the first boot fully succeeds it may thus be ordered before
2640 this target unit (and pull it in) and carry ConditionFirstBoot=
2641 appropriately.
2642
2643 * bootctl's set-default and set-oneshot commands now accept the three
2644 special strings "@default", "@oneshot", "@current" in place of a boot
2645 entry id. These strings are resolved to the current default and
2646 oneshot boot loader entry, as well as the currently booted one. Thus
2647 a command "bootctl set-default @current" may be used to make the
2648 currently boot menu item the new default for all subsequent boots.
2649
da7511d5
LP
2650 * "systemctl edit" has been updated to show the original effective unit
2651 contents in commented form in the text editor.
2652
9101cd1a
ZJS
2653 * Units in user mode are now segregated into three new slices:
2654 session.slice (units that form the core of graphical session),
2655 app.slice ("normal" user applications), and background.slice
2656 (low-priority tasks). Unless otherwise configured, user units are
2657 placed in app.slice. The plan is to add resource limits and
2658 protections for the different slices in the future.
2659
7bfcc0de
LP
2660 * New GPT partition types for RISCV32/64 for the root and /usr
2661 partitions, and their associated Verity partitions have been defined,
2662 and are now understood by systemd-gpt-auto-generator, and the OS
2663 image dissection logic.
2664
a5322567 2665 Contributions from: Adolfo Jayme Barrientos, afg, Alec Moskvin, Alyssa
6fc5b951 2666 Ross, Amitanand Chikorde, Andrew Hangsleben, Anita Zhang, Ansgar
a5322567
LP
2667 Burchardt, Arian van Putten, Aurelien Jarno, Axel Rasmussen, bauen1,
2668 Beniamino Galvani, Benjamin Berg, Bjørn Mork, brainrom, Chandradeep
d0dcf59b
ZJS
2669 Dey, Charles Lee, Chris Down, Christian Göttsche, Christof Efkemann,
2670 Christoph Ruegge, Clemens Gruber, Daan De Meyer, Daniele Medri, Daniel
2671 Mack, Daniel Rusek, Dan Streetman, David Tardon, Dimitri John Ledkov,
2672 Dmitry Borodaenko, Elias Probst, Elisei Roca, ErrantSpore, Etienne
2673 Doms, Fabrice Fontaine, fangxiuning, Felix Riemann, Florian Klink,
2674 Franck Bui, Frantisek Sumsal, fwSmit, George Rawlinson, germanztz,
2675 Gibeom Gwon, Glen Whitney, Gogo Gogsi, Göran Uddeborg, Grant Mathews,
2676 Hans de Goede, Hans Ulrich Niedermann, Haochen Tong, Harald Seiler,
2677 huangyong, Hubert Kario, igo95862, Ikey Doherty, Insun Pyo, Jan Chren,
2678 Jan Schlüter, Jérémy Nouhaud, Jian-Hong Pan, Joerg Behrmann, Jonathan
2679 Lebon, Jörg Thalheim, Josh Brobst, Juergen Hoetzel, Julien Humbert,
2680 Kai-Chuan Hsieh, Kairui Song, Kamil Dudka, Kir Kolyshkin, Kristijan
2681 Gjoshev, Kyle Huey, Kyle Russell, Lee Whalen, Lennart Poettering,
2682 lichangze, Luca Boccassi, Lucas Werkmeister, Luca Weiss, Marc
2683 Kleine-Budde, Marco Wang, Martin Wilck, Marti Raudsepp, masmullin2000,
2684 Máté Pozsgay, Matt Fenwick, Michael Biebl, Michael Scherer, Michal
2685 Koutný, Michal Sekletár, Michal Suchanek, Mikael Szreder, Milo
2686 Casagrande, mirabilos, Mitsuha_QuQ, mog422, Muhammet Kara, Nazar
2687 Vinnichuk, Nicholas Narsing, Nicolas Fella, Njibhu, nl6720, Oğuz Ersen,
2688 Olivier Le Moal, Ondrej Kozina, onlybugreports, Pass Automated Testing
2689 Suite, Pat Coulthard, Pavel Sapezhko, Pedro Ruiz, perry_yuan, Peter
2690 Hutterer, Phaedrus Leeds, PhoenixDiscord, Piotr Drąg, Plan C,
2691 Purushottam choudhary, Rasmus Villemoes, Renaud Métrich, Robert Marko,
2692 Roman Beranek, Ronan Pigott, Roy Chen (陳彥廷), RussianNeuroMancer,
2693 Samanta Navarro, Samuel BF, scootergrisen, Sorin Ionescu, Steve Dodd,
2694 Susant Sahani, Timo Rothenpieler, Tobias Hunger, Tobias Kaufmann, Topi
2695 Miettinen, vanou, Vito Caputo, Weblate, Wen Yang, Whired Planck,
2696 williamvds, Yu, Li-Yu, Yuri Chornoivan, Yu Watanabe, Zbigniew
2697 Jędrzejewski-Szmek, Zmicer Turok, Дамјан Георгиевски
2698
2699 – Warsaw, 2020-11-26
a5322567 2700
72e51908 2701CHANGES WITH 246:
b0d0e0ef 2702
7f56c26d
ZJS
2703 * The service manager gained basic support for cgroup v2 freezer. Units
2704 can now be suspended or resumed either using new systemctl verbs,
2705 freeze and thaw respectively, or via D-Bus.
2706
2707 * PID 1 may now automatically load pre-compiled AppArmor policies from
2708 /etc/apparmor/earlypolicy during early boot.
2709
2710 * The CPUAffinity= setting in service unit files now supports a new
2711 special value "numa" that causes the CPU affinity masked to be set
2712 based on the NUMA mask.
2713
2714 * systemd will now log about all left-over processes remaining in a
2715 unit when the unit is stopped. It will now warn about services using
2716 KillMode=none, as this is generally an unsafe thing to make use of.
2717
2718 * Two new unit file settings
2719 ConditionPathIsEncrypted=/AssertPathIsEncrypted= have been
2720 added. They may be used to check whether a specific file system path
2721 resides on a block device that is encrypted on the block level
2722 (i.e. using dm-crypt/LUKS).
2723
2724 * Another pair of new settings ConditionEnvironment=/AssertEnvironment=
2725 has been added that may be used for simple environment checks. This
2726 is particularly useful when passing in environment variables from a
2727 container manager (or from PAM in case of the systemd --user
2728 instance).
2729
2730 * .service unit files now accept a new setting CoredumpFilter= which
2731 allows configuration of the memory sections coredumps of the
2732 service's processes shall include.
2733
2734 * .mount units gained a new ReadWriteOnly= boolean option. If set
2735 it will not be attempted to mount a file system read-only if mounting
2736 in read-write mode doesn't succeed. An option x-systemd.rw-only is
2737 available in /etc/fstab to control the same.
2738
2739 * .socket units gained a new boolean setting PassPacketInfo=. If
2740 enabled, the kernel will attach additional per-packet metadata to all
5149990e
CR
2741 packets read from the socket, as an ancillary message. This controls
2742 the IP_PKTINFO, IPV6_RECVPKTINFO, NETLINK_PKTINFO socket options,
7f56c26d
ZJS
2743 depending on socket type.
2744
2745 * .service units gained a new setting RootHash= which may be used to
2746 specify the root hash for verity enabled disk images which are
2747 specified in RootImage=. RootVerity= may be used to specify a path to
2748 the Verity data matching a RootImage= file system. (The latter is
2749 only useful for images that do not contain the Verity data embedded
2750 into the same image that carries a GPT partition table following the
2751 Discoverable Partition Specification). Similarly, systemd-nspawn
2752 gained a new switch --verity-data= that takes a path to a file with
2753 the verity data of the disk image supplied in --image=, if the image
2754 doesn't contain the verity data itself.
2755
2756 * .service units gained a new setting RootHashSignature= which takes
2757 either a base64 encoded PKCS#7 signature of the root hash specified
2758 with RootHash=, or a path to a file to read the signature from. This
2759 allows validation of the root hash against public keys available in
2760 the kernel keyring, and is only supported on recent kernels
2761 (>= 5.4)/libcryptsetup (>= 2.30). A similar switch has been added to
2762 systemd-nspawn and systemd-dissect (--root-hash-sig=). Support for
2763 this mechanism has also been added to systemd-veritysetup.
2764
2765 * .service unit files gained two new options
2766 TimeoutStartFailureMode=/TimeoutStopFailureMode= that may be used to
2767 tune behaviour if a start or stop timeout is hit, i.e. whether to
2768 terminate the service with SIGTERM, SIGABRT or SIGKILL.
2769
2770 * Most options in systemd that accept hexadecimal values prefixed with
2771 0x in additional to the usual decimal notation now also support octal
cb713f16 2772 notation when the 0o prefix is used and binary notation if the 0b
7f56c26d
ZJS
2773 prefix is used.
2774
337f0b00
ZJS
2775 * Various command line parameters and configuration file settings that
2776 configure key or certificate files now optionally take paths to
2777 AF_UNIX sockets in the file system. If configured that way a stream
2778 connection is made to the socket and the required data read from
2779 it. This is a simple and natural extension to the existing regular
2780 file logic, and permits other software to provide keys or
2781 certificates via simple IPC services, for example when unencrypted
2782 storage on disk is not desired. Specifically, systemd-networkd's
2783 Wireguard and MACSEC key file settings as well as
2784 systemd-journal-gatewayd's and systemd-journal-remote's PEM
2785 key/certificate parameters support this now.
2786
7f56c26d
ZJS
2787 * Unit files, tmpfiles.d/ snippets, sysusers.d/ snippets and other
2788 configuration files that support specifier expansion learnt six new
2789 specifiers: %a resolves to the current architecture, %o/%w/%B/%W
2790 resolve to the various ID fields from /etc/os-release, %l resolves to
2791 the "short" hostname of the system, i.e. the hostname configured in
2792 the kernel truncated at the first dot.
2793
2794 * Support for the .include syntax in unit files has been removed. The
2795 concept has been obsolete for 6 years and we started warning about
2796 its pending removal 2 years ago (also see NEWS file below). It's
2797 finally gone now.
2798
2799 * StandardError= and StandardOutput= in unit files no longer support
2800 the "syslog" and "syslog-console" switches. They were long removed
2801 from the documentation, but will now result in warnings when used,
2802 and be converted to "journal" and "journal+console" automatically.
2803
5d043c9f
LP
2804 * If the service setting User= is set to the "nobody" user, a warning
2805 message is now written to the logs (but the value is nonetheless
2806 accepted). Setting User=nobody is unsafe, since the primary purpose
2807 of the "nobody" user is to own all files whose owner cannot be mapped
2808 locally. It's in particular used by the NFS subsystem and in user
2809 namespacing. By running a service under this user's UID it might get
2810 read and even write access to all these otherwise unmappable files,
2811 which is quite likely a major security problem.
2812
02e1eb6d
ZJS
2813 * tmpfs mounts automatically created by systemd (/tmp, /run, /dev/shm,
2814 and others) now have a size and inode limits applied (50% of RAM for
c2cfb126
ZJS
2815 /tmp and /dev/shm, 10% of RAM for other mounts, etc.). Please note
2816 that the implicit kernel default is 50% too, so there is no change
2817 in the size limit for /tmp and /dev/shm.
02e1eb6d 2818
337f0b00
ZJS
2819 * nss-mymachines lost support for resolution of users and groups, and
2820 now only does resolution of hostnames. This functionality is now
2821 provided by nss-systemd. Thus, the 'mymachines' entry should be
2822 removed from the 'passwd:' and 'group:' lines in /etc/nsswitch.conf
2823 (and 'systemd' added if it is not already there).
2824
7f56c26d
ZJS
2825 * A new kernel command line option systemd.hostname= has been added
2826 that allows controlling the hostname that is initialized early during
2827 boot.
2828
2829 * A kernel command line option "udev.blockdev_read_only" has been
2830 added. If specified all hardware block devices that show up are
2831 immediately marked as read-only by udev. This option is useful for
2832 making sure that a specific boot under no circumstances modifies data
2833 on disk. Use "blockdev --setrw" to undo the effect of this, per
2834 device.
b0d0e0ef
LP
2835
2836 * A new boolean kernel command line option systemd.swap= has been
2837 added, which may be used to turn off automatic activation of swap
7f56c26d 2838 devices listed in /etc/fstab.
b0d0e0ef 2839
7f56c26d
ZJS
2840 * New kernel command line options systemd.condition-needs-update= and
2841 systemd.condition-first-boot= have been added, which override the
2842 result of the ConditionNeedsUpdate= and ConditionFirstBoot=
2843 conditions.
b0d0e0ef 2844
7f56c26d
ZJS
2845 * A new kernel command line option systemd.clock-usec= has been added
2846 that allows setting the system clock to the specified time in µs
2847 since Jan 1st, 1970 early during boot. This is in particular useful
2848 in order to make test cases more reliable.
b0d0e0ef 2849
7f56c26d
ZJS
2850 * The fs.suid_dumpable sysctl is set to 2 / "suidsafe". This allows
2851 systemd-coredump to save core files for suid processes. When saving
2852 the core file, systemd-coredump will use the effective uid and gid of
2853 the process that faulted.
2854
2855 * The /sys/module/kernel/parameters/crash_kexec_post_notifiers file is
2856 now automatically set to "Y" at boot, in order to enable pstore
2857 generation for collection with systemd-pstore.
2858
c2cfb126 2859 * We provide a set of udev rules to enable auto-suspend on PCI and USB
69e3234d 2860 devices that were tested to correctly support it. Previously, this
c2cfb126
ZJS
2861 was distributed as a set of udev rules, but has now been replaced by
2862 by a set of hwdb entries (and a much shorter udev rule to take action
2863 if the device modalias matches one of the new hwdb entries).
2864
2865 As before, entries are periodically imported from the database
2866 maintained by the ChromiumOS project. If you have a device that
2867 supports auto-suspend correctly and where it should be enabled by
2868 default, please submit a patch that adds it to the database (see
2869 /usr/lib/udev/hwdb.d/60-autosuspend.hwdb).
7f56c26d 2870
5149990e
CR
2871 * systemd-udevd gained the new configuration option timeout_signal= as well
2872 as a corresponding kernel command line option udev.timeout_signal=.
7f56c26d
ZJS
2873 The option can be used to configure the UNIX signal that the main
2874 daemon sends to the worker processes on timeout. Setting the signal
2875 to SIGABRT is useful for debugging.
2876
2877 * .link files managed by systemd-udevd gained options RxFlowControl=,
2878 TxFlowControl=, AutoNegotiationFlowControl= in the [Link] section, in
2879 order to configure various flow control parameters. They also gained
2880 RxMiniBufferSize= and RxJumboBufferSize= in order to configure jumbo
2881 frame ring buffer sizes.
b0d0e0ef 2882
3ea58e01 2883 * networkd.conf gained a new boolean setting ManageForeignRoutes=. If
aa0b850b 2884 enabled systemd-networkd manages all routes configured by other tools.
3ea58e01 2885
71af436c
YW
2886 * .network files managed by systemd-networkd gained a new section
2887 [SR-IOV], in order to configure SR-IOV capable network devices.
2888
b0d0e0ef
LP
2889 * systemd-networkd's [IPv6Prefix] section in .network files gained a
2890 new boolean setting Assign=. If enabled an address from the prefix is
2891 automatically assigned to the interface.
2892
c05b8edd
YW
2893 * systemd-networkd gained a new section [DHCPv6PrefixDelegation] which
2894 controls delegated prefixes assigned by DHCPv6 client. The section
2895 has three settings: SubnetID=, Assign=, and Token=. The setting
2896 SubnetID= allows explicit configuration of the preferred subnet that
2897 systemd-networkd's Prefix Delegation logic assigns to interfaces. If
2898 Assign= is enabled (which is the default) an address from any acquired
2899 delegated prefix is automatically chosen and assigned to the
2900 interface. The setting Token= specifies an optional address generation
2901 mode for Assign=.
b0d0e0ef 2902
3ea58e01
YW
2903 * systemd-networkd's [Network] section gained a new setting
2904 IPv4AcceptLocal=. If enabled the interface accepts packets with local
2905 source addresses.
2906
b0d0e0ef
LP
2907 * systemd-networkd gained support for configuring the HTB queuing
2908 discipline in the [HierarchyTokenBucket] and
2909 [HierarchyTokenBucketClass] sections. Similar the "pfifo" qdisc may
2910 be configured in the [PFIFO] section, "GRED" in
2911 [GenericRandomEarlyDetection], "SFB" in [StochasticFairBlue], "cake"
2912 in [CAKE], "PIE" in [PIE], "DRR" in [DeficitRoundRobinScheduler] and
2913 [DeficitRoundRobinSchedulerClass], "BFIFO" in [BFIFO],
1f19ae0f
LP
2914 "PFIFOHeadDrop" in [PFIFOHeadDrop], "PFIFOFast" in [PFIFOFast], "HHF"
2915 in [HeavyHitterFilter], "ETS" in [EnhancedTransmissionSelection] and
3ea58e01 2916 "QFQ" in [QuickFairQueueing] and [QuickFairQueueingClass].
b0d0e0ef
LP
2917
2918 * systemd-networkd gained support for a new Termination= setting in the
2919 [CAN] section for configuring the termination resistor. It also
2920 gained a new ListenOnly= setting for controlling whether to only
2921 listen on CAN interfaces, without interfering with traffic otherwise
2922 (which is useful for debugging/monitoring CAN network
2923 traffic). DataBitRate=, DataSamplePoint=, FDMode=, FDNonISO= have
2924 been added to configure various CAN-FD aspects.
2925
554a97ba
YW
2926 * systemd-networkd's [DHCPv6] section gained a new option WithoutRA=.
2927 When enabled, DHCPv6 will be attempted right-away without requiring an
2928 Router Advertisement packet suggesting it first (i.e. without the 'M'
2929 or 'O' flags set). The [IPv6AcceptRA] section gained a boolean option
2930 DHCPv6Client= that may be used to turn off the DHCPv6 client even if
2931 the RA packets suggest it.
b0d0e0ef
LP
2932
2933 * systemd-networkd's [DHCPv4] section gained a new setting UseGateway=
2934 which may be used to turn off use of the gateway information provided
2935 by the DHCP lease. A new FallbackLeaseLifetimeSec= setting may be
2936 used to configure how to process leases that lack a lifetime option.
2937
2938 * systemd-networkd's [DHCPv4] and [DHCPServer] sections gained a new
2939 setting SendVendorOption= allowing configuration of additional vendor
2940 options to send in the DHCP requests/responses. The [DHCPv6] section
2941 gained a new SendOption= setting for sending arbitrary DHCP
2942 options. RequestOptions= has been added to request arbitrary options
2943 from the server. UserClass= has been added to set the DHCP user class
2944 field.
2945
2946 * systemd-networkd's [DHCPServer] section gained a new set of options
2a71d57f 2947 EmitPOP3=/POP3=, EmitSMTP=/SMTP=, EmitLPR=/LPR= for including server
b0d0e0ef
LP
2948 information about these three protocols in the DHCP lease. It also
2949 gained support for including "MUD" URLs ("Manufacturer Usage
2950 Description"). Support for "MUD" URLs was also added to the LLDP
2951 stack, configurable in the [LLDP] section in .network files.
2952
6b949d26
YW
2953 * The Mode= settings in [MACVLAN] and [MACVTAP] now support 'source'
2954 mode. Also, the sections now support a new setting SourceMACAddress=.
2955
7f56c26d
ZJS
2956 * systemd-networkd's .netdev files now support a new setting
2957 VLANProtocol= in the [Bridge] section that allows configuration of
2958 the VLAN protocol to use.
2959
2960 * systemd-networkd supports a new Group= setting in the [Link] section
2961 of the .network files, to control the link group.
2962
6f6296b9 2963 * systemd-networkd's [Network] section gained a new
3ea58e01
YW
2964 IPv6LinkLocalAddressGenerationMode= setting, which specifies how IPv6
2965 link local address is generated.
2966
7f56c26d
ZJS
2967 * A new default .network file is now shipped that matches TUN/TAP
2968 devices that begin with "vt-" in their name. Such interfaces will
2969 have IP routing onto the host links set up automatically. This is
2970 supposed to be used by VM managers to trivially acquire a network
2971 interface which is fully set up for host communication, simply by
2972 carefully picking an interface name to use.
2973
3ea58e01 2974 * systemd-networkd's [DHCPv6] section gained a new setting RouteMetric=
aa0b850b 2975 which sets the route priority for routes specified by the DHCP server.
3ea58e01
YW
2976
2977 * systemd-networkd's [DHCPv6] section gained a new setting VendorClass=
2978 which configures the vendor class information sent to DHCP server.
2979
7f56c26d
ZJS
2980 * The BlackList= settings in .network files' [DHCPv4] and
2981 [IPv6AcceptRA] sections have been renamed DenyList=. The old names
2982 are still understood to provide compatibility.
2983
2984 * networkctl gained the new "forcerenew" command for forcing all DHCP
2985 server clients to renew their lease. The interface "status" output
2986 will now show numerous additional fields of information about an
2987 interface. There are new "up" and "down" commands to bring specific
2988 interfaces up or down.
2989
337f0b00
ZJS
2990 * systemd-resolved's DNS= configuration option now optionally accepts a
2991 port number (after ":") and a host name (after "#"). When the host
2992 name is specified, the DNS-over-TLS certificate is validated to match
2993 the specified hostname. Additionally, in case of IPv6 addresses, an
2994 interface may be specified (after "%").
b0d0e0ef 2995
2bd5e1b2
ZJS
2996 * systemd-resolved may be configured to forward single-label DNS names.
2997 This is not standard-conformant, but may make sense in setups where
2998 public DNS servers are not used.
2999
3000 * systemd-resolved's DNS-over-TLS support gained SNI validation.
3001
7f56c26d
ZJS
3002 * systemd-nspawn's --resolv-conf= switch gained a number of new
3003 supported values. Specifically, options starting with "replace-" are
3004 like those prefixed "copy-" but replace any existing resolv.conf
3005 file. And options ending in "-uplink" and "-stub" can now be used to
3006 propagate other flavours of resolv.conf into the container (as
3007 defined by systemd-resolved).
b0d0e0ef 3008
7f56c26d
ZJS
3009 * The various programs included in systemd can now optionally output
3010 their log messages on stderr prefixed with a timestamp, controlled by
3011 the $SYSTEMD_LOG_TIME environment variable.
366d0772 3012
b0d0e0ef
LP
3013 * systemctl gained a new "-P" switch that is a shortcut for "--value
3014 --property=…".
3015
7f56c26d
ZJS
3016 * "systemctl list-units" and "systemctl list-machines" no longer hide
3017 their first output column with --no-legend. To hide the first column,
3018 use --plain.
b0d0e0ef 3019
7f56c26d
ZJS
3020 * "systemctl reboot" takes the option "--reboot-argument=".
3021 The optional positional argument to "systemctl reboot" is now
3022 being deprecated in favor of this option.
b0d0e0ef
LP
3023
3024 * systemd-run gained a new switch --slice-inherit. If specified the
3025 unit it generates is placed in the same slice as the systemd-run
3026 process itself.
3027
7f56c26d
ZJS
3028 * systemd-journald gained support for zstd compression of large fields
3029 in journal files. The hash tables in journal files have been hardened
3030 against hash collisions. This is an incompatible change and means
3031 that journal files created with new systemd versions are not readable
3032 with old versions. If the $SYSTEMD_JOURNAL_KEYED_HASH boolean
3033 environment variable for systemd-journald.service is set to 0 this
3034 new hardening functionality may be turned off, so that generated
3035 journal files remain compatible with older journalctl
3036 implementations.
b0d0e0ef 3037
7f56c26d
ZJS
3038 * journalctl will now include a clickable link in the default output for
3039 each log message for which an URL with further documentation is
3040 known. This is only supported on terminal emulators that support
3041 clickable hyperlinks, and is turned off if a pager is used (since
3042 "less" still doesn't support hyperlinks,
3043 unfortunately). Documentation URLs may be included in log messages
3044 either by including a DOCUMENTATION= journal field in it, or by
3045 associating a journal message catalog entry with the log message's
3046 MESSAGE_ID, which then carries a "Documentation:" tag.
b0d0e0ef
LP
3047
3048 * journald.conf gained a new boolean setting Audit= that may be used to
3049 control whether systemd-journald will enable audit during
3050 initialization.
3051
7f56c26d
ZJS
3052 * when systemd-journald's log stream is broken up into multiple lines
3053 because the PID of the sender changed this is indicated in the
3054 generated log records via the _LINE_BREAK=pid-change field.
b0d0e0ef 3055
7f56c26d
ZJS
3056 * journalctl's "-o cat" output mode will now show one or more journal
3057 fields specified with --output-fields= instead of unconditionally
3058 MESSAGE=. This is useful to retrieve a very specific set of fields
3059 without any decoration.
b0d0e0ef 3060
495454f4
LP
3061 * The sd-journal.h API gained two new functions:
3062 sd_journal_enumerate_available_unique() and
3063 sd_journal_enumerate_available_data() that operate like their
3064 counterparts that lack the _available_ in the name, but skip items
3065 that cannot be read and processed by the local implementation
3066 (i.e. are compressed in an unsupported format or such),
3067
7f56c26d
ZJS
3068 * coredumpctl gained a new --file= switch, matching the same one in
3069 journalctl: a specific journal file may be specified to read the
3070 coredump data from.
3071
3072 * coredumps collected by systemd-coredump may now be compressed using
3073 the zstd algorithm.
b0d0e0ef
LP
3074
3075 * systemd-binfmt gained a new switch --unregister for unregistering all
3076 registered entries at once. This is now invoked automatically at
3077 shutdown, so that binary formats registered with the "F" flag will
3078 not block clean file system unmounting.
3079
b0d0e0ef 3080 * systemd-notify's --pid= switch gained new values: "parent", "self",
1d16f661 3081 "auto" for controlling which PID to send to the service manager: the
b0d0e0ef
LP
3082 systemd-notify process' PID, or the one of the process invoking it.
3083
b0d0e0ef
LP
3084 * systemd-logind's Session bus object learnt a new method call
3085 SetType() for temporarily updating the session type of an already
3086 allocated session. This is useful for upgrading tty sessions to
3087 graphical ones once a compositor is invoked.
3088
b0d0e0ef
LP
3089 * systemd-socket-proxy gained a new switch --exit-idle-time= for
3090 configuring an exit-on-idle time.
3091
b0d0e0ef
LP
3092 * systemd-repart's --empty= setting gained a new value "create". If
3093 specified a new empty regular disk image file is created under the
1d16f661 3094 specified name. Its size may be specified with the new --size=
b0d0e0ef
LP
3095 option. The latter is also supported without the "create" mode, in
3096 order to grow existing disk image files to the specified size. These
1d16f661
FS
3097 two new options are useful when creating or manipulating disk images
3098 instead of operating on actual block devices.
b0d0e0ef
LP
3099
3100 * systemd-repart drop-ins now support a new UUID= setting to control
3101 the UUID to assign to a newly created partition.
3102
1f19ae0f
LP
3103 * systemd-repart's SizeMin= per-partition parameter now defaults to 10M
3104 instead of 0.
3105
3106 * systemd-repart's Label= setting now support the usual, simple
3107 specifier expansion.
3108
7f56c26d
ZJS
3109 * systemd-homed's LUKS backend gained the ability to discard empty file
3110 system blocks automatically when the user logs out. This is enabled
3111 by default to ensure that home directories take minimal space when
3112 logged out but get full size guarantees when logged in. This may be
3113 controlled with the new --luks-offline-discard= switch to homectl.
b0d0e0ef 3114
7f56c26d
ZJS
3115 * If systemd-homed detects that /home/ is encrypted as a whole it will
3116 now default to the directory or subvolume backends instead of the
3117 LUKS backend, in order to avoid double encryption. The default
3118 storage and file system may now be configured explicitly, too, via
3119 the new /etc/systemd/homed.conf configuration file.
b0d0e0ef 3120
5d043c9f
LP
3121 * systemd-homed now supports unlocking home directories with FIDO2
3122 security tokens that support the 'hmac-secret' extension, in addition
3123 to the existing support for PKCS#11 security token unlocking
3124 support. Note that many recent hardware security tokens support both
3125 interfaces. The FIDO2 support is accessible via homectl's
3126 --fido2-device= option.
3127
3128 * homectl's --pkcs11-uri= setting now accepts two special parameters:
3129 if "auto" is specified and only one suitable PKCS#11 security token
3130 is plugged in, its URL is automatically determined and enrolled for
3131 unlocking the home directory. If "list" is specified a brief table of
3132 suitable PKCS#11 security tokens is shown. Similar, the new
3133 --fido2-device= option also supports these two special values, for
3134 automatically selecting and listing suitable FIDO2 devices.
3135
b0d0e0ef
LP
3136 * The /etc/crypttab tmp option now optionally takes an argument
3137 selecting the file system to use. Moreover, the default is now
3138 changed from ext2 to ext4.
3139
3140 * There's a new /etc/crypttab option "keyfile-erase". If specified the
3141 key file listed in the same line is removed after use, regardless if
3142 volume activation was successful or not. This is useful if the key
3143 file is only acquired transiently at runtime and shall be erased
3144 before the system continues to boot.
3145
3146 * There's also a new /etc/crypttab option "try-empty-password". If
3147 specified, before asking the user for a password it is attempted to
3148 unlock the volume with an empty password. This is useful for
3149 installing encrypted images whose password shall be set on first boot
3150 instead of at installation time.
3151
3152 * systemd-cryptsetup will now attempt to load the keys to unlock
3153 volumes with automatically from files in
3154 /etc/cryptsetup-keys.d/<volume>.key and
3155 /run/cryptsetup-keys.d/<volume>.key, if any of these files exist.
3156
7f56c26d
ZJS
3157 * systemd-cryptsetup may now activate Microsoft BitLocker volumes via
3158 /etc/crypttab, during boot.
3159
b0d0e0ef
LP
3160 * logind.conf gained a new RuntimeDirectoryInodesMax= setting to
3161 control the inode limit for the per-user $XDG_RUNTIME_DIR tmpfs
3162 instance.
3163
b0d0e0ef 3164 * A new generator systemd-xdg-autostart-generator has been added. It
7f56c26d
ZJS
3165 generates systemd unit files from XDG autostart .desktop files, and
3166 may be used to let the systemd user instance manage services that are
3167 started automatically as part of the desktop session.
47373451 3168
cb713f16
FS
3169 * "bootctl" gained a new verb "reboot-to-firmware" that may be used
3170 to query and change the firmware's 'reboot into firmware' setup flag.
1f19ae0f 3171
7f56c26d
ZJS
3172 * systemd-firstboot gained a new switch --kernel-command-line= that may
3173 be used to initialize the /etc/kernel/cmdline file of the image. It
3174 also gained a new switch --root-password-hashed= which is like
3175 --root-password= but accepts a pre-hashed UNIX password as
3176 argument. The new option --delete-root-password may be used to unset
495454f4
LP
3177 any password for the root user (dangerous!). The --root-shell= switch
3178 may be used to control the shell to use for the root account. A new
3179 --force option may be used to override any already set settings with
3180 the parameters specified on the command line (by default, the tool
3181 will not override what has already been set before, i.e. is purely
3182 incremental).
1f19ae0f 3183
a38c68a1
LP
3184 * systemd-firstboot gained support for a new --image= switch, which is
3185 similar to --root= but accepts the path to a disk image file, on
3186 which it then operates.
3187
7f56c26d
ZJS
3188 * A new sd-path.h API has been added to libsystemd. It provides a
3189 simple API for retrieving various search paths and primary
3190 directories for various resources.
1f19ae0f 3191
7f56c26d
ZJS
3192 * A new call sd_notify_barrier() has been added to the sd-daemon.h
3193 API. The call will block until all previously sent sd_notify()
3194 messages have been processed by the service manager. This is useful
3195 to remove races caused by a process already having disappeared at the
3196 time a notification message is processed by the service manager,
3197 making correct attribution impossible. The systemd-notify tool will
3198 now make use of this call implicitly, but this can be turned off again
3199 via the new --no-block switch.
1f19ae0f 3200
7f56c26d
ZJS
3201 * When sending a file descriptor (fd) to the service manager to keep
3202 track of, using the sd_notify() mechanism, a new parameter FDPOLL=0
3203 may be specified. If passed the service manager will refrain from
3204 poll()ing on the file descriptor. Traditionally (and when the
3205 parameter is not specified), the service manager will poll it for
3206 POLLHUP or POLLERR events, and immediately close the fds in that
3207 case.
1f19ae0f
LP
3208
3209 * The service manager (PID1) gained a new D-Bus method call
3210 SetShowStatus() which may be used to control whether it shall show
3211 boot-time status output on the console. This method has a similar
3212 effect to sending SIGRTMIN+20/SIGRTMIN+21 to PID 1.
3213
7f56c26d
ZJS
3214 * The sd-bus API gained a number of convenience functions that take
3215 va_list arguments rather than "...". For example, there's now
3216 sd_bus_call_methodv() to match sd_bus_call_method(). Those calls make
3217 it easier to build wrappers that accept variadic arguments and want
3218 to pass a ready va_list structure to sd-bus.
1f19ae0f 3219
7f56c26d
ZJS
3220 * sd-bus vtable entries can have a new SD_BUS_VTABLE_ABSOLUTE_OFFSET
3221 flag which alters how the userdata pointer to pass to the callbacks
3222 is determined. When the flag is set, the offset field is converted
3223 as-is into a pointer, without adding it to the object pointer the
3224 vtable is associated with.
1f19ae0f 3225
7f56c26d
ZJS
3226 * sd-bus now exposes four new functions:
3227 sd_bus_interface_name_is_valid() + sd_bus_service_name_is_valid() +
3228 sd_bus_member_name_is_valid() + sd_bus_object_path_is_valid() will
3229 validate strings to check if they qualify as various D-Bus concepts.
1f19ae0f 3230
7f56c26d
ZJS
3231 * The sd-bus API gained the SD_BUS_METHOD_WITH_ARGS(),
3232 SD_BUS_METHOD_WITH_ARGS_OFFSET() and SD_BUS_SIGNAL_WITH_ARGS() macros
3233 that simplify adding argument names to D-Bus methods and signals.
1f19ae0f 3234
7f56c26d 3235 * The man pages for the sd-bus and sd-hwdb APIs have been completed.
1f19ae0f 3236
7f56c26d
ZJS
3237 * Various D-Bus APIs of systemd daemons now have man pages that
3238 document the methods, signals and properties.
1f19ae0f 3239
7f56c26d 3240 * The expectations on user/group name syntax are now documented in
5149990e
CR
3241 detail; documentation on how classic home directories may be
3242 converted into home directories managed by homed has been added;
3243 documentation regarding integration of homed/userdb functionality in
3244 desktops has been added:
7f56c26d
ZJS
3245
3246 https://systemd.io/USER_NAMES
3247 https://systemd.io/CONVERTING_TO_HOMED
3248 https://systemd.io/USERDB_AND_DESKTOPS
3249
3250 * Documentation for the on-disk Journal file format has been updated
3251 and has now moved to:
3252
3253 https://systemd.io/JOURNAL_FILE_FORMAT
3254
5961d35a
ZJS
3255 * The interface for containers (https://systemd.io/CONTAINER_INTERFACE)
3256 has been extended by a set of environment variables that expose
3257 select fields from the host's os-release file to the container
3258 payload. Similarly, host's os-release files can be mounted into the
54971969 3259 container underneath /run/host. Together, those mechanisms provide a
5961d35a
ZJS
3260 standardized way to expose information about the host to the
3261 container payload. Both interfaces are implemented in systemd-nspawn.
3262
7f56c26d
ZJS
3263 * All D-Bus services shipped in systemd now implement the generic
3264 LogControl1 D-Bus API which allows clients to change log level +
3265 target of the service during runtime.
1f19ae0f 3266
337f0b00
ZJS
3267 * Only relevant for developers: the mkosi.default symlink has been
3268 dropped from version control. Please create a symlink to one of the
3269 distribution-specific defaults in .mkosi/ based on your preference.
4c967576 3270
72e51908 3271 Contributions from: 24bisquitz, Adam Nielsen, Alan Perry, Alexander
ae366f3a
ZJS
3272 Malafeev, Amitanand.Chikorde, Alin Popa, Alvin Šipraga, Amos Bird,
3273 Andreas Rammhold, AndreRH, Andrew Doran, Anita Zhang, Ankit Jain,
3274 antznin, Arnaud Ferraris, Arthur Moraes do Lago, Arusekk, Balaji
3275 Punnuru, Balint Reczey, Bastien Nocera, bemarek, Benjamin Berg,
3276 Benjamin Dahlhoff, Benjamin Robin, Chris Down, Chris Kerr, Christian
3277 Göttsche, Christian Hesse, Christian Oder, Ciprian Hacman, Clinton Roy,
3278 codicodi, Corey Hinshaw, Daan De Meyer, Dana Olson, Dan Callaghan,
3279 Daniel Fullmer, Daniel Rusek, Dan Streetman, Dave Reisner, David
3280 Edmundson, David Wood, Denis Pronin, Diego Escalante Urrelo, Dimitri
3281 John Ledkov, dolphrundgren, duguxy, Einsler Lee, Elisei Roca, Emmanuel
3282 Garette, Eric Anderson, Eric DeVolder, Evgeny Vereshchagin,
3283 ExtinctFire, fangxiuning, Ferran Pallarès Roca, Filipe Brandenburger,
3284 Filippo Falezza, Finn, Florian Klink, Florian Mayer, Franck Bui,
3285 Frantisek Sumsal, gaurav, Georg Müller, Gergely Polonkai, Giedrius
3286 Statkevičius, Gigadoc2, gogogogi, Gaurav Singh, gzjsgdsb, Hans de
3287 Goede, Haochen Tong, ianhi, ignapk, Jakov Smolic, James T. Lee, Jan
3288 Janssen, Jan Klötzke, Jan Palus, Jay Burger, Jeremy Cline, Jérémy
3289 Rosen, Jian-Hong Pan, Jiri Slaby, Joel Shapiro, Joerg Behrmann, Jörg
3290 Thalheim, Jouke Witteveen, Kai-Heng Feng, Kenny Levinsen, Kevin
3291 Kuehler, Kumar Kartikeya Dwivedi, layderv, laydervus, Lénaïc Huard,
3292 Lennart Poettering, Lidong Zhong, Luca Boccassi, Luca BRUNO, Lucas
3293 Werkmeister, Lukas Klingsbo, Lukáš Nykrýn, Łukasz Stelmach, Maciej
3294 S. Szmigiero, MadMcCrow, Marc-André Lureau, Marcel Holtmann, Marc
3295 Kleine-Budde, Martin Hundebøll, Matthew Leeds, Matt Ranostay, Maxim
3296 Fomin, MaxVerevkin, Michael Biebl, Michael Chapman, Michael Gubbels,
3297 Michael Marley, Michał Bartoszkiewicz, Michal Koutný, Michal Sekletár,
3298 Mike Gilbert, Mike Kazantsev, Mikhail Novosyolov, ml, Motiejus Jakštys,
3299 nabijaczleweli, nerdopolis, Niccolò Maggioni, Niklas Hambüchen, Norbert
3300 Lange, Paul Cercueil, pelzvieh, Peter Hutterer, Piero La Terza, Pieter
3301 Lexis, Piotr Drąg, Rafael Fontenelle, Richard Petri, Ronan Pigott, Ross
3302 Lagerwall, Rubens Figueiredo, satmandu, Sean-StarLabs, Sebastian
3303 Jennen, sterlinghughes, Surhud More, Susant Sahani, szb512, Thomas
3304 Haller, Tobias Hunger, Tom, Tomáš Pospíšek, Tomer Shechner, Tom Hughes,
3305 Topi Miettinen, Tudor Roman, Uwe Kleine-König, Valery0xff, Vito Caputo,
3306 Vladimir Panteleev, Vladyslav Tronko, Wen Yang, Yegor Vialov, Yigal
3307 Korman, Yi Gao, YmrDtnJu, Yuri Chornoivan, Yu Watanabe, Zbigniew
3308 Jędrzejewski-Szmek, Zhu Li, Дамјан Георгиевски, наб
3309
3310 – Warsaw, 2020-07-30
976efe1b 3311
901d1ce8 3312CHANGES WITH 245:
723822f0 3313
68410195 3314 * A new tool "systemd-repart" has been added, that operates as an
2ad98889
ZJS
3315 idempotent declarative repartitioner for GPT partition tables.
3316 Specifically, a set of partitions that must or may exist can be
3317 configured via drop-in files, and during every boot the partition
3318 table on disk is compared with these files, creating missing
3319 partitions or growing existing ones based on configurable relative
3320 and absolute size constraints. The tool is strictly incremental,
3321 i.e. does not delete, shrink or move partitions, but only adds and
3322 grows them. The primary use-case is OS images that ship in minimized
3323 form, that on first boot are grown to the size of the underlying
3324 block device or augmented with additional partitions. For example,
3325 the root partition could be extended to cover the whole disk, or a
3326 swap or /home partitions could be added on first boot. It can also be
3327 used for systems that use an A/B update scheme but ship images with
3328 just the A partition, with B added on first boot. The tool is
3329 primarily intended to be run in the initrd, shortly before
3330 transitioning into the host OS, but can also be run after the
3331 transition took place. It automatically discovers the disk backing
3332 the root file system, and should hence not require any additional
3333 configuration besides the partition definition drop-ins. If no
3334 configuration drop-ins are present, no action is taken.
68410195
LP
3335
3336 * A new component "userdb" has been added, along with a small daemon
a0223c30 3337 "systemd-userdbd.service" and a client tool "userdbctl". The framework
68410195
LP
3338 allows defining rich user and group records in a JSON format,
3339 extending on the classic "struct passwd" and "struct group"
3340 structures. Various components in systemd have been updated to
3341 process records in this format, including systemd-logind and
3342 pam-systemd. The user records are intended to be extensible, and
3343 allow setting various resource management, security and runtime
3344 parameters that shall be applied to processes and sessions of the
3345 user as they log in. This facility is intended to allow associating
3346 such metadata directly with user/group records so that they can be
3347 produced, extended and consumed in unified form. We hope that
3348 eventually frameworks such as sssd will generate records this way, so
3349 that for the first time resource management and various other
3350 per-user settings can be configured in LDAP directories and then
3351 provided to systemd (specifically to systemd-logind and pam-system)
2ad98889 3352 to apply on login. For further details see:
68410195
LP
3353
3354 https://systemd.io/USER_RECORD
3355 https://systemd.io/GROUP_RECORD
3356 https://systemd.io/USER_GROUP_API
3357
9a4940bf 3358 * A small new service systemd-homed.service has been added, that may be
2ad98889
ZJS
3359 used to securely manage home directories with built-in encryption.
3360 The complete user record data is unified with the home directory,
3361 thus making home directories naturally migratable. Its primary
3362 back-end is based on LUKS volumes, but fscrypt, plain directories,
3363 and other storage schemes are also supported. This solves a couple of
3364 problems we saw with traditional ways to manage home directories, in
3365 particular when it comes to encryption. For further discussion of
3366 this, see the video of Lennart's talk at AllSystemsGo! 2019:
9a4940bf
LP
3367
3368 https://media.ccc.de/v/ASG2019-164-reinventing-home-directories
3369
3370 For further details about the format and expectations on home
3371 directories this new daemon makes, see:
3372
3373 https://systemd.io/HOME_DIRECTORY
3374
3375 * systemd-journald is now multi-instantiable. In addition to the main
3376 instance systemd-journald.service there's now a template unit
2ad98889
ZJS
3377 systemd-journald@.service, with each instance defining a new named
3378 log 'namespace' (whose name is specified via the instance part of the
3379 unit name). A new unit file setting LogNamespace= has been added,
3380 taking such a namespace name, that assigns services to the specified
3381 log namespaces. As each log namespace is serviced by its own
3382 independent journal daemon, this functionality may be used to improve
3383 performance and increase isolation of applications, at the price of
3384 losing global message ordering. Each instance of journald has a
3385 separate set of configuration files, with possibly different disk
3386 usage limitations and other settings.
3387
3388 journalctl now takes a new option --namespace= to show logs from a
3389 specific log namespace. The sd-journal.h API gained
3390 sd_journal_open_namespace() for opening the log stream of a specific
3391 log namespace. systemd-journald also gained the ability to exit on
3392 idle, which is useful in the context of log namespaces, as this means
3393 log daemons for log namespaces can be activated automatically on
3394 demand and will stop automatically when no longer used, minimizing
3395 resource usage.
9a4940bf 3396
723822f0 3397 * When systemd-tmpfiles copies a file tree using the 'C' line type it
2ad98889 3398 will now label every copied file according to the SELinux database.
723822f0
LP
3399
3400 * When systemd/PID 1 detects it is used in the initrd it will now boot
3401 into initrd.target rather than default.target by default. This should
3402 make it simpler to build initrds with systemd as for many cases the
3403 only difference between a host OS image and an initrd image now is
2ad98889 3404 the presence of the /etc/initrd-release file.
723822f0
LP
3405
3406 * A new kernel command line option systemd.cpu_affinity= is now
3407 understood. It's equivalent to the CPUAffinity= option in
3408 /etc/systemd/system.conf and allows setting the CPU mask for PID 1
2ad98889 3409 itself and the default for all other processes.
723822f0 3410
2ad98889
ZJS
3411 * When systemd/PID 1 is reloaded (with systemctl daemon-reload or
3412 equivalent), the SELinux database is now reloaded, ensuring that
723822f0
LP
3413 sockets and other file system objects are generated taking the new
3414 database into account.
3415
d54bb638
ZJS
3416 * systemd/PID 1 accepts a new "systemd.show-status=error" setting, and
3417 "quiet" has been changed to imply that instead of
3418 "systemd.show-status=auto". In this mode, only messages about errors
3419 and significant delays in boot are shown on the console.
3420
2ad98889 3421 * The sd-event.h API gained native support for the new Linux "pidfd"
723822f0
LP
3422 concept. This permits watching processes using file descriptors
3423 instead of PID numbers, which fixes a number of races and makes
2ad98889 3424 process supervision more robust and efficient. All of systemd's
723822f0
LP
3425 components will now use pidfds if the kernel supports it for process
3426 watching, with the exception of PID 1 itself, unfortunately. We hope
3427 to move PID 1 to exclusively using pidfds too eventually, but this
3428 requires some more kernel work first. (Background: PID 1 watches
3429 processes using waitid() with the P_ALL flag, and that does not play
3430 together nicely with pidfds yet.)
3431
3432 * Closely related to this, the sd-event.h API gained two new calls
3433 sd_event_source_send_child_signal() (for sending a signal to a
3434 watched process) and sd_event_source_get_child_process_own() (for
2ad98889
ZJS
3435 marking a process so that it is killed automatically whenever the
3436 event source watching it is freed).
723822f0 3437
60ed2dcf 3438 * systemd-networkd gained support for configuring Token Bucket Filter
2ad98889
ZJS
3439 (TBF) parameters in its qdisc configuration support. Similarly,
3440 support for Stochastic Fairness Queuing (SFQ), Controlled-Delay
69f17347 3441 Active Queue Management (CoDel), and Fair Queue (FQ) has been added.
723822f0
LP
3442
3443 * systemd-networkd gained support for Intermediate Functional Block
3444 (IFB) network devices.
3445
3446 * systemd-networkd gained support for configuring multi-path IP routes,
3447 using the new MultiPathRoute= setting in the [Route] section.
3448
2ad98889
ZJS
3449 * systemd-networkd's DHCPv4 client has been updated to support a new
3450 SendDecline= option. If enabled, duplicate address detection is done
3451 after a DHCP offer is received from the server. If a conflict is
3452 detected, the address is declined. The DHCPv4 client also gained
723822f0
LP
3453 support for a new RouteMTUBytes= setting that allows to configure the
3454 MTU size to be used for routes generated from DHCPv4 leases.
3455
3456 * The PrefixRoute= setting in systemd-networkd's [Address] section of
3457 .network files has been deprecated, and replaced by AddPrefixRoute=,
2ad98889 3458 with its sense inverted.
723822f0
LP
3459
3460 * The Gateway= setting of [Route] sections of .network files gained
427928ca
ZJS
3461 support for a special new value "_dhcp". If set, the configured
3462 static route uses the gateway host configured via DHCP.
723822f0 3463
573e58f6 3464 * New User= and SuppressPrefixLength= settings have been implemented
f05c0615
YW
3465 for the [RoutingPolicyRule] section of .network files to configure
3466 source routing based on UID ranges and prefix length, respectively.
9a4940bf 3467
88b2a950
ZJS
3468 * The Type= match property of .link files has been generalized to
3469 always match the device type shown by 'networkctl status', even for
3470 devices where udev does not set DEVTYPE=. This allows e.g. Type=ether
3471 to be used.
3472
2ad98889
ZJS
3473 * sd-bus gained a new API call sd_bus_message_sensitive() that marks a
3474 D-Bus message object as "sensitive". Those objects are erased from
3475 memory when they are freed. This concept is intended to be used for
3476 messages that contain security sensitive data. A new flag
3477 SD_BUS_VTABLE_SENSITIVE has been introduced as well to mark methods
3478 in sd-bus vtables, causing any incoming and outgoing messages of
3479 those methods to be implicitly marked as "sensitive".
723822f0 3480
9a4940bf 3481 * sd-bus gained a new API call sd_bus_message_dump() for dumping the
2ad98889 3482 contents of a message (or parts thereof) to standard output for
9a4940bf
LP
3483 debugging purposes.
3484
2ad98889
ZJS
3485 * systemd-sysusers gained support for creating users with the primary
3486 group named differently than the user.
9a4940bf 3487
723822f0
LP
3488 * systemd-growfs (i.e. the x-systemd.growfs mount option in /etc/fstab)
3489 gained support for growing XFS partitions. Previously it supported
3490 only ext4 and btrfs partitions.
3491
3492 * The support for /etc/crypttab gained a new x-initrd.attach option. If
2ad98889
ZJS
3493 set, the specified encrypted volume is unlocked already in the
3494 initrd. This concept corresponds to the x-initrd.mount option in
723822f0
LP
3495 /etc/fstab.
3496
3497 * systemd-cryptsetup gained native support for unlocking encrypted
3498 volumes utilizing PKCS#11 smartcards, i.e. for example to bind
2ad98889 3499 encryption of volumes to YubiKeys. This is exposed in the new
723822f0
LP
3500 pkcs11-uri= option in /etc/crypttab.
3501
68410195
LP
3502 * The /etc/fstab support in systemd now supports two new mount options
3503 x-systemd.{required,wanted}-by=, for explicitly configuring the units
3504 that the specified mount shall be pulled in by, in place of
3505 the usual local-fs.target/remote-fs.target.
3506
723822f0
LP
3507 * The https://systemd.io/ web site has been relaunched, directly
3508 populated with most of the documentation included in the systemd
2ad98889
ZJS
3509 repository. systemd also acquired a new logo, thanks to Tobias
3510 Bernard.
723822f0
LP
3511
3512 * systemd-udevd gained support for managing "alternative" network
3513 interface names, as supported by new Linux kernels. For the first
3514 time this permits assigning multiple (and longer!) names to a network
3515 interface. systemd-udevd will now by default assign the names
2ad98889
ZJS
3516 generated via all supported naming schemes to each interface. This
3517 may be further tweaked with .link files and the AlternativeName= and
3518 AlternativeNamesPolicy= settings. Other components of systemd have
3519 been updated to support the new alternative names wherever
3520 appropriate. For example, systemd-nspawn will now generate
3521 alternative interface names for the host-facing side of container
3522 veth links based on the full container name without truncation.
723822f0
LP
3523
3524 * systemd-nspawn interface naming logic has been updated in another way
3525 too: if the main interface name (i.e. as opposed to new-style
2ad98889
ZJS
3526 "alternative" names) based on the container name is truncated, a
3527 simple hashing scheme is used to give different interface names to
3528 multiple containers whose names all begin with the same prefix. Since
3529 this changes the primary interface names pointing to containers if
3530 truncation happens, the old scheme may still be requested by
3531 selecting an older naming scheme, via the net.naming-scheme= kernel
3532 command line option.
723822f0 3533
68410195
LP
3534 * PrivateUsers= in service files now works in services run by the
3535 systemd --user per-user instance of the service manager.
3536
3537 * A new per-service sandboxing option ProtectClock= has been added that
3538 locks down write access to the system clock. It takes away device
2ad98889
ZJS
3539 node access to /dev/rtc as well as the system calls that set the
3540 system clock and the CAP_SYS_TIME and CAP_WAKE_ALARM capabilities.
3541 Note that this option does not affect access to auxiliary services
3542 that allow changing the clock, for example access to
3543 systemd-timedated.
68410195
LP
3544
3545 * The systemd-id128 tool gained a new "show" verb for listing or
3546 resolving a number of well-known UUIDs/128bit IDs, currently mostly
3547 GPT partition table types.
723822f0
LP
3548
3549 * The Discoverable Partitions Specification has been updated to support
3550 /var and /var/tmp partition discovery. Support for this has been
3551 added to systemd-gpt-auto-generator. For details see:
3552
3553 https://systemd.io/DISCOVERABLE_PARTITIONS
3554
3555 * "systemctl list-unit-files" has been updated to show a new column
3556 with the suggested enablement state based on the vendor preset files
3557 for the respective units.
3558
68410195
LP
3559 * "systemctl" gained a new option "--with-dependencies". If specified
3560 commands such as "systemctl status" or "systemctl cat" will now show
3561 all specified units along with all units they depend on.
3562
723822f0
LP
3563 * networkctl gained support for showing per-interface logs in its
3564 "status" output.
3565
a100fe3c 3566 * systemd-networkd-wait-online gained support for specifying the maximum
573e58f6
ZJS
3567 operational state to wait for, and to wait for interfaces to
3568 disappear.
3569
723822f0
LP
3570 * The [Match] section of .link and .network files now supports a new
3571 option PermanentMACAddress= which may be used to check against the
3572 permanent MAC address of a network device even if a randomized MAC
3573 address is used.
3574
69f17347
ZJS
3575 * The [TrafficControlQueueingDiscipline] section in .network files has
3576 been renamed to [NetworkEmulator] with the "NetworkEmulator" prefix
3577 dropped from the individual setting names.
68410195 3578
823b0352
ZJS
3579 * Any .link and .network files that have an empty [Match] section (this
3580 also includes empty and commented-out files) will now be
3581 rejected. systemd-udev and systemd-networkd started warning about
3582 such files in version 243.
3583
2ad98889 3584 * systemd-logind will now validate access to the operation of changing
98ab0dae 3585 the virtual terminal via a polkit action. By default, only users
2ad98889 3586 with at least one session on a local VT are granted permission.
68410195 3587
2ad98889
ZJS
3588 * When systemd sets up PAM sessions that invoked service processes
3589 shall run in, the pam_setcred() API is now invoked, thus permitting
3590 PAM modules to set additional credentials for the processes.
68410195 3591
d54bb638
ZJS
3592 * portablectl attach/detach verbs now accept --now and --enable options
3593 to combine attachment with enablement and invocation, or detachment
3594 with stopping and disablement.
3595
2ca17c78
ZJS
3596 * UPGRADE ISSUE: a bug where some jobs were trimmed as redundant was
3597 fixed, which in turn exposed bugs in unit configuration of services
3598 which have Type=oneshot and should only run once, but do not have
3599 RemainAfterExit=yes set. Without RemainAfterExit=yes, a one-shot
3600 service may be started again after exiting successfully, for example
3601 as a dependency in another transaction. Affected services included
3602 some internal systemd services (most notably
3603 systemd-vconsole-setup.service, which was updated to have
3604 RemainAfterExit=yes), and plymouth-start.service. Please ensure that
3605 plymouth has been suitably updated or patched before upgrading to
3606 this systemd release. See
3607 https://bugzilla.redhat.com/show_bug.cgi?id=1807771 for some
3608 additional discussion.
3609
9c4d3d79
ZJS
3610 Contributions from: AJ Bagwell, Alin Popa, Andreas Rammhold, Anita
3611 Zhang, Ansgar Burchardt, Antonio Russo, Arian van Putten, Ashley Davis,
3612 Balint Reczey, Bart Willems, Bastien Nocera, Benjamin Dahlhoff, Charles
3613 (Chas) Williams, cheese1, Chris Down, Chris Murphy, Christian Ehrhardt,
3614 Christian Göttsche, cvoinf, Daan De Meyer, Daniele Medri, Daniel Rusek,
3615 Daniel Shahaf, Dann Frazier, Dan Streetman, Dariusz Gadomski, David
3616 Michael, Dimitri John Ledkov, Emmanuel Bourg, Evgeny Vereshchagin,
3617 ezst036, Felipe Sateler, Filipe Brandenburger, Florian Klink, Franck
3618 Bui, Fran Dieguez, Frantisek Sumsal, Greg "GothAck" Miell, Guilhem
3619 Lettron, Guillaume Douézan-Grard, Hans de Goede, HATAYAMA Daisuke, Iain
3620 Lane, James Buren, Jan Alexander Steffens (heftig), Jérémy Rosen, Jin
3621 Park, Jun'ichi Nomura, Kai Krakow, Kevin Kuehler, Kevin P. Fleming,
3622 Lennart Poettering, Leonid Bloch, Leonid Evdokimov, lothrond, Luca
3623 Boccassi, Lukas K, Lynn Kirby, Mario Limonciello, Mark Deneen, Matthew
3624 Leeds, Michael Biebl, Michal Koutný, Michal Sekletár, Mike Auty, Mike
3625 Gilbert, mtron, nabijaczleweli, Naïm Favier, Nate Jones, Norbert Lange,
3626 Oliver Giles, Paul Davey, Paul Menzel, Peter Hutterer, Piotr Drąg, Rafa
3627 Couto, Raphael, rhn, Robert Scheck, Rocka, Romain Naour, Ryan Attard,
3628 Sascha Dewald, Shengjing Zhu, Slava Kardakov, Spencer Michaels, Sylvain
3629 Plantefeve, Stanislav Angelovič, Susant Sahani, Thomas Haller, Thomas
3630 Schmitt, Timo Schlüßler, Timo Wilken, Tobias Bernard, Tobias Klauser,
3631 Tobias Stoeckmann, Topi Miettinen, tsia, WataruMatsuoka, Wieland
3632 Hoffmann, Wilhelm Schuster, Will Fleming, xduugu, Yong Cong Sin, Yuri
3633 Chornoivan, Yu Watanabe, Zach Smith, Zbigniew Jędrzejewski-Szmek, Zeyu
3634 DONG
901d1ce8 3635
03985d06 3636 – Warsaw, 2020-03-06
723822f0 3637
bdf2357c 3638CHANGES WITH 244:
ee50dada
ZJS
3639
3640 * Support for the cpuset cgroups v2 controller has been added.
3641 Processes may be restricted to specific CPUs using the new
3642 AllowedCPUs= setting, and to specific memory NUMA nodes using the new
3643 AllowedMemoryNodes= setting.
3644
3645 * The signal used in restart jobs (as opposed to e.g. stop jobs) may
1e904320 3646 now be configured using a new RestartKillSignal= setting. This
ee50dada
ZJS
3647 allows units which signals to request termination to implement
3648 different behaviour when stopping in preparation for a restart.
3649
3650 * "systemctl clean" may now be used also for socket, mount, and swap
3651 units.
3652
3653 * systemd will also read configuration options from the EFI variable
3654 SystemdOptions. This may be used to configure systemd behaviour when
3655 modifying the kernel command line is inconvenient, but configuration
3656 on disk is read too late, for example for the options related to
2536752d 3657 cgroup hierarchy setup. 'bootctl systemd-efi-options' may be used to
ee50dada
ZJS
3658 set the EFI variable.
3659
3660 * systemd will now disable printk ratelimits in early boot. This should
3661 allow us to capture more logs from the early boot phase where normal
3662 storage is not available and the kernel ring buffer is used for
3663 logging. Configuration on the kernel command line has higher priority
3664 and overrides the systemd setting.
3665
3666 systemd programs which log to /dev/kmsg directly use internal
3667 ratelimits to prevent runaway logging. (Normally this is only used
3668 during early boot, so in practice this change has very little
3669 effect.)
3670
3e1db806
AZ
3671 * Unit files now support top level dropin directories of the form
3672 <unit_type>.d/ (e.g. service.d/) that may be used to add configuration
3673 that affects all corresponding unit files.
ee50dada 3674
852b7272
ZJS
3675 * systemctl gained support for 'stop --job-mode=triggering' which will
3676 stop the specified unit and any units which could trigger it.
3677
3678 * Unit status display now includes units triggering and triggered by
3679 the unit being shown.
3680
ee50dada
ZJS
3681 * The RuntimeMaxSec= setting is now supported by scopes, not just
3682 .service units. This is particularly useful for PAM sessions which
3683 create a scope unit for the user login. systemd.runtime_max_sec=
3684 setting may used with the pam_systemd module to limit the duration
3685 of the PAM session, for example for time-limited logins.
3686
852b7272 3687 * A new @pkey system call group is now defined to make it easier to
6b000af4 3688 allow-list memory protection syscalls for containers and services
852b7272
ZJS
3689 which need to use them.
3690
3691 * systemd-udevd: removed the 30s timeout for killing stale workers on
3692 exit. systemd-udevd now waits for workers to finish. The hard-coded
3693 exit timeout of 30s was too short for some large installations, where
3694 driver initialization could be prematurely interrupted during initrd
3695 processing if the root file system had been mounted and init was
3696 preparing to switch root. If udevd is run without systemd and workers
3697 are hanging while udevd receives an exit signal, udevd will now exit
3698 when udev.event_timeout is reached for the last hanging worker. With
3699 systemd, the exit timeout can additionally be configured using
3700 TimeoutStopSec= in systemd-udevd.service.
3701
ee50dada
ZJS
3702 * udev now provides a program (fido_id) that identifies FIDO CTAP1
3703 ("U2F")/CTAP2 security tokens based on the usage declared in their
3704 report and descriptor and outputs suitable environment variables.
6b000af4 3705 This replaces the externally maintained allow lists of all known
ee50dada
ZJS
3706 security tokens that were used previously.
3707
6b000af4 3708 * Automatically generated autosuspend udev rules for allow-listed
ee50dada 3709 devices have been imported from the Chromium OS project. This should
b7db8b7b 3710 improve power saving with many more devices.
ee50dada
ZJS
3711
3712 * udev gained a new "CONST{key}=value" setting that allows matching
3713 against system-wide constants without forking a helper binary.
3714 Currently "arch" and "virt" keys are supported.
3715
3716 * udev now opens CDROMs in non-exclusive mode when querying their
3717 capabilities. This should fix issues where other programs trying to
3718 use the CDROM cannot gain access to it, but carries a risk of
3719 interfering with programs writing to the disk, if they did not open
3720 the device in exclusive mode as they should.
3721
3722 * systemd-networkd does not create a default route for IPv4 link local
3723 addressing anymore. The creation of the route was unexpected and was
3724 breaking routing in various cases, but people who rely on it being
3725 created implicitly will need to adjust. Such a route may be requested
3726 with DefaultRouteOnDevice=yes.
3727
3728 Similarly, systemd-networkd will not assign a link-local IPv6 address
3729 when IPv6 link-local routing is not enabled.
3730
3731 * Receive and transmit buffers may now be configured on links with
3732 the new RxBufferSize= and TxBufferSize= settings.
3733
3734 * systemd-networkd may now advertise additional IPv6 routes. A new
3735 [IPv6RoutePrefix] section with Route= and LifetimeSec= options is
3736 now supported.
3737
3738 * systemd-networkd may now configure "next hop" routes using the
3739 [NextHop] section and Gateway= and Id= settings.
3740
3741 * systemd-networkd will now retain DHCP config on restarts by default
3742 (but this may be overridden using the KeepConfiguration= setting).
3743 The default for SendRelease= has been changed to true.
3744
3745 * The DHCPv4 client now uses the OPTION_INFORMATION_REFRESH_TIME option
3746 received from the server.
3747
3748 The client will use the received SIP server list if UseSIP=yes is
3749 set.
3750
3751 The client may be configured to request specific options from the
3752 server using a new RequestOptions= setting.
3753
852b7272
ZJS
3754 The client may be configured to send arbitrary options to the server
3755 using a new SendOption= setting.
3756
ee50dada
ZJS
3757 A new IPServiceType= setting has been added to configure the "IP
3758 service type" value used by the client.
3759
3760 * The DHCPv6 client learnt a new PrefixDelegationHint= option to
3761 request prefix hints in the DHCPv6 solicitation.
3762
852b7272 3763 * The DHCPv4 server may be configured to send arbitrary options using
88b86003 3764 a new SendOption= setting.
852b7272
ZJS
3765
3766 * The DHCPv4 server may now be configured to emit SIP server list using
3767 the new EmitSIP= and SIP= settings.
3768
ee50dada
ZJS
3769 * systemd-networkd and networkctl may now renew DHCP leases on demand.
3770 networkctl has a new 'networkctl renew' verb.
3771
3772 * systemd-networkd may now reconfigure links on demand. networkctl
3773 gained two new verbs: "reload" will reload the configuration, and
3774 "reconfigure DEVICE…" will reconfigure one or more devices.
3775
3776 * .network files may now match on SSID and BSSID of a wireless network,
3777 i.e. the access point name and hardware address using the new SSID=
3778 and BSSID= options. networkctl will display the current SSID and
3779 BSSID for wireless links.
3780
3781 .network files may also match on the wireless network type using the
f36e6a4a 3782 new WLANInterfaceType= option.
ee50dada
ZJS
3783
3784 * systemd-networkd now includes default configuration that enables
3785 link-local addressing when connected to an ad-hoc wireless network.
3786
ee50dada
ZJS
3787 * systemd-networkd may configure the Traffic Control queueing
3788 disciplines in the kernel using the new
3789 [TrafficControlQueueingDiscipline] section and Parent=,
3790 NetworkEmulatorDelaySec=, NetworkEmulatorDelayJitterSec=,
6878c022
YW
3791 NetworkEmulatorPacketLimit=, NetworkEmulatorLossRate=,
3792 NetworkEmulatorDuplicateRate= settings.
ee50dada
ZJS
3793
3794 * systemd-tmpfiles gained a new w+ setting to append to files.
3795
3796 * systemd-analyze dump will now report when the memory configuration in
3797 the kernel does not match what systemd has configured (usually,
3798 because some external program has modified the kernel configuration
3799 on its own).
3800
852b7272
ZJS
3801 * systemd-analyze gained a new --base-time= switch instructs the
3802 'calendar' verb to resolve times relative to that timestamp instead
3803 of the present time.
3804
ee50dada
ZJS
3805 * journalctl --update-catalog now produces deterministic output (making
3806 reproducible image builds easier).
3807
3808 * A new devicetree-overlay setting is now documented in the Boot Loader
3809 Specification.
3810
3811 * The default value of the WatchdogSec= setting used in systemd
3812 services (the ones bundled with the project itself) may be set at
3813 configuration time using the -Dservice-watchdog= setting. If set to
3814 empty, the watchdogs will be disabled.
3815
0e4daba1
MK
3816 * systemd-resolved validates IP addresses in certificates now when GnuTLS
3817 is being used.
597f905c 3818
852b7272
ZJS
3819 * libcryptsetup >= 2.0.1 is now required.
3820
3821 * A configuration option -Duser-path= may be used to override the $PATH
3822 used by the user service manager. The default is again to use the same
3823 path as the system manager.
3824
168e131b
LP
3825 * The systemd-id128 tool gained a new switch "-u" (or "--uuid") for
3826 outputting the 128bit IDs in UUID format (i.e. in the "canonical
3827 representation").
3828
3829 * Service units gained a new sandboxing option ProtectKernelLogs= which
3830 makes sure the program cannot get direct access to the kernel log
3831 buffer anymore, i.e. the syslog() system call (not to be confused
3832 with the API of the same name in libc, which is not affected), the
3833 /proc/kmsg and /dev/kmsg nodes and the CAP_SYSLOG capability are made
3834 inaccessible to the service. It's recommended to enable this setting
3835 for all services that should not be able to read from or write to the
3836 kernel log buffer, which are probably almost all.
3837
bdf2357c 3838 Contributions from: Aaron Plattner, Alcaro, Anita Zhang, Balint Reczey,
8bf2a311
LP
3839 Bastien Nocera, Baybal Ni, Benjamin Bouvier, Benjamin Gilbert, Carlo
3840 Teubner, cbzxt, Chen Qi, Chris Down, Christian Rebischke, Claudio
3841 Zumbo, ClydeByrdIII, crashfistfight, Cyprien Laplace, Daniel Edgecumbe,
3842 Daniel Gorbea, Daniel Rusek, Daniel Stuart, Dan Streetman, David
3843 Pedersen, David Tardon, Dimitri John Ledkov, Dominique Martinet, Donald
3844 A. Cupp Jr, Evgeny Vereshchagin, Fabian Henneke, Filipe Brandenburger,
3845 Franck Bui, Frantisek Sumsal, Georg Müller, Hans de Goede, Haochen
3846 Tong, HATAYAMA Daisuke, Iwan Timmer, Jan Janssen, Jan Kundrát, Jan
3847 Synacek, Jan Tojnar, Jay Strict, Jérémy Rosen, Jóhann B. Guðmundsson,
3848 Jonas Jelten, Jonas Thelemann, Justin Trudell, J. Xing, Kai-Heng Feng,
3849 Kenneth D'souza, Kevin Becker, Kevin Kuehler, Lennart Poettering,
3850 Léonard Gérard, Lorenz Bauer, Luca Boccassi, Maciej Stanczew, Mario
3851 Limonciello, Marko Myllynen, Mark Stosberg, Martin Wilck, matthiasroos,
3852 Michael Biebl, Michael Olbrich, Michael Tretter, Michal Sekletar,
3853 Michal Sekletár, Michal Suchanek, Mike Gilbert, Mike Kazantsev, Nicolas
3854 Douma, nikolas, Norbert Lange, pan93412, Pascal de Bruijn, Paul Menzel,
3855 Pavel Hrdina, Peter Wu, Philip Withnall, Piotr Drąg, Rafael Fontenelle,
3856 Renaud Métrich, Riccardo Schirone, RoadrunnerWMC, Ronan Pigott, Ryan
3857 Attard, Sebastian Wick, Serge, Siddharth Chandrasekara, Steve Ramage,
3858 Steve Traylen, Susant Sahani, Thibault Nélis, Tim Teichmann, Tom
3859 Fitzhenry, Tommy J, Torsten Hilbrich, Vito Caputo, ypf791, Yu Watanabe,
3860 Zach Smith, Zbigniew Jędrzejewski-Szmek
3861
3862 – Warsaw, 2019-11-29
bdf2357c 3863
efb536d0 3864CHANGES WITH 243:
6af90583 3865
0338934f
LP
3866 * This release enables unprivileged programs (i.e. requiring neither
3867 setuid nor file capabilities) to send ICMP Echo (i.e. ping) requests
08b59539 3868 by turning on the "net.ipv4.ping_group_range" sysctl of the Linux
0338934f
LP
3869 kernel for the whole UNIX group range, i.e. all processes. This
3870 change should be reasonably safe, as the kernel support for it was
3871 specifically implemented to allow safe access to ICMP Echo for
3872 processes lacking any privileges. If this is not desirable, it can be
3873 disabled again by setting the parameter to "1 0".
3874
4cd82631 3875 * Previously, filters defined with SystemCallFilter= would have the
08b59539
CR
3876 effect that any calling of an offending system call would terminate
3877 the calling thread. This behaviour never made much sense, since
3878 killing individual threads of unsuspecting processes is likely to
3879 create more problems than it solves. With this release the default
3880 action changed from killing the thread to killing the whole
3881 process. For this to work correctly both a kernel version (>= 4.14)
3882 and a libseccomp version (>= 2.4.0) supporting this new seccomp
3883 action is required. If an older kernel or libseccomp is used the old
3884 behaviour continues to be used. This change does not affect any
3885 services that have no system call filters defined, or that use
3886 SystemCallErrorNumber= (and thus see EPERM or another error instead
3887 of being killed when calling an offending system call). Note that
3888 systemd documentation always claimed that the whole process is
3889 killed. With this change behaviour is thus adjusted to match the
3890 documentation.
4cd82631 3891
4860f5c2
ZJS
3892 * On 64 bit systems, the "kernel.pid_max" sysctl is now bumped to
3893 4194304 by default, i.e. the full 22bit range the kernel allows, up
3894 from the old 16bit range. This should improve security and
3895 robustness, as PID collisions are made less likely (though certainly
3896 still possible). There are rumours this might create compatibility
6af90583
LP
3897 problems, though at this moment no practical ones are known to
3898 us. Downstream distributions are hence advised to undo this change in
3899 their builds if they are concerned about maximum compatibility, but
3900 for everybody else we recommend leaving the value bumped. Besides
3901 improving security and robustness this should also simplify things as
3902 the maximum number of allowed concurrent tasks was previously bounded
4860f5c2
ZJS
3903 by both "kernel.pid_max" and "kernel.threads-max" and now effectively
3904 only a single knob is left ("kernel.threads-max"). There have been
3905 concerns that usability is affected by this change because larger PID
3906 numbers are harder to type, but we believe the change from 5 digits
3907 to 7 digits doesn't hamper usability.
6af90583 3908
2875a36b
LP
3909 * MemoryLow= and MemoryMin= gained hierarchy-aware counterparts,
3910 DefaultMemoryLow= and DefaultMemoryMin=, which can be used to
acdb4b52
CD
3911 hierarchically set default memory protection values for a particular
3912 subtree of the unit hierarchy.
3913
22bf131b
CD
3914 * Memory protection directives can now take a value of zero, allowing
3915 explicit opting out of a default value propagated by an ancestor.
3916
87cf1f8f
LP
3917 * systemd now defaults to the "unified" cgroup hierarchy setup during
3918 build-time, i.e. -Ddefault-hierarchy=unified is now the build-time
3919 default. Previously, -Ddefault-hierarchy=hybrid was the default. This
3920 change reflects the fact that cgroupsv2 support has matured
3921 substantially in both systemd and in the kernel, and is clearly the
3922 way forward. Downstream production distributions might want to
3923 continue to use -Ddefault-hierarchy=hybrid (or even =legacy) for
3924 their builds as unfortunately the popular container managers have not
3925 caught up with the kernel API changes.
3926
51b568f7
ZJS
3927 * Man pages are not built by default anymore (html pages were already
3928 disabled by default), to make development builds quicker. When
3929 building systemd for a full installation with documentation, meson
4860f5c2
ZJS
3930 should be called with -Dman=true and/or -Dhtml=true as appropriate.
3931 The default was changed based on the assumption that quick one-off or
3932 repeated development builds are much more common than full optimized
3933 builds for installation, and people need to pass various other
3934 options to when doing "proper" builds anyway, so the gain from making
3935 development builds quicker is bigger than the one time disruption for
3936 packagers.
51b568f7
ZJS
3937
3938 Two scripts are created in the *build* directory to generate and
3939 preview man and html pages on demand, e.g.:
3940
3941 build/man/man systemctl
3942 build/man/html systemd.index
3943
e110599b 3944 * libidn2 is used by default if both libidn2 and libidn are installed.
4860f5c2 3945 Please use -Dlibidn=true if libidn is preferred.
e110599b 3946
2875a36b 3947 * The D-Bus "wire format" of the CPUAffinity= attribute is changed on
9120e2bf
ZJS
3948 big-endian machines. Before, bytes were written and read in native
3949 machine order as exposed by the native libc __cpu_mask interface.
3950 Now, little-endian order is always used (CPUs 0–7 are described by
3951 bits 0–7 in byte 0, CPUs 8–15 are described by byte 1, and so on).
3952 This change fixes D-Bus calls that cross endianness boundary.
3953
2875a36b
LP
3954 The presentation format used for CPUAffinity= by "systemctl show" and
3955 "systemd-analyze dump" is changed to present CPU indices instead of
3956 the raw __cpu_mask bitmask. For example, CPUAffinity=0-1 would be
3957 shown as CPUAffinity=03000000000000000000000000000… (on
3958 little-endian) or CPUAffinity=00000000000000300000000000000… (on
3959 64-bit big-endian), and is now shown as CPUAffinity=0-1, matching the
3960 input format. The maximum integer that will be printed in the new
3961 format is 8191 (four digits), while the old format always used a very
3962 long number (with the length varying by architecture), so they can be
3963 unambiguously distinguished.
9120e2bf 3964
51b568f7
ZJS
3965 * /usr/sbin/halt.local is no longer supported. Implementation in
3966 distributions was inconsistent and it seems this functionality was
3967 very rarely used.
3968
3969 To replace this functionality, users should:
3970 - either define a new unit and make it a dependency of final.target
3971 (systemctl add-wants final.target my-halt-local.service)
3972 - or move the shutdown script to /usr/lib/systemd/system-shutdown/
3973 and ensure that it accepts "halt", "poweroff", "reboot", and
3974 "kexec" as an argument, see the description in systemd-shutdown(8).
3975
3976 * When a [Match] section in .link or .network file is empty (contains
3977 no match patterns), a warning will be emitted. Please add any "match
9120e2bf 3978 all" pattern instead, e.g. OriginalName=* or Name=* in case all
51b568f7
ZJS
3979 interfaces should really be matched.
3980
b070c7c0 3981 * A new setting NUMAPolicy= may be used to set process memory
08b59539
CR
3982 allocation policy. This setting can be specified in
3983 /etc/systemd/system.conf and hence will set the default policy for
3984 PID1. The default policy can be overridden on a per-service
3985 basis. The related setting NUMAMask= is used to specify NUMA node
3986 mask that should be associated with the selected policy.
2875a36b
LP
3987
3988 * PID 1 will now listen to Out-Of-Memory (OOM) events the kernel
eebaa724 3989 generates when processes it manages are reaching their memory limits,
2875a36b
LP
3990 and will place their units in a special state, and optionally kill or
3991 stop the whole unit.
3992
3993 * The service manager will now expose bus properties for the IO
3994 resources used by units. This information is also shown in "systemctl
3995 status" now (for services that have IOAccounting=yes set). Moreover,
3996 the IO accounting data is included in the resource log message
3997 generated whenever a unit stops.
3998
201632e3 3999 * Units may now configure an explicit timeout to wait for when killed
2875a36b 4000 with SIGABRT, for example when a service watchdog is hit. Previously,
201632e3
ZJS
4001 the regular TimeoutStopSec= timeout was applied in this case too —
4002 now a separate timeout may be set using TimeoutAbortSec=.
2875a36b
LP
4003
4004 * Services may now send a special WATCHDOG=trigger message with
4005 sd_notify() to trigger an immediate "watchdog missed" event, and thus
4860f5c2 4006 trigger service termination. This is useful both for testing watchdog
2875a36b
LP
4007 handling, but also for defining error paths in services, that shall
4008 be handled the same way as watchdog events.
4009
4010 * There are two new per-unit settings IPIngressFilterPath= and
4011 IPEgressFilterPath= which allow configuration of a BPF program
4012 (usually by specifying a path to a program uploaded to /sys/fs/bpf/)
4013 to apply to the IP packet ingress/egress path of all processes of a
4014 unit. This is useful to allow running systemd services with BPF
4015 programs set up externally.
4016
4017 * systemctl gained a new "clean" verb for removing the state, cache,
4018 runtime or logs directories of a service while it is terminated. The
4019 new verb may also be used to remove the state maintained on disk for
4020 timer units that have Persistent= configured.
4021
4022 * During the last phase of shutdown systemd will now automatically
4023 increase the log level configured in the "kernel.printk" sysctl so
4024 that any relevant loggable events happening during late shutdown are
4025 made visible. Previously, loggable events happening so late during
4026 shutdown were generally lost if the "kernel.printk" sysctl was set to
4027 high thresholds, as regular logging daemons are terminated at that
4028 time and thus nothing is written to disk.
4029
4030 * If processes terminated during the last phase of shutdown do not exit
4031 quickly systemd will now show their names after a short time, to make
201632e3 4032 debugging easier. After a longer timeout they are forcibly killed,
2875a36b
LP
4033 as before.
4034
4035 * journalctl (and the other tools that display logs) will now highlight
4036 warnings in yellow (previously, both LOG_NOTICE and LOG_WARNING where
4037 shown in bright bold, now only LOG_NOTICE is). Moreover, audit logs
4038 are now shown in blue color, to separate them visually from regular
4039 logs. References to configuration files are now turned into clickable
4040 links on terminals that support that.
4041
4042 * systemd-journald will now stop logging to /var/log/journal during
4043 shutdown when /var/ is on a separate mount, so that it can be
4044 unmounted safely during shutdown.
4045
4046 * systemd-resolved gained support for a new 'strict' DNS-over-TLS mode.
4047
29db4c3a
LP
4048 * systemd-resolved "Cache=" configuration option in resolved.conf has
4049 been extended to also accept the 'no-negative' value. Previously,
4050 only a boolean option was allowed (yes/no), having yes as the
4860f5c2
ZJS
4051 default. If this option is set to 'no-negative', negative answers are
4052 not cached while the old cache heuristics are used positive answers.
4053 The default remains unchanged.
37d7a7d9 4054
2875a36b
LP
4055 * The predictable naming scheme for network devices now supports
4056 generating predictable names for "netdevsim" devices.
4057
4860f5c2
ZJS
4058 Moreover, the "en" prefix was dropped from the ID_NET_NAME_ONBOARD
4059 udev property.
4060
4061 Those two changes form a new net.naming-policy-scheme= entry.
4062 Distributions which want to preserve naming stability may want to set
4063 the -Ddefault-net-naming-scheme= configuration option.
4064
2875a36b
LP
4065 * systemd-networkd now supports MACsec, nlmon, IPVTAP and Xfrm
4066 interfaces natively.
4067
4068 * systemd-networkd's bridge FDB support now allows configuration of a
4069 destination address for each entry (Destination=), as well as the
4070 VXLAN VNI (VNI=), as well as an option to declare what an entry is
4071 associated with (AssociatedWith=).
4072
4073 * systemd-networkd's DHCPv4 support now understands a new MaxAttempts=
08b59539 4074 option for configuring the maximum number of DHCP lease requests. It
6b000af4 4075 also learnt a new BlackList= option for deny-listing DHCP servers (a
08b59539
CR
4076 similar setting has also been added to the IPv6 RA client), as well
4077 as a SendRelease= option for configuring whether to send a DHCP
4078 RELEASE message when terminating.
2875a36b
LP
4079
4080 * systemd-networkd's DHCPv4 and DHCPv6 stacks can now be configured
29db4c3a
LP
4081 separately in the [DHCPv4] and [DHCPv6] sections.
4082
4083 * systemd-networkd's DHCP support will now optionally create an
4084 implicit host route to the DNS server specified in the DHCP lease, in
4085 addition to the routes listed explicitly in the lease. This should
4086 ensure that in multi-homed systems DNS traffic leaves the systems on
4087 the interface that acquired the DNS server information even if other
4088 routes such as default routes exist. This behaviour may be turned on
4089 with the new RoutesToDNS= option.
2875a36b
LP
4090
4091 * systemd-networkd's VXLAN support gained a new option
eebaa724 4092 GenericProtocolExtension= for enabling VXLAN Generic Protocol
2875a36b
LP
4093 Extension support, as well as IPDoNotFragment= for setting the IP
4094 "Don't fragment" bit on outgoing packets. A similar option has been
4095 added to the GENEVE support.
4096
4097 * In systemd-networkd's [Route] section you may now configure
4098 FastOpenNoCookie= for configuring per-route TCP fast-open support, as
4099 well as TTLPropagate= for configuring Label Switched Path (LSP) TTL
4100 propagation. The Type= setting now supports local, broadcast,
4101 anycast, multicast, any, xresolve routes, too.
4102
4103 * systemd-networkd's [Network] section learnt a new option
4104 DefaultRouteOnDevice= for automatically configuring a default route
4105 onto the network device.
4106
4107 * systemd-networkd's bridging support gained two new options ProxyARP=
4108 and ProxyARPWifi= for configuring proxy ARP behaviour as well as
9f0d45e4
YW
4109 MulticastRouter= for configuring multicast routing behaviour. A new
4110 option MulticastIGMPVersion= may be used to change bridge's multicast
4111 Internet Group Management Protocol (IGMP) version.
2875a36b
LP
4112
4113 * systemd-networkd's FooOverUDP support gained the ability to configure
4114 local and peer IP addresses via Local= and Peer=. A new option
4115 PeerPort= may be used to configure the peer's IP port.
4116
4117 * systemd-networkd's TUN support gained a new setting VnetHeader= for
4118 tweaking Generic Segment Offload support.
4119
70fcda85
ZJS
4120 * The address family for policy rules may be specified using the new
4121 Family= option in the [RoutingPolicyRule] section.
4122
2875a36b
LP
4123 * networkctl gained a new "delete" command for removing virtual network
4124 devices, as well as a new "--stats" switch for showing device
4125 statistics.
4126
13cb62af
YW
4127 * networkd.conf gained a new setting SpeedMeter= and
4128 SpeedMeterIntervalSec=, to measure bitrate of network interfaces. The
4129 measured speed may be shown by 'networkctl status'.
4130
4860f5c2
ZJS
4131 * "networkctl status" now displays MTU and queue lengths, and more
4132 detailed information about VXLAN and bridge devices.
4133
2875a36b
LP
4134 * systemd-networkd's .network and .link files gained a new Property=
4135 setting in the [Match] section, to match against devices with
4136 specific udev properties.
4137
4138 * systemd-networkd's tunnel support gained a new option
4139 AssignToLoopback= for selecting whether to use the loopback device
4140 "lo" as underlying device.
4141
70183735 4142 * systemd-networkd's MACAddress= setting in the [Neighbor] section has
2875a36b
LP
4143 been renamed to LinkLayerAddress=, and it now allows configuration of
4144 IP addresses, too.
4145
efb536d0
ZJS
4146 * systemd-networkd's handling of the kernel's disable_ipv6 sysctl is
4147 simplified: systemd-networkd will disable the sysctl (enable IPv6) if
4148 IPv6 configuration (static or DHCPv6) was found for a given
4149 interface. It will not touch the sysctl otherwise.
4150
4151 * The order of entries is $PATH used by the user manager instance was
4152 changed to put bin/ entries before the corresponding sbin/ entries.
4153 It is recommended to not rely on this order, and only ever have one
4154 binary with a given name in the system paths under /usr.
4155
29db4c3a
LP
4156 * A new tool systemd-network-generator has been added that may generate
4157 .network, .netdev and .link files from IP configuration specified on
4860f5c2 4158 the kernel command line in the format used by Dracut.
29db4c3a 4159
2875a36b
LP
4160 * The CriticalConnection= setting in .network files is now deprecated,
4161 and replaced by a new KeepConfiguration= setting which allows more
4162 detailed configuration of the IP configuration to keep in place.
4163
4860f5c2
ZJS
4164 * systemd-analyze gained a few new verbs:
4165
4166 - "systemd-analyze timestamp" parses and converts timestamps. This is
4167 similar to the existing "systemd-analyze calendar" command which
4168 does the same for recurring calendar events.
4169
4170 - "systemd-analyze timespan" parses and converts timespans (i.e.
4171 durations as opposed to points in time).
4172
4173 - "systemd-analyze condition" will parse and test ConditionXYZ=
4174 expressions.
4175
4176 - "systemd-analyze exit-status" will parse and convert exit status
4177 codes to their names and back.
4178
4179 - "systemd-analyze unit-files" will print a list of all unit
4180 file paths and unit aliases.
4181
4182 * SuccessExitStatus=, RestartPreventExitStatus=, and
4183 RestartForceExitStatus= now accept exit status names (e.g. "DATAERR"
4184 is equivalent to "65"). Those exit status name mappings may be
cc560ac0 4185 displayed with the systemd-analyze exit-status verb describe above.
2875a36b
LP
4186
4187 * systemd-logind now exposes a per-session SetBrightness() bus call,
4188 which may be used to securely change the brightness of a kernel
4189 brightness device, if it belongs to the session's seat. By using this
4190 call unprivileged clients can make changes to "backlight" and "leds"
4860f5c2
ZJS
4191 devices securely with strict requirements on session membership.
4192 Desktop environments may use this to generically make brightness
4193 changes to such devices without shipping private SUID binaries or
4194 udev rules for that purpose.
2875a36b
LP
4195
4196 * "udevadm info" gained a --wait-for-initialization switch to wait for
4197 a device to be initialized.
4198
4199 * systemd-hibernate-resume-generator will now look for resumeflags= on
4200 the kernel command line, which is similar to rootflags= and may be
4860f5c2 4201 used to configure device timeout for the hibernation device.
2875a36b
LP
4202
4203 * sd-event learnt a new API call sd_event_source_disable_unref() for
4204 disabling and unref'ing an event source in a single function. A
4205 related call sd_event_source_disable_unrefp() has been added for use
4860f5c2 4206 with gcc's cleanup extension.
2875a36b
LP
4207
4208 * The sd-id128.h public API gained a new definition
4209 SD_ID128_UUID_FORMAT_STR for formatting a 128bit ID in UUID format
4210 with printf().
4211
4212 * "busctl introspect" gained a new switch --xml-interface for dumping
4213 XML introspection data unmodified.
4214
4215 * PID 1 may now show the unit name instead of the unit description
4216 string in its status output during boot. This may be configured in
4217 the StatusUnitFormat= setting in /etc/systemd/system.conf or the
4218 kernel command line option systemd.status_unit_format=.
4219
907ddcd3 4220 * PID 1 now understands a new option KExecWatchdogSec= in
4860f5c2
ZJS
4221 /etc/systemd/system.conf to set a watchdog timeout for kexec reboots.
4222 Previously watchdog functionality was only available for regular
4223 reboots. The new setting defaults to off, because we don't know in
4224 the general case if the watchdog will be reset after kexec (some
4225 drivers do reset it, but not all), and the new userspace might not be
4226 configured to handle the watchdog.
4227
4228 Moreover, the old ShutdownWatchdogSec= setting has been renamed to
4229 RebootWatchdogSec= to more clearly communicate what it is about. The
4230 old name is still accepted for compatibility.
907ddcd3 4231
2875a36b 4232 * The systemd.debug_shell kernel command line option now optionally
4860f5c2
ZJS
4233 takes a tty name to spawn the debug shell on, which allows a
4234 different tty to be selected than the built-in default.
2875a36b 4235
a4d5848a
AZ
4236 * Service units gained a new ExecCondition= setting which will run
4237 before ExecStartPre= and either continue execution of the unit (for
4238 clean exit codes), stop execution without marking the unit failed
4239 (for exit codes 1 through 254), or stop execution and fail the unit
4860f5c2 4240 (for exit code 255 or abnormal termination).
a4d5848a 4241
29db4c3a 4242 * A new service systemd-pstore.service has been added that pulls data
08b59539 4243 from /sys/fs/pstore/ and saves it to /var/lib/pstore for later
29db4c3a
LP
4244 review.
4245
4246 * timedatectl gained new verbs for configuring per-interface NTP
4247 service configuration for systemd-timesyncd.
4248
4249 * "localectl list-locales" won't list non-UTF-8 locales anymore. It's
a18a3aac 4250 2019. (You can set non-UTF-8 locales though, if you know their name.)
29db4c3a 4251
b64c47c0
LP
4252 * If variable assignments in sysctl.d/ files are prefixed with "-" any
4253 failures to apply them are now ignored.
4254
a18a3aac
LP
4255 * systemd-random-seed.service now optionally credits entropy when
4256 applying the seed to the system. Set $SYSTEMD_RANDOM_SEED_CREDIT to
4257 true for the service to enable this behaviour, but please consult the
4258 documentation first, since this comes with a couple of caveats.
4259
4860f5c2
ZJS
4260 * systemd-random-seed.service is now a synchronization point for full
4261 initialization of the kernel's entropy pool. Services that require
4262 /dev/urandom to be correctly initialized should be ordered after this
4263 service.
a18a3aac
LP
4264
4265 * The systemd-boot boot loader has been updated to optionally maintain
4266 a random seed file in the EFI System Partition (ESP). During the boot
4267 phase, this random seed is read and updated with a new seed
4860f5c2 4268 cryptographically derived from it. Another derived seed is passed to
a18a3aac
LP
4269 the OS. The latter seed is then credited to the kernel's entropy pool
4270 very early during userspace initialization (from PID 1). This allows
4271 systems to boot up with a fully initialized kernel entropy pool from
4272 earliest boot on, and thus entirely removes all entropy pool
4273 initialization delays from systems using systemd-boot. Special care
4274 is taken to ensure different seeds are derived on system images
4860f5c2
ZJS
4275 replicated to multiple systems. "bootctl status" will show whether
4276 a seed was received from the boot loader.
4277
4278 * bootctl gained two new verbs:
4279
4280 - "bootctl random-seed" will generate the file in ESP and an EFI
4281 variable to allow a random seed to be passed to the OS as described
4282 above.
4283
4284 - "bootctl is-installed" checks whether systemd-boot is currently
4285 installed.
a18a3aac 4286
4860f5c2
ZJS
4287 * bootctl will warn if it detects that boot entries are misconfigured
4288 (for example if the kernel image was removed without purging the
4289 bootloader entry).
a18a3aac
LP
4290
4291 * A new document has been added describing systemd's use and support
4292 for the kernel's entropy pool subsystem:
4293
4294 https://systemd.io/RANDOM_SEEDS
4295
48fd50f7
LP
4296 * When the system is hibernated the swap device to write the
4297 hibernation image to is now automatically picked from all available
4298 swap devices, preferring the swap device with the highest configured
4299 priority over all others, and picking the device with the most free
4300 space if there are multiple devices with the highest priority.
4301
4302 * /etc/crypttab support has learnt a new keyfile-timeout= per-device
86b52a39 4303 option that permits selecting the timeout how long to wait for a
48fd50f7
LP
4304 device with an encryption key before asking for the password.
4305
2dbc45ae
KK
4306 * IOWeight= has learnt to properly set the IO weight when using the
4307 BFQ scheduler officially found in kernels 5.0+.
4308
6d8cf864
ZJS
4309 * A new mailing list has been created for reporting of security issues:
4310 systemd-security@redhat.com. For mode details, see
4311 https://systemd.io/CONTRIBUTING#security-vulnerability-reports.
4312
f21e2ecb
ZJS
4313 Contributions from: Aaron Barany, Adrian Bunk, Alan Jenkins, Albrecht
4314 Lohofener, Andrej Valek, Anita Zhang, Arian van Putten, Balint Reczey,
4315 Bastien Nocera, Ben Boeckel, Benjamin Robin, camoz, Chen Qi, Chris
03985d06
ZJS
4316 Chiu, Chris Down, Christian Göttsche, Christian Kellner, Clinton Roy,
4317 Connor Reeder, Daniel Black, Daniel Lublin, Daniele Medri, Dan
4318 Streetman, Dave Reisner, Dave Ross, David Art, David Tardon, Debarshi
4319 Ray, Dimitri John Ledkov, Dominick Grift, Donald Buczek, Douglas
4320 Christman, Eric DeVolder, EtherGraf, Evgeny Vereshchagin, Feldwor,
4321 Felix Riemann, Florian Dollinger, Francesco Pennica, Franck Bui,
4322 Frantisek Sumsal, Franz Pletz, frederik, Hans de Goede, Iago López
4323 Galeiras, Insun Pyo, Ivan Shapovalov, Iwan Timmer, Jack, Jakob
4324 Unterwurzacher, Jan Chren, Jan Klötzke, Jan Losinski, Jan Pokorný, Jan
4325 Synacek, Jan-Michael Brummer, Jeka Pats, Jeremy Soller, Jérémy Rosen,
4326 Jiri Pirko, Joe Lin, Joerg Behrmann, Joe Richey, Jóhann B. Guðmundsson,
4327 Johannes Christ, Johannes Schmitz, Jonathan Rouleau, Jorge Niedbalski,
4328 Jörg Thalheim, Kai Krakow, Kai Lüke, Karel Zak, Kashyap Chamarthy,
f21e2ecb
ZJS
4329 Krayushkin Konstantin, Lennart Poettering, Lubomir Rintel, Luca
4330 Boccassi, Luís Ferreira, Marc-André Lureau, Markus Felten, Martin Pitt,
4331 Matthew Leeds, Mattias Jernberg, Michael Biebl, Michael Olbrich,
4332 Michael Prokop, Michael Stapelberg, Michael Zhivich, Michal Koutný,
4333 Michal Sekletar, Mike Gilbert, Milan Broz, Miroslav Lichvar, mpe85,
4334 Mr-Foo, Network Silence, Oliver Harley, pan93412, Paul Menzel, pEJipE,
03985d06
ZJS
4335 Peter A. Bigot, Philip Withnall, Piotr Drąg, Rafael Fontenelle, Robert
4336 Scheck, Roberto Santalla, Ronan Pigott, root, RussianNeuroMancer,
4337 Sebastian Jennen, shinygold, Shreyas Behera, Simon Schricker, Susant
4338 Sahani, Thadeu Lima de Souza Cascardo, Theo Ouzhinski, Thiebaud
4339 Weksteen, Thomas Haller, Thomas Weißschuh, Tomas Mraz, Tommi Rantala,
4340 Topi Miettinen, VD-Lycos, ven, Vladimir Yerilov, Wieland Hoffmann,
4341 William A. Kennington III, William Wold, Xi Ruoyao, Yuri Chornoivan,
4342 Yu Watanabe, Zach Smith, Zbigniew Jędrzejewski-Szmek, Zhang Xianwei
29db4c3a 4343
efb536d0 4344 – Camerino, 2019-09-03
6af90583 4345
d822bd4e 4346CHANGES WITH 242:
9b89e602
ZJS
4347
4348 * In .link files, MACAddressPolicy=persistent (the default) is changed
4349 to cover more devices. For devices like bridges, tun, tap, bond, and
4350 similar interfaces that do not have other identifying information,
4351 the interface name is used as the basis for persistent seed for MAC
4352 and IPv4LL addresses. The way that devices that were handled
fd9baae8
ZJS
4353 previously is not changed, and this change is about covering more
4354 devices then previously by the "persistent" policy.
9b89e602
ZJS
4355
4356 MACAddressPolicy=random may be used to force randomized MACs and
4357 IPv4LL addresses for a device if desired.
4358
4359 Hint: the log output from udev (at debug level) was enhanced to
4360 clarify what policy is followed and which attributes are used.
4361 `SYSTEMD_LOG_LEVEL=debug udevadm test-builtin net_setup_link /sys/class/net/<name>`
4362 may be used to view this.
4363
c111cd98
YW
4364 Hint: if a bridge interface is created without any slaves, and gains
4365 a slave later, then now the bridge does not inherit slave's MAC.
4366 To inherit slave's MAC, for example, create the following file:
4367 ```
4368 # /etc/systemd/network/98-bridge-inherit-mac.link
4369 [Match]
4370 Type=bridge
4371
4372 [Link]
4373 MACAddressPolicy=none
4374 ```
4375
9b89e602
ZJS
4376 * The .device units generated by systemd-fstab-generator and other
4377 generators do not automatically pull in the corresponding .mount unit
4378 as a Wants= dependency. This means that simply plugging in the device
4379 will not cause the mount unit to be started automatically. But please
5787c509
LP
4380 note that the mount unit may be started for other reasons, in
4381 particular if it is part of local-fs.target, and any unit which
4382 (transitively) depends on local-fs.target is started.
9b89e602 4383
5787c509
LP
4384 * networkctl list/status/lldp now accept globbing wildcards for network
4385 interface names to match against all existing interfaces.
4386
4387 * The $PIDFILE environment variable is set to point the absolute path
4388 configured with PIDFile= for processes of that service.
9b89e602
ZJS
4389
4390 * The fallback DNS server list was augmented with Cloudflare public DNS
4391 servers. Use `-Ddns-servers=` to set a different fallback.
4392
4393 * A new special target usb-gadget.target will be started automatically
4394 when a USB Device Controller is detected (which means that the system
4395 is a USB peripheral).
4396
5787c509
LP
4397 * A new unit setting CPUQuotaPeriodSec= assigns the time period
4398 relatively to which the CPU time quota specified by CPUQuota= is
4399 measured.
9b89e602 4400
5787c509 4401 * A new unit setting ProtectHostname= may be used to prevent services
9b89e602
ZJS
4402 from modifying hostname information (even if they otherwise would
4403 have privileges to do so).
4404
5787c509 4405 * A new unit setting NetworkNamespacePath= may be used to specify a
9b89e602
ZJS
4406 namespace for service or socket units through a path referring to a
4407 Linux network namespace pseudo-file.
4408
5787c509
LP
4409 * The PrivateNetwork= setting and JoinsNamespaceOf= dependencies now
4410 have an effect on .socket units: when used the listening socket is
4411 created within the configured network namespace instead of the host
4412 namespace.
4413
4414 * ExecStart= command lines in unit files may now be prefixed with ':'
4415 in which case environment variable substitution is
4416 disabled. (Supported for the other ExecXYZ= settings, too.)
4417
2eb466fc
LP
4418 * .timer units gained two new boolean settings OnClockChange= and
4419 OnTimezoneChange= which may be used to also trigger a unit when the
4420 system clock is changed or the local timezone is
4421 modified. systemd-run has been updated to make these options easily
4422 accessible from the command line for transient timers.
4423
4424 * Two new conditions for units have been added: ConditionMemory= may be
4425 used to conditionalize a unit based on installed system
4426 RAM. ConditionCPUs= may be used to conditionalize a unit based on
39e445c9 4427 installed CPU cores.
2eb466fc
LP
4428
4429 * The @default system call filter group understood by SystemCallFilter=
4430 has been updated to include the new rseq() system call introduced in
4431 kernel 4.15.
4432
ab80eca1
ZJS
4433 * A new time-set.target has been added that indicates that the system
4434 time has been set from a local source (possibly imprecise). The
4435 existing time-sync.target is stronger and indicates that the time has
4436 been synchronized with a precise external source. Services where
4437 approximate time is sufficient should use the new target.
4438
2eb466fc
LP
4439 * "systemctl start" (and related commands) learnt a new
4440 --show-transaction option. If specified brief information about all
4441 jobs queued because of the requested operation is shown.
4442
5787c509
LP
4443 * systemd-networkd recognizes a new operation state 'enslaved', used
4444 (instead of 'degraded' or 'carrier') for interfaces which form a
4445 bridge, bond, or similar, and an new 'degraded-carrier' operational
4446 state used for the bond or bridge master interface when one of the
4447 enslaved devices is not operational.
9b89e602 4448
5787c509
LP
4449 * .network files learnt the new IgnoreCarrierLoss= option for leaving
4450 networks configured even if the carrier is lost.
4451
4452 * The RequiredForOnline= setting in .network files may now specify a
9b89e602 4453 minimum operational state required for the interface to be considered
5787c509
LP
4454 "online" by systemd-networkd-wait-online. Related to this
4455 systemd-networkd-wait-online gained a new option --operational-state=
4456 to configure the same, and its --interface= option was updated to
4457 optionally also take an operational state specific for an interface.
9b89e602 4458
2eb466fc
LP
4459 * systemd-networkd-wait-online gained a new setting --any for waiting
4460 for only one of the requested interfaces instead of all of them.
4461
9b89e602
ZJS
4462 * systemd-networkd now implements L2TP tunnels.
4463
5787c509
LP
4464 * Two new .network settings UseAutonomousPrefix= and UseOnLinkPrefix=
4465 may be used to cause autonomous and onlink prefixes received in IPv6
9b89e602
ZJS
4466 Router Advertisements to be ignored.
4467
5787c509
LP
4468 * New MulticastFlood=, NeighborSuppression=, and Learning= .network
4469 file settings may be used to tweak bridge behaviour.
4470
4471 * The new TripleSampling= option in .network files may be used to
4472 configure CAN triple sampling.
9b89e602 4473
78bb2866
YW
4474 * A new .netdev settings PrivateKeyFile= and PresharedKeyFile= may be
4475 used to point to private or preshared key for a WireGuard interface.
9b89e602 4476
5787c509
LP
4477 * /etc/crypttab now supports the same-cpu-crypt and
4478 submit-from-crypt-cpus options to tweak encryption work scheduling
4479 details.
9b89e602
ZJS
4480
4481 * systemd-tmpfiles will now take a BSD file lock before operating on a
4482 contents of directory. This may be used to temporarily exclude
4483 directories from aging by taking the same lock (useful for example
4484 when extracting a tarball into /tmp or /var/tmp as a privileged user,
4485 which might create files with really old timestamps, which
5787c509
LP
4486 nevertheless should not be deleted). For further details, see:
4487
4488 https://systemd.io/TEMPORARY_DIRECTORIES
9b89e602 4489
70d8401d
LP
4490 * systemd-tmpfiles' h line type gained support for the
4491 FS_PROJINHERIT_FL ('P') file attribute (introduced in kernel 4.5),
4492 controlling project quota inheritance.
4493
9b89e602
ZJS
4494 * sd-boot and bootctl now implement support for an Extended Boot Loader
4495 (XBOOTLDR) partition, that is intended to be mounted to /boot, in
4496 addition to the ESP partition mounted to /efi or /boot/efi.
4497 Configuration file fragments, kernels, initrds and other EFI images
4498 to boot will be loaded from both the ESP and XBOOTLDR partitions.
4499 The XBOOTLDR partition was previously described by the Boot Loader
5787c509
LP
4500 Specification, but implementation was missing in sd-boot. Support for
4501 this concept allows using the sd-boot boot loader in more
4502 conservative scenarios where the boot loader itself is placed in the
4503 ESP but the kernels to boot (and their metadata) in a separate
4504 partition.
9b89e602 4505
5787c509
LP
4506 * A system may now be booted with systemd.volatile=overlay on the
4507 kernel command line, which causes the root file system to be set up
4508 an overlayfs mount combining the root-only root directory with a
4509 writable tmpfs. In this setup, the underlying root device is not
4510 modified, and any changes are lost at reboot.
9b89e602 4511
5787c509
LP
4512 * Similar, systemd-nspawn can now boot containers with a volatile
4513 overlayfs root with the new --volatile=overlay switch.
9b89e602
ZJS
4514
4515 * systemd-nspawn can now consume OCI runtime bundles using a new
4516 --oci-bundle= option. This implementation is fully usable, with most
4517 features in the specification implemented, but since this a lot of
4518 new code and functionality, this feature should most likely not
4519 be used in production yet.
4520
5787c509
LP
4521 * systemd-nspawn now supports various options described by the OCI
4522 runtime specification on the command-line and in .nspawn files:
9b89e602 4523 --inaccessible=/Inaccessible= may be used to mask parts of the file
5787c509 4524 system tree, --console=/--pipe may be used to configure how standard
9b89e602
ZJS
4525 input, output, and error are set up.
4526
4527 * busctl learned the `emit` verb to generate D-Bus signals.
4528
4529 * systemd-analyze cat-config may be used to gather and display
4530 configuration spread over multiple files, for example system and user
4531 presets, tmpfiles.d, sysusers.d, udev rules, etc.
4532
5787c509
LP
4533 * systemd-analyze calendar now takes an optional new parameter
4534 --iterations= which may be used to show a maximum number of iterations
4535 the specified expression will elapse next.
4536
4537 * The sd-bus C API gained support for naming method parameters in the
4538 introspection data.
4539
4540 * systemd-logind gained D-Bus APIs to specify the "reboot parameter"
4541 the reboot() system call expects.
4542
4543 * journalctl learnt a new --cursor-file= option that points to a file
9b89e602
ZJS
4544 from which a cursor should be loaded in the beginning and to which
4545 the updated cursor should be stored at the end.
4546
4547 * ACRN hypervisor and Windows Subsystem for Linux (WSL) are now
4548 detected by systemd-detect-virt (and may also be used in
4549 ConditionVirtualization=).
4550
4551 * The behaviour of systemd-logind may now be modified with environment
4552 variables $SYSTEMD_REBOOT_TO_FIRMWARE_SETUP,
4553 $SYSTEMD_REBOOT_TO_BOOT_LOADER_MENU, and
4554 $SYSTEMD_REBOOT_TO_BOOT_LOADER_ENTRY. They cause logind to either
4555 skip the relevant operation completely (when set to false), or to
4556 create a flag file in /run/systemd (when set to true), instead of
4557 actually commencing the real operation when requested. The presence
4558 of /run/systemd/reboot-to-firmware-setup,
4559 /run/systemd/reboot-to-boot-loader-menu, and
4560 /run/systemd/reboot-to-boot-loader-entry, may be used by alternative
4561 boot loader implementations to replace some steps logind performs
4562 during reboot with their own operations.
4563
4564 * systemctl can be used to request a reboot into the boot loader menu
5787c509
LP
4565 or a specific boot loader entry with the new --boot-load-menu= and
4566 --boot-loader-entry= options to a reboot command. (This requires a
4567 boot loader that supports this, for example sd-boot.)
9b89e602
ZJS
4568
4569 * kernel-install will no longer unconditionally create the output
4570 directory (e.g. /efi/<machine-id>/<kernel-version>) for boot loader
4571 snippets, but will do only if the machine-specific parent directory
4572 (i.e. /efi/<machine-id>/) already exists. bootctl has been modified
4573 to create this parent directory during sd-boot installation.
4574
4575 This makes it easier to use kernel-install with plugins which support
4576 a different layout of the bootloader partitions (for example grub2).
4577
a3134241 4578 * During package installation (with `ninja install`), we would create
1fa3ba90
PM
4579 symlinks for getty@tty1.service, systemd-networkd.service,
4580 systemd-networkd.socket, systemd-resolved.service,
4581 remote-cryptsetup.target, remote-fs.target,
a3134241
ZJS
4582 systemd-networkd-wait-online.service, and systemd-timesyncd.service
4583 in /etc, as if `systemctl enable` was called for those units, to make
4584 the system usable immediately after installation. Now this is not
4585 done anymore, and instead calling `systemctl preset-all` is
4586 recommended after the first installation of systemd.
4587
bf65b7e0
LP
4588 * A new boolean sandboxing option RestrictSUIDSGID= has been added that
4589 is built on seccomp. When turned on creation of SUID/SGID files is
4590 prohibited.
4591
4592 * The NoNewPrivileges= and the new RestrictSUIDSGID= options are now
4593 implied if DynamicUser= is turned on for a service. This hardens
4594 these services, so that they neither can benefit from nor create
4595 SUID/SGID executables. This is a minor compatibility breakage, given
4596 that when DynamicUser= was first introduced SUID/SGID behaviour was
4597 unaffected. However, the security benefit of these two options is
4598 substantial, and the setting is still relatively new, hence we opted
4599 to make it mandatory for services with dynamic users.
4600
5b2fc74f
LP
4601 Contributions from: Adam Jackson, Alexander Tsoy, Andrey Yashkin,
4602 Andrzej Pietrasiewicz, Anita Zhang, Balint Reczey, Beniamino Galvani,
4603 Ben Iofel, Benjamin Berg, Benjamin Dahlhoff, Chris, Chris Morin,
4604 Christopher Wong, Claudius Ellsel, Clemens Gruber, dana, Daniel Black,
4605 Davide Cavalca, David Michael, David Rheinsberg, emersion, Evgeny
4606 Vereshchagin, Filipe Brandenburger, Franck Bui, Frantisek Sumsal,
4607 Giacinto Cifelli, Hans de Goede, Hugo Kindel, Ignat Korchagin, Insun
c3287a42
LP
4608 Pyo, Jan Engelhardt, Jonas Dorel, Jonathan Lebon, Jonathon Kowalski,
4609 Jörg Sommer, Jörg Thalheim, Jussi Pakkanen, Kai-Heng Feng, Lennart
4610 Poettering, Lubomir Rintel, Luís Ferreira, Martin Pitt, Matthias
4611 Klumpp, Michael Biebl, Michael Niewöhner, Michael Olbrich, Michal
ab80eca1
ZJS
4612 Sekletar, Mike Lothian, Paul Menzel, Piotr Drąg, Riccardo Schirone,
4613 Robin Elvedi, Roman Kulikov, Ronald Tschalär, Ross Burton, Ryan
1e5d2d65
ZJS
4614 Gonzalez, Sebastian Krzyszkowiak, Stephane Chazelas, StKob, Susant
4615 Sahani, Sylvain Plantefève, Szabolcs Fruhwald, Taro Yamada, Theo
4616 Ouzhinski, Thomas Haller, Tobias Jungel, Tom Yan, Tony Asleson, Topi
4617 Miettinen, unixsysadmin, Van Laser, Vesa Jääskeläinen, Yu, Li-Yu,
4618 Yu Watanabe, Zbigniew Jędrzejewski-Szmek
c3287a42 4619
1e5d2d65 4620 — Warsaw, 2019-04-11
bf65b7e0 4621
d0f71749 4622CHANGES WITH 241:
b4ff3dbb
ZJS
4623
4624 * The default locale can now be configured at compile time. Otherwise,
4625 a suitable default will be selected automatically (one of C.UTF-8,
4626 en_US.UTF-8, and C).
4627
4628 * The version string shown by systemd and other tools now includes the
4629 git commit hash when built from git. An override may be specified
4630 during compilation, which is intended to be used by distributions to
4631 include the package release information.
4632
4633 * systemd-cat can now filter standard input and standard error streams
4634 for different syslog priorities using the new --stderr-priority=
4635 option.
4636
4637 * systemd-journald and systemd-journal-remote reject entries which
4638 contain too many fields (CVE-2018-16865) and set limits on the
4639 process' command line length (CVE-2018-16864).
4640
4641 * $DBUS_SESSION_BUS_ADDRESS environment variable is set by pam_systemd
4642 again.
4643
08e1fe42
ZJS
4644 * A new network device NamePolicy "keep" is implemented for link files,
4645 and used by default in 99-default.link (the fallback configuration
4646 provided by systemd). With this policy, if the network device name
4647 was already set by userspace, the device will not be renamed again.
4648 This matches the naming scheme that was implemented before
4649 systemd-240. If naming-scheme < 240 is specified, the "keep" policy
4650 is also enabled by default, even if not specified. Effectively, this
4651 means that if naming-scheme >= 240 is specified, network devices will
4652 be renamed according to the configuration, even if they have been
4653 renamed already, if "keep" is not specified as the naming policy in
4654 the .link file. The 99-default.link file provided by systemd includes
4655 "keep" for backwards compatibility, but it is recommended for user
4656 installed .link files to *not* include it.
4657
4658 The "kernel" policy, which keeps kernel names declared to be
4659 "persistent", now works again as documented.
4660
ba7a6b8c
LP
4661 * kernel-install script now optionally takes the paths to one or more
4662 initrd files, and passes them to all plugins.
bd36ef0a 4663
57c03b1e
LP
4664 * The mincore() system call has been dropped from the @system-service
4665 system call filter group, as it is pretty exotic and may potentially
4666 used for side-channel attacks.
4667
774d6375
ZJS
4668 * -fPIE is dropped from compiler and linker options. Please specify
4669 -Db_pie=true option to meson to build position-independent
bd36ef0a
YW
4670 executables. Note that the meson option is supported since meson-0.49.
4671
27325875
LW
4672 * The fs.protected_regular and fs.protected_fifos sysctls, which were
4673 added in Linux 4.19 to make some data spoofing attacks harder, are
4674 now enabled by default. While this will hopefully improve the
4675 security of most installations, it is technically a backwards
4676 incompatible change; to disable these sysctls again, place the
4677 following lines in /etc/sysctl.d/60-protected.conf or a similar file:
4678
4679 fs.protected_regular = 0
4680 fs.protected_fifos = 0
4681
4682 Note that the similar hardlink and symlink protection has been
4683 enabled since v199, and may be disabled likewise.
4684
a77f438b
LT
4685 * The files read from the EnvironmentFile= setting in unit files now
4686 parse backslashes inside quotes literally, matching the behaviour of
4687 POSIX shells.
4688
ba7a6b8c
LP
4689 * udevadm trigger, udevadm control, udevadm settle and udevadm monitor
4690 now automatically become NOPs when run in a chroot() environment.
4691
4692 * The tmpfiles.d/ "C" line type will now copy directory trees not only
4693 when the destination is so far missing, but also if it already exists
4694 as a directory and is empty. This is useful to cater for systems
4695 where directory trees are put together from multiple separate mount
4696 points but otherwise empty.
4697
4698 * A new function sd_bus_close_unref() (and the associated
4699 sd_bus_close_unrefp()) has been added to libsystemd, that combines
4700 sd_bus_close() and sd_bus_unref() in one.
4701
4702 * udevadm control learnt a new option for --ping for testing whether a
4703 systemd-udevd instance is running and reacting.
4704
ecebd1ec
YW
4705 * udevadm trigger learnt a new option for --wait-daemon for waiting
4706 systemd-udevd daemon to be initialized.
4707
d0f71749
LP
4708 Contributions from: Aaron Plattner, Alberts Muktupāvels, Alex Mayer,
4709 Ayman Bagabas, Beniamino Galvani, Burt P, Chris Down, Chris Lamb, Chris
4710 Morin, Christian Hesse, Claudius Ellsel, dana, Daniel Axtens, Daniele
4711 Medri, Dave Reisner, David Santamaría Rogado, Diego Canuhe, Dimitri
4712 John Ledkov, Evgeny Vereshchagin, Fabrice Fontaine, Filipe
4713 Brandenburger, Franck Bui, Frantisek Sumsal, govwin, Hans de Goede,
4714 James Hilliard, Jan Engelhardt, Jani Uusitalo, Jan Janssen, Jan
4715 Synacek, Jonathan McDowell, Jonathan Roemer, Jonathon Kowalski, Joost
4716 Heitbrink, Jörg Thalheim, Lance, Lennart Poettering, Louis Taylor,
4717 Lucas Werkmeister, Mantas Mikulėnas, Marc-Antoine Perennou,
4718 marvelousblack, Michael Biebl, Michael Sloan, Michal Sekletar, Mike
4719 Auty, Mike Gilbert, Mikhail Kasimov, Neil Brown, Niklas Hambüchen,
4720 Patrick Williams, Paul Seyfert, Peter Hutterer, Philip Withnall, Roger
4721 James, Ronnie P. Thomas, Ryan Gonzalez, Sam Morris, Stephan Edel,
4722 Stephan Gerhold, Susant Sahani, Taro Yamada, Thomas Haller, Topi
4723 Miettinen, YiFei Zhu, YmrDtnJu, YunQiang Su, Yu Watanabe, Zbigniew
4724 Jędrzejewski-Szmek, zsergeant77, Дамјан Георгиевски
4725
36d28ebc 4726 — Berlin, 2019-02-14
ba7a6b8c 4727
32673162 4728CHANGES WITH 240:
fcb97512 4729
e68a35a7
ZJS
4730 * NoNewPrivileges=yes has been set for all long-running services
4731 implemented by systemd. Previously, this was problematic due to
4732 SELinux (as this would also prohibit the transition from PID1's label
4733 to the service's label). This restriction has since been lifted, but
4734 an SELinux policy update is required.
4735 (See e.g. https://github.com/fedora-selinux/selinux-policy/pull/234.)
4736
aa2437e2
YW
4737 * DynamicUser=yes is dropped from systemd-networkd.service,
4738 systemd-resolved.service and systemd-timesyncd.service, which was
4739 enabled in v239 for systemd-networkd.service and systemd-resolved.service,
4740 and since v236 for systemd-timesyncd.service. The users and groups
4741 systemd-network, systemd-resolve and systemd-timesync are created
4742 by systemd-sysusers again. Distributors or system administrators
4743 may need to create these users and groups if they not exist (or need
4744 to re-enable DynamicUser= for those units) while upgrading systemd.
787a133f
YW
4745 Also, the clock file for systemd-timesyncd may need to move from
4746 /var/lib/private/systemd/timesync/clock to /var/lib/systemd/timesync/clock.
aa2437e2 4747
b1a082cd
ZJS
4748 * When unit files are loaded from disk, previously systemd would
4749 sometimes (depending on the unit loading order) load units from the
4750 target path of symlinks in .wants/ or .requires/ directories of other
4751 units. This meant that unit could be loaded from different paths
4752 depending on whether the unit was requested explicitly or as a
4753 dependency of another unit, not honouring the priority of directories
4754 in search path. It also meant that it was possible to successfully
4755 load and start units which are not found in the unit search path, as
4756 long as they were requested as a dependency and linked to from
4757 .wants/ or .requires/. The target paths of those symlinks are not
4758 used for loading units anymore and the unit file must be found in
4759 the search path.
4760
fcb97512 4761 * A new service type has been added: Type=exec. It's very similar to
421e3b45 4762 Type=simple but ensures the service manager will wait for both fork()
fcb97512
LP
4763 and execve() of the main service binary to complete before proceeding
4764 with follow-up units. This is primarily useful so that the manager
4765 propagates any errors in the preparation phase of service execution
4766 back to the job that requested the unit to be started. For example,
4767 consider a service that has ExecStart= set to a file system binary
421e3b45
ZJS
4768 that doesn't exist. With Type=simple starting the unit would be
4769 considered instantly successful, as only fork() has to complete
4770 successfully and the manager does not wait for execve(), and hence
4771 its failure is seen "too late". With the new Type=exec service type
4772 starting the unit will fail, as the manager will wait for the
4773 execve() and notice its failure, which is then propagated back to the
4774 start job.
fcb97512
LP
4775
4776 NOTE: with the next release 241 of systemd we intend to change the
4777 systemd-run tool to default to Type=exec for transient services
4778 started by it. This should be mostly safe, but in specific corner
4779 cases might result in problems, as the systemd-run tool will then
6b1ab752 4780 block on NSS calls (such as user name look-ups due to User=) done
fcb97512
LP
4781 between the fork() and execve(), which under specific circumstances
4782 might cause problems. It is recommended to specify "-p Type=simple"
4783 explicitly in the few cases where this applies. For regular,
4784 non-transient services (i.e. those defined with unit files on disk)
4785 we will continue to default to Type=simple.
4786
0972c1ae
LP
4787 * The Linux kernel's current default RLIMIT_NOFILE resource limit for
4788 userspace processes is set to 1024 (soft) and 4096
4789 (hard). Previously, systemd passed this on unmodified to all
4790 processes it forked off. With this systemd release the hard limit
0abf9492 4791 systemd passes on is increased to 512K, overriding the kernel's
0972c1ae
LP
4792 defaults and substantially increasing the number of simultaneous file
4793 descriptors unprivileged userspace processes can allocate. Note that
4794 the soft limit remains at 1024 for compatibility reasons: the
4795 traditional UNIX select() call cannot deal with file descriptors >=
4796 1024 and increasing the soft limit globally might thus result in
4797 programs unexpectedly allocating a high file descriptor and thus
4798 failing abnormally when attempting to use it with select() (of
4799 course, programs shouldn't use select() anymore, and prefer
4800 poll()/epoll, but the call unfortunately remains undeservedly popular
4801 at this time). This change reflects the fact that file descriptor
4802 handling in the Linux kernel has been optimized in more recent
4803 kernels and allocating large numbers of them should be much cheaper
4804 both in memory and in performance than it used to be. Programs that
4805 want to take benefit of the increased limit have to "opt-in" into
421e3b45
ZJS
4806 high file descriptors explicitly by raising their soft limit. Of
4807 course, when they do that they must acknowledge that they cannot use
4808 select() anymore (and neither can any shared library they use — or
4809 any shared library used by any shared library they use and so on).
4810 Which default hard limit is most appropriate is of course hard to
4811 decide. However, given reports that ~300K file descriptors are used
4812 in real-life applications we believe 512K is sufficiently high as new
4813 default for now. Note that there are also reports that using very
4814 high hard limits (e.g. 1G) is problematic: some software allocates
4815 large arrays with one element for each potential file descriptor
4816 (Java, …) — a high hard limit thus triggers excessively large memory
4817 allocations in these applications. Hopefully, the new default of 512K
4818 is a good middle ground: higher than what real-life applications
4819 currently need, and low enough for avoid triggering excessively large
4820 allocations in problematic software. (And yes, somebody should fix
4821 Java.)
0972c1ae 4822
a8b627aa
LP
4823 * The fs.nr_open and fs.file-max sysctls are now automatically bumped
4824 to the highest possible values, as separate accounting of file
4825 descriptors is no longer necessary, as memcg tracks them correctly as
4826 part of the memory accounting anyway. Thus, from the four limits on
4827 file descriptors currently enforced (fs.file-max, fs.nr_open,
4828 RLIMIT_NOFILE hard, RLIMIT_NOFILE soft) we turn off the first two,
4829 and keep only the latter two. A set of build-time options
a579d42a 4830 (-Dbump-proc-sys-fs-file-max=false and -Dbump-proc-sys-fs-nr-open=false)
a8b627aa
LP
4831 has been added to revert this change in behaviour, which might be
4832 an option for systems that turn off memcg in the kernel.
4833
4f7dc24f
LP
4834 * When no /etc/locale.conf file exists (and hence no locale settings
4835 are in place), systemd will now use the "C.UTF-8" locale by default,
4836 and set LANG= to it. This locale is supported by various
4837 distributions including Fedora, with clear indications that upstream
4838 glibc is going to make it available too. This locale enables UTF-8
4839 mode by default, which appears appropriate for 2018.
4840
230450d4
LR
4841 * The "net.ipv4.conf.all.rp_filter" sysctl will now be set to 2 by
4842 default. This effectively switches the RFC3704 Reverse Path filtering
4843 from Strict mode to Loose mode. This is more appropriate for hosts
4844 that have multiple links with routes to the same networks (e.g.
4845 a client with a Wi-Fi and Ethernet both connected to the internet).
4846
6b1ab752 4847 Consult the kernel documentation for details on this sysctl:
230450d4 4848 https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt
195d181c 4849
e447ffe4
SI
4850 * The v239 change to turn on "net.ipv4.tcp_ecn" by default has been
4851 reverted.
230450d4 4852
23305a29
CD
4853 * CPUAccounting=yes no longer enables the CPU controller when using
4854 kernel 4.15+ and the unified cgroup hierarchy, as required accounting
4855 statistics are now provided independently from the CPU controller.
4856
6b1ab752 4857 * Support for disabling a particular cgroup controller within a sub-tree
a8467688
CD
4858 has been added through the DisableControllers= directive.
4859
8f044cf9
CD
4860 * cgroup_no_v1=all on the kernel command line now also implies
4861 using the unified cgroup hierarchy, unless one explicitly passes
4862 systemd.unified_cgroup_hierarchy=0 on the kernel command line.
4863
6b1ab752
LP
4864 * The new "MemoryMin=" unit file property may now be used to set the
4865 memory usage protection limit of processes invoked by the unit. This
4e1dfa45 4866 controls the cgroup v2 memory.min attribute. Similarly, the new
6b1ab752 4867 "IODeviceLatencyTargetSec=" property has been added, wrapping the new
4e1dfa45 4868 cgroup v2 io.latency cgroup property for configuring per-service I/O
6b1ab752
LP
4869 latency.
4870
4e1dfa45
CD
4871 * systemd now supports the cgroup v2 devices BPF logic, as counterpart
4872 to the cgroup v1 "devices" cgroup controller.
6b1ab752
LP
4873
4874 * systemd-escape now is able to combine --unescape with --template. It
4875 also learnt a new option --instance for extracting and unescaping the
4876 instance part of a unit name.
4877
4878 * sd-bus now provides the sd_bus_message_readv() which is similar to
4879 sd_bus_message_read() but takes a va_list object. The pair
4880 sd_bus_set_method_call_timeout() and sd_bus_get_method_call_timeout()
421e3b45 4881 has been added for configuring the default method call timeout to
6b1ab752
LP
4882 use. sd_bus_error_move() may be used to efficiently move the contents
4883 from one sd_bus_error structure to another, invalidating the
4884 source. sd_bus_set_close_on_exit() and sd_bus_get_close_on_exit() may
4885 be used to control whether a bus connection object is automatically
4886 flushed when an sd-event loop is exited.
4887
4888 * When processing classic BSD syslog log messages, journald will now
4889 save the original time-stamp string supplied in the new
4890 SYSLOG_TIMESTAMP= journal field. This permits consumers to
4891 reconstruct the original BSD syslog message more correctly.
4892
4893 * StandardOutput=/StandardError= in service files gained support for
4894 new "append:…" parameters, for connecting STDOUT/STDERR of a service
4895 to a file, and appending to it.
4896
4897 * The signal to use as last step of killing of unit processes is now
4898 configurable. Previously it was hard-coded to SIGKILL, which may now
4899 be overridden with the new KillSignal= setting. Note that this is the
46b028f2 4900 signal used when regular termination (i.e. SIGTERM) does not suffice.
421e3b45
ZJS
4901 Similarly, the signal used when aborting a program in case of a
4902 watchdog timeout may now be configured too (WatchdogSignal=).
6b1ab752
LP
4903
4904 * The XDG_SESSION_DESKTOP environment variable may now be configured in
4905 the pam_systemd argument line, using the new desktop= switch. This is
4906 useful to initialize it properly from a display manager without
4907 having to touch C code.
4908
421e3b45
ZJS
4909 * Most configuration options that previously accepted percentage values
4910 now also accept permille values with the '‰' suffix (instead of '%').
6b1ab752 4911
6b1ab752
LP
4912 * systemd-resolved may now optionally use OpenSSL instead of GnuTLS for
4913 DNS-over-TLS.
4914
4915 * systemd-resolved's configuration file resolved.conf gained a new
4916 option ReadEtcHosts= which may be used to turn off processing and
4917 honoring /etc/hosts entries.
4918
4919 * The "--wait" switch may now be passed to "systemctl
4920 is-system-running", in which case the tool will synchronously wait
4921 until the system finished start-up.
4922
4923 * hostnamed gained a new bus call to determine the DMI product UUID.
4924
4925 * On x86-64 systemd will now prefer using the RDRAND processor
4926 instruction over /dev/urandom whenever it requires randomness that
4927 neither has to be crypto-grade nor should be reproducible. This
4928 should substantially reduce the amount of entropy systemd requests
4929 from the kernel during initialization on such systems, though not
4930 reduce it to zero. (Why not zero? systemd still needs to allocate
4931 UUIDs and such uniquely, which require high-quality randomness.)
4932
4933 * networkd gained support for Foo-Over-UDP, ERSPAN and ISATAP
4934 tunnels. It also gained a new option ForceDHCPv6PDOtherInformation=
4935 for forcing the "Other Information" bit in IPv6 RA messages. The
d6131be9 4936 bonding logic gained four new options AdActorSystemPriority=,
6b1ab752 4937 AdUserPortKey=, AdActorSystem= for configuring various 802.3ad
d6131be9
YW
4938 aspects, and DynamicTransmitLoadBalancing= for enabling dynamic
4939 shuffling of flows. The tunnel logic gained a new
4940 IPv6RapidDeploymentPrefix= option for configuring IPv6 Rapid
4941 Deployment. The policy rule logic gained four new options IPProtocol=,
4942 SourcePort= and DestinationPort=, InvertRule=. The bridge logic gained
4943 support for the MulticastToUnicast= option. networkd also gained
4944 support for configuring static IPv4 ARP or IPv6 neighbor entries.
6b1ab752
LP
4945
4946 * .preset files (as read by 'systemctl preset') may now be used to
4947 instantiate services.
4948
4949 * /etc/crypttab now understands the sector-size= option to configure
4950 the sector size for an encrypted partition.
4951
4952 * Key material for encrypted disks may now be placed on a formatted
421e3b45
ZJS
4953 medium, and referenced from /etc/crypttab by the UUID of the file
4954 system, followed by "=" suffixed by the path to the key file.
6b1ab752
LP
4955
4956 * The "collect" udev component has been removed without replacement, as
421e3b45 4957 it is neither used nor maintained.
6b1ab752
LP
4958
4959 * When the RuntimeDirectory=, StateDirectory=, CacheDirectory=,
4960 LogsDirectory=, ConfigurationDirectory= settings are used in a
4961 service the executed processes will now receive a set of environment
421e3b45
ZJS
4962 variables containing the full paths of these directories.
4963 Specifically, RUNTIME_DIRECTORY=, STATE_DIRECTORY, CACHE_DIRECTORY,
4964 LOGS_DIRECTORY, CONFIGURATION_DIRECTORY are now set if these options
4965 are used. Note that these options may be used multiple times per
4966 service in which case the resulting paths will be concatenated and
4967 separated by colons.
6b1ab752
LP
4968
4969 * Predictable interface naming has been extended to cover InfiniBand
4970 NICs. They will be exposed with an "ib" prefix.
4971
4972 * tmpfiles.d/ line types may now be suffixed with a '-' character, in
4973 which case the respective line failing is ignored.
4974
4975 * .link files may now be used to configure the equivalent to the
4976 "ethtool advertise" commands.
4977
4978 * The sd-device.h and sd-hwdb.h APIs are now exported, as an
4979 alternative to libudev.h. Previously, the latter was just an internal
4980 wrapper around the former, but now these two APIs are exposed
4981 directly.
4982
4983 * sd-id128.h gained a new function sd_id128_get_boot_app_specific()
4984 which calculates an app-specific boot ID similar to how
4985 sd_id128_get_machine_app_specific() generates an app-specific machine
4986 ID.
4987
4988 * A new tool systemd-id128 has been added that can be used to determine
4989 and generate various 128bit IDs.
4990
4991 * /etc/os-release gained two new standardized fields DOCUMENTATION_URL=
4992 and LOGO=.
4993
4994 * systemd-hibernate-resume-generator will now honor the "noresume"
4995 kernel command line option, in which case it will bypass resuming
4996 from any hibernated image.
4997
4998 * The systemd-sleep.conf configuration file gained new options
4999 AllowSuspend=, AllowHibernation=, AllowSuspendThenHibernate=,
5000 AllowHybridSleep= for prohibiting specific sleep modes even if the
421e3b45 5001 kernel exports them.
6b1ab752
LP
5002
5003 * portablectl is now officially supported and has thus moved to
5004 /usr/bin/.
5005
5006 * bootctl learnt the two new commands "set-default" and "set-oneshot"
5007 for setting the default boot loader item to boot to (either
5008 persistently or only for the next boot). This is currently only
5009 compatible with sd-boot, but may be implemented on other boot loaders
5010 too, that follow the boot loader interface. The updated interface is
5011 now documented here:
5012
5013 https://systemd.io/BOOT_LOADER_INTERFACE
5014
5015 * A new kernel command line option systemd.early_core_pattern= is now
5016 understood which may be used to influence the core_pattern PID 1
5017 installs during early boot.
5018
5019 * busctl learnt two new options -j and --json= for outputting method
5020 call replies, properties and monitoring output in JSON.
5021
5022 * journalctl's JSON output now supports simple ANSI coloring as well as
5023 a new "json-seq" mode for generating RFC7464 output.
5024
5025 * Unit files now support the %g/%G specifiers that resolve to the UNIX
5026 group/GID of the service manager runs as, similar to the existing
5027 %u/%U specifiers that resolve to the UNIX user/UID.
5028
5029 * systemd-logind learnt a new global configuration option
5030 UserStopDelaySec= that may be set in logind.conf. It specifies how
5031 long the systemd --user instance shall remain started after a user
5032 logs out. This is useful to speed up repetitive re-connections of the
5033 same user, as it means the user's service manager doesn't have to be
5034 stopped/restarted on each iteration, but can be reused between
5035 subsequent options. This setting defaults to 10s. systemd-logind also
5036 exports two new properties on its Manager D-Bus objects indicating
421e3b45
ZJS
5037 whether the system's lid is currently closed, and whether the system
5038 is on AC power.
6b1ab752
LP
5039
5040 * systemd gained support for a generic boot counting logic, which
5041 generically permits automatic reverting to older boot loader entries
5042 if newer updated ones don't work. The boot loader side is implemented
5043 in sd-boot, but is kept open for other boot loaders too. For details
5044 see:
5045
5046 https://systemd.io/AUTOMATIC_BOOT_ASSESSMENT
5047
5048 * The SuccessAction=/FailureAction= unit file settings now learnt two
5049 new parameters: "exit" and "exit-force", which result in immediate
5050 exiting of the service manager, and are only useful in systemd --user
5051 and container environments.
5052
5053 * Unit files gained support for a pair of options
5054 FailureActionExitStatus=/SuccessActionExitStatus= for configuring the
5055 exit status to use as service manager exit status when
5056 SuccessAction=/FailureAction= is set to exit or exit-force.
5057
5058 * A pair of LogRateLimitIntervalSec=/LogRateLimitBurst= per-service
5059 options may now be used to configure the log rate limiting applied by
5060 journald per-service.
5061
5062 * systemd-analyze gained a new verb "timespan" for parsing and
5063 normalizing time span values (i.e. strings like "5min 7s 8us").
5064
5065 * systemd-analyze also gained a new verb "security" for analyzing the
5066 security and sand-boxing settings of services in order to determine an
5067 "exposure level" for them, indicating whether a service would benefit
5068 from more sand-boxing options turned on for them.
5069
5070 * "systemd-analyze syscall-filter" will now also show system calls
5071 supported by the local kernel but not included in any of the defined
5072 groups.
5073
5074 * .nspawn files now understand the Ephemeral= setting, matching the
5075 --ephemeral command line switch.
5076
5077 * sd-event gained the new APIs sd_event_source_get_floating() and
5078 sd_event_source_set_floating() for controlling whether a specific
5079 event source is "floating", i.e. destroyed along with the even loop
5080 object itself.
5081
5082 * Unit objects on D-Bus gained a new "Refs" property that lists all
421e3b45
ZJS
5083 clients that currently have a reference on the unit (to ensure it is
5084 not unloaded).
6b1ab752
LP
5085
5086 * The JoinControllers= option in system.conf is no longer supported, as
5087 it didn't work correctly, is hard to support properly, is legacy (as
4e1dfa45 5088 the concept only exists on cgroup v1) and apparently wasn't used.
6b1ab752
LP
5089
5090 * Journal messages that are generated whenever a unit enters the failed
421e3b45
ZJS
5091 state are now tagged with a unique MESSAGE_ID. Similarly, messages
5092 generated whenever a service process exits are now made recognizable,
5238e957 5093 too. A tagged message is also emitted whenever a unit enters the
421e3b45 5094 "dead" state on success.
6b1ab752
LP
5095
5096 * systemd-run gained a new switch --working-directory= for configuring
5097 the working directory of the service to start. A shortcut -d is
5098 equivalent, setting the working directory of the service to the
5099 current working directory of the invoking program. The new --shell
5100 (or just -S) option has been added for invoking the $SHELL of the
5101 caller as a service, and implies --pty --same-dir --wait --collect
421e3b45 5102 --service-type=exec. Or in other words, "systemd-run -S" is now the
6b1ab752
LP
5103 quickest way to quickly get an interactive in a fully clean and
5104 well-defined system service context.
5105
5106 * machinectl gained a new verb "import-fs" for importing an OS tree
5107 from a directory. Moreover, when a directory or tarball is imported
5108 and single top-level directory found with the OS itself below the OS
5109 tree is automatically mangled and moved one level up.
5110
421e3b45
ZJS
5111 * systemd-importd will no longer set up an implicit btrfs loop-back
5112 file system on /var/lib/machines. If one is already set up, it will
5113 continue to be used.
6b1ab752
LP
5114
5115 * A new generator "systemd-run-generator" has been added. It will
5116 synthesize a unit from one or more program command lines included in
5117 the kernel command line. This is very useful in container managers
5118 for example:
5119
5120 # systemd-nspawn -i someimage.raw -b systemd.run='"some command line"'
5121
5122 This will run "systemd-nspawn" on an image, invoke the specified
421e3b45
ZJS
5123 command line and immediately shut down the container again, returning
5124 the command line's exit code.
6b1ab752 5125
421e3b45 5126 * The block device locking logic is now documented:
6b1ab752
LP
5127
5128 https://systemd.io/BLOCK_DEVICE_LOCKING
5129
5130 * loginctl and machinectl now optionally output the various tables in
5131 JSON using the --output= switch. It is our intention to add similar
5132 support to systemctl and all other commands.
5133
5134 * udevadm's query and trigger verb now optionally take a .device unit
5135 name as argument.
5136
5137 * systemd-udevd's network naming logic now understands a new
421e3b45 5138 net.naming-scheme= kernel command line switch, which may be used to
6b1ab752
LP
5139 pick a specific version of the naming scheme. This helps stabilizing
5140 interface names even as systemd/udev are updated and the naming logic
5141 is improved.
5142
67081438
LP
5143 * sd-id128.h learnt two new auxiliary helpers: sd_id128_is_allf() and
5144 SD_ID128_ALLF to test if a 128bit ID is set to all 0xFF bytes, and to
5145 initialize one to all 0xFF.
5146
144d7f1d
LP
5147 * After loading the SELinux policy systemd will now recursively relabel
5148 all files and directories listed in
5149 /run/systemd/relabel-extra.d/*.relabel (which should be simple
5150 newline separated lists of paths) in addition to the ones it already
5151 implicitly relabels in /run, /dev and /sys. After the relabelling is
5152 completed the *.relabel files (and /run/systemd/relabel-extra.d/) are
5153 removed. This is useful to permit initrds (i.e. code running before
5154 the SELinux policy is in effect) to generate files in the host
5155 filesystem safely and ensure that the correct label is applied during
5156 the transition to the host OS.
5157
98a7b55a
LP
5158 * KERNEL API BREAKAGE: Linux kernel 4.18 changed behaviour regarding
5159 mknod() handling in user namespaces. Previously mknod() would always
5160 fail with EPERM in user namespaces. Since 4.18 mknod() will succeed
5161 but device nodes generated that way cannot be opened, and attempts to
5162 open them result in EPERM. This breaks the "graceful fallback" logic
5163 in systemd's PrivateDevices= sand-boxing option. This option is
5164 implemented defensively, so that when systemd detects it runs in a
5165 restricted environment (such as a user namespace, or an environment
5166 where mknod() is blocked through seccomp or absence of CAP_SYS_MKNOD)
5167 where device nodes cannot be created the effect of PrivateDevices= is
5168 bypassed (following the logic that 2nd-level sand-boxing is not
5169 essential if the system systemd runs in is itself already sand-boxed
5170 as a whole). This logic breaks with 4.18 in container managers where
5171 user namespacing is used: suddenly PrivateDevices= succeeds setting
5172 up a private /dev/ file system containing devices nodes — but when
5173 these are opened they don't work.
5174
d238709c 5175 At this point it is recommended that container managers utilizing
98a7b55a
LP
5176 user namespaces that intend to run systemd in the payload explicitly
5177 block mknod() with seccomp or similar, so that the graceful fallback
5178 logic works again.
5179
5180 We are very sorry for the breakage and the requirement to change
5181 container configurations for newer kernels. It's purely caused by an
5182 incompatible kernel change. The relevant kernel developers have been
5183 notified about this userspace breakage quickly, but they chose to
5184 ignore it.
5185
455027c9
ZJS
5186 * PermissionsStartOnly= setting is deprecated (but is still supported
5187 for backwards compatibility). The same functionality is provided by
5188 the more flexible "+", "!", and "!!" prefixes to ExecStart= and other
5189 commands.
5190
b4ff3dbb
ZJS
5191 * $DBUS_SESSION_BUS_ADDRESS environment variable is not set by
5192 pam_systemd anymore.
5193
08e1fe42
ZJS
5194 * The naming scheme for network devices was changed to always rename
5195 devices, even if they were already renamed by userspace. The "kernel"
5196 policy was changed to only apply as a fallback, if no other naming
5197 policy took effect.
5198
bd36ef0a
YW
5199 * The requirements to build systemd is bumped to meson-0.46 and
5200 python-3.5.
5201
6b1ab752
LP
5202 Contributions from: afg, Alan Jenkins, Aleksei Timofeyev, Alexander
5203 Filippov, Alexander Kurtz, Alexey Bogdanenko, Andreas Henriksson,
5204 Andrew Jorgensen, Anita Zhang, apnix-uk, Arkan49, Arseny Maslennikov,
5205 asavah, Asbjørn Apeland, aszlig, Bastien Nocera, Ben Boeckel, Benedikt
c37e2358
LP
5206 Morbach, Benjamin Berg, Bruce Zhang, Carlo Caione, Cedric Viou, Chen
5207 Qi, Chris Chiu, Chris Down, Chris Morin, Christian Rebischke, Claudius
5208 Ellsel, Colin Guthrie, dana, Daniel, Daniele Medri, Daniel Kahn
5209 Gillmor, Daniel Rusek, Daniel van Vugt, Dariusz Gadomski, Dave Reisner,
5210 David Anderson, Davide Cavalca, David Leeds, David Malcolm, David
1742aae2
ZJS
5211 Strauss, David Tardon, Dimitri John Ledkov, Dmitry Torokhov, dj-kaktus,
5212 Dongsu Park, Elias Probst, Emil Soleyman, Erik Kooistra, Ervin Peters,
5213 Evgeni Golov, Evgeny Vereshchagin, Fabrice Fontaine, Faheel Ahmad,
5214 Faizal Luthfi, Felix Yan, Filipe Brandenburger, Franck Bui, Frank
5215 Schaefer, Frantisek Sumsal, Gautier Husson, Gianluca Boiano, Giuseppe
5216 Scrivano, glitsj16, Hans de Goede, Harald Hoyer, Harry Mallon, Harshit
5217 Jain, Helmut Grohne, Henry Tung, Hui Yiqun, imayoda, Insun Pyo, Iwan
5218 Timmer, Jan Janssen, Jan Pokorný, Jan Synacek, Jason A. Donenfeld,
5219 javitoom, Jérémy Nouhaud, Jeremy Su, Jiuyang Liu, João Paulo Rechi
5220 Vita, Joe Hershberger, Joe Rayhawk, Joerg Behrmann, Joerg Steffens,
5221 Jonas Dorel, Jon Ringle, Josh Soref, Julian Andres Klode, Jun Bo Bi,
5222 Jürg Billeter, Keith Busch, Khem Raj, Kirill Marinushkin, Larry
5223 Bernstone, Lennart Poettering, Lion Yang, Li Song, Lorenz
5224 Hübschle-Schneider, Lubomir Rintel, Lucas Werkmeister, Ludwin Janvier,
5225 Lukáš Nykrýn, Luke Shumaker, mal, Marc-Antoine Perennou, Marcin
5226 Skarbek, Marco Trevisan (Treviño), Marian Cepok, Mario Hros, Marko
5227 Myllynen, Markus Grimm, Martin Pitt, Martin Sobotka, Martin Wilck,
5228 Mathieu Trudel-Lapierre, Matthew Leeds, Michael Biebl, Michael Olbrich,
5229 Michael 'pbone' Pobega, Michael Scherer, Michal Koutný, Michal
5230 Sekletar, Michal Soltys, Mike Gilbert, Mike Palmer, Muhammet Kara, Neal
5231 Gompa, Neil Brown, Network Silence, Niklas Tibbling, Nikolas Nyby,
5232 Nogisaka Sadata, Oliver Smith, Patrik Flykt, Pavel Hrdina, Paweł
5233 Szewczyk, Peter Hutterer, Piotr Drąg, Ray Strode, Reinhold Mueller,
5234 Renaud Métrich, Roman Gushchin, Ronny Chevalier, Rubén Suárez Alvarez,
5235 Ruixin Bao, RussianNeuroMancer, Ryutaroh Matsumoto, Saleem Rashid, Sam
5236 Morris, Samuel Morris, Sandy Carter, scootergrisen, Sébastien Bacher,
5237 Sergey Ptashnick, Shawn Landden, Shengyao Xue, Shih-Yuan Lee
5238 (FourDollars), Silvio Knizek, Sjoerd Simons, Stasiek Michalski, Stephen
5239 Gallagher, Steven Allen, Steve Ramage, Susant Sahani, Sven Joachim,
5240 Sylvain Plantefève, Tanu Kaskinen, Tejun Heo, Thiago Macieira, Thomas
5241 Blume, Thomas Haller, Thomas H. P. Andersen, Tim Ruffing, TJ, Tobias
5242 Jungel, Todd Walton, Tommi Rantala, Tomsod M, Tony Novak, Tore
5243 Anderson, Trevonn, Victor Laskurain, Victor Tapia, Violet Halo, Vojtech
5244 Trefny, welaq, William A. Kennington III, William Douglas, Wyatt Ward,
5245 Xiang Fan, Xi Ruoyao, Xuanwo, Yann E. Morin, YmrDtnJu, Yu Watanabe,
5246 Zbigniew Jędrzejewski-Szmek, Zhang Xianwei, Zsolt Dollenstein
5247
5248 — Warsaw, 2018-12-21
6b1ab752 5249
e8498f82 5250CHANGES WITH 239:
019cb3ab
SH
5251
5252 * NETWORK INTERFACE DEVICE NAMING CHANGES: systemd-udevd's "net_id"
d69f5282
ZJS
5253 builtin will name network interfaces differently than in previous
5254 versions for virtual network interfaces created with SR-IOV and NPAR
5255 and for devices where the PCI network controller device does not have
5256 a slot number associated.
5257
5258 SR-IOV virtual devices are now named based on the name of the parent
5259 interface, with a suffix of "v<N>", where <N> is the virtual device
5260 number. Previously those virtual devices were named as if completely
5261 independent.
5262
5263 The ninth and later NPAR virtual devices will be named following the
5264 scheme used for the first eight NPAR partitions. Previously those
5265 devices were not renamed and the kernel default (eth<n>) was used.
5266
5267 "net_id" will also generate names for PCI devices where the PCI
5268 network controller device does not have an associated slot number
5269 itself, but one of its parents does. Previously those devices were
5270 not renamed and the kernel default (eth<n>) was used.
019cb3ab 5271
6e2d744b
YW
5272 * AF_INET and AF_INET6 are dropped from RestrictAddressFamilies= in
5273 systemd-logind.service. Since v235, IPAddressDeny=any has been set to
fe903cf4
LP
5274 the unit. So, it is expected that the default behavior of
5275 systemd-logind is not changed. However, if distribution packagers or
5276 administrators disabled or modified IPAddressDeny= setting by a
5277 drop-in config file, then it may be necessary to update the file to
5278 re-enable AF_INET and AF_INET6 to support network user name services,
5279 e.g. NIS.
5280
5281 * When the RestrictNamespaces= unit property is specified multiple
5282 times, then the specified types are merged now. Previously, only the
5283 last assignment was used. So, if distribution packagers or
5284 administrators modified the setting by a drop-in config file, then it
5285 may be necessary to update the file.
e0eee477 5286
1fc83d09
LP
5287 * When OnFailure= is used in combination with Restart= on a service
5288 unit, then the specified units will no longer be triggered on
5289 failures that result in restarting. Previously, the specified units
5290 would be activated each time the unit failed, even when the unit was
5291 going to be restarted automatically. This behaviour contradicted the
5292 documentation. With this release the code is adjusted to match the
5293 documentation.
5294
41a4c3ec
LP
5295 * systemd-tmpfiles will now print a notice whenever it encounters
5296 tmpfiles.d/ lines referencing the /var/run/ directory. It will
5297 recommend reworking them to use the /run/ directory instead (for
5cadf58e
ZJS
5298 which /var/run/ is simply a symlinked compatibility alias). This way
5299 systemd-tmpfiles can properly detect line conflicts and merge lines
5300 referencing the same file by two paths, without having to access
5301 them.
41a4c3ec 5302
ce55bd5e
ZJS
5303 * systemctl disable/unmask/preset/preset-all cannot be used with
5304 --runtime. Previously this was allowed, but resulted in unintuitive
fe903cf4
LP
5305 behaviour that wasn't useful. systemctl disable/unmask will now undo
5306 both runtime and persistent enablement/masking, i.e. it will remove
5307 any relevant symlinks both in /run and /etc.
ce55bd5e 5308
e01d9e21 5309 * Note that all long-running system services shipped with systemd will
6b000af4 5310 now default to a system call allow list (rather than a deny list, as
e01d9e21
LP
5311 before). In particular, systemd-udevd will now enforce one too. For
5312 most cases this should be safe, however downstream distributions
5313 which disabled sandboxing of systemd-udevd (specifically the
5314 MountFlags= setting), might want to disable this security feature
6b000af4 5315 too, as the default allow-listing will prohibit all mount, swap,
e01d9e21
LP
5316 reboot and clock changing operations from udev rules.
5317
5cadf58e
ZJS
5318 * sd-boot acquired new loader configuration settings to optionally turn
5319 off Windows and MacOS boot partition discovery as well as
5320 reboot-into-firmware menu items. It is also able to pick a better
5321 screen resolution for HiDPI systems, and now provides loader
41a4c3ec
LP
5322 configuration settings to change the resolution explicitly.
5323
c9299be2
IT
5324 * systemd-resolved now supports DNS-over-TLS. It's still
5325 turned off by default, use DNSOverTLS=opportunistic to turn it on in
c086ce8c
LP
5326 resolved.conf. We intend to make this the default as soon as couple
5327 of additional techniques for optimizing the initial latency caused by
5328 establishing a TLS/TCP connection are implemented.
5329
73c718a9
YW
5330 * systemd-resolved.service and systemd-networkd.service now set
5331 DynamicUser=yes. The users systemd-resolve and systemd-network are
abc291aa
LP
5332 not created by systemd-sysusers anymore.
5333
5334 NOTE: This has a chance of breaking nss-ldap and similar NSS modules
5238e957 5335 that embed a network facing module into any process using getpwuid()
abc291aa
LP
5336 or related call: the dynamic allocation of the user ID for
5337 systemd-resolved.service means the service manager has to check NSS
5338 if the user name is already taken when forking off the service. Since
5339 the user in the common case won't be defined in /etc/passwd the
5340 lookup is likely to trigger nss-ldap which in turn might use NSS to
5341 ask systemd-resolved for hostname lookups. This will hence result in
5342 a deadlock: a user name lookup in order to start
38b38500 5343 systemd-resolved.service will result in a hostname lookup for which
abc291aa
LP
5344 systemd-resolved.service needs to be started already. There are
5345 multiple ways to work around this problem: pre-allocate the
5346 "systemd-resolve" user on such systems, so that nss-ldap won't be
5347 triggered; or use a different NSS package that doesn't do networking
5348 in-process but provides a local asynchronous name cache; or configure
5349 the NSS package to avoid lookups for UIDs in the range `pkg-config
5350 systemd --variable=dynamicuidmin` … `pkg-config systemd
5351 --variable=dynamicuidmax`, so that it does not consider itself
5352 authoritative for the same UID range systemd allocates dynamic users
5353 from.
73c718a9 5354
41a4c3ec
LP
5355 * The systemd-resolve tool has been renamed to resolvectl (it also
5356 remains available under the old name, for compatibility), and its
5357 interface is now verb-based, similar in style to the other <xyz>ctl
5cadf58e
ZJS
5358 tools, such as systemctl or loginctl.
5359
75da262a
LP
5360 * The resolvectl/systemd-resolve tool also provides 'resolvconf'
5361 compatibility. It may be symlinked under the 'resolvconf' name, in
5cadf58e
ZJS
5362 which case it will take arguments and input compatible with the
5363 Debian and FreeBSD resolvconf tool.
41a4c3ec
LP
5364
5365 * Support for suspend-then-hibernate has been added, i.e. a sleep mode
3f9a0a52 5366 where the system initially suspends, and after a timeout resumes and
41a4c3ec
LP
5367 hibernates again.
5368
5369 * networkd's ClientIdentifier= now accepts a new option "duid-only". If
5370 set the client will only send a DUID as client identifier.
5371
5372 * The nss-systemd glibc NSS module will now enumerate dynamic users and
5373 groups in effect. Previously, it could resolve UIDs/GIDs to user
5374 names/groups and vice versa, but did not support enumeration.
5375
5376 * journald's Compress= configuration setting now optionally accepts a
5377 byte threshold value. All journal objects larger than this threshold
5378 will be compressed, smaller ones will not. Previously this threshold
5379 was not configurable and set to 512.
5380
5cadf58e
ZJS
5381 * A new system.conf setting NoNewPrivileges= is now available which may
5382 be used to turn off acquisition of new privileges system-wide
5383 (i.e. set Linux' PR_SET_NO_NEW_PRIVS for PID 1 itself, and thus also
5384 for all its children). Note that turning this option on means setuid
5385 binaries and file system capabilities lose their special powers.
5386 While turning on this option is a big step towards a more secure
5387 system, doing so is likely to break numerous pre-existing UNIX tools,
5388 in particular su and sudo.
41a4c3ec
LP
5389
5390 * A new service systemd-time-sync-wait.service has been added. If
5391 enabled it will delay the time-sync.target unit at boot until time
bc99dac5 5392 synchronization has been received from the network. This
41a4c3ec
LP
5393 functionality is useful on systems lacking a local RTC or where it is
5394 acceptable that the boot process shall be delayed by external network
5395 services.
5396
5397 * When hibernating, systemd will now inform the kernel of the image
5398 write offset, on kernels new enough to support this. This means swap
5399 files should work for hibernation now.
5400
5cadf58e
ZJS
5401 * When loading unit files, systemd will now look for drop-in unit files
5402 extensions in additional places. Previously, for a unit file name
41a4c3ec
LP
5403 "foo-bar-baz.service" it would look for dropin files in
5404 "foo-bar-baz.service.d/*.conf". Now, it will also look in
5405 "foo-bar-.service.d/*.conf" and "foo-.service.d/", i.e. at the
5406 service name truncated after all inner dashes. This scheme allows
5407 writing drop-ins easily that apply to a whole set of unit files at
5408 once. It's particularly useful for mount and slice units (as their
5cadf58e
ZJS
5409 naming is prefix based), but is also useful for service and other
5410 units, for packages that install multiple unit files at once,
41a4c3ec 5411 following a strict naming regime of beginning the unit file name with
5cadf58e
ZJS
5412 the package's name. Two new specifiers are now supported in unit
5413 files to match this: %j and %J are replaced by the part of the unit
5414 name following the last dash.
5415
5416 * Unit files and other configuration files that support specifier
88099359 5417 expansion now understand another three new specifiers: %T and %V will
5cadf58e 5418 resolve to /tmp and /var/tmp respectively, or whatever temporary
88099359
ZJS
5419 directory has been set for the calling user. %E will expand to either
5420 /etc (for system units) or $XDG_CONFIG_HOME (for user units).
41a4c3ec
LP
5421
5422 * The ExecStart= lines of unit files are no longer required to
5423 reference absolute paths. If non-absolute paths are specified the
5424 specified binary name is searched within the service manager's
5cadf58e
ZJS
5425 built-in $PATH, which may be queried with 'systemd-path
5426 search-binaries-default'. It's generally recommended to continue to
5427 use absolute paths for all binaries specified in unit files.
41a4c3ec 5428
c7f93e28
ZJS
5429 * Units gained a new load state "bad-setting", which is used when a
5430 unit file was loaded, but contained fatal errors which prevent it
ba1dc1a1
LP
5431 from being started (for example, a service unit has been defined
5432 lacking both ExecStart= and ExecStop= lines).
c7f93e28 5433
41a4c3ec
LP
5434 * coredumpctl's "gdb" verb has been renamed to "debug", in order to
5435 support alternative debuggers, for example lldb. The old name
5436 continues to be available however, for compatibility reasons. Use the
5cadf58e
ZJS
5437 new --debugger= switch or the $SYSTEMD_DEBUGGER environment variable
5438 to pick an alternative debugger instead of the default gdb.
41a4c3ec
LP
5439
5440 * systemctl and the other tools will now output escape sequences that
5441 generate proper clickable hyperlinks in various terminal emulators
5442 where useful (for example, in the "systemctl status" output you can
5443 now click on the unit file name to quickly open it in the
5444 editor/viewer of your choice). Note that not all terminal emulators
5445 support this functionality yet, but many do. Unfortunately, the
5446 "less" pager doesn't support this yet, hence this functionality is
5447 currently automatically turned off when a pager is started (which
5448 happens quite often due to auto-paging). We hope to remove this
5cadf58e
ZJS
5449 limitation as soon as "less" learns these escape sequences. This new
5450 behaviour may also be turned off explicitly with the $SYSTEMD_URLIFY
5451 environment variable. For details on these escape sequences see:
41a4c3ec
LP
5452 https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
5453
5454 * networkd's .network files now support a new IPv6MTUBytes= option for
5455 setting the MTU used by IPv6 explicitly as well as a new MTUBytes=
5456 option in the [Route] section to configure the MTU to use for
5457 specific routes. It also gained support for configuration of the DHCP
5458 "UserClass" option through the new UserClass= setting. It gained
5459 three new options in the new [CAN] section for configuring CAN
5460 networks. The MULTICAST and ALLMULTI interface flags may now be
5461 controlled explicitly with the new Multicast= and AllMulticast=
5462 settings.
5463
5464 * networkd will now automatically make use of the kernel's route
5465 expiration feature, if it is available.
5466
5cadf58e
ZJS
5467 * udevd's .link files now support setting the number of receive and
5468 transmit channels, using the RxChannels=, TxChannels=,
5469 OtherChannels=, CombinedChannels= settings.
5470
5471 * Support for UDPSegmentationOffload= has been removed, given its
5472 limited support in hardware, and waning software support.
41a4c3ec
LP
5473
5474 * networkd's .netdev files now support creating "netdevsim" interfaces.
5475
5476 * PID 1 learnt a new bus call GetUnitByControlGroup() which may be used
5477 to query the unit belonging to a specific kernel control group.
5478
5cadf58e 5479 * systemd-analyze gained a new verb "cat-config", which may be used to
41a4c3ec
LP
5480 dump the contents of any configuration file, with all its matching
5481 drop-in files added in, and honouring the usual search and masking
5482 logic applied to systemd configuration files. For example use
5483 "systemd-analyze cat-config systemd/system.conf" to get the complete
5484 system configuration file of systemd how it would be loaded by PID 1
5cadf58e
ZJS
5485 itself. Similar to this, various tools such as systemd-tmpfiles or
5486 systemd-sysusers, gained a new option "--cat-config", which does the
41a4c3ec
LP
5487 corresponding operation for their own configuration settings. For
5488 example, "systemd-tmpfiles --cat-config" will now output the full
5489 list of tmpfiles.d/ lines in place.
5490
704ae536
YW
5491 * timedatectl gained three new verbs: "show" shows bus properties of
5492 systemd-timedated, "timesync-status" shows the current NTP
5493 synchronization state of systemd-timesyncd, and "show-timesync"
5494 shows bus properties of systemd-timesyncd.
41a4c3ec
LP
5495
5496 * systemd-timesyncd gained a bus interface on which it exposes details
5497 about its state.
5498
73c718a9
YW
5499 * A new environment variable $SYSTEMD_TIMEDATED_NTP_SERVICES is now
5500 understood by systemd-timedated. It takes a colon-separated list of
5501 unit names of NTP client services. The list is used by
5502 "timedatectl set-ntp".
5503
41a4c3ec
LP
5504 * systemd-nspawn gained a new --rlimit= switch for setting initial
5505 resource limits for the container payload. There's a new switch
5cadf58e 5506 --hostname= to explicitly override the container's hostname. A new
41a4c3ec
LP
5507 --no-new-privileges= switch may be used to control the
5508 PR_SET_NO_NEW_PRIVS flag for the container payload. A new
5509 --oom-score-adjust= switch controls the OOM scoring adjustment value
5510 for the payload. The new --cpu-affinity= switch controls the CPU
5511 affinity of the container payload. The new --resolv-conf= switch
5512 allows more detailed control of /etc/resolv.conf handling of the
5cadf58e 5513 container. Similarly, the new --timezone= switch allows more detailed
41a4c3ec
LP
5514 control of /etc/localtime handling of the container.
5515
5cadf58e 5516 * systemd-detect-virt gained a new --list switch, which will print a
41a4c3ec
LP
5517 list of all currently known VM and container environments.
5518
5cadf58e 5519 * Support for "Portable Services" has been added, see
41a4c3ec 5520 doc/PORTABLE_SERVICES.md for details. Currently, the support is still
5cadf58e
ZJS
5521 experimental, but this is expected to change soon. Reflecting this
5522 experimental state, the "portablectl" binary is not installed into
41a4c3ec
LP
5523 /usr/bin yet. The binary has to be called with the full path
5524 /usr/lib/systemd/portablectl instead.
5525
5526 * journalctl's and systemctl's -o switch now knows a new log output
5527 mode "with-unit". The output it generates is very similar to the
5528 regular "short" mode, but displays the unit name instead of the
5529 syslog tag for each log line. Also, the date is shown with timezone
5530 information. This mode is probably more useful than the classic
5531 "short" output mode for most purposes, except where pixel-perfect
5532 compatibility with classic /var/log/messages formatting is required.
5533
5534 * A new --dump-bus-properties switch has been added to the systemd
5535 binary, which may be used to dump all supported D-Bus properties.
c7f93e28
ZJS
5536 (Options which are still supported, but are deprecated, are *not*
5537 shown.)
41a4c3ec 5538
41a4c3ec
LP
5539 * sd-bus gained a set of new calls:
5540 sd_bus_slot_set_floating()/sd_bus_slot_get_floating() may be used to
5541 enable/disable the "floating" state of a bus slot object,
5542 i.e. whether the slot object pins the bus it is allocated for into
5543 memory or if the bus slot object gets disconnected when the bus goes
5544 away. sd_bus_open_with_description(),
5545 sd_bus_open_user_with_description(),
5546 sd_bus_open_system_with_description() may be used to allocate bus
5547 objects and set their description string already during allocation.
5548
5549 * sd-event gained support for watching inotify events from the event
5550 loop, in an efficient way, sharing inotify handles between multiple
5551 users. For this a new function sd_event_add_inotify() has been added.
5552
5553 * sd-event and sd-bus gained support for calling special user-supplied
5554 destructor functions for userdata pointers associated with
c7f93e28
ZJS
5555 sd_event_source, sd_bus_slot, and sd_bus_track objects. For this new
5556 functions sd_bus_slot_set_destroy_callback,
5557 sd_bus_slot_get_destroy_callback, sd_bus_track_set_destroy_callback,
5558 sd_bus_track_get_destroy_callback,
5559 sd_event_source_set_destroy_callback,
5560 sd_event_source_get_destroy_callback have been added.
41a4c3ec
LP
5561
5562 * The "net.ipv4.tcp_ecn" sysctl will now be turned on by default.
5563
5564 * PID 1 will now automatically reschedule .timer units whenever the
5cadf58e 5565 local timezone changes. (They previously got rescheduled
41a4c3ec
LP
5566 automatically when the system clock changed.)
5567
5568 * New documentation has been added to document cgroups delegation,
5569 portable services and the various code quality tools we have set up:
5570
a8a27374
SK
5571 https://github.com/systemd/systemd/blob/master/docs/CGROUP_DELEGATION.md
5572 https://github.com/systemd/systemd/blob/master/docs/PORTABLE_SERVICES.md
5573 https://github.com/systemd/systemd/blob/master/docs/CODE_QUALITY.md
41a4c3ec 5574
d6906108
LP
5575 * The Boot Loader Specification has been added to the source tree.
5576
a8a27374 5577 https://github.com/systemd/systemd/blob/master/docs/BOOT_LOADER_SPECIFICATION.md
d6906108
LP
5578
5579 While moving it into our source tree we have updated it and further
5580 changes are now accepted through the usual github PR workflow.
5581
41a4c3ec
LP
5582 * pam_systemd will now look for PAM userdata fields systemd.memory_max,
5583 systemd.tasks_max, systemd.cpu_weight, systemd.io_weight set by
5584 earlier PAM modules. The data in these fields is used to initialize
5585 the session scope's resource properties. Thus external PAM modules
5586 may now configure per-session limits, for example sourced from
5587 external user databases.
5588
5589 * socket units with Accept=yes will now maintain a "refused" counter in
5590 addition to the existing "accepted" counter, counting connections
5591 refused due to the enforced limits.
5592
5593 * The "systemd-path search-binaries-default" command may now be use to
5594 query the default, built-in $PATH PID 1 will pass to the services it
5595 manages.
5596
c49a7cbd
LP
5597 * A new unit file setting PrivateMounts= has been added. It's a boolean
5598 option. If enabled the unit's processes are invoked in their own file
5599 system namespace. Note that this behaviour is also implied if any
5600 other file system namespacing options (such as PrivateTmp=,
5601 PrivateDevices=, ProtectSystem=, …) are used. This option is hence
5602 primarily useful for services that do not use any of the other file
5603 system namespacing options. One such service is systemd-udevd.service
5238e957 5604 where this is now used by default.
c49a7cbd 5605
57ab451e
ZJS
5606 * ConditionSecurity= gained a new value "uefi-secureboot" that is true
5607 when the system is booted in UEFI "secure mode".
5608
c7668c1c
LP
5609 * A new unit "system-update-pre.target" is added, which defines an
5610 optional synchronization point for offline system updates, as
5611 implemented by the pre-existing "system-update.target" unit. It
5612 allows ordering services before the service that executes the actual
5613 update process in a generic way.
5614
f26ad321
ZJS
5615 * Systemd now emits warnings whenever .include syntax is used.
5616
41a4c3ec 5617 Contributions from: Adam Duskett, Alan Jenkins, Alessandro Casale,
ec53d48c 5618 Alexander Kurtz, Alex Gartrell, Anssi Hannula, Arnaud Rebillout, Brian
bb6f071f
LP
5619 J. Murrell, Bruno Vernay, Chris Lamb, Chris Lesiak, Christian Brauner,
5620 Christian Hesse, Christian Rebischke, Colin Guthrie, Daniel Dao, Daniel
5621 Lin, Danylo Korostil, Davide Cavalca, David Tardon, Dimitri John
5622 Ledkov, Dmitriy Geels, Douglas Christman, Elia Geretto, emelenas, Emil
5623 Velikov, Evgeny Vereshchagin, Felipe Sateler, Feng Sun, Filipe
5624 Brandenburger, Franck Bui, futpib, Giuseppe Scrivano, Guillem Jover,
5625 guixxx, Hannes Reinecke, Hans de Goede, Harald Hoyer, Henrique Dante de
5626 Almeida, Hiram van Paassen, Ian Miell, Igor Gnatenko, Ivan Shapovalov,
5627 Iwan Timmer, James Cowgill, Jan Janssen, Jan Synacek, Jared Kazimir,
5628 Jérémy Rosen, João Paulo Rechi Vita, Joost Heitbrink, Jui-Chi Ricky
5629 Liang, Jürg Billeter, Kai-Heng Feng, Karol Augustin, Kay Sievers,
5630 Krzysztof Nowicki, Lauri Tirkkonen, Lennart Poettering, Leonard König,
5631 Long Li, Luca Boccassi, Lucas Werkmeister, Marcel Hoppe, Marc
5632 Kleine-Budde, Mario Limonciello, Martin Jansa, Martin Wilck, Mathieu
5633 Malaterre, Matteo F. Vescovi, Matthew McGinn, Matthias-Christian Ott,
5634 Michael Biebl, Michael Olbrich, Michael Prokop, Michal Koutný, Michal
5635 Sekletar, Mike Gilbert, Mikhail Kasimov, Milan Broz, Milan Pässler,
5636 Mladen Pejaković, Muhammet Kara, Nicolas Boichat, Omer Katz, Paride
5637 Legovini, Paul Menzel, Paul Milliken, Pavel Hrdina, Peter A. Bigot,
5638 Peter D'Hoye, Peter Hutterer, Peter Jones, Philip Sequeira, Philip
61d0025d 5639 Withnall, Piotr Drąg, Radostin Stoyanov, Ricardo Salveti de Araujo,
bb6f071f
LP
5640 Ronny Chevalier, Rosen Penev, Rubén Suárez Alvarez, Ryan Gonzalez,
5641 Salvo Tomaselli, Sebastian Reichel, Sergey Ptashnick, Sergio Lindo
5642 Mansilla, Stefan Schweter, Stephen Hemminger, Stuart Hayes, Susant
5643 Sahani, Sylvain Plantefève, Thomas H. P. Andersen, Tobias Jungel,
5644 Tomasz Torcz, Vito Caputo, Will Dietz, Will Thompson, Wim van Mourik,
5645 Yu Watanabe, Zbigniew Jędrzejewski-Szmek
41a4c3ec 5646
e8498f82 5647 — Berlin, 2018-06-22
41a4c3ec 5648
c657bff1 5649CHANGES WITH 238:
e0c46a73
LP
5650
5651 * The MemoryAccounting= unit property now defaults to on. After
5652 discussions with the upstream control group maintainers we learnt
5653 that the negative impact of cgroup memory accounting on current
5654 kernels is finally relatively minimal, so that it should be safe to
444d5863
ZJS
5655 enable this by default without affecting system performance. Besides
5656 memory accounting only task accounting is turned on by default, all
5657 other forms of resource accounting (CPU, IO, IP) remain off for now,
5658 because it's not clear yet that their impact is small enough to move
5659 from opt-in to opt-out. We recommend downstreams to leave memory
07a35e84 5660 accounting on by default if kernel 4.14 or higher is primarily
444d5863
ZJS
5661 used. On very resource constrained systems or when support for old
5662 kernels is a necessity, -Dmemory-accounting-default=false can be used
5663 to revert this change.
e0c46a73 5664
313c32c3
ZJS
5665 * rpm scriptlets to update the udev hwdb and rules (%udev_hwdb_update,
5666 %udev_rules_update) and the journal catalog (%journal_catalog_update)
5667 from the upgrade scriptlets of individual packages now do nothing.
5668 Transfiletriggers have been added which will perform those updates
5669 once at the end of the transaction.
5670
5671 Similar transfiletriggers have been added to execute any sysctl.d
5672 and binfmt.d rules. Thus, it should be unnecessary to provide any
5673 scriptlets to execute this configuration from package installation
5674 scripts.
5675
5676 * systemd-sysusers gained a mode where the configuration to execute is
5677 specified on the command line, but this configuration is not executed
5678 directly, but instead it is merged with the configuration on disk,
5679 and the result is executed. This is useful for package installation
5680 scripts which want to create the user before installing any files on
5681 disk (in case some of those files are owned by that user), while
5682 still allowing local admin overrides.
5683
07a35e84 5684 This functionality is exposed to rpm scriptlets through a new
313c32c3
ZJS
5685 %sysusers_create_package macro. Old %sysusers_create and
5686 %sysusers_create_inline macros are deprecated.
5687
5688 A transfiletrigger for sysusers.d configuration is now installed,
07a35e84 5689 which means that it should be unnecessary to call systemd-sysusers from
313c32c3
ZJS
5690 package installation scripts, unless the package installs any files
5691 owned by those newly-created users, in which case
5692 %sysusers_create_package should be used.
5693
5694 * Analogous change has been done for systemd-tmpfiles: it gained a mode
5695 where the command-line configuration is merged with the configuration
5696 on disk. This is exposed as the new %tmpfiles_create_package macro,
5697 and %tmpfiles_create is deprecated. A transfiletrigger is installed
5698 for tmpfiles.d, hence it should be unnecessary to call systemd-tmpfiles
5699 from package installation scripts.
5700
5701 * sysusers.d configuration for a user may now also specify the group
5702 number, in addition to the user number ("u username 123:456"), or
5703 without the user number ("u username -:456").
5704
5705 * Configution items for systemd-sysusers can now be specified as
5706 positional arguments when the new --inline switch is used.
5707
5708 * The login shell of users created through sysusers.d may now be
5709 specified (previously, it was always /bin/sh for root and
5710 /sbin/nologin for other users).
5711
5712 * systemd-analyze gained a new --global switch to look at global user
5713 configuration. It also gained a unit-paths verb to list the unit load
5714 paths that are compiled into systemd (which can be used with
5715 --systemd, --user, or --global).
5716
5717 * udevadm trigger gained a new --settle/-w option to wait for any
5718 triggered events to finish (but just those, and not any other events
5719 which are triggered meanwhile).
5720
5721 * The action that systemd-logind takes when the lid is closed and the
5722 machine is connected to external power can now be configured using
5723 HandleLidSwitchExternalPower= in logind.conf. Previously, this action
5724 was determined by HandleLidSwitch=, and, for backwards compatibility,
5725 is still is, if HandleLidSwitchExternalPower= is not explicitly set.
5726
5727 * journalctl will periodically call sd_journal_process() to make it
5728 resilient against inotify queue overruns when journal files are
5729 rotated very quickly.
5730
5731 * Two new functions in libsystemd — sd_bus_get_n_queued_read and
5732 sd_bus_get_n_queued_write — may be used to check the number of
5733 pending bus messages.
5734
5735 * systemd gained a new
5736 org.freedesktop.systemd1.Manager.AttachProcessesToUnit dbus call
5737 which can be used to migrate foreign processes to scope and service
5738 units. The primary user for this new API is systemd itself: the
5739 systemd --user instance uses this call of the systemd --system
5740 instance to migrate processes if it itself gets the request to
5741 migrate processes and the kernel refuses this due to access
5742 restrictions. Thanks to this "systemd-run --scope --user …" works
4e1dfa45 5743 again in pure cgroup v2 environments when invoked from the user
313c32c3
ZJS
5744 session scope.
5745
5746 * A new TemporaryFileSystem= setting can be used to mask out part of
5747 the real file system tree with tmpfs mounts. This may be combined
5748 with BindPaths= and BindReadOnlyPaths= to hide files or directories
5749 not relevant to the unit, while still allowing some paths lower in
5750 the tree to be accessed.
5751
5752 ProtectHome=tmpfs may now be used to hide user home and runtime
5753 directories from units, in a way that is mostly equivalent to
5754 "TemporaryFileSystem=/home /run/user /root".
5755
5756 * Non-service units are now started with KeyringMode=shared by default.
5757 This means that mount and swapon and other mount tools have access
5758 to keys in the main keyring.
5759
5760 * /sys/fs/bpf is now mounted automatically.
5761
5762 * QNX virtualization is now detected by systemd-detect-virt and may
5763 be used in ConditionVirtualization=.
5764
5765 * IPAccounting= may now be enabled also for slice units.
5766
5767 * A new -Dsplit-bin= build configuration switch may be used to specify
5768 whether bin and sbin directories are merged, or if they should be
5769 included separately in $PATH and various listings of executable
5770 directories. The build configuration scripts will try to autodetect
5771 the proper values of -Dsplit-usr= and -Dsplit-bin= based on build
5772 system, but distributions are encouraged to configure this
5773 explicitly.
5774
5775 * A new -Dok-color= build configuration switch may be used to change
5776 the colour of "OK" status messages.
5777
5778 * UPGRADE ISSUE: serialization of units using JoinsNamespaceOf= with
5779 PrivateNetwork=yes was buggy in previous versions of systemd. This
5780 means that after the upgrade and daemon-reexec, any such units must
5781 be restarted.
5782
5783 * INCOMPATIBILITY: as announced in the NEWS for 237, systemd-tmpfiles
5784 will not exclude read-only files owned by root from cleanup.
5785
c657bff1
ZJS
5786 Contributions from: Alan Jenkins, Alexander F Rødseth, Alexis Jeandet,
5787 Andika Triwidada, Andrei Gherzan, Ansgar Burchardt, antizealot1337,
5788 Batuhan Osman Taşkaya, Beniamino Galvani, Bill Yodlowsky, Caio Marcelo
5789 de Oliveira Filho, CuBiC, Daniele Medri, Daniel Mouritzen, Daniel
5790 Rusek, Davide Cavalca, Dimitri John Ledkov, Douglas Christman, Evgeny
5791 Vereshchagin, Faalagorn, Filipe Brandenburger, Franck Bui, futpib,
5792 Giacomo Longo, Gunnar Hjalmarsson, Hans de Goede, Hermann Gausterer,
5793 Iago López Galeiras, Jakub Filak, Jan Synacek, Jason A. Donenfeld,
5794 Javier Martinez Canillas, Jérémy Rosen, Lennart Poettering, Lucas
5795 Werkmeister, Mao Huang, Marco Gulino, Michael Biebl, Michael Vogt,
5796 MilhouseVH, Neal Gompa (ニール・ゴンパ), Oleander Reis, Olof Mogren,
5797 Patrick Uiterwijk, Peter Hutterer, Peter Portante, Piotr Drąg, Robert
5798 Antoni Buj Gelonch, Sergey Ptashnick, Shawn Landden, Shuang Liu, Simon
5799 Fowler, SjonHortensius, snorreflorre, Susant Sahani, Sylvain
5800 Plantefève, Thomas Blume, Thomas Haller, Vito Caputo, Yu Watanabe,
5801 Zbigniew Jędrzejewski-Szmek, Марко М. Костић (Marko M. Kostić)
5802
5803 — Warsaw, 2018-03-05
5804
82c8e3e6 5805CHANGES WITH 237:
2b0c59ba
MP
5806
5807 * Some keyboards come with a zoom see-saw or rocker which until now got
5808 mapped to the Linux "zoomin/out" keys in hwdb. However, these
5809 keycodes are not recognized by any major desktop. They now produce
5810 Up/Down key events so that they can be used for scrolling.
5811
49e87292
LP
5812 * INCOMPATIBILITY: systemd-tmpfiles' "f" lines changed behaviour
5813 slightly: previously, if an argument was specified for lines of this
5814 type (i.e. the right-most column was set) this string was appended to
5815 existing files each time systemd-tmpfiles was run. This behaviour was
5816 different from what the documentation said, and not particularly
5817 useful, as repeated systemd-tmpfiles invocations would not be
5818 idempotent and grow such files without bounds. With this release
15c5594b
ZJS
5819 behaviour has been altered to match what the documentation says:
5820 lines of this type only have an effect if the indicated files don't
5821 exist yet, and only then the argument string is written to the file.
49e87292 5822
82c8e3e6
LP
5823 * FUTURE INCOMPATIBILITY: In systemd v238 we intend to slightly change
5824 systemd-tmpfiles behaviour: previously, read-only files owned by root
5825 were always excluded from the file "aging" algorithm (i.e. the
5826 automatic clean-up of directories like /tmp based on
5827 atime/mtime/ctime). We intend to drop this restriction, and age files
5828 by default even when owned by root and read-only. This behaviour was
5829 inherited from older tools, but there have been requests to remove
5830 it, and it's not obvious why this restriction was made in the first
28423d9a 5831 place. Please speak up now, if you are aware of software that requires
82c8e3e6
LP
5832 this behaviour, otherwise we'll remove the restriction in v238.
5833
95894b91
LP
5834 * A new environment variable $SYSTEMD_OFFLINE is now understood by
5835 systemctl. It takes a boolean argument. If on, systemctl assumes it
5836 operates on an "offline" OS tree, and will not attempt to talk to the
5837 service manager. Previously, this mode was implicitly enabled if a
5838 chroot() environment was detected, and this new environment variable
5839 now provides explicit control.
5840
1a0cd2c7
ZJS
5841 * .path and .socket units may now be created transiently, too.
5842 Previously only service, mount, automount and timer units were
95894b91
LP
5843 supported as transient units. The systemd-run tool has been updated
5844 to expose this new functionality, you may hence use it now to bind
5845 arbitrary commands to path or socket activation on-the-fly from the
1a0cd2c7
ZJS
5846 command line. Moreover, almost all properties are now exposed for the
5847 unit types that already supported transient operation.
95894b91
LP
5848
5849 * The systemd-mount command gained support for a new --owner= parameter
5850 which takes a user name, which is then resolved and included in uid=
5851 and gid= mount options string of the file system to mount.
5852
5853 * A new unit condition ConditionControlGroupController= has been added
5854 that checks whether a specific cgroup controller is available.
5855
5856 * Unit files, udev's .link files, and systemd-networkd's .netdev and
5857 .network files all gained support for a new condition
5858 ConditionKernelVersion= for checking against specific kernel
5859 versions.
5860
5861 * In systemd-networkd, the [IPVLAN] section in .netdev files gained
6cddc792 5862 support for configuring device flags in the Flags= setting. In the
95894b91
LP
5863 same files, the [Tunnel] section gained support for configuring
5864 AllowLocalRemote=. The [Route] section in .network files gained
5865 support for configuring InitialCongestionWindow=,
5866 InitialAdvertisedReceiveWindow= and QuickAck=. The [DHCP] section now
5867 understands RapidCommit=.
5868
5869 * systemd-networkd's DHCPv6 support gained support for Prefix
5870 Delegation.
5871
5872 * sd-bus gained support for a new "watch-bind" feature. When this
5873 feature is enabled, an sd_bus connection may be set up to connect to
5874 an AF_UNIX socket in the file system as soon as it is created. This
5875 functionality is useful for writing early-boot services that
5876 automatically connect to the system bus as soon as it is started,
5877 without ugly time-based polling. systemd-networkd and
5878 systemd-resolved have been updated to make use of this
5879 functionality. busctl exposes this functionality in a new
5880 --watch-bind= command line switch.
5881
5882 * sd-bus will now optionally synthesize a local "Connected" signal as
5883 soon as a D-Bus connection is set up fully. This message mirrors the
5884 already existing "Disconnected" signal which is synthesized when the
5885 connection is terminated. This signal is generally useful but
5886 particularly handy in combination with the "watch-bind" feature
5887 described above. Synthesizing of this message has to be requested
5888 explicitly through the new API call sd_bus_set_connected_signal(). In
5889 addition a new call sd_bus_is_ready() has been added that checks
caf2a2d8 5890 whether a connection is fully set up (i.e. between the "Connected" and
95894b91
LP
5891 "Disconnected" signals).
5892
5893 * sd-bus gained two new calls sd_bus_request_name_async() and
5894 sd_bus_release_name_async() for asynchronously registering bus
5895 names. Similar, there is now sd_bus_add_match_async() for installing
5896 a signal match asynchronously. All of systemd's own services have
5897 been updated to make use of these calls. Doing these operations
5898 asynchronously has two benefits: it reduces the risk of deadlocks in
5899 case of cyclic dependencies between bus services, and it speeds up
5900 service initialization since synchronization points for bus
5901 round-trips are removed.
5902
5903 * sd-bus gained two new calls sd_bus_match_signal() and
5904 sd_bus_match_signal_async(), which are similar to sd_bus_add_match()
5905 and sd_bus_add_match_async() but instead of taking a D-Bus match
5906 string take match fields as normal function parameters.
5907
5908 * sd-bus gained two new calls sd_bus_set_sender() and
5909 sd_bus_message_set_sender() for setting the sender name of outgoing
5910 messages (either for all outgoing messages or for just one specific
5911 one). These calls are only useful in direct connections as on
5912 brokered connections the broker fills in the sender anyway,
5913 overwriting whatever the client filled in.
5914
5915 * sd-event gained a new pseudo-handle that may be specified on all API
5916 calls where an "sd_event*" object is expected: SD_EVENT_DEFAULT. When
5917 used this refers to the default event loop object of the calling
5918 thread. Note however that this does not implicitly allocate one —
6cddc792
CR
5919 which has to be done prior by using sd_event_default(). Similarly
5920 sd-bus gained three new pseudo-handles SD_BUS_DEFAULT,
95894b91
LP
5921 SD_BUS_DEFAULT_USER, SD_BUS_DEFAULT_SYSTEM that may be used to refer
5922 to the default bus of the specified type of the calling thread. Here
5923 too this does not implicitly allocate bus connection objects, this
5924 has to be done prior with sd_bus_default() and friends.
5925
5926 * sd-event gained a new call pair
6cddc792
CR
5927 sd_event_source_{get|set}_io_fd_own(). This may be used to request
5928 automatic closure of the file descriptor an IO event source watches
95894b91
LP
5929 when the event source is destroyed.
5930
5931 * systemd-networkd gained support for natively configuring WireGuard
5932 connections.
5933
6cddc792
CR
5934 * In previous versions systemd synthesized user records both for the
5935 "nobody" (UID 65534) and "root" (UID 0) users in nss-systemd and
5936 internally. In order to simplify distribution-wide renames of the
95894b91
LP
5937 "nobody" user (like it is planned in Fedora: nfsnobody → nobody), a
5938 new transitional flag file has been added: if
5939 /etc/systemd/dont-synthesize-nobody exists synthesizing of the 65534
5940 user and group record within the systemd codebase is disabled.
5941
5942 * systemd-notify gained a new --uid= option for selecting the source
5943 user/UID to use for notification messages sent to the service
5944 manager.
5945
31751f7e 5946 * journalctl gained a new --grep= option to list only entries in which
e6501af8
ZJS
5947 the message matches a certain pattern. By default matching is case
5948 insensitive if the pattern is lowercase, and case sensitive
5949 otherwise. Option --case-sensitive=yes|no can be used to override
5950 this an specify case sensitivity or case insensitivity.
5951
56a29112 5952 * There's now a "systemd-analyze service-watchdogs" command for printing
508058c9 5953 the current state of the service runtime watchdog, and optionally
56a29112 5954 enabling or disabling the per-service watchdogs system-wide if given a
508058c9
LP
5955 boolean argument (i.e. the concept you configure in WatchdogSec=), for
5956 debugging purposes. There's also a kernel command line option
56a29112 5957 systemd.service_watchdogs= for controlling the same.
508058c9
LP
5958
5959 * Two new "log-level" and "log-target" options for systemd-analyze were
bc99dac5 5960 added that merge the now deprecated get-log-level, set-log-level and
508058c9
LP
5961 get-log-target, set-log-target pairs. The deprecated options are still
5962 understood for backwards compatibility. The two new options print the
5963 current value when no arguments are given, and set them when a
56a29112 5964 level/target is given as an argument.
95894b91 5965
508058c9
LP
5966 * sysusers.d's "u" lines now optionally accept both a UID and a GID
5967 specification, separated by a ":" character, in order to create users
5968 where UID and GID do not match.
5969
95894b91 5970 Contributions from: Adam Duskett, Alan Jenkins, Alexander Kuleshov,
508058c9
LP
5971 Alexis Deruelle, Andrew Jeddeloh, Armin Widegreen, Batuhan Osman
5972 Taşkaya, Björn Esser, bleep_blop, Bruce A. Johnson, Chris Down, Clinton
5973 Roy, Colin Walters, Daniel Rusek, Dimitri John Ledkov, Dmitry Rozhkov,
5974 Evgeny Vereshchagin, Ewout van Mansom, Felipe Sateler, Franck Bui,
5975 Frantisek Sumsal, George Gaydarov, Gianluca Boiano, Hans-Christian
5976 Noren Egtvedt, Hans de Goede, Henrik Grindal Bakken, Jan Alexander
5977 Steffens, Jan Klötzke, Jason A. Donenfeld, jdkbx, Jérémy Rosen,
5978 Jerónimo Borque, John Lin, John Paul Herold, Jonathan Rudenberg, Jörg
5979 Thalheim, Ken (Bitsko) MacLeod, Larry Bernstone, Lennart Poettering,
5980 Lucas Werkmeister, Maciej S. Szmigiero, Marek Čermák, Martin Pitt,
5981 Mathieu Malaterre, Matthew Thode, Matthias-Christian Ott, Max Harmathy,
5982 Michael Biebl, Michael Vogt, Michal Koutný, Michal Sekletar, Michał
5983 Szczepański, Mike Gilbert, Nathaniel McCallum, Nicolas Chauvet, Olaf
5984 Hering, Olivier Schwander, Patrik Flykt, Paul Cercueil, Peter Hutterer,
5985 Piotr Drąg, Raphael Vogelgsang, Reverend Homer, Robert Kolchmeyer,
5986 Samuel Dionne-Riel, Sergey Ptashnick, Shawn Landden, Susant Sahani,
5987 Sylvain Plantefève, Thomas H. P. Andersen, Thomas Huth, Tomasz
5988 Bachorski, Vladislav Vishnyakov, Wieland Hoffmann, Yu Watanabe, Zachary
5989 Winnerman, Zbigniew Jędrzejewski-Szmek, Дамјан Георгиевски, Дилян
5990 Палаузов
5991
5992 — Brno, 2018-01-28
2b0c59ba 5993
a1b2c92d 5994CHANGES WITH 236:
195b943d 5995
89780840
ZJS
5996 * The modprobe.d/ drop-in for the bonding.ko kernel module introduced
5997 in v235 has been extended to also set the dummy.ko module option
5998 numdummies=0, preventing the kernel from automatically creating
5999 dummy0. All dummy interfaces must now be explicitly created.
195b943d 6000
3925496a
LP
6001 * Unknown '%' specifiers in configuration files are now rejected. This
6002 applies to units and tmpfiles.d configuration. Any percent characters
6003 that are followed by a letter or digit that are not supposed to be
6004 interpreted as the beginning of a specifier should be escaped by
6005 doubling ("%%"). (So "size=5%" is still accepted, as well as
6006 "size=5%,foo=bar", but not "LABEL=x%y%z" since %y and %z are not
6007 valid specifiers today.)
751223fe 6008
e6b2d948 6009 * systemd-resolved now maintains a new dynamic
89780840
ZJS
6010 /run/systemd/resolve/stub-resolv.conf compatibility file. It is
6011 recommended to make /etc/resolv.conf a symlink to it. This file
6012 points at the systemd-resolved stub DNS 127.0.0.53 resolver and
6013 includes dynamically acquired search domains, achieving more correct
6014 DNS resolution by software that bypasses local DNS APIs such as NSS.
e6b2d948 6015
67eb5b38
LP
6016 * The "uaccess" udev tag has been dropped from /dev/kvm and
6017 /dev/dri/renderD*. These devices now have the 0666 permissions by
6018 default (but this may be changed at build-time). /dev/dri/renderD*
6019 will now be owned by the "render" group along with /dev/kfd.
6020
89780840
ZJS
6021 * "DynamicUser=yes" has been enabled for systemd-timesyncd.service,
6022 systemd-journal-gatewayd.service and
6023 systemd-journal-upload.service. This means "nss-systemd" must be
6024 enabled in /etc/nsswitch.conf to ensure the UIDs assigned to these
6025 services are resolved properly.
67eb5b38 6026
3925496a
LP
6027 * In /etc/fstab two new mount options are now understood:
6028 x-systemd.makefs and x-systemd.growfs. The former has the effect that
6029 the configured file system is formatted before it is mounted, the
6030 latter that the file system is resized to the full block device size
6031 after it is mounted (i.e. if the file system is smaller than the
6032 partition it resides on, it's grown). This is similar to the fsck
6033 logic in /etc/fstab, and pulls in systemd-makefs@.service and
6034 systemd-growfs@.service as necessary, similar to
6035 systemd-fsck@.service. Resizing is currently only supported on ext4
6036 and btrfs.
6037
67eb5b38
LP
6038 * In systemd-networkd, the IPv6 RA logic now optionally may announce
6039 DNS server and domain information.
6040
6041 * Support for the LUKS2 on-disk format for encrypted partitions has
6042 been added. This requires libcryptsetup2 during compilation and
6043 runtime.
6044
89780840 6045 * The systemd --user instance will now signal "readiness" when its
67eb5b38
LP
6046 basic.target unit has been reached, instead of when the run queue ran
6047 empty for the first time.
6048
8ea2dcb0
ZJS
6049 * Tmpfiles.d with user configuration are now also supported.
6050 systemd-tmpfiles gained a new --user switch, and snippets placed in
6051 ~/.config/user-tmpfiles.d/ and corresponding directories will be
6052 executed by systemd-tmpfiles --user running in the new
6053 systemd-tmpfiles-setup.service and systemd-tmpfiles-clean.service
6054 running in the user session.
6055
6056 * Unit files and tmpfiles.d snippets learnt three new % specifiers:
6057 %S resolves to the top-level state directory (/var/lib for the system
6058 instance, $XDG_CONFIG_HOME for the user instance), %C resolves to the
6059 top-level cache directory (/var/cache for the system instance,
6060 $XDG_CACHE_HOME for the user instance), %L resolves to the top-level
6061 logs directory (/var/log for the system instance,
67eb5b38 6062 $XDG_CONFIG_HOME/log/ for the user instance). This matches the
8ea2dcb0 6063 existing %t specifier, that resolves to the top-level runtime
67eb5b38
LP
6064 directory (/run for the system instance, and $XDG_RUNTIME_DIR for the
6065 user instance).
6066
6067 * journalctl learnt a new parameter --output-fields= for limiting the
6068 set of journal fields to output in verbose and JSON output modes.
6069
6070 * systemd-timesyncd's configuration file gained a new option
89780840
ZJS
6071 RootDistanceMaxSec= for setting the maximum root distance of servers
6072 it'll use, as well as the new options PollIntervalMinSec= and
6073 PollIntervalMaxSec= to tweak the minimum and maximum poll interval.
67eb5b38
LP
6074
6075 * bootctl gained a new command "list" for listing all available boot
89780840 6076 menu items on systems that follow the boot loader specification.
67eb5b38
LP
6077
6078 * systemctl gained a new --dry-run switch that shows what would be done
6079 instead of doing it, and is currently supported by the shutdown and
6080 sleep verbs.
6081
e9ad86d5 6082 * ConditionSecurity= can now detect the TOMOYO security module.
67eb5b38
LP
6083
6084 * Unit file [Install] sections are now also respected in unit drop-in
89780840 6085 files. This is intended to be used by drop-ins under /usr/lib/.
67eb5b38 6086
89780840 6087 * systemd-firstboot may now also set the initial keyboard mapping.
67eb5b38 6088
89780840
ZJS
6089 * Udev "changed" events for devices which are exposed as systemd
6090 .device units are now propagated to units specified in
6091 ReloadPropagatedFrom= as reload requests.
67eb5b38 6092
89780840
ZJS
6093 * If a udev device has a SYSTEMD_WANTS= property containing a systemd
6094 unit template name (i.e. a name in the form of 'foobar@.service',
6095 without the instance component between the '@' and - the '.'), then
6096 the escaped sysfs path of the device is automatically used as the
6097 instance.
67eb5b38
LP
6098
6099 * SystemCallFilter= in unit files has been extended so that an "errno"
6100 can be specified individually for each system call. Example:
6101 SystemCallFilter=~uname:EILSEQ.
6102
6103 * The cgroup delegation logic has been substantially updated. Delegate=
6104 now optionally takes a list of controllers (instead of a boolean, as
6105 before), which lists the controllers to delegate at least.
6106
89780840 6107 * The networkd DHCPv6 client now implements the FQDN option (RFC 4704).
67eb5b38 6108
89780840
ZJS
6109 * A new LogLevelMax= setting configures the maximum log level any
6110 process of the service may log at (i.e. anything with a lesser
6111 priority than what is specified is automatically dropped). A new
6112 LogExtraFields= setting allows configuration of additional journal
6113 fields to attach to all log records generated by any of the unit's
6114 processes.
67eb5b38 6115
89780840
ZJS
6116 * New StandardInputData= and StandardInputText= settings along with the
6117 new option StandardInput=data may be used to configure textual or
6118 binary data that shall be passed to the executed service process via
6119 standard input, encoded in-line in the unit file.
67eb5b38
LP
6120
6121 * StandardInput=, StandardOutput= and StandardError= may now be used to
6122 connect stdin/stdout/stderr of executed processes directly with a
6123 file or AF_UNIX socket in the file system, using the new "file:" option.
6124
89780840
ZJS
6125 * A new unit file option CollectMode= has been added, that allows
6126 tweaking the garbage collection logic for units. It may be used to
6127 tell systemd to garbage collect units that have failed automatically
6128 (normally it only GCs units that exited successfully). systemd-run
6129 and systemd-mount expose this new functionality with a new -G option.
6130
67eb5b38
LP
6131 * "machinectl bind" may now be used to bind mount non-directories
6132 (i.e. regularfiles, devices, fifos, sockets).
6133
6134 * systemd-analyze gained a new verb "calendar" for validating and
6135 testing calendar time specifications to use for OnCalendar= in timer
6136 units. Besides validating the expression it will calculate the next
6137 time the specified expression would elapse.
6138
6139 * In addition to the pre-existing FailureAction= unit file setting
89780840
ZJS
6140 there's now SuccessAction=, for configuring a shutdown action to
6141 execute when a unit completes successfully. This is useful in
6142 particular inside containers that shall terminate after some workload
6143 has been completed. Also, both options are now supported for all unit
6144 types, not just services.
67eb5b38
LP
6145
6146 * networkds's IP rule support gained two new options
dd014eeb 6147 IncomingInterface= and OutgoingInterface= for configuring the incoming
67eb5b38
LP
6148 and outgoing interfaces of configured rules. systemd-networkd also
6149 gained support for "vxcan" network devices.
6150
6151 * networkd gained a new setting RequiredForOnline=, taking a
6152 boolean. If set, systemd-wait-online will take it into consideration
6153 when determining that the system is up, otherwise it will ignore the
6154 interface for this purpose.
6155
6156 * The sd_notify() protocol gained support for a new operation: with
6157 FDSTOREREMOVE=1 file descriptors may be removed from the per-service
6158 store again, ahead of POLLHUP or POLLERR when they are removed
6159 anyway.
6160
f09eb768
LP
6161 * A new document doc/UIDS-GIDS.md has been added to the source tree,
6162 that documents the UID/GID range and assignment assumptions and
3925496a
LP
6163 requirements of systemd.
6164
6165 * The watchdog device PID 1 will ping may now be configured through the
6166 WatchdogDevice= configuration file setting, or by setting the
6167 systemd.watchdog_service= kernel commandline option.
6168
6169 * systemd-resolved's gained support for registering DNS-SD services on
6170 the local network using MulticastDNS. Services may either be
6171 registered by dropping in a .dnssd file in /etc/systemd/dnssd/ (or
6172 the same dir below /run, /usr/lib), or through its D-Bus API.
6173
a327431b
DB
6174 * The sd_notify() protocol can now with EXTEND_TIMEOUT_USEC=microsecond
6175 extend the effective start, runtime, and stop time. The service must
6176 continue to send EXTEND_TIMEOUT_USEC within the period specified to
6177 prevent the service manager from making the service as timedout.
6178
ea2a3c9e
LP
6179 * systemd-resolved's DNSSEC support gained support for RFC 8080
6180 (Ed25519 keys and signatures).
6181
a1b2c92d
LP
6182 * The systemd-resolve command line tool gained a new set of options
6183 --set-dns=, --set-domain=, --set-llmnr=, --set-mdns=, --set-dnssec=,
6184 --set-nta= and --revert to configure per-interface DNS configuration
6185 dynamically during runtime. It's useful for pushing DNS information
6186 into systemd-resolved from DNS hook scripts that various interface
6187 managing software supports (such as pppd).
6188
6189 * systemd-nspawn gained a new --network-namespace-path= command line
6190 option, which may be used to make a container join an existing
6191 network namespace, by specifying a path to a "netns" file.
6192
3925496a
LP
6193 Contributions from: Alan Jenkins, Alan Robertson, Alessandro Ghedini,
6194 Andrew Jeddeloh, Antonio Rojas, Ari, asavah, bleep_blop, Carsten
6195 Strotmann, Christian Brauner, Christian Hesse, Clinton Roy, Collin
ea2a3c9e 6196 Eggert, Cong Wang, Daniel Black, Daniel Lockyer, Daniel Rusek, Dimitri
a1b2c92d
LP
6197 John Ledkov, Dmitry Rozhkov, Dongsu Park, Edward A. James, Evgeny
6198 Vereshchagin, Florian Klink, Franck Bui, Gwendal Grignou, Hans de
6199 Goede, Harald Hoyer, Hristo Venev, Iago López Galeiras, Ikey Doherty,
6200 Jakub Wilk, Jérémy Rosen, Jiahui Xie, John Lin, José Bollo, Josef
6201 Andersson, juga0, Krzysztof Nowicki, Kyle Walker, Lars Karlitski, Lars
6202 Kellogg-Stedman, Lauri Tirkkonen, Lennart Poettering, Lubomir Rintel,
6203 Luca Bruno, Lucas Werkmeister, Lukáš Nykrýn, Lukáš Říha, Lukasz
6204 Rubaszewski, Maciej S. Szmigiero, Mantas Mikulėnas, Marcus Folkesson,
6205 Martin Steuer, Mathieu Trudel-Lapierre, Matija Skala,
6206 Matthias-Christian Ott, Max Resch, Michael Biebl, Michael Vogt, Michal
6207 Koutný, Michal Sekletar, Mike Gilbert, Muhammet Kara, Neil Brown, Olaf
6208 Hering, Ondrej Kozina, Patrik Flykt, Patryk Kocielnik, Peter Hutterer,
6209 Piotr Drąg, Razvan Cojocaru, Robin McCorkell, Roland Hieber, Saran
6210 Tunyasuvunakool, Sergey Ptashnick, Shawn Landden, Shuang Liu, Simon
6211 Arlott, Simon Peeters, Stanislav Angelovič, Stefan Agner, Susant
6212 Sahani, Sylvain Plantefève, Thomas Blume, Thomas Haller, Tiago Salem
6213 Herrmann, Tinu Weber, Tom Stellard, Topi Miettinen, Torsten Hilbrich,
6214 Vito Caputo, Vladislav Vishnyakov, WaLyong Cho, Yu Watanabe, Zbigniew
6215 Jędrzejewski-Szmek, Zeal Jagannatha
67eb5b38 6216
ea2a3c9e 6217 — Berlin, 2017-12-14
3754abc5 6218
582faeb4
DJL
6219CHANGES WITH 235:
6220
2bcbffd6
LP
6221 * INCOMPATIBILITY: systemd-logind.service and other long-running
6222 services now run inside an IPv4/IPv6 sandbox, prohibiting them any IP
6223 communication with the outside. This generally improves security of
6224 the system, and is in almost all cases a safe and good choice, as
23d37367 6225 these services do not and should not provide any network-facing
2bcbffd6
LP
6226 functionality. However, systemd-logind uses the glibc NSS API to
6227 query the user database. This creates problems on systems where NSS
6228 is set up to directly consult network services for user database
6229 lookups. In particular, this creates incompatibilities with the
6230 "nss-nis" module, which attempts to directly contact the NIS/YP
6231 network servers it is configured for, and will now consistently
6232 fail. In such cases, it is possible to turn off IP sandboxing for
6233 systemd-logind.service (set IPAddressDeny= in its [Service] section
6234 to the empty string, via a .d/ unit file drop-in). Downstream
6235 distributions might want to update their nss-nis packaging to include
6236 such a drop-in snippet, accordingly, to hide this incompatibility
6237 from the user. Another option is to make use of glibc's nscd service
6238 to proxy such network requests through a privilege-separated, minimal
6239 local caching daemon, or to switch to more modern technologies such
6240 sssd, whose NSS hook-ups generally do not involve direct network
6241 access. In general, we think it's definitely time to question the
6242 implementation choices of nss-nis, i.e. whether it's a good idea
6243 today to embed a network-facing loadable module into all local
6244 processes that need to query the user database, including the most
6245 trivial and benign ones, such as "ls". For more details about
6246 IPAddressDeny= see below.
6247
fccf5419
LP
6248 * A new modprobe.d drop-in is now shipped by default that sets the
6249 bonding module option max_bonds=0. This overrides the kernel default,
6250 to avoid conflicts and ambiguity as to whether or not bond0 should be
6251 managed by systemd-networkd or not. This resolves multiple issues
6252 with bond0 properties not being applied, when bond0 is configured
6253 with systemd-networkd. Distributors may choose to not package this,
6254 however in that case users will be prevented from correctly managing
6255 bond0 interface using systemd-networkd.
582faeb4 6256
ef5a8cb1 6257 * systemd-analyze gained new verbs "get-log-level" and "get-log-target"
21723f53
ZJS
6258 which print the logging level and target of the system manager. They
6259 complement the existing "set-log-level" and "set-log-target" verbs
6260 used to change those values.
ef5a8cb1 6261
fccf5419
LP
6262 * journald.conf gained a new boolean setting ReadKMsg= which defaults
6263 to on. If turned off kernel log messages will not be read by
21723f53
ZJS
6264 systemd-journald or included in the logs. It also gained a new
6265 setting LineMax= for configuring the maximum line length in
6266 STDOUT/STDERR log streams. The new default for this value is 48K, up
6267 from the previous hardcoded 2048.
fccf5419 6268
21723f53
ZJS
6269 * A new unit setting RuntimeDirectoryPreserve= has been added, which
6270 allows more detailed control of what to do with a runtime directory
6271 configured with RuntimeDirectory= (i.e. a directory below /run or
6272 $XDG_RUNTIME_DIR) after a unit is stopped.
fccf5419
LP
6273
6274 * The RuntimeDirectory= setting for units gained support for creating
6275 deeper subdirectories below /run or $XDG_RUNTIME_DIR, instead of just
6276 one top-level directory.
6277
6278 * Units gained new options StateDirectory=, CacheDirectory=,
6279 LogsDirectory= and ConfigurationDirectory= which are closely related
6280 to RuntimeDirectory= but manage per-service directories below
21723f53 6281 /var/lib, /var/cache, /var/log and /etc. By making use of them it is
fccf5419
LP
6282 possible to write unit files which when activated automatically gain
6283 properly owned service specific directories in these locations, thus
6284 making unit files self-contained and increasing compatibility with
6285 stateless systems and factory reset where /etc or /var are
6286 unpopulated at boot. Matching these new settings there's also
6287 StateDirectoryMode=, CacheDirectoryMode=, LogsDirectoryMode=,
6288 ConfigurationDirectoryMode= for configuring the access mode of these
75dfbbac
LP
6289 directories. These settings are particularly useful in combination
6290 with DynamicUser=yes as they provide secure, properly-owned,
6291 writable, and stateful locations for storage, excluded from the
6292 sandbox that such services live in otherwise.
fccf5419
LP
6293
6294 * Automake support has been removed from this release. systemd is now
6295 Meson-only.
6296
6297 * systemd-journald will now aggressively cache client metadata during
6298 runtime, speeding up log write performance under pressure. This comes
6299 at a small price though: as much of the metadata is read
6300 asynchronously from /proc/ (and isn't implicitly attached to log
6301 datagrams by the kernel, like UID/GID/PID/SELinux are) this means the
6302 metadata stored alongside a log entry might be slightly
6303 out-of-date. Previously it could only be slightly newer than the log
6304 message. The time window is small however, and given that the kernel
6305 is unlikely to be improved anytime soon in this regard, this appears
6306 acceptable to us.
6307
6308 * nss-myhostname/systemd-resolved will now by default synthesize an
6309 A/AAAA resource record for the "_gateway" hostname, pointing to the
6310 current default IP gateway. Previously it did that for the "gateway"
6311 name, hampering adoption, as some distributions wanted to leave that
38b38500 6312 hostname open for local use. The old behaviour may still be
fccf5419
LP
6313 requested at build time.
6314
6315 * systemd-networkd's [Address] section in .network files gained a new
6316 Scope= setting for configuring the IP address scope. The [Network]
6317 section gained a new boolean setting ConfigureWithoutCarrier= that
6318 tells systemd-networkd to ignore link sensing when configuring the
6319 device. The [DHCP] section gained a new Anonymize= boolean option for
6320 turning on a number of options suggested in RFC 7844. A new
6321 [RoutingPolicyRule] section has been added for configuring the IP
6322 routing policy. The [Route] section has gained support for a new
6323 Type= setting which permits configuring
6324 blackhole/unreachable/prohibit routes.
6325
6326 * The [VRF] section in .netdev files gained a new Table= setting for
6327 configuring the routing table to use. The [Tunnel] section gained a
6328 new Independent= boolean field for configuring tunnels independent of
6329 an underlying network interface. The [Bridge] section gained a new
6330 GroupForwardMask= option for configuration of propagation of link
6331 local frames between bridge ports.
6332
6333 * The WakeOnLan= setting in .link files gained support for a number of
6334 new modes. A new TCP6SegmentationOffload= setting has been added for
6335 configuring TCP/IPv6 hardware segmentation offload.
6336
6337 * The IPv6 RA sender implementation may now optionally send out RDNSS
21723f53 6338 and RDNSSL records to supply DNS configuration to peers.
fccf5419
LP
6339
6340 * systemd-nspawn gained support for a new --system-call-filter= command
21723f53
ZJS
6341 line option for adding and removing entries in the default system
6342 call filter it applies. Moreover systemd-nspawn has been changed to
6b000af4 6343 implement a system call allow list instead of a deny list.
fccf5419
LP
6344
6345 * systemd-run gained support for a new --pipe command line option. If
6346 used the STDIN/STDOUT/STDERR file descriptors passed to systemd-run
6347 are directly passed on to the activated transient service
21723f53
ZJS
6348 executable. This allows invoking arbitrary processes as systemd
6349 services (for example to take benefit of dependency management,
6350 accounting management, resource management or log management that is
6351 done automatically for services) — while still allowing them to be
fccf5419
LP
6352 integrated in a classic UNIX shell pipeline.
6353
6354 * When a service sends RELOAD=1 via sd_notify() and reload propagation
6355 using ReloadPropagationTo= is configured, a reload is now propagated
6356 to configured units. (Previously this was only done on explicitly
6357 requested reloads, using "systemctl reload" or an equivalent
6358 command.)
6359
6360 * For each service unit a restart counter is now kept: it is increased
6361 each time the service is restarted due to Restart=, and may be
6362 queried using "systemctl show -p NRestarts …".
6363
44898c53
LP
6364 * New system call filter groups @aio, @sync, @chown, @setuid, @memlock,
6365 @signal and @timer have been added, for usage with SystemCallFilter=
fccf5419
LP
6366 in unit files and the new --system-call-filter= command line option
6367 of systemd-nspawn (see above).
6368
6369 * ExecStart= lines in unit files gained two new modifiers: when a
6370 command line is prefixed with "!" the command will be executed as
6371 configured, except for the credentials applied by
6372 setuid()/setgid()/setgroups(). It is very similar to the pre-existing
6373 "+", but does still apply namespacing options unlike "+". There's
6374 also "!!" now, which is mostly identical, but becomes a NOP on
6375 systems that support ambient capabilities. This is useful to write
6376 unit files that work with ambient capabilities where possible but
6377 automatically fall back to traditional privilege dropping mechanisms
6378 on systems where this is not supported.
6379
6380 * ListenNetlink= settings in socket units now support RDMA netlink
6381 sockets.
6382
6383 * A new unit file setting LockPersonality= has been added which permits
6384 locking down the chosen execution domain ("personality") of a service
6385 during runtime.
6386
6387 * A new special target "getty-pre.target" has been added, which is
6388 ordered before all text logins, and may be used to order services
21723f53 6389 before textual logins acquire access to the console.
fccf5419
LP
6390
6391 * systemd will now attempt to load the virtio-rng.ko kernel module very
6392 early on if a VM environment supporting this is detected. This should
6393 improve entropy during early boot in virtualized environments.
6394
6395 * A _netdev option is now supported in /etc/crypttab that operates in a
6396 similar way as the same option in /etc/fstab: it permits configuring
21723f53
ZJS
6397 encrypted devices that need to be ordered after the network is up.
6398 Following this logic, two new special targets
fccf5419 6399 remote-cryptsetup-pre.target and remote-cryptsetup.target have been
21723f53
ZJS
6400 added that are to cryptsetup.target what remote-fs.target and
6401 remote-fs-pre.target are to local-fs.target.
fccf5419
LP
6402
6403 * Service units gained a new UnsetEnvironment= setting which permits
21723f53
ZJS
6404 unsetting specific environment variables for services that are
6405 normally passed to it (for example in order to mask out locale
fccf5419
LP
6406 settings for specific services that can't deal with it).
6407
6408 * Units acquired a new boolean option IPAccounting=. When turned on, IP
6409 traffic accounting (packet count as well as byte count) is done for
6410 the service, and shown as part of "systemctl status" or "systemd-run
6411 --wait".
6412
6413 * Service units acquired two new options IPAddressAllow= and
6414 IPAddressDeny=, taking a list of IPv4 or IPv6 addresses and masks,
6415 for configuring a simple IP access control list for all sockets of
6416 the unit. These options are available also on .slice and .socket
6417 units, permitting flexible access list configuration for individual
6418 services as well as groups of services (as defined by a slice unit),
6419 including system-wide. Note that IP ACLs configured this way are
6420 enforced on every single IPv4 and IPv6 socket created by any process
6421 of the service unit, and apply to ingress as well as egress traffic.
6422
21723f53 6423 * If CPUAccounting= or IPAccounting= is turned on for a unit a new
608f70e6 6424 structured log message is generated each time the unit is stopped,
fccf5419
LP
6425 containing information about the consumed resources of this
6426 invocation.
6427
6428 * A new setting KeyringMode= has been added to unit files, which may be
6429 used to control how the kernel keyring is set up for executed
6430 processes.
6431
e06fafb2
LP
6432 * "systemctl poweroff", "systemctl reboot", "systemctl halt",
6433 "systemctl kexec" and "systemctl exit" are now always asynchronous in
6434 behaviour (that is: these commands return immediately after the
21723f53
ZJS
6435 operation was enqueued instead of waiting for the operation to
6436 complete). Previously, "systemctl poweroff" and "systemctl reboot"
e06fafb2
LP
6437 were asynchronous on systems using systemd-logind (i.e. almost
6438 always, and like they were on sysvinit), and the other three commands
6439 were unconditionally synchronous. With this release this is cleaned
6440 up, and callers will see the same asynchronous behaviour on all
6441 systems for all five operations.
6442
6443 * systemd-logind gained new Halt() and CanHalt() bus calls for halting
6444 the system.
6445
fccf5419
LP
6446 * .timer units now accept calendar specifications in other timezones
6447 than UTC or the local timezone.
6448
f6e64b78 6449 * The tmpfiles snippet var.conf has been changed to create
21723f53
ZJS
6450 /var/log/btmp with access mode 0660 instead of 0600. It was owned by
6451 the "utmp" group already, and it appears to be generally understood
6452 that members of "utmp" can modify/flush the utmp/wtmp/lastlog/btmp
6453 databases. Previously this was implemented correctly for all these
6454 databases excepts btmp, which has been opened up like this now
6455 too. Note that while the other databases are world-readable
6456 (i.e. 0644), btmp is not and remains more restrictive.
f6e64b78 6457
d55b0463
LP
6458 * The systemd-resolve tool gained a new --reset-server-features
6459 switch. When invoked like this systemd-resolved will forget
6460 everything it learnt about the features supported by the configured
6461 upstream DNS servers, and restarts the feature probing logic on the
cf84484a
LP
6462 next resolver look-up for them at the highest feature level
6463 again.
6464
6465 * The status dump systemd-resolved sends to the logs upon receiving
6466 SIGUSR1 now also includes information about all DNS servers it is
6467 configured to use, and the features levels it probed for them.
d55b0463 6468
fccf5419
LP
6469 Contributions from: Abdó Roig-Maranges, Alan Jenkins, Alexander
6470 Kuleshov, Andreas Rammhold, Andrew Jeddeloh, Andrew Soutar, Ansgar
76451c1d
LP
6471 Burchardt, Beniamino Galvani, Benjamin Berg, Benjamin Robin, Charles
6472 Huber, Christian Hesse, Daniel Berrange, Daniel Kahn Gillmor, Daniel
6473 Mack, Daniel Rusek, Daniel Șerbănescu, Davide Cavalca, Dimitri John
6474 Ledkov, Diogo Pereira, Djalal Harouni, Dmitriy Geels, Dmitry Torokhov,
6475 ettavolt, Evgeny Vereshchagin, Fabio Kung, Felipe Sateler, Franck Bui,
6476 Hans de Goede, Harald Hoyer, Insun Pyo, Ivan Kurnosov, Ivan Shapovalov,
6477 Jakub Wilk, Jan Synacek, Jason Gunthorpe, Jeremy Bicha, Jérémy Rosen,
6478 John Lin, jonasBoss, Jonathan Lebon, Jonathan Teh, Jon Ringle, Jörg
6479 Thalheim, Jouke Witteveen, juga0, Justin Capella, Justin Michaud,
6480 Kai-Heng Feng, Lennart Poettering, Lion Yang, Luca Bruno, Lucas
6481 Werkmeister, Lukáš Nykrýn, Marcel Hollerbach, Marcus Lundblad, Martin
6482 Pitt, Michael Biebl, Michael Grzeschik, Michal Sekletar, Mike Gilbert,
6483 Neil Brown, Nicolas Iooss, Patrik Flykt, pEJipE, Piotr Drąg, Russell
6484 Stuart, S. Fan, Shengyao Xue, Stefan Pietsch, Susant Sahani, Tejun Heo,
6485 Thomas Miller, Thomas Sailer, Tobias Hunger, Tomasz Pala, Tom
6486 Gundersen, Tommi Rantala, Topi Miettinen, Torstein Husebø, userwithuid,
6487 Vasilis Liaskovitis, Vito Caputo, WaLyong Cho, William Douglas, Xiang
6488 Fan, Yu Watanabe, Zbigniew Jędrzejewski-Szmek
fccf5419 6489
c1719d8b 6490 — Berlin, 2017-10-06
fccf5419 6491
4b4da299
LP
6492CHANGES WITH 234:
6493
6494 * Meson is now supported as build system in addition to Automake. It is
6495 our plan to remove Automake in one of our next releases, so that
6496 Meson becomes our exclusive build system. Hence, please start using
6497 the Meson build system in your downstream packaging. There's plenty
6498 of documentation around how to use Meson, the extremely brief
6499 summary:
6500
6501 ./autogen.sh && ./configure && make && sudo make install
6502
6503 becomes:
6504
6505 meson build && ninja -C build && sudo ninja -C build install
6506
6507 * Unit files gained support for a new JobRunningTimeoutUSec= setting,
6508 which permits configuring a timeout on the time a job is
6509 running. This is particularly useful for setting timeouts on jobs for
6510 .device units.
6511
6512 * Unit files gained two new options ConditionUser= and ConditionGroup=
6513 for conditionalizing units based on the identity of the user/group
6514 running a systemd user instance.
6515
6516 * systemd-networkd now understands a new FlowLabel= setting in the
6517 [VXLAN] section of .network files, as well as a Priority= in
6518 [Bridge], GVRP= + MVRP= + LooseBinding= + ReorderHeader= in [VLAN]
6519 and GatewayOnlink= + IPv6Preference= + Protocol= in [Route]. It also
6520 gained support for configuration of GENEVE links, and IPv6 address
6521 labels. The [Network] section gained the new IPv6ProxyNDP= setting.
6522
9f09a95a 6523 * .link files now understand a new Port= setting.
4b4da299
LP
6524
6525 * systemd-networkd's DHCP support gained support for DHCP option 119
6526 (domain search list).
6527
6528 * systemd-networkd gained support for serving IPv6 address ranges using
bc99dac5 6529 the Router Advertisement protocol. The new .network configuration
4b4da299
LP
6530 section [IPv6Prefix] may be used to configure the ranges to
6531 serve. This is implemented based on a new, minimal, native server
6532 implementation of RA.
6533
6534 * journalctl's --output= switch gained support for a new parameter
6535 "short-iso-precise" for a mode where timestamps are shown as precise
6536 ISO date values.
6537
6538 * systemd-udevd's "net_id" builtin may now generate stable network
6539 interface names from IBM PowerVM VIO devices as well as ACPI platform
6540 devices.
6541
6542 * MulticastDNS support in systemd-resolved may now be explicitly
6543 enabled/disabled using the new MulticastDNS= configuration file
6544 option.
6545
6546 * systemd-resolved may now optionally use libidn2 instead of the libidn
7f7ab228
ZJS
6547 for processing internationalized domain names. Support for libidn2
6548 should be considered experimental and should not be enabled by
6549 default yet.
4b4da299
LP
6550
6551 * "machinectl pull-tar" and related call may now do verification of
6552 downloaded images using SUSE-style .sha256 checksum files in addition
6553 to the already existing support for validating using Ubuntu-style
6554 SHA256SUMS files.
6555
6556 * sd-bus gained support for a new sd_bus_message_appendv() call which
6557 is va_list equivalent of sd_bus_message_append().
6558
6559 * sd-boot gained support for validating images using SHIM/MOK.
6560
6561 * The SMACK code learnt support for "onlycap".
6562
6563 * systemd-mount --umount is now much smarter in figuring out how to
6564 properly unmount a device given its mount or device path.
5486a31d
ZJS
6565
6566 * The code to call libnss_dns as a fallback from libnss_resolve when
6567 the communication with systemd-resolved fails was removed. This
6568 fallback was redundant and interfered with the [!UNAVAIL=return]
6569 suffix. See nss-resolve(8) for the recommended configuration.
6570
9f09a95a
ZJS
6571 * systemd-logind may now be restarted without losing state. It stores
6572 the file descriptors for devices it manages in the system manager
38d93385 6573 using the FDSTORE= mechanism. Please note that further changes in
9f09a95a
ZJS
6574 other components may be required to make use of this (for example
6575 Xorg has code to listen for stops of systemd-logind and terminate
6576 itself when logind is stopped or restarted, in order to avoid using
6577 stale file descriptors for graphical devices, which is now
6578 counterproductive and must be reverted in order for restarts of
6579 systemd-logind to be safe. See
6580 https://cgit.freedesktop.org/xorg/xserver/commit/?id=dc48bd653c7e101.)
6581
d271c5d3 6582 * All kernel-install plugins are called with the environment variable
9d8813b3 6583 KERNEL_INSTALL_MACHINE_ID which is set to the machine ID given by
d271c5d3
ZJS
6584 /etc/machine-id. If the machine ID could not be determined,
6585 $KERNEL_INSTALL_MACHINE_ID will be empty. Plugins should not put
6586 anything in the entry directory (passed as the second argument) if
5238e957 6587 $KERNEL_INSTALL_MACHINE_ID is empty. For backwards compatibility, a
d271c5d3
ZJS
6588 temporary directory is passed as the entry directory and removed
6589 after all the plugins exit.
9d8813b3 6590
357376d0
DDM
6591 * If KERNEL_INSTALL_MACHINE_ID is set in /etc/machine-info, kernel-install
6592 will now use its value as the machine ID instead of the machine ID
6593 from /etc/machine-id. If KERNEL_INSTALL_MACHINE_ID isn't set in
6594 /etc/machine-info and no machine ID is set in /etc/machine-id,
6595 kernel-install will try to store the current machine ID there as
6596 KERNEL_INSTALL_MACHINE_ID. If there is no machine ID, kernel-install
6597 will generate a new UUID, store it in /etc/machine-info as
6598 KERNEL_INSTALL_MACHINE_ID and use it as the machine ID.
6599
184d2c15 6600 Contributions from: Adrian Heine né Lang, Aggelos Avgerinos, Alexander
ac172e52
LP
6601 Kurtz, Alexandros Frantzis, Alexey Brodkin, Alex Lu, Amir Pakdel, Amir
6602 Yalon, Anchor Cat, Anthony Parsons, Bastien Nocera, Benjamin Gilbert,
6603 Benjamin Robin, Boucman, Charles Plessy, Chris Chiu, Chris Lamb,
6604 Christian Brauner, Christian Hesse, Colin Walters, Daniel Drake,
184d2c15
LP
6605 Danielle Church, Daniel Molkentin, Daniel Rusek, Daniel Wang, Davide
6606 Cavalca, David Herrmann, David Michael, Dax Kelson, Dimitri John
6607 Ledkov, Djalal Harouni, Dušan Kazik, Elias Probst, Evgeny Vereshchagin,
6608 Federico Di Pierro, Felipe Sateler, Felix Zhang, Franck Bui, Gary
ac172e52
LP
6609 Tierney, George McCollister, Giedrius Statkevičius, Hans de Goede,
6610 hecke, Hendrik Westerberg, Hristo Venev, Ian Wienand, Insun Pyo, Ivan
6611 Shapovalov, James Cowgill, James Hemsing, Janne Heß, Jan Synacek, Jason
6612 Reeder, João Paulo Rechi Vita, John Paul Adrian Glaubitz, Jörg
6613 Thalheim, Josef Andersson, Josef Gajdusek, Julian Mehne, Kai Krakow,
6614 Krzysztof Jackiewicz, Lars Karlitski, Lennart Poettering, Lluís Gili,
6615 Lucas Werkmeister, Lukáš Nykrýn, Łukasz Stelmach, Mantas Mikulėnas,
6616 Marcin Bachry, Marcus Cooper, Mark Stosberg, Martin Pitt, Matija Skala,
6617 Matt Clarkson, Matthew Garrett, Matthias Greiner, Matthijs van Duin,
6618 Max Resch, Michael Biebl, Michal Koutný, Michal Sekletar, Michal
6619 Soltys, Michal Suchanek, Mike Gilbert, Nate Clark, Nathaniel R. Lewis,
6620 Neil Brown, Nikolai Kondrashov, Pascal S. de Kloe, Pat Riehecky, Patrik
6621 Flykt, Paul Kocialkowski, Peter Hutterer, Philip Withnall, Piotr
6622 Szydełko, Rafael Fontenelle, Ray Strode, Richard Maw, Roelf Wichertjes,
6623 Ronny Chevalier, Sarang S. Dalal, Sjoerd Simons, slodki, Stefan
6624 Schweter, Susant Sahani, Ted Wood, Thomas Blume, Thomas Haller, Thomas
184d2c15
LP
6625 H. P. Andersen, Timothée Ravier, Tobias Jungel, Tobias Stoeckmann, Tom
6626 Gundersen, Tom Yan, Torstein Husebø, Umut Tezduyar Lindskog,
ac172e52
LP
6627 userwithuid, Vito Caputo, Waldemar Brodkorb, WaLyong Cho, Yu, Li-Yu,
6628 Yusuke Nojima, Yu Watanabe, Zbigniew Jędrzejewski-Szmek, Дамјан
6629 Георгиевски
4b4da299 6630
ac172e52 6631 — Berlin, 2017-07-12
4b4da299 6632
a2b53448 6633CHANGES WITH 233:
d08ee7cb 6634
23eb30b3
ZJS
6635 * The "hybrid" control group mode has been modified to improve
6636 compatibility with "legacy" cgroups-v1 setups. Specifically, the
6637 "hybrid" setup of /sys/fs/cgroup is now pretty much identical to
6638 "legacy" (including /sys/fs/cgroup/systemd as "name=systemd" named
6639 cgroups-v1 hierarchy), the only externally visible change being that
6640 the cgroups-v2 hierarchy is also mounted, to
6641 /sys/fs/cgroup/unified. This should provide a large degree of
6642 compatibility with "legacy" cgroups-v1, while taking benefit of the
6643 better management capabilities of cgroups-v2.
6644
6645 * The default control group setup mode may be selected both a boot-time
6646 via a set of kernel command line parameters (specifically:
6647 systemd.unified_cgroup_hierarchy= and
6648 systemd.legacy_systemd_cgroup_controller=), as well as a compile-time
6649 default selected on the configure command line
6650 (--with-default-hierarchy=). The upstream default is "hybrid"
6651 (i.e. the cgroups-v1 + cgroups-v2 mixture discussed above) now, but
6652 this will change in a future systemd version to be "unified" (pure
6653 cgroups-v2 mode). The third option for the compile time option is
6654 "legacy", to enter pure cgroups-v1 mode. We recommend downstream
6655 distributions to default to "hybrid" mode for release distributions,
6656 starting with v233. We recommend "unified" for development
6657 distributions (specifically: distributions such as Fedora's rawhide)
6658 as that's where things are headed in the long run. Use "legacy" for
6659 greatest stability and compatibility only.
6660
6661 * Note one current limitation of "unified" and "hybrid" control group
6662 setup modes: the kernel currently does not permit the systemd --user
6663 instance (i.e. unprivileged code) to migrate processes between two
6664 disconnected cgroup subtrees, even if both are managed and owned by
6665 the user. This effectively means "systemd-run --user --scope" doesn't
6666 work when invoked from outside of any "systemd --user" service or
6667 scope. Specifically, it is not supported from session scopes. We are
6668 working on fixing this in a future systemd version. (See #3388 for
6669 further details about this.)
6670
fb7c4eff
MG
6671 * DBus policy files are now installed into /usr rather than /etc. Make
6672 sure your system has dbus >= 1.9.18 running before upgrading to this
6673 version, or override the install path with --with-dbuspolicydir= .
6674
23eb30b3
ZJS
6675 * All python scripts shipped with systemd (specifically: the various
6676 tests written in Python) now require Python 3.
6677
d60c5270 6678 * systemd unit tests can now run standalone (without the source or
4dfe64f8
ZJS
6679 build directories), and can be installed into /usr/lib/systemd/tests/
6680 with 'make install-tests'.
6681
23eb30b3
ZJS
6682 * Note that from this version on, CONFIG_CRYPTO_USER_API_HASH,
6683 CONFIG_CRYPTO_HMAC and CONFIG_CRYPTO_SHA256 need to be enabled in the
6684 kernel.
6685
6686 * Support for the %c, %r, %R specifiers in unit files has been
6687 removed. Specifiers are not supposed to be dependent on configuration
6688 in the unit file itself (so that they resolve the same regardless
6689 where used in the unit files), but these specifiers were influenced
6690 by the Slice= option.
6691
5cfc0a84
LP
6692 * The shell invoked by debug-shell.service now defaults to /bin/sh in
6693 all cases. If distributions want to use a different shell for this
6694 purpose (for example Fedora's /sbin/sushell) they need to specify
6695 this explicitly at configure time using --with-debug-shell=.
6696
2bcc3309
FB
6697 * The confirmation spawn prompt has been reworked to offer the
6698 following choices:
6699
b0eb2944 6700 (c)ontinue, proceed without asking anymore
dd6f9ac0 6701 (D)ump, show the state of the unit
2bcc3309 6702 (f)ail, don't execute the command and pretend it failed
d172b175 6703 (h)elp
eedf223a 6704 (i)nfo, show a short summary of the unit
56fde33a 6705 (j)obs, show jobs that are in progress
2bcc3309
FB
6706 (s)kip, don't execute the command and pretend it succeeded
6707 (y)es, execute the command
6708
6709 The 'n' choice for the confirmation spawn prompt has been removed,
6710 because its meaning was confusing.
6711
d08ee7cb
LP
6712 The prompt may now also be redirected to an alternative console by
6713 specifying the console as parameter to systemd.confirm_spawn=.
6714
8e458bfe
JW
6715 * Services of Type=notify require a READY=1 notification to be sent
6716 during startup. If no such message is sent, the service now fails,
6717 even if the main process exited with a successful exit code.
6718
85266f9b
LP
6719 * Services that fail to start up correctly now always have their
6720 ExecStopPost= commands executed. Previously, they'd enter "failed"
6721 state directly, without executing these commands.
6722
baf32786
MP
6723 * The option MulticastDNS= of network configuration files has acquired
6724 an actual implementation. With MulticastDNS=yes a host can resolve
23eb30b3 6725 names of remote hosts and reply to mDNS A and AAAA requests.
fa8b4499 6726
631b676b
LP
6727 * When units are about to be started an additional check is now done to
6728 ensure that all dependencies of type BindsTo= (when used in
6729 combination with After=) have been started.
6730
d08ee7cb
LP
6731 * systemd-analyze gained a new verb "syscall-filter" which shows which
6732 system call groups are defined for the SystemCallFilter= unit file
23eb30b3 6733 setting, and which system calls they contain.
d08ee7cb
LP
6734
6735 * A new system call filter group "@filesystem" has been added,
23eb30b3 6736 consisting of various file system related system calls. Group
d08ee7cb 6737 "@reboot" has been added, covering reboot, kexec and shutdown related
23eb30b3 6738 calls. Finally, group "@swap" has been added covering swap
d08ee7cb
LP
6739 configuration related calls.
6740
6741 * A new unit file option RestrictNamespaces= has been added that may be
6742 used to restrict access to the various process namespace types the
6743 Linux kernel provides. Specifically, it may be used to take away the
23eb30b3
ZJS
6744 right for a service unit to create additional file system, network,
6745 user, and other namespaces. This sandboxing option is particularly
6746 relevant due to the high amount of recently discovered namespacing
6747 related vulnerabilities in the kernel.
d08ee7cb 6748
23eb30b3
ZJS
6749 * systemd-udev's .link files gained support for a new AutoNegotiation=
6750 setting for configuring Ethernet auto-negotiation.
d08ee7cb
LP
6751
6752 * systemd-networkd's .network files gained support for a new
6753 ListenPort= setting in the [DHCP] section to explicitly configure the
6754 UDP client port the DHCP client shall listen on.
6755
23eb30b3
ZJS
6756 * .network files gained a new Unmanaged= boolean setting for explicitly
6757 excluding one or more interfaces from management by systemd-networkd.
6758
6759 * The systemd-networkd ProxyARP= option has been renamed to
6760 IPV4ProxyARP=. Similarly, VXLAN-specific option ARPProxy= has been
6761 renamed to ReduceARPProxy=. The old names continue to be available
6762 for compatibility.
6763
6764 * systemd-networkd gained support for configuring IPv6 Proxy NDP
6765 addresses via the new IPv6ProxyNDPAddress= .network file setting.
6766
6767 * systemd-networkd's bonding device support gained support for two new
6768 configuration options ActiveSlave= and PrimarySlave=.
6769
6770 * The various options in the [Match] section of .network files gained
6771 support for negative matching.
6772
d08ee7cb
LP
6773 * New systemd-specific mount options are now understood in /etc/fstab:
6774
6775 x-systemd.mount-timeout= may be used to configure the maximum
6776 permitted runtime of the mount command.
6777
6778 x-systemd.device-bound may be set to bind a mount point to its
6779 backing device unit, in order to automatically remove a mount point
6780 if its backing device is unplugged. This option may also be
6781 configured through the new SYSTEMD_MOUNT_DEVICE_BOUND udev property
6782 on the block device, which is now automatically set for all CDROM
6783 drives, so that mounted CDs are automatically unmounted when they are
6784 removed from the drive.
6785
23eb30b3
ZJS
6786 x-systemd.after= and x-systemd.before= may be used to explicitly
6787 order a mount after or before another unit or mount point.
d08ee7cb
LP
6788
6789 * Enqueued start jobs for device units are now automatically garbage
6790 collected if there are no jobs waiting for them anymore.
6791
23eb30b3
ZJS
6792 * systemctl list-jobs gained two new switches: with --after, for every
6793 queued job the jobs it's waiting for are shown; with --before the
6794 jobs which it's blocking are shown.
d08ee7cb
LP
6795
6796 * systemd-nspawn gained support for ephemeral boots from disk images
6797 (or in other words: --ephemeral and --image= may now be
6798 combined). Moreover, ephemeral boots are now supported for normal
6799 directories, even if the backing file system is not btrfs. Of course,
baf32786
MP
6800 if the file system does not support file system snapshots or
6801 reflinks, the initial copy operation will be relatively expensive, but
6802 this should still be suitable for many use cases.
d08ee7cb
LP
6803
6804 * Calendar time specifications in .timer units now support
6805 specifications relative to the end of a month by using "~" instead of
6806 "-" as separator between month and day. For example, "*-02~03" means
23eb30b3 6807 "the third last day in February". In addition a new syntax for
d08ee7cb
LP
6808 repeated events has been added using the "/" character. For example,
6809 "9..17/2:00" means "every two hours from 9am to 5pm".
6810
6811 * systemd-socket-proxyd gained a new parameter --connections-max= for
6812 configuring the maximum number of concurrent connections.
6813
23eb30b3
ZJS
6814 * sd-id128 gained a new API for generating unique IDs for the host in a
6815 way that does not leak the machine ID. Specifically,
d08ee7cb 6816 sd_id128_get_machine_app_specific() derives an ID based on the
387f6955 6817 machine ID in a well-defined, non-reversible, stable way. This is
d08ee7cb
LP
6818 useful whenever an identifier for the host is needed but where the
6819 identifier shall not be useful to identify the system beyond the
6820 scope of the application itself. (Internally this uses HMAC-SHA256 as
6821 keyed hash function using the machine ID as input.)
6822
6823 * NotifyAccess= gained a new supported value "exec". When set
6824 notifications are accepted from all processes systemd itself invoked,
6825 including all control processes.
6826
6827 * .nspawn files gained support for defining overlay mounts using the
6828 Overlay= and OverlayReadOnly= options. Previously this functionality
6829 was only available on the systemd-nspawn command line.
6830
6831 * systemd-nspawn's --bind= and --overlay= options gained support for
6832 bind/overlay mounts whose source lies within the container tree by
6833 prefixing the source path with "+".
6834
6835 * systemd-nspawn's --bind= and --overlay= options gained support for
6836 automatically allocating a temporary source directory in /var/tmp
6837 that is removed when the container dies. Specifically, if the source
6838 directory is specified as empty string this mechanism is selected. An
6839 example usage is --overlay=+/var::/var, which creates an overlay
86b52a39 6840 mount based on the original /var contained in the image, overlaid
d08ee7cb
LP
6841 with a temporary directory in the host's /var/tmp. This way changes
6842 to /var are automatically flushed when the container shuts down.
6843
baf32786
MP
6844 * systemd-nspawn --image= option does now permit raw file system block
6845 devices (in addition to images containing partition tables, as
6846 before).
d08ee7cb
LP
6847
6848 * The disk image dissection logic in systemd-nspawn gained support for
6849 automatically setting up LUKS encrypted as well as Verity protected
6850 partitions. When a container is booted from an encrypted image the
6851 passphrase is queried at start-up time. When a container with Verity
6852 data is started, the root hash is search in a ".roothash" file
6853 accompanying the disk image (alternatively, pass the root hash via
6854 the new --root-hash= command line option).
6855
6856 * A new tool /usr/lib/systemd/systemd-dissect has been added that may
6857 be used to dissect disk images the same way as systemd-nspawn does
6858 it, following the Bootable Partition Specification. It may even be
6859 used to mount disk images with complex partition setups (including
6860 LUKS and Verity partitions) to a local host directory, in order to
6861 inspect them. This tool is not considered public API (yet), and is
6862 thus not installed into /usr/bin. Please do not rely on its
3b31c466 6863 existence, since it might go away or be changed in later systemd
d08ee7cb
LP
6864 versions.
6865
6866 * A new generator "systemd-verity-generator" has been added, similar in
baf32786 6867 style to "systemd-cryptsetup-generator", permitting automatic setup of
d08ee7cb
LP
6868 Verity root partitions when systemd boots up. In order to make use of
6869 this your partition setup should follow the Discoverable Partitions
6870 Specification, and the GPT partition ID of the root file system
6871 partition should be identical to the upper 128bit of the Verity root
6872 hash. The GPT partition ID of the Verity partition protecting it
6873 should be the lower 128bit of the Verity root hash. If the partition
6874 image follows this model it is sufficient to specify a single
6875 "roothash=" kernel command line argument to both configure which root
6876 image and verity partition to use as well as the root hash for
6877 it. Note that systemd-nspawn's Verity support follows the same
6878 semantics, meaning that disk images with proper Verity data in place
6879 may be booted in containers with systemd-nspawn as well as on
6880 physical systems via the verity generator. Also note that the "mkosi"
6881 tool available at https://github.com/systemd/mkosi has been updated
6882 to generate Verity protected disk images following this scheme. In
6883 fact, it has been updated to generate disk images that optionally
6884 implement a complete UEFI SecureBoot trust chain, involving a signed
6885 kernel and initrd image that incorporates such a root hash as well as
6886 a Verity-enabled root partition.
6887
d08ee7cb
LP
6888 * The hardware database (hwdb) udev supports has been updated to carry
6889 accelerometer quirks.
6890
6891 * All system services are now run with a fresh kernel keyring set up
6892 for them. The invocation ID is stored by default in it, thus
6893 providing a safe, non-overridable way to determine the invocation
6894 ID of each service.
6895
6896 * Service unit files gained new BindPaths= and BindReadOnlyPaths=
6897 options for bind mounting arbitrary paths in a service-specific
6898 way. When these options are used, arbitrary host or service files and
6899 directories may be mounted to arbitrary locations in the service's
6900 view.
6901
6902 * Documentation has been added that lists all of systemd's low-level
6903 environment variables:
6904
a8a27374 6905 https://github.com/systemd/systemd/blob/master/docs/ENVIRONMENT.md
d08ee7cb
LP
6906
6907 * sd-daemon gained a new API sd_is_socket_sockaddr() for determining
6908 whether a specific socket file descriptor matches a specified socket
6909 address.
6910
6911 * systemd-firstboot has been updated to check for the
6912 systemd.firstboot= kernel command line option. It accepts a boolean
6913 and when set to false the first boot questions are skipped.
6914
d08ee7cb 6915 * systemd-fstab-generator has been updated to check for the
23eb30b3
ZJS
6916 systemd.volatile= kernel command line option, which either takes an
6917 optional boolean parameter or the special value "state". If used the
6918 system may be booted in a "volatile" boot mode. Specifically,
6919 "systemd.volatile" is used, the root directory will be mounted as
d08ee7cb 6920 tmpfs, and only /usr is mounted from the actual root file system. If
23eb30b3
ZJS
6921 "systemd.volatile=state" is used, the root directory will be mounted
6922 as usual, but /var is mounted as tmpfs. This concept provides similar
d08ee7cb
LP
6923 functionality as systemd-nspawn's --volatile= option, but provides it
6924 on physical boots. Use this option for implementing stateless
6925 systems, or testing systems with all state and/or configuration reset
6926 to the defaults. (Note though that many distributions are not
23eb30b3 6927 prepared to boot up without a populated /etc or /var, though.)
d08ee7cb
LP
6928
6929 * systemd-gpt-auto-generator gained support for LUKS encrypted root
6930 partitions. Previously it only supported LUKS encrypted partitions
6931 for all other uses, except for the root partition itself.
6932
6933 * Socket units gained support for listening on AF_VSOCK sockets for
6934 communication in virtualized QEMU environments.
6935
6936 * The "configure" script gained a new option --with-fallback-hostname=
6937 for specifying the fallback hostname to use if none is configured in
6938 /etc/hostname. For example, by specifying
6939 --with-fallback-hostname=fedora it is possible to default to a
23eb30b3 6940 hostname of "fedora" on pristine installations.
d08ee7cb
LP
6941
6942 * systemd-cgls gained support for a new --unit= switch for listing only
6943 the control groups of a specific unit. Similar --user-unit= has been
6944 added for listing only the control groups of a specific user unit.
6945
6946 * systemd-mount gained a new --umount switch for unmounting a mount or
6947 automount point (and all mount/automount points below it).
6948
6949 * systemd will now refuse full configuration reloads (via systemctl
6950 daemon-reload and related calls) unless at least 16MiB of free space
6951 are available in /run. This is a safety precaution in order to ensure
6952 that generators can safely operate after the reload completed.
6953
6954 * A new unit file option RootImage= has been added, which has a similar
6955 effect as RootDirectory= but mounts the service's root directory from
6956 a disk image instead of plain directory. This logic reuses the same
6957 image dissection and mount logic that systemd-nspawn already uses,
6958 and hence supports any disk images systemd-nspawn supports, including
6959 those following the Discoverable Partition Specification, as well as
6960 Verity enabled images. This option enables systemd to run system
6961 services directly off disk images acting as resource bundles,
6962 possibly even including full integrity data.
6963
6964 * A new MountAPIVFS= unit file option has been added, taking a boolean
baf32786 6965 argument. If enabled /proc, /sys and /dev (collectively called the
d08ee7cb
LP
6966 "API VFS") will be mounted for the service. This is only relevant if
6967 RootDirectory= or RootImage= is used for the service, as these mounts
6968 are of course in place in the host mount namespace anyway.
6969
6970 * systemd-nspawn gained support for a new --pivot-root= switch. If
6971 specified the root directory within the container image is pivoted to
6972 the specified mount point, while the original root disk is moved to a
6973 different place. This option enables booting of ostree images
6974 directly with systemd-nspawn.
6975
d08ee7cb 6976 * The systemd build scripts will no longer complain if the NTP server
23eb30b3 6977 addresses are not changed from the defaults. Google now supports
d08ee7cb
LP
6978 these NTP servers officially. We still recommend downstreams to
6979 properly register an NTP pool with the NTP pool project though.
6980
c1ec34d1 6981 * coredumpctl gained a new "--reverse" option for printing the list
d08ee7cb
LP
6982 of coredumps in reverse order.
6983
23eb30b3
ZJS
6984 * coredumpctl will now show additional information about truncated and
6985 inaccessible coredumps, as well as coredumps that are still being
6986 processed. It also gained a new --quiet switch for suppressing
6987 additional informational message in its output.
6988
6989 * coredumpctl gained support for only showing coredumps newer and/or
6990 older than specific timestamps, using the new --since= and --until=
6991 options, reminiscent of journalctl's options by the same name.
6992
d08ee7cb 6993 * The systemd-coredump logic has been improved so that it may be reused
23eb30b3 6994 to collect backtraces in non-compiled languages, for example in
d08ee7cb
LP
6995 scripting languages such as Python.
6996
6997 * machinectl will now show the UID shift of local containers, if user
6998 namespacing is enabled for them.
6999
baf32786 7000 * systemd will now optionally run "environment generator" binaries at
d08ee7cb
LP
7001 configuration load time. They may be used to add environment
7002 variables to the environment block passed to services invoked. One
baf32786 7003 user environment generator is shipped by default that sets up
23eb30b3
ZJS
7004 environment variables based on files dropped into /etc/environment.d
7005 and ~/.config/environment.d/.
d08ee7cb 7006
a2b53448
LP
7007 * systemd-resolved now includes the new, recently published 2017 DNSSEC
7008 root key (KSK).
7009
a2b53448
LP
7010 * hostnamed has been updated to report a new chassis type of
7011 "convertible" to cover "foldable" laptops that can both act as a
7012 tablet and as a laptop, such as various Lenovo Yoga devices.
7013
d08ee7cb
LP
7014 Contributions from: Adrián López, Alexander Galanin, Alexander
7015 Kochetkov, Alexandros Frantzis, Andrey Ulanov, Antoine Eiche, Baruch
7016 Siach, Bastien Nocera, Benjamin Robin, Björn, Brandon Philips, Cédric
7017 Schieli, Charles (Chas) Williams, Christian Hesse, Daniele Medri,
7018 Daniel Drake, Daniel Rusek, Daniel Wagner, Dan Streetman, Dave Reisner,
7019 David Glasser, David Herrmann, David Michael, Djalal Harouni, Dmitry
7020 Khlebnikov, Dmitry Rozhkov, Dongsu Park, Douglas Christman, Earnestly,
7021 Emil Soleyman, Eric Cook, Evgeny Vereshchagin, Felipe Sateler, Fionn
7022 Cleary, Florian Klink, Francesco Brozzu, Franck Bui, Gabriel Rauter,
a2b53448
LP
7023 Gianluca Boiano, Giedrius Statkevičius, Graeme Lawes, Hans de Goede,
7024 Harald Hoyer, Ian Kelling, Ivan Shapovalov, Jakub Wilk, Janne Heß, Jan
7025 Synacek, Jason Reeder, Jonathan Boulle, Jörg Thalheim, Jouke Witteveen,
7026 Karl Kraus, Kees Cook, Keith Busch, Kieran Colford, kilian-k, Lennart
7027 Poettering, Lubomir Rintel, Lucas Werkmeister, Lukas Rusak, Maarten de
7028 Vries, Maks Naumov, Mantas Mikulėnas, Marc-Andre Lureau, Marcin Bachry,
7029 Mark Stosberg, Martin Ejdestig, Martin Pitt, Mauricio Faria de
7030 Oliveira, micah, Michael Biebl, Michael Shields, Michal Schmidt, Michal
7031 Sekletar, Michel Kraus, Mike Gilbert, Mikko Ylinen, Mirza Krak,
7032 Namhyung Kim, nikolaof, peoronoob, Peter Hutterer, Peter Körner, Philip
7033 Withnall, Piotr Drąg, Ray Strode, Reverend Homer, Rike-Benjamin
7034 Schuppner, Robert Kreuzer, Ronny Chevalier, Ruslan Bilovol, sammynx,
7035 Sergey Ptashnick, Sergiusz Urbaniak, Stefan Berger, Stefan Hajnoczi,
7036 Stefan Schweter, Stuart McLaren, Susant Sahani, Sylvain Plantefève,
7037 Taylor Smock, Tejun Heo, Thomas Blume, Thomas H. P. Andersen, Tibor
7038 Nagy, Tobias Stoeckmann, Tom Gundersen, Torstein Husebø, Viktar
7039 Vaŭčkievič, Viktor Mihajlovski, Vitaly Sulimov, Waldemar Brodkorb,
7040 Walter Garcia-Fontes, Wim de With, Yassine Imounachen, Yi EungJun,
7041 YunQiang Su, Yu Watanabe, Zbigniew Jędrzejewski-Szmek, Александр
7042 Тихонов
7043
7044 — Berlin, 2017-03-01
d08ee7cb 7045
54b24597 7046CHANGES WITH 232:
76153ad4 7047
05f426d2
LP
7048 * udev now runs with MemoryDenyWriteExecute=, RestrictRealtime= and
7049 RestrictAddressFamilies= enabled. These sandboxing options should
7050 generally be compatible with the various external udev call-out
7051 binaries we are aware of, however there may be exceptions, in
7052 particular when exotic languages for these call-outs are used. In
7053 this case, consider turning off these settings locally.
7054
4ffe2479
ZJS
7055 * The new RemoveIPC= option can be used to remove IPC objects owned by
7056 the user or group of a service when that service exits.
7057
6fa44114 7058 * The new ProtectKernelModules= option can be used to disable explicit
4c37970d
LP
7059 load and unload operations of kernel modules by a service. In
7060 addition access to /usr/lib/modules is removed if this option is set.
6fa44114 7061
4a77c53d
ZJS
7062 * ProtectSystem= option gained a new value "strict", which causes the
7063 whole file system tree with the exception of /dev, /proc, and /sys,
7064 to be remounted read-only for a service.
7065
e49e2c25 7066 * The new ProtectKernelTunables= option can be used to disable
4a77c53d
ZJS
7067 modification of configuration files in /sys and /proc by a service.
7068 Various directories and files are remounted read-only, so access is
7069 restricted even if the file permissions would allow it.
7070
6fa44114 7071 * The new ProtectControlGroups= option can be used to disable write
4a77c53d
ZJS
7072 access by a service to /sys/fs/cgroup.
7073
7074 * Various systemd services have been hardened with
7075 ProtectKernelTunables=yes, ProtectControlGroups=yes,
7076 RestrictAddressFamilies=.
7077
4ffe2479
ZJS
7078 * Support for dynamically creating users for the lifetime of a service
7079 has been added. If DynamicUser=yes is specified, user and group IDs
1d3a473b 7080 will be allocated from the range 61184…65519 for the lifetime of the
4ffe2479
ZJS
7081 service. They can be resolved using the new nss-systemd.so NSS
7082 module. The module must be enabled in /etc/nsswitch.conf. Services
7083 started in this way have PrivateTmp= and RemoveIPC= enabled, so that
7084 any resources allocated by the service will be cleaned up when the
4a77c53d
ZJS
7085 service exits. They also have ProtectHome=read-only and
7086 ProtectSystem=strict enabled, so they are not able to make any
7087 permanent modifications to the system.
4ffe2479 7088
171ae2cd 7089 * The nss-systemd module also always resolves root and nobody, making
4ffe2479 7090 it possible to have no /etc/passwd or /etc/group files in minimal
171ae2cd 7091 container or chroot environments.
4ffe2479
ZJS
7092
7093 * Services may be started with their own user namespace using the new
171ae2cd
LP
7094 boolean PrivateUsers= option. Only root, nobody, and the uid/gid
7095 under which the service is running are mapped. All other users are
7096 mapped to nobody.
4ffe2479
ZJS
7097
7098 * Support for the cgroup namespace has been added to systemd-nspawn. If
7099 supported by kernel, the container system started by systemd-nspawn
7100 will have its own view of the cgroup hierarchy. This new behaviour
7101 can be disabled using $SYSTEMD_NSPAWN_USE_CGNS environment variable.
7102
7103 * The new MemorySwapMax= option can be used to limit the maximum swap
7104 usage under the unified cgroup hierarchy.
7105
7106 * Support for the CPU controller in the unified cgroup hierarchy has
7107 been added, via the CPUWeight=, CPUStartupWeight=, CPUAccounting=
7108 options. This controller requires out-of-tree patches for the kernel
7109 and the support is provisional.
7110
171ae2cd
LP
7111 * Mount and automount units may now be created transiently
7112 (i.e. dynamically at runtime via the bus API, instead of requiring
7113 unit files in the file system).
7114
7115 * systemd-mount is a new tool which may mount file systems – much like
7116 mount(8), optionally pulling in additional dependencies through
7117 transient .mount and .automount units. For example, this tool
7118 automatically runs fsck on a backing block device before mounting,
7119 and allows the automount logic to be used dynamically from the
7120 command line for establishing mount points. This tool is particularly
7121 useful when dealing with removable media, as it will ensure fsck is
7122 run – if necessary – before the first access and that the file system
7123 is quickly unmounted after each access by utilizing the automount
7124 logic. This maximizes the chance that the file system on the
7125 removable media stays in a clean state, and if it isn't in a clean
7126 state is fixed automatically.
4ffe2479
ZJS
7127
7128 * LazyUnmount=yes option for mount units has been added to expose the
7129 umount --lazy option. Similarly, ForceUnmount=yes exposes the --force
7130 option.
7131
7132 * /efi will be used as the mount point of the EFI boot partition, if
7133 the directory is present, and the mount point was not configured
7134 through other means (e.g. fstab). If /efi directory does not exist,
7135 /boot will be used as before. This makes it easier to automatically
7136 mount the EFI partition on systems where /boot is used for something
7137 else.
7138
171ae2cd
LP
7139 * When operating on GPT disk images for containers, systemd-nspawn will
7140 now mount the ESP to /boot or /efi according to the same rules as PID
7141 1 running on a host. This allows tools like "bootctl" to operate
7142 correctly within such containers, in order to make container images
7143 bootable on physical systems.
7144
4a77c53d 7145 * disk/by-id and disk/by-path symlinks are now created for NVMe drives.
4ffe2479
ZJS
7146
7147 * Two new user session targets have been added to support running
7148 graphical sessions under the systemd --user instance:
7149 graphical-session.target and graphical-session-pre.target. See
7150 systemd.special(7) for a description of how those targets should be
7151 used.
7152
7153 * The vconsole initialization code has been significantly reworked to
d4c08299 7154 use KD_FONT_OP_GET/SET ioctls instead of KD_FONT_OP_COPY and better
4ffe2479
ZJS
7155 support unicode keymaps. Font and keymap configuration will now be
7156 copied to all allocated virtual consoles.
7157
05ecf467 7158 * FreeBSD's bhyve virtualization is now detected.
4ffe2479 7159
d4c08299 7160 * Information recorded in the journal for core dumps now includes the
4ffe2479
ZJS
7161 contents of /proc/mountinfo and the command line of the process at
7162 the top of the process hierarchy (which is usually the init process
7163 of the container).
7164
171ae2cd 7165 * systemd-journal-gatewayd learned the --directory= option to serve
4ffe2479
ZJS
7166 files from the specified location.
7167
7168 * journalctl --root=… can be used to peruse the journal in the
7169 /var/log/ directories inside of a container tree. This is similar to
7170 the existing --machine= option, but does not require the container to
7171 be active.
7172
7173 * The hardware database has been extended to support
7174 ID_INPUT_TRACKBALL, used in addition to ID_INPUT_MOUSE to identify
7175 trackball devices.
7176
7177 MOUSE_WHEEL_CLICK_ANGLE_HORIZONTAL hwdb property has been added to
7178 specify the click rate for mice which include a horizontal wheel with
7179 a click rate that is different than the one for the vertical wheel.
7180
7181 * systemd-run gained a new --wait option that makes service execution
171ae2cd
LP
7182 synchronous. (Specifically, the command will not return until the
7183 specified service binary exited.)
4ffe2479 7184
171ae2cd 7185 * systemctl gained a new --wait option that causes the start command to
4a77c53d
ZJS
7186 wait until the units being started have terminated again.
7187
171ae2cd 7188 * A new journal output mode "short-full" has been added which displays
4ffe2479 7189 timestamps with abbreviated English day names and adds a timezone
171ae2cd
LP
7190 suffix. Those timestamps include more information than the default
7191 "short" output mode, and can be passed directly to journalctl's
7192 --since= and --until= options.
4ffe2479
ZJS
7193
7194 * /etc/resolv.conf will be bind-mounted into containers started by
7195 systemd-nspawn, if possible, so any changes to resolv.conf contents
7196 are automatically propagated to the container.
7197
7198 * The number of instances for socket-activated services originating
171ae2cd
LP
7199 from a single IP address can be limited with
7200 MaxConnectionsPerSource=, extending the existing setting of
7201 MaxConnections=.
4ffe2479 7202
4a77c53d
ZJS
7203 * systemd-networkd gained support for vcan ("Virtual CAN") interface
7204 configuration.
7205
7206 * .netdev and .network configuration can now be extended through
7207 drop-ins.
7208
4ffe2479
ZJS
7209 * UDP Segmentation Offload, TCP Segmentation Offload, Generic
7210 Segmentation Offload, Generic Receive Offload, Large Receive Offload
7211 can be enabled and disabled using the new UDPSegmentationOffload=,
7212 TCPSegmentationOffload=, GenericSegmentationOffload=,
7213 GenericReceiveOffload=, LargeReceiveOffload= options in the
7214 [Link] section of .link files.
7215
171ae2cd
LP
7216 * The Spanning Tree Protocol, Priority, Aging Time, and the Default
7217 Port VLAN ID can be configured for bridge devices using the new STP=,
7218 Priority=, AgeingTimeSec=, and DefaultPVID= settings in the [Bridge]
7219 section of .netdev files.
4ffe2479 7220
171ae2cd 7221 * The route table to which routes received over DHCP or RA should be
4a77c53d
ZJS
7222 added can be configured with the new RouteTable= option in the [DHCP]
7223 and [IPv6AcceptRA] sections of .network files.
7224
171ae2cd 7225 * The Address Resolution Protocol can be disabled on links managed by
4ffe2479
ZJS
7226 systemd-networkd using the ARP=no setting in the [Link] section of
7227 .network files.
7228
171ae2cd
LP
7229 * New environment variables $SERVICE_RESULT, $EXIT_CODE and
7230 $EXIT_STATUS are set for ExecStop= and ExecStopPost= commands, and
7231 encode information about the result and exit codes of the current
7232 service runtime cycle.
4ffe2479 7233
4a77c53d 7234 * systemd-sysctl will now configure kernel parameters in the order
1f4f4cf7 7235 they occur in the configuration files. This matches what sysctl
4a77c53d
ZJS
7236 has been traditionally doing.
7237
7238 * kernel-install "plugins" that are executed to perform various
7239 tasks after a new kernel is added and before an old one is removed
7240 can now return a special value to terminate the procedure and
7241 prevent any later plugins from running.
7242
76153ad4 7243 * Journald's SplitMode=login setting has been deprecated. It has been
d4c08299 7244 removed from documentation, and its use is discouraged. In a future
76153ad4
ZJS
7245 release it will be completely removed, and made equivalent to current
7246 default of SplitMode=uid.
7247
4a77c53d
ZJS
7248 * Storage=both option setting in /etc/systemd/coredump.conf has been
7249 removed. With fast LZ4 compression storing the core dump twice is not
7250 useful.
7251
4ffe2479
ZJS
7252 * The --share-system systemd-nspawn option has been replaced with an
7253 (undocumented) variable $SYSTEMD_NSPAWN_SHARE_SYSTEM, but the use of
7254 this functionality is discouraged. In addition the variables
7255 $SYSTEMD_NSPAWN_SHARE_NS_IPC, $SYSTEMD_NSPAWN_SHARE_NS_PID,
7256 $SYSTEMD_NSPAWN_SHARE_NS_UTS may be used to control the unsharing of
7257 individual namespaces.
7258
171ae2cd
LP
7259 * "machinectl list" now shows the IP address of running containers in
7260 the output, as well as OS release information.
7261
7262 * "loginctl list" now shows the TTY of each session in the output.
7263
7264 * sd-bus gained new API calls sd_bus_track_set_recursive(),
7265 sd_bus_track_get_recursive(), sd_bus_track_count_name(),
7266 sd_bus_track_count_sender(). They permit usage of sd_bus_track peer
7267 tracking objects in a "recursive" mode, where a single client can be
7268 counted multiple times, if it takes multiple references.
7269
7270 * sd-bus gained new API calls sd_bus_set_exit_on_disconnect() and
bc99dac5 7271 sd_bus_get_exit_on_disconnect(). They may be used to make a
171ae2cd
LP
7272 process using sd-bus automatically exit if the bus connection is
7273 severed.
7274
7275 * Bus clients of the service manager may now "pin" loaded units into
7276 memory, by taking an explicit reference on them. This is useful to
7277 ensure the client can retrieve runtime data about the service even
7278 after the service completed execution. Taking such a reference is
7279 available only for privileged clients and should be helpful to watch
7280 running services in a race-free manner, and in particular collect
7281 information about exit statuses and results.
7282
4c37970d
LP
7283 * The nss-resolve module has been changed to strictly return UNAVAIL
7284 when communication via D-Bus with resolved failed, and NOTFOUND when
7285 a lookup completed but was negative. This means it is now possible to
7286 neatly configure fallbacks using nsswitch.conf result checking
7287 expressions. Taking benefit of this, the new recommended
7288 configuration line for the "hosts" entry in /etc/nsswitch.conf is:
7289
7290 hosts: files mymachines resolve [!UNAVAIL=return] dns myhostname
7291
7292 * A new setting CtrlAltDelBurstAction= has been added to
7293 /etc/systemd/system.conf which may be used to configure the precise
7294 behaviour if the user on the console presses Ctrl-Alt-Del more often
7295 than 7 times in 2s. Previously this would unconditionally result in
7296 an expedited, immediate reboot. With this new setting the precise
7297 operation may be configured in more detail, and also turned off
7298 entirely.
7299
7300 * In .netdev files two new settings RemoteChecksumTx= and
7301 RemoteChecksumRx= are now understood that permit configuring the
7302 remote checksumming logic for VXLAN networks.
7303
7304 * The service manager learnt a new "invocation ID" concept for invoked
7305 services. Each runtime cycle of a service will get a new invocation
7306 ID (a 128bit random UUID) assigned that identifies the current
7307 run of the service uniquely and globally. A new invocation ID
7308 is generated each time a service starts up. The journal will store
7309 the invocation ID of a service along with any logged messages, thus
7310 making the invocation ID useful for matching the online runtime of a
7311 service with the offline log data it generated in a safe way without
7312 relying on synchronized timestamps. In many ways this new service
7313 invocation ID concept is similar to the kernel's boot ID concept that
7314 uniquely and globally identifies the runtime of each boot. The
7315 invocation ID of a service is passed to the service itself via an
7316 environment variable ($INVOCATION_ID). A new bus call
7317 GetUnitByInvocationID() has been added that is similar to GetUnit()
7318 but instead of retrieving the bus path for a unit by its name
7319 retrieves it by its invocation ID. The returned path is valid only as
7320 long as the passed invocation ID is current.
7321
7322 * systemd-resolved gained a new "DNSStubListener" setting in
7323 resolved.conf. It either takes a boolean value or the special values
7324 "udp" and "tcp", and configures whether to enable the stub DNS
7325 listener on 127.0.0.53:53.
7326
7327 * IP addresses configured via networkd may now carry additional
7328 configuration settings supported by the kernel. New options include:
7329 HomeAddress=, DuplicateAddressDetection=, ManageTemporaryAddress=,
7330 PrefixRoute=, AutoJoin=.
7331
7332 * The PAM configuration fragment file for "user@.service" shipped with
7333 systemd (i.e. the --user instance of systemd) has been stripped to
7334 the minimum necessary to make the system boot. Previously, it
7335 contained Fedora-specific stanzas that did not apply to other
7336 distributions. It is expected that downstream distributions add
7337 additional configuration lines, matching their needs to this file,
7338 using it only as rough template of what systemd itself needs. Note
7339 that this reduced fragment does not even include an invocation of
7340 pam_limits which most distributions probably want to add, even though
7341 systemd itself does not need it. (There's also the new build time
7342 option --with-pamconfdir=no to disable installation of the PAM
7343 fragment entirely.)
7344
7345 * If PrivateDevices=yes is set for a service the CAP_SYS_RAWIO
7346 capability is now also dropped from its set (in addition to
7347 CAP_SYS_MKNOD as before).
7348
7349 * In service unit files it is now possible to connect a specific named
7350 file descriptor with stdin/stdout/stdout of an executed service. The
7351 name may be specified in matching .socket units using the
7352 FileDescriptorName= setting.
7353
7354 * A number of journal settings may now be configured on the kernel
7355 command line. Specifically, the following options are now understood:
7356 systemd.journald.max_level_console=,
7357 systemd.journald.max_level_store=,
7358 systemd.journald.max_level_syslog=, systemd.journald.max_level_kmsg=,
7359 systemd.journald.max_level_wall=.
7360
7361 * "systemctl is-enabled --full" will now show by which symlinks a unit
7362 file is enabled in the unit dependency tree.
7363
b4eed568
LP
7364 * Support for VeraCrypt encrypted partitions has been added to the
7365 "cryptsetup" logic and /etc/crypttab.
7366
7367 * systemd-detect-virt gained support for a new --private-users switch
7368 that checks whether the invoking processes are running inside a user
7369 namespace. Similar, a new special value "private-users" for the
7370 existing ConditionVirtualization= setting has been added, permitting
7371 skipping of specific units in user namespace environments.
7372
07393b6e
LP
7373 Contributions from: Alban Crequy, Alexander Kuleshov, Alfie John,
7374 Andreas Henriksson, Andrew Jeddeloh, Balázs Úr, Bart Rulon, Benjamin
7375 Richter, Ben Gamari, Ben Harris, Brian J. Murrell, Christian Brauner,
7376 Christian Rebischke, Clinton Roy, Colin Walters, Cristian Rodríguez,
7377 Daniel Hahler, Daniel Mack, Daniel Maixner, Daniel Rusek, Dan Dedrick,
7378 Davide Cavalca, David Herrmann, David Michael, Dennis Wassenberg,
7379 Djalal Harouni, Dongsu Park, Douglas Christman, Elias Probst, Eric
7380 Cook, Erik Karlsson, Evgeny Vereshchagin, Felipe Sateler, Felix Zhang,
7381 Franck Bui, George Hilliard, Giuseppe Scrivano, HATAYAMA Daisuke,
7382 Heikki Kemppainen, Hendrik Brueckner, hi117, Ismo Puustinen, Ivan
7383 Shapovalov, Jakub Filak, Jakub Wilk, Jan Synacek, Jason Kölker,
7384 Jean-Sébastien Bour, Jiří Pírko, Jonathan Boulle, Jorge Niedbalski,
7385 Keith Busch, kristbaum, Kyle Russell, Lans Zhang, Lennart Poettering,
7386 Leonardo Brondani Schenkel, Lucas Werkmeister, Luca Bruno, Lukáš
7387 Nykrýn, Maciek Borzecki, Mantas Mikulėnas, Marc-Antoine Perennou,
7388 Marcel Holtmann, Marcos Mello, Martin Ejdestig, Martin Pitt, Matej
7389 Habrnal, Maxime de Roucy, Michael Biebl, Michael Chapman, Michael Hoy,
7390 Michael Olbrich, Michael Pope, Michal Sekletar, Michal Soltys, Mike
7391 Gilbert, Nick Owens, Patrik Flykt, Paweł Szewczyk, Peter Hutterer,
7392 Piotr Drąg, Reid Price, Richard W.M. Jones, Roman Stingler, Ronny
7393 Chevalier, Seraphime Kirkovski, Stefan Schweter, Steve Muir, Susant
7394 Sahani, Tejun Heo, Thomas Blume, Thomas H. P. Andersen, Tiago Levit,
7395 Tobias Jungel, Tomáš Janoušek, Topi Miettinen, Torstein Husebø, Umut
7396 Tezduyar Lindskog, Vito Caputo, WaLyong Cho, Wilhelm Schuster, Yann
7397 E. MORIN, Yi EungJun, Yuki Inoguchi, Yu Watanabe, Zbigniew
7398 Jędrzejewski-Szmek, Zeal Jagannatha
7399
54b24597 7400 — Santa Fe, 2016-11-03
07393b6e 7401
5cd118ba
MP
7402CHANGES WITH 231:
7403
fcd30826
LP
7404 * In service units the various ExecXYZ= settings have been extended
7405 with an additional special character as first argument of the
43eb109a 7406 assigned value: if the character '+' is used the specified command
fcd30826
LP
7407 line it will be run with full privileges, regardless of User=,
7408 Group=, CapabilityBoundingSet= and similar options. The effect is
7409 similar to the existing PermissionsStartOnly= option, but allows
7410 configuration of this concept for each executed command line
7411 independently.
7412
7413 * Services may now alter the service watchdog timeout at runtime by
7414 sending a WATCHDOG_USEC= message via sd_notify().
7415
7416 * MemoryLimit= and related unit settings now optionally take percentage
7417 specifications. The percentage is taken relative to the amount of
7418 physical memory in the system (or in case of containers, the assigned
7419 amount of memory). This allows scaling service resources neatly with
771de3f5 7420 the amount of RAM available on the system. Similarly, systemd-logind's
fcd30826
LP
7421 RuntimeDirectorySize= option now also optionally takes percentage
7422 values.
7423
7424 * In similar fashion TasksMax= takes percentage values now, too. The
7425 value is taken relative to the configured maximum number of processes
7426 on the system. The per-service task maximum has been changed to 15%
7427 using this functionality. (Effectively this is an increase of 512 →
7428 4915 for service units, given the kernel's default pid_max setting.)
7429
7430 * Calendar time specifications in .timer units now understand a ".."
7431 syntax for time ranges. Example: "4..7:10" may now be used for
7432 defining a timer that is triggered at 4:10am, 5:10am, 6:10am and
7433 7:10am every day.
7434
7435 * The InaccessableDirectories=, ReadOnlyDirectories= and
7436 ReadWriteDirectories= unit file settings have been renamed to
7437 InaccessablePaths=, ReadOnlyPaths= and ReadWritePaths= and may now be
7438 applied to all kinds of file nodes, and not just directories, with
7439 the exception of symlinks. Specifically these settings may now be
7440 used on block and character device nodes, UNIX sockets and FIFOS as
7441 well as regular files. The old names of these settings remain
7442 available for compatibility.
7443
7444 * systemd will now log about all service processes it kills forcibly
7445 (using SIGKILL) because they remained after the clean shutdown phase
7446 of the service completed. This should help identifying services that
7447 shut down uncleanly. Moreover if KillUserProcesses= is enabled in
7448 systemd-logind's configuration a similar log message is generated for
7449 processes killed at the end of each session due to this setting.
7450
7451 * systemd will now set the $JOURNAL_STREAM environment variable for all
7452 services whose stdout/stderr are connected to the Journal (which
7453 effectively means by default: all services). The variable contains
7454 the device and inode number of the file descriptor used for
7455 stdout/stderr. This may be used by invoked programs to detect whether
7456 their stdout/stderr is connected to the Journal, in which case they
7457 can switch over to direct Journal communication, thus being able to
7458 pass extended, structured metadata along with their log messages. As
7459 one example, this is now used by glib's logging primitives.
7460
7461 * When using systemd's default tmp.mount unit for /tmp, the mount point
7462 will now be established with the "nosuid" and "nodev" options. This
7463 avoids privilege escalation attacks that put traps and exploits into
7464 /tmp. However, this might cause problems if you e. g. put container
5cd118ba
MP
7465 images or overlays into /tmp; if you need this, override tmp.mount's
7466 "Options=" with a drop-in, or mount /tmp from /etc/fstab with your
7467 desired options.
7468
fcd30826 7469 * systemd now supports the "memory" cgroup controller also on
4e1dfa45 7470 cgroup v2.
fcd30826
LP
7471
7472 * The systemd-cgtop tool now optionally takes a control group path as
7473 command line argument. If specified, the control group list shown is
7474 limited to subgroups of that group.
7475
7476 * The SystemCallFilter= unit file setting gained support for
7477 pre-defined, named system call filter sets. For example
7478 SystemCallFilter=@clock is now an effective way to make all clock
771de3f5 7479 changing-related system calls unavailable to a service. A number of
fcd30826
LP
7480 similar pre-defined groups are defined. Writing system call filters
7481 for system services is simplified substantially with this new
7482 concept. Accordingly, all of systemd's own, long-running services now
7483 enable system call filtering based on this, by default.
7484
7485 * A new service setting MemoryDenyWriteExecute= has been added, taking
7486 a boolean value. If turned on, a service may no longer create memory
7487 mappings that are writable and executable at the same time. This
7488 enhances security for services where this is enabled as it becomes
7489 harder to dynamically write and then execute memory in exploited
7490 service processes. This option has been enabled for all of systemd's
7491 own long-running services.
7492
7493 * A new RestrictRealtime= service setting has been added, taking a
7494 boolean argument. If set the service's processes may no longer
7495 acquire realtime scheduling. This improves security as realtime
7496 scheduling may otherwise be used to easily freeze the system.
7497
7498 * systemd-nspawn gained a new switch --notify-ready= taking a boolean
7499 value. This may be used for requesting that the system manager inside
7500 of the container reports start-up completion to nspawn which then
7501 propagates this notification further to the service manager
7502 supervising nspawn itself. A related option NotifyReady= in .nspawn
7503 files has been added too. This functionality allows ordering of the
7504 start-up of multiple containers using the usual systemd ordering
7505 primitives.
7506
7507 * machinectl gained a new command "stop" that is an alias for
7508 "terminate".
7509
7510 * systemd-resolved gained support for contacting DNS servers on
7511 link-local IPv6 addresses.
7512
7513 * If systemd-resolved receives the SIGUSR2 signal it will now flush all
7514 its caches. A method call for requesting the same operation has been
7515 added to the bus API too, and is made available via "systemd-resolve
7516 --flush-caches".
7517
771de3f5 7518 * systemd-resolve gained a new --status switch. If passed a brief
fcd30826
LP
7519 summary of the used DNS configuration with per-interface information
7520 is shown.
7521
7522 * resolved.conf gained a new Cache= boolean option, defaulting to
7523 on. If turned off local DNS caching is disabled. This comes with a
7524 performance penalty in particular when DNSSEC is enabled. Note that
771de3f5 7525 resolved disables its internal caching implicitly anyway, when the
fcd30826
LP
7526 configured DNS server is on a host-local IP address such as ::1 or
7527 127.0.0.1, thus automatically avoiding double local caching.
7528
7529 * systemd-resolved now listens on the local IP address 127.0.0.53:53
7530 for DNS requests. This improves compatibility with local programs
7531 that do not use the libc NSS or systemd-resolved's bus APIs for name
7532 resolution. This minimal DNS service is only available to local
7533 programs and does not implement the full DNS protocol, but enough to
7534 cover local DNS clients. A new, static resolv.conf file, listing just
7535 this DNS server is now shipped in /usr/lib/systemd/resolv.conf. It is
7536 now recommended to make /etc/resolv.conf a symlink to this file in
7537 order to route all DNS lookups to systemd-resolved, regardless if
7538 done via NSS, the bus API or raw DNS packets. Note that this local
7539 DNS service is not as fully featured as the libc NSS or
7540 systemd-resolved's bus APIs. For example, as unicast DNS cannot be
7541 used to deliver link-local address information (as this implies
7542 sending a local interface index along), LLMNR/mDNS support via this
7543 interface is severely restricted. It is thus strongly recommended for
7544 all applications to use the libc NSS API or native systemd-resolved
7545 bus API instead.
7546
7547 * systemd-networkd's bridge support learned a new setting
7548 VLANFiltering= for controlling VLAN filtering. Moreover a new section
7549 in .network files has been added for configuring VLAN bridging in
7550 more detail: VLAN=, EgressUntagged=, PVID= in [BridgeVLAN].
7551
7552 * systemd-networkd's IPv6 Router Advertisement code now makes use of
7553 the DNSSL and RDNSS options. This means IPv6 DNS configuration may
7554 now be acquired without relying on DHCPv6. Two new options
7555 UseDomains= and UseDNS= have been added to configure this behaviour.
7556
7557 * systemd-networkd's IPv6AcceptRouterAdvertisements= option has been
7558 renamed IPv6AcceptRA=, without altering its behaviour. The old
7559 setting name remains available for compatibility reasons.
7560
7561 * The systemd-networkd VTI/VTI6 tunneling support gained new options
7562 Key=, InputKey= and OutputKey=.
7563
7564 * systemd-networkd gained support for VRF ("Virtual Routing Function")
7565 interface configuration.
7566
7567 * "systemctl edit" may now be used to create new unit files by
7568 specifying the --force switch.
7569
7570 * sd-event gained a new function sd_event_get_iteration() for
7571 requesting the current iteration counter of the event loop. It starts
7572 at zero and is increased by one with each event loop iteration.
7573
43a569a1
ZJS
7574 * A new rpm macro %systemd_ordering is provided by the macros.systemd
7575 file. It can be used in lieu of %systemd_requires in packages which
7576 don't use any systemd functionality and are intended to be installed
7577 in minimal containers without systemd present. This macro provides
ce830873 7578 ordering dependencies to ensure that if the package is installed in
43a569a1
ZJS
7579 the same rpm transaction as systemd, systemd will be installed before
7580 the scriptlets for the package are executed, allowing unit presets
7581 to be handled.
7582
7583 New macros %_systemdgeneratordir and %_systemdusergeneratordir have
7584 been added to simplify packaging of generators.
7585
7586 * The os-release file gained VERSION_CODENAME field for the
7587 distribution nickname (e.g. VERSION_CODENAME=woody).
7588
7589 * New udev property UDEV_DISABLE_PERSISTENT_STORAGE_RULES_FLAG=1
7590 can be set to disable parsing of metadata and the creation
7591 of persistent symlinks for that device.
7592
0f1da52b
LP
7593 * The v230 change to tag framebuffer devices (/dev/fb*) with "uaccess"
7594 to make them available to logged-in users has been reverted.
7595
7596 * Much of the common code of the various systemd components is now
7597 built into an internal shared library libsystemd-shared-231.so
7598 (incorporating the systemd version number in the name, to be updated
7599 with future releases) that the components link to. This should
7600 decrease systemd footprint both in memory during runtime and on
7601 disk. Note that the shared library is not for public use, and is
ead6bd25 7602 neither API nor ABI stable, but is likely to change with every new
1ecbf32f
ZJS
7603 released update. Packagers need to make sure that binaries
7604 linking to libsystemd-shared.so are updated in step with the
7605 library.
43a569a1 7606
fcd30826
LP
7607 * Configuration for "mkosi" is now part of the systemd
7608 repository. mkosi is a tool to easily build legacy-free OS images,
7609 and is available on github: https://github.com/systemd/mkosi. If
7610 "mkosi" is invoked in the build tree a new raw OS image is generated
7611 incorporating the systemd sources currently being worked on and a
7612 clean, fresh distribution installation. The generated OS image may be
ce830873 7613 booted up with "systemd-nspawn -b -i", qemu-kvm or on any physical
fcd30826
LP
7614 UEFI PC. This functionality is particularly useful to easily test
7615 local changes made to systemd in a pristine, defined environment. See
f09eb768 7616 doc/HACKING for details.
ceeddf79 7617
4ffe2479
ZJS
7618 * configure learned the --with-support-url= option to specify the
7619 distribution's bugtracker.
7620
38b383d9
LP
7621 Contributions from: Alban Crequy, Alessandro Puccetti, Alessio Igor
7622 Bogani, Alexander Kuleshov, Alexander Kurtz, Alex Gaynor, Andika
7623 Triwidada, Andreas Pokorny, Andreas Rammhold, Andrew Jeddeloh, Ansgar
7624 Burchardt, Atrotors, Benjamin Drung, Brian Boylston, Christian Hesse,
7625 Christian Rebischke, Daniele Medri, Daniel Mack, Dave Reisner, David
7626 Herrmann, David Michael, Djalal Harouni, Douglas Christman, Elias
7627 Probst, Evgeny Vereshchagin, Federico Mena Quintero, Felipe Sateler,
7628 Franck Bui, Harald Hoyer, Ian Lee, Ivan Shapovalov, Jakub Wilk, Jan
7629 Janssen, Jean-Sébastien Bour, John Paul Adrian Glaubitz, Jouke
7630 Witteveen, Kai Ruhnau, kpengboy, Kyle Walker, Lénaïc Huard, Lennart
7631 Poettering, Luca Bruno, Lukas Lösche, Lukáš Nykrýn, mahkoh, Marcel
7632 Holtmann, Martin Pitt, Marty Plummer, Matthieu Codron, Max Prokhorov,
7633 Michael Biebl, Michael Karcher, Michael Olbrich, Michał Bartoszkiewicz,
7634 Michal Sekletar, Michal Soltys, Minkyung, Muhammet Kara, mulkieran,
7635 Otto Wallenius, Pablo Lezaeta Reyes, Peter Hutterer, Ronny Chevalier,
7636 Rusty Bird, Stef Walter, Susant Sahani, Tejun Heo, Thomas Blume, Thomas
771de3f5
ZJS
7637 Haller, Thomas H. P. Andersen, Tobias Jungel, Tom Gundersen, Tom Yan,
7638 Topi Miettinen, Torstein Husebø, Valentin Vidić, Viktar Vaŭčkievič,
38b383d9 7639 WaLyong Cho, Weng Xuetian, Werner Fink, Zbigniew Jędrzejewski-Szmek
5cd118ba 7640
38b383d9 7641 — Berlin, 2016-07-25
5cd118ba 7642
46e40fab 7643CHANGES WITH 230:
7f6e8043 7644
61ecb465
LP
7645 * DNSSEC is now turned on by default in systemd-resolved (in
7646 "allow-downgrade" mode), but may be turned off during compile time by
7647 passing "--with-default-dnssec=no" to "configure" (and of course,
7648 during runtime with DNSSEC= in resolved.conf). We recommend
7649 downstreams to leave this on at least during development cycles and
7650 report any issues with the DNSSEC logic upstream. We are very
7651 interested in collecting feedback about the DNSSEC validator and its
7652 limitations in the wild. Note however, that DNSSEC support is
7653 probably nothing downstreams should turn on in stable distros just
96d49011 7654 yet, as it might create incompatibilities with a few DNS servers and
61ecb465
LP
7655 networks. We tried hard to make sure we downgrade to non-DNSSEC mode
7656 automatically whenever we detect such incompatible setups, but there
7657 might be systems we do not cover yet. Hence: please help us testing
7658 the DNSSEC code, leave this on where you can, report back, but then
7659 again don't consider turning this on in your stable, LTS or
e40a326c
LP
7660 production release just yet. (Note that you have to enable
7661 nss-resolve in /etc/nsswitch.conf, to actually use systemd-resolved
38b38500 7662 and its DNSSEC mode for hostname resolution from local
e40a326c 7663 applications.)
61ecb465 7664
96515dbf 7665 * systemd-resolve conveniently resolves DANE records with the --tlsa
e40a326c 7666 option and OPENPGPKEY records with the --openpgp option. It also
e75690c3 7667 supports dumping raw DNS record data via the new --raw= switch.
96515dbf 7668
97e5530c
ZJS
7669 * systemd-logind will now by default terminate user processes that are
7670 part of the user session scope unit (session-XX.scope) when the user
977f2bea 7671 logs out. This behavior is controlled by the KillUserProcesses=
e40a326c
LP
7672 setting in logind.conf, and the previous default of "no" is now
7673 changed to "yes". This means that user sessions will be properly
7674 cleaned up after, but additional steps are necessary to allow
7675 intentionally long-running processes to survive logout.
97e5530c
ZJS
7676
7677 While the user is logged in at least once, user@.service is running,
7678 and any service that should survive the end of any individual login
7679 session can be started at a user service or scope using systemd-run.
e40a326c 7680 systemd-run(1) man page has been extended with an example which shows
8951eaec 7681 how to run screen in a scope unit underneath user@.service. The same
e40a326c 7682 command works for tmux.
97e5530c
ZJS
7683
7684 After the user logs out of all sessions, user@.service will be
7685 terminated too, by default, unless the user has "lingering" enabled.
7686 To effectively allow users to run long-term tasks even if they are
152199f2
ZJS
7687 logged out, lingering must be enabled for them. See loginctl(1) for
7688 details. The default polkit policy was modified to allow users to
7689 set lingering for themselves without authentication.
7f6e8043 7690
95365a57 7691 Previous defaults can be restored at compile time by the
e40a326c 7692 --without-kill-user-processes option to "configure".
7f6e8043 7693
e75690c3
ZJS
7694 * systemd-logind gained new configuration settings SessionsMax= and
7695 InhibitorsMax=, both with a default of 8192. It will not register new
188d3082 7696 user sessions or inhibitors above this limit.
e75690c3
ZJS
7697
7698 * systemd-logind will now reload configuration on SIGHUP.
7699
96515dbf 7700 * The unified cgroup hierarchy added in Linux 4.5 is now supported.
e40a326c 7701 Use systemd.unified_cgroup_hierarchy=1 on the kernel command line to
25b0e6cb
LP
7702 enable. Also, support for the "io" cgroup controller in the unified
7703 hierarchy has been added, so that the "memory", "pids" and "io" are
7704 now the controllers that are supported on the unified hierarchy.
e40a326c 7705
96515dbf
ZJS
7706 WARNING: it is not possible to use previous systemd versions with
7707 systemd.unified_cgroup_hierarchy=1 and the new kernel. Therefore it
7708 is necessary to also update systemd in the initramfs if using the
e40a326c 7709 unified hierarchy. An updated SELinux policy is also required.
96515dbf 7710
e40a326c
LP
7711 * LLDP support has been extended, and both passive (receive-only) and
7712 active (sender) modes are supported. Passive mode ("routers-only") is
8951eaec
ZJS
7713 enabled by default in systemd-networkd. Active LLDP mode is enabled
7714 by default for containers on the internal network. The "networkctl
e40a326c
LP
7715 lldp" command may be used to list information gathered. "networkctl
7716 status" will also show basic LLDP information on connected peers now.
96515dbf 7717
e40a326c
LP
7718 * The IAID and DUID unique identifier sent in DHCP requests may now be
7719 configured for the system and each .network file managed by
e75690c3
ZJS
7720 systemd-networkd using the DUIDType=, DUIDRawData=, IAID= options.
7721
7722 * systemd-networkd gained support for configuring proxy ARP support for
7723 each interface, via the ProxyArp= setting in .network files. It also
7724 gained support for configuring the multicast querier feature of
7725 bridge devices, via the new MulticastQuerier= setting in .netdev
7726 files. Similarly, snooping on the IGMP traffic can be controlled
7727 via the new setting MulticastSnooping=.
7728
7729 A new setting PreferredLifetime= has been added for addresses
7730 configured in .network file to configure the lifetime intended for an
7731 address.
7732
7733 The systemd-networkd DHCP server gained the option EmitRouter=, which
7734 defaults to yes, to configure whether the DHCP Option 3 (Router)
7735 should be emitted.
96515dbf 7736
e40a326c 7737 * The testing tool /usr/lib/systemd/systemd-activate is renamed to
97e5530c
ZJS
7738 systemd-socket-activate and installed into /usr/bin. It is now fully
7739 supported.
7740
e40a326c
LP
7741 * systemd-journald now uses separate threads to flush changes to disk
7742 when closing journal files, thus reducing impact of slow disk I/O on
7743 logging performance.
96515dbf 7744
e75690c3
ZJS
7745 * The sd-journal API gained two new calls
7746 sd_journal_open_directory_fd() and sd_journal_open_files_fd() which
7747 can be used to open journal files using file descriptors instead of
7748 file or directory paths. sd_journal_open_container() has been
7749 deprecated, sd_journal_open_directory_fd() should be used instead
7750 with the flag SD_JOURNAL_OS_ROOT.
7751
7752 * journalctl learned a new output mode "-o short-unix" that outputs log
7753 lines prefixed by their UNIX time (i.e. seconds since Jan 1st, 1970
7754 UTC). It also gained support for a new --no-hostname setting to
7755 suppress the hostname column in the family of "short" output modes.
7756
e40a326c
LP
7757 * systemd-ask-password now optionally skips printing of the password to
7758 stdout with --no-output which can be useful in scripts.
96515dbf
ZJS
7759
7760 * Framebuffer devices (/dev/fb*) and 3D printers and scanners
7761 (devices tagged with ID_MAKER_TOOL) are now tagged with
7762 "uaccess" and are available to logged in users.
7763
e75690c3 7764 * The DeviceAllow= unit setting now supports specifiers (with "%").
e40a326c
LP
7765
7766 * "systemctl show" gained a new --value switch, which allows print a
7767 only the contents of a specific unit property, without also printing
8951eaec
ZJS
7768 the property's name. Similar support was added to "show*" verbs
7769 of loginctl and machinectl that output "key=value" lists.
e40a326c 7770
e75690c3
ZJS
7771 * A new unit type "generated" was added for files dynamically generated
7772 by generator tools. Similarly, a new unit type "transient" is used
7773 for unit files created using the runtime API. "systemctl enable" will
7774 refuse to operate on such files.
7775
e40a326c
LP
7776 * A new command "systemctl revert" has been added that may be used to
7777 revert to the vendor version of a unit file, in case local changes
7778 have been made by adding drop-ins or overriding the unit file.
7779
7780 * "machinectl clean" gained a new verb to automatically remove all or
7781 just hidden container images.
7782
e40a326c
LP
7783 * systemd-tmpfiles gained support for a new line type "e" for emptying
7784 directories, if they exist, without creating them if they don't.
7785
e40a326c
LP
7786 * systemd-nspawn gained support for automatically patching the UID/GIDs
7787 of the owners and the ACLs of all files and directories in a
7788 container tree to match the UID/GID user namespacing range selected
7789 for the container invocation. This mode is enabled via the new
24597ee0
ZJS
7790 --private-users-chown switch. It also gained support for
7791 automatically choosing a free, previously unused UID/GID range when
7792 starting a container, via the new --private-users=pick setting (which
7793 implies --private-users-chown). Together, these options for the first
7794 time make user namespacing for nspawn containers fully automatic and
7795 thus deployable. The systemd-nspawn@.service template unit file has
7796 been changed to use this functionality by default.
e40a326c 7797
25b0e6cb
LP
7798 * systemd-nspawn gained a new --network-zone= switch, that allows
7799 creating ad-hoc virtual Ethernet links between multiple containers,
7800 that only exist as long as at least one container referencing them is
7801 running. This allows easy connecting of multiple containers with a
7802 common link that implements an Ethernet broadcast domain. Each of
7803 these network "zones" may be named relatively freely by the user, and
7804 may be referenced by any number of containers, but each container may
7805 only reference one of these "zones". On the lower level, this is
7806 implemented by an automatically managed bridge network interface for
7807 each zone, that is created when the first container referencing its
7808 zone is created and removed when the last one referencing its zone
7809 terminates.
7810
e40a326c 7811 * The default start timeout may now be configured on the kernel command
8951eaec
ZJS
7812 line via systemd.default_timeout_start_sec=. It was already
7813 configurable via the DefaultTimeoutStartSec= option in
7814 /etc/systemd/system.conf.
e40a326c 7815
030bd839 7816 * Socket units gained a new TriggerLimitIntervalSec= and
e40a326c
LP
7817 TriggerLimitBurst= setting to configure a limit on the activation
7818 rate of the socket unit.
7819
7820 * The LimitNICE= setting now optionally takes normal UNIX nice values
7821 in addition to the raw integer limit value. If the specified
1d3a473b 7822 parameter is prefixed with "+" or "-" and is in the range -20…19 the
e40a326c
LP
7823 value is understood as UNIX nice value. If not prefixed like this it
7824 is understood as raw RLIMIT_NICE limit.
7825
999a43f8
LP
7826 * Note that the effect of the PrivateDevices= unit file setting changed
7827 slightly with this release: the per-device /dev file system will be
7828 mounted read-only from this version on, and will have "noexec"
188d3082 7829 set. This (minor) change of behavior might cause some (exceptional)
999a43f8
LP
7830 legacy software to break, when PrivateDevices=yes is set for its
7831 service. Please leave PrivateDevices= off if you run into problems
7832 with this.
7833
e75690c3
ZJS
7834 * systemd-bootchart has been split out to a separate repository:
7835 https://github.com/systemd/systemd-bootchart
7836
7837 * systemd-bus-proxyd has been removed, as kdbus is unlikely to still be
7838 merged into the kernel in its current form.
7839
7840 * The compatibility libraries libsystemd-daemon.so,
7841 libsystemd-journal.so, libsystemd-id128.so, and libsystemd-login.so
7842 which have been deprecated since systemd-209 have been removed along
7843 with the corresponding pkg-config files. All symbols provided by
7844 those libraries are provided by libsystemd.so.
7845
7846 * The Capabilities= unit file setting has been removed (it is ignored
7847 for backwards compatibility). AmbientCapabilities= and
7848 CapabilityBoundingSet= should be used instead.
7849
4f9020fa
DR
7850 * A new special target has been added, initrd-root-device.target,
7851 which creates a synchronization point for dependencies of the root
7852 device in early userspace. Initramfs builders must ensure that this
7853 target is now included in early userspace.
7854
e75690c3
ZJS
7855 Contributions from: Alban Crequy, Alexander Kuleshov, Alexander Shopov,
7856 Alex Crawford, Andre Klärner, Andrew Eikum, Beniamino Galvani, Benjamin
7857 Robin, Biao Lu, Bjørnar Ness, Calvin Owens, Christian Hesse, Clemens
7858 Gruber, Colin Guthrie, Daniel Drake, Daniele Medri, Daniel J Walsh,
7859 Daniel Mack, Dan Nicholson, daurnimator, David Herrmann, David
7860 R. Hedges, Elias Probst, Emmanuel Gil Peyrot, EMOziko, Evgeny
7861 Vereshchagin, Federico, Felipe Sateler, Filipe Brandenburger, Franck
7862 Bui, frankheckenbach, gdamjan, Georgia Brikis, Harald Hoyer, Hendrik
77ff6022
CG
7863 Brueckner, Hristo Venev, Iago López Galeiras, Ian Kelling, Ismo
7864 Puustinen, Jakub Wilk, Jaroslav Škarvada, Jeff Huang, Joel Holdsworth,
e75690c3
ZJS
7865 John Paul Adrian Glaubitz, Jonathan Boulle, kayrus, Klearchos
7866 Chaloulos, Kyle Russell, Lars Uebernickel, Lennart Poettering, Lubomir
7867 Rintel, Lukáš Nykrýn, Mantas Mikulėnas, Marcel Holtmann, Martin Pitt,
77ff6022
CG
7868 Michael Biebl, michaelolbrich, Michał Bartoszkiewicz, Michal Koutný,
7869 Michal Sekletar, Mike Frysinger, Mike Gilbert, Mingcong Bai, Ming Lin,
7870 mulkieran, muzena, Nalin Dahyabhai, Naohiro Aota, Nathan McSween,
e75690c3
ZJS
7871 Nicolas Braud-Santoni, Patrik Flykt, Peter Hutterer, Peter Mattern,
7872 Petr Lautrbach, Petros Angelatos, Piotr Drąg, Rabin Vincent, Robert
7873 Węcławski, Ronny Chevalier, Samuel Tardieu, Stefan Saraev, Stefan
7874 Schallenberg aka nafets227, Steven Siloti, Susant Sahani, Sylvain
7875 Plantefève, Taylor Smock, Tejun Heo, Thomas Blume, Thomas Haller,
7876 Thomas H. P. Andersen, Tobias Klauser, Tom Gundersen, topimiettinen,
46e40fab
ZJS
7877 Torstein Husebø, Umut Tezduyar Lindskog, Uwe Kleine-König, Victor Toso,
7878 Vinay Kulkarni, Vito Caputo, Vittorio G (VittGam), Vladimir Panteleev,
7879 Wieland Hoffmann, Wouter Verhelst, Yu Watanabe, Zbigniew
7880 Jędrzejewski-Szmek
e40a326c 7881
46e40fab 7882 — Fairfax, 2016-05-21
96515dbf 7883
61f32bff
MP
7884CHANGES WITH 229:
7885
d5f8b295
LP
7886 * The systemd-resolved DNS resolver service has gained a substantial
7887 set of new features, most prominently it may now act as a DNSSEC
7888 validating stub resolver. DNSSEC mode is currently turned off by
ed5f8840
ZJS
7889 default, but is expected to be turned on by default in one of the
7890 next releases. For now, we invite everybody to test the DNSSEC logic
7891 by setting DNSSEC=allow-downgrade in /etc/systemd/resolved.conf. The
7892 service also gained a full set of D-Bus interfaces, including calls
7893 to configure DNS and DNSSEC settings per link (for use by external
7894 network management software). systemd-resolved and systemd-networkd
7895 now distinguish between "search" and "routing" domains. The former
7896 are used to qualify single-label names, the latter are used purely
7897 for routing lookups within certain domains to specific links.
7898 resolved now also synthesizes RRs for all entries from /etc/hosts.
d5f8b295
LP
7899
7900 * The systemd-resolve tool (which is a client utility for
ed5f8840
ZJS
7901 systemd-resolved) has been improved considerably and is now fully
7902 supported and documented. Hence it has moved from /usr/lib/systemd to
7903 /usr/bin.
d5f8b295
LP
7904
7905 * /dev/disk/by-path/ symlink support has been (re-)added for virtio
7906 devices.
7907
a7c723c0
LP
7908 * The coredump collection logic has been reworked: when a coredump is
7909 collected it is now written to disk, compressed and processed
7910 (including stacktrace extraction) from a new instantiated service
7911 systemd-coredump@.service, instead of directly from the
7912 /proc/sys/kernel/core_pattern hook we provide. This is beneficial as
7913 processing large coredumps can take up a substantial amount of
7914 resources and time, and this previously happened entirely outside of
7915 systemd's service supervision. With the new logic the core_pattern
7916 hook only does minimal metadata collection before passing off control
7917 to the new instantiated service, which is configured with a time
7918 limit, a nice level and other settings to minimize negative impact on
7919 the rest of the system. Also note that the new logic will honour the
7920 RLIMIT_CORE setting of the crashed process, which now allows users
7921 and processes to turn off coredumping for their processes by setting
7922 this limit.
7923
7924 * The RLIMIT_CORE resource limit now defaults to "unlimited" for PID 1
7925 and all forked processes by default. Previously, PID 1 would leave
7926 the setting at "0" for all processes, as set by the kernel. Note that
7927 the resource limit traditionally has no effect on the generated
7928 coredumps on the system if the /proc/sys/kernel/core_pattern hook
7929 logic is used. Since the limit is now honoured (see above) its
7930 default has been changed so that the coredumping logic is enabled by
7931 default for all processes, while allowing specific opt-out.
7932
7933 * When the stacktrace is extracted from processes of system users, this
7934 is now done as "systemd-coredump" user, in order to sandbox this
7935 potentially security sensitive parsing operation. (Note that when
7936 processing coredumps of normal users this is done under the user ID
7937 of process that crashed, as before.) Packagers should take notice
7938 that it is now necessary to create the "systemd-coredump" system user
7939 and group at package installation time.
7940
d5f8b295
LP
7941 * The systemd-activate socket activation testing tool gained support
7942 for SOCK_DGRAM and SOCK_SEQPACKET sockets using the new --datagram
7943 and --seqpacket switches. It also has been extended to support both
7944 new-style and inetd-style file descriptor passing. Use the new
7945 --inetd switch to request inetd-style file descriptor passing.
7946
8968aea0
MP
7947 * Most systemd tools now honor a new $SYSTEMD_COLORS environment
7948 variable, which takes a boolean value. If set to false, ANSI color
d5f8b295
LP
7949 output is disabled in the tools even when run on a terminal that
7950 supports it.
7951
7952 * The VXLAN support in networkd now supports two new settings
7953 DestinationPort= and PortRange=.
7954
7955 * A new systemd.machine_id= kernel command line switch has been added,
7956 that may be used to set the machine ID in /etc/machine-id if it is
7957 not initialized yet. This command line option has no effect if the
7958 file is already initialized.
7959
7960 * systemd-nspawn gained a new --as-pid2 switch that invokes any
7961 specified command line as PID 2 rather than PID 1 in the
ed5f8840
ZJS
7962 container. In this mode PID 1 is a minimal stub init process that
7963 implements the special POSIX and Linux semantics of PID 1 regarding
7964 signal and child process management. Note that this stub init process
7965 is implemented in nspawn itself and requires no support from the
7966 container image. This new logic is useful to support running
7967 arbitrary commands in the container, as normal processes are
d5f8b295
LP
7968 generally not prepared to run as PID 1.
7969
7970 * systemd-nspawn gained a new --chdir= switch for setting the current
7971 working directory for the process started in the container.
7972
ed5f8840
ZJS
7973 * "journalctl /dev/sda" will now output all kernel log messages for
7974 specified device from the current boot, in addition to all devices
7975 that are parents of it. This should make log output about devices
7976 pretty useful, as long as kernel drivers attach enough metadata to
7977 the log messages. (The usual SATA drivers do.)
d5f8b295
LP
7978
7979 * The sd-journal API gained two new calls
7980 sd_journal_has_runtime_files() and sd_journal_has_persistent_files()
7981 that report whether log data from /run or /var has been found.
7982
7983 * journalctl gained a new switch "--fields" that prints all journal
7984 record field names currently in use in the journal. This is backed
7985 by two new sd-journal API calls sd_journal_enumerate_fields() and
7986 sd_journal_restart_fields().
7987
7988 * Most configurable timeouts in systemd now expect an argument of
8968aea0
MP
7989 "infinity" to turn them off, instead of "0" as before. The semantics
7990 from now on is that a timeout of "0" means "now", and "infinity"
7991 means "never". To maintain backwards compatibility, "0" continues to
7992 turn off previously existing timeout settings.
d5f8b295
LP
7993
7994 * "systemctl reload-or-try-restart" has been renamed to "systemctl
8968aea0
MP
7995 try-reload-or-restart" to clarify what it actually does: the "try"
7996 logic applies to both reloading and restarting, not just restarting.
7997 The old name continues to be accepted for compatibility.
7998
7999 * On boot-up, when PID 1 detects that the system clock is behind the
8000 release date of the systemd version in use, the clock is now set
8001 to the latter. Previously, this was already done in timesyncd, in order
d5f8b295
LP
8002 to avoid running with clocks set to the various clock epochs such as
8003 1902, 1938 or 1970. With this change the logic is now done in PID 1
8004 in addition to timesyncd during early boot-up, so that it is enforced
8005 before the first process is spawned by systemd. Note that the logic
8006 in timesyncd remains, as it is more comprehensive and ensures
ed5f8840 8007 clock monotonicity by maintaining a persistent timestamp file in
d5f8b295
LP
8008 /var. Since /var is generally not available in earliest boot or the
8009 initrd, this part of the logic remains in timesyncd, and is not done
8010 by PID 1.
8011
50f48ad3
DM
8012 * Support for tweaking details in net_cls.class_id through the
8013 NetClass= configuration directive has been removed, as the kernel
8014 people have decided to deprecate that controller in cgroup v2.
8015 Userspace tools such as nftables are moving over to setting rules
8016 that are specific to the full cgroup path of a task, which obsoletes
8017 these controllers anyway. The NetClass= directive is kept around for
8018 legacy compatibility reasons. For a more in-depth description of the
8019 kernel change, please refer to the respective upstream commit:
8020
8021 https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=bd1060a1d671
8022
d5f8b295 8023 * A new service setting RuntimeMaxSec= has been added that may be used
8968aea0 8024 to specify a maximum runtime for a service. If the timeout is hit, the
d5f8b295
LP
8025 service is terminated and put into a failure state.
8026
8968aea0
MP
8027 * A new service setting AmbientCapabilities= has been added. It allows
8028 configuration of additional Linux process capabilities that are
8029 passed to the activated processes. This is only available on very
d5f8b295
LP
8030 recent kernels.
8031
8032 * The process resource limit settings in service units may now be used
8033 to configure hard and soft limits individually.
8034
8968aea0 8035 * The various libsystemd APIs such as sd-bus or sd-event now publicly
ed5f8840
ZJS
8036 expose support for gcc's __attribute__((cleanup())) C extension.
8037 Specifically, for many object destructor functions alternative
8038 versions have been added that have names suffixed with "p" and take a
8039 pointer to a pointer to the object to destroy, instead of just a
8040 pointer to the object itself. This is useful because these destructor
8041 functions may be used directly as parameters to the cleanup
8042 construct. Internally, systemd has been a heavy user of this GCC
8043 extension for a long time, and with this change similar support is
8044 now available to consumers of the library outside of systemd. Note
8968aea0 8045 that by using this extension in your sources compatibility with old
ed5f8840
ZJS
8046 and strictly ANSI compatible C compilers is lost. However, all gcc or
8047 LLVM versions of recent years support this extension.
d5f8b295
LP
8048
8049 * Timer units gained support for a new setting RandomizedDelaySec= that
8968aea0
MP
8050 allows configuring some additional randomized delay to the configured
8051 time. This is useful to spread out timer events to avoid load peaks in
8052 clusters or larger setups.
d5f8b295
LP
8053
8054 * Calendar time specifications now support sub-second accuracy.
8055
8056 * Socket units now support listening on SCTP and UDP-lite protocol
8057 sockets.
8058
8059 * The sd-event API now comes with a full set of man pages.
8060
8061 * Older versions of systemd contained experimental support for
8062 compressing journal files and coredumps with the LZ4 compressor that
8063 was not compatible with the lz4 binary (due to API limitations of the
8064 lz4 library). This support has been removed; only support for files
8065 compatible with the lz4 binary remains. This LZ4 logic is now
8066 officially supported and no longer considered experimental.
8067
8068 * The dkr image import logic has been removed again from importd. dkr's
8069 micro-services focus doesn't fit into the machine image focus of
8070 importd, and quickly got out of date with the upstream dkr API.
8071
8072 * Creation of the /run/lock/lockdev/ directory was dropped from
8073 tmpfiles.d/legacy.conf. Better locking mechanisms like flock() have
61f32bff
MP
8074 been available for many years. If you still need this, you need to
8075 create your own tmpfiles.d config file with:
d5f8b295
LP
8076
8077 d /run/lock/lockdev 0775 root lock -
61f32bff 8078
dd95b381
LP
8079 * The settings StartLimitBurst=, StartLimitInterval=, StartLimitAction=
8080 and RebootArgument= have been moved from the [Service] section of
8081 unit files to [Unit], and they are now supported on all unit types,
8082 not just service units. Of course, systemd will continue to
8083 understand these settings also at the old location, in order to
8084 maintain compatibility.
8085
3545ab35
LP
8086 Contributions from: Abdo Roig-Maranges, Alban Crequy, Aleksander
8087 Adamowski, Alexander Kuleshov, Andreas Pokorny, Andrei Borzenkov,
8088 Andrew Wilcox, Arthur Clement, Beniamino Galvani, Casey Schaufler,
8089 Chris Atkinson, Chris Mayo, Christian Hesse, Damjan Georgievski, Dan
8090 Dedrick, Daniele Medri, Daniel J Walsh, Daniel Korostil, Daniel Mack,
8091 David Herrmann, Dimitri John Ledkov, Dominik Hannen, Douglas Christman,
8092 Evgeny Vereshchagin, Filipe Brandenburger, Franck Bui, Gabor Kelemen,
8093 Harald Hoyer, Hayden Walles, Helmut Grohne, Henrik Kaare Poulsen,
8094 Hristo Venev, Hui Wang, Indrajit Raychaudhuri, Ismo Puustinen, Jakub
8095 Wilk, Jan Alexander Steffens (heftig), Jan Engelhardt, Jan Synacek,
8096 Joost Bremmer, Jorgen Schaefer, Karel Zak, Klearchos Chaloulos,
8097 lc85446, Lennart Poettering, Lukas Nykryn, Mantas Mikulėnas, Marcel
8098 Holtmann, Martin Pitt, Michael Biebl, Michael Olbrich, Michael Scherer,
8099 Michał Górny, Michal Sekletar, Nicolas Cornu, Nicolas Iooss, Nils
8100 Carlson, nmartensen, nnz1024, Patrick Ohly, Peter Hutterer, Phillip Sz,
8101 Ronny Chevalier, Samu Kallio, Shawn Landden, Stef Walter, Susant
8102 Sahani, Sylvain Plantefève, Tadej Janež, Thomas Hindoe Paaboel
8103 Andersen, Tom Gundersen, Torstein Husebø, Umut Tezduyar Lindskog, Vito
8104 Caputo, WaLyong Cho, Yu Watanabe, Zbigniew Jędrzejewski-Szmek
8105
ccddd104 8106 — Berlin, 2016-02-11
61f32bff 8107
a11c7ea5
LP
8108CHANGES WITH 228:
8109
a11c7ea5
LP
8110 * A number of properties previously only settable in unit
8111 files are now also available as properties to set when
8112 creating transient units programmatically via the bus, as it
8113 is exposed with systemd-run's --property=
8114 setting. Specifically, these are: SyslogIdentifier=,
8115 SyslogLevelPrefix=, TimerSlackNSec=, OOMScoreAdjust=,
8116 EnvironmentFile=, ReadWriteDirectories=,
8117 ReadOnlyDirectories=, InaccessibleDirectories=,
8118 ProtectSystem=, ProtectHome=, RuntimeDirectory=.
8119
28c85daf
LP
8120 * When creating transient services via the bus API it is now
8121 possible to pass in a set of file descriptors to use as
8122 STDIN/STDOUT/STDERR for the invoked process.
a11c7ea5 8123
f1f8a5a5
LP
8124 * Slice units may now be created transiently via the bus APIs,
8125 similar to the way service and scope units may already be
8126 created transiently.
8127
a11c7ea5
LP
8128 * Wherever systemd expects a calendar timestamp specification
8129 (like in journalctl's --since= and --until= switches) UTC
8130 timestamps are now supported. Timestamps suffixed with "UTC"
8131 are now considered to be in Universal Time Coordinated
8132 instead of the local timezone. Also, timestamps may now
815bb5bd 8133 optionally be specified with sub-second accuracy. Both of
a11c7ea5
LP
8134 these additions also apply to recurring calendar event
8135 specification, such as OnCalendar= in timer units.
8136
28c85daf
LP
8137 * journalctl gained a new "--sync" switch that asks the
8138 journal daemon to write all so far unwritten log messages to
8139 disk and sync the files, before returning.
8140
a11c7ea5
LP
8141 * systemd-tmpfiles learned two new line types "q" and "Q" that
8142 operate like "v", but also set up a basic btrfs quota
8143 hierarchy when used on a btrfs file system with quota
8144 enabled.
8145
f1f8a5a5
LP
8146 * tmpfiles' "v", "q" and "Q" will now create a plain directory
8147 instead of a subvolume (even on a btrfs file system) if the
8148 root directory is a plain directory, and not a
8149 subvolume. This should simplify things with certain chroot()
8150 environments which are not aware of the concept of btrfs
8151 subvolumes.
8152
a11c7ea5
LP
8153 * systemd-detect-virt gained a new --chroot switch to detect
8154 whether execution takes place in a chroot() environment.
8155
28c85daf 8156 * CPUAffinity= now takes CPU index ranges in addition to
a11c7ea5
LP
8157 individual indexes.
8158
28c85daf 8159 * The various memory-related resource limit settings (such as
1d3a473b 8160 LimitAS=) now understand the usual K, M, G, … suffixes to
28c85daf 8161 the base of 1024 (IEC). Similar, the time-related resource
1d3a473b
ZJS
8162 limit settings understand the usual min, h, day, … suffixes
8163 now.
28c85daf 8164
f1f8a5a5
LP
8165 * There's a new system.conf setting DefaultTasksMax= to
8166 control the default TasksMax= setting for services and
8167 scopes running on the system. (TasksMax= is the primary
8168 setting that exposes the "pids" cgroup controller on systemd
8169 and was introduced in the previous systemd release.) The
8170 setting now defaults to 512, which means services that are
8171 not explicitly configured otherwise will only be able to
8172 create 512 processes or threads at maximum, from this
8173 version on. Note that this means that thread- or
8174 process-heavy services might need to be reconfigured to set
8175 TasksMax= to a higher value. It is sufficient to set
8176 TasksMax= in these specific unit files to a higher value, or
8177 even "infinity". Similar, there's now a logind.conf setting
8178 UserTasksMax= that defaults to 4096 and limits the total
8179 number of processes or tasks each user may own
8180 concurrently. nspawn containers also have the TasksMax=
8181 value set by default now, to 8192. Note that all of this
8182 only has an effect if the "pids" cgroup controller is
8183 enabled in the kernel. The general benefit of these changes
8184 should be a more robust and safer system, that provides a
8185 certain amount of per-service fork() bomb protection.
8186
28c85daf
LP
8187 * systemd-nspawn gained the new --network-veth-extra= switch
8188 to define additional and arbitrarily-named virtual Ethernet
8189 links between the host and the container.
8190
8191 * A new service execution setting PassEnvironment= has been
8192 added that allows importing select environment variables
8193 from PID1's environment block into the environment block of
8194 the service.
8195
ddb4b0d3 8196 * Timer units gained support for a new RemainAfterElapse=
595bfe7d 8197 setting which takes a boolean argument. It defaults to on,
ddb4b0d3
LP
8198 exposing behaviour unchanged to previous releases. If set to
8199 off, timer units are unloaded after they elapsed if they
8200 cannot elapse again. This is particularly useful for
8201 transient timer units, which shall not stay around longer
8202 than until they first elapse.
8203
a11c7ea5 8204 * systemd will now bump the net.unix.max_dgram_qlen to 512 by
28c85daf
LP
8205 default now (the kernel default is 16). This is beneficial
8206 for avoiding blocking on AF_UNIX/SOCK_DGRAM sockets since it
a11c7ea5
LP
8207 allows substantially larger numbers of queued
8208 datagrams. This should increase the capability of systemd to
8209 parallelize boot-up, as logging and sd_notify() are unlikely
8210 to stall execution anymore. If you need to change the value
8211 from the new defaults, use the usual sysctl.d/ snippets.
8212
28c85daf
LP
8213 * The compression framing format used by the journal or
8214 coredump processing has changed to be in line with what the
8215 official LZ4 tools generate. LZ4 compression support in
8216 systemd was considered unsupported previously, as the format
8217 was not compatible with the normal tools. With this release
8218 this has changed now, and it is hence safe for downstream
8219 distributions to turn it on. While not compressing as well
815bb5bd 8220 as the XZ, LZ4 is substantially faster, which makes
28c85daf
LP
8221 it a good default choice for the compression logic in the
8222 journal and in coredump handling.
a11c7ea5 8223
28c85daf
LP
8224 * Any reference to /etc/mtab has been dropped from
8225 systemd. The file has been obsolete since a while, but
8226 systemd refused to work on systems where it was incorrectly
815bb5bd 8227 set up (it should be a symlink or non-existent). Please make
28c85daf
LP
8228 sure to update to util-linux 2.27.1 or newer in conjunction
8229 with this systemd release, which also drops any reference to
8230 /etc/mtab. If you maintain a distribution make sure that no
8231 software you package still references it, as this is a
8232 likely source of bugs. There's also a glibc bug pending,
8233 asking for removal of any reference to this obsolete file:
8234
8235 https://sourceware.org/bugzilla/show_bug.cgi?id=19108
a11c7ea5 8236
d5bd92bb
LP
8237 Note that only util-linux versions built with
8238 --enable-libmount-force-mountinfo are supported.
8239
a11c7ea5
LP
8240 * Support for the ".snapshot" unit type has been removed. This
8241 feature turned out to be little useful and little used, and
8242 has now been removed from the core and from systemctl.
8243
b9e2f7eb
LP
8244 * The dependency types RequiresOverridable= and
8245 RequisiteOverridable= have been removed from systemd. They
8246 have been used only very sparingly to our knowledge and
8247 other options that provide a similar effect (such as
8248 systemctl --mode=ignore-dependencies) are much more useful
8249 and commonly used. Moreover, they were only half-way
8250 implemented as the option to control behaviour regarding
8251 these dependencies was never added to systemctl. By removing
8252 these dependency types the execution engine becomes a bit
8253 simpler. Unit files that use these dependencies should be
8254 changed to use the non-Overridable dependency types
8255 instead. In fact, when parsing unit files with these
8256 options, that's what systemd will automatically convert them
8257 too, but it will also warn, asking users to fix the unit
8258 files accordingly. Removal of these dependency types should
8259 only affect a negligible number of unit files in the wild.
8260
8261 * Behaviour of networkd's IPForward= option changed
8262 (again). It will no longer maintain a per-interface setting,
8263 but propagate one way from interfaces where this is enabled
8264 to the global kernel setting. The global setting will be
8265 enabled when requested by a network that is set up, but
8266 never be disabled again. This change was made to make sure
8267 IPv4 and IPv6 behaviour regarding packet forwarding is
8268 similar (as the Linux IPv6 stack does not support
8269 per-interface control of this setting) and to minimize
8270 surprises.
8271
28c85daf
LP
8272 * In unit files the behaviour of %u, %U, %h, %s has
8273 changed. These specifiers will now unconditionally resolve
8274 to the various user database fields of the user that the
8275 systemd instance is running as, instead of the user
8276 configured in the specific unit via User=. Note that this
8277 effectively doesn't change much, as resolving of these
8278 specifiers was already turned off in the --system instance
8279 of systemd, as we cannot do NSS lookups from PID 1. In the
8280 --user instance of systemd these specifiers where correctly
8281 resolved, but hardly made any sense, since the user instance
8282 lacks privileges to do user switches anyway, and User= is
ce830873 8283 hence useless. Moreover, even in the --user instance of
28c85daf
LP
8284 systemd behaviour was awkward as it would only take settings
8285 from User= assignment placed before the specifier into
8286 account. In order to unify and simplify the logic around
8287 this the specifiers will now always resolve to the
8288 credentials of the user invoking the manager (which in case
8289 of PID 1 is the root user).
8290
8291 Contributions from: Andrew Jones, Beniamino Galvani, Boyuan
8292 Yang, Daniel Machon, Daniel Mack, David Herrmann, David
8293 Reynolds, David Strauss, Dongsu Park, Evgeny Vereshchagin,
f1f8a5a5
LP
8294 Felipe Sateler, Filipe Brandenburger, Franck Bui, Hristo
8295 Venev, Iago López Galeiras, Jan Engelhardt, Jan Janssen, Jan
8296 Synacek, Jesus Ornelas Aguayo, Karel Zak, kayrus, Kay Sievers,
8297 Lennart Poettering, Liu Yuan Yuan, Mantas Mikulėnas, Marcel
8298 Holtmann, Marcin Bachry, Marcos Alano, Marcos Mello, Mark
8299 Theunissen, Martin Pitt, Michael Marineau, Michael Olbrich,
8300 Michal Schmidt, Michal Sekletar, Mirco Tischler, Nick Owens,
8301 Nicolas Cornu, Patrik Flykt, Peter Hutterer, reverendhomer,
8302 Ronny Chevalier, Sangjung Woo, Seong-ho Cho, Shawn Landden,
8303 Susant Sahani, Thomas Haller, Thomas Hindoe Paaboel Andersen,
8304 Tom Gundersen, Torstein Husebø, Vito Caputo, Zbigniew
8305 Jędrzejewski-Szmek
28c85daf 8306
ccddd104 8307 — Berlin, 2015-11-18
a11c7ea5 8308
c97e586d
DM
8309CHANGES WITH 227:
8310
8311 * systemd now depends on util-linux v2.27. More specifically,
8312 the newly added mount monitor feature in libmount now
8313 replaces systemd's former own implementation.
8314
8315 * libmount mandates /etc/mtab not to be regular file, and
8316 systemd now enforces this condition at early boot.
8317 /etc/mtab has been deprecated and warned about for a very
8318 long time, so systems running systemd should already have
8319 stopped having this file around as anything else than a
8320 symlink to /proc/self/mounts.
8321
d046fb93
LP
8322 * Support for the "pids" cgroup controller has been added. It
8323 allows accounting the number of tasks in a cgroup and
c97e586d
DM
8324 enforcing limits on it. This adds two new setting
8325 TasksAccounting= and TasksMax= to each unit, as well as a
6fd5517b 8326 global option DefaultTasksAccounting=.
c97e586d
DM
8327
8328 * Support for the "net_cls" cgroup controller has been added.
fe08a30b
LP
8329 It allows assigning a net class ID to each task in the
8330 cgroup, which can then be used in firewall rules and traffic
8331 shaping configurations. Note that the kernel netfilter net
8332 class code does not currently work reliably for ingress
8333 packets on unestablished sockets.
c97e586d
DM
8334
8335 This adds a new config directive called NetClass= to CGroup
6fd5517b 8336 enabled units. Allowed values are positive numbers for fixed
c97e586d
DM
8337 assignments and "auto" for picking a free value
8338 automatically.
8339
21d86c61
DM
8340 * 'systemctl is-system-running' now returns 'offline' if the
8341 system is not booted with systemd. This command can now be
8342 used as a substitute for 'systemd-notify --booted'.
8343
8344 * Watchdog timeouts have been increased to 3 minutes for all
8345 in-tree service files. Apparently, disk IO issues are more
8346 frequent than we hoped, and user reported >1 minute waiting
8347 for disk IO.
8348
8349 * 'machine-id-commit' functionality has been merged into
8350 'machine-id-setup --commit'. The separate binary has been
8351 removed.
8352
d046fb93
LP
8353 * The WorkingDirectory= directive in unit files may now be set
8354 to the special value '~'. In this case, the working
8355 directory is set to the home directory of the user
8356 configured in User=.
21d86c61 8357
fe08a30b
LP
8358 * "machinectl shell" will now open the shell in the home
8359 directory of the selected user by default.
8360
21d86c61 8361 * The CrashChVT= configuration file setting is renamed to
d046fb93
LP
8362 CrashChangeVT=, following our usual logic of not
8363 abbreviating unnecessarily. The old directive is still
8364 supported for compat reasons. Also, this directive now takes
8365 an integer value between 1 and 63, or a boolean value. The
8366 formerly supported '-1' value for disabling stays around for
8367 compat reasons.
21d86c61 8368
fe08a30b 8369 * The PrivateTmp=, PrivateDevices=, PrivateNetwork=,
8b5f9d15 8370 NoNewPrivileges=, TTYPath=, WorkingDirectory= and
fe08a30b
LP
8371 RootDirectory= properties can now be set for transient
8372 units.
8373
8374 * The systemd-analyze tool gained a new "set-log-target" verb
8375 to change the logging target the system manager logs to
8376 dynamically during runtime. This is similar to how
8377 "systemd-analyze set-log-level" already changes the log
8378 level.
8379
8380 * In nspawn /sys is now mounted as tmpfs, with only a selected
8381 set of subdirectories mounted in from the real sysfs. This
8382 enhances security slightly, and is useful for ensuring user
8383 namespaces work correctly.
8384
8385 * Support for USB FunctionFS activation has been added. This
8386 allows implementation of USB gadget services that are
8387 activated as soon as they are requested, so that they don't
595bfe7d 8388 have to run continuously, similar to classic socket
fe08a30b
LP
8389 activation.
8390
8391 * The "systemctl exit" command now optionally takes an
8392 additional parameter that sets the exit code to return from
8393 the systemd manager when exiting. This is only relevant when
8394 running the systemd user instance, or when running the
8395 system instance in a container.
8396
8397 * sd-bus gained the new API calls sd_bus_path_encode_many()
8398 and sd_bus_path_decode_many() that allow easy encoding and
8399 decoding of multiple identifier strings inside a D-Bus
8400 object path. Another new call sd_bus_default_flush_close()
8401 has been added to flush and close per-thread default
8402 connections.
8403
8404 * systemd-cgtop gained support for a -M/--machine= switch to
8405 show the control groups within a certain container only.
8406
8407 * "systemctl kill" gained support for an optional --fail
8408 switch. If specified the requested operation will fail of no
8409 processes have been killed, because the unit had no
8410 processes attached, or similar.
8411
bdba9227
DM
8412 * A new systemd.crash_reboot=1 kernel command line option has
8413 been added that triggers a reboot after crashing. This can
8414 also be set through CrashReboot= in systemd.conf.
8415
8416 * The RuntimeDirectory= setting now understands unit
8417 specifiers like %i or %f.
8418
ce830873 8419 * A new (still internal) library API sd-ipv4acd has been added,
fe08a30b
LP
8420 that implements address conflict detection for IPv4. It's
8421 based on code from sd-ipv4ll, and will be useful for
8422 detecting DHCP address conflicts.
8423
bdba9227
DM
8424 * File descriptors passed during socket activation may now be
8425 named. A new API sd_listen_fds_with_names() is added to
a8eaaee7 8426 access the names. The default names may be overridden,
bdba9227
DM
8427 either in the .socket file using the FileDescriptorName=
8428 parameter, or by passing FDNAME= when storing the file
8429 descriptors using sd_notify().
fe08a30b 8430
d046fb93
LP
8431 * systemd-networkd gained support for:
8432
0053598f 8433 - Setting the IPv6 Router Advertisement settings via
edf4126f 8434 IPv6AcceptRouterAdvertisements= in .network files.
d046fb93
LP
8435
8436 - Configuring the HelloTimeSec=, MaxAgeSec= and
8437 ForwardDelaySec= bridge parameters in .netdev files.
8438
8439 - Configuring PreferredSource= for static routes in
edf4126f 8440 .network files.
fe08a30b 8441
bdba9227
DM
8442 * The "ask-password" framework used to query for LUKS harddisk
8443 passwords or SSL passwords during boot gained support for
8444 caching passwords in the kernel keyring, if it is
8445 available. This makes sure that the user only has to type in
8446 a passphrase once if there are multiple objects to unlock
8447 with the same one. Previously, such password caching was
8448 available only when Plymouth was used; this moves the
8449 caching logic into the systemd codebase itself. The
8450 "systemd-ask-password" utility gained a new --keyname=
8451 switch to control which kernel keyring key to use for
8452 caching a password in. This functionality is also useful for
8453 enabling display managers such as gdm to automatically
8454 unlock the user's GNOME keyring if its passphrase, the
8455 user's password and the harddisk password are the same, if
8456 gdm-autologin is used.
fe08a30b
LP
8457
8458 * When downloading tar or raw images using "machinectl
8459 pull-tar" or "machinectl pull-raw", a matching ".nspawn"
8460 file is now also downloaded, if it is available and stored
8461 next to the image file.
c97e586d 8462
91d0d699
LP
8463 * Units of type ".socket" gained a new boolean setting
8464 Writable= which is only useful in conjunction with
8465 ListenSpecial=. If true, enables opening the specified
8466 special file in O_RDWR mode rather than O_RDONLY mode.
8467
8468 * systemd-rfkill has been reworked to become a singleton
8469 service that is activated through /dev/rfkill on each rfkill
8470 state change and saves the settings to disk. This way,
8471 systemd-rfkill is now compatible with devices that exist
8472 only intermittendly, and even restores state if the previous
8473 system shutdown was abrupt rather than clean.
8474
d046fb93
LP
8475 * The journal daemon gained support for vacuuming old journal
8476 files controlled by the number of files that shall remain,
8477 in addition to the already existing control by size and by
8478 date. This is useful as journal interleaving performance
6dd6a9c4 8479 degrades with too many separate journal files, and allows
d046fb93
LP
8480 putting an effective limit on them. The new setting defaults
8481 to 100, but this may be changed by setting SystemMaxFiles=
8482 and RuntimeMaxFiles= in journald.conf. Also, the
8483 "journalctl" tool gained the new --vacuum-files= switch to
8484 manually vacuum journal files to leave only the specified
8485 number of files in place.
c48eb61f 8486
bdba9227
DM
8487 * udev will now create /dev/disk/by-path links for ATA devices
8488 on kernels where that is supported.
c30f086f 8489
efce0ffe 8490 * Galician, Serbian, Turkish and Korean translations were added.
c97e586d 8491
61e6771c
LP
8492 Contributions from: Aaro Koskinen, Alban Crequy, Beniamino
8493 Galvani, Benjamin Robin, Branislav Blaskovic, Chen-Han Hsiao
8494 (Stanley), Daniel Buch, Daniel Machon, Daniel Mack, David
8495 Herrmann, David Milburn, doubleodoug, Evgeny Vereshchagin,
8496 Felipe Franciosi, Filipe Brandenburger, Fran Dieguez, Gabriel
8497 de Perthuis, Georg Müller, Hans de Goede, Hendrik Brueckner,
8498 Ivan Shapovalov, Jacob Keller, Jan Engelhardt, Jan Janssen,
8499 Jan Synacek, Jens Kuske, Karel Zak, Kay Sievers, Krzesimir
8500 Nowak, Krzysztof Kotlenga, Lars Uebernickel, Lennart
8501 Poettering, Lukas Nykryn, Łukasz Stelmach, Maciej Wereski,
8502 Marcel Holtmann, Marius Thesing, Martin Pitt, Michael Biebl,
8503 Michael Gebetsroither, Michal Schmidt, Michal Sekletar, Mike
8504 Gilbert, Muhammet Kara, nazgul77, Nicolas Cornu, NoXPhasma,
8505 Olof Johansson, Patrik Flykt, Pawel Szewczyk, reverendhomer,
8506 Ronny Chevalier, Sangjung Woo, Seong-ho Cho, Susant Sahani,
8507 Sylvain Plantefève, Thomas Haller, Thomas Hindoe Paaboel
8508 Andersen, Tom Gundersen, Tom Lyon, Viktar Vauchkevich,
8509 Zbigniew Jędrzejewski-Szmek, Марко М. Костић
8510
ccddd104 8511 — Berlin, 2015-10-07
c97e586d 8512
c9912c5e
DH
8513CHANGES WITH 226:
8514
5e8d4254
LP
8515 * The DHCP implementation of systemd-networkd gained a set of
8516 new features:
8517
8518 - The DHCP server now supports emitting DNS and NTP
8519 information. It may be enabled and configured via
8520 EmitDNS=, DNS=, EmitNTP=, and NTP=. If transmission of DNS
8521 and NTP information is enabled, but no servers are
8522 configured, the corresponding uplink information (if there
8523 is any) is propagated.
8524
8525 - Server and client now support transmission and reception
8526 of timezone information. It can be configured via the
8527 newly introduced network options UseTimezone=,
8528 EmitTimezone=, and Timezone=. Transmission of timezone
8529 information is enabled between host and containers by
8530 default now: the container will change its local timezone
8531 to what the host has set.
8532
8533 - Lease timeouts can now be configured via
8534 MaxLeaseTimeSec= and DefaultLeaseTimeSec=.
8535
8536 - The DHCP server improved on the stability of
8537 leases. Clients are more likely to get the same lease
8538 information back, even if the server loses state.
8539
8540 - The DHCP server supports two new configuration options to
8541 control the lease address pool metrics, PoolOffset= and
8542 PoolSize=.
8543
8544 * The encapsulation limit of tunnels in systemd-networkd may
8545 now be configured via 'EncapsulationLimit='. It allows
8546 modifying the maximum additional levels of encapsulation
8547 that are permitted to be prepended to a packet.
8548
8549 * systemd now supports the concept of user buses replacing
8550 session buses, if used with dbus-1.10 (and enabled via dbus
8551 --enable-user-session). It previously only supported this on
8552 kdbus-enabled systems, and this release expands this to
8553 'dbus-daemon' systems.
8554
8555 * systemd-networkd now supports predictable interface names
8556 for virtio devices.
8557
8558 * systemd now optionally supports the new Linux kernel
8559 "unified" control group hierarchy. If enabled via the kernel
8560 command-line option 'systemd.unified_cgroup_hierarchy=1',
8561 systemd will try to mount the unified cgroup hierarchy
8562 directly on /sys/fs/cgroup. If not enabled, or not
8563 available, systemd will fall back to the legacy cgroup
8564 hierarchy setup, as before. Host system and containers can
8565 mix and match legacy and unified hierarchies as they
856ca72b 8566 wish. nspawn understands the $UNIFIED_CGROUP_HIERARCHY
5e8d4254
LP
8567 environment variable to individually select the hierarchy to
8568 use for executed containers. By default, nspawn will use the
8569 unified hierarchy for the containers if the host uses the
8570 unified hierarchy, and the legacy hierarchy otherwise.
8571 Please note that at this point the unified hierarchy is an
8572 experimental kernel feature and is likely to change in one
8573 of the next kernel releases. Therefore, it should not be
8574 enabled by default in downstream distributions yet. The
8575 minimum required kernel version for the unified hierarchy to
8576 work is 4.2. Note that when the unified hierarchy is used
8577 for the first time delegated access to controllers is
8578 safe. Because of this systemd-nspawn containers will get
8579 access to controllers now, as will systemd user
8580 sessions. This means containers and user sessions may now
8581 manage their own resources, partitioning up what the system
8582 grants them.
8583
8584 * A new special scope unit "init.scope" has been introduced
8585 that encapsulates PID 1 of the system. It may be used to
8586 determine resource usage and enforce resource limits on PID
8587 1 itself. PID 1 hence moved out of the root of the control
8588 group tree.
8589
8590 * The cgtop tool gained support for filtering out kernel
8591 threads when counting tasks in a control group. Also, the
8592 count of processes is now recursively summed up by
8593 default. Two options -k and --recursive= have been added to
8594 revert to old behaviour. The tool has also been updated to
8595 work correctly in containers now.
8596
8597 * systemd-nspawn's --bind= and --bind-ro= options have been
8598 extended to allow creation of non-recursive bind mounts.
8599
c626bf1d
DM
8600 * libsystemd gained two new calls sd_pid_get_cgroup() and
8601 sd_peer_get_cgroup() which return the control group path of
5e8d4254
LP
8602 a process or peer of a connected AF_UNIX socket. This
8603 function call is particularly useful when implementing
8604 delegated subtrees support in the control group hierarchy.
8605
8606 * The "sd-event" event loop API of libsystemd now supports
8607 correct dequeuing of real-time signals, without losing
8608 signal events.
8609
d35f51ea
ZJS
8610 * When systemd requests a polkit decision when managing units it
8611 will now add additional fields to the request, including unit
8612 name and desired operation. This enables more powerful polkit
8613 policies, that make decisions depending on these parameters.
c9912c5e 8614
47f5a38c
LP
8615 * nspawn learnt support for .nspawn settings files, that may
8616 accompany the image files or directories of containers, and
8617 may contain additional settings for the container. This is
8618 an alternative to configuring container parameters via the
8619 nspawn command line.
8620
2f77decc
LP
8621 Contributions from: Cristian Rodríguez, Daniel Mack, David
8622 Herrmann, Eugene Yakubovich, Evgeny Vereshchagin, Filipe
8623 Brandenburger, Hans de Goede, Jan Alexander Steffens, Jan
8624 Synacek, Kay Sievers, Lennart Poettering, Mangix, Marcel
8625 Holtmann, Martin Pitt, Michael Biebl, Michael Chapman, Michal
8626 Sekletar, Peter Hutterer, Piotr Drąg, reverendhomer, Robin
8627 Hack, Susant Sahani, Sylvain Pasche, Thomas Hindoe Paaboel
23d08d1b 8628 Andersen, Tom Gundersen, Torstein Husebø
c9912c5e 8629
ccddd104 8630 — Berlin, 2015-09-08
c9912c5e 8631
ec5249a2
DM
8632CHANGES WITH 225:
8633
5e8d4254
LP
8634 * machinectl gained a new verb 'shell' which opens a fresh
8635 shell on the target container or the host. It is similar to
8636 the existing 'login' command of machinectl, but spawns the
8637 shell directly without prompting for username or
8638 password. The pseudo machine '.host' now refers to the local
8639 host and is used by default. Hence, 'machinectl shell' can
8640 be used as replacement for 'su -' which spawns a session as
8641 a fresh systemd unit in a way that is fully isolated from
8642 the originating session.
8643
8644 * systemd-networkd learned to cope with private-zone DHCP
8645 options and allows other programs to query the values.
8646
8647 * SELinux access control when enabling/disabling units is no
d35f51ea
ZJS
8648 longer enforced with this release. The previous implementation
8649 was incorrect, and a new corrected implementation is not yet
8650 available. As unit file operations are still protected via
8651 polkit and D-Bus policy this is not a security problem. Yet,
8652 distributions which care about optimal SELinux support should
8653 probably not stabilize on this release.
5e8d4254
LP
8654
8655 * sd-bus gained support for matches of type "arg0has=", that
8656 test for membership of strings in string arrays sent in bus
8657 messages.
8658
8659 * systemd-resolved now dumps the contents of its DNS and LLMNR
8660 caches to the logs on reception of the SIGUSR1 signal. This
8661 is useful to debug DNS behaviour.
8662
8663 * The coredumpctl tool gained a new --directory= option to
8664 operate on journal files in a specific directory.
8665
8666 * "systemctl reboot" and related commands gained a new
8667 "--message=" option which may be used to set a free-text
8668 wall message when shutting down or rebooting the
8669 system. This message is also logged, which is useful for
8670 figuring out the reason for a reboot or shutdown a
8671 posteriori.
8672
8673 * The "systemd-resolve-host" tool's -i switch now takes
8674 network interface numbers as alternative to interface names.
8675
8676 * A new unit file setting for services has been introduced:
8677 UtmpMode= allows configuration of how precisely systemd
8678 handles utmp and wtmp entries for the service if this is
8679 enabled. This allows writing services that appear similar to
8680 user sessions in the output of the "w", "who", "last" and
8681 "lastlog" tools.
8682
8683 * systemd-resolved will now locally synthesize DNS resource
8684 records for the "localhost" and "gateway" domains as well as
8685 the local hostname. This should ensure that clients querying
8686 RRs via resolved will get similar results as those going via
8687 NSS, if nss-myhostname is enabled.
8688
8689 Contributions from: Alastair Hughes, Alex Crawford, Daniel
8690 Mack, David Herrmann, Dimitri John Ledkov, Eric Kostrowski,
8691 Evgeny Vereshchagin, Felipe Sateler, HATAYAMA Daisuke, Jan
8692 Pokorný, Jan Synacek, Johnny Robeson, Karel Zak, Kay Sievers,
8693 Kefeng Wang, Lennart Poettering, Major Hayden, Marcel
8694 Holtmann, Markus Elfring, Martin Mikkelsen, Martin Pitt, Matt
8695 Turner, Maxim Mikityanskiy, Michael Biebl, Namhyung Kim,
8696 Nicolas Cornu, Owen W. Taylor, Patrik Flykt, Peter Hutterer,
8697 reverendhomer, Richard Maw, Ronny Chevalier, Seth Jennings,
8698 Stef Walter, Susant Sahani, Thomas Blume, Thomas Hindoe
8699 Paaboel Andersen, Thomas Meyer, Tom Gundersen, Vincent Batts,
8700 WaLyong Cho, Zbigniew Jędrzejewski-Szmek
e1439a14 8701
ccddd104 8702 — Berlin, 2015-08-27
ec5249a2 8703
11811e85
DH
8704CHANGES WITH 224:
8705
10fa421c
DH
8706 * The systemd-efi-boot-generator functionality was merged into
8707 systemd-gpt-auto-generator.
8708
5e8d4254
LP
8709 * systemd-networkd now supports Group Policy for vxlan
8710 devices. It can be enabled via the new boolean configuration
8711 option called 'GroupPolicyExtension='.
10fa421c 8712
11811e85
DH
8713 Contributions from: Andreas Kempf, Christian Hesse, Daniel Mack, David
8714 Herrmann, Herman Fries, Johannes Nixdorf, Kay Sievers, Lennart
8715 Poettering, Peter Hutterer, Susant Sahani, Tom Gundersen
8716
ccddd104 8717 — Berlin, 2015-07-31
11811e85 8718
e57eaef8
DH
8719CHANGES WITH 223:
8720
8721 * The python-systemd code has been removed from the systemd repository.
8722 A new repository has been created which accommodates the code from
8723 now on, and we kindly ask distributions to create a separate package
8724 for this: https://github.com/systemd/python-systemd
8725
01608bc8 8726 * The systemd daemon will now reload its main configuration
e57eaef8
DH
8727 (/etc/systemd/system.conf) on daemon-reload.
8728
8729 * sd-dhcp now exposes vendor specific extensions via
8730 sd_dhcp_lease_get_vendor_specific().
8731
931618d0
DM
8732 * systemd-networkd gained a number of new configuration options.
8733
8734 - A new boolean configuration option for TAP devices called
37d54b93 8735 'VNetHeader='. If set, the IFF_VNET_HDR flag is set for the
931618d0
DM
8736 device, thus allowing to send and receive GSO packets.
8737
8738 - A new tunnel configuration option called 'CopyDSCP='.
8739 If enabled, the DSCP field of ip6 tunnels is copied into the
8740 decapsulated packet.
8741
8742 - A set of boolean bridge configuration options were added.
8743 'UseBPDU=', 'HairPin=', 'FastLeave=', 'AllowPortToBeRoot=',
8744 and 'UnicastFlood=' are now parsed by networkd and applied to the
8745 respective bridge link device via the respective IFLA_BRPORT_*
8746 netlink attribute.
8747
8748 - A new string configuration option to override the hostname sent
8749 to a DHCP server, called 'Hostname='. If set and 'SendHostname='
8750 is true, networkd will use the configured hostname instead of the
8751 system hostname when sending DHCP requests.
8752
8753 - A new tunnel configuration option called 'IPv6FlowLabel='. If set,
8754 networkd will configure the IPv6 flow-label of the tunnel device
8755 according to RFC2460.
e57eaef8 8756
f5f113f6
DH
8757 - The 'macvtap' virtual network devices are now supported, similar to
8758 the already supported 'macvlan' devices.
8759
e57eaef8 8760 * systemd-resolved now implements RFC5452 to improve resilience against
01608bc8 8761 cache poisoning. Additionally, source port randomization is enabled
e57eaef8
DH
8762 by default to further protect against DNS spoofing attacks.
8763
8764 * nss-mymachines now supports translating UIDs and GIDs of running
8765 containers with user-namespaces enabled. If a container 'foo'
8766 translates a host uid 'UID' to the container uid 'TUID', then
8767 nss-mymachines will also map uid 'UID' to/from username 'vu-foo-TUID'
8768 (with 'foo' and 'TUID' replaced accordingly). Similarly, groups are
8769 mapped as 'vg-foo-TGID'.
8770
8771 Contributions from: Beniamino Galvani, cee1, Christian Hesse, Daniel
e4e66993
DH
8772 Buch, Daniel Mack, daurnimator, David Herrmann, Dimitri John Ledkov,
8773 HATAYAMA Daisuke, Ivan Shapovalov, Jan Alexander Steffens (heftig),
8774 Johan Ouwerkerk, Jose Carlos Venegas Munoz, Karel Zak, Kay Sievers,
8775 Lennart Poettering, Lidong Zhong, Martin Pitt, Michael Biebl, Michael
8776 Olbrich, Michal Schmidt, Michal Sekletar, Mike Gilbert, Namhyung Kim,
8777 Nick Owens, Peter Hutterer, Richard Maw, Steven Allen, Sungbae Yoo,
8778 Susant Sahani, Thomas Blume, Thomas Hindoe Paaboel Andersen, Tom
8779 Gundersen, Torstein Husebø, Umut Tezduyar Lindskog, Vito Caputo,
8780 Vivenzio Pagliari, Zbigniew Jędrzejewski-Szmek
8781
ccddd104 8782 — Berlin, 2015-07-29
e57eaef8 8783
0db83ad7 8784CHANGES WITH 222:
5541c889 8785
861b02eb
KS
8786 * udev does not longer support the WAIT_FOR_SYSFS= key in udev rules.
8787 There are no known issues with current sysfs, and udev does not need
8788 or should be used to work around such bugs.
8789
8790 * udev does no longer enable USB HID power management. Several reports
8791 indicate, that some devices cannot handle that setting.
0db83ad7
DH
8792
8793 * The udev accelerometer helper was removed. The functionality
8794 is now fully included in iio-sensor-proxy. But this means,
8795 older iio-sensor-proxy versions will no longer provide
8796 accelerometer/orientation data with this systemd version.
8797 Please upgrade iio-sensor-proxy to version 1.0.
8798
5541c889
DH
8799 * networkd gained a new configuration option IPv6PrivacyExtensions=
8800 which enables IPv6 privacy extensions (RFC 4941, "Privacy Extensions
8801 for Stateless Address") on selected networks.
8802
9b361114
DM
8803 * For the sake of fewer build-time dependencies and less code in the
8804 main repository, the python bindings are about to be removed in the
8805 next release. A new repository has been created which accommodates
8806 the code from now on, and we kindly ask distributions to create a
8807 separate package for this. The removal will take place in v223.
8808
8809 https://github.com/systemd/python-systemd
8810
0db83ad7
DH
8811 Contributions from: Abdo Roig-Maranges, Andrew Eikum, Bastien Nocera,
8812 Cédric Delmas, Christian Hesse, Christos Trochalakis, Daniel Mack,
8813 daurnimator, David Herrmann, Dimitri John Ledkov, Eric Biggers, Eric
8814 Cook, Felipe Sateler, Geert Jansen, Gerd Hoffmann, Gianpaolo Macario,
5541c889
DH
8815 Greg Kroah-Hartman, Iago López Galeiras, Jan Alexander Steffens
8816 (heftig), Jan Engelhardt, Jay Strict, Kay Sievers, Lennart Poettering,
0db83ad7
DH
8817 Markus Knetschke, Martin Pitt, Michael Biebl, Michael Marineau, Michal
8818 Sekletar, Miguel Bernal Marin, Peter Hutterer, Richard Maw, rinrinne,
2d1ca112
DH
8819 Susant Sahani, Thomas Hindoe Paaboel Andersen, Tom Gundersen, Torstein
8820 Husebø, Vedran Miletić, WaLyong Cho, Zbigniew Jędrzejewski-Szmek
0db83ad7 8821
ccddd104 8822 — Berlin, 2015-07-07
0db83ad7 8823
0f0467e6
MP
8824CHANGES WITH 221:
8825
470e72d4 8826 * The sd-bus.h and sd-event.h APIs have now been declared
5f92d24f 8827 stable and have been added to the official interface of
470e72d4
LP
8828 libsystemd.so. sd-bus implements an alternative D-Bus client
8829 library, that is relatively easy to use, very efficient and
8830 supports both classic D-Bus as well as kdbus as transport
8831 backend. sd-event is a generic event loop abstraction that
8832 is built around Linux epoll, but adds features such as event
0aee49d5 8833 prioritization or efficient timer handling. Both APIs are good
470e72d4
LP
8834 choices for C programs looking for a bus and/or event loop
8835 implementation that is minimal and does not have to be
5f92d24f 8836 portable to other kernels.
0f0467e6 8837
470e72d4
LP
8838 * kdbus support is no longer compile-time optional. It is now
8839 always built-in. However, it can still be disabled at
8840 runtime using the kdbus=0 kernel command line setting, and
c6551464 8841 that setting may be changed to default to off, by specifying
470e72d4
LP
8842 --disable-kdbus at build-time. Note though that the kernel
8843 command line setting has no effect if the kdbus.ko kernel
8844 module is not installed, in which case kdbus is (obviously)
8845 also disabled. We encourage all downstream distributions to
0aee49d5 8846 begin testing kdbus by adding it to the kernel images in the
470e72d4
LP
8847 development distributions, and leaving kdbus support in
8848 systemd enabled.
0f0467e6 8849
470e72d4
LP
8850 * The minimal required util-linux version has been bumped to
8851 2.26.
8852
8853 * Support for chkconfig (--enable-chkconfig) was removed in
0aee49d5 8854 favor of calling an abstraction tool
470e72d4
LP
8855 /lib/systemd/systemd-sysv-install. This needs to be
8856 implemented for your distribution. See "SYSV INIT.D SCRIPTS"
8857 in README for details.
8858
8859 * If there's a systemd unit and a SysV init script for the
8860 same service name, and the user executes "systemctl enable"
8861 for it (or a related call), then this will now enable both
8862 (or execute the related operation on both), not just the
8863 unit.
8864
8865 * The libudev API documentation has been converted from gtkdoc
8866 into man pages.
8867
8868 * gudev has been removed from the systemd tree, it is now an
8869 external project.
8870
8871 * The systemd-cgtop tool learnt a new --raw switch to generate
0aee49d5 8872 "raw" (machine parsable) output.
470e72d4
LP
8873
8874 * networkd's IPForwarding= .network file setting learnt the
8875 new setting "kernel", which ensures that networkd does not
8876 change the IP forwarding sysctl from the default kernel
8877 state.
8878
8879 * The systemd-logind bus API now exposes a new boolean
8880 property "Docked" that reports whether logind considers the
8881 system "docked", i.e. connected to a docking station or not.
8882
8883 Contributions from: Alex Crawford, Andreas Pokorny, Andrei
8884 Borzenkov, Charles Duffy, Colin Guthrie, Cristian Rodríguez,
8885 Daniele Medri, Daniel Hahler, Daniel Mack, David Herrmann,
8886 David Mohr, Dimitri John Ledkov, Djalal Harouni, dslul, Ed
8887 Swierk, Eric Cook, Filipe Brandenburger, Gianpaolo Macario,
8888 Harald Hoyer, Iago López Galeiras, Igor Vuk, Jan Synacek,
8889 Jason Pleau, Jason S. McMullan, Jean Delvare, Jeff Huang,
8890 Jonathan Boulle, Karel Zak, Kay Sievers, kloun, Lennart
8891 Poettering, Marc-Antoine Perennou, Marcel Holtmann, Mario
8892 Limonciello, Martin Pitt, Michael Biebl, Michael Olbrich,
8893 Michal Schmidt, Mike Gilbert, Nick Owens, Pablo Lezaeta Reyes,
b912e251
LP
8894 Patrick Donnelly, Pavel Odvody, Peter Hutterer, Philip
8895 Withnall, Ronny Chevalier, Simon McVittie, Susant Sahani,
8896 Thomas Hindoe Paaboel Andersen, Tom Gundersen, Torstein
8897 Husebø, Umut Tezduyar Lindskog, Viktar Vauchkevich, Werner
8898 Fink, Zbigniew Jędrzejewski-Szmek
470e72d4 8899
ccddd104 8900 — Berlin, 2015-06-19
0f0467e6 8901
481a0aa2
LP
8902CHANGES WITH 220:
8903
f7a73a25
DH
8904 * The gudev library has been extracted into a separate repository
8905 available at: https://git.gnome.org/browse/libgudev/
8906 It is now managed as part of the Gnome project. Distributions
8907 are recommended to pass --disable-gudev to systemd and use
8908 gudev from the Gnome project instead. gudev is still included
8909 in systemd, for now. It will be removed soon, though. Please
8910 also see the announcement-thread on systemd-devel:
56cadcb6 8911 https://lists.freedesktop.org/archives/systemd-devel/2015-May/032070.html
f7a73a25 8912
481a0aa2
LP
8913 * systemd now exposes a CPUUsageNSec= property for each
8914 service unit on the bus, that contains the overall consumed
8915 CPU time of a service (the sum of what each process of the
8916 service consumed). This value is only available if
8917 CPUAccounting= is turned on for a service, and is then shown
8918 in the "systemctl status" output.
8919
8920 * Support for configuring alternative mappings of the old SysV
8921 runlevels to systemd targets has been removed. They are now
29d1fcb4 8922 hardcoded in a way that runlevels 2, 3, 4 all map to
481a0aa2
LP
8923 multi-user.target and 5 to graphical.target (which
8924 previously was already the default behaviour).
8925
8926 * The auto-mounter logic gained support for mount point
8927 expiry, using a new TimeoutIdleSec= setting in .automount
8928 units. (Also available as x-systemd.idle-timeout= in /etc/fstab).
8929
8930 * The EFI System Partition (ESP) as mounted to /boot by
8931 systemd-efi-boot-generator will now be unmounted
29d1fcb4 8932 automatically after 2 minutes of not being used. This should
481a0aa2
LP
8933 minimize the risk of ESP corruptions.
8934
8935 * New /etc/fstab options x-systemd.requires= and
8936 x-systemd.requires-mounts-for= are now supported to express
8937 additional dependencies for mounts. This is useful for
28423d9a 8938 journaling file systems that support external journal
481a0aa2
LP
8939 devices or overlay file systems that require underlying file
8940 systems to be mounted.
8941
8942 * systemd does not support direct live-upgrades (via systemctl
8943 daemon-reexec) from versions older than v44 anymore. As no
8944 distribution we are aware of shipped such old versions in a
8945 stable release this should not be problematic.
8946
8947 * When systemd forks off a new per-connection service instance
8948 it will now set the $REMOTE_ADDR environment variable to the
8949 remote IP address, and $REMOTE_PORT environment variable to
8950 the remote IP port. This behaviour is similar to the
8951 corresponding environment variables defined by CGI.
8952
8953 * systemd-networkd gained support for uplink failure
8954 detection. The BindCarrier= option allows binding interface
8955 configuration dynamically to the link sense of other
8956 interfaces. This is useful to achieve behaviour like in
8957 network switches.
8958
8959 * systemd-networkd gained support for configuring the DHCP
8960 client identifier to use when requesting leases.
8961
8962 * systemd-networkd now has a per-network UseNTP= option to
8963 configure whether NTP server information acquired via DHCP
8964 is passed on to services like systemd-timesyncd.
8965
8966 * systemd-networkd gained support for vti6 tunnels.
8967
1579dd2c
LP
8968 * Note that systemd-networkd manages the sysctl variable
8969 /proc/sys/net/ipv[46]/conf/*/forwarding for each interface
8970 it is configured for since v219. The variable controls IP
8971 forwarding, and is a per-interface alternative to the global
8972 /proc/sys/net/ipv[46]/ip_forward. This setting is
8973 configurable in the IPForward= option, which defaults to
8974 "no". This means if networkd is used for an interface it is
8975 no longer sufficient to set the global sysctl option to turn
8976 on IP forwarding! Instead, the .network file option
8977 IPForward= needs to be turned on! Note that the
8978 implementation of this behaviour was broken in v219 and has
8979 been fixed in v220.
8980
481a0aa2
LP
8981 * Many bonding and vxlan options are now configurable in
8982 systemd-networkd.
8983
8984 * systemd-nspawn gained a new --property= setting to set unit
8985 properties for the container scope. This is useful for
ce830873 8986 setting resource parameters (e.g. "CPUShares=500") on
481a0aa2
LP
8987 containers started from the command line.
8988
8989 * systemd-nspawn gained a new --private-users= switch to make
8990 use of user namespacing available on recent Linux kernels.
8991
8992 * systemd-nspawn may now be called as part of a shell pipeline
8993 in which case the pipes used for stdin and stdout are passed
8994 directly to the process invoked in the container, without
8995 indirection via a pseudo tty.
8996
8997 * systemd-nspawn gained a new switch to control the UNIX
8998 signal to use when killing the init process of the container
8999 when shutting down.
9000
9001 * systemd-nspawn gained a new --overlay= switch for mounting
9002 overlay file systems into the container using the new kernel
9003 overlayfs support.
9004
9005 * When a container image is imported via systemd-importd and
9006 the host file system is not btrfs, a loopback block device
9007 file is created in /var/lib/machines.raw with a btrfs file
9008 system inside. It is then mounted to /var/lib/machines to
9009 enable btrfs features for container management. The loopback
9010 file and btrfs file system is grown as needed when container
9011 images are imported via systemd-importd.
9012
9013 * systemd-machined/systemd-importd gained support for btrfs
9014 quota, to enforce container disk space limits on disk. This
9015 is exposed in "machinectl set-limit".
9016
9017 * systemd-importd now can import containers from local .tar,
9018 .raw and .qcow2 images, and export them to .tar and .raw. It
9019 can also import dkr v2 images now from the network (on top
9020 of v1 as before).
9021
9022 * systemd-importd gained support for verifying downloaded
9023 images with gpg2 (previously only gpg1 was supported).
9024
d35f51ea
ZJS
9025 * systemd-machined, systemd-logind, systemd: most bus calls are
9026 now accessible to unprivileged processes via polkit. Also,
9027 systemd-logind will now allow users to kill their own sessions
9028 without further privileges or authorization.
481a0aa2
LP
9029
9030 * systemd-shutdownd has been removed. This service was
9031 previously responsible for implementing scheduled shutdowns
9032 as exposed in /usr/bin/shutdown's time parameter. This
9033 functionality has now been moved into systemd-logind and is
9034 accessible via a bus interface.
9035
9036 * "systemctl reboot" gained a new switch --firmware-setup that
9037 can be used to reboot into the EFI firmware setup, if that
9038 is available. systemd-logind now exposes an API on the bus
9039 to trigger such reboots, in case graphical desktop UIs want
9040 to cover this functionality.
9041
9042 * "systemctl enable", "systemctl disable" and "systemctl mask"
1579dd2c 9043 now support a new "--now" switch. If specified the units
481a0aa2
LP
9044 that are enabled will also be started, and the ones
9045 disabled/masked also stopped.
9046
9047 * The Gummiboot EFI boot loader tool has been merged into
1a2d5fbe
DH
9048 systemd, and renamed to "systemd-boot". The bootctl tool has been
9049 updated to support systemd-boot.
481a0aa2
LP
9050
9051 * An EFI kernel stub has been added that may be used to create
9052 kernel EFI binaries that contain not only the actual kernel,
9053 but also an initrd, boot splash, command line and OS release
9054 information. This combined binary can then be signed as a
9055 single image, so that the firmware can verify it all in one
1a2d5fbe 9056 step. systemd-boot has special support for EFI binaries created
481a0aa2
LP
9057 like this and can extract OS release information from them
9058 and show them in the boot menu. This functionality is useful
9059 to implement cryptographically verified boot schemes.
9060
9061 * Optional support has been added to systemd-fsck to pass
9062 fsck's progress report to an AF_UNIX socket in the file
9063 system.
9064
6b000af4
LP
9065 * udev will no longer create device symlinks for all block devices by
9066 default. A deny list for excluding special block devices from this
387f6955 9067 logic has been turned into an allow list that requires picking block
6b000af4 9068 devices explicitly that require device symlinks.
481a0aa2
LP
9069
9070 * A new (currently still internal) API sd-device.h has been
9071 added to libsystemd. This modernized API is supposed to
9072 replace libudev eventually. In fact, already much of libudev
9073 is now just a wrapper around sd-device.h.
9074
9075 * A new hwdb database for storing metadata about pointing
9076 stick devices has been added.
9077
9078 * systemd-tmpfiles gained support for setting file attributes
9079 similar to the "chattr" tool with new 'h' and 'H' lines.
9080
9081 * systemd-journald will no longer unconditionally set the
9082 btrfs NOCOW flag on new journal files. This is instead done
9083 with tmpfiles snippet using the new 'h' line type. This
9084 allows easy disabling of this logic, by masking the
9085 journal-nocow.conf tmpfiles file.
9086
9087 * systemd-journald will now translate audit message types to
9088 human readable identifiers when writing them to the
9089 journal. This should improve readability of audit messages.
9090
9091 * The LUKS logic gained support for the offset= and skip=
9092 options in /etc/crypttab, as previously implemented by
9093 Debian.
9094
9095 * /usr/lib/os-release gained a new optional field VARIANT= for
9096 distributions that support multiple variants (such as a
1d3a473b 9097 desktop edition, a server edition, …)
481a0aa2
LP
9098
9099 Contributions from: Aaro Koskinen, Adam Goode, Alban Crequy,
9100 Alberto Fanjul Alonso, Alexander Sverdlin, Alex Puchades, Alin
9101 Rauta, Alison Chaiken, Andrew Jones, Arend van Spriel,
9102 Benedikt Morbach, Benjamin Franzke, Benjamin Tissoires, Blaž
9103 Tomažič, Chris Morgan, Chris Morin, Colin Walters, Cristian
9104 Rodríguez, Daniel Buch, Daniel Drake, Daniele Medri, Daniel
9105 Mack, Daniel Mustieles, daurnimator, Davide Bettio, David
9106 Herrmann, David Strauss, Didier Roche, Dimitri John Ledkov,
9107 Eric Cook, Gavin Li, Goffredo Baroncelli, Hannes Reinecke,
9108 Hans de Goede, Hans-Peter Deifel, Harald Hoyer, Iago López
9109 Galeiras, Ivan Shapovalov, Jan Engelhardt, Jan Janssen, Jan
9110 Pazdziora, Jan Synacek, Jasper St. Pierre, Jay Faulkner, John
9111 Paul Adrian Glaubitz, Jonathon Gilbert, Karel Zak, Kay
9112 Sievers, Koen Kooi, Lennart Poettering, Lubomir Rintel, Lucas
9113 De Marchi, Lukas Nykryn, Lukas Rusak, Lukasz Skalski, Łukasz
9114 Stelmach, Mantas Mikulėnas, Marc-Antoine Perennou, Marcel
9115 Holtmann, Martin Pitt, Mathieu Chevrier, Matthew Garrett,
9116 Michael Biebl, Michael Marineau, Michael Olbrich, Michal
9117 Schmidt, Michal Sekletar, Mirco Tischler, Nir Soffer, Patrik
9118 Flykt, Pavel Odvody, Peter Hutterer, Peter Lemenkov, Peter
9119 Waller, Piotr Drąg, Raul Gutierrez S, Richard Maw, Ronny
9120 Chevalier, Ross Burton, Sebastian Rasmussen, Sergey Ptashnick,
9121 Seth Jennings, Shawn Landden, Simon Farnsworth, Stefan Junker,
9122 Stephen Gallagher, Susant Sahani, Sylvain Plantefève, Thomas
9123 Haller, Thomas Hindoe Paaboel Andersen, Tobias Hunger, Tom
9124 Gundersen, Torstein Husebø, Umut Tezduyar Lindskog, Will
9125 Woods, Zachary Cook, Zbigniew Jędrzejewski-Szmek
9126
ccddd104 9127 — Berlin, 2015-05-22
481a0aa2 9128
615aaf41
LP
9129CHANGES WITH 219:
9130
615aaf41
LP
9131 * Introduce a new API "sd-hwdb.h" for querying the hardware
9132 metadata database. With this minimal interface one can query
9133 and enumerate the udev hwdb, decoupled from the old libudev
9134 library. libudev's interface for this is now only a wrapper
9135 around sd-hwdb. A new tool systemd-hwdb has been added to
9136 interface with and update the database.
9137
9138 * When any of systemd's tools copies files (for example due to
9139 tmpfiles' C lines) a btrfs reflink will attempted first,
9140 before bytewise copying is done.
9141
9142 * systemd-nspawn gained a new --ephemeral switch. When
9143 specified a btrfs snapshot is taken of the container's root
9144 directory, and immediately removed when the container
9145 terminates again. Thus, a container can be started whose
9146 changes never alter the container's root directory, and are
9147 lost on container termination. This switch can also be used
9148 for starting a container off the root file system of the
9149 host without affecting the host OS. This switch is only
9150 available on btrfs file systems.
9151
9152 * systemd-nspawn gained a new --template= switch. It takes the
9153 path to a container tree to use as template for the tree
7edecf21 9154 specified via --directory=, should that directory be
615aaf41
LP
9155 missing. This allows instantiating containers dynamically,
9156 on first run. This switch is only available on btrfs file
9157 systems.
9158
9159 * When a .mount unit refers to a mount point on which multiple
9160 mounts are stacked, and the .mount unit is stopped all of
9161 the stacked mount points will now be unmounted until no
9162 mount point remains.
9163
9164 * systemd now has an explicit notion of supported and
9165 unsupported unit types. Jobs enqueued for unsupported unit
9166 types will now fail with an "unsupported" error code. More
9167 specifically .swap, .automount and .device units are not
9168 supported in containers, .busname units are not supported on
9169 non-kdbus systems. .swap and .automount are also not
9170 supported if their respective kernel compile time options
9171 are disabled.
9172
9173 * machinectl gained support for two new "copy-from" and
9174 "copy-to" commands for copying files from a running
9175 container to the host or vice versa.
9176
9177 * machinectl gained support for a new "bind" command to bind
9178 mount host directories into local containers. This is
9179 currently only supported for nspawn containers.
9180
9181 * networkd gained support for configuring bridge forwarding
9182 database entries (fdb) from .network files.
9183
9184 * A new tiny daemon "systemd-importd" has been added that can
9185 download container images in tar, raw, qcow2 or dkr formats,
9186 and make them available locally in /var/lib/machines, so
9187 that they can run as nspawn containers. The daemon can GPG
9188 verify the downloads (not supported for dkr, since it has no
9189 provisions for verifying downloads). It will transparently
9190 decompress bz2, xz, gzip compressed downloads if necessary,
9191 and restore sparse files on disk. The daemon uses privilege
9192 separation to ensure the actual download logic runs with
94e5ba37 9193 fewer privileges than the daemon itself. machinectl has
615aaf41
LP
9194 gained new commands "pull-tar", "pull-raw" and "pull-dkr" to
9195 make the functionality of importd available to the
9196 user. With this in place the Fedora and Ubuntu "Cloud"
9197 images can be downloaded and booted as containers unmodified
9198 (the Fedora images lack the appropriate GPG signature files
9199 currently, so they cannot be verified, but this will change
9200 soon, hopefully). Note that downloading images is currently
9201 only fully supported on btrfs.
9202
9203 * machinectl is now able to list container images found in
9204 /var/lib/machines, along with some metadata about sizes of
9205 disk and similar. If the directory is located on btrfs and
9206 quota is enabled, this includes quota display. A new command
9207 "image-status" has been added that shows additional
9208 information about images.
9209
9210 * machinectl is now able to clone container images
9211 efficiently, if the underlying file system (btrfs) supports
f59dba26 9212 it, with the new "machinectl clone" command. It also
615aaf41
LP
9213 gained commands for renaming and removing images, as well as
9214 marking them read-only or read-write (supported also on
9215 legacy file systems).
9216
9217 * networkd gained support for collecting LLDP network
9218 announcements, from hardware that supports this. This is
9219 shown in networkctl output.
9220
9221 * systemd-run gained support for a new -t (--pty) switch for
9222 invoking a binary on a pty whose input and output is
9223 connected to the invoking terminal. This allows executing
9224 processes as system services while interactively
9225 communicating with them via the terminal. Most interestingly
9226 this is supported across container boundaries. Invoking
9227 "systemd-run -t /bin/bash" is an alternative to running a
9228 full login session, the difference being that the former
9229 will not register a session, nor go through the PAM session
9230 setup.
9231
9232 * tmpfiles gained support for a new "v" line type for creating
9233 btrfs subvolumes. If the underlying file system is a legacy
9234 file system, this automatically degrades to creating a
9235 normal directory. Among others /var/lib/machines is now
9236 created like this at boot, should it be missing.
9237
9238 * The directory /var/lib/containers/ has been deprecated and
9239 been replaced by /var/lib/machines. The term "machines" has
9240 been used in the systemd context as generic term for both
9241 VMs and containers, and hence appears more appropriate for
9242 this, as the directory can also contain raw images bootable
9243 via qemu/kvm.
9244
9245 * systemd-nspawn when invoked with -M but without --directory=
9246 or --image= is now capable of searching for the container
9247 root directory, subvolume or disk image automatically, in
9248 /var/lib/machines. systemd-nspawn@.service has been updated
9249 to make use of this, thus allowing it to be used for raw
9250 disk images, too.
9251
9252 * A new machines.target unit has been introduced that is
9253 supposed to group all containers/VMs invoked as services on
9254 the system. systemd-nspawn@.service has been updated to
9255 integrate with that.
9256
9257 * machinectl gained a new "start" command, for invoking a
9258 container as a service. "machinectl start foo" is mostly
9259 equivalent to "systemctl start systemd-nspawn@foo.service",
9260 but handles escaping in a nicer way.
9261
9262 * systemd-nspawn will now mount most of the cgroupfs tree
9263 read-only into each container, with the exception of the
9264 container's own subtree in the name=systemd hierarchy.
9265
9266 * journald now sets the special FS_NOCOW file flag for its
9267 journal files. This should improve performance on btrfs, by
9268 avoiding heavy fragmentation when journald's write-pattern
9269 is used on COW file systems. It degrades btrfs' data
9270 integrity guarantees for the files to the same levels as for
9271 ext3/ext4 however. This should be OK though as journald does
9272 its own data integrity checks and all its objects are
9273 checksummed on disk. Also, journald should handle btrfs disk
9274 full events a lot more gracefully now, by processing SIGBUS
9275 errors, and not relying on fallocate() anymore.
9276
9277 * When journald detects that journal files it is writing to
9278 have been deleted it will immediately start new journal
9279 files.
9280
9281 * systemd now provides a way to store file descriptors
4c37970d 9282 per-service in PID 1. This is useful for daemons to ensure
615aaf41 9283 that fds they require are not lost during a daemon
94e5ba37 9284 restart. The fds are passed to the daemon on the next
615aaf41
LP
9285 invocation in the same way socket activation fds are
9286 passed. This is now used by journald to ensure that the
9287 various sockets connected to all the system's stdout/stderr
9288 are not lost when journald is restarted. File descriptors
9289 may be stored in PID 1 via the sd_pid_notify_with_fds() API,
9290 an extension to sd_notify(). Note that a limit is enforced
9291 on the number of fds a service can store in PID 1, and it
9292 defaults to 0, so that no fds may be stored, unless this is
9293 explicitly turned on.
9294
9295 * The default TERM variable to use for units connected to a
9296 terminal, when no other value is explicitly is set is now
9297 vt220 rather than vt102. This should be fairly safe still,
9298 but allows PgUp/PgDn work.
9299
9300 * The /etc/crypttab option header= as known from Debian is now
9301 supported.
9302
9303 * "loginctl user-status" and "loginctl session-status" will
9304 now show the last 10 lines of log messages of the
9305 user/session following the status output. Similar,
9306 "machinectl status" will show the last 10 log lines
9307 associated with a virtual machine or container
9308 service. (Note that this is usually not the log messages
9309 done in the VM/container itself, but simply what the
9310 container manager logs. For nspawn this includes all console
9311 output however.)
9312
9313 * "loginctl session-status" without further argument will now
9314 show the status of the session of the caller. Similar,
9315 "lock-session", "unlock-session", "activate",
9316 "enable-linger", "disable-linger" may now be called without
9317 session/user parameter in which case they apply to the
9318 caller's session/user.
9319
9320 * An X11 session scriptlet is now shipped that uploads
9321 $DISPLAY and $XAUTHORITY into the environment of the systemd
9322 --user daemon if a session begins. This should improve
9323 compatibility with X11 enabled applications run as systemd
9324 user services.
9325
9326 * Generators are now subject to masking via /etc and /run, the
9327 same way as unit files.
9328
9329 * networkd .network files gained support for configuring
9330 per-link IPv4/IPv6 packet forwarding as well as IPv4
9331 masquerading. This is by default turned on for veth links to
9332 containers, as registered by systemd-nspawn. This means that
9333 nspawn containers run with --network-veth will now get
9334 automatic routed access to the host's networks without any
9335 further configuration or setup, as long as networkd runs on
9336 the host.
9337
9338 * systemd-nspawn gained the --port= (-p) switch to expose TCP
9339 or UDP posts of a container on the host. With this in place
9340 it is possible to run containers with private veth links
9341 (--network-veth), and have their functionality exposed on
9342 the host as if their services were running directly on the
9343 host.
9344
dd2fd155 9345 * systemd-nspawn's --network-veth switch now gained a short
615aaf41
LP
9346 version "-n", since with the changes above it is now truly
9347 useful out-of-the-box. The systemd-nspawn@.service has been
9348 updated to make use of it too by default.
9349
9350 * systemd-nspawn will now maintain a per-image R/W lock, to
9351 ensure that the same image is not started more than once
9352 writable. (It's OK to run an image multiple times
9353 simultaneously in read-only mode.)
9354
9355 * systemd-nspawn's --image= option is now capable of
9356 dissecting and booting MBR and GPT disk images that contain
9357 only a single active Linux partition. Previously it
9358 supported only GPT disk images with proper GPT type
9359 IDs. This allows running cloud images from major
9360 distributions directly with systemd-nspawn, without
9361 modification.
9362
9363 * In addition to collecting mouse dpi data in the udev
9364 hardware database, there's now support for collecting angle
9365 information for mouse scroll wheels. The database is
7edecf21 9366 supposed to guarantee similar scrolling behavior on mice
615aaf41
LP
9367 that it knows about. There's also support for collecting
9368 information about Touchpad types.
9369
9370 * udev's input_id built-in will now also collect touch screen
9371 dimension data and attach it to probed devices.
9372
9373 * /etc/os-release gained support for a Distribution Privacy
9374 Policy link field.
9375
9376 * networkd gained support for creating "ipvlan", "gretap",
9377 "ip6gre", "ip6gretap" and "ip6tnl" network devices.
9378
9379 * systemd-tmpfiles gained support for "a" lines for setting
9380 ACLs on files.
9381
9382 * systemd-nspawn will now mount /tmp in the container to
9383 tmpfs, automatically.
9384
9385 * systemd now exposes the memory.usage_in_bytes cgroup
9386 attribute and shows it for each service in the "systemctl
9387 status" output, if available.
9388
9389 * When the user presses Ctrl-Alt-Del more than 7x within 2s an
9390 immediate reboot is triggered. This useful if shutdown is
9391 hung and is unable to complete, to expedite the
9392 operation. Note that this kind of reboot will still unmount
9393 all file systems, and hence should not result in fsck being
9394 run on next reboot.
9395
9396 * A .device unit for an optical block device will now be
9397 considered active only when a medium is in the drive. Also,
9398 mount units are now bound to their backing devices thus
9399 triggering automatic unmounting when devices become
9400 unavailable. With this in place systemd will now
9401 automatically unmount left-over mounts when a CD-ROM is
9402 ejected or an USB stick is yanked from the system.
9403
9404 * networkd-wait-online now has support for waiting for
9405 specific interfaces only (with globbing), and for giving up
9406 after a configurable timeout.
9407
9408 * networkd now exits when idle. It will be automatically
9409 restarted as soon as interfaces show up, are removed or
9410 change state. networkd will stay around as long as there is
9411 at least one DHCP state machine or similar around, that keep
9412 it non-idle.
9413
9414 * networkd may now configure IPv6 link-local addressing in
9415 addition to IPv4 link-local addressing.
9416
9417 * The IPv6 "token" for use in SLAAC may now be configured for
9418 each .network interface in networkd.
9419
9420 * Routes configured with networkd may now be assigned a scope
9421 in .network files.
9422
9423 * networkd's [Match] sections now support globbing and lists
9424 of multiple space-separated matches per item.
9425
11ea2781 9426 Contributions from: Alban Crequy, Alin Rauta, Andrey Chaser,
d2c643c6
LP
9427 Bastien Nocera, Bruno Bottazzini, Carlos Garnacho, Carlos
9428 Morata Castillo, Chris Atkinson, Chris J. Arges, Christian
9429 Kirbach, Christian Seiler, Christoph Brill, Colin Guthrie,
9430 Colin Walters, Cristian Rodríguez, Daniele Medri, Daniel Mack,
9431 Dave Reisner, David Herrmann, Djalal Harouni, Erik Auerswald,
9432 Filipe Brandenburger, Frank Theile, Gabor Kelemen, Gabriel de
9433 Perthuis, Harald Hoyer, Hui Wang, Ivan Shapovalov, Jan
9434 Engelhardt, Jan Synacek, Jay Faulkner, Johannes Hölzl, Jonas
9435 Ådahl, Jonathan Boulle, Josef Andersson, Kay Sievers, Ken
9436 Werner, Lennart Poettering, Lucas De Marchi, Lukas Märdian,
9437 Lukas Nykryn, Lukasz Skalski, Luke Shumaker, Mantas Mikulėnas,
9438 Manuel Mendez, Marcel Holtmann, Marc Schmitzer, Marko
9439 Myllynen, Martin Pitt, Maxim Mikityanskiy, Michael Biebl,
9440 Michael Marineau, Michael Olbrich, Michal Schmidt, Mindaugas
11ea2781
LP
9441 Baranauskas, Moez Bouhlel, Naveen Kumar, Patrik Flykt, Paul
9442 Martin, Peter Hutterer, Peter Mattern, Philippe De Swert,
9443 Piotr Drąg, Rafael Ferreira, Rami Rosen, Robert Milasan, Ronny
9444 Chevalier, Sangjung Woo, Sebastien Bacher, Sergey Ptashnick,
9445 Shawn Landden, Stéphane Graber, Susant Sahani, Sylvain
9446 Plantefève, Thomas Hindoe Paaboel Andersen, Tim JP, Tom
9447 Gundersen, Topi Miettinen, Torstein Husebø, Umut Tezduyar
d2c643c6
LP
9448 Lindskog, Veres Lajos, Vincent Batts, WaLyong Cho, Wieland
9449 Hoffmann, Zbigniew Jędrzejewski-Szmek
11ea2781 9450
ccddd104 9451 — Berlin, 2015-02-16
11ea2781 9452
d4f5a1f4
DH
9453CHANGES WITH 218:
9454
f9e00a9f
LP
9455 * When querying unit file enablement status (for example via
9456 "systemctl is-enabled"), a new state "indirect" is now known
9457 which indicates that a unit might not be enabled itself, but
c7683ffb 9458 another unit listed in its Also= setting might be.
f9e00a9f
LP
9459
9460 * Similar to the various existing ConditionXYZ= settings for
b938cb90 9461 units, there are now matching AssertXYZ= settings. While
f9e00a9f
LP
9462 failing conditions cause a unit to be skipped, but its job
9463 to succeed, failing assertions declared like this will cause
9464 a unit start operation and its job to fail.
9465
9466 * hostnamed now knows a new chassis type "embedded".
9467
9468 * systemctl gained a new "edit" command. When used on a unit
b938cb90 9469 file, this allows extending unit files with .d/ drop-in
f9e00a9f
LP
9470 configuration snippets or editing the full file (after
9471 copying it from /usr/lib to /etc). This will invoke the
9472 user's editor (as configured with $EDITOR), and reload the
9473 modified configuration after editing.
9474
9475 * "systemctl status" now shows the suggested enablement state
9476 for a unit, as declared in the (usually vendor-supplied)
9477 system preset files.
9478
38b38500 9479 * nss-myhostname will now resolve the single-label hostname
f9e00a9f
LP
9480 "gateway" to the locally configured default IP routing
9481 gateways, ordered by their metrics. This assigns a stable
9482 name to the used gateways, regardless which ones are
9483 currently configured. Note that the name will only be
9484 resolved after all other name sources (if nss-myhostname is
9485 configured properly) and should hence not negatively impact
38b38500 9486 systems that use the single-label hostname "gateway" in
f9e00a9f
LP
9487 other contexts.
9488
9489 * systemd-inhibit now allows filtering by mode when listing
9490 inhibitors.
9491
122676c9 9492 * Scope and service units gained a new "Delegate" boolean
b938cb90 9493 property, which, when set, allows processes running inside the
122676c9
LP
9494 unit to further partition resources. This is primarily
9495 useful for systemd user instances as well as container
9496 managers.
f9e00a9f
LP
9497
9498 * journald will now pick up audit messages directly from
9499 the kernel, and log them like any other log message. The
9500 audit fields are split up and fully indexed. This means that
9501 journalctl in many ways is now a (nicer!) alternative to
9502 ausearch, the traditional audit client. Note that this
b938cb90 9503 implements only a minimal audit client. If you want the
f9e00a9f
LP
9504 special audit modes like reboot-on-log-overflow, please use
9505 the traditional auditd instead, which can be used in
9506 parallel to journald.
9507
9508 * The ConditionSecurity= unit file option now understands the
9509 special string "audit" to check whether auditing is
9510 available.
9511
9512 * journalctl gained two new commands --vacuum-size= and
9513 --vacuum-time= to delete old journal files until the
a8eaaee7 9514 remaining ones take up no more than the specified size on disk,
f9e00a9f
LP
9515 or are not older than the specified time.
9516
9517 * A new, native PPPoE library has been added to sd-network,
9518 systemd's library of light-weight networking protocols. This
9519 library will be used in a future version of networkd to
9520 enable PPPoE communication without an external pppd daemon.
9521
9522 * The busctl tool now understands a new "capture" verb that
9523 works similar to "monitor", but writes a packet capture
9524 trace to STDOUT that can be redirected to a file which is
9525 compatible with libcap's capture file format. This can then
9526 be loaded in Wireshark and similar tools to inspect bus
9527 communication.
9528
9529 * The busctl tool now understands a new "tree" verb that shows
9530 the object trees of a specific service on the bus, or of all
9531 services.
9532
9533 * The busctl tool now understands a new "introspect" verb that
9534 shows all interfaces and members of objects on the bus,
9535 including their signature and values. This is particularly
9536 useful to get more information about bus objects shown by
9537 the new "busctl tree" command.
9538
9539 * The busctl tool now understands new verbs "call",
9540 "set-property" and "get-property" for invoking bus method
9541 calls, setting and getting bus object properties in a
9542 friendly way.
9543
9544 * busctl gained a new --augment-creds= argument that controls
9545 whether the tool shall augment credential information it
9546 gets from the bus with data from /proc, in a possibly
9547 race-ful way.
9548
9549 * nspawn's --link-journal= switch gained two new values
9550 "try-guest" and "try-host" that work like "guest" and
17c29493 9551 "host", but do not fail if the host has no persistent
28423d9a 9552 journaling enabled. -j is now equivalent to
f9e00a9f
LP
9553 --link-journal=try-guest.
9554
9555 * macvlan network devices created by nspawn will now have
9556 stable MAC addresses.
9557
9558 * A new SmackProcessLabel= unit setting has been added, which
9559 controls the SMACK security label processes forked off by
9560 the respective unit shall use.
9561
d4f5a1f4
DH
9562 * If compiled with --enable-xkbcommon, systemd-localed will
9563 verify x11 keymap settings by compiling the given keymap. It
9564 will spew out warnings if the compilation fails. This
9565 requires libxkbcommon to be installed.
9566
b938cb90 9567 * When a coredump is collected, a larger number of metadata
f9e00a9f 9568 fields is now collected and included in the journal records
b938cb90 9569 created for it. More specifically, control group membership,
f9e00a9f
LP
9570 environment variables, memory maps, working directory,
9571 chroot directory, /proc/$PID/status, and a list of open file
9572 descriptors is now stored in the log entry.
9573
17c29493 9574 * The udev hwdb now contains DPI information for mice. For
f9e00a9f
LP
9575 details see:
9576
9577 http://who-t.blogspot.de/2014/12/building-a-dpi-database-for-mice.html
9578
9579 * All systemd programs that read standalone configuration
9580 files in /etc now also support a corresponding series of
997b2b43
JT
9581 .conf.d configuration directories in /etc/, /run/,
9582 /usr/local/lib/, /usr/lib/, and (if configured with
9583 --enable-split-usr) /lib/. In particular, the following
9584 configuration files now have corresponding configuration
9585 directories: system.conf user.conf, logind.conf,
9586 journald.conf, sleep.conf, bootchart.conf, coredump.conf,
9587 resolved.conf, timesyncd.conf, journal-remote.conf, and
9588 journal-upload.conf. Note that distributions should use the
9589 configuration directories in /usr/lib/; the directories in
9590 /etc/ are reserved for the system administrator.
9591
f9e00a9f
LP
9592 * systemd-rfkill will no longer take the rfkill device name
9593 into account when storing rfkill state on disk, as the name
9594 might be dynamically assigned and not stable. Instead, the
9595 ID_PATH udev variable combined with the rfkill type (wlan,
1d3a473b 9596 bluetooth, …) is used.
f9e00a9f
LP
9597
9598 * A new service systemd-machine-id-commit.service has been
9599 added. When used on systems where /etc is read-only during
9600 boot, and /etc/machine-id is not initialized (but an empty
9601 file), this service will copy the temporary machine ID
9602 created as replacement into /etc after the system is fully
9603 booted up. This is useful for systems that are freshly
9604 installed with a non-initialized machine ID, but should get
9605 a fixed machine ID for subsequent boots.
9606
9607 * networkd's .netdev files now provide a large set of
a8eaaee7 9608 configuration parameters for VXLAN devices. Similarly, the
f9e00a9f
LP
9609 bridge port cost parameter is now configurable in .network
9610 files. There's also new support for configuring IP source
9611 routing. networkd .link files gained support for a new
9612 OriginalName= match that is useful to match against the
9613 original interface name the kernel assigned. .network files
9614 may include MTU= and MACAddress= fields for altering the MTU
9615 and MAC address while being connected to a specific network
9616 interface.
9617
9618 * The LUKS logic gained supported for configuring
9619 UUID-specific key files. There's also new support for naming
9620 LUKS device from the kernel command line, using the new
9621 luks.name= argument.
9622
9623 * Timer units may now be transiently created via the bus API
9624 (this was previously already available for scope and service
9625 units). In addition it is now possible to create multiple
9626 transient units at the same time with a single bus call. The
9627 "systemd-run" tool has been updated to make use of this for
9628 running commands on a specified time, in at(1)-style.
9629
9630 * tmpfiles gained support for "t" lines, for assigning
9631 extended attributes to files. Among other uses this may be
9632 used to assign SMACK labels to files.
9633
13e92f39
LP
9634 Contributions from: Alin Rauta, Alison Chaiken, Andrej
9635 Manduch, Bastien Nocera, Chris Atkinson, Chris Leech, Chris
9636 Mayo, Colin Guthrie, Colin Walters, Cristian Rodríguez,
9637 Daniele Medri, Daniel Mack, Dan Williams, Dan Winship, Dave
9638 Reisner, David Herrmann, Didier Roche, Felipe Sateler, Gavin
9639 Li, Hans de Goede, Harald Hoyer, Iago López Galeiras, Ivan
9640 Shapovalov, Jakub Filak, Jan Janssen, Jan Synacek, Joe
9641 Lawrence, Josh Triplett, Kay Sievers, Lennart Poettering,
9642 Lukas Nykryn, Łukasz Stelmach, Maciej Wereski, Mantas
9643 Mikulėnas, Marcel Holtmann, Martin Pitt, Maurizio Lombardi,
9644 Michael Biebl, Michael Chapman, Michael Marineau, Michal
7da81d33
LP
9645 Schmidt, Michal Sekletar, Olivier Brunel, Patrik Flykt, Peter
9646 Hutterer, Przemyslaw Kedzierski, Rami Rosen, Ray Strode,
9647 Richard Schütz, Richard W.M. Jones, Ronny Chevalier, Ross
9648 Lagerwall, Sean Young, Stanisław Pitucha, Susant Sahani,
9649 Thomas Haller, Thomas Hindoe Paaboel Andersen, Tom Gundersen,
9650 Torstein Husebø, Umut Tezduyar Lindskog, Vicente Olivert
9651 Riera, WaLyong Cho, Wesley Dawson, Zbigniew Jędrzejewski-Szmek
13e92f39 9652
ccddd104 9653 — Berlin, 2014-12-10
f9e00a9f 9654
b62a309a
ZJS
9655CHANGES WITH 217:
9656
78b6b7ce
LP
9657 * journalctl gained the new options -t/--identifier= to match
9658 on the syslog identifier (aka "tag"), as well as --utc to
9659 show log timestamps in the UTC timezone. journalctl now also
9660 accepts -n/--lines=all to disable line capping in a pager.
b62a309a 9661
a65b8245
ZJS
9662 * journalctl gained a new switch, --flush, that synchronously
9663 flushes logs from /run/log/journal to /var/log/journal if
9664 persistent storage is enabled. systemd-journal-flush.service
9665 now waits until the operation is complete.
2a97b03b 9666
b62a309a
ZJS
9667 * Services can notify the manager before they start a reload
9668 (by sending RELOADING=1) or shutdown (by sending
4bdc60cb
LP
9669 STOPPING=1). This allows the manager to track and show the
9670 internal state of daemons and closes a race condition when
78b6b7ce 9671 the process is still running but has closed its D-Bus
4bdc60cb 9672 connection.
b62a309a 9673
78b6b7ce
LP
9674 * Services with Type=oneshot do not have to have any ExecStart
9675 commands anymore.
b62a309a
ZJS
9676
9677 * User units are now loaded also from
9678 $XDG_RUNTIME_DIR/systemd/user/. This is similar to the
9679 /run/systemd/user directory that was already previously
9680 supported, but is under the control of the user.
9681
3f9a0a52 9682 * Job timeouts (i.e. timeouts on the time a job that is
4ffd29fd
LP
9683 queued stays in the run queue) can now optionally result in
9684 immediate reboot or power-off actions (JobTimeoutAction= and
9685 JobTimeoutRebootArgument=). This is useful on ".target"
9686 units, to limit the maximum time a target remains
9687 undispatched in the run queue, and to trigger an emergency
9688 operation in such a case. This is now used by default to
9689 turn off the system if boot-up (as defined by everything in
9690 basic.target) hangs and does not complete for at least
9691 15min. Also, if power-off or reboot hang for at least 30min
9692 an immediate power-off/reboot operation is triggered. This
9693 functionality is particularly useful to increase reliability
9694 on embedded devices, but also on laptops which might
9695 accidentally get powered on when carried in a backpack and
9696 whose boot stays stuck in a hard disk encryption passphrase
9697 question.
9698
b62a309a
ZJS
9699 * systemd-logind can be configured to also handle lid switch
9700 events even when the machine is docked or multiple displays
9701 are attached (HandleLidSwitchDocked= option).
9702
9703 * A helper binary and a service have been added which can be
9704 used to resume from hibernation in the initramfs. A
9705 generator will parse the resume= option on the kernel
81c7dd89 9706 command line to trigger resume.
b62a309a 9707
78b6b7ce
LP
9708 * A user console daemon systemd-consoled has been
9709 added. Currently, it is a preview, and will so far open a
9710 single terminal on each session of the user marked as
09077149 9711 Desktop=systemd-console.
b62a309a
ZJS
9712
9713 * Route metrics can be specified for DHCP routes added by
9714 systemd-networkd.
9715
ba8df74b 9716 * The SELinux context of socket-activated services can be set
78b6b7ce 9717 from the information provided by the networking stack
b62a309a
ZJS
9718 (SELinuxContextFromNet= option).
9719
9720 * Userspace firmware loading support has been removed and
9721 the minimum supported kernel version is thus bumped to 3.7.
9722
9723 * Timeout for udev workers has been increased from 1 to 3
9724 minutes, but a warning will be printed after 1 minute to
9725 help diagnose kernel modules that take a long time to load.
9726
78b6b7ce 9727 * Udev rules can now remove tags on devices with TAG-="foobar".
b62a309a 9728
4bdc60cb 9729 * systemd's readahead implementation has been removed. In many
f6d1de85 9730 circumstances it didn't give expected benefits even for
b62a309a 9731 rotational disk drives and was becoming less relevant in the
78b6b7ce
LP
9732 age of SSDs. As none of the developers has been using
9733 rotating media anymore, and nobody stepped up to actively
9734 maintain this component of systemd it has now been removed.
b62a309a 9735
c4ac9900 9736 * Swap units can use Options= to specify discard options.
b62a309a
ZJS
9737 Discard options specified for swaps in /etc/fstab are now
9738 respected.
9739
9740 * Docker containers are now detected as a separate type of
9741 virtualization.
9742
9743 * The Password Agent protocol gained support for queries where
ba8df74b 9744 the user input is shown, useful e.g. for user names.
78b6b7ce
LP
9745 systemd-ask-password gained a new --echo option to turn that
9746 on.
b62a309a 9747
e6c253e3
MS
9748 * The default sysctl.d/ snippets will now set:
9749
9750 net.core.default_qdisc = fq_codel
9751
ba8df74b
KS
9752 This selects Fair Queuing Controlled Delay as the default
9753 queuing discipline for network interfaces. fq_codel helps
e6c253e3
MS
9754 fight the network bufferbloat problem. It is believed to be
9755 a good default with no tuning required for most workloads.
9756 Downstream distributions may override this choice. On 10Gbit
9757 servers that do not do forwarding, "fq" may perform better.
9758 Systems without a good clocksource should use "pfifo_fast".
9759
4bdc60cb
LP
9760 * If kdbus is enabled during build a new option BusPolicy= is
9761 available for service units, that allows locking all service
9762 processes into a stricter bus policy, in order to limit
9763 access to various bus services, or even hide most of them
9764 from the service's view entirely.
9765
9766 * networkctl will now show the .network and .link file
9767 networkd has applied to a specific interface.
9768
9769 * sd-login gained a new API call sd_session_get_desktop() to
9770 query which desktop environment has been selected for a
9771 session.
9772
9773 * UNIX utmp support is now compile-time optional to support
9774 legacy-free systems.
9775
78b6b7ce
LP
9776 * systemctl gained two new commands "add-wants" and
9777 "add-requires" for pulling in units from specific targets
9778 easily.
9779
9780 * If the word "rescue" is specified on the kernel command line
9781 the system will now boot into rescue mode (aka
9782 rescue.target), which was previously available only by
9783 specifying "1" or "systemd.unit=rescue.target" on the kernel
9784 command line. This new kernel command line option nicely
9785 mirrors the already existing "emergency" kernel command line
9786 option.
9787
9788 * New kernel command line options mount.usr=, mount.usrflags=,
d4474c41 9789 mount.usrfstype= have been added that match root=, rootflags=,
78b6b7ce
LP
9790 rootfstype= but allow mounting a specific file system to
9791 /usr.
9792
f6d1de85 9793 * The $NOTIFY_SOCKET is now also passed to control processes of
78b6b7ce
LP
9794 services, not only the main process.
9795
9796 * This version reenables support for fsck's -l switch. This
9797 means at least version v2.25 of util-linux is required for
9798 operation, otherwise dead-locks on device nodes may
9799 occur. Again: you need to update util-linux to at least
9800 v2.25 when updating systemd to v217.
9801
3769415e
TT
9802 * The "multi-seat-x" tool has been removed from systemd, as
9803 its functionality has been integrated into X servers 1.16,
9804 and the tool is hence redundant. It is recommended to update
9805 display managers invoking this tool to simply invoke X
9806 directly from now on, again.
9807
fae9332b 9808 * Support for the new ALLOW_INTERACTIVE_AUTHORIZATION D-Bus
d35f51ea
ZJS
9809 message flag has been added for all of systemd's polkit
9810 authenticated method calls has been added. In particular this
9811 now allows optional interactive authorization via polkit for
9812 many of PID1's privileged operations such as unit file
9813 enabling and disabling.
fae9332b 9814
cfa1571b
LP
9815 * "udevadm hwdb --update" learnt a new switch "--usr" for
9816 placing the rebuilt hardware database in /usr instead of
9817 /etc. When used only hardware database entries stored in
9818 /usr will be used, and any user database entries in /etc are
9819 ignored. This functionality is useful for vendors to ship a
9820 pre-built database on systems where local configuration is
9821 unnecessary or unlikely.
9822
7e63dd10
LP
9823 * Calendar time specifications in .timer units now also
9824 understand the strings "semi-annually", "quarterly" and
ba8df74b 9825 "minutely" as shortcuts (in addition to the preexisting
1d3a473b 9826 "annually", "hourly", …).
7e63dd10 9827
d4474c41
TG
9828 * systemd-tmpfiles will now correctly create files in /dev
9829 at boot which are marked for creation only at boot. It is
9830 recommended to always create static device nodes with 'c!'
9831 and 'b!', so that they are created only at boot and not
9832 overwritten at runtime.
9833
3b187c5c
LP
9834 * When the watchdog logic is used for a service (WatchdogSec=)
9835 and the watchdog timeout is hit the service will now be
9836 terminated with SIGABRT (instead of just SIGTERM), in order
9837 to make sure a proper coredump and backtrace is
9838 generated. This ensures that hanging services will result in
9839 similar coredump/backtrace behaviour as services that hit a
9840 segmentation fault.
9841
4b08dd87
LP
9842 Contributions from: Andreas Henriksson, Andrei Borzenkov,
9843 Angus Gibson, Ansgar Burchardt, Ben Wolsieffer, Brandon L.
9844 Black, Christian Hesse, Cristian Rodríguez, Daniel Buch,
9845 Daniele Medri, Daniel Mack, Dan Williams, Dave Reisner, David
9846 Herrmann, David Sommerseth, David Strauss, Emil Renner
9847 Berthing, Eric Cook, Evangelos Foutras, Filipe Brandenburger,
9848 Gustavo Sverzut Barbieri, Hans de Goede, Harald Hoyer, Hristo
9849 Venev, Hugo Grostabussiat, Ivan Shapovalov, Jan Janssen, Jan
9850 Synacek, Jonathan Liu, Juho Son, Karel Zak, Kay Sievers, Klaus
9851 Purer, Koen Kooi, Lennart Poettering, Lukas Nykryn, Lukasz
9852 Skalski, Łukasz Stelmach, Mantas Mikulėnas, Marcel Holtmann,
9853 Marius Tessmann, Marko Myllynen, Martin Pitt, Michael Biebl,
9854 Michael Marineau, Michael Olbrich, Michael Scherer, Michal
9855 Schmidt, Michal Sekletar, Miroslav Lichvar, Patrik Flykt,
9856 Philippe De Swert, Piotr Drąg, Rahul Sundaram, Richard
9857 Weinberger, Robert Milasan, Ronny Chevalier, Ruben Kerkhof,
9858 Santiago Vila, Sergey Ptashnick, Simon McVittie, Sjoerd
9859 Simons, Stefan Brüns, Steven Allen, Steven Noonan, Susant
9860 Sahani, Sylvain Plantefève, Thomas Hindoe Paaboel Andersen,
9861 Timofey Titovets, Tobias Hunger, Tom Gundersen, Torstein
9862 Husebø, Umut Tezduyar Lindskog, WaLyong Cho, Zbigniew
13e92f39 9863 Jędrzejewski-Szmek
4b08dd87 9864
ccddd104 9865 — Berlin, 2014-10-28
4b08dd87 9866
b72ddf0f 9867CHANGES WITH 216:
b2ca0d63
LP
9868
9869 * timedated no longer reads NTP implementation unit names from
b72ddf0f 9870 /usr/lib/systemd/ntp-units.d/*.list. Alternative NTP
b2ca0d63
LP
9871 implementations should add a
9872
b72ddf0f 9873 Conflicts=systemd-timesyncd.service
b2ca0d63
LP
9874
9875 to their unit files to take over and replace systemd's NTP
9876 default functionality.
9877
9878 * systemd-sysusers gained a new line type "r" for configuring
9879 which UID/GID ranges to allocate system users/groups
9880 from. Lines of type "u" may now add an additional column
9881 that specifies the home directory for the system user to be
9882 created. Also, systemd-sysusers may now optionally read user
9883 information from STDIN instead of a file. This is useful for
9884 invoking it from RPM preinst scriptlets that need to create
9885 users before the first RPM file is installed since these
9886 files might need to be owned by them. A new
9887 %sysusers_create_inline RPM macro has been introduced to do
9888 just that. systemd-sysusers now updates the shadow files as
9889 well as the user/group databases, which should enhance
9890 compatibility with certain tools like grpck.
9891
d35f51ea
ZJS
9892 * A number of bus APIs of PID 1 now optionally consult polkit to
9893 permit access for otherwise unprivileged clients under certain
9894 conditions. Note that this currently doesn't support
9895 interactive authentication yet, but this is expected to be
9896 added eventually, too.
b2ca0d63
LP
9897
9898 * /etc/machine-info now has new fields for configuring the
9899 deployment environment of the machine, as well as the
9900 location of the machine. hostnamectl has been updated with
9901 new command to update these fields.
9902
9903 * systemd-timesyncd has been updated to automatically acquire
9904 NTP server information from systemd-networkd, which might
9905 have been discovered via DHCP.
9906
9907 * systemd-resolved now includes a caching DNS stub resolver
9908 and a complete LLMNR name resolution implementation. A new
daa05349
AB
9909 NSS module "nss-resolve" has been added which can be used
9910 instead of glibc's own "nss-dns" to resolve hostnames via
b2ca0d63
LP
9911 systemd-resolved. Hostnames, addresses and arbitrary RRs may
9912 be resolved via systemd-resolved D-Bus APIs. In contrast to
9913 the glibc internal resolver systemd-resolved is aware of
9914 multi-homed system, and keeps DNS server and caches separate
5f02e26c 9915 and per-interface. Queries are sent simultaneously on all
b2ca0d63
LP
9916 interfaces that have DNS servers configured, in order to
9917 properly handle VPNs and local LANs which might resolve
9918 separate sets of domain names. systemd-resolved may acquire
a1a4a25e 9919 DNS server information from systemd-networkd automatically,
b2ca0d63
LP
9920 which in turn might have discovered them via DHCP. A tool
9921 "systemd-resolve-host" has been added that may be used to
9922 query the DNS logic in resolved. systemd-resolved implements
9923 IDNA and automatically uses IDNA or UTF-8 encoding depending
9924 on whether classic DNS or LLMNR is used as transport. In the
9925 next releases we intend to add a DNSSEC and mDNS/DNS-SD
9926 implementation to systemd-resolved.
9927
9928 * A new NSS module nss-mymachines has been added, that
9929 automatically resolves the names of all local registered
9930 containers to their respective IP addresses.
9931
9932 * A new client tool "networkctl" for systemd-networkd has been
9933 added. It currently is entirely passive and will query
9934 networking configuration from udev, rtnetlink and networkd,
5f02e26c 9935 and present it to the user in a very friendly
b2ca0d63
LP
9936 way. Eventually, we hope to extend it to become a full
9937 control utility for networkd.
9938
9939 * .socket units gained a new DeferAcceptSec= setting that
9940 controls the kernels' TCP_DEFER_ACCEPT sockopt for
a8eaaee7 9941 TCP. Similarly, support for controlling TCP keep-alive
b2ca0d63
LP
9942 settings has been added (KeepAliveTimeSec=,
9943 KeepAliveIntervalSec=, KeepAliveProbes=). Also, support for
9944 turning off Nagle's algorithm on TCP has been added
9945 (NoDelay=).
9946
a1a4a25e 9947 * logind learned a new session type "web", for use in projects
b2ca0d63
LP
9948 like Cockpit which register web clients as PAM sessions.
9949
9950 * timer units with at least one OnCalendar= setting will now
46ae28d8 9951 be started only after time-sync.target has been
b2ca0d63
LP
9952 reached. This way they will not elapse before the system
9953 clock has been corrected by a local NTP client or
9954 similar. This is particular useful on RTC-less embedded
9955 machines, that come up with an invalid system clock.
9956
9957 * systemd-nspawn's --network-veth= switch should now result in
9958 stable MAC addresses for both the outer and the inner side
9959 of the link.
9960
9961 * systemd-nspawn gained a new --volatile= switch for running
9962 container instances with /etc or /var unpopulated.
9963
9964 * The kdbus client code has been updated to use the new Linux
9965 3.17 memfd subsystem instead of the old kdbus-specific one.
9966
9967 * systemd-networkd's DHCP client and server now support
01da80b1
LP
9968 FORCERENEW. There are also new configuration options to
9969 configure the vendor client identifier and broadcast mode
9970 for DHCP.
b2ca0d63
LP
9971
9972 * systemd will no longer inform the kernel about the current
9973 timezone, as this is necessarily incorrect and racy as the
9974 kernel has no understanding of DST and similar
9975 concepts. This hence means FAT timestamps will be always
9976 considered UTC, similar to what Android is already
9977 doing. Also, when the RTC is configured to the local time
9978 (rather than UTC) systemd will never synchronize back to it,
9979 as this might confuse Windows at a later boot.
9980
9981 * systemd-analyze gained a new command "verify" for offline
9982 validation of unit files.
9983
9984 * systemd-networkd gained support for a couple of additional
9985 settings for bonding networking setups. Also, the metric for
9986 statically configured routes may now be configured. For
9987 network interfaces where this is appropriate the peer IP
9988 address may now be configured.
9989
26568403
TG
9990 * systemd-networkd's DHCP client will no longer request
9991 broadcasting by default, as this tripped up some networks.
9992 For hardware where broadcast is required the feature should
9993 be switched back on using RequestBroadcast=yes.
9994
9995 * systemd-networkd will now set up IPv4LL addresses (when
9996 enabled) even if DHCP is configured successfully.
9997
9998 * udev will now default to respect network device names given
9999 by the kernel when the kernel indicates that these are
10000 predictable. This behavior can be tweaked by changing
10001 NamePolicy= in the relevant .link file.
10002
b2ca0d63
LP
10003 * A new library systemd-terminal has been added that
10004 implements full TTY stream parsing and rendering. This
10005 library is supposed to be used later on for implementing a
10006 full userspace VT subsystem, replacing the current kernel
10007 implementation.
10008
10009 * A new tool systemd-journal-upload has been added to push
10010 journal data to a remote system running
10011 systemd-journal-remote.
10012
10013 * journald will no longer forward all local data to another
10014 running syslog daemon. This change has been made because
10015 rsyslog (which appears to be the most commonly used syslog
10016 implementation these days) no longer makes use of this, and
10017 instead pulls the data out of the journal on its own. Since
5f02e26c 10018 forwarding the messages to a non-existent syslog server is
b2ca0d63
LP
10019 more expensive than we assumed we have now turned this
10020 off. If you run a syslog server that is not a recent rsyslog
10021 version, you have to turn this option on again
10022 (ForwardToSyslog= in journald.conf).
10023
10024 * journald now optionally supports the LZ4 compressor for
10025 larger journal fields. This compressor should perform much
10026 better than XZ which was the previous default.
10027
10028 * machinectl now shows the IP addresses of local containers,
10029 if it knows them, plus the interface name of the container.
10030
10031 * A new tool "systemd-escape" has been added that makes it
10032 easy to escape strings to build unit names and similar.
10033
10034 * sd_notify() messages may now include a new ERRNO= field
10035 which is parsed and collected by systemd and shown among the
10036 "systemctl status" output for a service.
10037
10038 * A new component "systemd-firstboot" has been added that
10039 queries the most basic systemd information (timezone,
a1a4a25e 10040 hostname, root password) interactively on first
b2ca0d63
LP
10041 boot. Alternatively it may also be used to provision these
10042 things offline on OS images installed into directories.
10043
01da80b1
LP
10044 * The default sysctl.d/ snippets will now set
10045
10046 net.ipv4.conf.default.promote_secondaries=1
10047
10048 This has the benefit of no flushing secondary IP addresses
10049 when primary addresses are removed.
10050
b2ca0d63
LP
10051 Contributions from: Ansgar Burchardt, Bastien Nocera, Colin
10052 Walters, Dan Dedrick, Daniel Buch, Daniel Korostil, Daniel
10053 Mack, Dan Williams, Dave Reisner, David Herrmann, Denis
10054 Kenzior, Eelco Dolstra, Eric Cook, Hannes Reinecke, Harald
10055 Hoyer, Hong Shick Pak, Hui Wang, Jean-André Santoni, Jóhann
10056 B. Guðmundsson, Jon Severinsson, Karel Zak, Kay Sievers, Kevin
10057 Wells, Lennart Poettering, Lukas Nykryn, Mantas Mikulėnas,
10058 Marc-Antoine Perennou, Martin Pitt, Michael Biebl, Michael
10059 Marineau, Michael Olbrich, Michal Schmidt, Michal Sekletar,
10060 Miguel Angel Ajo, Mike Gilbert, Olivier Brunel, Robert
10061 Schiele, Ronny Chevalier, Simon McVittie, Sjoerd Simons, Stef
10062 Walter, Steven Noonan, Susant Sahani, Tanu Kaskinen, Thomas
10063 Blume, Thomas Hindoe Paaboel Andersen, Timofey Titovets,
10064 Tobias Geerinckx-Rice, Tomasz Torcz, Tom Gundersen, Umut
10065 Tezduyar Lindskog, Zbigniew Jędrzejewski-Szmek
10066
ccddd104 10067 — Berlin, 2014-08-19
b72ddf0f 10068
3dff3e00 10069CHANGES WITH 215:
24a2bf4c
LP
10070
10071 * A new tool systemd-sysusers has been added. This tool
10072 creates system users and groups in /etc/passwd and
10073 /etc/group, based on static declarative system user/group
10074 definitions in /usr/lib/sysusers.d/. This is useful to
10075 enable factory resets and volatile systems that boot up with
10076 an empty /etc directory, and thus need system users and
10077 groups created during early boot. systemd now also ships
10078 with two default sysusers.d/ files for the most basic
10079 users and groups systemd and the core operating system
10080 require.
10081
10082 * A new tmpfiles snippet has been added that rebuilds the
10083 essential files in /etc on boot, should they be missing.
10084
10085 * A directive for ensuring automatic clean-up of
10086 /var/cache/man/ has been removed from the default
10087 configuration. This line should now be shipped by the man
10088 implementation. The necessary change has been made to the
10089 man-db implementation. Note that you need to update your man
10090 implementation to one that ships this line, otherwise no
10091 automatic clean-up of /var/cache/man will take place.
10092
10093 * A new condition ConditionNeedsUpdate= has been added that
10094 may conditionalize services to only run when /etc or /var
10095 are "older" than the vendor operating system resources in
10096 /usr. This is useful for reconstructing or updating /etc
10097 after an offline update of /usr or a factory reset, on the
10098 next reboot. Services that want to run once after such an
10099 update or reset should use this condition and order
10100 themselves before the new systemd-update-done.service, which
10101 will mark the two directories as fully updated. A number of
10102 service files have been added making use of this, to rebuild
10103 the udev hardware database, the journald message catalog and
10104 dynamic loader cache (ldconfig). The systemd-sysusers tool
10105 described above also makes use of this now. With this in
10106 place it is now possible to start up a minimal operating
ce1dde29 10107 system with /etc empty cleanly. For more information on the
24a2bf4c
LP
10108 concepts involved see this recent blog story:
10109
10110 http://0pointer.de/blog/projects/stateless.html
10111
10112 * A new system group "input" has been introduced, and all
10113 input device nodes get this group assigned. This is useful
10114 for system-level software to get access to input devices. It
3dff3e00
KS
10115 complements what is already done for "audio" and "video".
10116
24a2bf4c
LP
10117 * systemd-networkd learnt minimal DHCPv4 server support in
10118 addition to the existing DHCPv4 client support. It also
10119 learnt DHCPv6 client and IPv6 Router Solicitation client
10120 support. The DHCPv4 client gained support for static routes
10121 passed in from the server. Note that the [DHCPv4] section
10122 known in older systemd-networkd versions has been renamed to
10123 [DHCP] and is now also used by the DHCPv6 client. Existing
c7435cc9
LP
10124 .network files using settings of this section should be
10125 updated, though compatibility is maintained. Optionally, the
10126 client hostname may now be sent to the DHCP server.
24a2bf4c 10127
c7435cc9
LP
10128 * networkd gained support for vxlan virtual networks as well
10129 as tun/tap and dummy devices.
24a2bf4c
LP
10130
10131 * networkd gained support for automatic allocation of address
10132 ranges for interfaces from a system-wide pool of
10133 addresses. This is useful for dynamically managing a large
10134 number of interfaces with a single network configuration
10135 file. In particular this is useful to easily assign
10136 appropriate IP addresses to the veth links of a large number
10137 of nspawn instances.
10138
10139 * RPM macros for processing sysusers, sysctl and binfmt
10140 drop-in snippets at package installation time have been
10141 added.
10142
10143 * The /etc/os-release file should now be placed in
10144 /usr/lib/os-release. The old location is automatically
10145 created as symlink. /usr/lib is the more appropriate
10146 location of this file, since it shall actually describe the
10147 vendor operating system shipped in /usr, and not the
10148 configuration stored in /etc.
10149
10150 * .mount units gained a new boolean SloppyOptions= setting
10151 that maps to mount(8)'s -s option which enables permissive
10152 parsing of unknown mount options.
10153
10154 * tmpfiles learnt a new "L+" directive which creates a symlink
10155 but (unlike "L") deletes a pre-existing file first, should
10156 it already exist and not already be the correct
a8eaaee7 10157 symlink. Similarly, "b+", "c+" and "p+" directives have been
24a2bf4c
LP
10158 added as well, which create block and character devices, as
10159 well as fifos in the filesystem, possibly removing any
10160 pre-existing files of different types.
10161
10162 * For tmpfiles' "L", "L+", "C" and "C+" directives the final
10163 'argument' field (which so far specified the source to
ce1dde29 10164 symlink/copy the files from) is now optional. If omitted the
24a2bf4c
LP
10165 same file os copied from /usr/share/factory/ suffixed by the
10166 full destination path. This is useful for populating /etc
10167 with essential files, by copying them from vendor defaults
10168 shipped in /usr/share/factory/etc.
10169
10170 * A new command "systemctl preset-all" has been added that
10171 applies the service preset settings to all installed unit
10172 files. A new switch --preset-mode= has been added that
10173 controls whether only enable or only disable operations
10174 shall be executed.
10175
10176 * A new command "systemctl is-system-running" has been added
10177 that allows checking the overall state of the system, for
ce1dde29 10178 example whether it is fully up and running.
24a2bf4c
LP
10179
10180 * When the system boots up with an empty /etc, the equivalent
10181 to "systemctl preset-all" is executed during early boot, to
10182 make sure all default services are enabled after a factory
10183 reset.
10184
10185 * systemd now contains a minimal preset file that enables the
10186 most basic services systemd ships by default.
10187
10188 * Unit files' [Install] section gained a new DefaultInstance=
10189 field for defining the default instance to create if a
10190 template unit is enabled with no instance specified.
10191
10192 * A new passive target cryptsetup-pre.target has been added
10193 that may be used by services that need to make they run and
10194 finish before the first LUKS cryptographic device is set up.
10195
10196 * The /dev/loop-control and /dev/btrfs-control device nodes
10197 are now owned by the "disk" group by default, opening up
10198 access to this group.
10199
10200 * systemd-coredump will now automatically generate a
10201 stack trace of all core dumps taking place on the system,
10202 based on elfutils' libdw library. This stack trace is logged
10203 to the journal.
10204
10205 * systemd-coredump may now optionally store coredumps directly
10206 on disk (in /var/lib/systemd/coredump, possibly compressed),
10207 instead of storing them unconditionally in the journal. This
10208 mode is the new default. A new configuration file
10209 /etc/systemd/coredump.conf has been added to configure this
10210 and other parameters of systemd-coredump.
10211
10212 * coredumpctl gained a new "info" verb to show details about a
10213 specific coredump. A new switch "-1" has also been added
10214 that makes sure to only show information about the most
10215 recent entry instead of all entries. Also, as the tool is
10216 generally useful now the "systemd-" prefix of the binary
10217 name has been removed. Distributions that want to maintain
10218 compatibility with the old name should add a symlink from
10219 the old name to the new name.
10220
10221 * journald's SplitMode= now defaults to "uid". This makes sure
ce1dde29 10222 that unprivileged users can access their own coredumps with
24a2bf4c
LP
10223 coredumpctl without restrictions.
10224
10225 * New kernel command line options "systemd.wants=" (for
10226 pulling an additional unit during boot), "systemd.mask="
10227 (for masking a specific unit for the boot), and
10228 "systemd.debug-shell" (for enabling the debug shell on tty9)
10229 have been added. This is implemented in the new generator
10230 "systemd-debug-generator".
10231
10232 * systemd-nspawn will now by default filter a couple of
10233 syscalls for containers, among them those required for
10234 kernel module loading, direct x86 IO port access, swap
10235 management, and kexec. Most importantly though
10236 open_by_handle_at() is now prohibited for containers,
10237 closing a hole similar to a recently discussed vulnerability
10238 in docker regarding access to files on file hierarchies the
b938cb90
JE
10239 container should normally not have access to. Note that, for
10240 nspawn, we generally make no security claims anyway (and
24a2bf4c
LP
10241 this is explicitly documented in the man page), so this is
10242 just a fix for one of the most obvious problems.
10243
10244 * A new man page file-hierarchy(7) has been added that
10245 contains a minimized, modernized version of the file system
10246 layout systemd expects, similar in style to the FHS
c7435cc9
LP
10247 specification or hier(5). A new tool systemd-path(1) has
10248 been added to query many of these paths for the local
10249 machine and user.
24a2bf4c
LP
10250
10251 * Automatic time-based clean-up of $XDG_RUNTIME_DIR is no
10252 longer done. Since the directory now has a per-user size
10253 limit, and is cleaned on logout this appears unnecessary,
10254 in particular since this now brings the lifecycle of this
10255 directory closer in line with how IPC objects are handled.
10256
10257 * systemd.pc now exports a number of additional directories,
10258 including $libdir (which is useful to identify the library
10259 path for the primary architecture of the system), and a
10260 couple of drop-in directories.
10261
3058e017
TLSC
10262 * udev's predictable network interface names now use the dev_port
10263 sysfs attribute, introduced in linux 3.15 instead of dev_id to
10264 distinguish between ports of the same PCI function. dev_id should
10265 only be used for ports using the same HW address, hence the need
10266 for dev_port.
10267
c7435cc9
LP
10268 * machined has been updated to export the OS version of a
10269 container (read from /etc/os-release and
10270 /usr/lib/os-release) on the bus. This is now shown in
10271 "machinectl status" for a machine.
10272
10273 * A new service setting RestartForceExitStatus= has been
10274 added. If configured to a set of exit signals or process
10275 return values, the service will be restarted when the main
10276 daemon process exits with any of them, regardless of the
10277 Restart= setting.
10278
10279 * systemctl's -H switch for connecting to remote systemd
10280 machines has been extended so that it may be used to
10281 directly connect to a specific container on the
10282 host. "systemctl -H root@foobar:waldi" will now connect as
10283 user "root" to host "foobar", and then proceed directly to
10284 the container named "waldi". Note that currently you have to
10285 authenticate as user "root" for this to work, as entering
10286 containers is a privileged operation.
10287
10288 Contributions from: Andreas Henriksson, Benjamin Steinwender,
10289 Carl Schaefer, Christian Hesse, Colin Ian King, Cristian
10290 Rodríguez, Daniel Mack, Dave Reisner, David Herrmann, Eugene
10291 Yakubovich, Filipe Brandenburger, Frederic Crozat, Hristo
10292 Venev, Jan Engelhardt, Jonathan Boulle, Kay Sievers, Lennart
10293 Poettering, Luke Shumaker, Mantas Mikulėnas, Marc-Antoine
10294 Perennou, Marcel Holtmann, Michael Marineau, Michael Olbrich,
10295 Michał Bartoszkiewicz, Michal Sekletar, Patrik Flykt, Ronan Le
10296 Martret, Ronny Chevalier, Ruediger Oertel, Steven Noonan,
10297 Susant Sahani, Thadeu Lima de Souza Cascardo, Thomas Hindoe
10298 Paaboel Andersen, Tom Gundersen, Tom Hirst, Umut Tezduyar
10299 Lindskog, Uoti Urpala, Zbigniew Jędrzejewski-Szmek
10300
ccddd104 10301 — Berlin, 2014-07-03
c7435cc9 10302
4196a3ea
KS
10303CHANGES WITH 214:
10304
10305 * As an experimental feature, udev now tries to lock the
10306 disk device node (flock(LOCK_SH|LOCK_NB)) while it
10307 executes events for the disk or any of its partitions.
10308 Applications like partitioning programs can lock the
10309 disk device node (flock(LOCK_EX)) and claim temporary
10310 device ownership that way; udev will entirely skip all event
10311 handling for this disk and its partitions. If the disk
10312 was opened for writing, the close will trigger a partition
10313 table rescan in udev's "watch" facility, and if needed
71449caf 10314 synthesize "change" events for the disk and all its partitions.
8d0e0ddd 10315 This is now unconditionally enabled, and if it turns out to
4196a3ea 10316 cause major problems, we might turn it on only for specific
45df8656 10317 devices, or might need to disable it entirely. Device Mapper
4196a3ea
KS
10318 devices are excluded from this logic.
10319
04e91da2
LP
10320 * We temporarily dropped the "-l" switch for fsck invocations,
10321 since they collide with the flock() logic above. util-linux
10322 upstream has been changed already to avoid this conflict,
5238e957 10323 and we will re-add "-l" as soon as util-linux with this
04e91da2
LP
10324 change has been released.
10325
10326 * The dependency on libattr has been removed. Since a long
8d0e0ddd 10327 time, the extended attribute calls have moved to glibc, and
04e91da2
LP
10328 libattr is thus unnecessary.
10329
ce830873 10330 * Virtualization detection works without privileges now. This
04e91da2
LP
10331 means the systemd-detect-virt binary no longer requires
10332 CAP_SYS_PTRACE file capabilities, and our daemons can run
71449caf 10333 with fewer privileges.
04e91da2
LP
10334
10335 * systemd-networkd now runs under its own "systemd-network"
10336 user. It retains the CAP_NET_ADMIN, CAP_NET_BIND_SERVICE,
10337 CAP_NET_BROADCAST, CAP_NET_RAW capabilities though, but
10338 loses the ability to write to files owned by root this way.
10339
a8eaaee7 10340 * Similarly, systemd-resolved now runs under its own
04e91da2
LP
10341 "systemd-resolve" user with no capabilities remaining.
10342
a8eaaee7 10343 * Similarly, systemd-bus-proxyd now runs under its own
04e91da2
LP
10344 "systemd-bus-proxy" user with only CAP_IPC_OWNER remaining.
10345
10346 * systemd-networkd gained support for setting up "veth"
a8eaaee7 10347 virtual Ethernet devices for container connectivity, as well
04e91da2
LP
10348 as GRE and VTI tunnels.
10349
10350 * systemd-networkd will no longer automatically attempt to
10351 manually load kernel modules necessary for certain tunnel
8d0e0ddd 10352 transports. Instead, it is assumed the kernel loads them
04e91da2
LP
10353 automatically when required. This only works correctly on
10354 very new kernels. On older kernels, please consider adding
c54bed5d 10355 the kernel modules to /etc/modules-load.d/ as a work-around.
04e91da2 10356
cd14eda3 10357 * The resolv.conf file systemd-resolved generates has been
8d0e0ddd
JE
10358 moved to /run/systemd/resolve/. If you have a symlink from
10359 /etc/resolv.conf, it might be necessary to correct it.
cd14eda3 10360
ef392da6 10361 * Two new service settings, ProtectHome= and ProtectSystem=,
8d0e0ddd 10362 have been added. When enabled, they will make the user data
04e91da2
LP
10363 (such as /home) inaccessible or read-only and the system
10364 (such as /usr) read-only, for specific services. This allows
10365 very light-weight per-service sandboxing to avoid
10366 modifications of user data or system files from
10367 services. These two new switches have been enabled for all
10368 of systemd's long-running services, where appropriate.
10369
10370 * Socket units gained new SocketUser= and SocketGroup=
10371 settings to set the owner user and group of AF_UNIX sockets
10372 and FIFOs in the file system.
10373
8d0e0ddd 10374 * Socket units gained a new RemoveOnStop= setting. If enabled,
04e91da2
LP
10375 all FIFOS and sockets in the file system will be removed
10376 when the specific socket unit is stopped.
10377
10378 * Socket units gained a new Symlinks= setting. It takes a list
10379 of symlinks to create to file system sockets or FIFOs
45df8656 10380 created by the specific Unix sockets. This is useful to
de04bbdc 10381 manage symlinks to socket nodes with the same lifecycle as
04e91da2
LP
10382 the socket itself.
10383
10384 * The /dev/log socket and /dev/initctl FIFO have been moved to
10385 /run, and have been replaced by symlinks. This allows
10386 connecting to these facilities even if PrivateDevices=yes is
10387 used for a service (which makes /dev/log itself unavailable,
10388 but /run is left). This also has the benefit of ensuring
10389 that /dev only contains device nodes, directories and
10390 symlinks, and nothing else.
10391
10392 * sd-daemon gained two new calls sd_pid_notify() and
10393 sd_pid_notifyf(). They are similar to sd_notify() and
10394 sd_notifyf(), but allow overriding of the source PID of
10395 notification messages if permissions permit this. This is
10396 useful to send notify messages on behalf of a different
10397 process (for example, the parent process). The
10398 systemd-notify tool has been updated to make use of this
10399 when sending messages (so that notification messages now
10400 originate from the shell script invoking systemd-notify and
10401 not the systemd-notify process itself. This should minimize
10402 a race where systemd fails to associate notification
10403 messages to services when the originating process already
10404 vanished.
10405
10406 * A new "on-abnormal" setting for Restart= has been added. If
8d0e0ddd 10407 set, it will result in automatic restarts on all "abnormal"
04e91da2
LP
10408 reasons for a process to exit, which includes unclean
10409 signals, core dumps, timeouts and watchdog timeouts, but
10410 does not include clean and unclean exit codes or clean
10411 signals. Restart=on-abnormal is an alternative for
10412 Restart=on-failure for services that shall be able to
10413 terminate and avoid restarts on certain errors, by
10414 indicating so with an unclean exit code. Restart=on-failure
10415 or Restart=on-abnormal is now the recommended setting for
10416 all long-running services.
10417
10418 * If the InaccessibleDirectories= service setting points to a
10419 mount point (or if there are any submounts contained within
10420 it), it is now attempted to completely unmount it, to make
10421 the file systems truly unavailable for the respective
10422 service.
10423
10424 * The ReadOnlyDirectories= service setting and
10425 systemd-nspawn's --read-only parameter are now recursively
10426 applied to all submounts, too.
10427
10428 * Mount units may now be created transiently via the bus APIs.
10429
10430 * The support for SysV and LSB init scripts has been removed
10431 from the systemd daemon itself. Instead, it is now
10432 implemented as a generator that creates native systemd units
10433 from these scripts when needed. This enables us to remove a
10434 substantial amount of legacy code from PID 1, following the
10435 fact that many distributions only ship a very small number
10436 of LSB/SysV init scripts nowadays.
10437
cc98b302 10438 * Privileged Xen (dom0) domains are not considered
04e91da2
LP
10439 virtualization anymore by the virtualization detection
10440 logic. After all, they generally have unrestricted access to
71449caf 10441 the hardware and usually are used to manage the unprivileged
04e91da2
LP
10442 (domU) domains.
10443
10444 * systemd-tmpfiles gained a new "C" line type, for copying
10445 files or entire directories.
10446
10447 * systemd-tmpfiles "m" lines are now fully equivalent to "z"
8d0e0ddd
JE
10448 lines. So far, they have been non-globbing versions of the
10449 latter, and have thus been redundant. In future, it is
10450 recommended to only use "z". "m" has hence been removed
04e91da2
LP
10451 from the documentation, even though it stays supported.
10452
10453 * A tmpfiles snippet to recreate the most basic structure in
10454 /var has been added. This is enough to create the /var/run →
10455 /run symlink and create a couple of structural
10456 directories. This allows systems to boot up with an empty or
8d0e0ddd
JE
10457 volatile /var. Of course, while with this change, the core OS
10458 now is capable with dealing with a volatile /var, not all
04e91da2 10459 user services are ready for it. However, we hope that sooner
8d0e0ddd 10460 or later, many service daemons will be changed upstream so
04e91da2
LP
10461 that they are able to automatically create their necessary
10462 directories in /var at boot, should they be missing. This is
10463 the first step to allow state-less systems that only require
10464 the vendor image for /usr to boot.
10465
10466 * systemd-nspawn has gained a new --tmpfs= switch to mount an
10467 empty tmpfs instance to a specific directory. This is
10468 particularly useful for making use of the automatic
10469 reconstruction of /var (see above), by passing --tmpfs=/var.
10470
10471 * Access modes specified in tmpfiles snippets may now be
10472 prefixed with "~", which indicates that they shall be masked
daa05349 10473 by whether the existing file or directory is currently
8d0e0ddd 10474 writable, readable or executable at all. Also, if specified,
04e91da2
LP
10475 the sgid/suid/sticky bits will be masked for all
10476 non-directories.
10477
10478 * A new passive target unit "network-pre.target" has been
10479 added which is useful for services that shall run before any
10480 network is configured, for example firewall scripts.
10481
4c0d13bd
LP
10482 * The "floppy" group that previously owned the /dev/fd*
10483 devices is no longer used. The "disk" group is now used
10484 instead. Distributions should probably deprecate usage of
10485 this group.
10486
dc1d6c02
LP
10487 Contributions from: Camilo Aguilar, Christian Hesse, Colin Ian
10488 King, Cristian Rodríguez, Daniel Buch, Dave Reisner, David
10489 Strauss, Denis Tikhomirov, John, Jonathan Liu, Kay Sievers,
10490 Lennart Poettering, Mantas Mikulėnas, Mark Eichin, Ronny
10491 Chevalier, Susant Sahani, Thomas Blume, Thomas Hindoe Paaboel
10492 Andersen, Tom Gundersen, Umut Tezduyar Lindskog, Zbigniew
10493 Jędrzejewski-Szmek
10494
ccddd104 10495 — Berlin, 2014-06-11
dc1d6c02 10496
6936cd89
LP
10497CHANGES WITH 213:
10498
10499 * A new "systemd-timesyncd" daemon has been added for
69beda1f 10500 synchronizing the system clock across the network. It
6936cd89 10501 implements an SNTP client. In contrast to NTP
8d0e0ddd 10502 implementations such as chrony or the NTP reference server,
6936cd89 10503 this only implements a client side, and does not bother with
c9679c65
LP
10504 the full NTP complexity, focusing only on querying time from
10505 one remote server and synchronizing the local clock to
6936cd89 10506 it. Unless you intend to serve NTP to networked clients or
8d0e0ddd 10507 want to connect to local hardware clocks, this simple NTP
6936cd89
LP
10508 client should be more than appropriate for most
10509 installations. The daemon runs with minimal privileges, and
10510 has been hooked up with networkd to only operate when
10511 network connectivity is available. The daemon saves the
10512 current clock to disk every time a new NTP sync has been
10513 acquired, and uses this to possibly correct the system clock
69beda1f 10514 early at bootup, in order to accommodate for systems that
6936cd89 10515 lack an RTC such as the Raspberry Pi and embedded devices,
8d0e0ddd 10516 and to make sure that time monotonically progresses on these
c9679c65 10517 systems, even if it is not always correct. To make use of
8d0e0ddd 10518 this daemon, a new system user and group "systemd-timesync"
c9679c65 10519 needs to be created on installation of systemd.
6936cd89 10520
69beda1f
KS
10521 * The queue "seqnum" interface of libudev has been disabled, as
10522 it was generally incompatible with device namespacing as
6936cd89
LP
10523 sequence numbers of devices go "missing" if the devices are
10524 part of a different namespace.
10525
10526 * "systemctl list-timers" and "systemctl list-sockets" gained
10527 a --recursive switch for showing units of these types also
499b604b
ZJS
10528 for all local containers, similar in style to the already
10529 supported --recursive switch for "systemctl list-units".
6936cd89
LP
10530
10531 * A new RebootArgument= setting has been added for service
10532 units, which may be used to specify a kernel reboot argument
499b604b 10533 to use when triggering reboots with StartLimitAction=.
6936cd89
LP
10534
10535 * A new FailureAction= setting has been added for service
10536 units which may be used to specify an operation to trigger
499b604b 10537 when a service fails. This works similarly to
8d0e0ddd 10538 StartLimitAction=, but unlike it, controls what is done
6936cd89
LP
10539 immediately rather than only after several attempts to
10540 restart the service in question.
10541
10542 * hostnamed got updated to also expose the kernel name,
499b604b
ZJS
10543 release, and version on the bus. This is useful for
10544 executing commands like hostnamectl with the -H switch.
10545 systemd-analyze makes use of this to properly display
10546 details when running non-locally.
6936cd89
LP
10547
10548 * The bootchart tool can now show cgroup information in the
10549 graphs it generates.
10550
10551 * The CFS CPU quota cgroup attribute is now exposed for
10552 services. The new CPUQuota= switch has been added for this
10553 which takes a percentage value. Setting this will have the
10554 result that a service may never get more CPU time than the
10555 specified percentage, even if the machine is otherwise idle.
10556
10557 * systemd-networkd learned IPIP and SIT tunnel support.
10558
10559 * LSB init scripts exposing a dependency on $network will now
10560 get a dependency on network-online.target rather than simply
10561 network.target. This should bring LSB handling closer to
10562 what it was on SysV systems.
10563
10564 * A new fsck.repair= kernel option has been added to control
10565 how fsck shall deal with unclean file systems at boot.
10566
2ad98889
ZJS
10567 * The (.ini) configuration file parser will now silently ignore
10568 sections whose names begin with "X-". This may be used to maintain
10569 application-specific extension sections in unit files.
6936cd89
LP
10570
10571 * machined gained a new API to query the IP addresses of
10572 registered containers. "machinectl status" has been updated
10573 to show these addresses in its output.
10574
10575 * A new call sd_uid_get_display() has been added to the
10576 sd-login APIs for querying the "primary" session of a
10577 user. The "primary" session of the user is elected from the
10578 user's sessions and generally a graphical session is
10579 preferred over a text one.
10580
10581 * A minimal systemd-resolved daemon has been added. It
10582 currently simply acts as a companion to systemd-networkd and
10583 manages resolv.conf based on per-interface DNS
10584 configuration, possibly supplied via DHCP. In the long run
10585 we hope to extend this into a local DNSSEC enabled DNS and
10586 mDNS cache.
10587
68dd0956
TG
10588 * The systemd-networkd-wait-online tool is now enabled by
10589 default. It will delay network-online.target until a network
10590 connection has been configured. The tool primarily integrates
10591 with networkd, but will also make a best effort to make sense
10592 of network configuration performed in some other way.
10593
6936cd89 10594 * Two new service options StartupCPUShares= and
499b604b 10595 StartupBlockIOWeight= have been added that work similarly to
6936cd89 10596 CPUShares= and BlockIOWeight= however only apply during
69beda1f 10597 system startup. This is useful to prioritize certain services
6936cd89
LP
10598 differently during bootup than during normal runtime.
10599
8e7acf67
LP
10600 * hostnamed has been changed to prefer the statically
10601 configured hostname in /etc/hostname (unless set to
10602 'localhost' or empty) over any dynamic one supplied by
8d0e0ddd 10603 dhcp. With this change, the rules for picking the hostname
8e7acf67
LP
10604 match more closely the rules of other configuration settings
10605 where the local administrator's configuration in /etc always
10606 overrides any other settings.
10607
5238e957 10608 Contributions from: Ali H. Caliskan, Alison Chaiken, Bas van
6936cd89
LP
10609 den Berg, Brandon Philips, Cristian Rodríguez, Daniel Buch,
10610 Dan Kilman, Dave Reisner, David Härdeman, David Herrmann,
10611 David Strauss, Dimitris Spingos, Djalal Harouni, Eelco
10612 Dolstra, Evan Nemerson, Florian Albrechtskirchinger, Greg
10613 Kroah-Hartman, Harald Hoyer, Holger Hans Peter Freyther, Jan
10614 Engelhardt, Jani Nikula, Jason St. John, Jeffrey Clark,
10615 Jonathan Boulle, Kay Sievers, Lennart Poettering, Lukas
10616 Nykryn, Lukasz Skalski, Łukasz Stelmach, Mantas Mikulėnas,
8e7acf67
LP
10617 Marcel Holtmann, Martin Pitt, Matthew Monaco, Michael
10618 Marineau, Michael Olbrich, Michal Sekletar, Mike Gilbert, Nis
10619 Martensen, Patrik Flykt, Philip Lorenz, poma, Ray Strode,
10620 Reyad Attiyat, Robert Milasan, Scott Thrasher, Stef Walter,
10621 Steven Siloti, Susant Sahani, Tanu Kaskinen, Thomas Bächler,
10622 Thomas Hindoe Paaboel Andersen, Tom Gundersen, Umut Tezduyar
10623 Lindskog, WaLyong Cho, Will Woods, Zbigniew
6936cd89
LP
10624 Jędrzejewski-Szmek
10625
ccddd104 10626 — Beijing, 2014-05-28
6936cd89 10627
51c61cda
LP
10628CHANGES WITH 212:
10629
10630 * When restoring the screen brightness at boot, stay away from
10631 the darkest setting or from the lowest 5% of the available
10632 range, depending on which is the larger value of both. This
10633 should effectively protect the user from rebooting into a
10634 black screen, should the brightness have been set to minimum
10635 by accident.
10636
10637 * sd-login gained a new sd_machine_get_class() call to
10638 determine the class ("vm" or "container") of a machine
10639 registered with machined.
10640
10641 * sd-login gained new calls
10642 sd_peer_get_{session,owner_uid,unit,user_unit,slice,machine_name}(),
10643 to query the identity of the peer of a local AF_UNIX
499b604b 10644 connection. They operate similarly to their sd_pid_get_xyz()
51c61cda
LP
10645 counterparts.
10646
10647 * PID 1 will now maintain a system-wide system state engine
10648 with the states "starting", "running", "degraded",
10649 "maintenance", "stopping". These states are bound to system
10650 startup, normal runtime, runtime with at least one failed
10651 service, rescue/emergency mode and system shutdown. This
10652 state is shown in the "systemctl status" output when no unit
10653 name is passed. It is useful to determine system state, in
10654 particularly when doing so for many systems or containers at
10655 once.
10656
10657 * A new command "list-machines" has been added to "systemctl"
10658 that lists all local OS containers and shows their system
10659 state (see above), if systemd runs inside of them.
10660
10661 * systemctl gained a new "-r" switch to recursively enumerate
10662 units on all local containers, when used with the
10663 "list-unit" command (which is the default one that is
10664 executed when no parameters are specified).
10665
10666 * The GPT automatic partition discovery logic will now honour
10667 two GPT partition flags: one may be set on a partition to
10668 cause it to be mounted read-only, and the other may be set
10669 on a partition to ignore it during automatic discovery.
10670
10671 * Two new GPT type UUIDs have been added for automatic root
70a44afe 10672 partition discovery, for 32-bit and 64-bit ARM. This is not
51c61cda
LP
10673 particularly useful for discovering the root directory on
10674 these architectures during bare-metal boots (since UEFI is
10675 not common there), but still very useful to allow booting of
10676 ARM disk images in nspawn with the -i option.
10677
10678 * MAC addresses of interfaces created with nspawn's
10679 --network-interface= switch will now be generated from the
10680 machine name, and thus be stable between multiple invocations
10681 of the container.
10682
10683 * logind will now automatically remove all IPC objects owned
10684 by a user if she or he fully logs out. This makes sure that
10685 users who are logged out cannot continue to consume IPC
10686 resources. This covers SysV memory, semaphores and message
10687 queues as well as POSIX shared memory and message
de04bbdc 10688 queues. Traditionally, SysV and POSIX IPC had no lifecycle
b8bde116
JE
10689 limits. With this functionality, that is corrected. This may
10690 be turned off by using the RemoveIPC= switch of logind.conf.
51c61cda
LP
10691
10692 * The systemd-machine-id-setup and tmpfiles tools gained a
10693 --root= switch to operate on a specific root directory,
10694 instead of /.
10695
10696 * journald can now forward logged messages to the TTYs of all
10697 logged in users ("wall"). This is the default for all
10698 emergency messages now.
10699
10700 * A new tool systemd-journal-remote has been added to stream
10701 journal log messages across the network.
10702
10703 * /sys/fs/cgroup/ is now mounted read-only after all cgroup
10704 controller trees are mounted into it. Note that the
10705 directories mounted beneath it are not read-only. This is a
10706 security measure and is particularly useful because glibc
10707 actually includes a search logic to pick any tmpfs it can
10708 find to implement shm_open() if /dev/shm is not available
10709 (which it might very well be in namespaced setups).
10710
10711 * machinectl gained a new "poweroff" command to cleanly power
10712 down a local OS container.
10713
10714 * The PrivateDevices= unit file setting will now also drop the
10715 CAP_MKNOD capability from the capability bound set, and
10716 imply DevicePolicy=closed.
10717
10718 * PrivateDevices=, PrivateNetwork= and PrivateTmp= is now used
10719 comprehensively on all long-running systemd services where
10720 this is appropriate.
10721
10722 * systemd-udevd will now run in a disassociated mount
b8bde116 10723 namespace. To mount directories from udev rules, make sure to
51c61cda
LP
10724 pull in mount units via SYSTEMD_WANTS properties.
10725
10726 * The kdbus support gained support for uploading policy into
10727 the kernel. sd-bus gained support for creating "monitoring"
10728 connections that can eavesdrop into all bus communication
10729 for debugging purposes.
10730
10731 * Timestamps may now be specified in seconds since the UNIX
10732 epoch Jan 1st, 1970 by specifying "@" followed by the value
10733 in seconds.
10734
10735 * Native tcpwrap support in systemd has been removed. tcpwrap
10736 is old code, not really maintained anymore and has serious
10737 shortcomings, and better options such as firewalls
10738 exist. For setups that require tcpwrap usage, please
10739 consider invoking your socket-activated service via tcpd,
10740 like on traditional inetd.
10741
10742 * A new system.conf configuration option
10743 DefaultTimerAccuracySec= has been added that controls the
10744 default AccuracySec= setting of .timer units.
10745
b8bde116 10746 * Timer units gained a new WakeSystem= switch. If enabled,
51c61cda
LP
10747 timers configured this way will cause the system to resume
10748 from system suspend (if the system supports that, which most
10749 do these days).
10750
b8bde116 10751 * Timer units gained a new Persistent= switch. If enabled,
51c61cda
LP
10752 timers configured this way will save to disk when they have
10753 been last triggered. This information is then used on next
10754 reboot to possible execute overdue timer events, that
d28315e4
JE
10755 could not take place because the system was powered off.
10756 This enables simple anacron-like behaviour for timer units.
51c61cda
LP
10757
10758 * systemctl's "list-timers" will now also list the time a
10759 timer unit was last triggered in addition to the next time
10760 it will be triggered.
10761
10762 * systemd-networkd will now assign predictable IPv4LL
10763 addresses to its local interfaces.
10764
10765 Contributions from: Brandon Philips, Daniel Buch, Daniel Mack,
10766 Dave Reisner, David Herrmann, Gerd Hoffmann, Greg
10767 Kroah-Hartman, Hendrik Brueckner, Jason St. John, Josh
10768 Triplett, Kay Sievers, Lennart Poettering, Marc-Antoine
10769 Perennou, Michael Marineau, Michael Olbrich, Miklos Vajna,
10770 Patrik Flykt, poma, Sebastian Thorarensen, Thomas Bächler,
10771 Thomas Hindoe Paaboel Andersen, Tomasz Torcz, Tom Gundersen,
10772 Umut Tezduyar Lindskog, Wieland Hoffmann, Zbigniew
10773 Jędrzejewski-Szmek
10774
ccddd104 10775 — Berlin, 2014-03-25
51c61cda 10776
699b6b34
LP
10777CHANGES WITH 211:
10778
10779 * A new unit file setting RestrictAddressFamilies= has been
10780 added to restrict which socket address families unit
10781 processes gain access to. This takes address family names
10782 like "AF_INET" or "AF_UNIX", and is useful to minimize the
10783 attack surface of services via exotic protocol stacks. This
10784 is built on seccomp system call filters.
10785
10786 * Two new unit file settings RuntimeDirectory= and
10787 RuntimeDirectoryMode= have been added that may be used to
10788 manage a per-daemon runtime directories below /run. This is
10789 an alternative for setting up directory permissions with
10790 tmpfiles snippets, and has the advantage that the runtime
10791 directory's lifetime is bound to the daemon runtime and that
10792 the daemon starts up with an empty directory each time. This
10793 is particularly useful when writing services that drop
f1721625 10794 privileges using the User= or Group= setting.
699b6b34
LP
10795
10796 * The DeviceAllow= unit setting now supports globbing for
10797 matching against device group names.
10798
10799 * The systemd configuration file system.conf gained new
10800 settings DefaultCPUAccounting=, DefaultBlockIOAccounting=,
10801 DefaultMemoryAccounting= to globally turn on/off accounting
10802 for specific resources (cgroups) for all units. These
22e7062d 10803 settings may still be overridden individually in each unit
699b6b34
LP
10804 though.
10805
10806 * systemd-gpt-auto-generator is now able to discover /srv and
10807 root partitions in addition to /home and swap partitions. It
10808 also supports LUKS-encrypted partitions now. With this in
b8bde116 10809 place, automatic discovery of partitions to mount following
699b6b34 10810 the Discoverable Partitions Specification
a794a4d8 10811 (https://systemd.io/DISCOVERABLE_PARTITIONS/)
699b6b34
LP
10812 is now a lot more complete. This allows booting without
10813 /etc/fstab and without root= on the kernel command line on
b8bde116 10814 systems prepared appropriately.
699b6b34
LP
10815
10816 * systemd-nspawn gained a new --image= switch which allows
10817 booting up disk images and Linux installations on any block
10818 device that follow the Discoverable Partitions Specification
10819 (see above). This means that installations made with
10820 appropriately updated installers may now be started and
10821 deployed using container managers, completely
10822 unmodified. (We hope that libvirt-lxc will add support for
10823 this feature soon, too.)
10824
10825 * systemd-nspawn gained a new --network-macvlan= setting to
10826 set up a private macvlan interface for the
499b604b 10827 container. Similarly, systemd-networkd gained a new
699b6b34
LP
10828 Kind=macvlan setting in .netdev files.
10829
10830 * systemd-networkd now supports configuring local addresses
10831 using IPv4LL.
10832
10833 * A new tool systemd-network-wait-online has been added to
10834 synchronously wait for network connectivity using
10835 systemd-networkd.
10836
10837 * The sd-bus.h bus API gained a new sd_bus_track object for
de04bbdc 10838 tracking the lifecycle of bus peers. Note that sd-bus.h is
699b6b34
LP
10839 still not a public API though (unless you specify
10840 --enable-kdbus on the configure command line, which however
10841 voids your warranty and you get no API stability guarantee).
10842
10843 * The $XDG_RUNTIME_DIR runtime directories for each user are
10844 now individual tmpfs instances, which has the benefit of
10845 introducing separate pools for each user, with individual
4ef6e535 10846 size limits, and thus making sure that unprivileged clients
699b6b34
LP
10847 can no longer negatively impact the system or other users by
10848 filling up their $XDG_RUNTIME_DIR. A new logind.conf setting
10849 RuntimeDirectorySize= has been introduced that allows
10850 controlling the default size limit for all users. It
10851 defaults to 10% of the available physical memory. This is no
10852 replacement for quotas on tmpfs though (which the kernel
10853 still does not support), as /dev/shm and /tmp are still
4ef6e535 10854 shared resources used by both the system and unprivileged
699b6b34
LP
10855 users.
10856
10857 * logind will now automatically turn off automatic suspending
10858 on laptop lid close when more than one display is
10859 connected. This was previously expected to be implemented
10860 individually in desktop environments (such as GNOME),
10861 however has been added to logind now, in order to fix a
10862 boot-time race where a desktop environment might not have
10863 been started yet and thus not been able to take an inhibitor
10864 lock at the time where logind already suspends the system
10865 due to a closed lid.
10866
10867 * logind will now wait at least 30s after each system
10868 suspend/resume cycle, and 3min after system boot before
10869 suspending the system due to a closed laptop lid. This
10870 should give USB docking stations and similar enough time to
4ef6e535 10871 be probed and configured after system resume and boot in
699b6b34
LP
10872 order to then act as suspend blocker.
10873
10874 * systemd-run gained a new --property= setting which allows
10875 initialization of resource control properties (and others)
10876 for the created scope or service unit. Example: "systemd-run
10877 --property=BlockIOWeight=10 updatedb" may be used to run
10878 updatedb at a low block IO scheduling weight.
10879
10880 * systemd-run's --uid=, --gid=, --setenv=, --setenv= switches
10881 now also work in --scope mode.
10882
10883 * When systemd is compiled with kdbus support, basic support
10884 for enforced policies is now in place. (Note that enabling
10885 kdbus still voids your warranty and no API compatibility
10886 promises are made.)
10887
10888 Contributions from: Andrey Borzenkov, Ansgar Burchardt, Armin
10889 K., Daniel Mack, Dave Reisner, David Herrmann, Djalal Harouni,
10890 Harald Hoyer, Henrik Grindal Bakken, Jasper St. Pierre, Kay
10891 Sievers, Kieran Clancy, Lennart Poettering, Lukas Nykryn,
10892 Mantas Mikulėnas, Marcel Holtmann, Mark Oteiza, Martin Pitt,
10893 Mike Gilbert, Peter Rajnoha, poma, Samuli Suominen, Stef
10894 Walter, Susant Sahani, Tero Roponen, Thomas Andersen, Thomas
10895 Bächler, Thomas Hindoe Paaboel Andersen, Tomasz Torcz, Tom
10896 Gundersen, Umut Tezduyar Lindskog, Uoti Urpala, Zachary Cook,
10897 Zbigniew Jędrzejewski-Szmek
10898
ccddd104 10899 — Berlin, 2014-03-12
699b6b34 10900
43c71255
LP
10901CHANGES WITH 210:
10902
10903 * systemd will now relabel /dev after loading the SMACK policy
10904 according to SMACK rules.
10905
67dd87c5 10906 * A new unit file option AppArmorProfile= has been added to
43c71255
LP
10907 set the AppArmor profile for the processes of a unit.
10908
10909 * A new condition check ConditionArchitecture= has been added
10910 to conditionalize units based on the system architecture, as
10911 reported by uname()'s "machine" field.
10912
10913 * systemd-networkd now supports matching on the system
38b38500 10914 virtualization, architecture, kernel command line, hostname
43c71255
LP
10915 and machine ID.
10916
ed28905e 10917 * logind is now a lot more aggressive when suspending the
43c71255 10918 machine due to a closed laptop lid. Instead of acting only
b8bde116 10919 on the lid close action, it will continuously watch the lid
43c71255
LP
10920 status and act on it. This is useful for laptops where the
10921 power button is on the outside of the chassis so that it can
ed28905e 10922 be reached without opening the lid (such as the Lenovo
b8bde116 10923 Yoga). On those machines, logind will now immediately
ed28905e 10924 re-suspend the machine if the power button has been
43c71255
LP
10925 accidentally pressed while the laptop was suspended and in a
10926 backpack or similar.
10927
10928 * logind will now watch SW_DOCK switches and inhibit reaction
10929 to the lid switch if it is pressed. This means that logind
d27893ef 10930 will not suspend the machine anymore if the lid is closed
949138cc 10931 and the system is docked, if the laptop supports SW_DOCK
43c71255
LP
10932 notifications via the input layer. Note that ACPI docking
10933 stations do not generate this currently. Also note that this
10934 logic is usually not fully sufficient and Desktop
10935 Environments should take a lid switch inhibitor lock when an
10936 external display is connected, as systemd will not watch
10937 this on its own.
10938
10939 * nspawn will now make use of the devices cgroup controller by
10940 default, and only permit creation of and access to the usual
10941 API device nodes like /dev/null or /dev/random, as well as
10942 access to (but not creation of) the pty devices.
10943
10944 * We will now ship a default .network file for
10945 systemd-networkd that automatically configures DHCP for
10946 network interfaces created by nspawn's --network-veth or
10947 --network-bridge= switches.
10948
10949 * systemd will now understand the usual M, K, G, T suffixes
10950 according to SI conventions (i.e. to the base 1000) when
10951 referring to throughput and hardware metrics. It will stay
10952 with IEC conventions (i.e. to the base 1024) for software
10953 metrics, according to what is customary according to
10954 Wikipedia. We explicitly document which base applies for
10955 each configuration option.
10956
6b000af4
LP
10957 * The DeviceAllow= setting in unit files now supports a syntax to
10958 allow-list an entire group of devices node majors at once, based on
10959 the /proc/devices listing. For example, with the string "char-pts",
10960 it is now possible to allow-list all current and future pseudo-TTYs
10961 at once.
43c71255
LP
10962
10963 * sd-event learned a new "post" event source. Event sources of
10964 this type are triggered by the dispatching of any event
10965 source of a type that is not "post". This is useful for
10966 implementing clean-up and check event sources that are
10967 triggered by other work being done in the program.
10968
10969 * systemd-networkd is no longer statically enabled, but uses
10970 the usual [Install] sections so that it can be
10971 enabled/disabled using systemctl. It still is enabled by
10972 default however.
10973
b8bde116 10974 * When creating a veth interface pair with systemd-nspawn, the
43c71255
LP
10975 host side will now be prefixed with "vb-" if
10976 --network-bridge= is used, and with "ve-" if --network-veth
b8bde116 10977 is used. This way, it is easy to distinguish these cases on
43c71255
LP
10978 the host, for example to apply different configuration to
10979 them with systemd-networkd.
10980
d27893ef
LP
10981 * The compatibility libraries for libsystemd-journal.so,
10982 libsystem-id128.so, libsystemd-login.so and
10983 libsystemd-daemon.so do not make use of IFUNC
b8bde116 10984 anymore. Instead, we now build libsystemd.so multiple times
d27893ef
LP
10985 under these alternative names. This means that the footprint
10986 is drastically increased, but given that these are
b8bde116 10987 transitional compatibility libraries, this should not matter
d27893ef
LP
10988 much. This change has been made necessary to support the ARM
10989 platform for these compatibility libraries, as the ARM
d28315e4 10990 toolchain is not really at the same level as the toolchain
ed28905e 10991 for other architectures like x86 and does not support
d27893ef
LP
10992 IFUNC. Please make sure to use --enable-compat-libs only
10993 during a transitional period!
10994
f26ad321
ZJS
10995 * The .include syntax has been deprecated and is not documented
10996 anymore. Drop-in files in .d directories should be used instead.
10997
13b28d82 10998 Contributions from: Andreas Fuchs, Armin K., Colin Walters,
43c71255
LP
10999 Daniel Mack, Dave Reisner, David Herrmann, Djalal Harouni,
11000 Holger Schurig, Jason A. Donenfeld, Jason St. John, Jasper
11001 St. Pierre, Kay Sievers, Lennart Poettering, Łukasz Stelmach,
11002 Marcel Holtmann, Michael Scherer, Michal Sekletar, Mike
11003 Gilbert, Samuli Suominen, Thomas Bächler, Thomas Hindoe
11004 Paaboel Andersen, Tom Gundersen, Umut Tezduyar Lindskog,
11005 Zbigniew Jędrzejewski-Szmek
11006
ccddd104 11007 — Berlin, 2014-02-24
43c71255 11008
e49b5aad
LP
11009CHANGES WITH 209:
11010
11011 * A new component "systemd-networkd" has been added that can
11012 be used to configure local network interfaces statically or
8b7d0494
JSJ
11013 via DHCP. It is capable of bringing up bridges, VLANs, and
11014 bonding. Currently, no hook-ups for interactive network
4670e9d5 11015 configuration are provided. Use this for your initrd,
8b7d0494
JSJ
11016 container, embedded, or server setup if you need a simple,
11017 yet powerful, network configuration solution. This
4670e9d5 11018 configuration subsystem is quite nifty, as it allows wildcard
1e190502 11019 hotplug matching in interfaces. For example, with a single
4670e9d5 11020 configuration snippet, you can configure that all Ethernet
1e190502
ZJS
11021 interfaces showing up are automatically added to a bridge,
11022 or similar. It supports link-sensing and more.
e49b5aad
LP
11023
11024 * A new tool "systemd-socket-proxyd" has been added which can
4c2413bf 11025 act as a bidirectional proxy for TCP sockets. This is
e49b5aad
LP
11026 useful for adding socket activation support to services that
11027 do not actually support socket activation, including virtual
4c2413bf 11028 machines and the like.
e49b5aad
LP
11029
11030 * Add a new tool to save/restore rfkill state on
11031 shutdown/boot.
11032
8b7d0494
JSJ
11033 * Save/restore state of keyboard backlights in addition to
11034 display backlights on shutdown/boot.
e49b5aad
LP
11035
11036 * udev learned a new SECLABEL{} construct to label device
11037 nodes with a specific security label when they appear. For
4c2413bf 11038 now, only SECLABEL{selinux} is supported, but the syntax is
e49b5aad
LP
11039 prepared for additional security frameworks.
11040
11041 * udev gained a new scheme to configure link-level attributes
11042 from files in /etc/systemd/network/*.link. These files can
8b7d0494 11043 match against MAC address, device path, driver name and type,
4c2413bf 11044 and will apply attributes like the naming policy, link speed,
8b7d0494 11045 MTU, duplex settings, Wake-on-LAN settings, MAC address, MAC
1d3a473b 11046 address assignment policy (randomized, …).
e49b5aad 11047
dfb08b05
ZJS
11048 * The configuration of network interface naming rules for
11049 "permanent interface names" has changed: a new NamePolicy=
11050 setting in the [Link] section of .link files determines the
a8eaaee7 11051 priority of possible naming schemes (onboard, slot, MAC,
dfb08b05
ZJS
11052 path). The default value of this setting is determined by
11053 /usr/lib/net/links/99-default.link. Old
11054 80-net-name-slot.rules udev configuration file has been
11055 removed, so local configuration overriding this file should
ce830873 11056 be adapted to override 99-default.link instead.
dfb08b05 11057
e49b5aad 11058 * When the User= switch is used in a unit file, also
4c2413bf 11059 initialize $SHELL= based on the user database entry.
e49b5aad
LP
11060
11061 * systemd no longer depends on libdbus. All communication is
11062 now done with sd-bus, systemd's low-level bus library
11063 implementation.
11064
11065 * kdbus support has been added to PID 1 itself. When kdbus is
4c2413bf 11066 enabled, this causes PID 1 to set up the system bus and
e49b5aad
LP
11067 enable support for a new ".busname" unit type that
11068 encapsulates bus name activation on kdbus. It works a little
11069 bit like ".socket" units, except for bus names. A new
11070 generator has been added that converts classic dbus1 service
11071 activation files automatically into native systemd .busname
11072 and .service units.
11073
11074 * sd-bus: add a light-weight vtable implementation that allows
11075 defining objects on the bus with a simple static const
11076 vtable array of its methods, signals and properties.
11077
8b7d0494 11078 * systemd will not generate or install static dbus
e49b5aad 11079 introspection data anymore to /usr/share/dbus-1/interfaces,
1e190502 11080 as the precise format of these files is unclear, and
e49b5aad
LP
11081 nothing makes use of it.
11082
11083 * A proxy daemon is now provided to proxy clients connecting
11084 via classic D-Bus AF_UNIX sockets to kdbus, to provide full
11085 compatibility with classic D-Bus.
11086
11087 * A bus driver implementation has been added that supports the
11088 classic D-Bus bus driver calls on kdbus, also for
11089 compatibility purposes.
11090
11091 * A new API "sd-event.h" has been added that implements a
11092 minimal event loop API built around epoll. It provides a
11093 couple of features that direct epoll usage is lacking:
b9761003 11094 prioritization of events, scales to large numbers of timer
e49b5aad
LP
11095 events, per-event timer slack (accuracy), system-wide
11096 coalescing of timer events, exit handlers, watchdog
11097 supervision support using systemd's sd_notify() API, child
11098 process handling.
11099
11100 * A new API "sd-rntl.h" has been added that provides an API
11101 around the route netlink interface of the kernel, similar in
11102 style to "sd-bus.h".
11103
7e95eda5
PF
11104 * A new API "sd-dhcp-client.h" has been added that provides a
11105 small DHCPv4 client-side implementation. This is used by
e49b5aad
LP
11106 "systemd-networkd".
11107
4c2413bf 11108 * There is a new kernel command line option
8b7d0494
JSJ
11109 "systemd.restore_state=0|1". When set to "0", none of the
11110 systemd tools will restore saved runtime state to hardware
11111 devices. More specifically, the rfkill and backlight states
11112 are not restored.
e49b5aad
LP
11113
11114 * The FsckPassNo= compatibility option in mount/service units
11115 has been removed. The fstab generator will now add the
11116 necessary dependencies automatically, and does not require
11117 PID1's support for that anymore.
11118
8b7d0494 11119 * journalctl gained a new switch, --list-boots, that lists
e49b5aad
LP
11120 recent boots with their times and boot IDs.
11121
11122 * The various tools like systemctl, loginctl, timedatectl,
1d3a473b 11123 busctl, systemd-run, … have gained a new switch "-M" to
e49b5aad
LP
11124 connect to a specific, local OS container (as direct
11125 connection, without requiring SSH). This works on any
11126 container that is registered with machined, such as those
11127 created by libvirt-lxc or nspawn.
11128
11129 * systemd-run and systemd-analyze also gained support for "-H"
4c2413bf 11130 to connect to remote hosts via SSH. This is particularly
8b7d0494
JSJ
11131 useful for systemd-run because it enables queuing of jobs
11132 onto remote systems.
e49b5aad
LP
11133
11134 * machinectl gained a new command "login" to open a getty
11135 login in any local container. This works with any container
11136 that is registered with machined (such as those created by
8e420494 11137 libvirt-lxc or nspawn), and which runs systemd inside.
e49b5aad
LP
11138
11139 * machinectl gained a new "reboot" command that may be used to
11140 trigger a reboot on a specific container that is registered
11141 with machined. This works on any container that runs an init
11142 system of some kind.
11143
11144 * systemctl gained a new "list-timers" command to print a nice
11145 listing of installed timer units with the times they elapse
11146 next.
11147
11148 * Alternative reboot() parameters may now be specified on the
11149 "systemctl reboot" command line and are passed to the
11150 reboot() system call.
11151
11152 * systemctl gained a new --job-mode= switch to configure the
11153 mode to queue a job with. This is a more generic version of
8b7d0494 11154 --fail, --irreversible, and --ignore-dependencies, which are
e49b5aad
LP
11155 still available but not advertised anymore.
11156
e49b5aad
LP
11157 * /etc/systemd/system.conf gained new settings to configure
11158 various default timeouts of units, as well as the default
b9761003 11159 start limit interval and burst. These may still be overridden
e49b5aad
LP
11160 within each Unit.
11161
270f1624
LP
11162 * PID1 will now export on the bus profile data of the security
11163 policy upload process (such as the SELinux policy upload to
8e420494 11164 the kernel).
e49b5aad 11165
4670e9d5 11166 * journald: when forwarding logs to the console, include
1e190502
ZJS
11167 timestamps (following the setting in
11168 /sys/module/printk/parameters/time).
e49b5aad
LP
11169
11170 * OnCalendar= in timer units now understands the special
11171 strings "yearly" and "annually". (Both are equivalent)
11172
11173 * The accuracy of timer units is now configurable with the new
11174 AccuracySec= setting. It defaults to 1min.
11175
11176 * A new dependency type JoinsNamespaceOf= has been added that
11177 allows running two services within the same /tmp and network
11178 namespace, if PrivateNetwork= or PrivateTmp= are used.
11179
11180 * A new command "cat" has been added to systemctl. It outputs
11181 the original unit file of a unit, and concatenates the
1e190502
ZJS
11182 contents of additional "drop-in" unit file snippets, so that
11183 the full configuration is shown.
e49b5aad
LP
11184
11185 * systemctl now supports globbing on the various "list-xyz"
11186 commands, like "list-units" or "list-sockets", as well as on
1e190502
ZJS
11187 those commands which take multiple unit names.
11188
11189 * journalctl's --unit= switch gained support for globbing.
e49b5aad
LP
11190
11191 * All systemd daemons now make use of the watchdog logic so
11192 that systemd automatically notices when they hang.
11193
4c2413bf 11194 * If the $container_ttys environment variable is set,
e49b5aad
LP
11195 getty-generator will automatically spawn a getty for each
11196 listed tty. This is useful for container managers to request
11197 login gettys to be spawned on as many ttys as needed.
11198
11199 * %h, %s, %U specifier support is not available anymore when
11200 used in unit files for PID 1. This is because NSS calls are
11201 not safe from PID 1. They stay available for --user
11202 instances of systemd, and as special case for the root user.
11203
e49b5aad
LP
11204 * loginctl gained a new "--no-legend" switch to turn off output
11205 of the legend text.
11206
11207 * The "sd-login.h" API gained three new calls:
11208 sd_session_is_remote(), sd_session_get_remote_user(),
11209 sd_session_get_remote_host() to query information about
11210 remote sessions.
11211
8e420494
LP
11212 * The udev hardware database now also carries vendor/product
11213 information of SDIO devices.
e49b5aad
LP
11214
11215 * The "sd-daemon.h" API gained a new sd_watchdog_enabled() to
11216 determine whether watchdog notifications are requested by
11217 the system manager.
11218
1e190502 11219 * Socket-activated per-connection services now include a
e49b5aad
LP
11220 short description of the connection parameters in the
11221 description.
11222
4c2413bf 11223 * tmpfiles gained a new "--boot" option. When this is not used,
e49b5aad 11224 only lines where the command character is not suffixed with
4670e9d5 11225 "!" are executed. When this option is specified, those
1e190502
ZJS
11226 options are executed too. This partitions tmpfiles
11227 directives into those that can be safely executed at any
11228 time, and those which should be run only at boot (for
11229 example, a line that creates /run/nologin).
e49b5aad 11230
c0c5af00 11231 * A new API "sd-resolve.h" has been added which provides a simple
38b38500 11232 asynchronous wrapper around glibc NSS hostname resolution
e49b5aad 11233 calls, such as getaddrinfo(). In contrast to glibc's
4c2413bf
JE
11234 getaddrinfo_a(), it does not use signals. In contrast to most
11235 other asynchronous name resolution libraries, this one does
11236 not reimplement DNS, but reuses NSS, so that alternate
38b38500 11237 hostname resolution systems continue to work, such as mDNS,
8b7d0494 11238 LDAP, etc. This API is based on libasyncns, but it has been
e49b5aad
LP
11239 cleaned up for inclusion in systemd.
11240
6300b3ec
LP
11241 * The APIs "sd-journal.h", "sd-login.h", "sd-id128.h",
11242 "sd-daemon.h" are no longer found in individual libraries
11243 libsystemd-journal.so, libsystemd-login.so,
11244 libsystemd-id128.so, libsystemd-daemon.so. Instead, we have
8b7d0494
JSJ
11245 merged them into a single library, libsystemd.so, which
11246 provides all symbols. The reason for this is cyclic
e49b5aad 11247 dependencies, as these libraries tend to use each other's
d28315e4 11248 symbols. So far, we have managed to workaround that by linking
6300b3ec
LP
11249 a copy of a good part of our code into each of these
11250 libraries again and again, which, however, makes certain
11251 things hard to do, like sharing static variables. Also, it
11252 substantially increases footprint. With this change, there
11253 is only one library for the basic APIs systemd
11254 provides. Also, "sd-bus.h", "sd-memfd.h", "sd-event.h",
11255 "sd-rtnl.h", "sd-resolve.h", "sd-utf8.h" are found in this
11256 library as well, however are subject to the --enable-kdbus
11257 switch (see below). Note that "sd-dhcp-client.h" is not part
11258 of this library (this is because it only consumes, never
11259 provides, services of/to other APIs). To make the transition
8b7d0494 11260 easy from the separate libraries to the unified one, we
4c2413bf 11261 provide the --enable-compat-libs compile-time switch which
e49b5aad
LP
11262 will generate stub libraries that are compatible with the
11263 old ones but redirect all calls to the new one.
11264
8b7d0494 11265 * All of the kdbus logic and the new APIs "sd-bus.h",
e49b5aad 11266 "sd-memfd.h", "sd-event.h", "sd-rtnl.h", "sd-resolve.h",
8b7d0494
JSJ
11267 and "sd-utf8.h" are compile-time optional via the
11268 "--enable-kdbus" switch, and they are not compiled in by
11269 default. To make use of kdbus, you have to explicitly enable
4c2413bf 11270 the switch. Note however, that neither the kernel nor the
e49b5aad
LP
11271 userspace API for all of this is considered stable yet. We
11272 want to maintain the freedom to still change the APIs for
4c2413bf 11273 now. By specifying this build-time switch, you acknowledge
e49b5aad 11274 that you are aware of the instability of the current
ad42cf73
KS
11275 APIs.
11276
11277 * Also, note that while kdbus is pretty much complete,
e49b5aad 11278 it lacks one thing: proper policy support. This means you
8b7d0494 11279 can build a fully working system with all features; however,
4c2413bf
JE
11280 it will be highly insecure. Policy support will be added in
11281 one of the next releases, at the same time that we will
11282 declare the APIs stable.
e49b5aad 11283
81c7dd89 11284 * When the kernel command line argument "kdbus" is specified,
ad42cf73 11285 systemd will automatically load the kdbus.ko kernel module. At
8b7d0494 11286 this stage of development, it is only useful for testing kdbus
ad42cf73 11287 and should not be used in production. Note: if "--enable-kdbus"
8b7d0494 11288 is specified, and the kdbus.ko kernel module is available, and
ad42cf73
KS
11289 "kdbus" is added to the kernel command line, the entire system
11290 runs with kdbus instead of dbus-daemon, with the above mentioned
11291 problem of missing the system policy enforcement. Also a future
11292 version of kdbus.ko or a newer systemd will not be compatible with
11293 each other, and will unlikely be able to boot the machine if only
11294 one of them is updated.
11295
e49b5aad 11296 * systemctl gained a new "import-environment" command which
4c2413bf 11297 uploads the caller's environment (or parts thereof) into the
e49b5aad
LP
11298 service manager so that it is inherited by services started
11299 by the manager. This is useful to upload variables like
11300 $DISPLAY into the user service manager.
11301
11302 * A new PrivateDevices= switch has been added to service units
11303 which allows running a service with a namespaced /dev
11304 directory that does not contain any device nodes for
4c2413bf 11305 physical devices. More specifically, it only includes devices
8b7d0494 11306 such as /dev/null, /dev/urandom, and /dev/zero which are API
e49b5aad
LP
11307 entry points.
11308
11309 * logind has been extended to support behaviour like VT
11310 switching on seats that do not support a VT. This makes
11311 multi-session available on seats that are not the first seat
11312 (seat0), and on systems where kernel support for VTs has
8b7d0494 11313 been disabled at compile-time.
e49b5aad
LP
11314
11315 * If a process holds a delay lock for system sleep or shutdown
1e190502 11316 and fails to release it in time, we will now log its
e49b5aad
LP
11317 identity. This makes it easier to identify processes that
11318 cause slow suspends or power-offs.
11319
1e190502
ZJS
11320 * When parsing /etc/crypttab, support for a new key-slot=
11321 option as supported by Debian is added. It allows indicating
11322 which LUKS slot to use on disk, speeding up key loading.
e49b5aad 11323
000b1ba5 11324 * The sd_journal_sendv() API call has been checked and
1e190502
ZJS
11325 officially declared to be async-signal-safe so that it may
11326 be invoked from signal handlers for logging purposes.
e49b5aad
LP
11327
11328 * Boot-time status output is now enabled automatically after a
11329 short timeout if boot does not progress, in order to give
8e420494 11330 the user an indication what she or he is waiting for.
1e190502
ZJS
11331
11332 * The boot-time output has been improved to show how much time
11333 remains until jobs expire.
e49b5aad
LP
11334
11335 * The KillMode= switch in service units gained a new possible
8b7d0494 11336 value "mixed". If set, and the unit is shut down, then the
e49b5aad 11337 initial SIGTERM signal is sent only to the main daemon
8e420494 11338 process, while the following SIGKILL signal is sent to
e49b5aad
LP
11339 all remaining processes of the service.
11340
4c2413bf
JE
11341 * When a scope unit is registered, a new property "Controller"
11342 may be set. If set to a valid bus name, systemd will send a
e49b5aad
LP
11343 RequestStop() signal to this name when it would like to shut
11344 down the scope. This may be used to hook manager logic into
11345 the shutdown logic of scope units. Also, scope units may now
8b7d0494 11346 be put in a special "abandoned" state, in which case the
e49b5aad
LP
11347 manager process which created them takes no further
11348 responsibilities for it.
11349
1e190502 11350 * When reading unit files, systemd will now verify
e49b5aad
LP
11351 the access mode of these files, and warn about certain
11352 suspicious combinations. This has been added to make it
11353 easier to track down packaging bugs where unit files are
11354 marked executable or world-writable.
11355
11356 * systemd-nspawn gained a new "--setenv=" switch to set
8b7d0494 11357 container-wide environment variables. The similar option in
1e190502
ZJS
11358 systemd-activate was renamed from "--environment=" to
11359 "--setenv=" for consistency.
e49b5aad
LP
11360
11361 * systemd-nspawn has been updated to create a new kdbus domain
11362 for each container that is invoked, thus allowing each
b9761003 11363 container to have its own set of system and user buses,
8b7d0494 11364 independent of the host.
e49b5aad
LP
11365
11366 * systemd-nspawn gained a new --drop-capability= switch to run
11367 the container with less capabilities than the default. Both
b9761003 11368 --drop-capability= and --capability= now take the special
e49b5aad
LP
11369 string "all" for dropping or keeping all capabilities.
11370
11371 * systemd-nspawn gained new switches for executing containers
11372 with specific SELinux labels set.
11373
11374 * systemd-nspawn gained a new --quiet switch to not generate
11375 any additional output but the container's own console
11376 output.
11377
11378 * systemd-nspawn gained a new --share-system switch to run a
11379 container without PID namespacing enabled.
11380
11381 * systemd-nspawn gained a new --register= switch to control
1e190502 11382 whether the container is registered with systemd-machined or
8e420494 11383 not. This is useful for containers that do not run full
e49b5aad
LP
11384 OS images, but only specific apps.
11385
11386 * systemd-nspawn gained a new --keep-unit which may be used
8b7d0494 11387 when invoked as the only program from a service unit, and
e49b5aad 11388 results in registration of the unit service itself in
1e190502 11389 systemd-machined, instead of a newly opened scope unit.
e49b5aad
LP
11390
11391 * systemd-nspawn gained a new --network-interface= switch for
11392 moving arbitrary interfaces to the container. The new
4c2413bf 11393 --network-veth switch creates a virtual Ethernet connection
8b7d0494
JSJ
11394 between host and container. The new --network-bridge=
11395 switch then allows assigning the host side of this virtual
11396 Ethernet connection to a bridge device.
e49b5aad 11397
6afc95b7
LP
11398 * systemd-nspawn gained a new --personality= switch for
11399 setting the kernel personality for the container. This is
70a44afe 11400 useful when running a 32-bit container on a 64-bit host. A
b8bde116
JE
11401 similar option Personality= is now also available for service
11402 units to use.
6afc95b7 11403
e49b5aad
LP
11404 * logind will now also track a "Desktop" identifier for each
11405 session which encodes the desktop environment of it. This is
11406 useful for desktop environments that want to identify
11407 multiple running sessions of itself easily.
11408
11409 * A new SELinuxContext= setting for service units has been
11410 added that allows setting a specific SELinux execution
11411 context for a service.
11412
11413 * Most systemd client tools will now honour $SYSTEMD_LESS for
11414 settings of the "less" pager. By default, these tools will
8b7d0494
JSJ
11415 override $LESS to allow certain operations to work, such as
11416 jump-to-the-end. With $SYSTEMD_LESS, it is possible to
e49b5aad
LP
11417 influence this logic.
11418
11419 * systemd's "seccomp" hook-up has been changed to make use of
11420 the libseccomp library instead of using its own
11421 implementation. This has benefits for portability among
11422 other things.
11423
4c2413bf 11424 * For usage together with SystemCallFilter=, a new
8b7d0494 11425 SystemCallErrorNumber= setting has been introduced that
b8bde116
JE
11426 allows configuration of a system error number to be returned
11427 on filtered system calls, instead of immediately killing the
e49b5aad
LP
11428 process. Also, SystemCallArchitectures= has been added to
11429 limit access to system calls of a particular architecture
11430 (in order to turn off support for unused secondary
4c2413bf 11431 architectures). There is also a global
8b7d0494 11432 SystemCallArchitectures= setting in system.conf now to turn
e49b5aad
LP
11433 off support for non-native system calls system-wide.
11434
210054d7
KS
11435 * systemd requires a kernel with a working name_to_handle_at(),
11436 please see the kernel config requirements in the README file.
11437
e49b5aad
LP
11438 Contributions from: Adam Williamson, Alex Jia, Anatol Pomozov,
11439 Ansgar Burchardt, AppleBloom, Auke Kok, Bastien Nocera,
11440 Chengwei Yang, Christian Seiler, Colin Guthrie, Colin Walters,
11441 Cristian Rodríguez, Daniel Buch, Daniele Medri, Daniel J
11442 Walsh, Daniel Mack, Dan McGee, Dave Reisner, David Coppa,
11443 David Herrmann, David Strauss, Djalal Harouni, Dmitry Pisklov,
11444 Elia Pinto, Florian Weimer, George McCollister, Goffredo
11445 Baroncelli, Greg Kroah-Hartman, Hendrik Brueckner, Igor
11446 Zhbanov, Jan Engelhardt, Jan Janssen, Jason A. Donenfeld,
11447 Jason St. John, Jasper St. Pierre, Jóhann B. Guðmundsson, Jose
11448 Ignacio Naranjo, Karel Zak, Kay Sievers, Kristian Høgsberg,
11449 Lennart Poettering, Lubomir Rintel, Lukas Nykryn, Lukasz
11450 Skalski, Łukasz Stelmach, Luke Shumaker, Mantas Mikulėnas,
11451 Marc-Antoine Perennou, Marcel Holtmann, Marcos Felipe Rasia de
11452 Mello, Marko Myllynen, Martin Pitt, Matthew Monaco, Michael
11453 Marineau, Michael Scherer, Michał Górny, Michal Sekletar,
11454 Michele Curti, Oleksii Shevchuk, Olivier Brunel, Patrik Flykt,
11455 Pavel Holica, Raudi, Richard Marko, Ronny Chevalier, Sébastien
11456 Luttringer, Sergey Ptashnick, Shawn Landden, Simon Peeters,
11457 Stefan Beller, Susant Sahani, Sylvain Plantefeve, Sylvia Else,
11458 Tero Roponen, Thomas Bächler, Thomas Hindoe Paaboel Andersen,
11459 Tom Gundersen, Umut Tezduyar Lindskog, Unai Uribarri, Václav
11460 Pavlín, Vincent Batts, WaLyong Cho, William Giokas, Yang
11461 Zhiyong, Yin Kangkai, Yuxuan Shui, Zbigniew Jędrzejewski-Szmek
11462
ccddd104 11463 — Berlin, 2014-02-20
e49b5aad 11464
cd4010b3
LP
11465CHANGES WITH 208:
11466
11467 * logind has gained support for facilitating privileged input
11468 and drm device access for unprivileged clients. This work is
11469 useful to allow Wayland display servers (and similar
11470 programs, such as kmscon) to run under the user's ID and
11471 access input and drm devices which are normally
11472 protected. When this is used (and the kernel is new enough)
11473 logind will "mute" IO on the file descriptors passed to
11474 Wayland as long as it is in the background and "unmute" it
11475 if it returns into the foreground. This allows secure
11476 session switching without allowing background sessions to
11477 eavesdrop on input and display data. This also introduces
11478 session switching support if VT support is turned off in the
11479 kernel, and on seats that are not seat0.
11480
11481 * A new kernel command line option luks.options= is understood
06b643e7 11482 now which allows specifying LUKS options for usage for LUKS
cd4010b3
LP
11483 encrypted partitions specified with luks.uuid=.
11484
11485 * tmpfiles.d(5) snippets may now use specifier expansion in
11486 path names. More specifically %m, %b, %H, %v, are now
11487 replaced by the local machine id, boot id, hostname, and
11488 kernel version number.
11489
11490 * A new tmpfiles.d(5) command "m" has been introduced which
11491 may be used to change the owner/group/access mode of a file
d28315e4 11492 or directory if it exists, but do nothing if it does not.
cd4010b3
LP
11493
11494 * This release removes high-level support for the
11495 MemorySoftLimit= cgroup setting. The underlying kernel
11496 cgroup attribute memory.soft_limit= is currently badly
11497 designed and likely to be removed from the kernel API in its
d28315e4 11498 current form, hence we should not expose it for now.
cd4010b3
LP
11499
11500 * The memory.use_hierarchy cgroup attribute is now enabled for
11501 all cgroups systemd creates in the memory cgroup
11502 hierarchy. This option is likely to be come the built-in
cc98b302
TH
11503 default in the kernel anyway, and the non-hierarchical mode
11504 never made much sense in the intrinsically hierarchical
cd4010b3
LP
11505 cgroup system.
11506
11507 * A new field _SYSTEMD_SLICE= is logged along with all journal
11508 messages containing the slice a message was generated
11509 from. This is useful to allow easy per-customer filtering of
11510 logs among other things.
11511
11512 * systemd-journald will no longer adjust the group of journal
11513 files it creates to the "systemd-journal" group. Instead we
11514 rely on the journal directory to be owned by the
11515 "systemd-journal" group, and its setgid bit set, so that the
11516 kernel file system layer will automatically enforce that
11517 journal files inherit this group assignment. The reason for
11518 this change is that we cannot allow NSS look-ups from
11519 journald which would be necessary to resolve
11520 "systemd-journal" to a numeric GID, because this might
11521 create deadlocks if NSS involves synchronous queries to
11522 other daemons (such as nscd, or sssd) which in turn are
11523 logging clients of journald and might block on it, which
11524 would then dead lock. A tmpfiles.d(5) snippet included in
11525 systemd will make sure the setgid bit and group are
11526 properly set on the journal directory if it exists on every
11527 boot. However, we recommend adjusting it manually after
11528 upgrades too (or from RPM scriptlets), so that the change is
11529 not delayed until next reboot.
11530
11531 * Backlight and random seed files in /var/lib/ have moved into
11532 the /var/lib/systemd/ directory, in order to centralize all
11533 systemd generated files in one directory.
11534
11535 * Boot time performance measurements (as displayed by
11536 "systemd-analyze" for example) will now read ACPI 5.0 FPDT
11537 performance information if that's available to determine how
11538 much time BIOS and boot loader initialization required. With
11539 a sufficiently new BIOS you hence no longer need to boot
11540 with Gummiboot to get access to such information.
11541
11542 Contributions from: Andrey Borzenkov, Chen Jie, Colin Walters,
11543 Cristian Rodríguez, Dave Reisner, David Herrmann, David
11544 Mackey, David Strauss, Eelco Dolstra, Evan Callicoat, Gao
11545 feng, Harald Hoyer, Jimmie Tauriainen, Kay Sievers, Lennart
11546 Poettering, Lukas Nykryn, Mantas Mikulėnas, Martin Pitt,
11547 Michael Scherer, Michał Górny, Mike Gilbert, Patrick McCarty,
11548 Sebastian Ott, Tom Gundersen, Zbigniew Jędrzejewski-Szmek
11549
ccddd104 11550 — Berlin, 2013-10-02
cd4010b3 11551
4f0be680
LP
11552CHANGES WITH 207:
11553
11554 * The Restart= option for services now understands a new
f3a165b0 11555 on-watchdog setting, which will restart the service
4f0be680
LP
11556 automatically if the service stops sending out watchdog keep
11557 alive messages (as configured with WatchdogSec=).
11558
11559 * The getty generator (which is responsible for bringing up a
11560 getty on configured serial consoles) will no longer only
11561 start a getty on the primary kernel console but on all
11562 others, too. This makes the order in which console= is
11563 specified on the kernel command line less important.
11564
11565 * libsystemd-logind gained a new sd_session_get_vt() call to
11566 retrieve the VT number of a session.
11567
11568 * If the option "tries=0" is set for an entry of /etc/crypttab
11569 its passphrase is queried indefinitely instead of any
11570 maximum number of tries.
11571
11572 * If a service with a configure PID file terminates its PID
11573 file will now be removed automatically if it still exists
11574 afterwards. This should put an end to stale PID files.
11575
11576 * systemd-run will now also take relative binary path names
11577 for execution and no longer insists on absolute paths.
11578
11579 * InaccessibleDirectories= and ReadOnlyDirectories= now take
11580 paths that are optionally prefixed with "-" to indicate that
d28315e4 11581 it should not be considered a failure if they do not exist.
4f0be680 11582
f3a165b0
KS
11583 * journalctl -o (and similar commands) now understands a new
11584 output mode "short-precise", it is similar to "short" but
4f0be680
LP
11585 shows timestamps with usec accuracy.
11586
11587 * The option "discard" (as known from Debian) is now
11588 synonymous to "allow-discards" in /etc/crypttab. In fact,
387abf80 11589 "discard" is preferred now (since it is easier to remember
4f0be680
LP
11590 and type).
11591
f3a165b0 11592 * Some licensing clean-ups were made, so that more code is now
4f0be680
LP
11593 LGPL-2.1 licensed than before.
11594
11595 * A minimal tool to save/restore the display backlight
11596 brightness across reboots has been added. It will store the
f3a165b0 11597 backlight setting as late as possible at shutdown, and
4f0be680
LP
11598 restore it as early as possible during reboot.
11599
11600 * A logic to automatically discover and enable home and swap
11601 partitions on GPT disks has been added. With this in place
11602 /etc/fstab becomes optional for many setups as systemd can
11603 discover certain partitions located on the root disk
11604 automatically. Home partitions are recognized under their
11605 GPT type ID 933ac7e12eb44f13b8440e14e2aef915. Swap
11606 partitions are recognized under their GPT type ID
11607 0657fd6da4ab43c484e50933c84b4f4f.
11608
11609 * systemd will no longer pass any environment from the kernel
11610 or initrd to system services. If you want to set an
11611 environment for all services, do so via the kernel command
11612 line systemd.setenv= assignment.
11613
387abf80
LP
11614 * The systemd-sysctl tool no longer natively reads the file
11615 /etc/sysctl.conf. If desired, the file should be symlinked
11616 from /etc/sysctl.d/99-sysctl.conf. Apart from providing
11617 legacy support by a symlink rather than built-in code, it
11618 also makes the otherwise hidden order of application of the
11619 different files visible. (Note that this partly reverts to a
11620 pre-198 application order of sysctl knobs!)
04bf3c1a 11621
4f0be680
LP
11622 * The "systemctl set-log-level" and "systemctl dump" commands
11623 have been moved to systemd-analyze.
11624
11625 * systemd-run learned the new --remain-after-exit switch,
11626 which causes the scope unit not to be cleaned up
11627 automatically after the process terminated.
11628
11629 * tmpfiles learned a new --exclude-prefix= switch to exclude
11630 certain paths from operation.
11631
11632 * journald will now automatically flush all messages to disk
f47ad593
ZJS
11633 as soon as a message at the log level CRIT, ALERT or EMERG
11634 is received.
4f0be680
LP
11635
11636 Contributions from: Andrew Cook, Brandon Philips, Christian
11637 Hesse, Christoph Junghans, Colin Walters, Daniel Schaal,
11638 Daniel Wallace, Dave Reisner, David Herrmann, Gao feng, George
11639 McCollister, Giovanni Campagna, Hannes Reinecke, Harald Hoyer,
11640 Herczeg Zsolt, Holger Hans Peter Freyther, Jan Engelhardt,
11641 Jesper Larsen, Kay Sievers, Khem Raj, Lennart Poettering,
11642 Lukas Nykryn, Maciej Wereski, Mantas Mikulėnas, Marcel
11643 Holtmann, Martin Pitt, Michael Biebl, Michael Marineau,
11644 Michael Scherer, Michael Stapelberg, Michal Sekletar, Michał
11645 Górny, Olivier Brunel, Ondrej Balaz, Ronny Chevalier, Shawn
11646 Landden, Steven Hiscocks, Thomas Bächler, Thomas Hindoe
11647 Paaboel Andersen, Tom Gundersen, Umut Tezduyar, WANG Chao,
11648 William Giokas, Zbigniew Jędrzejewski-Szmek
11649
ccddd104 11650 — Berlin, 2013-09-13
4f0be680 11651
408f281b
LP
11652CHANGES WITH 206:
11653
11654 * The documentation has been updated to cover the various new
11655 concepts introduced with 205.
11656
11657 * Unit files now understand the new %v specifier which
11658 resolves to the kernel version string as returned by "uname
11659 -r".
11660
11661 * systemctl now supports filtering the unit list output by
11662 load state, active state and sub state, using the new
33b521be 11663 --state= parameter.
408f281b
LP
11664
11665 * "systemctl status" will now show the results of the
11666 condition checks (like ConditionPathExists= and similar) of
11667 the last start attempts of the unit. They are also logged to
11668 the journal.
11669
11670 * "journalctl -b" may now be used to look for boot output of a
11671 specific boot. Try "journalctl -b -1" for the previous boot,
11672 but the syntax is substantially more powerful.
11673
11674 * "journalctl --show-cursor" has been added which prints the
11675 cursor string the last shown log line. This may then be used
11676 with the new "journalctl --after-cursor=" switch to continue
11677 browsing logs from that point on.
11678
11679 * "journalctl --force" may now be used to force regeneration
11680 of an FSS key.
11681
251cc819
LP
11682 * Creation of "dead" device nodes has been moved from udev
11683 into kmod and tmpfiles. Previously, udev would read the kmod
11684 databases to pre-generate dead device nodes based on meta
11685 information contained in kernel modules, so that these would
11686 be auto-loaded on access rather then at boot. As this
d28315e4 11687 does not really have much to do with the exposing actual
251cc819
LP
11688 kernel devices to userspace this has always been slightly
11689 alien in the udev codebase. Following the new scheme kmod
11690 will now generate a runtime snippet for tmpfiles from the
11691 module meta information and it now is tmpfiles' job to the
11692 create the nodes. This also allows overriding access and
11693 other parameters for the nodes using the usual tmpfiles
11694 facilities. As side effect this allows us to remove the
11695 CAP_SYS_MKNOD capability bit from udevd entirely.
11696
11697 * logind's device ACLs may now be applied to these "dead"
11698 devices nodes too, thus finally allowing managed access to
ce830873 11699 devices such as /dev/snd/sequencer without loading the
251cc819 11700 backing module right-away.
408f281b
LP
11701
11702 * A new RPM macro has been added that may be used to apply
11703 tmpfiles configuration during package installation.
11704
11705 * systemd-detect-virt and ConditionVirtualization= now can
11706 detect User-Mode-Linux machines (UML).
11707
251cc819
LP
11708 * journald will now implicitly log the effective capabilities
11709 set of processes in the message metadata.
408f281b
LP
11710
11711 * systemd-cryptsetup has gained support for TrueCrypt volumes.
11712
11713 * The initrd interface has been simplified (more specifically,
11714 support for passing performance data via environment
11715 variables and fsck results via files in /run has been
11716 removed). These features were non-essential, and are
11717 nowadays available in a much nicer way by having systemd in
11718 the initrd serialize its state and have the hosts systemd
11719 deserialize it again.
11720
28f5c779
KS
11721 * The udev "keymap" data files and tools to apply keyboard
11722 specific mappings of scan to key codes, and force-release
11723 scan code lists have been entirely replaced by a udev
11724 "keyboard" builtin and a hwdb data file.
408f281b 11725
251cc819
LP
11726 * systemd will now honour the kernel's "quiet" command line
11727 argument also during late shutdown, resulting in a
11728 completely silent shutdown when used.
11729
11730 * There's now an option to control the SO_REUSEPORT socket
11731 option in .socket units.
11732
11733 * Instance units will now automatically get a per-template
11734 subslice of system.slice unless something else is explicitly
11735 configured. For example, instances of sshd@.service will now
11736 implicitly be placed in system-sshd.slice rather than
11737 system.slice as before.
11738
11739 * Test coverage support may now be enabled at build time.
11740
11741 Contributions from: Dave Reisner, Frederic Crozat, Harald
11742 Hoyer, Holger Hans Peter Freyther, Jan Engelhardt, Jan
11743 Janssen, Jason St. John, Jesper Larsen, Kay Sievers, Lennart
11744 Poettering, Lukas Nykryn, Maciej Wereski, Martin Pitt, Michael
11745 Olbrich, Ramkumar Ramachandra, Ross Lagerwall, Shawn Landden,
11746 Thomas H.P. Andersen, Tom Gundersen, Tomasz Torcz, William
11747 Giokas, Zbigniew Jędrzejewski-Szmek
11748
ccddd104 11749 — Berlin, 2013-07-23
4f0be680 11750
00aa832b
LP
11751CHANGES WITH 205:
11752
11753 * Two new unit types have been introduced:
11754
11755 Scope units are very similar to service units, however, are
ccddd104 11756 created out of pre-existing processes — instead of PID 1
00aa832b
LP
11757 forking off the processes. By using scope units it is
11758 possible for system services and applications to group their
11759 own child processes (worker processes) in a powerful way
11760 which then maybe used to organize them, or kill them
11761 together, or apply resource limits on them.
11762
11763 Slice units may be used to partition system resources in an
cc98b302 11764 hierarchical fashion and then assign other units to them. By
00aa832b
LP
11765 default there are now three slices: system.slice (for all
11766 system services), user.slice (for all user sessions),
11767 machine.slice (for VMs and containers).
11768
11769 Slices and scopes have been introduced primarily in
11770 context of the work to move cgroup handling to a
11771 single-writer scheme, where only PID 1
11772 creates/removes/manages cgroups.
11773
11774 * There's a new concept of "transient" units. In contrast to
11775 normal units these units are created via an API at runtime,
11776 not from configuration from disk. More specifically this
11777 means it is now possible to run arbitrary programs as
11778 independent services, with all execution parameters passed
11779 in via bus APIs rather than read from disk. Transient units
11780 make systemd substantially more dynamic then it ever was,
11781 and useful as a general batch manager.
11782
11783 * logind has been updated to make use of scope and slice units
11784 for managing user sessions. As a user logs in he will get
11785 his own private slice unit, to which all sessions are added
11786 as scope units. We also added support for automatically
11787 adding an instance of user@.service for the user into the
11788 slice. Effectively logind will no longer create cgroup
11789 hierarchies on its own now, it will defer entirely to PID 1
11790 for this by means of scope, service and slice units. Since
11791 user sessions this way become entities managed by PID 1
11792 the output of "systemctl" is now a lot more comprehensive.
11793
11794 * A new mini-daemon "systemd-machined" has been added which
11795 may be used by virtualization managers to register local
11796 VMs/containers. nspawn has been updated accordingly, and
11797 libvirt will be updated shortly. machined will collect a bit
11798 of meta information about the VMs/containers, and assign
11799 them their own scope unit (see above). The collected
11800 meta-data is then made available via the "machinectl" tool,
11801 and exposed in "ps" and similar tools. machined/machinectl
11802 is compile-time optional.
11803
11804 * As discussed earlier, the low-level cgroup configuration
11805 options ControlGroup=, ControlGroupModify=,
11806 ControlGroupPersistent=, ControlGroupAttribute= have been
11807 removed. Please use high-level attribute settings instead as
11808 well as slice units.
11809
11810 * A new bus call SetUnitProperties() has been added to alter
11811 various runtime parameters of a unit. This is primarily
11812 useful to alter cgroup parameters dynamically in a nice way,
11813 but will be extended later on to make more properties
11814 modifiable at runtime. systemctl gained a new set-properties
11815 command that wraps this call.
11816
11817 * A new tool "systemd-run" has been added which can be used to
11818 run arbitrary command lines as transient services or scopes,
11819 while configuring a number of settings via the command
11820 line. This tool is currently very basic, however already
11821 very useful. We plan to extend this tool to even allow
11822 queuing of execution jobs with time triggers from the
11823 command line, similar in fashion to "at".
11824
11825 * nspawn will now inform the user explicitly that kernels with
11826 audit enabled break containers, and suggest the user to turn
11827 off audit.
11828
11829 * Support for detecting the IMA and AppArmor security
11830 frameworks with ConditionSecurity= has been added.
11831
11832 * journalctl gained a new "-k" switch for showing only kernel
1fda0ab5
ZJS
11833 messages, mimicking dmesg output; in addition to "--user"
11834 and "--system" switches for showing only user's own logs
11835 and system logs.
00aa832b
LP
11836
11837 * systemd-delta can now show information about drop-in
11838 snippets extending unit files.
11839
11840 * libsystemd-bus has been substantially updated but is still
11841 not available as public API.
11842
11843 * systemd will now look for the "debug" argument on the kernel
499b604b 11844 command line and enable debug logging, similar to what
00aa832b
LP
11845 "systemd.log_level=debug" already did before.
11846
11847 * "systemctl set-default", "systemctl get-default" has been
11848 added to configure the default.target symlink, which
11849 controls what to boot into by default.
11850
1fda0ab5
ZJS
11851 * "systemctl set-log-level" has been added as a convenient
11852 way to raise and lower systemd logging threshold.
11853
00aa832b
LP
11854 * "systemd-analyze plot" will now show the time the various
11855 generators needed for execution, as well as information
11856 about the unit file loading.
11857
00aa832b
LP
11858 * libsystemd-journal gained a new sd_journal_open_files() call
11859 for opening specific journal files. journactl also gained a
11860 new switch to expose this new functionality. Previously we
11861 only supported opening all files from a directory, or all
11862 files from the system, as opening individual files only is
11863 racy due to journal file rotation.
11864
11865 * systemd gained the new DefaultEnvironment= setting in
11866 /etc/systemd/system.conf to set environment variables for
11867 all services.
11868
11869 * If a privileged process logs a journal message with the
11870 OBJECT_PID= field set, then journald will automatically
11871 augment this with additional OBJECT_UID=, OBJECT_GID=,
1d3a473b 11872 OBJECT_COMM=, OBJECT_EXE=, … fields. This is useful if
00aa832b
LP
11873 system services want to log events about specific client
11874 processes. journactl/systemctl has been updated to make use
11875 of this information if all log messages regarding a specific
11876 unit is requested.
11877
11878 Contributions from: Auke Kok, Chengwei Yang, Colin Walters,
11879 Cristian Rodríguez, Daniel Albers, Daniel Wallace, Dave
11880 Reisner, David Coppa, David King, David Strauss, Eelco
11881 Dolstra, Gabriel de Perthuis, Harald Hoyer, Jan Alexander
11882 Steffens, Jan Engelhardt, Jan Janssen, Jason St. John, Johan
11883 Heikkilä, Karel Zak, Karol Lewandowski, Kay Sievers, Lennart
11884 Poettering, Lukas Nykryn, Mantas Mikulėnas, Marius Vollmer,
11885 Martin Pitt, Michael Biebl, Michael Olbrich, Michael Tremer,
11886 Michal Schmidt, Michał Bartoszkiewicz, Nirbheek Chauhan,
11887 Pierre Neidhardt, Ross Burton, Ross Lagerwall, Sean McGovern,
11888 Thomas Hindoe Paaboel Andersen, Tom Gundersen, Umut Tezduyar,
11889 Václav Pavlín, Zachary Cook, Zbigniew Jędrzejewski-Szmek,
11890 Łukasz Stelmach, 장동준
11891
606c24e3
LP
11892CHANGES WITH 204:
11893
11894 * The Python bindings gained some minimal support for the APIs
11895 exposed by libsystemd-logind.
11896
11897 * ConditionSecurity= gained support for detecting SMACK. Since
11898 this condition already supports SELinux and AppArmor we only
11899 miss IMA for this. Patches welcome!
11900
11901 Contributions from: Karol Lewandowski, Lennart Poettering,
11902 Zbigniew Jędrzejewski-Szmek
11903
2f3fcf85
LP
11904CHANGES WITH 203:
11905
11906 * systemd-nspawn will now create /etc/resolv.conf if
11907 necessary, before bind-mounting the host's file onto it.
11908
11909 * systemd-nspawn will now store meta information about a
11910 container on the container's cgroup as extended attribute
11911 fields, including the root directory.
11912
11913 * The cgroup hierarchy has been reworked in many ways. All
11914 objects any of the components systemd creates in the cgroup
b82eed9a 11915 tree are now suffixed. More specifically, user sessions are
2f3fcf85
LP
11916 now placed in cgroups suffixed with ".session", users in
11917 cgroups suffixed with ".user", and nspawn containers in
11918 cgroups suffixed with ".nspawn". Furthermore, all cgroup
11919 names are now escaped in a simple scheme to avoid collision
11920 of userspace object names with kernel filenames. This work
11921 is preparation for making these objects relocatable in the
11922 cgroup tree, in order to allow easy resource partitioning of
11923 these objects without causing naming conflicts.
11924
11925 * systemctl list-dependencies gained the new switches
11926 --plain, --reverse, --after and --before.
11927
11928 * systemd-inhibit now shows the process name of processes that
11929 have taken an inhibitor lock.
11930
11931 * nss-myhostname will now also resolve "localhost"
11932 implicitly. This makes /etc/hosts an optional file and
11933 nicely handles that on IPv6 ::1 maps to both "localhost" and
11934 the local hostname.
11935
11936 * libsystemd-logind.so gained a new call
11937 sd_get_machine_names() to enumerate running containers and
11938 VMs (currently only supported by very new libvirt and
11939 nspawn). sd_login_monitor can now be used to watch
11940 VMs/containers coming and going.
11941
11942 * .include is not allowed recursively anymore, and only in
11943 unit files. Usually it is better to use drop-in snippets in
11944 .d/*.conf anyway, as introduced with systemd 198.
11945
11946 * systemd-analyze gained a new "critical-chain" command that
11947 determines the slowest chain of units run during system
11948 boot-up. It is very useful for tracking down where
11949 optimizing boot time is the most beneficial.
11950
11951 * systemd will no longer allow manipulating service paths in
11952 the name=systemd:/system cgroup tree using ControlGroup= in
11953 units. (But is still fine with it in all other dirs.)
11954
11955 * There's a new systemd-nspawn@.service service file that may
11956 be used to easily run nspawn containers as system
11957 services. With the container's root directory in
11958 /var/lib/container/foobar it is now sufficient to run
11959 "systemctl start systemd-nspawn@foobar.service" to boot it.
11960
11961 * systemd-cgls gained a new parameter "--machine" to list only
11962 the processes within a certain container.
11963
11964 * ConditionSecurity= now can check for "apparmor". We still
11965 are lacking checks for SMACK and IMA for this condition
11966 check though. Patches welcome!
11967
11968 * A new configuration file /etc/systemd/sleep.conf has been
11969 added that may be used to configure which kernel operation
11970 systemd is supposed to execute when "suspend", "hibernate"
11971 or "hybrid-sleep" is requested. This makes the new kernel
11972 "freeze" state accessible to the user.
11973
11974 * ENV{SYSTEMD_WANTS} in udev rules will now implicitly escape
11975 the passed argument if applicable.
11976
11977 Contributions from: Auke Kok, Colin Guthrie, Colin Walters,
11978 Cristian Rodríguez, Daniel Buch, Daniel Wallace, Dave Reisner,
11979 Evangelos Foutras, Greg Kroah-Hartman, Harald Hoyer, Josh
11980 Triplett, Kay Sievers, Lennart Poettering, Lukas Nykryn,
11981 MUNEDA Takahiro, Mantas Mikulėnas, Mirco Tischler, Nathaniel
11982 Chen, Nirbheek Chauhan, Ronny Chevalier, Ross Lagerwall, Tom
11983 Gundersen, Umut Tezduyar, Ville Skyttä, Zbigniew
11984 Jędrzejewski-Szmek
11985
ef3b5246
LP
11986CHANGES WITH 202:
11987
11988 * The output of 'systemctl list-jobs' got some polishing. The
11989 '--type=' argument may now be passed more than once. A new
11990 command 'systemctl list-sockets' has been added which shows
11991 a list of kernel sockets systemd is listening on with the
11992 socket units they belong to, plus the units these socket
11993 units activate.
11994
11995 * The experimental libsystemd-bus library got substantial
11996 updates to work in conjunction with the (also experimental)
11997 kdbus kernel project. It works well enough to exchange
11998 messages with some sophistication. Note that kdbus is not
11999 ready yet, and the library is mostly an elaborate test case
12000 for now, and not installable.
12001
12002 * systemd gained a new unit 'systemd-static-nodes.service'
12003 that generates static device nodes earlier during boot, and
12004 can run in conjunction with udev.
12005
12006 * libsystemd-login gained a new call sd_pid_get_user_unit()
12007 to retrieve the user systemd unit a process is running
12008 in. This is useful for systems where systemd is used as
12009 session manager.
12010
12011 * systemd-nspawn now places all containers in the new /machine
12012 top-level cgroup directory in the name=systemd
12013 hierarchy. libvirt will soon do the same, so that we get a
12014 uniform separation of /system, /user and /machine for system
12015 services, user processes and containers/virtual
12016 machines. This new cgroup hierarchy is also useful to stick
12017 stable names to specific container instances, which can be
7c04ad2d 12018 recognized later this way (this name may be controlled
ef3b5246
LP
12019 via systemd-nspawn's new -M switch). libsystemd-login also
12020 gained a new call sd_pid_get_machine_name() to retrieve the
12021 name of the container/VM a specific process belongs to.
12022
12023 * bootchart can now store its data in the journal.
12024
12025 * libsystemd-journal gained a new call
12026 sd_journal_add_conjunction() for AND expressions to the
12027 matching logic. This can be used to express more complex
12028 logical expressions.
12029
12030 * journactl can now take multiple --unit= and --user-unit=
12031 switches.
12032
12033 * The cryptsetup logic now understands the "luks.key=" kernel
12034 command line switch for specifying a file to read the
7c04ad2d 12035 decryption key from. Also, if a configured key file is not
ef3b5246
LP
12036 found the tool will now automatically fall back to prompting
12037 the user.
12038
cbeabcfb
ZJS
12039 * Python systemd.journal module was updated to wrap recently
12040 added functions from libsystemd-journal. The interface was
12041 changed to bring the low level interface in s.j._Reader
12042 closer to the C API, and the high level interface in
12043 s.j.Reader was updated to wrap and convert all data about
12044 an entry.
12045
ef3b5246
LP
12046 Contributions from: Anatol Pomozov, Auke Kok, Harald Hoyer,
12047 Henrik Grindal Bakken, Josh Triplett, Kay Sievers, Lennart
12048 Poettering, Lukas Nykryn, Mantas Mikulėnas Marius Vollmer,
12049 Martin Jansa, Martin Pitt, Michael Biebl, Michal Schmidt,
12050 Mirco Tischler, Pali Rohar, Simon Peeters, Steven Hiscocks,
12051 Tom Gundersen, Zbigniew Jędrzejewski-Szmek
12052
d3a86981
LP
12053CHANGES WITH 201:
12054
12055 * journalctl --update-catalog now understands a new --root=
12056 option to operate on catalogs found in a different root
12057 directory.
12058
12059 * During shutdown after systemd has terminated all running
12060 services a final killing loop kills all remaining left-over
12061 processes. We will now print the name of these processes
12062 when we send SIGKILL to them, since this usually indicates a
12063 problem.
12064
12065 * If /etc/crypttab refers to password files stored on
12066 configured mount points automatic dependencies will now be
12067 generated to ensure the specific mount is established first
12068 before the key file is attempted to be read.
12069
12070 * 'systemctl status' will now show information about the
12071 network sockets a socket unit is listening on.
12072
12073 * 'systemctl status' will also shown information about any
12074 drop-in configuration file for units. (Drop-In configuration
12075 files in this context are files such as
5ada98cd 12076 /etc/systemd/system/foobar.service.d/*.conf)
d3a86981
LP
12077
12078 * systemd-cgtop now optionally shows summed up CPU times of
12079 cgroups. Press '%' while running cgtop to switch between
12080 percentage and absolute mode. This is useful to determine
12081 which cgroups use up the most CPU time over the entire
12082 runtime of the system. systemd-cgtop has also been updated
12083 to be 'pipeable' for processing with further shell tools.
12084
12085 * 'hostnamectl set-hostname' will now allow setting of FQDN
12086 hostnames.
12087
12088 * The formatting and parsing of time span values has been
12089 changed. The parser now understands fractional expressions
12090 such as "5.5h". The formatter will now output fractional
12091 expressions for all time spans under 1min, i.e. "5.123456s"
12092 rather than "5s 123ms 456us". For time spans under 1s
12093 millisecond values are shown, for those under 1ms
12094 microsecond values are shown. This should greatly improve
12095 all time-related output of systemd.
12096
12097 * libsystemd-login and libsystemd-journal gained new
12098 functions for querying the poll() events mask and poll()
12099 timeout value for integration into arbitrary event
12100 loops.
12101
12102 * localectl gained the ability to list available X11 keymaps
12103 (models, layouts, variants, options).
12104
12105 * 'systemd-analyze dot' gained the ability to filter for
12106 specific units via shell-style globs, to create smaller,
d28315e4 12107 more useful graphs. I.e. it is now possible to create simple
d3a86981
LP
12108 graphs of all the dependencies between only target units, or
12109 of all units that Avahi has dependencies with.
12110
12111 Contributions from: Cristian Rodríguez, Dr. Tilmann Bubeck,
12112 Harald Hoyer, Holger Hans Peter Freyther, Kay Sievers, Kelly
12113 Anderson, Koen Kooi, Lennart Poettering, Maksim Melnikau,
12114 Marc-Antoine Perennou, Marius Vollmer, Martin Pitt, Michal
12115 Schmidt, Oleksii Shevchuk, Ronny Chevalier, Simon McVittie,
12116 Steven Hiscocks, Thomas Weißschuh, Umut Tezduyar, Václav
12117 Pavlín, Zbigniew Jędrzejewski-Szmek, Łukasz Stelmach
12118
9ca3c17f
LP
12119CHANGES WITH 200:
12120
12121 * The boot-time readahead implementation for rotating media
12122 will now read the read-ahead data in multiple passes which
12123 consist of all read requests made in equidistant time
12124 intervals. This means instead of strictly reading read-ahead
12125 data in its physical order on disk we now try to find a
12126 middle ground between physical and access time order.
12127
12128 * /etc/os-release files gained a new BUILD_ID= field for usage
12129 on operating systems that provide continuous builds of OS
12130 images.
12131
12132 Contributions from: Auke Kok, Eelco Dolstra, Kay Sievers,
12133 Lennart Poettering, Lukas Nykryn, Martin Pitt, Václav Pavlín
12134 William Douglas, Zbigniew Jędrzejewski-Szmek
12135
35911459
LP
12136CHANGES WITH 199:
12137
12138 * systemd-python gained an API exposing libsystemd-daemon.
12139
12140 * The SMACK setup logic gained support for uploading CIPSO
12141 security policy.
12142
12143 * Behaviour of PrivateTmp=, ReadWriteDirectories=,
12144 ReadOnlyDirectories= and InaccessibleDirectories= has
12145 changed. The private /tmp and /var/tmp directories are now
12146 shared by all processes of a service (which means
12147 ExecStartPre= may now leave data in /tmp that ExecStart= of
12148 the same service can still access). When a service is
12149 stopped its temporary directories are immediately deleted
a87197f5 12150 (normal clean-up with tmpfiles is still done in addition to
35911459
LP
12151 this though).
12152
12153 * By default, systemd will now set a couple of sysctl
12154 variables in the kernel: the safe sysrq options are turned
12155 on, IP route verification is turned on, and source routing
12156 disabled. The recently added hardlink and softlink
12157 protection of the kernel is turned on. These settings should
12158 be reasonably safe, and good defaults for all new systems.
12159
12160 * The predictable network naming logic may now be turned off
a87197f5 12161 with a new kernel command line switch: net.ifnames=0.
35911459
LP
12162
12163 * A new libsystemd-bus module has been added that implements a
12164 pretty complete D-Bus client library. For details see:
12165
56cadcb6 12166 https://lists.freedesktop.org/archives/systemd-devel/2013-March/009797.html
35911459 12167
c20d8298 12168 * journald will now explicitly flush the journal files to disk
a87197f5
ZJS
12169 at the latest 5min after each write. The file will then also
12170 be marked offline until the next write. This should increase
12171 reliability in case of a crash. The synchronization delay
12172 can be configured via SyncIntervalSec= in journald.conf.
35911459
LP
12173
12174 * There's a new remote-fs-setup.target unit that can be used
12175 to pull in specific services when at least one remote file
12176 system is to be mounted.
12177
12178 * There are new targets timers.target and paths.target as
12179 canonical targets to pull user timer and path units in
12180 from. This complements sockets.target with a similar
12181 purpose for socket units.
12182
6a7d3d68
LP
12183 * libudev gained a new call udev_device_set_attribute_value()
12184 to set sysfs attributes of a device.
12185
a87197f5
ZJS
12186 * The udev daemon now sets the default number of worker
12187 processes executed in parallel based on the number of available
c20d8298 12188 CPUs instead of the amount of available RAM. This is supposed
ab06eef8 12189 to provide a more reliable default and limit a too aggressive
ce830873 12190 parallelism for setups with 1000s of devices connected.
c20d8298 12191
35911459
LP
12192 Contributions from: Auke Kok, Colin Walters, Cristian
12193 Rodríguez, Daniel Buch, Dave Reisner, Frederic Crozat, Hannes
12194 Reinecke, Harald Hoyer, Jan Alexander Steffens, Jan
12195 Engelhardt, Josh Triplett, Kay Sievers, Lennart Poettering,
12196 Mantas Mikulėnas, Martin Pitt, Mathieu Bridon, Michael Biebl,
12197 Michal Schmidt, Michal Sekletar, Miklos Vajna, Nathaniel Chen,
12198 Oleksii Shevchuk, Ozan Çağlayan, Thomas Hindoe Paaboel
12199 Andersen, Tollef Fog Heen, Tom Gundersen, Umut Tezduyar,
12200 Zbigniew Jędrzejewski-Szmek
12201
85d68397
LP
12202CHANGES WITH 198:
12203
12204 * Configuration of unit files may now be extended via drop-in
12205 files without having to edit/override the unit files
12206 themselves. More specifically, if the administrator wants to
12207 change one value for a service file foobar.service he can
12208 now do so by dropping in a configuration snippet into
ad88e758 12209 /etc/systemd/system/foobar.service.d/*.conf. The unit logic
85d68397
LP
12210 will load all these snippets and apply them on top of the
12211 main unit configuration file, possibly extending or
12212 overriding its settings. Using these drop-in snippets is
40e21da8
KS
12213 generally nicer than the two earlier options for changing
12214 unit files locally: copying the files from
85d68397
LP
12215 /usr/lib/systemd/system/ to /etc/systemd/system/ and editing
12216 them there; or creating a new file in /etc/systemd/system/
12217 that incorporates the original one via ".include". Drop-in
12218 snippets into these .d/ directories can be placed in any
fd868975 12219 directory systemd looks for units in, and the usual
85d68397
LP
12220 overriding semantics between /usr/lib, /etc and /run apply
12221 for them too.
12222
12223 * Most unit file settings which take lists of items can now be
6aa8d43a 12224 reset by assigning the empty string to them. For example,
85d68397
LP
12225 normally, settings such as Environment=FOO=BAR append a new
12226 environment variable assignment to the environment block,
12227 each time they are used. By assigning Environment= the empty
12228 string the environment block can be reset to empty. This is
12229 particularly useful with the .d/*.conf drop-in snippets
156f7d09
KS
12230 mentioned above, since this adds the ability to reset list
12231 settings from vendor unit files via these drop-ins.
85d68397
LP
12232
12233 * systemctl gained a new "list-dependencies" command for
12234 listing the dependencies of a unit recursively.
12235
40e21da8 12236 * Inhibitors are now honored and listed by "systemctl
85d68397
LP
12237 suspend", "systemctl poweroff" (and similar) too, not only
12238 GNOME. These commands will also list active sessions by
12239 other users.
12240
12241 * Resource limits (as exposed by the various control group
12242 controllers) can now be controlled dynamically at runtime
12243 for all units. More specifically, you can now use a command
12244 like "systemctl set-cgroup-attr foobar.service cpu.shares
12245 2000" to alter the CPU shares a specific service gets. These
6aa8d43a 12246 settings are stored persistently on disk, and thus allow the
85d68397
LP
12247 administrator to easily adjust the resource usage of
12248 services with a few simple commands. This dynamic resource
6aa8d43a 12249 management logic is also available to other programs via the
85d68397
LP
12250 bus. Almost any kernel cgroup attribute and controller is
12251 supported.
12252
12253 * systemd-vconsole-setup will now copy all font settings to
6aa8d43a
LP
12254 all allocated VTs, where it previously applied them only to
12255 the foreground VT.
85d68397
LP
12256
12257 * libsystemd-login gained the new sd_session_get_tty() API
12258 call.
12259
6aa8d43a
LP
12260 * This release drops support for a few legacy or
12261 distribution-specific LSB facility names when parsing init
12262 scripts: $x-display-manager, $mail-transfer-agent,
85d68397
LP
12263 $mail-transport-agent, $mail-transfer-agent, $smtp,
12264 $null. Also, the mail-transfer-agent.target unit backing
12265 this has been removed. Distributions which want to retain
6aa8d43a
LP
12266 compatibility with this should carry the burden for
12267 supporting this themselves and patch support for these back
12268 in, if they really need to. Also, the facilities $syslog and
12269 $local_fs are now ignored, since systemd does not support
12270 early-boot LSB init scripts anymore, and these facilities
12271 are implied anyway for normal services. syslog.target has
12272 also been removed.
85d68397 12273
40e21da8 12274 * There are new bus calls on PID1's Manager object for
6aa8d43a 12275 cancelling jobs, and removing snapshot units. Previously,
85d68397
LP
12276 both calls were only available on the Job and Snapshot
12277 objects themselves.
12278
12279 * systemd-journal-gatewayd gained SSL support.
12280
12281 * The various "environment" files, such as /etc/locale.conf
12282 now support continuation lines with a backslash ("\") as
499b604b 12283 last character in the line, similarly in style (but different)
85d68397
LP
12284 to how this is supported in shells.
12285
12286 * For normal user processes the _SYSTEMD_USER_UNIT= field is
12287 now implicitly appended to every log entry logged. systemctl
12288 has been updated to filter by this field when operating on a
12289 user systemd instance.
12290
12291 * nspawn will now implicitly add the CAP_AUDIT_WRITE and
12292 CAP_AUDIT_CONTROL capabilities to the capabilities set for
12293 the container. This makes it easier to boot unmodified
12294 Fedora systems in a container, which however still requires
12295 audit=0 to be passed on the kernel command line. Auditing in
12296 kernel and userspace is unfortunately still too broken in
12297 context of containers, hence we recommend compiling it out
12298 of the kernel or using audit=0. Hopefully this will be fixed
12299 one day for good in the kernel.
12300
12301 * nspawn gained the new --bind= and --bind-ro= parameters to
12302 bind mount specific directories from the host into the
12303 container.
12304
40e21da8 12305 * nspawn will now mount its own devpts file system instance
6aa8d43a 12306 into the container, in order not to leak pty devices from
85d68397
LP
12307 the host into the container.
12308
12309 * systemd will now read the firmware boot time performance
6aa8d43a
LP
12310 information from the EFI variables, if the used boot loader
12311 supports this, and takes it into account for boot performance
12312 analysis via "systemd-analyze". This is currently supported
12313 only in conjunction with Gummiboot, but could be supported
12314 by other boot loaders too. For details see:
85d68397 12315
a794a4d8 12316 https://systemd.io/BOOT_LOADER_INTERFACE
85d68397
LP
12317
12318 * A new generator has been added that automatically mounts the
12319 EFI System Partition (ESP) to /boot, if that directory
6aa8d43a
LP
12320 exists, is empty, and no other file system has been
12321 configured to be mounted there.
85d68397
LP
12322
12323 * logind will now send out PrepareForSleep(false) out
12324 unconditionally, after coming back from suspend. This may be
12325 used by applications as asynchronous notification for
12326 system resume events.
12327
12328 * "systemctl unlock-sessions" has been added, that allows
12329 unlocking the screens of all user sessions at once, similar
499b604b 12330 to how "systemctl lock-sessions" already locked all users
40e21da8 12331 sessions. This is backed by a new D-Bus call UnlockSessions().
85d68397
LP
12332
12333 * "loginctl seat-status" will now show the master device of a
12334 seat. (i.e. the device of a seat that needs to be around for
12335 the seat to be considered available, usually the graphics
12336 card).
12337
12338 * tmpfiles gained a new "X" line type, that allows
12339 configuration of files and directories (with wildcards) that
12340 shall be excluded from automatic cleanup ("aging").
12341
bf933560
KS
12342 * udev default rules set the device node permissions now only
12343 at "add" events, and do not change them any longer with a
12344 later "change" event.
85d68397
LP
12345
12346 * The log messages for lid events and power/sleep keypresses
12347 now carry a message ID.
12348
12349 * We now have a substantially larger unit test suite, but this
12350 continues to be work in progress.
12351
12352 * udevadm hwdb gained a new --root= parameter to change the
12353 root directory to operate relative to.
12354
40e21da8
KS
12355 * logind will now issue a background sync() request to the kernel
12356 early at shutdown, so that dirty buffers are flushed to disk early
85d68397
LP
12357 instead of at the last moment, in order to optimize shutdown
12358 times a little.
12359
12360 * A new bootctl tool has been added that is an interface for
12361 certain boot loader operations. This is currently a preview
12362 and is likely to be extended into a small mechanism daemon
12363 like timedated, localed, hostnamed, and can be used by
12364 graphical UIs to enumerate available boot options, and
12365 request boot into firmware operations.
12366
12367 * systemd-bootchart has been relicensed to LGPLv2.1+ to match
12368 the rest of the package. It also has been updated to work
12369 correctly in initrds.
12370
d35f51ea
ZJS
12371 * polkit previously has been runtime optional, and is now also
12372 compile time optional via a configure switch.
85d68397
LP
12373
12374 * systemd-analyze has been reimplemented in C. Also "systemctl
12375 dot" has moved into systemd-analyze.
12376
12377 * "systemctl status" with no further parameters will now print
12378 the status of all active or failed units.
12379
12380 * Operations such as "systemctl start" can now be executed
12381 with a new mode "--irreversible" which may be used to queue
12382 operations that cannot accidentally be reversed by a later
6aa8d43a 12383 job queuing. This is by default used to make shutdown
85d68397
LP
12384 requests more robust.
12385
12386 * The Python API of systemd now gained a new module for
12387 reading journal files.
12388
12389 * A new tool kernel-install has been added that can install
12390 kernel images according to the Boot Loader Specification:
12391
a794a4d8 12392 https://systemd.io/BOOT_LOADER_SPECIFICATION
85d68397
LP
12393
12394 * Boot time console output has been improved to provide
6aa8d43a 12395 animated boot time output for hanging jobs.
85d68397
LP
12396
12397 * A new tool systemd-activate has been added which can be used
12398 to test socket activation with, directly from the command
12399 line. This should make it much easier to test and debug
12400 socket activation in daemons.
12401
12402 * journalctl gained a new "--reverse" (or -r) option to show
12403 journal output in reverse order (i.e. newest line first).
12404
43447fb7
LP
12405 * journalctl gained a new "--pager-end" (or -e) option to jump
12406 to immediately jump to the end of the journal in the
12407 pager. This is only supported in conjunction with "less".
12408
85d68397 12409 * journalctl gained a new "--user-unit=" option, that works
499b604b 12410 similarly to "--unit=" but filters for user units rather than
85d68397
LP
12411 system units.
12412
12413 * A number of unit files to ease adoption of systemd in
12414 initrds has been added. This moves some minimal logic from
12415 the various initrd implementations into systemd proper.
12416
12417 * The journal files are now owned by a new group
12418 "systemd-journal", which exists specifically to allow access
12419 to the journal, and nothing else. Previously, we used the
6aa8d43a 12420 "adm" group for that, which however possibly covers more
85d68397
LP
12421 than just journal/log file access. This new group is now
12422 already used by systemd-journal-gatewayd to ensure this
12423 daemon gets access to the journal files and as little else
12424 as possible. Note that "make install" will also set FS ACLs
12425 up for /var/log/journal to give "adm" and "wheel" read
12426 access to it, in addition to "systemd-journal" which owns
12427 the journal files. We recommend that packaging scripts also
6aa8d43a 12428 add read access to "adm" + "wheel" to /var/log/journal, and
85d68397
LP
12429 all existing/future journal files. To normal users and
12430 administrators little changes, however packagers need to
12431 ensure to create the "systemd-journal" system group at
12432 package installation time.
12433
12434 * The systemd-journal-gatewayd now runs as unprivileged user
12435 systemd-journal-gateway:systemd-journal-gateway. Packaging
12436 scripts need to create these system user/group at
12437 installation time.
12438
12439 * timedated now exposes a new boolean property CanNTP that
12440 indicates whether a local NTP service is available or not.
12441
12442 * systemd-detect-virt will now also detect xen PVs
12443
40e21da8
KS
12444 * The pstore file system is now mounted by default, if it is
12445 available.
85d68397 12446
1aed4590
LP
12447 * In addition to the SELinux and IMA policies we will now also
12448 load SMACK policies at early boot.
12449
85d68397
LP
12450 Contributions from: Adel Gadllah, Aleksander Morgado, Auke
12451 Kok, Ayan George, Bastien Nocera, Colin Walters, Daniel Buch,
12452 Daniel Wallace, Dave Reisner, David Herrmann, David Strauss,
12453 Eelco Dolstra, Enrico Scholz, Frederic Crozat, Harald Hoyer,
12454 Jan Janssen, Jonathan Callen, Kay Sievers, Lennart Poettering,
12455 Lukas Nykryn, Mantas Mikulėnas, Marc-Antoine Perennou, Martin
12456 Pitt, Mauro Dreissig, Max F. Albrecht, Michael Biebl, Michael
12457 Olbrich, Michal Schmidt, Michal Sekletar, Michal Vyskocil,
12458 Michał Bartoszkiewicz, Mirco Tischler, Nathaniel Chen, Nestor
12459 Ovroy, Oleksii Shevchuk, Paul W. Frields, Piotr Drąg, Rob
12460 Clark, Ryan Lortie, Simon McVittie, Simon Peeters, Steven
12461 Hiscocks, Thomas Hindoe Paaboel Andersen, Tollef Fog Heen, Tom
12462 Gundersen, Umut Tezduyar, William Giokas, Zbigniew
12463 Jędrzejewski-Szmek, Zeeshan Ali (Khattak)
12464
8ad26859
LP
12465CHANGES WITH 197:
12466
12467 * Timer units now support calendar time events in addition to
12468 monotonic time events. That means you can now trigger a unit
12469 based on a calendar time specification such as "Thu,Fri
12470 2013-*-1,5 11:12:13" which refers to 11:12:13 of the first
12471 or fifth day of any month of the year 2013, given that it is
12472 a thursday or friday. This brings timer event support
12473 considerably closer to cron's capabilities. For details on
12474 the supported calendar time specification language see
12475 systemd.time(7).
12476
12477 * udev now supports a number of different naming policies for
12478 network interfaces for predictable names, and a combination
12479 of these policies is now the default. Please see this wiki
12480 document for details:
12481
a794a4d8 12482 https://www.freedesktop.org/software/systemd/man/systemd.net-naming-scheme.html
8ad26859
LP
12483
12484 * Auke Kok's bootchart implementation has been added to the
d28315e4
JE
12485 systemd tree. It is an optional component that can graph the
12486 boot in quite some detail. It is one of the best bootchart
8ad26859
LP
12487 implementations around and minimal in its code and
12488 dependencies.
12489
12490 * nss-myhostname has been integrated into the systemd source
12491 tree. nss-myhostname guarantees that the local hostname
12492 always stays resolvable via NSS. It has been a weak
12493 requirement of systemd-hostnamed since a long time, and
12494 since its code is actually trivial we decided to just
12495 include it in systemd's source tree. It can be turned off
12496 with a configure switch.
12497
12498 * The read-ahead logic is now capable of properly detecting
12499 whether a btrfs file system is on SSD or rotating media, in
12500 order to optimize the read-ahead scheme. Previously, it was
12501 only capable of detecting this on traditional file systems
12502 such as ext4.
12503
12504 * In udev, additional device properties are now read from the
12505 IAB in addition to the OUI database. Also, Bluetooth company
12506 identities are attached to the devices as well.
12507
12508 * In service files %U may be used as specifier that is
12509 replaced by the configured user name of the service.
12510
12511 * nspawn may now be invoked without a controlling TTY. This
12512 makes it suitable for invocation as its own service. This
12513 may be used to set up a simple containerized server system
12514 using only core OS tools.
12515
12516 * systemd and nspawn can now accept socket file descriptors
12517 when they are started for socket activation. This enables
12518 implementation of socket activated nspawn
12519 containers. i.e. think about autospawning an entire OS image
12520 when the first SSH or HTTP connection is received. We expect
12521 that similar functionality will also be added to libvirt-lxc
12522 eventually.
12523
12524 * journalctl will now suppress ANSI color codes when
12525 presenting log data.
12526
12527 * systemctl will no longer show control group information for
ce830873 12528 a unit if the control group is empty anyway.
8ad26859
LP
12529
12530 * logind can now automatically suspend/hibernate/shutdown the
12531 system on idle.
12532
12533 * /etc/machine-info and hostnamed now also expose the chassis
12534 type of the system. This can be used to determine whether
12535 the local system is a laptop, desktop, handset or
12536 tablet. This information may either be configured by the
12537 user/vendor or is automatically determined from ACPI and DMI
12538 information if possible.
12539
d35f51ea
ZJS
12540 * A number of polkit actions are now bound together with "imply"
12541 rules. This should simplify creating UIs because many actions
12542 will now authenticate similar ones as well.
8ad26859
LP
12543
12544 * Unit files learnt a new condition ConditionACPower= which
12545 may be used to conditionalize a unit depending on whether an
12546 AC power source is connected or not, of whether the system
12547 is running on battery power.
12548
12549 * systemctl gained a new "is-failed" verb that may be used in
12550 shell scripts and suchlike to check whether a specific unit
12551 is in the "failed" state.
12552
12553 * The EnvironmentFile= setting in unit files now supports file
12554 globbing, and can hence be used to easily read a number of
12555 environment files at once.
12556
12557 * systemd will no longer detect and recognize specific
12558 distributions. All distribution-specific #ifdeffery has been
12559 removed, systemd is now fully generic and
12560 distribution-agnostic. Effectively, not too much is lost as
12561 a lot of the code is still accessible via explicit configure
12562 switches. However, support for some distribution specific
12563 legacy configuration file formats has been dropped. We
12564 recommend distributions to simply adopt the configuration
12565 files everybody else uses now and convert the old
12566 configuration from packaging scripts. Most distributions
12567 already did that. If that's not possible or desirable,
12568 distributions are welcome to forward port the specific
12569 pieces of code locally from the git history.
12570
12571 * When logging a message about a unit systemd will now always
12572 log the unit name in the message meta data.
12573
12574 * localectl will now also discover system locale data that is
12575 not stored in locale archives, but directly unpacked.
12576
12577 * logind will no longer unconditionally use framebuffer
12578 devices as seat masters, i.e. as devices that are required
12579 to be existing before a seat is considered preset. Instead,
12580 it will now look for all devices that are tagged as
b938cb90
JE
12581 "seat-master" in udev. By default, framebuffer devices will
12582 be marked as such, but depending on local systems, other
8ad26859
LP
12583 devices might be marked as well. This may be used to
12584 integrate graphics cards using closed source drivers (such
12585 as NVidia ones) more nicely into logind. Note however, that
12586 we recommend using the open source NVidia drivers instead,
12587 and no udev rules for the closed-source drivers will be
12588 shipped from us upstream.
12589
12590 Contributions from: Adam Williamson, Alessandro Crismani, Auke
12591 Kok, Colin Walters, Daniel Wallace, Dave Reisner, David
12592 Herrmann, David Strauss, Dimitrios Apostolou, Eelco Dolstra,
12593 Eric Benoit, Giovanni Campagna, Hannes Reinecke, Henrik
12594 Grindal Bakken, Hermann Gausterer, Kay Sievers, Lennart
12595 Poettering, Lukas Nykryn, Mantas Mikulėnas, Marcel Holtmann,
12596 Martin Pitt, Matthew Monaco, Michael Biebl, Michael Terry,
12597 Michal Schmidt, Michal Sekletar, Michał Bartoszkiewicz, Oleg
12598 Samarin, Pekka Lundstrom, Philip Nilsson, Ramkumar
12599 Ramachandra, Richard Yao, Robert Millan, Sami Kerola, Shawn
12600 Landden, Thomas Hindoe Paaboel Andersen, Thomas Jarosch,
12601 Tollef Fog Heen, Tom Gundersen, Umut Tezduyar, Zbigniew
12602 Jędrzejewski-Szmek
12603
0428ddb7
LP
12604CHANGES WITH 196:
12605
12606 * udev gained support for loading additional device properties
12607 from an indexed database that is keyed by vendor/product IDs
12608 and similar device identifiers. For the beginning this
12609 "hwdb" is populated with data from the well-known PCI and
12610 USB database, but also includes PNP, ACPI and OID data. In
12611 the longer run this indexed database shall grow into
12612 becoming the one central database for non-essential
12613 userspace device metadata. Previously, data from the PCI/USB
96ec33c0 12614 database was only attached to select devices, since the
0428ddb7 12615 lookup was a relatively expensive operation due to O(n) time
96ec33c0
LP
12616 complexity (with n being the number of entries in the
12617 database). Since this is now O(1), we decided to add in this
12618 data for all devices where this is available, by
0428ddb7
LP
12619 default. Note that the indexed database needs to be rebuilt
12620 when new data files are installed. To achieve this you need
12621 to update your packaging scripts to invoke "udevadm hwdb
12622 --update" after installation of hwdb data files. For
12623 RPM-based distributions we introduced the new
12624 %udev_hwdb_update macro for this purpose.
12625
12626 * The Journal gained support for the "Message Catalog", an
12627 indexed database to link up additional information with
12628 journal entries. For further details please check:
12629
56cadcb6 12630 https://www.freedesktop.org/wiki/Software/systemd/catalog
0428ddb7
LP
12631
12632 The indexed message catalog database also needs to be
12633 rebuilt after installation of message catalog files. Use
12634 "journalctl --update-catalog" for this. For RPM-based
12635 distributions we introduced the %journal_catalog_update
12636 macro for this purpose.
12637
12638 * The Python Journal bindings gained support for the standard
12639 Python logging framework.
12640
12641 * The Journal API gained new functions for checking whether
12642 the underlying file system of a journal file is capable of
12643 properly reporting file change notifications, or whether
12644 applications that want to reflect journal changes "live"
ab06eef8 12645 need to recheck journal files continuously in appropriate
0428ddb7
LP
12646 time intervals.
12647
12648 * It is now possible to set the "age" field for tmpfiles
12649 entries to 0, indicating that files matching this entry
12650 shall always be removed when the directories are cleaned up.
12651
12652 * coredumpctl gained a new "gdb" verb which invokes gdb
12653 right-away on the selected coredump.
12654
12655 * There's now support for "hybrid sleep" on kernels that
12656 support this, in addition to "suspend" and "hibernate". Use
12657 "systemctl hybrid-sleep" to make use of this.
12658
12659 * logind's HandleSuspendKey= setting (and related settings)
12660 now gained support for a new "lock" setting to simply
12661 request the screen lock on all local sessions, instead of
12662 actually executing a suspend or hibernation.
12663
12664 * systemd will now mount the EFI variables file system by
12665 default.
12666
12667 * Socket units now gained support for configuration of the
12668 SMACK security label.
12669
12670 * timedatectl will now output the time of the last and next
12671 daylight saving change.
12672
12673 * We dropped support for various legacy and distro-specific
12674 concepts, such as insserv, early-boot SysV services
12675 (i.e. those for non-standard runlevels such as 'b' or 'S')
12676 or ArchLinux /etc/rc.conf support. We recommend the
12677 distributions who still need support this to either continue
12678 to maintain the necessary patches downstream, or find a
12679 different solution. (Talk to us if you have questions!)
12680
d35f51ea
ZJS
12681 * Various systemd components will now bypass polkit checks for
12682 root and otherwise handle properly if polkit is not found to
12683 be around. This should fix most issues for polkit-less
12684 systems. Quite frankly this should have been this way since
12685 day one. It is absolutely our intention to make systemd work
12686 fine on polkit-less systems, and we consider it a bug if
12687 something does not work as it should if polkit is not around.
0428ddb7
LP
12688
12689 * For embedded systems it is now possible to build udev and
12690 systemd without blkid and/or kmod support.
12691
12692 * "systemctl switch-root" is now capable of switching root
12693 more than once. I.e. in addition to transitions from the
12694 initrd to the host OS it is now possible to transition to
12695 further OS images from the host. This is useful to implement
12696 offline updating tools.
12697
12698 * Various other additions have been made to the RPM macros
12699 shipped with systemd. Use %udev_rules_update() after
12700 installing new udev rules files. %_udevhwdbdir,
12701 %_udevrulesdir, %_journalcatalogdir, %_tmpfilesdir,
12702 %_sysctldir are now available which resolve to the right
12703 directories for packages to place various data files in.
12704
12705 * journalctl gained the new --full switch (in addition to
12706 --all, to disable ellipsation for long messages.
12707
12708 Contributions from: Anders Olofsson, Auke Kok, Ben Boeckel,
12709 Colin Walters, Cosimo Cecchi, Daniel Wallace, Dave Reisner,
12710 Eelco Dolstra, Holger Hans Peter Freyther, Kay Sievers,
12711 Chun-Yi Lee, Lekensteyn, Lennart Poettering, Mantas Mikulėnas,
12712 Marti Raudsepp, Martin Pitt, Mauro Dreissig, Michael Biebl,
12713 Michal Schmidt, Michal Sekletar, Miklos Vajna, Nis Martensen,
12714 Oleksii Shevchuk, Olivier Brunel, Ramkumar Ramachandra, Thomas
12715 Bächler, Thomas Hindoe Paaboel Andersen, Tom Gundersen, Tony
12716 Camuso, Umut Tezduyar, Zbigniew Jędrzejewski-Szmek
12717
139ee8cc
LP
12718CHANGES WITH 195:
12719
6827101a 12720 * journalctl gained new --since= and --until= switches to
139ee8cc
LP
12721 filter by time. It also now supports nice filtering for
12722 units via --unit=/-u.
12723
6827101a 12724 * Type=oneshot services may use ExecReload= and do the
139ee8cc
LP
12725 right thing.
12726
12727 * The journal daemon now supports time-based rotation and
12728 vacuuming, in addition to the usual disk-space based
12729 rotation.
12730
12731 * The journal will now index the available field values for
12732 each field name. This enables clients to show pretty drop
12733 downs of available match values when filtering. The bash
12734 completion of journalctl has been updated
12735 accordingly. journalctl gained a new switch -F to list all
12736 values a certain field takes in the journal database.
12737
12738 * More service events are now written as structured messages
12739 to the journal, and made recognizable via message IDs.
12740
12741 * The timedated, localed and hostnamed mini-services which
12742 previously only provided support for changing time, locale
12743 and hostname settings from graphical DEs such as GNOME now
12744 also have a minimal (but very useful) text-based client
12745 utility each. This is probably the nicest way to changing
12746 these settings from the command line now, especially since
12747 it lists available options and is fully integrated with bash
12748 completion.
12749
12750 * There's now a new tool "systemd-coredumpctl" to list and
12751 extract coredumps from the journal.
12752
12753 * We now install a README each in /var/log/ and
12754 /etc/rc.d/init.d explaining where the system logs and init
12755 scripts went. This hopefully should help folks who go to
12756 that dirs and look into the otherwise now empty void and
12757 scratch their heads.
12758
12759 * When user-services are invoked (by systemd --user) the
12760 $MANAGERPID env var is set to the PID of systemd.
12761
12762 * SIGRTMIN+24 when sent to a --user instance will now result
12763 in immediate termination of systemd.
12764
12765 * gatewayd received numerous feature additions such as a
12766 "follow" mode, for live syncing and filtering.
12767
12768 * browse.html now allows filtering and showing detailed
12769 information on specific entries. Keyboard navigation and
12770 mouse screen support has been added.
12771
12772 * gatewayd/journalctl now supports HTML5/JSON
12773 Server-Sent-Events as output.
12774
1cb88f2c 12775 * The SysV init script compatibility logic will now
139ee8cc
LP
12776 heuristically determine whether a script supports the
12777 "reload" verb, and only then make this available as
12778 "systemctl reload".
12779
15f47220 12780 * "systemctl status --follow" has been removed, use "journalctl
139ee8cc
LP
12781 -u" instead.
12782
12783 * journald.conf's RuntimeMinSize=, PersistentMinSize= settings
12784 have been removed since they are hardly useful to be
12785 configured.
12786
12787 * And I'd like to take the opportunity to specifically mention
12788 Zbigniew for his great contributions. Zbigniew, you rock!
12789
12790 Contributions from: Andrew Eikum, Christian Hesse, Colin
12791 Guthrie, Daniel J Walsh, Dave Reisner, Eelco Dolstra, Ferenc
4d92e078
LP
12792 Wágner, Kay Sievers, Lennart Poettering, Lukas Nykryn, Mantas
12793 Mikulėnas, Martin Mikkelsen, Martin Pitt, Michael Olbrich,
12794 Michael Stapelberg, Michal Schmidt, Sebastian Ott, Thomas
12795 Bächler, Umut Tezduyar, Will Woods, Wulf C. Krueger, Zbigniew
12796 Jędrzejewski-Szmek, Сковорода Никита Андреевич
139ee8cc 12797
f9b55720
LP
12798CHANGES WITH 194:
12799
12800 * If /etc/vconsole.conf is non-existent or empty we will no
12801 longer load any console font or key map at boot by
12802 default. Instead the kernel defaults will be left
12803 intact. This is definitely the right thing to do, as no
12804 configuration should mean no configuration, and hard-coding
12805 font names that are different on all archs is probably a bad
12806 idea. Also, the kernel default key map and font should be
12807 good enough for most cases anyway, and mostly identical to
12808 the userspace fonts/key maps we previously overloaded them
12809 with. If distributions want to continue to default to a
12810 non-kernel font or key map they should ship a default
12811 /etc/vconsole.conf with the appropriate contents.
12812
12813 Contributions from: Colin Walters, Daniel J Walsh, Dave
12814 Reisner, Kay Sievers, Lennart Poettering, Lukas Nykryn, Tollef
12815 Fog Heen, Tom Gundersen, Zbigniew Jędrzejewski-Szmek
12816
597c52cf
LP
12817CHANGES WITH 193:
12818
12819 * journalctl gained a new --cursor= switch to show entries
12820 starting from the specified location in the journal.
12821
12822 * We now enforce a size limit on journal entry fields exported
12823 with "-o json" in journalctl. Fields larger than 4K will be
12824 assigned null. This can be turned off with --all.
12825
12826 * An (optional) journal gateway daemon is now available as
12827 "systemd-journal-gatewayd.service". This service provides
12828 access to the journal via HTTP and JSON. This functionality
12829 will be used to implement live log synchronization in both
12830 pull and push modes, but has various other users too, such
12831 as easy log access for debugging of embedded devices. Right
12832 now it is already useful to retrieve the journal via HTTP:
12833
12834 # systemctl start systemd-journal-gatewayd.service
12835 # wget http://localhost:19531/entries
12836
12837 This will download the journal contents in a
12838 /var/log/messages compatible format. The same as JSON:
12839
12840 # curl -H"Accept: application/json" http://localhost:19531/entries
12841
12842 This service is also accessible via a web browser where a
12843 single static HTML5 app is served that uses the JSON logic
12844 to enable the user to do some basic browsing of the
12845 journal. This will be extended later on. Here's an example
12846 screenshot of this app in its current state:
12847
12848 http://0pointer.de/public/journal-gatewayd
12849
12850 Contributions from: Kay Sievers, Lennart Poettering, Robert
12851 Milasan, Tom Gundersen
12852
075d4ecb
LP
12853CHANGES WITH 192:
12854
12855 * The bash completion logic is now available for journalctl
12856 too.
12857
d28315e4 12858 * We do not mount the "cpuset" controller anymore together with
075d4ecb
LP
12859 "cpu" and "cpuacct", as "cpuset" groups generally cannot be
12860 started if no parameters are assigned to it. "cpuset" hence
61233823 12861 broke code that assumed it could create "cpu" groups and
075d4ecb
LP
12862 just start them.
12863
12864 * journalctl -f will now subscribe to terminal size changes,
12865 and line break accordingly.
12866
597c52cf
LP
12867 Contributions from: Dave Reisner, Kay Sievers, Lennart
12868 Poettering, Lukas Nykrynm, Mirco Tischler, Václav Pavlín
075d4ecb 12869
b6a86739
LP
12870CHANGES WITH 191:
12871
12872 * nspawn will now create a symlink /etc/localtime in the
12873 container environment, copying the host's timezone
12874 setting. Previously this has been done via a bind mount, but
12875 since symlinks cannot be bind mounted this has now been
12876 changed to create/update the appropriate symlink.
12877
12878 * journalctl -n's line number argument is now optional, and
12879 will default to 10 if omitted.
12880
12881 * journald will now log the maximum size the journal files may
12882 take up on disk. This is particularly useful if the default
12883 built-in logic of determining this parameter from the file
12884 system size is used. Use "systemctl status
6563b535 12885 systemd-journald.service" to see this information.
b6a86739
LP
12886
12887 * The multi-seat X wrapper tool has been stripped down. As X
12888 is now capable of enumerating graphics devices via udev in a
12889 seat-aware way the wrapper is not strictly necessary
12890 anymore. A stripped down temporary stop-gap is still shipped
12891 until the upstream display managers have been updated to
12892 fully support the new X logic. Expect this wrapper to be
6563b535 12893 removed entirely in one of the next releases.
b6a86739
LP
12894
12895 * HandleSleepKey= in logind.conf has been split up into
12896 HandleSuspendKey= and HandleHibernateKey=. The old setting
6563b535 12897 is not available anymore. X11 and the kernel are
45afd519 12898 distinguishing between these keys and we should too. This
b6a86739
LP
12899 also means the inhibition lock for these keys has been split
12900 into two.
12901
597c52cf
LP
12902 Contributions from: Dave Airlie, Eelco Dolstra, Lennart
12903 Poettering, Lukas Nykryn, Václav Pavlín
b6a86739 12904
0c11f949
LP
12905CHANGES WITH 190:
12906
d28315e4 12907 * Whenever a unit changes state we will now log this to the
0c11f949
LP
12908 journal and show along the unit's own log output in
12909 "systemctl status".
12910
12911 * ConditionPathIsMountPoint= can now properly detect bind
12912 mount points too. (Previously, a bind mount of one file
8d0256b7 12913 system to another place in the same file system could not be
0c11f949
LP
12914 detected as mount, since they shared struct stat's st_dev
12915 field.)
12916
12917 * We will now mount the cgroup controllers cpu, cpuacct,
12918 cpuset and the controllers net_cls, net_prio together by
12919 default.
12920
12921 * nspawn containers will now have a virtualized boot
12922 ID. (i.e. /proc/sys/kernel/random/boot_id is now mounted
12923 over with a randomized ID at container initialization). This
12924 has the effect of making "journalctl -b" do the right thing
12925 in a container.
12926
12927 * The JSON output journal serialization has been updated not
12928 to generate "endless" list objects anymore, but rather one
12929 JSON object per line. This is more in line how most JSON
12930 parsers expect JSON objects. The new output mode
12931 "json-pretty" has been added to provide similar output, but
12932 neatly aligned for readability by humans.
12933
12934 * We dropped all explicit sync() invocations in the shutdown
12935 code. The kernel does this implicitly anyway in the kernel
12936 reboot() syscall. halt(8)'s -n option is now a compatibility
12937 no-op.
12938
12939 * We now support virtualized reboot() in containers, as
12940 supported by newer kernels. We will fall back to exit() if
12941 CAP_SYS_REBOOT is not available to the container. Also,
12942 nspawn makes use of this now and will actually reboot the
12943 container if the containerized OS asks for that.
12944
12945 * journalctl will only show local log output by default
12946 now. Use --merge (-m) to show remote log output, too.
12947
12948 * libsystemd-journal gained the new sd_journal_get_usage()
12949 call to determine the current disk usage of all journal
12950 files. This is exposed in the new "journalctl --disk-usage"
12951 command.
12952
12953 * journald gained a new configuration setting SplitMode= in
12954 journald.conf which may be used to control how user journals
12955 are split off. See journald.conf(5) for details.
12956
12957 * A new condition type ConditionFileNotEmpty= has been added.
12958
12959 * tmpfiles' "w" lines now support file globbing, to write
12960 multiple files at once.
12961
12962 * We added Python bindings for the journal submission
12963 APIs. More Python APIs for a number of selected APIs will
12964 likely follow. Note that we intend to add native bindings
12965 only for the Python language, as we consider it common
12966 enough to deserve bindings shipped within systemd. There are
12967 various projects outside of systemd that provide bindings
12968 for languages such as PHP or Lua.
12969
a98d5d64
LP
12970 * Many conditions will now resolve specifiers such as %i. In
12971 addition, PathChanged= and related directives of .path units
12972 now support specifiers as well.
0c11f949
LP
12973
12974 * There's now a new RPM macro definition for the system preset
12975 dir: %_presetdir.
12976
d28315e4 12977 * journald will now warn if it ca not forward a message to the
dca348bc 12978 syslog daemon because its socket is full.
0c11f949
LP
12979
12980 * timedated will no longer write or process /etc/timezone,
12981 except on Debian. As we do not support late mounted /usr
12982 anymore /etc/localtime always being a symlink is now safe,
12983 and hence the information in /etc/timezone is not necessary
12984 anymore.
12985
aaccc32c 12986 * logind will now always reserve one VT for a text getty (VT6
0c11f949
LP
12987 by default). Previously if more than 6 X sessions where
12988 started they took up all the VTs with auto-spawned gettys,
12989 so that no text gettys were available anymore.
12990
12991 * udev will now automatically inform the btrfs kernel logic
12992 about btrfs RAID components showing up. This should make
12993 simple hotplug based btrfs RAID assembly work.
12994
12995 * PID 1 will now increase its RLIMIT_NOFILE to 64K by default
12996 (but not for its children which will stay at the kernel
12997 default). This should allow setups with a lot more listening
12998 sockets.
12999
13000 * systemd will now always pass the configured timezone to the
13001 kernel at boot. timedated will do the same when the timezone
13002 is changed.
13003
13004 * logind's inhibition logic has been updated. By default,
13005 logind will now handle the lid switch, the power and sleep
13006 keys all the time, even in graphical sessions. If DEs want
13007 to handle these events on their own they should take the new
13008 handle-power-key, handle-sleep-key and handle-lid-switch
f131770b 13009 inhibitors during their runtime. A simple way to achieve
0c11f949
LP
13010 that is to invoke the DE wrapped in an invocation of:
13011
1d3a473b 13012 systemd-inhibit --what=handle-power-key:handle-sleep-key:handle-lid-switch …
0c11f949
LP
13013
13014 * Access to unit operations is now checked via SELinux taking
13015 the unit file label and client process label into account.
13016
aad803af
LP
13017 * systemd will now notify the administrator in the journal
13018 when he over-mounts a non-empty directory.
13019
13020 * There are new specifiers that are resolved in unit files,
38b38500 13021 for the hostname (%H), the machine ID (%m) and the boot ID
aad803af
LP
13022 (%b).
13023
b6a86739 13024 Contributions from: Allin Cottrell, Auke Kok, Brandon Philips,
0c11f949
LP
13025 Colin Guthrie, Colin Walters, Daniel J Walsh, Dave Reisner,
13026 Eelco Dolstra, Jan Engelhardt, Kay Sievers, Lennart
13027 Poettering, Lucas De Marchi, Lukas Nykryn, Mantas Mikulėnas,
13028 Martin Pitt, Matthias Clasen, Michael Olbrich, Pierre Schmitz,
13029 Shawn Landden, Thomas Hindoe Paaboel Andersen, Tom Gundersen,
13030 Václav Pavlín, Yin Kangkai, Zbigniew Jędrzejewski-Szmek
13031
38a60d71
LP
13032CHANGES WITH 189:
13033
13034 * Support for reading structured kernel messages from
13035 /dev/kmsg has now been added and is enabled by default.
13036
13037 * Support for reading kernel messages from /proc/kmsg has now
13038 been removed. If you want kernel messages in the journal
13039 make sure to run a recent kernel (>= 3.5) that supports
13040 reading structured messages from /dev/kmsg (see
13041 above). /proc/kmsg is now exclusive property of classic
13042 syslog daemons again.
13043
13044 * The libudev API gained the new
13045 udev_device_new_from_device_id() call.
13046
13047 * The logic for file system namespace (ReadOnlyDirectory=,
13048 ReadWriteDirectoy=, PrivateTmp=) has been reworked not to
13049 require pivot_root() anymore. This means fewer temporary
13050 directories are created below /tmp for this feature.
13051
13052 * nspawn containers will now see and receive all submounts
13053 made on the host OS below the root file system of the
13054 container.
13055
13056 * Forward Secure Sealing is now supported for Journal files,
13057 which provide cryptographical sealing of journal files so
13058 that attackers cannot alter log history anymore without this
13059 being detectable. Lennart will soon post a blog story about
13060 this explaining it in more detail.
13061
13062 * There are two new service settings RestartPreventExitStatus=
13063 and SuccessExitStatus= which allow configuration of exit
13064 status (exit code or signal) which will be excepted from the
13065 restart logic, resp. consider successful.
13066
13067 * journalctl gained the new --verify switch that can be used
13068 to check the integrity of the structure of journal files and
13069 (if Forward Secure Sealing is enabled) the contents of
13070 journal files.
13071
13072 * nspawn containers will now be run with /dev/stdin, /dev/fd/
13073 and similar symlinks pre-created. This makes running shells
13074 as container init process a lot more fun.
13075
13076 * The fstab support can now handle PARTUUID= and PARTLABEL=
13077 entries.
13078
13079 * A new ConditionHost= condition has been added to match
13080 against the hostname (with globs) and machine ID. This is
13081 useful for clusters where a single OS image is used to
13082 provision a large number of hosts which shall run slightly
13083 different sets of services.
13084
13085 * Services which hit the restart limit will now be placed in a
13086 failure state.
13087
b6a86739 13088 Contributions from: Bertram Poettering, Dave Reisner, Huang
38a60d71
LP
13089 Hang, Kay Sievers, Lennart Poettering, Lukas Nykryn, Martin
13090 Pitt, Simon Peeters, Zbigniew Jędrzejewski-Szmek
13091
c269cec3
LP
13092CHANGES WITH 188:
13093
13094 * When running in --user mode systemd will now become a
13095 subreaper (PR_SET_CHILD_SUBREAPER). This should make the ps
13096 tree a lot more organized.
13097
13098 * A new PartOf= unit dependency type has been introduced that
13099 may be used to group services in a natural way.
13100
13101 * "systemctl enable" may now be used to enable instances of
13102 services.
13103
13104 * journalctl now prints error log levels in red, and
13105 warning/notice log levels in bright white. It also supports
13106 filtering by log level now.
13107
13108 * cgtop gained a new -n switch (similar to top), to configure
13109 the maximum number of iterations to run for. It also gained
13110 -b, to run in batch mode (accepting no input).
13111
ab06eef8 13112 * The suffix ".service" may now be omitted on most systemctl
c269cec3
LP
13113 command lines involving service unit names.
13114
13115 * There's a new bus call in logind to lock all sessions, as
13116 well as a loginctl verb for it "lock-sessions".
13117
13118 * libsystemd-logind.so gained a new call sd_journal_perror()
13119 that works similar to libc perror() but logs to the journal
13120 and encodes structured information about the error number.
13121
13122 * /etc/crypttab entries now understand the new keyfile-size=
13123 option.
13124
13125 * shutdown(8) now can send a (configurable) wall message when
13126 a shutdown is cancelled.
13127
13128 * The mount propagation mode for the root file system will now
13129 default to "shared", which is useful to make containers work
13130 nicely out-of-the-box so that they receive new mounts from
13131 the host. This can be undone locally by running "mount
13132 --make-rprivate /" if needed.
13133
13134 * The prefdm.service file has been removed. Distributions
13135 should maintain this unit downstream if they intend to keep
13136 it around. However, we recommend writing normal unit files
13137 for display managers instead.
13138
13139 * Since systemd is a crucial part of the OS we will now
13140 default to a number of compiler switches that improve
13141 security (hardening) such as read-only relocations, stack
13142 protection, and suchlike.
13143
13144 * The TimeoutSec= setting for services is now split into
13145 TimeoutStartSec= and TimeoutStopSec= to allow configuration
13146 of individual time outs for the start and the stop phase of
13147 the service.
13148
13149 Contributions from: Artur Zaprzala, Arvydas Sidorenko, Auke
13150 Kok, Bryan Kadzban, Dave Reisner, David Strauss, Harald Hoyer,
13151 Jim Meyering, Kay Sievers, Lennart Poettering, Mantas
13152 Mikulėnas, Martin Pitt, Michal Schmidt, Michal Sekletar, Peter
13153 Alfredsen, Shawn Landden, Simon Peeters, Terence Honles, Tom
13154 Gundersen, Zbigniew Jędrzejewski-Szmek
13155
c4f1b862
LP
13156CHANGES WITH 187:
13157
13158 * The journal and id128 C APIs are now fully documented as man
13159 pages.
13160
13161 * Extra safety checks have been added when transitioning from
13162 the initial RAM disk to the main system to avoid accidental
13163 data loss.
13164
c269cec3 13165 * /etc/crypttab entries now understand the new keyfile-offset=
c4f1b862
LP
13166 option.
13167
13168 * systemctl -t can now be used to filter by unit load state.
13169
13170 * The journal C API gained the new sd_journal_wait() call to
13171 make writing synchronous journal clients easier.
13172
13173 * journalctl gained the new -D switch to show journals from a
13174 specific directory.
13175
13176 * journalctl now displays a special marker between log
13177 messages of two different boots.
13178
13179 * The journal is now explicitly flushed to /var via a service
13180 systemd-journal-flush.service, rather than implicitly simply
13181 by seeing /var/log/journal to be writable.
13182
13183 * journalctl (and the journal C APIs) can now match for much
13184 more complex expressions, with alternatives and
13185 disjunctions.
13186
13187 * When transitioning from the initial RAM disk to the main
13188 system we will now kill all processes in a killing spree to
13189 ensure no processes stay around by accident.
13190
13191 * Three new specifiers may be used in unit files: %u, %h, %s
13192 resolve to the user name, user home directory resp. user
13193 shell. This is useful for running systemd user instances.
13194
13195 * We now automatically rotate journal files if their data
13196 object hash table gets a fill level > 75%. We also size the
13197 hash table based on the configured maximum file size. This
13198 together should lower hash collisions drastically and thus
13199 speed things up a bit.
13200
13201 * journalctl gained the new "--header" switch to introspect
13202 header data of journal files.
13203
6b000af4
LP
13204 * A new setting SystemCallFilters= has been added to services which may
13205 be used to apply deny lists or allow lists to system calls. This is
13206 based on SECCOMP Mode 2 of Linux 3.5.
c4f1b862
LP
13207
13208 * nspawn gained a new --link-journal= switch (and quicker: -j)
13209 to link the container journal with the host. This makes it
13210 very easy to centralize log viewing on the host for all
13211 guests while still keeping the journal files separated.
13212
13213 * Many bugfixes and optimizations
13214
13215 Contributions from: Auke Kok, Eelco Dolstra, Harald Hoyer, Kay
13216 Sievers, Lennart Poettering, Malte Starostik, Paul Menzel, Rex
13217 Tsai, Shawn Landden, Tom Gundersen, Ville Skyttä, Zbigniew
13218 Jędrzejewski-Szmek
13219
b5b4c94a
LP
13220CHANGES WITH 186:
13221
13222 * Several tools now understand kernel command line arguments,
13223 which are only read when run in an initial RAM disk. They
13224 usually follow closely their normal counterparts, but are
13225 prefixed with rd.
13226
13227 * There's a new tool to analyze the readahead files that are
13228 automatically generated at boot. Use:
13229
13230 /usr/lib/systemd/systemd-readahead analyze /.readahead
13231
13232 * We now provide an early debug shell on tty9 if this enabled. Use:
13233
d1f9edaf 13234 systemctl enable debug-shell.service
b5b4c94a
LP
13235
13236 * All plymouth related units have been moved into the Plymouth
13237 package. Please make sure to upgrade your Plymouth version
13238 as well.
13239
13240 * systemd-tmpfiles now supports getting passed the basename of
13241 a configuration file only, in which case it will look for it
13242 in all appropriate directories automatically.
13243
13244 * udevadm info now takes a /dev or /sys path as argument, and
13245 does the right thing. Example:
13246
13247 udevadm info /dev/sda
13248 udevadm info /sys/class/block/sda
13249
13250 * systemctl now prints a warning if a unit is stopped but a
13251 unit that might trigger it continues to run. Example: a
13252 service is stopped but the socket that activates it is left
13253 running.
13254
13255 * "systemctl status" will now mention if the log output was
13256 shortened due to rotation since a service has been started.
13257
13258 * The journal API now exposes functions to determine the
13259 "cutoff" times due to rotation.
13260
13261 * journald now understands SIGUSR1 and SIGUSR2 for triggering
13262 immediately flushing of runtime logs to /var if possible,
13263 resp. for triggering immediate rotation of the journal
13264 files.
13265
13266 * It is now considered an error if a service is attempted to
13267 be stopped that is not loaded.
13268
13269 * XDG_RUNTIME_DIR now uses numeric UIDs instead of usernames.
13270
13271 * systemd-analyze now supports Python 3
13272
13273 * tmpfiles now supports cleaning up directories via aging
13274 where the first level dirs are always kept around but
13275 directories beneath it automatically aged. This is enabled
13276 by prefixing the age field with '~'.
13277
13278 * Seat objects now expose CanGraphical, CanTTY properties
13279 which is required to deal with very fast bootups where the
13280 display manager might be running before the graphics drivers
13281 completed initialization.
13282
13283 * Seat objects now expose a State property.
13284
13285 * We now include RPM macros for service enabling/disabling
13286 based on the preset logic. We recommend RPM based
13287 distributions to make use of these macros if possible. This
13288 makes it simpler to reuse RPM spec files across
13289 distributions.
13290
13291 * We now make sure that the collected systemd unit name is
13292 always valid when services log to the journal via
13293 STDOUT/STDERR.
13294
13295 * There's a new man page kernel-command-line(7) detailing all
13296 command line options we understand.
13297
13298 * The fstab generator may now be disabled at boot by passing
13299 fstab=0 on the kernel command line.
13300
91ac7425 13301 * A new kernel command line option modules-load= is now understood
b5b4c94a
LP
13302 to load a specific kernel module statically, early at boot.
13303
13304 * Unit names specified on the systemctl command line are now
13305 automatically escaped as needed. Also, if file system or
13306 device paths are specified they are automatically turned
13307 into the appropriate mount or device unit names. Example:
13308
13309 systemctl status /home
13310 systemctl status /dev/sda
13311
13312 * The SysVConsole= configuration option has been removed from
13313 system.conf parsing.
13314
13315 * The SysV search path is no longer exported on the D-Bus
13316 Manager object.
13317
ce830873 13318 * The Names= option has been removed from unit file parsing.
b5b4c94a
LP
13319
13320 * There's a new man page bootup(7) detailing the boot process.
13321
13322 * Every unit and every generator we ship with systemd now
13323 comes with full documentation. The self-explanatory boot is
13324 complete.
13325
13326 * A couple of services gained "systemd-" prefixes in their
13327 name if they wrap systemd code, rather than only external
13328 code. Among them fsck@.service which is now
13329 systemd-fsck@.service.
13330
13331 * The HaveWatchdog property has been removed from the D-Bus
13332 Manager object.
13333
13334 * systemd.confirm_spawn= on the kernel command line should now
13335 work sensibly.
13336
13337 * There's a new man page crypttab(5) which details all options
13338 we actually understand.
13339
13340 * systemd-nspawn gained a new --capability= switch to pass
13341 additional capabilities to the container.
13342
13343 * timedated will now read known NTP implementation unit names
5b00c016 13344 from /usr/lib/systemd/ntp-units.d/*.list,
b5b4c94a
LP
13345 systemd-timedated-ntp.target has been removed.
13346
13347 * journalctl gained a new switch "-b" that lists log data of
13348 the current boot only.
13349
13350 * The notify socket is in the abstract namespace again, in
13351 order to support daemons which chroot() at start-up.
13352
13353 * There is a new Storage= configuration option for journald
13354 which allows configuration of where log data should go. This
13355 also provides a way to disable journal logging entirely, so
13356 that data collected is only forwarded to the console, the
13357 kernel log buffer or another syslog implementation.
13358
c4f1b862 13359 * Many bugfixes and optimizations
b5b4c94a 13360
2d938ac7
LP
13361 Contributions from: Auke Kok, Colin Guthrie, Dave Reisner,
13362 David Strauss, Eelco Dolstra, Kay Sievers, Lennart Poettering,
13363 Lukas Nykryn, Michal Schmidt, Michal Sekletar, Paul Menzel,
13364 Shawn Landden, Tom Gundersen
b5b4c94a 13365
2d197285 13366CHANGES WITH 185:
b6a86739 13367
2d197285
KS
13368 * "systemctl help <unit>" now shows the man page if one is
13369 available.
13370
13371 * Several new man pages have been added.
13372
b5b4c94a
LP
13373 * MaxLevelStore=, MaxLevelSyslog=, MaxLevelKMsg=,
13374 MaxLevelConsole= can now be specified in
13375 journald.conf. These options allow reducing the amount of
13376 data stored on disk or forwarded by the log level.
2d197285 13377
b5b4c94a
LP
13378 * TimerSlackNSec= can now be specified in system.conf for
13379 PID1. This allows system-wide power savings.
2d197285
KS
13380
13381 Contributions from: Dave Reisner, Kay Sievers, Lauri Kasanen,
13382 Lennart Poettering, Malte Starostik, Marc-Antoine Perennou,
13383 Matthias Clasen
13384
4c8cd173 13385CHANGES WITH 184:
b6a86739 13386
4c8cd173
LP
13387 * logind is now capable of (optionally) handling power and
13388 sleep keys as well as the lid switch.
13389
13390 * journalctl now understands the syntax "journalctl
13391 /usr/bin/avahi-daemon" to get all log output of a specific
13392 daemon.
13393
13394 * CapabilityBoundingSet= in system.conf now also influences
13395 the capability bound set of usermode helpers of the kernel.
13396
13397 Contributions from: Daniel Drake, Daniel J. Walsh, Gert
13398 Michael Kulyk, Harald Hoyer, Jean Delvare, Kay Sievers,
13399 Lennart Poettering, Matthew Garrett, Matthias Clasen, Paul
13400 Menzel, Shawn Landden, Tero Roponen, Tom Gundersen
13401
ea5943d3 13402CHANGES WITH 183:
b6a86739 13403
187076d4
LP
13404 * Note that we skipped 139 releases here in order to set the
13405 new version to something that is greater than both udev's
13406 and systemd's most recent version number.
13407
194bbe33
KS
13408 * udev: all udev sources are merged into the systemd source tree now.
13409 All future udev development will happen in the systemd tree. It
13410 is still fully supported to use the udev daemon and tools without
13411 systemd running, like in initramfs or other init systems. Building
13412 udev though, will require the *build* of the systemd tree, but
ea5943d3 13413 udev can be properly *run* without systemd.
07cd4fc1 13414
91cf7e5c 13415 * udev: /lib/udev/devices/ are not read anymore; systemd-tmpfiles
f13b388f
KS
13416 should be used to create dead device nodes as workarounds for broken
13417 subsystems.
64661ee7 13418
1d3a473b 13419 * udev: RUN+="socket:…" and udev_monitor_new_from_socket() is
2d13da88
KS
13420 no longer supported. udev_monitor_new_from_netlink() needs to be
13421 used to subscribe to events.
13422
194bbe33
KS
13423 * udev: when udevd is started by systemd, processes which are left
13424 behind by forking them off of udev rules, are unconditionally cleaned
13425 up and killed now after the event handling has finished. Services or
13426 daemons must be started as systemd services. Services can be
ea5943d3 13427 pulled-in by udev to get started, but they can no longer be directly
194bbe33
KS
13428 forked by udev rules.
13429
f13b388f
KS
13430 * udev: the daemon binary is called systemd-udevd now and installed
13431 in /usr/lib/systemd/. Standalone builds or non-systemd systems need
13432 to adapt to that, create symlink, or rename the binary after building
13433 it.
13434
ea5943d3 13435 * libudev no longer provides these symbols:
c1959569
KS
13436 udev_monitor_from_socket()
13437 udev_queue_get_failed_list_entry()
13438 udev_get_{dev,sys,run}_path()
ea5943d3 13439 The versions number was bumped and symbol versioning introduced.
c1959569 13440
ea5943d3 13441 * systemd-loginctl and systemd-journalctl have been renamed
9ae9afce 13442 to loginctl and journalctl to match systemctl.
18b754d3
KS
13443
13444 * The config files: /etc/systemd/systemd-logind.conf and
13445 /etc/systemd/systemd-journald.conf have been renamed to
13446 logind.conf and journald.conf. Package updates should rename
13447 the files to the new names on upgrade.
13448
ea5943d3
LP
13449 * For almost all files the license is now LGPL2.1+, changed
13450 from the previous GPL2.0+. Exceptions are some minor stuff
13451 of udev (which will be changed to LGPL2.1 eventually, too),
13452 and the MIT licensed sd-daemon.[ch] library that is suitable
13453 to be used as drop-in files.
13454
13455 * systemd and logind now handle system sleep states, in
49f43d5f 13456 particular suspending and hibernating.
ea5943d3
LP
13457
13458 * logind now implements a sleep/shutdown/idle inhibiting logic
13459 suitable for a variety of uses. Soonishly Lennart will blog
13460 about this in more detail.
13461
13462 * var-run.mount and var-lock.mount are no longer provided
ce830873 13463 (which previously bind mounted these directories to their new
ea5943d3
LP
13464 places). Distributions which have not converted these
13465 directories to symlinks should consider stealing these files
13466 from git history and add them downstream.
13467
13468 * We introduced the Documentation= field for units and added
13469 this to all our shipped units. This is useful to make it
3943231c 13470 easier to explore the boot and the purpose of the various
ea5943d3
LP
13471 units.
13472
13473 * All smaller setup units (such as
13474 systemd-vconsole-setup.service) now detect properly if they
13475 are run in a container and are skipped when
13476 appropriate. This guarantees an entirely noise-free boot in
13477 Linux container environments such as systemd-nspawn.
13478
13479 * A framework for implementing offline system updates is now
13480 integrated, for details see:
a794a4d8 13481 https://www.freedesktop.org/software/systemd/man/systemd.offline-updates.html
ea5943d3
LP
13482
13483 * A new service type Type=idle is available now which helps us
13484 avoiding ugly interleaving of getty output and boot status
13485 messages.
13486
439d6dfd
LP
13487 * There's now a system-wide CapabilityBoundingSet= option to
13488 globally reduce the set of capabilities for the
ea5943d3
LP
13489 system. This is useful to drop CAP_SYS_MKNOD, CAP_SYS_RAWIO,
13490 CAP_NET_RAW, CAP_SYS_MODULE, CAP_SYS_TIME, CAP_SYS_PTRACE or
13491 even CAP_NET_ADMIN system-wide for secure systems.
13492
13493 * There are now system-wide DefaultLimitXXX= options to
13494 globally change the defaults of the various resource limits
13495 for all units started by PID 1.
13496
13497 * Harald Hoyer's systemd test suite has been integrated into
13498 systemd which allows easy testing of systemd builds in qemu
13499 and nspawn. (This is really awesome! Ask us for details!)
13500
3943231c
LP
13501 * The fstab parser is now implemented as generator, not inside
13502 of PID 1 anymore.
ea5943d3
LP
13503
13504 * systemctl will now warn you if .mount units generated from
13505 /etc/fstab are out of date due to changes in fstab that
d28315e4 13506 have not been read by systemd yet.
ea5943d3
LP
13507
13508 * systemd is now suitable for usage in initrds. Dracut has
13509 already been updated to make use of this. With this in place
13510 initrds get a slight bit faster but primarily are much
13511 easier to introspect and debug since "systemctl status" in
13512 the host system can be used to introspect initrd services,
13513 and the journal from the initrd is kept around too.
13514
13515 * systemd-delta has been added, a tool to explore differences
13516 between user/admin configuration and vendor defaults.
13517
13518 * PrivateTmp= now affects both /tmp and /var/tmp.
13519
13520 * Boot time status messages are now much prettier and feature
13521 proper english language. Booting up systemd has never been
13522 so sexy.
13523
13524 * Read-ahead pack files now include the inode number of all
13525 files to pre-cache. When the inode changes the pre-caching
13526 is not attempted. This should be nicer to deal with updated
13527 packages which might result in changes of read-ahead
13528 patterns.
13529
13530 * We now temporaritly lower the kernel's read_ahead_kb variable
13531 when collecting read-ahead data to ensure the kernel's
13532 built-in read-ahead does not add noise to our measurements
13533 of necessary blocks to pre-cache.
13534
13535 * There's now RequiresMountsFor= to add automatic dependencies
13536 for all mounts necessary for a specific file system path.
13537
13538 * MountAuto= and SwapAuto= have been removed from
13539 system.conf. Mounting file systems at boot has to take place
13540 in systemd now.
13541
13542 * nspawn now learned a new switch --uuid= to set the machine
13543 ID on the command line.
13544
f8c0a2cb 13545 * nspawn now learned the -b switch to automatically search
ea5943d3
LP
13546 for an init system.
13547
13548 * vt102 is now the default TERM for serial TTYs, upgraded from
13549 vt100.
13550
13551 * systemd-logind now works on VT-less systems.
13552
13553 * The build tree has been reorganized. The individual
3943231c 13554 components now have directories of their own.
ea5943d3
LP
13555
13556 * A new condition type ConditionPathIsReadWrite= is now available.
13557
13558 * nspawn learned the new -C switch to create cgroups for the
13559 container in other hierarchies.
13560
13561 * We now have support for hardware watchdogs, configurable in
13562 system.conf.
13563
13564 * The scheduled shutdown logic now has a public API.
13565
13566 * We now mount /tmp as tmpfs by default, but this can be
13567 masked and /etc/fstab can override it.
13568
d28315e4 13569 * Since udisks does not make use of /media anymore we are not
ea5943d3
LP
13570 mounting a tmpfs on it anymore.
13571
13572 * journalctl gained a new --local switch to only interleave
13573 locally generated journal files.
13574
13575 * We can now load the IMA policy at boot automatically.
13576
13577 * The GTK tools have been split off into a systemd-ui.
13578
79849bf9
LP
13579 Contributions from: Andreas Schwab, Auke Kok, Ayan George,
13580 Colin Guthrie, Daniel Mack, Dave Reisner, David Ward, Elan
13581 Ruusamäe, Frederic Crozat, Gergely Nagy, Guillermo Vidal,
13582 Hannes Reinecke, Harald Hoyer, Javier Jardón, Kay Sievers,
13583 Lennart Poettering, Lucas De Marchi, Léo Gillot-Lamure,
13584 Marc-Antoine Perennou, Martin Pitt, Matthew Monaco, Maxim
13585 A. Mikityanskiy, Michael Biebl, Michael Olbrich, Michal
13586 Schmidt, Nis Martensen, Patrick McCarty, Roberto Sassu, Shawn
13587 Landden, Sjoerd Simons, Sven Anders, Tollef Fog Heen, Tom
13588 Gundersen
13589
16f1239e 13590CHANGES WITH 44:
b6a86739 13591
16f1239e
LP
13592 * This is mostly a bugfix release
13593
13594 * Support optional initialization of the machine ID from the
13595 KVM or container configured UUID.
13596
13597 * Support immediate reboots with "systemctl reboot -ff"
13598
13599 * Show /etc/os-release data in systemd-analyze output
13600
ab06eef8 13601 * Many bugfixes for the journal, including endianness fixes and
16f1239e
LP
13602 ensuring that disk space enforcement works
13603
ce830873 13604 * sd-login.h is C++ compatible again
16f1239e
LP
13605
13606 * Extend the /etc/os-release format on request of the Debian
13607 folks
13608
13609 * We now refuse non-UTF8 strings used in various configuration
d28315e4 13610 and unit files. This is done to ensure we do not pass invalid
16f1239e
LP
13611 data over D-Bus or expose it elsewhere.
13612
13613 * Register Mimo USB Screens as suitable for automatic seat
13614 configuration
13615
13616 * Read SELinux client context from journal clients in a race
13617 free fashion
13618
13619 * Reorder configuration file lookup order. /etc now always
13620 overrides /run in order to allow the administrator to always
b938cb90 13621 and unconditionally override vendor-supplied or
16f1239e
LP
13622 automatically generated data.
13623
13624 * The various user visible bits of the journal now have man
13625 pages. We still lack man pages for the journal API calls
13626 however.
13627
13628 * We now ship all man pages in HTML format again in the
13629 tarball.
13630
13631 Contributions from: Dave Reisner, Dirk Eibach, Frederic
13632 Crozat, Harald Hoyer, Kay Sievers, Lennart Poettering, Marti
13633 Raudsepp, Michal Schmidt, Shawn Landden, Tero Roponen, Thierry
13634 Reding
13635
437b7dee 13636CHANGES WITH 43:
b6a86739 13637
437b7dee
LP
13638 * This is mostly a bugfix release
13639
13640 * systems lacking /etc/os-release are no longer supported.
13641
13642 * Various functionality updates to libsystemd-login.so
13643
45afd519 13644 * Track class of PAM logins to distinguish greeters from
437b7dee
LP
13645 normal user logins.
13646
13647 Contributions from: Kay Sievers, Lennart Poettering, Michael
13648 Biebl
13649
204fa33c 13650CHANGES WITH 42:
b6a86739 13651
204fa33c
LP
13652 * This is an important bugfix release for v41.
13653
13654 * Building man pages is now optional which should be useful
13655 for those building systemd from git but unwilling to install
13656 xsltproc.
13657
13658 * Watchdog support for supervising services is now usable. In
13659 a future release support for hardware watchdogs
13660 (i.e. /dev/watchdog) will be added building on this.
13661
13662 * Service start rate limiting is now configurable and can be
13663 turned off per service. When a start rate limit is hit a
13664 reboot can automatically be triggered.
13665
13666 * New CanReboot(), CanPowerOff() bus calls in systemd-logind.
13667
13668 Contributions from: Benjamin Franzke, Bill Nottingham,
13669 Frederic Crozat, Lennart Poettering, Michael Olbrich, Michal
13670 Schmidt, Michał Górny, Piotr Drąg
13671
e0d25329 13672CHANGES WITH 41:
b6a86739 13673
e0d25329
KS
13674 * The systemd binary is installed /usr/lib/systemd/systemd now;
13675 An existing /sbin/init symlink needs to be adapted with the
13676 package update.
13677
b13df964
LP
13678 * The code that loads kernel modules has been ported to invoke
13679 libkmod directly, instead of modprobe. This means we do not
13680 support systems with module-init-tools anymore.
13681
13682 * Watchdog support is now already useful, but still not
13683 complete.
13684
13685 * A new kernel command line option systemd.setenv= is
13686 understood to set system wide environment variables
13687 dynamically at boot.
13688
e9c1ea9d 13689 * We now limit the set of capabilities of systemd-journald.
ccd07a08 13690
353e12c2
LP
13691 * We now set SIGPIPE to ignore by default, since it only is
13692 useful in shell pipelines, and has little use in general
13693 code. This can be disabled with IgnoreSIPIPE=no in unit
13694 files.
13695
b13df964
LP
13696 Contributions from: Benjamin Franzke, Kay Sievers, Lennart
13697 Poettering, Michael Olbrich, Michal Schmidt, Tom Gundersen,
13698 William Douglas
13699
d26e4270 13700CHANGES WITH 40:
b6a86739 13701
d26e4270
LP
13702 * This is mostly a bugfix release
13703
13704 * We now expose the reason why a service failed in the
13705 "Result" D-Bus property.
13706
13707 * Rudimentary service watchdog support (will be completed over
13708 the next few releases.)
13709
13710 * When systemd forks off in order execute some service we will
13711 now immediately changes its argv[0] to reflect which process
13712 it will execute. This is useful to minimize the time window
13713 with a generic argv[0], which makes bootcharts more useful
13714
b13df964
LP
13715 Contributions from: Alvaro Soliverez, Chris Paulson-Ellis, Kay
13716 Sievers, Lennart Poettering, Michael Olbrich, Michal Schmidt,
13717 Mike Kazantsev, Ray Strode
13718
220a21d3 13719CHANGES WITH 39:
b6a86739 13720
220a21d3
LP
13721 * This is mostly a test release, but incorporates many
13722 bugfixes.
13723
13724 * New systemd-cgtop tool to show control groups by their
13725 resource usage.
13726
13727 * Linking against libacl for ACLs is optional again. If
13728 disabled, support tracking device access for active logins
13729 goes becomes unavailable, and so does access to the user
13730 journals by the respective users.
13731
13732 * If a group "adm" exists, journal files are automatically
13733 owned by them, thus allow members of this group full access
13734 to the system journal as well as all user journals.
13735
13736 * The journal now stores the SELinux context of the logging
13737 client for all entries.
13738
13739 * Add C++ inclusion guards to all public headers
13740
13741 * New output mode "cat" in the journal to print only text
13742 messages, without any meta data like date or time.
13743
13744 * Include tiny X server wrapper as a temporary stop-gap to
13745 teach XOrg udev display enumeration. This is used by display
13746 managers such as gdm, and will go away as soon as XOrg
13747 learned native udev hotplugging for display devices.
13748
13749 * Add new systemd-cat tool for executing arbitrary programs
13750 with STDERR/STDOUT connected to the journal. Can also act as
13751 BSD logger replacement, and does so by default.
13752
13753 * Optionally store all locally generated coredumps in the
13754 journal along with meta data.
13755
13756 * systemd-tmpfiles learnt four new commands: n, L, c, b, for
13757 writing short strings to files (for usage for /sys), and for
13758 creating symlinks, character and block device nodes.
13759
13760 * New unit file option ControlGroupPersistent= to make cgroups
13761 persistent, following the mechanisms outlined in
56cadcb6 13762 https://www.freedesktop.org/wiki/Software/systemd/PaxControlGroups
220a21d3
LP
13763
13764 * Support multiple local RTCs in a sane way
13765
13766 * No longer monopolize IO when replaying readahead data on
13767 rotating disks, since we might starve non-file-system IO to
13768 death, since fanotify() will not see accesses done by blkid,
13769 or fsck.
13770
d28315e4 13771 * Do not show kernel threads in systemd-cgls anymore, unless
220a21d3
LP
13772 requested with new -k switch.
13773
13774 Contributions from: Dan Horák, Kay Sievers, Lennart
13775 Poettering, Michal Schmidt
13776
13777CHANGES WITH 38:
b6a86739 13778
220a21d3
LP
13779 * This is mostly a test release, but incorporates many
13780 bugfixes.
13781
13782 * The git repository moved to:
13783 git://anongit.freedesktop.org/systemd/systemd
13784 ssh://git.freedesktop.org/git/systemd/systemd
13785
13786 * First release with the journal
13787 http://0pointer.de/blog/projects/the-journal.html
13788
13789 * The journal replaces both systemd-kmsg-syslogd and
13790 systemd-stdout-bridge.
13791
13792 * New sd_pid_get_unit() API call in libsystemd-logind
13793
13794 * Many systemadm clean-ups
13795
13796 * Introduce remote-fs-pre.target which is ordered before all
13797 remote mounts and may be used to start services before all
13798 remote mounts.
13799
13800 * Added Mageia support
13801
13802 * Add bash completion for systemd-loginctl
13803
13804 * Actively monitor PID file creation for daemons which exit in
13805 the parent process before having finished writing the PID
13806 file in the daemon process. Daemons which do this need to be
13807 fixed (i.e. PID file creation must have finished before the
13808 parent exits), but we now react a bit more gracefully to them.
13809
13810 * Add colourful boot output, mimicking the well-known output
13811 of existing distributions.
13812
13813 * New option PassCredentials= for socket units, for
13814 compatibility with a recent kernel ABI breakage.
13815
13816 * /etc/rc.local is now hooked in via a generator binary, and
13817 thus will no longer act as synchronization point during
13818 boot.
13819
13820 * systemctl list-unit-files now supports --root=.
13821
13822 * systemd-tmpfiles now understands two new commands: z, Z for
13823 relabelling files according to the SELinux database. This is
13824 useful to apply SELinux labels to specific files in /sys,
13825 among other things.
13826
13827 * Output of SysV services is now forwarded to both the console
13828 and the journal by default, not only just the console.
13829
13830 * New man pages for all APIs from libsystemd-login.
13831
ce830873 13832 * The build tree got reorganized and the build system is a
220a21d3
LP
13833 lot more modular allowing embedded setups to specifically
13834 select the components of systemd they are interested in.
13835
13836 * Support for Linux systems lacking the kernel VT subsystem is
13837 restored.
13838
13839 * configure's --with-rootdir= got renamed to
13840 --with-rootprefix= to follow the naming used by udev and
13841 kmod
13842
d28315e4 13843 * Unless specified otherwise we will now install to /usr instead
220a21d3
LP
13844 of /usr/local by default.
13845
13846 * Processes with '@' in argv[0][0] are now excluded from the
13847 final shut-down killing spree, following the logic explained
13848 in:
a794a4d8 13849 https://systemd.io/ROOT_STORAGE_DAEMONS/
220a21d3
LP
13850
13851 * All processes remaining in a service cgroup when we enter
13852 the START or START_PRE states are now killed with
13853 SIGKILL. That means it is no longer possible to spawn
13854 background processes from ExecStart= lines (which was never
13855 supported anyway, and bad style).
13856
13857 * New PropagateReloadTo=/PropagateReloadFrom= options to bind
13858 reloading of units together.
13859
4c8cd173 13860 Contributions from: Bill Nottingham, Daniel J. Walsh, Dave
220a21d3
LP
13861 Reisner, Dexter Morgan, Gregs Gregs, Jonathan Nieder, Kay
13862 Sievers, Lennart Poettering, Michael Biebl, Michal Schmidt,
13863 Michał Górny, Ran Benita, Thomas Jarosch, Tim Waugh, Tollef
13864 Fog Heen, Tom Gundersen, Zbigniew Jędrzejewski-Szmek