summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* meson: bump version numbersv248-rc1Zbigniew Jędrzejewski-Szmek2021-02-231-2/+2
|
* NEWS: add contributorsZbigniew Jędrzejewski-Szmek2021-02-231-0/+32
|
* resolved: actually use the specified rrsig argumentLennart Poettering2021-02-231-1/+1
| | | | | | | | | The argument only exists to be used to override/fill in the RRSIG record of the answer item. Hence actually use it instead of ignore it. (Not sure how this got lost earlier.) Fixes: #18714
* Merge pull request #18741 from poettering/stub-no-cnameZbigniew Jędrzejewski-Szmek2021-02-235-66/+189
|\ | | | | resolved: don't follow CNAMEs in the stub anymore
| * test-dns-packet: fix leak of DnsResourceRecord objectZbigniew Jędrzejewski-Szmek2021-02-231-11/+11
| |
| * resolved: stick CNAME targets into main answer section in stub repliesLennart Poettering2021-02-222-31/+91
| |
| * resolved: add dns_resource_record_get_cname_target() helperLennart Poettering2021-02-223-0/+79
| | | | | | | | | | This determines the redirection target from a CNAME or DNAME RR given it matches some given RR key.
| * resolved: remove duplicate commentLennart Poettering2021-02-221-3/+0
| | | | | | | | | | Practically the same comment is a few lines up covering both parts anyway, let's remove one.
| * resolved: update comment in DNS stub code a bitLennart Poettering2021-02-221-11/+11
| | | | | | | | | | | | | | There's no "answer_auxiliary" object anymore, it's all one "answer" object, and we have per-item flags that tell us which section things are from, i.e. from the main answer section, or the additional or authoritative ones.
| * resolved: don't follow CNAMEs in the stub anymoreLennart Poettering2021-02-221-19/+6
| | | | | | | | | | | | | | | | | | | | | | CNAME following was broken by 775ae35403f8f3c01b7ac13387fe8aac1759993f where we'd not properly collect RRs along the CNAME path. Good thing though is that we don't have to anymore: since we nowadays propagate all sections of the upstream replies into the cache and back to stub clients all the information should already be available anyway, and there's no need for us to collect it. Fixes: #18690
* | shared/condition: add ConditionControlGroupController=v1|v2Zbigniew Jędrzejewski-Szmek2021-02-233-10/+47
| | | | | | | | | | | | | | | | | | | | Before, we only allowed conditionalizing on controllers, not the hierarchy. This commit extends this to allow a simple check for v1 (i.e. classic or hybrid), and v2 (full unified). An alternative approach would be to add a separate Condition for this, but I'm not too keen on that, considering that v1 is already being deprecrecated (c.f. 82f3063218).
* | MountImages: parse unit specifiers after permissive hyphenLuca Boccassi2021-02-231-10/+10
| | | | | | | | The permissive bit it not something a specifier might synthetise
* | Merge pull request #18745 from keszybz/stop-using-fstringsZbigniew Jędrzejewski-Szmek2021-02-232-7/+8
|\ \ | | | | | | Stop using fstrings
| * | Revert "generate-dns_type-gperf: modernize python syntax"Zbigniew Jędrzejewski-Szmek2021-02-221-5/+6
| | | | | | | | | | | | | | | | | | This reverts commit b0a336a66929ed2a146888178157bf1af5c8598c. Fixes #18708.
| * | Stop using f-strings in generate-sym-test.pyZbigniew Jędrzejewski-Szmek2021-02-221-2/+2
| | | | | | | | | | | | | | | | | | | | | This partially reverts 7857b6e8383f5debab9544ef3abb15a27830fafa. Debian 9 has python3.5 which does not have f-strings yet. Partially fixes #18708.
* | | NEWS: a few more entries for v248-rc1Zbigniew Jędrzejewski-Szmek2021-02-231-7/+22
| | | | | | | | | | | | | | | | | | I left the stuff related to [NextHop] out. There are still patches outstanding, and we can add a comprehensive entry once things reached the final form.
* | | Merge pull request #18704 from keszybz/fallback-hostame-overrideZbigniew Jędrzejewski-Szmek2021-02-2340-216/+440
|\ \ \ | |_|/ |/| | Allow overriding of fallback hostname through envvar and os-release field
| * | hostnamed: rename FallbackHostname to DefaultHostnameZbigniew Jędrzejewski-Szmek2021-02-225-24/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | This follows the addition of DEFAULT_HOSTNAME= in os-release. The distinction between the value from os-release or the env var and the compile-time setting is not made in the api: HostnameSource is "default" is all cases. I think that this level of detail is not needed, because the users of this mostly care whether the hostname was set by user configuration or not.
| * | Use the DEFAULT_HOSTNAME field from os-releaseZbigniew Jędrzejewski-Szmek2021-02-221-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This provides a fairly comprehensible fix for https://bugzilla.redhat.com/show_bug.cgi?id=1893417. This adds yet-another level of configuration: - /etc/hostname - transient hostname - $SYSTEMD_DEFAULT_HOSTNAME - DEFAULT_HOSTNAME is os-release - -Dfallback-hostname= - "linux" It's a lot of layers, but each has it's own justification.
| * | Allow the fallback hostname to be overriden using an environment variableZbigniew Jędrzejewski-Szmek2021-02-227-32/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See https://bugzilla.redhat.com/show_bug.cgi?id=1893417 for the back story: the fallback hostname matters a lot in certain environments. Right now the only way to configure the fallback hostname is by recompiling systemd, which is obviously problematic in case when the fallback hostname shall differ between different editions of the same distro that share a single compiled rpm. By making this overridable through an envvar, we're providing an escape hatch without making this a top-level api. Later on a way to set this through os-release is added, but I think the approach with the variable is still useful. It it very convenient for testing, or to override settings only in a particular service, etc.
| * | basic/os-util: make the sentinel implicitZbigniew Jędrzejewski-Szmek2021-02-228-14/+13
| | |
| * | Move os-util.[ch] to basic/Zbigniew Jędrzejewski-Szmek2021-02-2210-23/+27
| | | | | | | | | | | | parse_os_release() will be used basic/hostname-util.c later on.
| * | sysext: move extension_release_validate() out of os-util.cZbigniew Jędrzejewski-Szmek2021-02-226-76/+94
| | |
| * | os-release: add the DEFAULT_HOSTNAME= settingZbigniew Jędrzejewski-Szmek2021-02-221-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The motivation is that variants of the same distro that share the same compiled rpm want to customize various aspects of the system, in particular the hostname. In some sense the default hostname is part of the identity of the system, so setting it through os-release makes sense. In particular, instead of setting a default value in /etc/hostname, the appropriate default can be baked into the image, leaving /etc/hostname for local overrides only. Why make this a separate field instead of e.g. using NAME from os-release? NAME is already used for other purposes, and it seems likely that people want to set those independently.
| * | man: use ~/.config instead of XDG_CONFIG_HOMEZbigniew Jędrzejewski-Szmek2021-02-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e3820eeaf11f3b4614cbdfbc85675bc16a486e21 did that replacement XDG_CONFIG_HOME, in one of two places. Let's use ~/.config everywhere. Quoting https://github.com/systemd/systemd/pull/18704#discussion_r579465254: > I'd really drop XDG_CONFIG_HOME from the docs. It's confusing enough as it > is. Where we don't need the indirections we should not confuse people with > it, in particular as people might then think it's actually a good idea to use > that env var and redirect things. I'd just show the literal path everywhere, > even if we internally use the env var.
| * | manager: add ManagerEnvironment configuration settingZbigniew Jędrzejewski-Szmek2021-02-222-5/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is useful for various variables that modify process behaviour. This makes it easy to set it for pid1 without touching the kernel command line. Even for the *user manager* this also can be convenient for the unprivileged user, who cannot modify user@.service definition. Variables that could be set like this include $SD_EVENT_PROFILE_DELAYS, $SYSTEMD_FALLBACK_HOSTNAME, $SYSTEMD_MEMPOOL, $SYSTMED_RDRAND, etc.
| * | basic/env-util: add putenv_dup()Zbigniew Jędrzejewski-Szmek2021-02-223-0/+32
| | |
| * | manager: read ~/.config/systemd/user.conf in user modeZbigniew Jędrzejewski-Szmek2021-02-222-22/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the paths we read user manager config from in two ways: - split-usr-root paths are dropped. The user manager is a poster boy for non-early-boot, so reading dropins only from /usr is appropriate. - we look at ~/.config/systemd/user.conf. Users should be allowed to override their own config. As user managers become more and more used, it becomes more important for users to customize their own daemon. By reading from ~/.config, this is possible without privileges.
| * | shared/conf-parser: allow more than one location of the main config fileZbigniew Jędrzejewski-Szmek2021-02-217-20/+26
| | | | | | | | | | | | No functional change as long as only one path is passed.
* | | Merge pull request #18575 from bugaevc/aaZbigniew Jędrzejewski-Szmek2021-02-224-2/+17
|\ \ \ | |_|/ |/| | Set the AA bit in answers for synthetic records & mDNS
| * | resolved: set the AA bit for mDNS responsesSergey Bugaev2021-02-221-1/+5
| | | | | | | | | | | | | | | | | | This is required by RFC 6762. Fixes https://github.com/systemd/systemd/issues/17972
| * | resolved: set the AA bit for synthetic answersSergey Bugaev2021-02-223-1/+12
| | | | | | | | | | | | | | | | | | | | | The stub DNS server is authoritative for the RRs we synthesize, such as localhost, _gateway, and entries from /etc/hosts, and also for trust anchors. Partially fixes https://github.com/systemd/systemd/issues/17972
* | | docs: align tables vertically to topZbigniew Jędrzejewski-Szmek2021-02-221-0/+5
| | | | | | | | | | | | Fixes #18706.
* | | Translated using Weblate (Slovak)Frantisek Sumsal2021-02-221-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | Currently translated at 24.8% (47 of 189 strings) Co-authored-by: Frantisek Sumsal <frantisek@sumsal.cz> Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/sk/ Translation: systemd/main
* | | Merge pull request #18718 from yuwata/network-nexthop-blackholeYu Watanabe2021-02-2310-97/+248
|\ \ \ | | | | | | | | network: introduce Blackhole= setting in [NextHop] section
| * | | test-network: add tests for Blackhole= setting in [NextHop] sectionYu Watanabe2021-02-232-0/+49
| | | |
| * | | network: route: shorten code a bitYu Watanabe2021-02-231-39/+17
| | | |
| * | | network: nexthop: add Blackhole= setting in [NextHop] sectionYu Watanabe2021-02-238-58/+182
| | | | | | | | | | | | | | | | | | | | As similar to unreachable type routes, blackhole nexthops do not have NHA_OID attribute, so they are managed by Manager.
* | | | Merge pull request #18734 from poettering/cryptsetup-description-escapeYu Watanabe2021-02-236-9/+27
|\ \ \ \ | | | | | | | | | | cryptsetup: unescape ID_PART_ENTRY_NAME udev field
| * | | | cryptsetup: unescape ID_PART_ENTRY_NAME udev property before using itLennart Poettering2021-02-221-1/+19
| | | | | | | | | | | | | | | | | | | | Fixes: #18729
| * | | | tree-wide: use sd_device_new_from_stat_rdev() whereever appropriateLennart Poettering2021-02-226-8/+8
| |/ / /
* | | | MountImages: fix exec_context_dump printfLuca Boccassi2021-02-231-5/+4
| | | | | | | | | | | | | | | | | | | | Use strempty as options might not be set, and add the separator for each option tuple
* | | | Merge pull request #18731 from yuwata/backlight-trivial-cleanupsYu Watanabe2021-02-231-38/+29
|\ \ \ \ | | | | | | | | | | backlight: trivial cleanups
| * | | | backlight: reindent commentsYu Watanabe2021-02-221-32/+22
| | | | |
| * | | | backlight: reduce indentation a bitYu Watanabe2021-02-221-4/+2
| | | | |
| * | | | backlight: same_device() may return negative errnoYu Watanabe2021-02-221-1/+1
| | | | |
| * | | | backlight: exit earlier when unknown verb is specifiedYu Watanabe2021-02-221-1/+4
| | | | |
* | | | | Merge pull request #18735 from poettering/some-doc-fixesZbigniew Jędrzejewski-Szmek2021-02-223-21/+29
|\ \ \ \ \ | |_|/ / / |/| | | | three documentation fixes
| * | | | man: try to improve documentation of conditions/assertsLennart Poettering2021-02-221-16/+20
| | | | | | | | | | | | | | | | | | | | Fixes: #18725
| * | | | docs: , → .Lennart Poettering2021-02-221-1/+1
| | | | |