1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-12 21:57:27 +03:00

7478 Commits

Author SHA1 Message Date
Lennart Poettering
95e143f6e2 man: document that "systemctl set-environment" cannot be used to unset env vars configured via config file
Fixes: #28167
(cherry picked from commit c104d7a74edf0e22001adf02d4deb71d0b4661c1)
(cherry picked from commit 0e77a31715de163cb4281e72bf345af1d97d0a43)
(cherry picked from commit 0d7227d6cf87405cc088957773cdb3ca14d3cee9)
2024-04-26 01:20:05 +02:00
Lennart Poettering
09ae60e847 man: say explicitly that $LESS + $LESSCHARSET have no effect on less invocations by systemd tools
Fixes: #29479
(cherry picked from commit afc194a135fe6d3680e471eeb177961eeffbcfb3)
(cherry picked from commit 17377d841ca9e2d94bde8a1da595357f161e6dc8)
(cherry picked from commit 378e59767348da298bb9bf6cb6fade4cdcf3cecb)
2024-04-26 01:20:05 +02:00
Lennart Poettering
bd736ab0bb man: document missing resolved D-Bus APIs
Fixes: #29598
(cherry picked from commit 403492793a63d85737cfee4fd80f5d3778b1c901)
(cherry picked from commit 03e36b822d63bf4b33d000a15d68b2938736e688)
(cherry picked from commit 3197282c34dfe15802664bcb873214b4aafb08ee)
2024-04-26 01:20:05 +02:00
Lennart Poettering
4a9121d7c6 man: document that StateDirectory= trumps ProtectSystem=strict explicitly
Fixes: #29798
(cherry picked from commit 04366e06938c64ff1140a7b82c6cbfd898449c92)
(cherry picked from commit 1db247751c59bbedf1b34bb786824abedbd452d0)
(cherry picked from commit 13b7e3bd793b5ab6c074a10588c0dd87880d9aba)
2024-04-26 01:20:05 +02:00
Lennart Poettering
1972cd5af6 man: document explicitly that LogExtraFields= and LogFilterPatterns= are for system service only for now
Fixes: #29956
(cherry picked from commit 552dc4a97c3de76afb0bb0ef8dbe463382e93838)
(cherry picked from commit fd0d7c9622d302bcbd1501bfbe6c99de6d3a0cef)
(cherry picked from commit 2b34a1963eba96d3b3a6bac27efcb74c9d73cbf4)
2024-04-26 01:20:05 +02:00
Lennart Poettering
9d3106fb18 man: document explicitly that bind restrictions cannot be escaped by opening a new netns
And while we are at it reword the introductary sentence a bit to make it
clearer.

Fixes: #30555
(cherry picked from commit 6b7a1a3679f1facbc192d4abd209530002510f34)
(cherry picked from commit 968c569a8e4b6f1cd6c4199dd110828333a562a5)
(cherry picked from commit 4b8fe21619476c0732ae3b5bb662da8a52ba333b)
2024-04-26 01:20:05 +02:00
Lennart Poettering
e321e884fc man: explicitly document the various systemd.journald.max_level_*= kernel cmdline options
Fixes: #31327
(cherry picked from commit 0adce85ebe7a4621c23a53466fd405e4fdd82b68)
(cherry picked from commit deb1d0b47f8deacaf305e19dc4f2b2c5382156f5)
(cherry picked from commit b3ad1d371815a84e81eefa849ffbe42750957452)
2024-04-26 01:20:05 +02:00
Yu Watanabe
a4bb56c61a sd-event: fix fd leak when fd is owned by IO event source
When an IO event source owns relevant fd, replacing with a new fd leaks
the previously assigned fd.
===
sd_event_add_io(event, &s, fd, ...);
sd_event_source_set_io_fd_own(s, true);
sd_event_source_set_io_fd(s, new_fd);  <-- The previous fd is not closed.
sd_event_source_unref(s);  <-- new_fd is closed as expected.
===

Without the change, valgrind reports the leak:
==998589==
==998589== FILE DESCRIPTORS: 4 open (3 std) at exit.
==998589== Open file descriptor 4:
==998589==    at 0x4F119AB: pipe2 (in /usr/lib64/libc.so.6)
==998589==    by 0x408830: test_sd_event_source_set_io_fd (test-event.c:862)
==998589==    by 0x403302: run_test_table (tests.h:171)
==998589==    by 0x408E31: main (test-event.c:935)
==998589==
==998589==
==998589== HEAP SUMMARY:
==998589==     in use at exit: 0 bytes in 0 blocks
==998589==   total heap usage: 33,305 allocs, 33,305 frees, 1,283,581 bytes allocated
==998589==
==998589== All heap blocks were freed -- no leaks are possible
==998589==
==998589== For lists of detected and suppressed errors, rerun with: -s
==998589== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

(cherry picked from commit 2fa480592d4f4334881361c5558f563e5ea4c9c3)
(cherry picked from commit 6d2dd436429aafcbb3fd8c99f6b69c9a108bf7f9)
(cherry picked from commit 5f8cf63f17c2ab4fecb0e65e6231ae6931270893)
2024-04-26 01:20:05 +02:00
Zbigniew Jędrzejewski-Szmek
70ff694091 man: mention that sd_journal_test_cursor() needs a positioning call
Fixes #30331.

(cherry picked from commit aea6787f78fce73e45d1b4e6f2dd7927a90b4305)
(cherry picked from commit 475310f5d60b3deae8771545c5a1f96bd4898cdf)
(cherry picked from commit 0c4bbe99b09b7698906a070cc3b57dc4e839b3cc)
2024-04-26 01:20:05 +02:00
Mike Yuan
41c879e7f2 man/custom-html: update link to Arch manual
(cherry picked from commit 41fead40e6b3166f13a3598ab94e3dcb59ed36e1)
(cherry picked from commit 2cc54032fdd8fb80e3c9626daf8cfeecb79aeab3)
(cherry picked from commit 74e96ea95546d29502dd5bcf85059074d6d98a49)
2024-04-26 01:20:05 +02:00
Vito Caputo
3bad1cdaa5 man: fix typo s/veno/reno/
(cherry picked from commit a7d8cacce0cb0451701b81db818d9e5921574f51)
(cherry picked from commit 47b642c4cacd55760902b55ec8cd1502bc82a9af)
(cherry picked from commit 35b716dd23ed7e417ae1240f4dca99852c26d0d6)
2024-04-26 01:20:05 +02:00
Yu Watanabe
9d2165ea42 man/examples: fix sd- header path
(cherry picked from commit 2548ce6a30a1183a7bbbd699aafdf81249a5fe4e)
(cherry picked from commit 52f60014056dcf3e5efd5edf0c67b721a18e723c)
(cherry picked from commit ea8070be46548f23e863504737a01d39fab2050b)
2024-04-26 01:20:05 +02:00
Yu Watanabe
3da73b0a15 man/example: fix build failure of hwdb-usb-device.c
STRLEN() and xsprintf() is our internal macros.

(cherry picked from commit 06d0dcc009f6d8b16d02f65fc20f7e1d76c77721)
(cherry picked from commit ea94162096cef586d3a1b03c45ea530a2dab2652)
(cherry picked from commit 4a7d09423ea721f40da72bef8ba34559f57758bb)
2024-04-26 01:20:05 +02:00
Matthias Lisin
1959c87921 man: fix minor issues
(cherry picked from commit 245bd4af99094e5727727fb0459ed6cb7b78b56a)
(cherry picked from commit 892641af224218a7cae25ddc602d3fa2944de151)
(cherry picked from commit 6a7b65a6182f0ce7c1e663f76996deca5b38d6c6)
2024-04-26 01:20:05 +02:00
Adrian Wannenmacher
332583448b man: fix efi var vendor uuid for systemd-bless-boot.service
The specified vendor UUID is not actually a UUID. This changes it to an actual UUID.

The new value matches the ones from the systemd-boot man page and [The Boot Loader Interface](https://systemd.io/BOOT_LOADER_INTERFACE/).

(cherry picked from commit c6d0c6688ee7b0bb4575ab3e96655fd316543c95)
(cherry picked from commit aa7b8471806136f52287b1737b88bed9d4f221a9)
(cherry picked from commit 53cc058d34a76ccf278ccefd1330a34b033a65bf)
2024-04-26 01:20:05 +02:00
Michael Biebl
f050c91d75 man: fix systemd-timedated man page wrt ntp-units.d
The service parsing/using this directory is systemd-timedated, not
systemd-timesyncd.

(cherry picked from commit 73d8990930b0d84067331c65f0f7731fd76822a4)
(cherry picked from commit 4985c7069e3848009a93791c0ae1d7c9574c93a7)
(cherry picked from commit 9b83f8a2f2f3401dc5998a07073c9daaf2738bf2)
2024-04-26 01:20:05 +02:00
Štěpán Němec
7ba1a3238e man, shell-completion: fix a few typos/language issues
(cherry picked from commit c959e1782316f93464baf4f2fd15484bf84413ba)
(cherry picked from commit 4fb223fdc6c396b16d93f5288fb9a90d88c1a9c5)
(cherry picked from commit cff6c392c14de1a36cd95dbe7b8ae95091727679)
2024-04-26 01:20:05 +02:00
runiq
56bd686d4e udev: String substitutions can be done in ENV, too
Precedence for example in ac63c8df30/rules.d/99-systemd.rules.in (L75).

Add ENV to the list of keys where string substitutions can be used.

While I'm at it, also sort the list in that paragraph alphabetically.

(cherry picked from commit 793166aea52dfbd06cfa622d5eda0bb31f9da6cf)
(cherry picked from commit 75fb8e6e35ca0f22c449a307f1e77c9a284b4cae)
(cherry picked from commit 0254e0952d8b185973e5a78a883c1c4c7cccf1f5)
2024-02-28 10:29:35 +00:00
Winterhuman
22f42f3ee9 Improve IgnoreSIGPIPE description
Reword the description of the `IgnoreSIGPIPE=` service option to be more grammatical.

(cherry picked from commit 6c6ec5f7284d287c943311718202d87109335f66)
(cherry picked from commit e16154fa69517048cbe9ff893d0906b666da6fae)
(cherry picked from commit 8f191c5c2abacf5f395875f6b3be42ffca9afeaa)
2024-02-28 10:29:35 +00:00
Mike Yuan
dd3f106fb8 man/systemd.service: document that Restart=always/on-success are refused
by oneshot services

(cherry picked from commit a5d9df35acbaf618a4fc674a2ee06e63ed5a7a10)
(cherry picked from commit 8fd3a4d90e72db9c33c8a73602d9881e3c37db43)
(cherry picked from commit 4d8c664b2829634a25c7471b579913dd7d839efe)
2024-02-28 10:29:35 +00:00
Ivan Shapovalov
c5d0b3e51c nspawn: permit --ephemeral with --link-journal=try-* (treat as =no)
Common sense says that to "try" something means "to not fail if
something turns out not to be possible", thus do not make this
combination a hard error.

The actual implementation ignores any --link-journal= setting when
--ephemeral is in effect, so the semantics are upheld.

(cherry picked from commit 00fcd79e65305a0d2657312b001467a055b04801)
(cherry picked from commit 9a678a258d94a2fa7c02c8085d500cb07ae5b49e)
(cherry picked from commit ebd92b562d6fdf0bd78adbee5b24f8bea0617e3a)
2024-02-28 10:29:35 +00:00
Luca Boccassi
a00fb1a73f man: explicitly say that portable1's Attach/Detach are synchronous
(cherry picked from commit 803bcc434f2bcd2c76f6d098277ebc61438c7b43)
(cherry picked from commit a0301cbac57180cd8dd8dcb6d7ac0d1e36aa9181)
(cherry picked from commit 239c3c787181cf44604abd60a034d1b5db05d8d5)
2024-02-28 10:29:35 +00:00
Luca Boccassi
8bfeeea865 man: add more suggestions on how to use StartUnit and JobRemoved
This is not immediately clear for users, so spell out the preferred pattern
clearly in the D-Bus documentation.

(cherry picked from commit d156e66f826e3eaa4b7d26212870dcfdfd3a16a3)
(cherry picked from commit 858c2bae36d6fa3eccdd1c6d1fe27b3522d8d645)
(cherry picked from commit 280f5fd3656368b0998fc856146a2ca200cd6b41)
2024-02-28 10:29:35 +00:00
Rafaël Kooi
afe0d73da4 man: Describe how machine ID is initialized on Xen
(cherry picked from commit 9fe1f1ca95c57c6fc453ba31f363f8b3230cebeb)
(cherry picked from commit 81bd0e949577f4b99b9dac133ee96d9f17d90063)
(cherry picked from commit 6c814e7b71f50b9ff6442fdf4c3a162f6d551549)
2024-02-28 10:29:35 +00:00
Mike Yuan
c8b67b5c39 systemctl: configure boot loader options only when going through firmware
Fixes #30497

(cherry picked from commit bc9e592c4f01dd8a4f8fb5e2bbcdec5ee4bf129d)
(cherry picked from commit b6b59ce2dbe87a52be9155d03f18010382ab68a7)
(cherry picked from commit 49a5e63757701eff77855a14a9f38df4b3bdc1b8)
2024-01-26 19:53:42 +00:00
Lennart Poettering
d35acc05c4 man: don't suggest using pam_unix.so's use_authtok switch
Our dumbed down example PAM stacks do not contain cracklib/pwq modules,
hence using use_authtok on the pam_unix.so password change stack won't
work, because it has the effect that pam_unix.so never asks for a
password on its own, expecting the cracklib/pwq modules to have
queried/validated them beforehand.

I noticed this issue because of #30969: Debian's PAM setup suffers by
the same issue – even though they don't actually use our suggested PAM
fragments at all.

See: #30969
(cherry picked from commit 75f8b0fe70002176b505010d633d95628eb8c40a)
(cherry picked from commit e70b633455622563de1960b34c44b6e55986cf7f)
(cherry picked from commit 9eb38e720d49e3f59b7892a37c78d5ef29ca91ff)
2024-01-26 19:53:42 +00:00
Yu Watanabe
9c1c5b8097 virt: add Google Compute Engine support
See https://cloud.google.com/run/docs/container-contract#sandbox

(cherry picked from commit 9b0688f491674b53ef7a52bdf561a430c53673d6)
(cherry picked from commit 6610d64197d416dcb112005032886eb3cf4f36cd)
(cherry picked from commit f77ad7abd15529a75936981b53385afd215a015f)
2024-01-26 19:53:42 +00:00
Yu Watanabe
0e4080bc55 man: drop unexpected dot
(cherry picked from commit 10b8bb5495f2b57b72cd5e5c2eaccb9ad2efa199)
(cherry picked from commit cbbcdff83ca806170afe9bbc6b444918b678d230)
(cherry picked from commit 9d6912699a3b10592e2b6bf5c9e3c423bfa8e56e)
2024-01-26 19:53:42 +00:00
Antonio Alvarez Feijoo
4c16effc39 analyze: fix -q option
Follow-up to 52117f5af831a816c47ceebb83c8244ee93b72fe

(cherry picked from commit 7c0e0bbb6b13d70500da79ce0270ed6da09327a0)
(cherry picked from commit b0d294099790e75b0d8a1c90847895f5c7925354)
(cherry picked from commit a36677b4a4b473a62d815be0976c8d576228a030)
2024-01-26 19:53:42 +00:00
Andrew Sayers
fd7205f5c5 Fix a typo in the org.freedesktop.systemd1 man page
(cherry picked from commit ff47602f5ee6b3301c24e2baa6449245666f2252)
(cherry picked from commit 056186b038fd465246e7a52ca3b0754bfaada474)
(cherry picked from commit fe62f214fed55c0e6f3211af4b825a652c26bf59)
2023-12-23 20:42:40 +01:00
Дамјан Георгиевски
de0f0b514a man: typo, it's DHCP not DCHP in DHCPPrefixDelegation=
(cherry picked from commit 51219be99295eee3dbfc3d546fdb75cd29ce5f29)
(cherry picked from commit db14abb864d31e51df996d5c225a88dd99483436)
2023-12-06 11:15:01 +01:00
Vito Caputo
24a9bc76aa man: add note about journald forwarding being sync
This footgun should at least be documented, if there's not going
to be a shortcut setting to establish the async `journalctl
--follow` equivalent.

Fixes: https://github.com/systemd/systemd/issues/2815
(cherry picked from commit 165fb931ea1e70460d5ebd30fa22e3aa6ba8861d)
(cherry picked from commit 97237a52c3a0bf541e29d899886bece507972e93)
2023-12-06 11:15:01 +01:00
Frantisek Sumsal
9a2e80eb15 login: mark the TTY property as "emits change"
Triggered by the SetTTY() method.

Follow-up to 092e6cd19ad.
Addresses: https://github.com/systemd/systemd/pull/30043#pullrequestreview-1733628935

(cherry picked from commit f1e02423a917fa957de6800f391bd814e88dbcbe)
(cherry picked from commit 9fba69e3026b4ccdcdc75d612fbf93045d19864a)
2023-12-06 11:15:01 +01:00
Frantisek Sumsal
7d76b4e96b login: mark the Display property as "emits change"
With the introduction of SetDisplay() method in 4885d7490b2 the Display
property emits a "properties changed" message every time the display is
changed using this method, so mark it appropriately.

Caught by systemd/systemd#30029:

systemd-logind[1366]: Got message type=method_call sender=:1.165 destination=org.freedesktop.login1 path=/org/freedesktop/login1/session/_310 interface=org.freedesktop.login1.Session member=SetDisplay  cookie=8 reply_cookie=0 signature=s error-name=n/a error-message=n/a
systemd-logind[1366]: Assertion 'v->vtable->flags & SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE || v->vtable->flags & SD_BUS_VTABLE_PROPERTY_EMITS_INVALIDATION' failed at src/libsystemd/sd-bus/bus-objects.c:2141, function emit_properties_changed_on_interface(). Ignoring.

Follow-up to 4885d7490b2.

(cherry picked from commit 236cb016222288bdf5be5f2d8f9e81d6e4a6adab)
(cherry picked from commit 89a03cfbfce744c6893089bb9cbe1be77534ca9a)
2023-12-06 11:15:01 +01:00
Lennart Poettering
4a75edd61e man: document explicitly tha ReadWritePaths= cannot undo superblock read-only settings
Fixes: #29266
(cherry picked from commit b6be6a6721e3d7ba0f01cfba135d2d6cf526087b)
(cherry picked from commit 0a358507b596af8b6bd9640693473f45047eecde)
2023-11-09 21:05:51 +00:00
Lennart Poettering
c09313447e man: document that changing --uid= doesn't work
Fixes: #28982
(cherry picked from commit d33121d27d284ae558b576cc07fb8f9bb44b35cd)
(cherry picked from commit 63c7f5833ef265b2238977c715ad69fd11cbea4e)
2023-11-09 21:05:51 +00:00
Lennart Poettering
2dbf94edf6 service: say explicitly that people should not use different NonBlocking= settings if they share socket units between multiple service units
Fixes: #29600
(cherry picked from commit 28562194c49003b8f6af0df24c33b4f6d8a8df1e)
(cherry picked from commit 009e7801843707cf2419ca3582015dc76d733054)
2023-11-09 21:05:51 +00:00
Lennart Poettering
c4958af5db man: explicitly document compat guarantees of cryptenroll vs. cryptsetup
Fixes: #29743
(cherry picked from commit 244101876ccd8dc28e8527d02e3a8ac822dc19ac)
(cherry picked from commit 62d51eb879fa36bf45e522944e07bd5bec44cf48)
2023-11-09 21:05:51 +00:00
Lennart Poettering
318c3afcba man,doc: document some aspects of user record management/homed a bit better
Fixes: #29759
(cherry picked from commit 7480859a11718093db573c41c5ce5f0fc9f816e6)
(cherry picked from commit 912fb76f3abba7e6dbeba0f6134aff99fa8211f8)
2023-11-09 21:05:51 +00:00
Lennart Poettering
a40a4393d6 man: be even clearer that tmpfiles user/group/mode are applied on existing inodes
I think it was clear already, but let's be even clearer.

Fixes: #29774
(cherry picked from commit 3cb938bd12b3603984b982e9b73e4cabd4a608e3)
(cherry picked from commit 9ed9bfe6b1e62f3f44bd6968b406bc87051f8539)
2023-11-09 21:05:51 +00:00
Lennart Poettering
1c09ddd65d man: update COREDUMP_xyz journal fields docs
This completes/corrects the documentation for the following fields:

    COREDUMP_CGROUP= - doc where wrong, actually covered COREDUMP_PROC_CGROUP=
    COREDUMP_CMDLINE= → undocumented so far
    COREDUMP_PROC_CGROUP= → docs where there but incorrectly assigned to COREDUMP_CGROUP=
    COREDUMP_PROC_AUXV= → undocumented so far
    COREDUMP_SESSION= → undocumented so far

Fixes: #29832
(cherry picked from commit a9d54de66d62b1180aef845fae2eabde4968dda5)
(cherry picked from commit be694c89f7c2a8415711971f50bef762ae27c5e8)
2023-11-09 21:05:51 +00:00
Lennart Poettering
7b5fffede1 man: add missing unit file section name to example
Fixes: #29917
(cherry picked from commit 2e290d55fd1ff9483315dcbe86cae091f333d68f)
(cherry picked from commit e57d278da35d2591ca451af57f3d0193a76bb502)
2023-11-09 21:05:51 +00:00
André Paiusco
d387e5df1f man: Improve text for SystemMaxFileSize when not set
If one sets the SystemMaxUse=64G by the current documentation would expect that each files size would be around 1/8 of this value (8G), althought if the SystemMaxFileSize is not explicit set, it has a max of 128M per file.

(cherry picked from commit d397191b6d3001c2920e15e3ce3c9e7a31c66436)
(cherry picked from commit 83bc13e77ae5e27e420ca3e1e3b4da7c1c2e17cc)
2023-11-09 21:05:51 +00:00
Peter Hutterer
cc09085ac3 analyze: handle CAP_BPF support
(cherry picked from commit 4f7a629e6c11fb2f060f18a62d073410ffa5a0ca)
(cherry picked from commit f58b5ce7dc8232f2305b9c8ce2e73b626a9d0dd8)
2023-11-09 21:05:51 +00:00
Lennart Poettering
1d6c94b72b man: explicitly mention that environment.d/ cannot be used to set the service manager's own env block
Fixes: #29414
(cherry picked from commit bebf6fcf223c46f238184389befb2b05f4d2ff10)
(cherry picked from commit bb0a377c52cf23417c7af4601b7bef74beb7e990)
2023-11-09 21:05:51 +00:00
Michal Sekletar
4b4ef92bad man: change title of the section to better reflect actual content
(cherry picked from commit 448a21abbd23d18c0ed50c894b9f73118112dc55)
(cherry picked from commit 29e61fbea5b90a61b20027407840ff2c40412c69)
2023-11-09 21:05:51 +00:00
Michal Koutný
147ad7d0a3 man: Add remarks about StandardInput=socket and sd_listen_fds()
It confuses users when they cannot find respective environment variables
with config that is supposes for (x)inetd activated service only.

Fix: #29670
(cherry picked from commit 788b7e7630669a47c54c6f3299af14db26ca7fe0)
(cherry picked from commit 136dc1c818aab93301032664931765f6285d0ba8)
2023-11-09 21:05:51 +00:00
Alex Hudspith
271026144d man: revise wording of cgtop -k and -P
Resolves: #29753
(cherry picked from commit ade790006b20e0788e8fa7cef2ae92cfd666d068)
(cherry picked from commit 8649d06cfe8882ea5129677aa5134feff2212b63)
2023-11-09 21:05:51 +00:00
Mike Yuan
de771adb6b man/systemd.unit: add PropagatesStopTo= to reverse property table
(cherry picked from commit 8c29f6a572318fc4de63b084e2ee94021d52459a)
(cherry picked from commit 0c2e0082e23977da1112ce7d22024808d3795f5a)
2023-11-09 21:05:51 +00:00
Joerg Behrmann
e31805d26a credentials: document that their path is stable for system services
(cherry picked from commit cf37171890bdaec1dc0cd56828047f4eb899fc3a)
(cherry picked from commit 823216d61f6291d7fc13c271bfda368513440a4c)
2023-11-09 21:05:51 +00:00