summaryrefslogtreecommitdiffstats
path: root/po/sk.po (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-02-17in-addr-util: make in_addr_prefix_nth() refuse prefixlen larger than maximum ↵Yu Watanabe1-2/+3
size
2021-02-17in-addr-util: make in_addr_prefix_nth() returns 0 on successYu Watanabe2-16/+14
2021-02-17network: refuse IPv4 multipath route for IPv6 routeYu Watanabe1-0/+11
2021-02-17network: Route::gw_family may be AF_UNSPECYu Watanabe1-2/+2
2021-02-17logs-show: move show_journal_by_unit _BOOT_ID matchVito Caputo1-4/+8
In scrutinizing the journal overhead of `systemctl status $service` it became apparent that the matching engine was performing the unit matches on every journal in my system, even ones containing nothing relevant to the current boot. This seemed strange and likely suboptimal to me, since there's likely far more unit data to rifle through than boot IDs in any given journal. The _BOOT_ID match seemed like it should be serving as an early exit match on irrelevant journals, but that wasn't what seemed to be happening. As a quick experiment to see if I could get the _BOOT_ID match to be something along the lines of a higher priority when matching, and try early exit on these unrelated journals, I moved add_match_this_boot() to after the unit match adds, inserting a conjunction between them. The end result seems to be a very substantial performance gain in my simple uncached tests, and I still get the expected journal output from the `systemctl status $service` command: ---------------------------------------------------------------------- Unmodified systemctl times: root@localhost:/# echo 2 > /proc/sys/vm/drop_caches root@localhost:/# time systemctl --no-pager status dbus ● dbus.service - D-Bus System Message Bus Loaded: loaded (/lib/systemd/system/dbus.service; static; vendor preset: enabled) Active: active (running) since Sun 2020-10-25 17:03:05 PDT; 1 day 6h ago Docs: man:dbus-daemon(1) Main PID: 572 (dbus-daemon) Memory: 2.8M CPU: 110ms CGroup: /system.slice/dbus.service └─572 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation Oct 25 17:03:05 localhost systemd[1]: Started D-Bus System Message Bus. Oct 25 17:06:26 localhost dbus[572]: [system] Activating via systemd: service name='org.freedesktop.machine1' unit='dbus-org.freedesktop.machine1.service' Oct 25 17:06:26 localhost dbus[572]: [system] Successfully activated service 'org.freedesktop.machine1' real 0m0.695s user 0m0.005s sys 0m0.043s root@localhost:/# echo 2 > /proc/sys/vm/drop_caches root@localhost:/# time systemctl --no-pager status dbus ● dbus.service - D-Bus System Message Bus Loaded: loaded (/lib/systemd/system/dbus.service; static; vendor preset: enabled) Active: active (running) since Sun 2020-10-25 17:03:05 PDT; 1 day 6h ago Docs: man:dbus-daemon(1) Main PID: 572 (dbus-daemon) Memory: 2.8M CPU: 110ms CGroup: /system.slice/dbus.service └─572 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation Oct 25 17:03:05 localhost systemd[1]: Started D-Bus System Message Bus. Oct 25 17:06:26 localhost dbus[572]: [system] Activating via systemd: service name='org.freedesktop.machine1' unit='dbus-org.freedesktop.machine1.service' Oct 25 17:06:26 localhost dbus[572]: [system] Successfully activated service 'org.freedesktop.machine1' real 0m0.696s user 0m0.003s sys 0m0.046s root@localhost:/# echo 2 > /proc/sys/vm/drop_caches root@localhost:/# time systemctl --no-pager status dbus ● dbus.service - D-Bus System Message Bus Loaded: loaded (/lib/systemd/system/dbus.service; static; vendor preset: enabled) Active: active (running) since Sun 2020-10-25 17:03:05 PDT; 1 day 6h ago Docs: man:dbus-daemon(1) Main PID: 572 (dbus-daemon) Memory: 2.8M CPU: 110ms CGroup: /system.slice/dbus.service └─572 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation Oct 25 17:03:05 localhost systemd[1]: Started D-Bus System Message Bus. Oct 25 17:06:26 localhost dbus[572]: [system] Activating via systemd: service name='org.freedesktop.machine1' unit='dbus-org.freedesktop.machine1.service' Oct 25 17:06:26 localhost dbus[572]: [system] Successfully activated service 'org.freedesktop.machine1' real 0m0.694s user 0m0.006s sys 0m0.041s ---------------------------------------------------------------------- Modified systemctl including this commit: root@localhost:/home/vc/gh/systemd/build# echo 2 > /proc/sys/vm/drop_caches root@localhost:/home/vc/gh/systemd/build# time ./systemctl --no-pager status dbus ● dbus.service - D-Bus System Message Bus Loaded: loaded (/lib/systemd/system/dbus.service; static) Active: active (running) since Sun 2020-10-25 17:03:05 PDT; 1 day 6h ago TriggeredBy: ● dbus.socket Docs: man:dbus-daemon(1) Main PID: 572 (dbus-daemon) Memory: 2.8M CPU: 110ms CGroup: /system.slice/dbus.service └─572 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation Oct 25 17:03:05 localhost systemd[1]: Started D-Bus System Message Bus. Oct 25 17:06:26 localhost dbus[572]: [system] Activating via systemd: service name='org.freedesktop.machine1' unit='dbus-org.freedesktop.machine1.service' Oct 25 17:06:26 localhost dbus[572]: [system] Successfully activated service 'org.freedesktop.machine1' real 0m0.168s user 0m0.003s sys 0m0.016s root@localhost:/home/vc/gh/systemd/build# echo 2 > /proc/sys/vm/drop_caches root@localhost:/home/vc/gh/systemd/build# time ./systemctl --no-pager status dbus ● dbus.service - D-Bus System Message Bus Loaded: loaded (/lib/systemd/system/dbus.service; static) Active: active (running) since Sun 2020-10-25 17:03:05 PDT; 1 day 6h ago TriggeredBy: ● dbus.socket Docs: man:dbus-daemon(1) Main PID: 572 (dbus-daemon) Memory: 2.8M CPU: 110ms CGroup: /system.slice/dbus.service └─572 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation Oct 25 17:03:05 localhost systemd[1]: Started D-Bus System Message Bus. Oct 25 17:06:26 localhost dbus[572]: [system] Activating via systemd: service name='org.freedesktop.machine1' unit='dbus-org.freedesktop.machine1.service' Oct 25 17:06:26 localhost dbus[572]: [system] Successfully activated service 'org.freedesktop.machine1' real 0m0.167s user 0m0.005s sys 0m0.013s root@localhost:/home/vc/gh/systemd/build# echo 2 > /proc/sys/vm/drop_caches root@localhost:/home/vc/gh/systemd/build# time ./systemctl --no-pager status dbus ● dbus.service - D-Bus System Message Bus Loaded: loaded (/lib/systemd/system/dbus.service; static) Active: active (running) since Sun 2020-10-25 17:03:05 PDT; 1 day 6h ago TriggeredBy: ● dbus.socket Docs: man:dbus-daemon(1) Main PID: 572 (dbus-daemon) Memory: 2.8M CPU: 110ms CGroup: /system.slice/dbus.service └─572 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation Oct 25 17:03:05 localhost systemd[1]: Started D-Bus System Message Bus. Oct 25 17:06:26 localhost dbus[572]: [system] Activating via systemd: service name='org.freedesktop.machine1' unit='dbus-org.freedesktop.machine1.service' Oct 25 17:06:26 localhost dbus[572]: [system] Successfully activated service 'org.freedesktop.machine1' real 0m0.170s user 0m0.005s sys 0m0.014s
2021-02-17resolved: include NSID support to DNS stubLennart Poettering4-12/+113
This adds minimal support for RFC5001 NSID to the stub resolver. This useful to identify systemd-resolved when talking to the stub resolver, and distuingishing the packets resolved answers itself (where NSID is now set) from those which it proxies 1:1 upstream (where NSID will not be set, or set to whatever the upstream server has it set to). The NSID chosen consist of two parts: 1. The first part is derived from /etc/machine-id and identifies the resolved instance in a stable way. 2. The second part is the fixed string ".resolved.systemd.io". This thus maybe used for a veriety of checks: a. Am I talking to a resolved stub? b. Am I talking to the same stub as last time? c. Am I talking to the local resolved? Given that the first part leaks the identity of the system in away two protections are in place: I) The NSID is only included on the main stub, not the extra stub. The main stub has with a TTL of 1 and other protections a lot of safety in place that the datagrams never leave the local system, thus the identifying info is only accessible to the local system — but /etc/machine-id is accessible to local software anyway. II) The NSID is hashed from /etc/machine-id in a non-invertable way, so that the machine ID itself isn't leaked, but only an identifier derived from it. Example dig run: ``` $ dig +nsid localhost @127.0.0.53 ; <<>> DiG 9.11.23-RedHat-9.11.23-1.fc33 <<>> +nsid localhost @127.0.0.53 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46917 ;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 65494 ; NSID: 35 33 64 34 61 34 66 63 32 31 32 65 34 31 61 30 39 66 30 39 65 33 32 34 63 64 64 38 30 36 32 33 2e 72 65 73 6f 6c 76 65 64 2e 73 79 73 74 65 6d 64 2e 69 6f ("53d4a4fc212e41a09f09e324cdd80623.resolved.systemd.io") ;; QUESTION SECTION: ;localhost. IN A ;; ANSWER SECTION: localhost. 0 IN A 127.0.0.1 ;; Query time: 0 msec ;; SERVER: 127.0.0.53#53(127.0.0.53) ;; WHEN: Do Nov 12 20:57:16 CET 2020 ;; MSG SIZE rcvd: 110 ```
2021-02-17hwdb: Add accel orientation quirk for the Trekstor Surftab Wintron 10.1 ↵Hans de Goede1-0/+4
ST10432-3 tablet Add a quirk to fix the accelerometer orientation on the Trekstor Surftab Wintron 10.1 ST10432-3 tablet.
2021-02-17condition: add CPUFeatureGiedrius Statkevičius6-0/+224
Taking a stab at implementing #14479. Add {Condition,Assert}CPUFeature to `systemd-analyze` & friends. Implement it by executing the CPUID instruction. Add tables for common x86/i386 features. Tested via unit tests + checked that commands such as: ```bash systemd-analyze condition 'AssertCPUFeature = rdrand' ``` Succeed as expected and that commands such as ```bash systemd-analyze condition 'AssertCPUFeature = foobar' ``` Fail as expected. Finally, I have amended the `systemd.unit` manual page with the new condition and the list of all currently supported flags.
2021-02-16resolve: Fix build for cleanup function (SSL_free + BIO_free)Benjamin Robin1-2/+2
Follow-up of #18616
2021-02-16shared: use -EINVAL for _NETDEV_BRIDGE_STATE_INVALIDBenjamin Robin1-1/+1
Follow-up of #11484
2021-02-16portable: use -EINVAL for _PORTABLE_CHANGE_TYPE_INVALIDBenjamin Robin1-1/+1
Follow-up of #11484
2021-02-16libsystemd-network: use -EINVAL for _DUID_TYPE_INVALIDBenjamin Robin1-1/+1
Follow-up of #11484
2021-02-16basic: use -EINVAL for _DUID_TYPE_INVALIDBenjamin Robin1-1/+1
Follow-up of #11484 and of #18481
2021-02-16shared: Fix _DNS_CACHE_MODE_INVALID value: use -EINVALBenjamin Robin1-1/+1
Follow-up of #11484
2021-02-16shared: use -EINVAL for _UNIT_FILE_CHANGE_TYPE_INVALIDBenjamin Robin2-3/+3
Follow-up of #11484
2021-02-16shared: use -EINVAL for _EXEC_COMMAND_FLAGS_INVALIDBenjamin Robin2-5/+7
Follow-up of #11484
2021-02-16basic: use -EINVAL for _MANAGED_OOM_PREFERENCE_INVALIDBenjamin Robin2-2/+2
Follow-up of #11484
2021-02-16journal-file: fix archiving offline journalsVito Caputo1-2/+7
The existing set_offline() short-circuit erroneously included when f->archive was true and header->state was STATE_OFFLINE. This commit makes the short-circuit f->archive aware, so it will only catch scenarios where there's not an offlining in progress and the header state matches the target state of either archived or offline. Fixes https://github.com/systemd/systemd/issues/17770
2021-02-16netlink: introduce sd_netlink_message_has_flag()Yu Watanabe2-5/+32
2021-02-16systemd: don't try to run as user manager when called without any argumentsZbigniew Jędrzejewski-Szmek1-3/+7
It's better for users if programs don't do "significant" things too easily, and should be especially conservative when called without any arguments whatsoever. So far systemd would would try to launch itself as a user manager and fail on some cgroup permission stuff. systemd --user is run execlusively from user@.service and there we call it with --user. Calls to the binary without any arguments as non-pid1 are almost always a mistake. https://github.com/systemd/systemd/issues/18419#issuecomment-779422571
2021-02-16man: make clear that sd-journal notifications always come with extra latencyLennart Poettering1-12/+12
Replaces: #17699
2021-02-16logind: Restore chvt as non-root user without polkitJoshua Watt6-54/+44
4acf0cfd2f ("logind: check PolicyKit before allowing VT switch") broke the ability to write user sessions that run graphical sessions (e.g. weston/X11). This was partially amended in 19bb87fbfa ("login: allow non-console sessions to change vt") by changing the default PolicyKit policy so that non-root users with a session are again allowed to switch the VT. This makes the policy when PolKit is not enabled (as on many embedded systems) closer the default PolKit policy and allows launching graphical sessions as a non-root user. Closes #17473 Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
2021-02-16stat-util: fix dir_is_empty_at without pathLuca Boccassi1-5/+10
Use the right FD, and do a fd_reopen instead of a dup, since the latter will still share the internal pointer which then gets moved by FOREACH_DIRENT, affecting the caller's FD.
2021-02-16resolved: unify code for trying a different DNS serverLennart Poettering1-14/+32
Let's unify some code, and add a common implementation of a function that checks whether we have tried all DNS servers yet, and retries the transaction if we don't. We already use this same code twice. Let's use it at some other places too now — basically all cases where we switch to a new server — with the one case of packet loss, where we too switch servers, but don#t care how many times we already tried to switch.
2021-02-16resolved: improve log message when retrying a transaction with a different ↵Lennart Poettering1-1/+6
server
2021-02-16resolved: never go below DNSSEC feature level in DNSSEC strict modeLennart Poettering2-24/+50
This adjusts our feature level handling: when DNSSEC strict mode is on, let's never lower the feature level below the lowest DNSSEC mode. Also, when asking whether DNSSEC is supproted, always say yes in strict mode. This means that error reporting about transactions that fail because of missing DNSSEC RRs will not report "incompatible-server" but instead "missing-signature" or suchlike. The main difference here is that DNSSEC failures become local to a transaction, instead of propagating into the feature level we reuse for future transactions. This is beneficial with routers that implement "mostly a DNS proxy", i.e. that propagate most DNS requests 1:1 to their upstream servers, but synthesize local answers for a select few domains. For example, AVM Fritz!Boxes operate that way: they proxy most traffic 1:1 upstream in an DNSSEC-compatible fashion, but synthesize the "fritz.box" locally, so that it can be used to configure the router. This local domain cannot be DNSSEC verified, it comes without signatures. Previously this would mean once that domain was resolved feature level would be downgraded, and we'd thus fail all future DNSSEC attempts. With this change, the immediate lookup for "fritz.box" will fail validation, but for all other unrelated future ones that comes without prejudice. (While we are at it, also make a couple of other downgrade paths a bit tighter.) Fixes: #10570 #14435 #6490
2021-02-16resolved: make feature level checks a bit more discriptiveLennart Poettering2-3/+6
The levels have an order, but the order is sometimes a bit arbitrary. Hence add simple macros to check for specific features and use those, so that the ordering leaks a bit less into all files.
2021-02-16resolved: when we can't parse a packet, downgrade feature levelLennart Poettering3-5/+48
So far we didn't really handle the case where we can't parse a reply packet. Since this apparently happens in real-life though, let's add some minimal logic, to downgrade/restart if we see this.
2021-02-16netlink: drop sd_rtnl_message_{route,nexthop}_set_family()Yu Watanabe2-36/+5
The family is already set when the message is created.
2021-02-16network: drop unnecessary family settingYu Watanabe1-4/+0
It is already set in sd_rtnl_message_new_nexthop().
2021-02-16man: fix indentationYu Watanabe1-10/+9
2021-02-16resolved: paranoia — ensure DNS reply came over stream we sent it toLennart Poettering1-1/+2
2021-02-16Adding an explanation for CONFIG_NET requirement (#18600)heretoenhance1-1/+1
* README: replace CONFIG_NET with CONFIG_UNIX in requirements list
2021-02-16netlink: fix assertionsYu Watanabe1-4/+15
2021-02-16netlink: add nexthop related typesYu Watanabe1-0/+8
2021-02-16sd-netlink: add RTA_NH_ID attribute supportYu Watanabe1-1/+2
2021-02-16Rename unit_times_free to unit_times_free_arrayZbigniew Jędrzejewski-Szmek1-6/+6
It frees the whole array and the type is UnitTimes not UnitTime.
2021-02-16Rename strbuf_cleanup to strbuf_freeZbigniew Jędrzejewski-Szmek5-6/+6
It frees the whole object.
2021-02-16fuzz-systemctl-parse-argv: call static destuctorsZbigniew Jędrzejewski-Szmek2-0/+9
With all the preparatory work in previous PRs, we can now call static destructors repeatedly without issue. We need to do it here so that global variables allocated during parsing are properly freed.
2021-02-16systemctl: use free_and_replace on global variableZbigniew Jędrzejewski-Szmek2-4/+5
In normal usage we cannot set it multiple times, but from a fuzzer we may. Doing it this way is nicer anyway.
2021-02-16tree-wide: reset the cleaned-up variable in cleanup functionsZbigniew Jędrzejewski-Szmek31-56/+66
If the cleanup function returns the appropriate type, use that to reset the variable. For other functions (usually the foreign ones which return void), add an explicit value to reset to. This causes a bit of code churn, but I think it might be worth it. In a following patch static destructors will be called from a fuzzer, and this change allows them to be called multiple times. But I think such a change might help with detecting unitialized code reuse too. We hit various bugs like this, and things are more obvious when a pointer has been set to NULL. I was worried whether this change increases text size, but it doesn't seem to: -Dbuildtype=debug: before "tree-wide: return NULL from freeing functions": -rwxrwxr-x 1 zbyszek zbyszek 4117672 Feb 16 14:36 build/libsystemd.so.0.30.0* -rwxrwxr-x 1 zbyszek zbyszek 4494520 Feb 16 15:06 build/systemd* after "tree-wide: return NULL from freeing functions": -rwxrwxr-x 1 zbyszek zbyszek 4117672 Feb 16 14:36 build/libsystemd.so.0.30.0* -rwxrwxr-x 1 zbyszek zbyszek 4494576 Feb 16 15:10 build/systemd* now: -rwxrwxr-x 1 zbyszek zbyszek 4117672 Feb 16 14:36 build/libsystemd.so.0.30.0* -rwxrwxr-x 1 zbyszek zbyszek 4494640 Feb 16 15:15 build/systemd* -Dbuildtype=release: before "tree-wide: return NULL from freeing functions": -rwxrwxr-x 1 zbyszek zbyszek 5252256 Feb 14 14:47 build-rawhide/libsystemd.so.0.30.0* -rwxrwxr-x 1 zbyszek zbyszek 1834184 Feb 16 15:09 build-rawhide/systemd* after "tree-wide: return NULL from freeing functions": -rwxrwxr-x 1 zbyszek zbyszek 5252256 Feb 14 14:47 build-rawhide/libsystemd.so.0.30.0* -rwxrwxr-x 1 zbyszek zbyszek 1834184 Feb 16 15:10 build-rawhide/systemd* now: -rwxrwxr-x 1 zbyszek zbyszek 5252256 Feb 14 14:47 build-rawhide/libsystemd.so.0.30.0* -rwxrwxr-x 1 zbyszek zbyszek 1834184 Feb 16 15:16 build-rawhide/systemd* I would expect that the compiler would be able to elide the setting of a variable if the variable is never used again. And this seems to be the case: in optimized builds there is no change in size whatsoever. And the change in size in unoptimized build is negligible. Something strange is happening with size of libsystemd: it's bigger in optimized builds. Something to figure out, but unrelated to this patch.
2021-02-16tree-wide: return NULL from freeing functionsZbigniew Jędrzejewski-Szmek52-165/+154
I started working on this because I wanted to change how DEFINE_TRIVIAL_CLEANUP_FUNC is defined. Even independently of that change, it's nice to make make things more consistent and predictable.
2021-02-16resolved: reduce indentation level a bitLennart Poettering1-14/+14
2021-02-16resolved: let's preferably route reverse lookups for local subnets to ↵Lennart Poettering3-1/+80
matching interfaces Let's preferably route traffic for reverse lookups to LLMNR/mDNS/DNS on the matching interface if the IP address is in the local subnet. Also, if looking up an IP address of our own host, let's avoid doing LLMNR/mDNS at all. This is useful if "~." is a routing domain to DNS, as it means, local reverse lookups still go to LLMNR/mDNS, too. Fixes: #16243 #10081
2021-02-16Refactor strv_env_replace() into strv_env_replace_consume()Zbigniew Jędrzejewski-Szmek5-38/+24
All callers of strv_env_replace() would free the argument on error. So let's follow the same pattern as with strv_consume (and similar naming) and unconditionally "use up" the argument.
2021-02-16shared/exec-util: fix minor memleakZbigniew Jędrzejewski-Szmek1-8/+2
p was not freed on error.
2021-02-16test-env-util: add tests for the two new functionsZbigniew Jędrzejewski-Szmek1-0/+33
2021-02-16basic/env-util: drop now-unused strv_env_set()Zbigniew Jędrzejewski-Szmek3-48/+0
2021-02-16basic/env-util: add strv_env_assign() helperZbigniew Jędrzejewski-Szmek4-69/+39
2021-02-16shared/user-record: inline iterator variable declarationsZbigniew Jędrzejewski-Szmek1-9/+6