1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-14 16:58:22 +03:00

5497 Commits

Author SHA1 Message Date
David Tardon
d44c3024b9 man: document differences in clean exit status for Type=oneshot
See commit 1f0958f640b87175cd547c1e69084cfe54a22e9d .

(cherry picked from commit f055cf77862bc580f3afbfaac161d1c060f39411)
(cherry picked from commit c86f4f5f287258938d0c30354040c3b034b0c066)
2021-03-23 10:14:01 +01:00
Yu Watanabe
0af10ee899 man: DNS/NTP servers received from DHCP server are concatenated with the statically configured ones
Prompted by #9473.

(cherry picked from commit b63dae3168209a06cefe2b9916667b7754b7de34)
(cherry picked from commit 438777cc00ccf2c05f8a05fa02907aa7be547719)
2021-03-23 10:07:53 +01:00
Richard Laager
4a41de8169 Remove outdated disable_ipv6 docs
This was changed in commit 482efedc081b0c4bf2e77a3dee6b979d9c9a5765,
which was released in v243, to only enable and never disable IPv6.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
(cherry picked from commit f542f3b2ed3cf3e71692d1736f3fdd0ebdc226ef)
(cherry picked from commit 807d6dd157e67648dfb7ad8f8ff85a0b0a3db829)
2021-03-12 18:18:06 +01:00
Dmitry Borodaenko
c5c6dbf389 man/systemd-nspawn: document hashing machine name for uid base
Explicitly document the behavior introduced in #7437: when picking a new
UID shift base with "-U", a hash of the machine name will be tried
before falling back to fully random UID base candidates.

(cherry picked from commit 68709a636c838e0754b49caa6ff2d4168e3c99c8)
(cherry picked from commit 4032a1358897ecaf4e485399b03c6186fb2c90e9)
2021-02-02 17:32:24 +01:00
Luca BRUNO
00071dd6b9 man/localtime: document default timezone
This explicitly documents the default `UTC` timezone which is used
by systemd and (other softwares) when `/etc/localtime` is not present.

Ref: https://github.com/systemd/systemd/blob/v247/src/basic/time-util.c#L1460-L1469
(cherry picked from commit 3d909037e3bb86bb14ceef98325b2759b938a4b3)
(cherry picked from commit a580023f1da331bd454ea72cad146215b255e0d0)
2021-02-02 17:31:47 +01:00
Florian Klink
0a3dd3db1f man/systemd.netdev: clarify the wireguard AllowedIPs= setting
`AllowedIPs=` only affects "routing inside the network interface
itself", as in, which wireguard peer packets with a specific destination
address are sent to, and what source addresses are accepted from which
peer.

To cause packets to be sent via wireguard in first place, a route via
that interface needs to be added - either in the `[Routes]` section on
the `.network` matching the wireguard interface, or outside of networkd.

This is a common cause of misunderstanding, because tools like wg-quick
also add routes to the interface. However, those tools are meant as a
"extremely simple script for easily bringing up a WireGuard interface,
suitable for a few common use cases (from their manpage).

Networkd also should support other usecases - like setting AllowedIPs to
0.0.0.0/0 and ::/0 and having a dynamic routing protocol setting more
specific routes (or the user manually setting them).

Reported-In: https://github.com/systemd/systemd/issues/14176
(cherry picked from commit c6b90e5c5e54e98b6aed38677f77d8491f2e49c8)
(cherry picked from commit 14475e0e793be33bfad371c6d3545c7448f78730)
2021-02-02 17:31:44 +01:00
Jonathan G. Underwood
def3ea14df cryptsetup: add support for workqueue options
This commit adds support for disabling the read and write
workqueues with the new crypttab options no-read-workqueue
and no-write-workqueue. These correspond to the cryptsetup
options --perf-no_read_workqueue and --perf-no_write_workqueue
respectively.

(cherry picked from commit 227acf0009bde2cd7f8bc371615b05e84137847d)
2020-12-30 15:24:12 +01:00
Yu Watanabe
e39f0fa5c3 network: honor M or O flag in RA even if IPv6AcceptRA.DHCPv6Cleint=always
Follow-up for ac24e418d9bc988ecf114c464701b35934948178.

The original motivation of the commit and RFE #15339 is to start dhcpv6
client in managed mode when neither M nor O flag is set in the RA.
But, previously, if the setting is set to "always", then the DHCPv6
client is always started in managed mode even if O flag is set in the
RA. Such the behavior breaks RFC 7084.

(cherry picked from commit 0e686feaff71465e3220f234871f66a39f0f57ad)
2020-12-16 14:34:54 +01:00
Lennart Poettering
924bd7ec69 man: document that automount units are privileged
Fixes: #17886
(cherry picked from commit eef34a1d8fe5ca44bdab189b682642096c53e661)
2020-12-10 17:39:17 +01:00
igo95862
faa88d9c39 man: Speicfy exact return values of sd_bus_message_enter_container
(cherry picked from commit 1edc1f1b626446a20db405d041cd70ed3d52c632)
2020-12-08 18:08:31 +01:00
Yu Watanabe
89fae89234 man: slightly update the man page of sd_bus_message_read_basic()
Follow-up for 73a1d7d2433edd1872ec53db3e804009298ebb1d.

(cherry picked from commit 7a1fe27f81dace11a25a0573dc170d86d1f92023)
2020-12-08 18:08:31 +01:00
igo95862
391de4434b man: Fixed an incomplete sentence
(cherry picked from commit 78c4f2f153b93fdb39654edb93a73b202a67dcfd)
2020-12-08 18:08:31 +01:00
igo95862
03429f6dab man: Specify that sd_bus_message_read_basic returns 0 if end of array had been reached.
(cherry picked from commit 73a1d7d2433edd1872ec53db3e804009298ebb1d)
2020-12-08 18:08:31 +01:00
Pavel Sapezhko
298477a1c9 man: clarify DefaultTasksMax doc
(cherry picked from commit 77f5277a7abf7d6b0a4bbf4ecf872da0b92335b5)
2020-12-08 18:08:31 +01:00
igo95862
85043d8caf man: Fix sd_bus_message_append_array_space function signature
(cherry picked from commit 0e577869f3fc287223d31cfed52921c4d3579ff2)
2020-12-08 18:08:31 +01:00
Zbigniew Jędrzejewski-Szmek
5d89a32666 man: drop misplaced phrase
I think it was added in 6c2b9c8da1eb1bac7e8f170b913f63dbd13a16d7 as c&p.

(cherry picked from commit de70ff66dc628062d4f04270988b92ba0aef2420)
2020-12-08 18:08:31 +01:00
igo95862
2f5c994dde man: Add a paragraph to sd_bus_call explaning callback message lifetime
(cherry picked from commit e6ce785d611702532ae71547e78fbb49eff3aded)
2020-12-08 18:08:31 +01:00
Yu Watanabe
8992d8576b man: fix prototpe of sd_bus_message_peek_type()
Fixes #17609.

(cherry picked from commit 483abcc65bd5efe43b0cea453580bac45cd0f177)
2020-12-08 18:08:31 +01:00
Yu Watanabe
e90844ca8a man: add missing <para> tag, and drop redundant ">"
Fixes #17609.

(cherry picked from commit e55c073161d469fb01ecd5bea3ff8845194e25d9)
2020-12-08 18:08:31 +01:00
igo95862
e1ff0c8a5e man: Separated paragraph about making sd_bus object reply async
(cherry picked from commit 2e4238a6d14223728dbfbb24830e644d31b04111)
2020-12-08 18:08:31 +01:00
Yu Watanabe
821937ffc8 man: fix tag
(cherry picked from commit af7ce3faf88f6bcd5c82a71412fa81e8ae34acbb)
2020-12-08 18:08:31 +01:00
Yu Watanabe
cc1b93aef9 man: mention that sd_bus_call() may return a negative errno mapped from D-Bus error reply
Closes #17556.

(cherry picked from commit c660668ed9daf15358c522c09ba3932393bd5451)
2020-12-08 18:08:31 +01:00
Yu Watanabe
0e233e5987 man: add missing period
(cherry picked from commit 23243adf69ffed2630c778e021c3cf2e97a6b999)
2020-12-08 18:08:31 +01:00
Yu Watanabe
6b9e8618e5 journal: refuse skip parameter for sd_journal_next_skip() larger than INT_MAX
Fixes #17502.

(cherry picked from commit 41d544a1c124a63f94b571e5ed924c4fb03193bb)
2020-12-08 18:08:31 +01:00
Yu Watanabe
9f316bb61c network: make default router lifetime to 30min
Closes #17527.

(cherry picked from commit 71a5db49fd07864078348359200921d6d441f85a)
2020-12-08 18:08:31 +01:00
Lennart Poettering
e8c7f0e4c4 man: remove misplaced comma
(cherry picked from commit 8b2e362651ca7f921ae9cd46a851f31eb2a7c903)
2020-12-08 18:08:31 +01:00
Zbigniew Jędrzejewski-Szmek
59b8000e12 man: update fedora version
F33 was released today!

(cherry picked from commit d468c81e268adb2975faff2d8c8587b5640c15ae)
2020-12-08 18:08:30 +01:00
Zbigniew Jędrzejewski-Szmek
afa88d5789 man/machinectl: fix pull-raw example
We do not allow machine names with "_", so the command would fail as written.
Share the example with the systemd-nspawn page instead.

(cherry picked from commit 5fadff3352cfeb82844b6d475056bb18f2eba0dc)
2020-12-08 18:08:30 +01:00
Josh Brobst
23b682c4c4 man: correct xdg-autostart-generator path
(cherry picked from commit c690bd0bc6b2e07873cb289948ebd4dfa3a7e868)
2020-12-08 18:08:30 +01:00
Zbigniew Jędrzejewski-Szmek
9833a8b6bb man: document what variables are allowed
(cherry picked from commit 0dc9fd56a53ef833fdc5b9b81bc958e7c3dd41a4)
2020-12-08 18:08:30 +01:00
Zbigniew Jędrzejewski-Szmek
d58943a7d2 man: add example of negative trust anchor file
Fixes #17226.

(cherry picked from commit 2c91906e25ab0a4caa30f0bfaa1bdff6994cb9d9)
2020-12-08 18:08:30 +01:00
Zbigniew Jędrzejewski-Szmek
1ddbb871fd man: document differences between nss-resolve and nss-dns
https://bugzilla.redhat.com/show_bug.cgi?id=1889012
https://serverfault.com/questions/626612/dns-just-started-resolving-my-server-prod-addresses-to-127-0-53-53
https://serverfault.com/questions/649352/what-are-the-security-implications-of-the-allow-dns-suffix-appending-to-unquali
(cherry picked from commit bace688394ab32d182f0624133f5db8367259402)
2020-12-08 18:08:30 +01:00
Zbigniew Jędrzejewski-Szmek
b8ded5cfd6 man/org.freedesktop.resolve1: briefly document a bunch of methods and properties
Fixes #13799.

(cherry picked from commit 2ce493672cb9a42ff0960ed127a850a8abfd12d1)
2020-12-08 18:08:30 +01:00
Zbigniew Jędrzejewski-Szmek
54c0981634 man/systemd-resolved: reword the description of query a bit
The phrase "routing domains" is used to mean both route-only domains and search
domains. Route-only domains are always called like that, and not just "route domains".

Some paragraphs are reordered to describe synthetisized records first, then
LLMNR, then various ways quries are routed.

Fixes #8928, hopefully.

(cherry picked from commit 9e1804b24c2fc75cd049b967d0f6411b6b42fecb)
2020-12-08 18:08:30 +01:00
Zbigniew Jędrzejewski-Szmek
cb3a8e48f0 sd-bus: add custom return code when $XDG_RUNTIME_DIR is not set
We would return ENOENT, which is extremely confusing. Strace is not helpful because
no *file* is actually missing. So let's add some logs at debug level and also use
a custom return code. Let all user-facing utilities print a custom error message
in that case.

(cherry picked from commit ab4a88eb920e2f64a79a60c1ea9aecb7907a9635)
2020-12-08 18:08:30 +01:00
Lennart Poettering
8dd1499212 man: document that for Type=dbus services dropping bus name has consequences
Fixes: #17150
(cherry picked from commit bb63863304795a2454a9071ebad75ee673c145d8)
2020-12-08 18:08:30 +01:00
Lennart Poettering
fe38d0be60 man: document that ConditionKernelCommandLine= looks at /proc/1/environ in containers
Fixes: #16941
(cherry picked from commit af4b8f8048e2d2da0b1a1a4927339cf39c62fb8a)
2020-12-08 18:08:30 +01:00
Lennart Poettering
b531324cbc man: update sd_bus_message_read_array() docs to clarify return value 0 vs. 1
(cherry picked from commit 4840807c6ddd15f093eea32acc6bb93ffac67dfe)
2020-12-08 15:54:55 +01:00
Zbigniew Jędrzejewski-Szmek
ee224c4d6a pager: make pager secure when under euid is changed or explicitly requested
The variable is renamed to SYSTEMD_PAGERSECURE (because it's not just about
less now), and we automatically enable secure mode in certain cases, but not
otherwise.

This approach is more nuanced, but should provide a better experience for
users:

- Previusly we would set LESSSECURE=1 and trust the pager to make use of
  it. But this has an effect only on less. We need to not start pagers which
  are insecure when in secure mode. In particular more is like that and is a
  very popular pager.

- We don't enable secure mode always, which means that those other pagers can
  reasonably used.

- We do the right thing by default, but the user has ultimate control by
  setting SYSTEMD_PAGERSECURE.

Fixes #5666.

v2:
- also check $PKEXEC_UID

v3:
- use 'sd_pid_get_owner_uid() != geteuid()' as the condition

(cherry picked from commit 0a42426d797406b4b01a0d9c13bb759c2629d108)
2020-12-08 15:54:23 +01:00
Lennart Poettering
19bce9516a pager: set $LESSSECURE whenver we invoke a pager
Some extra safety when invoked via "sudo". With this we address a
genuine design flaw of sudo, and we shouldn't need to deal with this.
But it's still a good idea to disable this surface given how exotic it
is.

Prompted by #5666

(cherry picked from commit 612ebf6c913dd0e4197c44909cb3157f5c51a2f0)
2020-12-08 15:53:39 +01:00
Dmitry Borodaenko
1df745acad typo in systemd.network(5): IPv6PrefixDelegation=dhcpv6
(cherry picked from commit 5fad3913e2db5eda2339419e049af88953c17ff3)
2020-12-08 15:16:17 +01:00
Michal Suchanek
e037fe7241 basic/virt: Detect PowerVM hypervisor
Currently systemd-detect-virt fails to detect running under PowerVM.

Add code to detect PowerVM based on code in util-linux.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
(cherry picked from commit 3224e38bb6b3287ca253cbafb460a150544d5818)
2020-12-08 14:50:55 +01:00
Zbigniew Jędrzejewski-Szmek
ae98ab9e67 man: reword description of KillOnlyUsers=/KillExcludeUsers=
Fixes #17177.

(cherry picked from commit 41b6ae4da3d3e1360a9f78ca3e1176a3bfe2ec2d)
2020-12-08 14:50:46 +01:00
Zbigniew Jędrzejewski-Szmek
92905ae08d man: reword the descriptions of VXLAN DestinationPort= and PortRange=
The usual: "empty string" is meaningless in this context. We are not assigning
DestinationPort="". Just say "unset".

Fixes #17240.

(cherry picked from commit e6fd398d61a9810d53a2a5a30294500718e43286)
2020-12-08 14:50:45 +01:00
Zbigniew Jędrzejewski-Szmek
2e77eda39a man: reword of fido2 key derivation
"keyed by" is indeed a bit jargony. Say " a HMAC hash of the salt combined with
an internal secret key" instead.

For #17177.

(cherry picked from commit e0c60bf6a0065ba447b50fcb1bb171725e8bd00d)
2020-12-08 14:50:43 +01:00
Lennart Poettering
0e4e26bb85 man: fix table alignment
(cherry picked from commit ddd6dd9f2398c01f69acf163bfdedf161d7cea0d)
2020-12-08 14:50:39 +01:00
Lennart Poettering
8763164660 man: mention that sd_bus_send() buffers locally, and sd_bus_process() is needed to flush it out
Prompted-by: #17128
(cherry picked from commit 533ee38b56e881a49481bdc095793c294acce121)
2020-12-08 14:43:10 +01:00
Lennart Poettering
d07f5bbcd9 resolved: expose a new bus property that informs about the /etc/resolv.conf mode
It can be one of "foreign", "missing", "stub", "static", "uplink",
depending on how /etc/resolv.conf is set up:

foreign → someone/something else manages /etc/resolv.conf,
    systemd-resolved is just the consumer

missing → /etc/resolv.conf is missing altogether

stub/static/uplink → the file is managed by resolved, with the
    well-known modes

Fixes: #17159
(cherry picked from commit 4261ab654c0df009b5a37a30593d58d47fec617f)
2020-12-08 14:42:14 +01:00
Pass Automated Testing Suite
3102633746 path-lookup: Correct order of XDG_CONFIG_HOME and XDG_CONFIG_DIRS
According to the XDG Base Directory Specification [1] XDG_CONFIG_HOME
should take precedence over XDG_CONFIG_DIRS.

Fixes: https://github.com/systemd/systemd/issues/16095

[1]: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

(cherry picked from commit e3820eeaf11f3b4614cbdfbc85675bc16a486e21)
2020-12-08 14:39:25 +01:00
nl6720
18e0c98716 docs: update old documentation links
(cherry picked from commit f856778b9c87d2dc9a6924db0cf26374aa7235c3)
2020-12-08 14:39:18 +01:00