summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | static-destruct: add missing closing '(' in commentLennart Poettering2019-11-011-2/+2
| | |
| * | pid1: rework environment block copy logicLennart Poettering2019-11-013-14/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reworks the logic introduced in a5cede8c24fddda9b73f142e09b18b49adde1b9c (#13693). First of all, let's move this out of util.c, since only PID 1 really needs this, and there's no real need to have it in util.c. Then, fix freeing of the variable. It previously relied on STATIC_DESTRUCTOR_REGISTER() which however relies on static_destruct() to be called explicitly. Currently only the main-func.h macros do that, and PID 1 does not. (It might be worth investigating whether to do that, but it's not trivial.) Hence the freeing wasn't applied. Finally, an OOM check was missing, add it in.
* | | nspawn: respect quiet on capabilities warningJustin Trudell2019-11-031-1/+2
| | |
* | | fs-util: let's avoid unnecessary strerror()Lennart Poettering2019-11-031-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | strerror() is not thread safe. Let's avoid it where it is easy hence. (Ideally we'd not use it at all anymore, but that's sometimes a bit nasty, not in this case though, where it is very easy to avoid) Follow-up for: 27c3112dcbd1b5f171c36c32550d9c6331375b0b
* | | Merge pull request #13916 from ddstreet/test-networkYu Watanabe2019-11-031-44/+48
|\ \ \ | | | | | | | | test-network: minor changes to work better on Debian/Ubuntu autopkgtest
| * | | test-network: Remove/replace non-capturing group regexDan Streetman2019-11-011-32/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The systemd-networkd-tests.py has some regex that uses non-capturing groups, but there is no need to use that with assertRegex; the groups aren't referenced so it doesn't matter if it's capturing or non-capturing. However, there are a few places where optional groups should have been used instead, so this changes that. Specifically, groups like this: (?:whatever |) should actually be: (whatever )? Additionally, this is specifically needed for these tests to run on Debian systems, because this assertRegex: 'Link File: (?:/usr)/lib/systemd/network/99-default.link' needs to be: 'Link File: (/usr)?/lib/systemd/network/99-default.link'
| * | | test: check /usr/lib and /lib for systemd binariesDan Streetman2019-11-011-6/+10
| | | | | | | | | | | | | | | | Fedora uses /usr/lib while Debian uses /lib; find the right location
| * | | test/test-network/systemd-networkd-tests.py: suppress stderr for ↵Dan Streetman2019-11-011-6/+6
| | | | | | | | | | | | | | | | functionality checks
* | | | nspawn: mangle slice nameLennart Poettering2019-11-031-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | It's user-facing, parsed from the command line and we typically mangle in these cases, let's do so here too. (In particular as the identical switch for systemd-run already does it.)
* | | | Merge pull request #13905 from poettering/cpuset-fixesLennart Poettering2019-11-012-13/+13
|\ \ \ \ | |/ / / |/| | | fixes to the cpuset cgroup logic
| * | | cgroup: add missing OOM check, and shorten code a bitLennart Poettering2019-11-011-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cpu_set_to_range_string() can fail due to OOM. Handle that. unit_write_settingf() exists, use it instead of formatting a string beforehand. cpu_set_add_all() can fail due to OOM. Let's avoid it if we don't have to use it, just copy over the cpuset directly.
| * | | cpuset: fix indentation and log about OOM we otherwise ignoreLennart Poettering2019-11-011-2/+4
| | | |
| * | | cgroup: add some basic OOM safety where it was missingLennart Poettering2019-11-011-5/+3
| |/ /
* | | mkosi: Find hostname command on Arch LinuxKevin Kuehler2019-11-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | exec-specifier.service: Executing: /usr/bin/sh -c 'test mkosi-7d5e81c7b81c42338d060a6b98edd44a = $(hostname)' /usr/bin/sh: hostname: command not found /usr/bin/sh: line 0: test: mkosi-7d5e81c7b81c42338d060a6b98edd44a: unary operator expected Received SIGCHLD from PID 7389 (sh). Child 7389 (sh) died (code=exited, status=2/INVALIDARGUMENT) gettext provides the hostname binary, but puts it in /usr/lib/gettext/hostname, which is not part of the default $PATH. Using inetutils instead puts the binary in /usr/bin/hostname.
* | | update TODOLennart Poettering2019-11-011-3/+11
|/ /
* | NEWS: mention NetworkEmulatorDuplicateRate= settingYu Watanabe2019-11-011-1/+2
| |
* | Merge pull request #13888 from ssahani/qdiscYu Watanabe2019-11-016-12/+39
|\ \ | | | | | | tc qdisc: netem add support to duplicate packets.
| * | tc: qdisc remove some duplicate codeSusant Sahani2019-10-311-6/+13
| | |
| * | qdisc: netem add support to duplicate packets.Susant Sahani2019-10-315-6/+26
| | | | | | | | | | | | | | | using this option the chosen percent of packets is duplicated before queuing them
* | | network: DHCP server remove duplicate freeSusant Sahani2019-11-011-3/+1
| | |
* | | Fix CID 1406578: Resource leaks (RESOURCE_LEAK)Susant Sahani2019-10-311-2/+2
| |/ |/| | | | | | | ** CID 1406578: Resource leaks (RESOURCE_LEAK) /src/libsystemd-network/sd-dhcp-server.c: 155 in sd_dhcp_raw_option_new()
* | Merge pull request #13895 from jsynacek/masterAnita Zhang2019-10-311-1/+3
|\ \ | | | | | | sd-dhcp: fix resource leak
| * | sd-dhcp: fix resource leakJan Synacek2019-10-311-1/+3
| |/ | | | | | | CID#1406578
* | Merge pull request #13891 from yuwata/basic-drop-missingAnita Zhang2019-10-31109-152/+89
|\ \ | | | | | | tree-wide: drop missing.h
| * | tree-wide: drop missing.hYu Watanabe2019-10-31104-139/+74
| | |
| * | test: move {test,fuzz}-fido-id-desc.c into src/udev/fido_idYu Watanabe2019-10-315-13/+15
| | |
* | | Merge pull request #13892 from keur/mkosi_archAnita Zhang2019-10-311-0/+1
|\ \ \ | | | | | | | | Fix mkosi on Arch Linux
| * | | Fix mkosi on Arch LinuxKevin Kuehler2019-10-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /* test compression */ XZ compression finished (38280 -> 11756 bytes, 30.7%) sh: diff: command not found Assertion 'system(cmd) == 0' failed at src/journal/test-compress.c:198, function test_compress_stream(). Aborting. The journal compression test shells out to diff, so include diffutils as a BuildPackage on Arch. Remaining fixes in https://github.com/systemd/mkosi/pull/377
* | | | Update to Fedora31Jóhann B. Guðmundsson2019-10-311-1/+1
| |_|/ |/| |
* | | Merge pull request #13510 from medhefgo/bootZbigniew Jędrzejewski-Szmek2019-10-313-31/+18
|\ \ \ | |_|/ |/| | sd-boot: Be silent on regular boots
| * | sd-boot: Silence compiler warning when building with -O2Jan Janssen2019-10-301-9/+5
| | |
| * | sd-boot: Don't loudly complain if RNG protocol isn't availableJan Janssen2019-10-301-21/+6
| | | | | | | | | | | | Fixes #13503
| * | sd-boot: Only disable optimization on debug buildsJan Janssen2019-10-301-1/+7
| | |
* | | meson: correct man page depsLennart Poettering2019-10-311-1/+1
| | |
* | | networkd: dhcp server Support Vendor specific 43Susant Sahani2019-10-3111-8/+361
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementes https://tools.ietf.org/html/rfc2132 ``` [DHCPServer] SendRawOption=26:uint32:1400 SendRawOption=23:uint8:10 ``` Frame 448: 350 bytes on wire (2800 bits), 350 bytes captured (2800 bits) on interface 0 Linux cooked capture Internet Protocol Version 4, Src: 192.168.5.1, Dst: 192.168.5.11 User Datagram Protocol, Src Port: 67, Dst Port: 68 Dynamic Host Configuration Protocol (ACK) Message type: Boot Reply (2) Hardware type: Ethernet (0x01) Hardware address length: 6 Hops: 0 Transaction ID: 0x71f8de9d Seconds elapsed: 0 Bootp flags: 0x0000 (Unicast) Client IP address: 0.0.0.0 Your (client) IP address: 192.168.5.11 Next server IP address: 0.0.0.0 Relay agent IP address: 0.0.0.0 Client MAC address: 1e:04:f8:b8:2f:d4 (1e:04:f8:b8:2f:d4) Client hardware address padding: 00000000000000000000 Server host name not given Boot file name not given Magic cookie: DHCP Option: (53) DHCP Message Type (ACK) Length: 1 DHCP: ACK (5) Option: (51) IP Address Lease Time Length: 4 IP Address Lease Time: (3600s) 1 hour Option: (1) Subnet Mask (255.255.255.0) Length: 4 Subnet Mask: 255.255.255.0 Option: (3) Router Length: 4 Router: 192.168.5.1 Option: (6) Domain Name Server Length: 4 Domain Name Server: 192.168.5.1 Option: (42) Network Time Protocol Servers Length: 4 Network Time Protocol Server: 192.168.5.1 Option: (101) TCode Length: 13 TZ TCode: Europe/Berlin Option: (43) Vendor-Specific Information Length: 9 Value: 1701311a0431343030 Option: (54) DHCP Server Identifier (192.168.5.1) Length: 4 DHCP Server Identifier: 192.168.5.1 Option: (255) End Option End: 255 ```
* | | add other worthy newsChristian Rebischke2019-10-311-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | I think we can mention that systemd-resolved is able to validate IP address certificates and prefer TLS 1.3 before TLS 1.2 now. Also the `machinectl reboot` command actually works now. Signed-off-by: Christian Rebischke <chris@nullday.de>
* | | Merge pull request #13884 from poettering/event-fd-close-fixAnita Zhang2019-10-301-1/+3
|\ \ \ | | | | | | | | sd-event: don't invalidate source type on disconnect
| * | | sd-event: don't invalidate source type on disconnectLennart Poettering2019-10-301-1/+3
| |/ / | | | | | | | | | This fixes fd closing if fd ownership is requested.
* | | add systemd logo to README.mdChristian Rebischke2019-10-301-0/+2
| | | | | | | | | | | | | | | | | | The logo in the readme is hosted by github as the systemd group avatar. Signed-off-by: Christian Rebischke <chris@nullday.de>
* | | calendarspec: fix calculation of timespec iterations that fall onto a DST changeZbigniew Jędrzejewski-Szmek2019-10-301-20/+34
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we tested a candidate time that would fall onto the DST change, and we realized that it is now a valid time ('cause the given "hour" is missing), we would jump to to beginning of the next bigger time period, i.e. the next day. mktime_or_timegm() already tells us what the next valid time is, so let's reuse this, and continue the calculations at this point. This should allow us to correctly jump over DST changes, but also leap seconds and similar. It should be OK even multiple days were removed from calendar, similarly to the Gregorian-Julian transition. By reusing the information from normalization, we don't have to make assumptions what the next valid time is. Fixes #13745. $ TZ=Australia/Sydney faketime '2019-10-06 01:50' build/systemd-analyze calendar 0/1:0/1 --iterations 20 | grep Iter Iter. #2: Sun 2019-10-06 01:52:00 AEST Iter. #3: Sun 2019-10-06 01:53:00 AEST Iter. #4: Sun 2019-10-06 01:54:00 AEST Iter. #5: Sun 2019-10-06 01:55:00 AEST Iter. #6: Sun 2019-10-06 01:56:00 AEST Iter. #7: Sun 2019-10-06 01:57:00 AEST Iter. #8: Sun 2019-10-06 01:58:00 AEST Iter. #9: Sun 2019-10-06 01:59:00 AEST Iter. #10: Sun 2019-10-06 03:00:00 AEDT Iter. #11: Sun 2019-10-06 03:01:00 AEDT Iter. #12: Sun 2019-10-06 03:02:00 AEDT Iter. #13: Sun 2019-10-06 03:03:00 AEDT Iter. #14: Sun 2019-10-06 03:04:00 AEDT Iter. #15: Sun 2019-10-06 03:05:00 AEDT Iter. #16: Sun 2019-10-06 03:06:00 AEDT Iter. #17: Sun 2019-10-06 03:07:00 AEDT Iter. #18: Sun 2019-10-06 03:08:00 AEDT Iter. #19: Sun 2019-10-06 03:09:00 AEDT Iter. #20: Sun 2019-10-06 03:10:00 AEDT $ TZ=Australia/Sydney faketime 2019-10-06 build/systemd-analyze calendar 2/4:30 --iterations=3 Original form: 2/4:30 Normalized form: *-*-* 02/4:30:00 Next elapse: Sun 2019-10-06 06:30:00 AEDT (in UTC): Sat 2019-10-05 19:30:00 UTC From now: 5h 29min left Iter. #2: Sun 2019-10-06 10:30:00 AEDT (in UTC): Sat 2019-10-05 23:30:00 UTC From now: 9h left Iter. #3: Sun 2019-10-06 14:30:00 AEDT (in UTC): Sun 2019-10-06 03:30:00 UTC From now: 13h left
* | NEWS: fix two typosZbigniew Jędrzejewski-Szmek2019-10-301-2/+2
| |
* | analyze: fix minor memleakLennart Poettering2019-10-301-1/+1
| |
* | analyze: sort list of unknown syscalls kernel implementsLennart Poettering2019-10-301-4/+10
| |
* | seccomp: add new Linux 5.3 syscalls to syscall filter listsLennart Poettering2019-10-301-0/+12
| | | | | | | | | | Many syscalls added and all fit nicely into existing groups, hence lets add them there.
* | network: cleanup header inclusionYu Watanabe2019-10-3049-134/+114
| |
* | Merge pull request #13870 from irtimmer/check_ip_gnutlsZbigniew Jędrzejewski-Szmek2019-10-304-8/+14
|\ \ | | | | | | resolved: validate IP address in certificate for DNS-over-TLS (GnuTLS)
| * | resolved: check for IP in certificate when using DoT with GnuTLSIwan Timmer2019-10-292-2/+12
| | | | | | | | | Validate the IP address in the certificate for DNS-over-TLS in strict mode when GnuTLS is used. As this is not yet the case in contrast to the documentation.
| * | resolved: require at least version 3.6.0 of GnuTLS for DNS-over-TLSIwan Timmer2019-10-293-6/+2
| |/ | | | | Increase the required version to ensure TLS 1.3 is always supported when using GnuTLS for DNS-over-TLS and allow further changes to use recent API additions.
* | Merge pull request #13874 from keszybz/network-sendoption-cleanupsZbigniew Jędrzejewski-Szmek2019-10-305-19/+22
|\ \ | | | | | | Network SendOption cleanups
| * | network: amend SendOption= to take a c-escaped stringZbigniew Jędrzejewski-Szmek2019-10-302-12/+15
| | | | | | | | | | | | No need to punish users by forcing them to do base64 encodings.