summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* po: Translated using Weblate (Spanish)Adolfo Jayme Barrientos2021-08-261-112/+68
| | | | | | | | Currently translated at 89.4% (169 of 189 strings) Co-authored-by: Adolfo Jayme Barrientos <fitoschido@gmail.com> Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/es/ Translation: systemd/main
* Revert "core: Add information on which condition failed to job skipped ↵Lennart Poettering2021-08-271-34/+11
| | | | | | format string" This reverts commit c97bef458b6e59079c9613ec755c1c6513c1c655.
* cryptsetup: drop an unused variableFrantisek Sumsal2021-08-261-3/+2
| | | | | | | | | | | | | | This fixes compilation with new-enough libcryptsetup (2.4.0+) & clang: ``` $ CC=clang CXX=clang++ meson build --werror -Dlibcryptsetup-plugins=true ... $ ninja -C build ... ../src/cryptsetup/cryptsetup-tokens/luks2-fido2.c:23:53: error: unused variable 'v' [-Werror,-Wunused-variable] _cleanup_(json_variant_unrefp) JsonVariant *v = NULL; ... ```
* hwdb: Add sensor rule for Hometech Wi101Wind/owZ2021-08-261-0/+10
| | | | | | | This commit was done to add sensor rule for Hometech Wi101. Note that this rule might be too general and need fixes. I couldn't test this on any other device since this one is the only one I have. Co-authored-by: Simeonlps <Simeonlps@users.noreply.github.com> Signed-off-by: Wind/owZ <windowz414@gnuweeb.org>
* hwdb: Add force-release for HP Omen 15 calculator key. (#20538)I-dont-need-name2021-08-261-0/+4
| | | | | * Add force-release for HP Omen 15 calculator key. The key doesn't create release event so I have come up with this fix to make it work properly.
* core: Add information on which condition failed to job skipped format stringDaan De Meyer2021-08-261-11/+34
| | | | | | | | When a job is skipped, it's useful to know exactly which condition failed so let's add this information to the error message. Because we now return an allocated string from job_done_message_format(), make sure we strdup() the other formats as well so the caller can safely free the string returned by job_done_message_format().
* network: default LinkLocalAddresssing= to no for link stacked with a ↵Tom Yan2021-08-263-6/+36
| | | | | | passthru mode MACVLAN/MACVTAP For similar reason to the case of a bridge slave: we don't want any IP configuration for it.
* Merge pull request #20541 from yuwata/udev-coalesce-follow-upYu Watanabe2021-08-262-125/+127
|\ | | | | udev: follow-ups for coalesce feature support
| * udev/net: initialize coalesce tristate variablesYu Watanabe2021-08-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | Otherwise, 99-default.link may introduce something like the following warnings: ---- Aug 26 03:23:59 systemd-udevd[519]: wlan0: Could not set coalesce settings, ignoring: Operation not supported Aug 26 03:24:00 systemd-udevd[547]: wlp59s0: Could not set coalesce settings, ignoring: Operation not supported ---- Follow-up for 6c35ea5ef0231d519ff24d43a57a72cebab6a121.
| * ethtool: move functionYu Watanabe2021-08-261-125/+125
| | | | | | | | I'd like to locate all conf parsers at end of file.
* | Merge pull request #20515 from yuwata/pid1-mount-apivfs-noYu Watanabe2021-08-264-67/+263
|\ \ | | | | | | pid1: make find_executable() work with MountAPIVFS=no
| * | test-execute: add a testcase for MountAPIVFS=noYu Watanabe2021-08-263-2/+215
| | |
| * | test-execute: logs can_share flagYu Watanabe2021-08-241-8/+6
| | |
| * | path-util: make find_executable() work without /proc mountedYu Watanabe2021-08-241-1/+5
| | | | | | | | | | | | | | | | | | Follow-up for 888f65ace6296ed61285d31db846babf1c11885e. Hopefully fixes #20514.
| * | path-util: split out common part in find_executable_full()Yu Watanabe2021-08-241-56/+37
| | |
* | | Merge pull request #20531 from DaanDeMeyer/fix-17433Yu Watanabe2021-08-2617-44/+170
|\ \ \ | |_|/ |/| | core: Check unit start rate limiting earlier
| * | core: Check unit start rate limiting earlierDaan De Meyer2021-08-2516-43/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #17433. Currently, if any of the validations we do before we check start rate limiting fail, we can still enter a busy loop as no rate limiting gets applied. A common occurence of this scenario is path units triggering a service that fails a condition check. To fix the issue, we simply move up start rate limiting checks to be the first thing we do when starting a unit. To achieve this, we add a new method to the unit vtable and implement it for the relevant unit types so that we can do the start rate limit checks earlier on.
| * | core: Remove circular includeDaan De Meyer2021-08-242-1/+1
| | | | | | | | | | | | | | | | | | service.h includes socket.h and socket.h includes service.h. Move service.h include from socket.h to socket.c to remove the circular dependency.
* | | NEWS: net.ipv4.tcp_ecn = 1 was reverted at v240Sho Iizuka2021-08-251-0/+3
| | | | | | | | | Turning on ECN was reverted by 1e190df.
* | | Merge pull request #20530 from keszybz/typos-and-mesonLuca Boccassi2021-08-244-22/+28
|\ \ \ | |/ / |/| | Typos and meson
| * | meson: capitalize the last instance of "efi"Zbigniew Jędrzejewski-Szmek2021-08-241-1/+1
| | | | | | | | | | | | All the others in this section use "EFI"…
| * | man: adjust the description of extension-release.*Zbigniew Jędrzejewski-Szmek2021-08-241-18/+24
| | |
| * | docs: adjust sentece, fix minor typoZbigniew Jędrzejewski-Szmek2021-08-241-2/+2
| | | | | | | | | | | | | | | | | | | | | The verity partition types are per-architecture already, and they contain the hash data independently of whether we are on a given architecture. (Or in other words, we would make *use* this partition on some architecture, but the contents always *exists*.)
| * | man: fix minor grammar issueZbigniew Jędrzejewski-Szmek2021-08-241-1/+1
|/ / | | | | | | The usual: "searched" vs. "searched for".
* | Merge pull request #20524 from weblate/weblate-systemd-masterYu Watanabe2021-08-242-29/+31
|\ \ | |/ |/| Translations update from Weblate
| * po: Translated using Weblate (Finnish)Jan Kuparinen2021-08-231-6/+9
| | | | | | | | | | | | | | | | Currently translated at 1.5% (3 of 189 strings) Co-authored-by: Jan Kuparinen <copper_fin@hotmail.com> Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/fi/ Translation: systemd/main
| * po: Translated using Weblate (German)Ettore Atalan2021-08-231-23/+22
|/ | | | | | | | Currently translated at 70.3% (133 of 189 strings) Co-authored-by: Ettore Atalan <atalanttore@googlemail.com> Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/de/ Translation: systemd/main
* Merge pull request #20513 from yuwata/network-allow-deny-list-take-prefix-lengthYu Watanabe2021-08-2413-222/+209
|\ | | | | network: dhcp4,ndisc: make addresses in Allow/DenyList= optionally take prefix length
| * test-network: add more testcases for *Allow/DenyList=Yu Watanabe2021-08-234-5/+37
| |
| * network: dhcp4,ndisc: make addresses in Allow/DenyList= optionally take ↵Yu Watanabe2021-08-239-217/+172
| | | | | | | | | | | | prefix length Closes #20505.
* | json: rework JSON_BUILD_XYZ() macros to use compound literals instead of ↵Lennart Poettering2021-08-232-18/+18
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | compound statements Compound statements is this stuff: ({ … }) Compound literals is this stuff: (type) { … } We use compound statements a lot in macro definitions: they have one drawback though: they define a code block of their own, hence if macro invocations are nested within them that use compound literals their lifetime is limited to the code block, which might be unexpected. Thankfully, we can rework things from compound statements to compund literals in the case of json.h: they don't open a new codeblack, and hence do not suffer by the problem explained above. The interesting thing about compound statements is that they also work for simple types, not just for structs/unions/arrays. We can use this here for a typechecked implicit conversion: we want to superficially typecheck arguments to the json_build() varargs function, and we do that by assigning the specified arguments to our compound literals, which does the minimal amount of typechecks and ensures that types are propagated on correctly. We need one special tweak for this: sd_id128_t is not a simple type but a union. Using compound literals for initialzing that would mean specifiying the components of the union, not a complete sd_id128_t. Our hack around that: instead of passing the object directly via the stack we now take a pointer (and thus a simple type) instead. Nice side-effect of all this: compound literals is C99, while compound statements are a GCC extension, hence we move closer to standard C. Fixes: #20501 Replaces: #20512
* Merge pull request #20498 from yuwata/network-fix-gatewayYu Watanabe2021-08-226-37/+54
|\ | | | | network: fix logic for checking gateway address
| * test-network: add testcases that gateway address is IPv6 link localYu Watanabe2021-08-223-0/+10
| |
| * network: fix logic for checking gateway address is readyYu Watanabe2021-08-223-37/+44
| | | | | | | | | | | | | | | | | | This fixes the followings: - The corresponding route or address to the gateway address must be in the same link. - IPv6 link local address is not necessary to be reachable. Fixes an issue reported in https://github.com/systemd/systemd/issues/8686#issuecomment-902562324.
* | po: Added translation using Weblate (Finnish)Jan Kuparinen2021-08-222-0/+850
| | | | | | | | Co-authored-by: Jan Kuparinen <copper_fin@hotmail.com>
* | tree-wide: fix typoYu Watanabe2021-08-223-3/+3
| |
* | Merge pull request #20303 from andir/sysconfig-exampleYu Watanabe2021-08-222-2/+2
|\ \ | |/ |/| {core, login}: respect install_sysconfdir_samples in meson file
| * login: respect install_sysconfdir_samples in meson fileAndreas Rammhold2021-08-211-1/+1
| | | | | | | | | | | | | | The refactoring done in c900d89faa0 caused the configuration files to be installed into the pkgsysconfdir regardless of the state of the install_sysconfdir_samples boolean that indicates whether or not the sample files should be installed.
| * core: respect install_sysconfdir_samples in meson fileAndreas Rammhold2021-08-211-1/+1
| | | | | | | | | | | | | | The refactoring done in e11a25cadbe caused the configuration files to be installed into the pkgsysconfdir regardless of the state of the install_sysconfdir_samples boolean that indicates whether or not the sample files should be installed.
* | docs: Add documentation on how to use VSCode to debug systemd via mkosiDaan De Meyer2021-08-211-0/+80
| |
* | Merge pull request #20500 from poettering/import-tweaksYu Watanabe2021-08-2111-44/+82
|\ \ | | | | | | a few minor tweaks/bugfixlets to importd backends
| * | import-fs: create paren dirs in --direct mode tooLennart Poettering2021-08-201-1/+2
| | | | | | | | | | | | There's no reason not to create these in advance if they are missing.
| * | import: don't attempt full-file clones if we only are supposed to write a ↵Lennart Poettering2021-08-201-0/+3
| | | | | | | | | | | | | | | | | | part of the file Otherwise we'll copy more than we were told to.
| * | import: enable sparse file writing logic only for files we createLennart Poettering2021-08-202-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only if we create a file we know for sure that it is empty and hence our sparse file logic of skipping over NUL bytes can can work. If we hwoever are called to write data to some existing file/block device, we must do regular writes to override everything that might be in place before. Hence, conditionalize sparse file writing on the write offset not being configured (which is how we internally distinguish write to existing file and write to new file)
| * | import: when completed, say how many bytes we wrote/acquiredLennart Poettering2021-08-202-0/+5
| | | | | | | | | | | | This is just too useful.
| * | import: allow file:// in addition to HTTP(S)Lennart Poettering2021-08-208-41/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we only allows http/https urls, let's open this up a bit. Why? Because it makes testing *so* *much* *easier* as we don't need to run a HTTP server all the time. CURL mostly abstracts the differences of http/https away from us, hence we can get away with very little extra work.
| * | import: turn off weird protocols in curlLennart Poettering2021-08-201-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let's lock things down a bit and now allow curl's weirder protocols to be used with our use. i.e. stick to http:// + https:// + file:// and turn everything else off. (Gopher!) This is cde that interfaces with the network after all, and we better shouldn't support protocols needlessly that are much less tested. (Given that HTTP redirects (and other redirects) exist, this should give us a security benefit, since we will then be sure that noone can forward us to a weird protocol, which we never tested, and other people test neither)
* | | Merge pull request #20499 from poettering/align-to-tweakYu Watanabe2021-08-214-296/+359
|\ \ \ | | | | | | | | ALIGN_TO() tweaks
| * | | macro: handle overflow in ALIGN_TO() somewhat reasonablyLennart Poettering2021-08-202-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The helper call rounds up to next multiple of specified boundary. If one passes a very large value as first argument, then there might not be a next multiple. So far we ignored that. Let's handle this now and return SIZE_MAX in this case, as special indicator that we reached the end. Of course, IRL this should not happen. With this new change we at least do something somewhat reasonable, leaving it to the caller to handle it further.
| * | | test: split out macro tests into own test-macro.cLennart Poettering2021-08-203-296/+312
| |/ / | | | | | | | | | | | | No changes in code, just a split out of tests for stuff from macro.h into test-macro.c