1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-24 21:34:08 +03:00
Commit Graph

49938 Commits

Author SHA1 Message Date
Frantisek Sumsal
e4c9246fb3 Translated using Weblate (Serbian)
Currently translated at 66.6% (126 of 189 strings)

Co-authored-by: Frantisek Sumsal <frantisek@sumsal.cz>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/sr/
Translation: systemd/main
2021-02-24 09:11:18 +09:00
Yu Watanabe
ebc98027fc
Merge pull request #18589 from yuwata/network-nexthop-drop-unnecessary-nexthops
network: drop unnecessary nexthops
2021-02-24 09:07:57 +09:00
Topi Miettinen
64297c8605 Update NEWS
Fix typos, improve /dev exec/noexec description
2021-02-23 19:34:13 +01:00
Lennart Poettering
eceb61112c bootspec: assume that the root dir is at the top of its file system
Fixes: #17746
2021-02-23 18:43:34 +01:00
Zbigniew Jędrzejewski-Szmek
0892c3b2eb
Merge pull request #18763 from poettering/cov-fixes
A bunch of coverity fixes
2021-02-23 18:41:53 +01:00
Zbigniew Jędrzejewski-Szmek
4095211f24
Merge pull request #18765 from keszybz/more-docs
NEWS and one more man page addition
2021-02-23 17:44:13 +01:00
Zbigniew Jędrzejewski-Szmek
d515864346 man: add a description of how manager env block is set 2021-02-23 17:18:05 +01:00
Luca Boccassi
93f597013a Add ExtensionImages directive to form overlays
Add support for overlaying images for services on top of their
root fs, using a read-only overlay.
2021-02-23 15:34:46 +00:00
Luca Boccassi
82fb2da213 core/namespace: reafactor applying mounts in a separate function
The setup_namespace code to apply mounts is a big if block that
keeps growing, so refactor it in a separate function.
2021-02-23 15:34:46 +00:00
Luca Boccassi
280b3781bd sysext: split parsing SYSTEMD_SYSEXT_HIERARCHIES in a common helper 2021-02-23 15:34:46 +00:00
Zbigniew Jędrzejewski-Szmek
89b6acfd8e NEWS: add ConditionCGC=v12 and the hostname stuff 2021-02-23 16:30:13 +01:00
Lennart Poettering
685097b9ca efi stub: accept it if our loaded image has no FilePath field set
The firmware spec doesn't really say whether FilePath of the LoadedImage
protocol may be NULL or not. So far we assumed it to be non-NULL, but
apparently the FreeBSD UEFI chainloader sets it to NULL. Handle this
gracefully.

(Noticed and tracked down by Alexander Schreiber)

Fixes: #18733
2021-02-23 15:48:48 +01:00
Lennart Poettering
f2550b9856 core: fix memory leak in error path
Coverity 1431998
2021-02-23 15:45:26 +01:00
Lennart Poettering
013668db32 resolved: don't dereference ->scope unless set
Coverity 1446388
2021-02-23 15:45:23 +01:00
Lennart Poettering
3178014709 shared: fix memory leak in error path
Coverity 1446676
2021-02-23 15:45:19 +01:00
Lennart Poettering
d9a650bbe8 icmp6-util: add missing variable initialization
Coverity 1446712
2021-02-23 15:45:15 +01:00
Lennart Poettering
d9119c00fa dissect-image: initially fds[] array fully
THe previous code wasn't wrong, but it's certainly nicer to avoid a
partially uninitialized array here, hence Coverity has a point
complaining about this.

Coverity 1446731
2021-02-23 15:45:12 +01:00
Lennart Poettering
999c248629 resolved: fix minor memory leak
Coverity 1446992
2021-02-23 15:45:03 +01:00
Yu Watanabe
e94a009c10 core: fix stack-use-after-scope
Fixes a bug introduced by f70e6fb471.

Fixes #18753.
2021-02-23 15:39:31 +01:00
AsciiWolf
aa50464a7f po: remove basic fedora.zanata.org configuration
Zanata is not used anymore and its current configuration is not useful
anyway since the master branch was renamed to main.
2021-02-23 15:38:07 +01:00
Zbigniew Jędrzejewski-Szmek
e74bd83a82
Merge pull request #18751 from anitazha/oomdconditions
units: add Conditions for systemd-oomd.service
2021-02-23 15:30:33 +01:00
Yu Watanabe
9947c7bad1 test-network: add tests for dropping unnecessary nexthops 2021-02-23 22:48:12 +09:00
Yu Watanabe
25b82b6e0e network: nexthop: drop unnecessary nexthops
Similar to addresses or routes, this makes networkd drops unnecessary
nexthops on configuring links or when a link is dropped.
2021-02-23 22:47:11 +09:00
Yu Watanabe
0e9d129c16 network: nexthop: read protocol in received netlink message
Preparation of later commits.
2021-02-23 22:47:11 +09:00
Yu Watanabe
e64e052e17 sd-netlink: introduce sd_rtnl_message_nexthop_get_protocol() 2021-02-23 22:47:11 +09:00
Lennart Poettering
3acf00a5a4 man: various improvements to systemd.generator(7)
In particular, make clear the .d/*.conf unit file drop-ins are OK to
generate from generators.

Inspired by: https://lists.freedesktop.org/archives/systemd-devel/2021-February/046148.html
2021-02-23 22:44:05 +09:00
Yu Watanabe
774c0e433c Revert "meson: remove one more instance of install_dir:bindir"
This reverts commit 5ffa2eaa54.

It seems that if install_dir is not specified, meson decides install path
based on file type, and non-executable binary files are installed under
/usr/share.

kernel-install is a script. So, we need to set install_dir argument
explicitly.

Fixes #18754.
2021-02-23 13:52:55 +01:00
Yu Watanabe
73b49d433c dhcp6: do not set T1 and T2 by dhcp6_option_append_pd() in client
Fixes #18090.
2021-02-23 19:36:37 +09:00
Yu Watanabe
e7613578b4 dhcp6: do not set T1 and T2 by dhcp6_option_append_ia() in client 2021-02-23 19:36:37 +09:00
Yu Watanabe
1e84213a43 dhcp6: make dhcp6_option_parse_{address,pdprefix}() return -EINVAL when received address or prefix is refused
And then the caller ignores the error.
Otherwise, `ret_liftime_valid` is not set even if they succeeds.
2021-02-23 19:36:23 +09:00
Anita Zhang
e7b3f1a6c3 README: add config_psi as requirement for systemd-oomd 2021-02-23 02:10:09 -08:00
Anita Zhang
13d0b19d4e units: add Conditions for systemd-oomd.service
Prompted by https://bugzilla.redhat.com/show_bug.cgi?id=1927148 and
https://bugzilla.redhat.com/show_bug.cgi?id=1931181.

Adds condition check for cgroups v2 and PSI, which systemd-oomd cannot
start without.
2021-02-23 02:09:21 -08:00
Yu Watanabe
cf6c33bd6b dhcp6: do not use input value before checking 2021-02-23 18:49:11 +09:00
Zbigniew Jędrzejewski-Szmek
2b767e9222 resolved: add another explanatory message to stub resolv.conf files
Apparently people do "cat /etc/resolv.conf" and not realize that they
are looking at a file in /run.
2021-02-23 17:20:23 +09:00
Zbigniew Jędrzejewski-Szmek
10f4d47037 meson: bump version numbers 2021-02-23 01:56:21 +01:00
Zbigniew Jędrzejewski-Szmek
60d3137024 NEWS: add contributors 2021-02-23 01:55:11 +01:00
Lennart Poettering
048e043375 resolved: actually use the specified rrsig argument
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
2021-02-23 01:52:33 +01:00
Zbigniew Jędrzejewski-Szmek
67e700bad7
Merge pull request #18741 from poettering/stub-no-cname
resolved: don't follow CNAMEs in the stub anymore
2021-02-23 01:52:01 +01:00
Zbigniew Jędrzejewski-Szmek
8ebfd50aaf shared/condition: add ConditionControlGroupController=v1|v2
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).
2021-02-23 01:11:18 +01:00
Luca Boccassi
6c3f7ca036 MountImages: parse unit specifiers after permissive hyphen
The permissive bit it not something a specifier might synthetise
2021-02-23 01:11:05 +01:00
Zbigniew Jędrzejewski-Szmek
267294e08d
Merge pull request #18745 from keszybz/stop-using-fstrings
Stop using fstrings
2021-02-23 01:10:38 +01:00
Zbigniew Jędrzejewski-Szmek
d6191ed529 test-dns-packet: fix leak of DnsResourceRecord object 2021-02-23 01:06:08 +01:00
Zbigniew Jędrzejewski-Szmek
897a25617d NEWS: a few more entries for v248-rc1
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.
2021-02-23 00:47:55 +01:00
Zbigniew Jędrzejewski-Szmek
a5e5e102ba
Merge pull request #18704 from keszybz/fallback-hostame-override
Allow overriding of fallback hostname through envvar and os-release field
2021-02-23 00:41:27 +01:00
Lennart Poettering
5bd7ebb332 resolved: stick CNAME targets into main answer section in stub replies 2021-02-22 23:55:13 +01:00
Lennart Poettering
d1f8fbea9f resolved: add dns_resource_record_get_cname_target() helper
This determines the redirection target from a CNAME or DNAME RR given it
matches some given RR key.
2021-02-22 23:55:13 +01:00
Lennart Poettering
990e7e87ad resolved: remove duplicate comment
Practically the same comment is a few lines up covering both parts
anyway, let's remove one.
2021-02-22 23:55:13 +01:00
Lennart Poettering
c6ebf89b8f resolved: update comment in DNS stub code a bit
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.
2021-02-22 23:55:13 +01:00
Lennart Poettering
2f4d8e577c resolved: don't follow CNAMEs in the stub anymore
CNAME following was broken by 775ae35403
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
2021-02-22 23:55:13 +01:00
Zbigniew Jędrzejewski-Szmek
dda7d0a4d6
Merge pull request #18575 from bugaevc/aa
Set the AA bit in answers for synthetic records & mDNS
2021-02-22 23:08:13 +01:00