summaryrefslogtreecommitdiffstats
path: root/mkosi.default (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-08-02man: add sd_bus_message_verify_type(3)Zbigniew Jędrzejewski-Szmek3-0/+101
2018-08-02sd-bus: verify destination and sender values when settingZbigniew Jędrzejewski-Szmek1-0/+2
We would verify destination e.g. in sd_bus_message_new_call, but allow setting any value later on with sd_bus_message_set_destination. I assume this check was omitted not on purpose.
2018-08-02man: add sd_bus_message_get_type(3)Zbigniew Jędrzejewski-Szmek4-9/+207
sd_bus_message{get_type,is_signal,is_method_call,is_method_error} get one man page. sd_bus_message_{set,get}_{destination,path,interface,member,sender} are put in the second one.
2018-08-02man: add sd_bus_slot_ref(3)Zbigniew Jędrzejewski-Szmek2-0/+97
2018-08-02man: document sd_bus_message_new_method_returnZbigniew Jędrzejewski-Szmek2-2/+37
2018-08-02meson: print stats in check-api-docsZbigniew Jędrzejewski-Szmek1-0/+23
2018-08-02man: document *_with_description functionsZbigniew Jędrzejewski-Szmek2-1/+39
2018-08-02man: add sd_bus_message_new(3)Zbigniew Jędrzejewski-Szmek3-0/+189
2018-08-02man: move more examples to stand-alone files and use 2-space indentation ↵Zbigniew Jędrzejewski-Szmek6-57/+58
consistenty Moving them out makes it easier to run them through a compiler, use automatic indentation, and opens the possibility to provide a download link in the future. I verified that all examples compile cleanly. (2-space indentation is used because the examples are already significantly indented in the man page, and we need to keep them narrow so that they display well on standard terminals.)
2018-08-02man: clarify what can be NULL in an sd_bus_unrefp callZbigniew Jędrzejewski-Szmek1-5/+7
Confusingly, the argument is called 'bus' in all cases. Let's not give people the idea to call sd_bus_unrefp(NULL).
2018-08-02man: add sd_bus_message_new_call(3)Zbigniew Jędrzejewski-Szmek6-2/+206
2018-08-02man: add sd_bus_message_new_signal(3)Zbigniew Jędrzejewski-Szmek4-0/+134
2018-08-02network: add more log messages in configuring DHCP6 clientYu Watanabe1-16/+14
2018-08-02network: add more log messages in configuring DHCP4 clientYu Watanabe1-19/+22
2018-08-01resolved: change error handling for manager_etc_hosts_read()Zbigniew Jędrzejewski-Szmek1-7/+3
The choice what errors to ignore is left to the caller, and the caller is changed to ignore all errors. On error, previously read data is kept. So if e.g. an oom error happens, we will continue to return slightly stale data instead of pretending we have no entries for the given address. I think that's better, for example when /etc/hosts contains some important overrides that external DNS should not be queried for.
2018-08-01resolved: keep addresses mapped to ::0 in a separate setZbigniew Jędrzejewski-Szmek3-21/+41
We'd store every 0.0.0.0 and ::0 entry as a structure without any addresses allocated. This is a somewhat common use case, let's optimize it a bit. This gives some memory savings and a bit faster response time too: 'time build/test-resolved-etc-hosts hosts' goes from 7.7s to 5.6s, and memory use as reported by valgrind for ~10000 hosts is reduced ==18097== total heap usage: 29,902 allocs, 29,902 frees, 2,136,437 bytes allocated ==18240== total heap usage: 19,955 allocs, 19,955 frees, 1,556,021 bytes allocated Also rename 'suppress' to 'found' (with reverse meaning). I think this makes the intent clearer.
2018-08-01test-resolved-etc-hosts: add tests for /etc/hosts parsingZbigniew Jędrzejewski-Szmek4-16/+115
Calling 'build/test-resolved-etc-hosts filename' parses just that file. This is useful to test against https://hosts.ubuntu101.co.za/hosts.
2018-08-01resolved: put /etc/hosts hashmaps in a structure and pass that aroundZbigniew Jędrzejewski-Szmek2-58/+70
This hides the details of juggling the two hashmaps from the callers a bit. It also makes memory management a bit easier, because those two hashmaps share some strings, so we can only free them together. etc_hosts_parse() is made responsible to free the half-filled data structures on error, which makes the caller a bit simpler. No functional change. A refactoring to prepare for later changes.
2018-07-31test-nss-files: simplify module name handlingZbigniew Jędrzejewski-Szmek1-8/+4
- drop compatibility with autotools (/.libs/ directory) - don't special-case "libnss_dns", just try build/libnss_foo.so.2 and libnss_foo.so.2. This makes it possible to call e.g. build/test-nss files google.com.
2018-07-31meson: drop parens when appending to listZbigniew Jędrzejewski-Szmek5-61/+62
Meson does not care either way, so let's use the simpler syntax. And files() already gives a list, so nesting this in a list wouldn't be necessary even if meson did not flatten everything.
2018-07-31udev: net_id: document predictable names for SR-IOV virtual devicesEvgeni Golov1-0/+3
2018-07-31resolve: support address with ifname in /etc/hostsYu Watanabe1-1/+1
2018-07-31resolve: use in_addr_data type for storing addressYu Watanabe2-146/+71
2018-07-31basic: introduce in_addr_data_hash_opsYu Watanabe2-0/+36
2018-07-30man: move explanations about boolean and time-span value from systemd.unit ↵Yu Watanabe2-17/+24
to systemd.syntax Fixes #9735.
2018-07-30Expanding evdev device match for Razer Blade Stealth (2017)Mike Palmer1-1/+1
2018-07-29sd-resolve: workaround for structured initialization to nested structsYu Watanabe1-12/+13
When a nested struct is initialized by structured initializer, then padding space is not cleared by zero. So, before setting values, this makes explicitly set zero including padding. This fixes the following false positive warning by valgrind: ``` ==492== Syscall param sendmsg(msg.msg_iov[0]) points to uninitialised byte(s) ==492== at 0x56D0CF7: sendmsg (in /usr/lib64/libpthread-2.27.so) ==492== by 0x4FDD3C5: sd_resolve_getaddrinfo (sd-resolve.c:975) ==492== by 0x110B9E: manager_connect (timesyncd-manager.c:879) ==492== by 0x10B729: main (timesyncd.c:165) ==492== Address 0x1fff0008f1 is on thread 1's stack ==492== in frame #1, created by sd_resolve_getaddrinfo (sd-resolve.c:928) ==492== ```
2018-07-29sd-resolve: use structured initialization at more placesYu Watanabe1-25/+28
2018-07-28man: use literal tagYu Watanabe1-4/+4
2018-07-28resolve: add option to toggle reading /etc/hostsYu Watanabe6-0/+14
Workaround for #9718.
2018-07-28resolve: make manager_etc_hosts_read() staticYu Watanabe2-2/+1
2018-07-27resolved: TCP Fast Open and TLS Session Tickets for OpenSSLIwan Timmer5-18/+142
To decreae latency this add support for TFO and TLS Session Tickets. As OpenSSL wouldn't let you easily set a different function all written data is temporarily cached and therefore needs to be flushed after each SSL function which can write data.
2018-07-27resolved: basic OpenSSL support for DNS-over-TLSIwan Timmer10-13/+294
This provides basic OpenSSL support without optimizations like TCP Fast Open and TLS Session Tickets. Notice only a single SSL library can be enabled at a time and therefore journald functions provided by GnuTLS will be disabled when using OpenSSL. Fixes #9531
2018-07-27resolved: set io events after receiving EAGAIN for TLSIwan Timmer3-6/+25
During handshake and TLS session closing, messages needs to be exchanged. Therefore this patch overrides the requested IO events for the TCP stream when the TLS is waiting for sending or receiving of messages during theses periods. This fixes issues with correctly closing the TLS stream and prevents the handshake from hanging in rare cases (not seen yet).
2018-07-27resolved: refactor GnuTLS specific code in separate source fileIwan Timmer9-167/+283
This is a first step towards supporting alternative TLS implementations for DNS-over-TLS. Co-authored-by: Filipe Brandenburger <filbranden@google.com>
2018-07-27test: Increase qemu timeout from 90s to 180sMichael Biebl1-2/+2
The usage of an initrd made TEST-09-ISSUE-2691 more likely to fail with a timeout, so increase the timeout by 90s and adjust TimeoutStopSec= accordingly.
2018-07-26update TODOLennart Poettering1-0/+6
2018-07-26hwdb: Added correct ACCEL_MOUNT_MATRIX for the Asus TP412UAErik Kooistra1-0/+3
2018-07-26void call of page_size guarantees that sysconf is not called from signal handlerDaniel1-0/+4
2018-07-26changed exit(4) to asynchronous-safe _exit(4) in signal handler sig_alrmDaniel1-1/+1
2018-07-26hwbd: whitespace fix-upLennart Poettering1-1/+1
A correction for 505707490a201c27121dbeb27101fe0c9b5f9664.
2018-07-26sleep-config: library code should not log beyond LOG_DEBUGLennart Poettering1-3/+2
2018-07-26sleep: offer hibernation only if the kernel image still existsLennart Poettering2-6/+80
This makes hibernation unavailable if the kernel image we are currently running was removed. This is supposed to be superficial protection against hibernating a system we can never return from because the kernel has been updated and the kernel we currently run is not available anymore. We look at a couple of places for the kernel, which should cover all distributions I know off. Should I have missed a path I am sure people will quickly notice and we can add more places to check. (or maybe convince those distros to stick their kernels at a standard place)
2018-07-26sleep-config: eat up errors only after debug logging about themLennart Poettering1-2/+6
2018-07-26sleep-config: partitions can't be deleted, only files canLennart Poettering1-6/+9
This fixes something I think was basically a typo introduced in db69869f264af2d1afcdd3e573e0e9fdd5bef065.
2018-07-26resolve: use structured initialization and use new() instead of new0()Yu Watanabe1-4/+6
2018-07-26resolve: fix memleakYu Watanabe1-1/+3
2018-07-26shared/sleep-config: exclude zram devices from hibernation candidatesAndrew Jorgensen1-3/+13
On a host with sufficiently large zram but with no actual swap, logind will respond to CanHibernate() with yes. With this patch, it will correctly respond no, unless there are other swap devices to consider.
2018-07-26test: add tests for DynamicUser= with static User= whose UID and GID are ↵Yu Watanabe4-0/+47
different
2018-07-26core: fix gid when DynamicUser=yes with static User=Yu Watanabe1-0/+10
When DynamicUser=yes and static User= are set, and the user has different uid and gid, then as the storage socket for the dynamic user does not contains gid, we need to obtain gid. Follow-up for 9ec655cbbd7505ef465e0444da0622e46099ce42. Fixes #9702.