summaryrefslogtreecommitdiffstats
path: root/mkosi.default (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-06-14tree-wide: use proper unicode © instead of (C) where we canLennart Poettering153-207/+207
Let's use a proper unicode copyright symbol where we can, it's prettier. This important patch is very important.
2018-06-14tree-wide: drop 'This file is part of systemd' blurbLennart Poettering1441-2884/+2
This part of the copyright blurb stems from the GPL use recommendations: https://www.gnu.org/licenses/gpl-howto.en.html The concept appears to originate in times where version control was per file, instead of per tree, and was a way to glue the files together. Ultimately, we nowadays don't live in that world anymore, and this information is entirely useless anyway, as people are very welcome to copy these files into any projects they like, and they shouldn't have to change bits that are part of our copyright header for that. hence, let's just get rid of this old cruft, and shorten our codebase a bit.
2018-06-14locale-util: on overlayfs FTW_MOUNT causes nftw(3) to not list *any* filesFranck Bui1-1/+1
On overlayfs, FTW_MOUNT causes nftw to not list *any* files because the condition used by glibc to verify that it's on the same mountpoint doesn't work on overlayfs, see https://bugzilla.suse.com/show_bug.cgi?id=1096807 for the details. However using FTW_MOUNT doesn't seem to be really needed when walking through the keymap directorie tree. So until the glibc or the kernel is fixed (which might take some time), let's make localectl works with overlayfs. There's a small side effect here, by which regular (non-directory) files with bind mounts will be parsed while they were skipped by the previous logic.
2018-06-14timedatectl: add 'show' command to display machine-readable outputYu Watanabe3-11/+44
Closes #9249.
2018-06-14resolve: rename PrivateDNS to DNSOverTLSIwan Timmer31-137/+137
PrivateDNS is not considered a good name for this option, so rename it to DNSOverTLS
2018-06-13machine: ignore containers which disable private user namespace in ↵Yu Watanabe1-0/+8
MapToMachine{User,Group} Fixes #9286.
2018-06-13main: simplify arg_system initialization a bitLennart Poettering1-2/+3
For both branches of the if check it's the first line, hence let's just do it before.
2018-06-13pid1: preserve current value of log target across re-{load,execution}Franck Bui5-18/+77
To make debugging easier, this patches allows one to change the log target and do reload/reexec without modifying configuration permanently, which makes debugging easier. Indeed if one changed the log target at runtime (via the bus or via signals), the change was lost on the next reload/reexecution. In order to restore back the default value (set via system.conf, environment variables or any other means ), the empty string in the "LogTarget" property is now supported as well as sending SIGTRMIN+26 signal.
2018-06-13pid1: preserve current value of log level across re-{load,execution}Franck Bui5-20/+88
To make debugging easier, this patches allows one to change the log level and do reload/reexec without modifying configuration permanently, which makes debugging easier. Indeed if one changed the log max level at runtime (via the bus or via signals), the change was lost on the next daemon reload/reexecution. In order to restore the original value back (set via system.conf, environment variables or any other means), the empty string in the "LogLevel" property is now supported as well as sending SIGRTMIN+23 signal.
2018-06-13nspawn: free global variables before exitingLennart Poettering1-2/+6
This doesn't really matter much, but is prettier for valgrind
2018-06-13sd-radv: use strv_isempty() where we canLennart Poettering1-2/+1
2018-06-13sd-radv: normalize function parameters a bitLennart Poettering2-6/+6
Let's add "const" where we don't change structures passed. Also, we generally use "unsigned char" for IP prefix length values, do so here too. Previously different parts of the sd-radv.h API used different types for this.
2018-06-13sd-radv: close fd when destroying objectLennart Poettering1-0/+4
2018-06-13nspawn: drop unused parameter from one callLennart Poettering1-6/+3
2018-06-13networkd: Don't try to close fd in sd_radv_stop if fd is closed.Susant Sahani1-0/+3
sd_radv_stop is called from two places. if sd_radv_stop is alrady success then just don't try to close it . ``` systemd-networkd[604]: RADV: Stopping IPv6 Router Advertisement daemon systemd-networkd[604]: RADV: Unable to send last Router Advertisement with router lifetime set to zero: Bad file descriptor <==================HERE systemd-networkd[604]: RADV: Updated prefix 2a0a:*:*:fc::/64 preferred 1h valid 2h systemd-networkd[604]: RADV: Started IPv6 Router Advertisement daemon ``` Closes one of the issue #8960
2018-06-13hwdb-update: make sure it works when run from mesonLennart Poettering1-1/+3
let's make the argument optional again, so that the command line "ninja -C build hwdb-update" runs works.
2018-06-13hwdb: update from upstreamLennart Poettering13-3454/+11288
2018-06-13terminal-util: make file names in --cat-config output clickable linksLennart Poettering1-1/+6
2018-06-13binfmt,sysctl,sysuers,tmpfiles: add auto-paging for --cat-config commandsLennart Poettering8-4/+61
The output of these commands is really long, and already enriched with color. Let's add auto-paging to make this easier to digest.
2018-06-13NEWS: add an example that actually appliesLennart Poettering1-2/+2
2018-06-13NEWS: the tool is called resolvconf, without the inner eLennart Poettering1-2/+2
2018-06-13NEWS: break lines with emacs once moreLennart Poettering1-14/+15
Let's follow the line break rules our .dir-locals.el file defines
2018-06-13NEWS: some .mailmap work to clean up contributors listLennart Poettering2-23/+32
2018-06-13test-alloc-util: add casts to bools from p ointersZbigniew Jędrzejewski-Szmek1-1/+5
C++03: "An rvalue of arithmetic, enumeration, pointer, or pointer to member type can be converted to an rvalue of type bool. A zero value, null pointer value, or null member pointer value is converted to false; any other value is converted to true" C should behave the same because pointers are scalars in C, but let's verify that.
2018-06-13tree-wide: drop !! casts to booleansZbigniew Jędrzejewski-Szmek18-28/+40
They are not needed, because anything that is non-zero is converted to true. C11: > 6.3.1.2: When any scalar value is converted to _Bool, the result is 0 if the > value compares equal to 0; otherwise, the result is 1. https://stackoverflow.com/questions/31551888/casting-int-to-bool-in-c-c
2018-06-13test-alloc-util: add a "test" for bool castsZbigniew Jędrzejewski-Szmek1-0/+17
Just in case ;) There is no good place, test-alloc-util.c is as good as any, and it's quite short so far, so let's add this there.
2018-06-13cocinelle: use GNU parallel to run spatchZbigniew Jędrzejewski-Szmek1-2/+8
spatch is single-threaded, i.e. slow. On my machine it allocates 5 GB of memory and starts swapping, which makes it even slower. Using parallel makes the whole thing pleasantly fast.
2018-06-13basic/parse-util: remove unnecessary parenthesesZbigniew Jędrzejewski-Szmek1-1/+1
2018-06-13NEWS: add more newsYu Watanabe1-1/+10
2018-06-13NEWS: announce DNS-over-TLS tooLennart Poettering1-0/+6
2018-06-13man: drop unnecessary '=' after ntaYu Watanabe1-1/+1
2018-06-13resolvectl: fix indentationYu Watanabe1-1/+1
2018-06-13timesync: add more log messages in manager_network_read_link_servers()Yu Watanabe1-3/+11
2018-06-13timesync: check validity of NTP server name or addressYu Watanabe3-3/+22
2018-06-13conf-parser: simplify conf_parse_path()Yu Watanabe1-6/+2
Follow-up for 97651797e83d0548aef9f808657d3518d89e5aee.
2018-06-13resolve: do not complete stream transaction when it is under retryingYu Watanabe1-0/+2
2018-06-13resolve: drop unused argument of dns_server_packet_lost()Yu Watanabe3-5/+5
2018-06-13resolve: correctly count TCP transaction failuresYu Watanabe1-1/+1
Fixes #9281.
2018-06-13resolve: fix log messageYu Watanabe1-1/+1
2018-06-13bash-completion/resolvectl: support privatedns commandYu Watanabe2-1/+22
2018-06-13resolve: reject PrivateDNS=yesYu Watanabe1-1/+1
2018-06-13resolve: make manager_get_private_dns_mode() always return valid settingYu Watanabe1-1/+1
2018-06-13resolve: add missing bus property and methodYu Watanabe1-0/+7
Follow-up for #8849.
2018-06-12resolve: do not derive query timeout from RTTMatthias-Christian Ott3-28/+7
DNS queries need timeout values to detect whether a DNS server is unresponsive or, if the query is sent over UDP, whether a DNS message was lost and has to be resent. The total time that it takes to answer a query to arrive is t + RTT, where t is the maximum time that the DNS server that is being queried needs to answer the query. An authoritative server stores a copy of the zone that it serves in main memory or secondary storage, so t is very small and therefore the time that it takes to answer a query is almost entirely determined by the RTT. Modern authoritative server software keeps its zones in main memory and, for example, Knot DNS and NSD are able to answer in less than 100 µs [1]. So iterative resolvers continuously measure the RTT to optimize their query timeouts and to resend queries more quickly if they are lost. systemd-resolved is a stub resolver: it forwards DNS queries to an upstream resolver and waits for an answer. So the time that it takes for systemd-resolved to answer a query is determined by the RTT and the time that it takes the upstream resolver to answer the query. It seems common for iterative resolver software to set a total timeout for the query. Such total timeout subsumes the timeout of all queries that the iterative has to make to answer a query. For example, BIND seems to use a default timeout of 10 s. At the moment systemd-resolved derives its query timeout entirely from the RTT and does not consider the query timeout of the upstream resolver. Therefore it often mistakenly degrades the feature set of its upstream resolvers if it takes them longer than usual to answer a query. It has been reported to be a considerable problem in practice, in particular if DNSSEC=yes. So the query timeout systemd-resolved should be derived from the timeout of the upstream resolved and the RTT to the upstream resolver. At the moment systemd-resolved measures the RTT as the time that it takes the upstream resolver to answer a query. This clearly leads to incorrect measurements. In order to correctly measure the RTT systemd-resolved would have to measure RTT separately and continuously, for example with a query with an empty question section or a query for the SOA RR of the root zone so that the upstream resolver would be able to answer to query without querying another server. However, this requires significant changes to systemd-resolved. So it seems best to postpone them until other issues have been addressed and to set the resend timeout to a fixed value for now. As mentioned, BIND seems to use a timeout of 10 s, so perhaps 12 s is a reasonable value that also accounts for common RTT values. If we assume that the we are going to retry, it could be less. So it should be enough to set the resend timeout to DNS_TIMEOUT_MAX_USEC as DNS_SERVER_FEATURE_RETRY_ATTEMPTS * DNS_TIMEOUT_MAX_USEC = 15 s. However, this will not solve the incorrect feature set degradation and should be seen as a temporary change until systemd-resolved does probe the feature set of an upstream resolver independently from the actual queries. [1] https://www.knot-dns.cz/benchmark/
2018-06-12core: when applying io/blkio per-device rules, don't remove them if they failLennart Poettering1-36/+20
These devices might show up later, hence leave the rules as they are. Applying the limits should not alter configuration.
2018-06-12tree-wide: unify how we define bit mak enumsLennart Poettering22-102/+102
Let's always write "1 << 0", "1 << 1" and so on, except where we need more than 31 flag bits, where we write "UINT64(1) << 0", and so on to force 64bit values.
2018-06-12man: document DNS-over-TLS optionsIwan Timmer3-6/+54
2018-06-12doc: more spelling fixesMichael Biebl16-27/+27
2018-06-12update NEWS with new PrivateMounts= blurbLennart Poettering1-0/+9
2018-06-12units: switch udev service to use PrivateMounts=yesLennart Poettering1-1/+1
Given that PrivateMounts=yes is the "successor" to MountFlags=slave in unit files, let's make use of it for udevd.