Michal Sekletár [Fri, 5 Jun 2020 09:35:01 +0000 (11:35 +0200)]
tests: sleep a bit and give kernel time to perform the action after manual freeze/thaw
Fixes: #16050
Zbigniew Jędrzejewski-Szmek [Fri, 5 Jun 2020 06:47:35 +0000 (08:47 +0200)]
Merge pull request #15466 from elmarco/dhcp-leases
networkctl: print DHCP leases
Evgeny Vereshchagin [Thu, 4 Jun 2020 14:02:23 +0000 (16:02 +0200)]
turn off fuzzit
It seems it went down yesterday and it's not clear how long it will
take to bring it back.
Marc-André Lureau [Fri, 22 May 2020 10:01:35 +0000 (12:01 +0200)]
networkctl: print DHCP leases
Marc-André Lureau [Fri, 22 May 2020 09:59:31 +0000 (11:59 +0200)]
networkctl: factor out link_get_property()
The next patch is going to reuse it.
Marc-André Lureau [Fri, 22 May 2020 09:30:49 +0000 (11:30 +0200)]
sd-dhcp-client: add sd_dhcp_client_id_to_string()
Add a human-friendly pretty-printer for client ID.
Marc-André Lureau [Sun, 17 May 2020 13:25:14 +0000 (15:25 +0200)]
macro.h: add sizeof_field() helper
Similar to kernel FIELD_SIZE()
Marc-André Lureau [Fri, 22 May 2020 09:27:49 +0000 (11:27 +0200)]
sd-dhcp-client: make struct sd_dhcp_client_id reusable
Marc-André Lureau [Fri, 22 May 2020 09:56:59 +0000 (11:56 +0200)]
networkd: expose DHCPServer interface on links
Marc-André Lureau [Fri, 22 May 2020 09:49:16 +0000 (11:49 +0200)]
networkd: start a DBus interface for the DHCP server
Add a "org.freedesktop.network1.DHCPServer" DBus interface that will be
added on a link path where a DHCP server is provided.
Currently, it only exposes a "Leases" property, although there are plans
to expand it further. The property is updated thanks to the
dhcp_server_callback().
Marc-André Lureau [Fri, 22 May 2020 09:37:14 +0000 (11:37 +0200)]
sd-dhcp-server: notify callback on lease changed
Marc-André Lureau [Fri, 22 May 2020 09:33:36 +0000 (11:33 +0200)]
sd-dhcp-server: add sd_dhcp_server_set_callback()
Yu Watanabe [Wed, 3 Jun 2020 08:07:16 +0000 (17:07 +0900)]
network: make link become configured state when at least one dynamic protocol provide an address
Before this, to speed up the system boot with IPv4 only network,
we need to specify `IPv6AcceptRA=no`, as it is enabled by default.
Closes #15469.
Einsler Lee [Thu, 4 Jun 2020 07:28:51 +0000 (15:28 +0800)]
change fs/file-max to LONG_MAX instead of ULONG_MAX
Since this has been changed in: https://github.com/systemd/systemd/commit/
6e2f78948403a4cce45b9e34311c9577c624f066, the change should be synchronized.
Yu Watanabe [Thu, 4 Jun 2020 02:30:14 +0000 (11:30 +0900)]
Merge pull request #16057 from keszybz/resolvectl-sorted-no-nta
Drop NTA lists from resolvectl status and sort output by link number
Yu Watanabe [Thu, 4 Jun 2020 02:17:42 +0000 (11:17 +0900)]
Merge pull request #15171 from ssahani/tc-qfq
network: TC- Introduce Quick Fair Queueing (QFQ)
Lennart Poettering [Wed, 3 Jun 2020 17:00:04 +0000 (19:00 +0200)]
Merge pull request #16056 from keszybz/minor-doc-updates
Minor doc updates
Lennart Poettering [Tue, 2 Jun 2020 08:40:25 +0000 (10:40 +0200)]
seccomp: filter openat2() entirely in seccomp_restrict_sxid()
Lennart Poettering [Tue, 2 Jun 2020 10:06:22 +0000 (12:06 +0200)]
core: remove support for ".include" stanza
Six years ago we declared it obsolete and removed it from the docs
(
c073a0c4a5ffbf6677dd6af02e7c7d59b2b901ab) and added a note about it in
NEWS. Two years ago we add warning messages about it, indicating the
feature will be removed (
41b283d0f1f4abd85d0bbeeb7f71bb30f87cfab9) and
mentioned it in NEWS again.
Let's now kill it for good.
Yu Watanabe [Wed, 3 Jun 2020 07:19:29 +0000 (16:19 +0900)]
network: read driver name from ethtool
To make Driver= in [Match] section work in containers.
Note that ID_NET_DRIVER= property in udev database is set with the
result of the ethtool. So, this should not change anything for
non-container cases.
Closes #15678.
Zbigniew Jędrzejewski-Szmek [Tue, 2 Jun 2020 15:54:49 +0000 (17:54 +0200)]
basic/sort-util: adorn qsort_safe with a prefix underscore
It should not be used directly since we have typesafe_qsort(), so
let's mark it appropriately.
Zbigniew Jędrzejewski-Szmek [Tue, 2 Jun 2020 15:53:14 +0000 (17:53 +0200)]
pstore: use typesafe_qsort
Also move "allocated" above "n", since, conceptually, it is modified
earlier (and that is the definition order we normally use).
Zbigniew Jędrzejewski-Szmek [Tue, 2 Jun 2020 15:49:22 +0000 (17:49 +0200)]
resolvect: sort status output by link number
This makes the output more predictable. Also, interesting interfaces
are often the low-numbered ones (actual hardware links, not virtual
devices stacked on top), and this makes them more visible.
Zbigniew Jędrzejewski-Szmek [Tue, 2 Jun 2020 15:46:58 +0000 (17:46 +0200)]
resolvectl,systemctl: reduce scope of variables
Zbigniew Jędrzejewski-Szmek [Tue, 2 Jun 2020 15:31:34 +0000 (17:31 +0200)]
Introduce strcasecmp_ptr() and use it in a few places
Zbigniew Jędrzejewski-Szmek [Tue, 2 Jun 2020 14:57:07 +0000 (16:57 +0200)]
resolvectl: do not show NTA lists in status
Those lists are very long and use up a significant chunk of screen real estate.
But the contents are mostly static (usually they just reflect built-in
configuration). Let's just not show them in 'status' output. They can still
be viewed with 'nta' verb.
Yu Watanabe [Wed, 3 Jun 2020 06:18:55 +0000 (15:18 +0900)]
test-network: add tests for QFQ
Yu Watanabe [Wed, 3 Jun 2020 06:07:45 +0000 (15:07 +0900)]
network: tc: introduce [QuickFairQueueingClass] section
Susant Sahani [Thu, 19 Mar 2020 21:41:57 +0000 (22:41 +0100)]
network: tc: introduce Quick Fair Queueing (QFQ)
Susant Sahani [Thu, 19 Mar 2020 21:41:10 +0000 (22:41 +0100)]
sd-netlink: add netlink properties of Quick Fair Queueing (QFQ)
Yu Watanabe [Tue, 2 Jun 2020 23:25:28 +0000 (08:25 +0900)]
Merge pull request #16048 from poettering/conf-parser-mtime
conf-parser: automatically pick up newest mtime when parsing configuration files
Zbigniew Jędrzejewski-Szmek [Sun, 31 May 2020 12:35:40 +0000 (14:35 +0200)]
core: set source_mtime after load dropins
Dropins may specify SourcePath= too, but we would do the stat only
after loading the main fragment, before loading of the drop-ins.
Fixes #13634.
Lennart Poettering [Tue, 2 Jun 2020 12:55:12 +0000 (14:55 +0200)]
conf-parser: return mtime in config_parse() and friends
This is a follow-up for
9f83091e3cceb646a66fa9df89de6d9a77c21d86.
Instead of reading the mtime off the configuration files after reading,
let's do so before reading, but with the fd we read the data from. This
is not only cleaner (as it allows us to save one stat()), but also has
the benefit that we'll detect changes that happen while we read the
files.
This also reworks unit file drop-ins to use the common code for
determining drop-in mtime, instead of reading system clock for that.
Lennart Poettering [Tue, 2 Jun 2020 14:49:50 +0000 (16:49 +0200)]
conf-parse: fix pretty bad typo
Lennart Poettering [Tue, 2 Jun 2020 14:44:34 +0000 (16:44 +0200)]
fs-util: add stat_warn_permissions() that operates on struct stat instead of fd
Lennart Poettering [Tue, 2 Jun 2020 17:29:47 +0000 (19:29 +0200)]
Merge pull request #15996 from yuwata/network-dhcp6-route-metric-15295
network: add RouteMetric= in [DHCPv6] section
Zbigniew Jędrzejewski-Szmek [Sun, 31 May 2020 10:16:57 +0000 (12:16 +0200)]
basic/efivars: try re-reading efivars without delay first
Quoting https://github.com/systemd/systemd/issues/14828#issuecomment-
635212615:
> [kernel uses] msleep_interruptible() and that means when the process receives
> any kind of signal masked or not this will abort with EINTR. systemd-logind
> gets signals from the TTY layer all the time though.
> Here's what might be happening: while logind reads the EFI stuff it gets a
> series of signals from the TTY layer, which causes the read() to be aborted
> with EINTR, which means logind will wait 50ms and retry. Which will be
> aborted again, and so on, until quite some time passed. If we'd not wait for
> the 50ms otoh we wouldn't wait so long, as then on each signal we'd
> immediately retry again.
Lennart Poettering [Tue, 2 Jun 2020 08:39:25 +0000 (10:39 +0200)]
fd-util: be more careful with fclose() errnos
This might fix #15859, a bug which I find very puzzling.
Lennart Poettering [Tue, 2 Jun 2020 12:56:08 +0000 (14:56 +0200)]
update TODO
Zbigniew Jędrzejewski-Szmek [Tue, 2 Jun 2020 12:26:26 +0000 (14:26 +0200)]
man: add note that emergency.target inherits mount state
Based on an internal discussion whether emergency.target should remount disks
ro, or maybe remount them rw, or do nothing. In some cases people want to boot
ro, and always remounting rw would break that. In other cases, remounting disks
ro after they have already been mounted rw is mostly pointless and might even
not be possible. So let's just document that we don't change the state.
Also: any→other, since emergency.service *is* pulled in.
Also: just advertise "emergency" as the way to boot into the target.
We are not going to remove this option, and it's way easier to type than
"systemd.unit=emergency.target".
Zbigniew Jędrzejewski-Szmek [Tue, 2 Jun 2020 12:14:20 +0000 (14:14 +0200)]
units: uppercase the description
https://github.com/systemd/systemd/pull/15982#pullrequestreview-
422536495
Zbigniew Jędrzejewski-Szmek [Tue, 2 Jun 2020 07:45:24 +0000 (09:45 +0200)]
man,mkosi: bump Fedora version
Luca Boccassi [Mon, 1 Jun 2020 11:24:10 +0000 (12:24 +0100)]
test: temporarily block test 48 on Ubuntu's autopkgtest
This test runs fine locally (both on Qemu and nspawn) but sporadically fails on
autopkgtest for some reason.
Disable it while the issue is investigated to reduce noise.
Yu Watanabe [Tue, 2 Jun 2020 06:36:12 +0000 (15:36 +0900)]
network: drop an unused function
Yu Watanabe [Mon, 1 Jun 2020 04:18:22 +0000 (13:18 +0900)]
network: move DHCPv6 related conf parsers to networkd-dhcp6.c
Yu Watanabe [Mon, 1 Jun 2020 04:08:43 +0000 (13:08 +0900)]
network: set both dhcp_route_metric and dhcp6_route_metric by DHCP.RouteMetric= for backward compatibility
But [DHCPv4] or [DHCPv6] section take precedence.
This also update so for UseDNS= and UseNTP=.
Yu Watanabe [Mon, 1 Jun 2020 04:02:16 +0000 (13:02 +0900)]
network: add DHCPv6.RouteMetric=
Hopefully fixes #15295.
Yu Watanabe [Mon, 1 Jun 2020 04:01:09 +0000 (13:01 +0900)]
network: use uint32_t instead of unsigned for route priority
Zbigniew Jędrzejewski-Szmek [Mon, 1 Jun 2020 13:14:13 +0000 (15:14 +0200)]
Merge pull request #16030 from yuwata/network-read-mtime-of-dropin-configs-15521
network: also read mtime of drop-in configs
Yu Watanabe [Mon, 1 Jun 2020 08:04:57 +0000 (17:04 +0900)]
Merge pull request #15991 from keszybz/uids-gids-only-decimal
Only use base 10 for numeric uids/gids
Yu Watanabe [Mon, 1 Jun 2020 05:53:06 +0000 (14:53 +0900)]
network: also read mtime of drop-in configs
Fixes #15521.
Yu Watanabe [Mon, 1 Jun 2020 07:19:50 +0000 (16:19 +0900)]
network: do not propagte error on stat()
Norbert Lange [Tue, 26 May 2020 08:26:12 +0000 (10:26 +0200)]
udev: single binary replacing udevd and udevadm
Since the separate binaries contain mostly the same code,
this almost halves the size of the installation.
before:
398K /bin/udevadm
391K /lib/systemd/systemd-udevd
after:
431K /bin/udevadm
0 /lib/systemd/systemd-udevd -> ../../bin/udevadm
Fixes: #14200
Yu Watanabe [Fri, 29 May 2020 07:56:09 +0000 (16:56 +0900)]
network: fix double free in macsec_receive_channel_free()
Fixes #15941.
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22547
Zbigniew Jędrzejewski-Szmek [Mon, 1 Jun 2020 07:34:04 +0000 (09:34 +0200)]
Merge pull request #16029 from yuwata/network-wireguard-without-peers-15786
network: configure wireguard without no peers
Zbigniew Jędrzejewski-Szmek [Mon, 1 Jun 2020 06:44:07 +0000 (08:44 +0200)]
Merge pull request #15990 from jwrdegoede/hwdb-accel-quirks
Hwdb accel quirks
Yu Watanabe [Mon, 1 Jun 2020 05:23:03 +0000 (14:23 +0900)]
test-network: add test for wireguard without peers
Yu Watanabe [Mon, 1 Jun 2020 05:22:06 +0000 (14:22 +0900)]
network: wireguard: set ListenPort= when no peers are configured
Closes #15786.
Yu Watanabe [Mon, 1 Jun 2020 04:50:50 +0000 (13:50 +0900)]
Merge pull request #15982 from keszybz/shell-completion-and-help
Shell completion and udevd help update
Yu Watanabe [Mon, 1 Jun 2020 03:25:54 +0000 (12:25 +0900)]
Merge pull request #15884 from ssahani/dhcpv6-vendor
DHCPv6: Introduce vendor specific
Daan De Meyer [Sun, 31 May 2020 19:56:40 +0000 (21:56 +0200)]
Merge pull request #15993 from mrc0mmand/news-update
NEWS: fix several typos
Evgeny Vereshchagin [Sun, 31 May 2020 11:21:16 +0000 (13:21 +0200)]
tests: add a testcase triggering https://github.com/systemd/systemd/issues/15968
It's just a follow-up to https://github.com/systemd/systemd/pull/15976
Frantisek Sumsal [Sun, 31 May 2020 19:21:44 +0000 (21:21 +0200)]
NEWS: fix several typos
Zbigniew Jędrzejewski-Szmek [Sun, 31 May 2020 16:21:09 +0000 (18:21 +0200)]
basic/user-util: always use base 10 for user/group numbers
We would parse numbers with base prefixes as user identifiers. For example,
"0x2b3bfa0" would be interpreted as UID==
45334432 and "01750" would be
interpreted as UID==1000. This parsing was used also in cases where either a
user/group name or number may be specified. This means that names like
0x2b3bfa0 would be ambiguous: they are a valid user name according to our
documented relaxed rules, but they would also be parsed as numeric uids.
This behaviour is definitely not expected by users, since tools generally only
accept decimal numbers (e.g. id, getent passwd), while other tools only accept
user names and thus will interpret such strings as user names without even
attempting to convert them to numbers (su, ssh). So let's follow suit and only
accept numbers in decimal notation. Effectively this means that we will reject
such strings as a username/uid/groupname/gid where strict mode is used, and try
to look up a user/group with such a name in relaxed mode.
Since the function changed is fairly low-level and fairly widely used, this
affects multiple tools: loginctl show-user/enable-linger/disable-linger foo',
the third argument in sysusers.d, fourth and fifth arguments in tmpfiles.d,
etc.
Fixes #15985.
Zbigniew Jędrzejewski-Szmek [Sun, 31 May 2020 15:54:57 +0000 (17:54 +0200)]
loginctl: define loop iterators in the loop header
Hans de Goede [Sun, 31 May 2020 14:21:36 +0000 (16:21 +0200)]
hwdb: Add accel orientation quirk for Trekstor Surftab Twin 10.1 ST10432-8
The Trekstor Surftab Twin 10.1 ST10432-8 accelerometer has its x-axis
inverted, add a quirk for this.
Hans de Goede [Sun, 31 May 2020 08:25:50 +0000 (10:25 +0200)]
hwdb: Add accel orientation quirk for Toshiba Encore WT10A tablet
Add a quirk to correct the accelerometer orientation on
Toshiba Encore WT10A tablets.
Zbigniew Jędrzejewski-Szmek [Sat, 30 May 2020 15:15:20 +0000 (17:15 +0200)]
udevd: update snippet string
Repeating the unit name in the description is not useful, and "manages devices"
is too cryptic.
Luca Boccassi [Thu, 7 May 2020 22:26:53 +0000 (23:26 +0100)]
core: reload cache if it's dirty when starting a UNIT_NOT_FOUND unit
The time-based cache allows starting a new unit without an expensive
daemon-reload, unless there was already a reference to it because of
a dependency or ordering from another unit.
If the cache is out of date, check again if we can load the
fragment.
Zbigniew Jędrzejewski-Szmek [Sat, 30 May 2020 14:04:00 +0000 (16:04 +0200)]
shell-completions: update bootctl
Entries in the completion lists are reordered to follow --help output:
this makes it much easier to see what is missing.
Zbigniew Jędrzejewski-Szmek [Sat, 30 May 2020 13:44:26 +0000 (15:44 +0200)]
Merge pull request #15935 from poettering/cache-more-efi-vars
logind + efi-loader: cache more efi vars
Rafael Fontenelle [Sat, 30 May 2020 12:30:39 +0000 (09:30 -0300)]
po: update Brazilian Portuguese translation
Zbigniew Jędrzejewski-Szmek [Sat, 30 May 2020 13:04:40 +0000 (15:04 +0200)]
Merge pull request #15915 from poettering/journal-external-link
journal: show external links in log output
Daan De Meyer [Sat, 30 May 2020 10:52:25 +0000 (12:52 +0200)]
update NEWS
Lennart Poettering [Fri, 29 May 2020 09:26:24 +0000 (11:26 +0200)]
sd-dhcp: clean-up of DHCP lease server code
This is an attempt to clean-up the DHCP lease server type code a bit. We
now strictly use the same enum everywhere, and store server info in an
array. Moreover, we use the same nomenclature everywhere.
This only makes the changes in the sd-dhcp code. The networkd code is
untouched so far (but should be fixed up like this too. But it's more
complicated since this would then touch actual settings in .network
files).
Note that this also changes some field names in serialized lease files.
But given that these field names have not been part of a released
version of systemd yet, such a change should be ok.
This is pure renaming/refactoring, shouldn't actually change any
behaviour.
Jay Burger [Thu, 21 May 2020 23:08:48 +0000 (18:08 -0500)]
fix_test_function_timeout
Christian Oder [Fri, 29 May 2020 19:43:49 +0000 (21:43 +0200)]
hwdb: Add accel orientation quirk for Chuwi Hi10 X
Add a quirk to fix the accelerometer orientation on the Chuwi Hi10 X
so that the display is not rotated 90 degree counter clockwise anymore.
Susant Sahani [Sat, 30 May 2020 04:35:28 +0000 (06:35 +0200)]
network: L2TP fix crash
```
=220358== Invalid read of size 8
==220358== at 0x452F05: l2tp_session_free (l2tp-tunnel.c:46)
==220358== by 0x456926: l2tp_tunnel_done (l2tp-tunnel.c:725)
==220358== by 0x43CF4D: netdev_free (netdev.c:205)
==220358== by 0x43D045: netdev_unref (netdev.c:210)
==220358== by 0x4198B7: manager_free (networkd-manager.c:1877)
==220358== by 0x40D0B3: manager_freep (networkd-manager.h:105)
==220358== by 0x40DE1C: run (networkd.c:21)
==220358== by 0x40DE75: main (networkd.c:130)
==220358== Address 0x5c035d0 is 0 bytes inside a block of size 40 free'd
==220358== at 0x483A9F5: free (vg_replace_malloc.c:538)
==220358== by 0x452F87: l2tp_session_free (l2tp-tunnel.c:57)
==220358== by 0x456857: netdev_l2tp_tunnel_verify (l2tp-tunnel.c:710)
==220358== by 0x440947: netdev_load_one (netdev.c:738)
==220358== by 0x441222: netdev_load (netdev.c:851)
==220358== by 0x419C50: manager_load_config (networkd-manager.c:1934)
==220358== by 0x40D7BE: run (networkd.c:87)
==220358== by 0x40DE75: main (networkd.c:130)
==220358== Block was alloc'd at
==220358== at 0x4839809: malloc (vg_replace_malloc.c:307)
==220358== by 0x452A76: malloc_multiply (alloc-util.h:96)
==220358== by 0x4531E6: l2tp_session_new_static (l2tp-tunnel.c:82)
==220358== by 0x455C01: config_parse_l2tp_session_id (l2tp-tunnel.c:535)
==220358== by 0x48E6D72: next_assignment (conf-parser.c:133)
==220358== by 0x48E77A3: parse_line (conf-parser.c:271)
==220358== by 0x48E7E4F: config_parse (conf-parser.c:396)
==220358== by 0x48E80E5: config_parse_many_files (conf-parser.c:453)
==220358== by 0x48E8490: config_parse_many (conf-parser.c:512)
==220358== by 0x44089C: netdev_load_one (netdev.c:729)
==220358== by 0x441222: netdev_load (netdev.c:851)
==220358== by 0x419C50: manager_load_config (networkd-manager.c:1934)
```
Daan De Meyer [Sat, 30 May 2020 09:04:14 +0000 (11:04 +0200)]
Merge pull request #15958 from layderv/master
#15773 add --reboot-arg to systemctl reboot
Daan De Meyer [Sat, 30 May 2020 09:00:13 +0000 (11:00 +0200)]
Merge pull request #15975 from mgub/patch-1
Fix typo.
Michael Gubbels [Fri, 29 May 2020 23:40:39 +0000 (16:40 -0700)]
Fix typo.
laydervus [Fri, 29 May 2020 17:15:34 +0000 (13:15 -0400)]
#15773 add --reboot-argument to systemctl reboot
Lennart Poettering [Fri, 29 May 2020 15:46:40 +0000 (17:46 +0200)]
stat-util: trivial empty_or_null() tweaks
To small tweaks: /dev/null is definitely a char device. And if we have
the path, to a string base comparison first.
sterlinghughes [Thu, 28 May 2020 20:54:27 +0000 (13:54 -0700)]
Check ambient set against bounding set prior to applying ambient set
Fixes #15020
Lennart Poettering [Fri, 29 May 2020 16:32:28 +0000 (18:32 +0200)]
update TODO
Lennart Poettering [Fri, 29 May 2020 14:02:53 +0000 (16:02 +0200)]
Merge pull request #15954 from keszybz/unit-file-leak
Fix leak in unit path cache and another small optimization
Lennart Poettering [Wed, 27 May 2020 15:30:29 +0000 (17:30 +0200)]
efi: add more logging for all EFI variable reads
Lennart Poettering [Wed, 27 May 2020 15:22:29 +0000 (17:22 +0200)]
bootctl: add simple, low-level reboot-to-firmware verb for controlling the flag
Lennart Poettering [Wed, 27 May 2020 14:34:16 +0000 (16:34 +0200)]
bootctl: show reboot-to-firmware info, too
Lennart Poettering [Wed, 27 May 2020 14:24:33 +0000 (16:24 +0200)]
efi: cache OsIndications too
Lennart Poettering [Wed, 27 May 2020 15:22:46 +0000 (17:22 +0200)]
efi: explicitly update mtime of EFI variables when changing them
Lennart Poettering [Wed, 27 May 2020 14:22:07 +0000 (16:22 +0200)]
efi: as extra paranoia NUL terminate UTF-16 strings with three NUL bytes
This is a safey net anyway, let's make it fully safe: if the data ends
on an uneven byte, then we need to complete the UTF-16 codepoint first,
before adding the final NUL byte pair. Hence let's suffix with three
NULs, instead of just two.
Lennart Poettering [Tue, 26 May 2020 20:26:28 +0000 (22:26 +0200)]
efi: cache OsIndicationsSupported
As suggested by:
https://github.com/systemd/systemd/issues/14828#issuecomment-
634202054
Lennart Poettering [Tue, 26 May 2020 20:25:54 +0000 (22:25 +0200)]
efi: avoid weirdly double }} by indenting differently
Lennart Poettering [Tue, 26 May 2020 20:24:02 +0000 (22:24 +0200)]
efi: cache LoaderEntries EFI variable
Based-on:
https://github.com/systemd/systemd/issues/14828#issuecomment-
634202054
Evgeny Vereshchagin [Fri, 29 May 2020 11:35:11 +0000 (13:35 +0200)]
README: add a Fossies codespell badge
I keep forgetting where the report is. Hopefully the badge will
make it easier to find it. I also fixed several typos codespell
found along the way.
Yu Watanabe [Fri, 29 May 2020 08:23:00 +0000 (17:23 +0900)]
network: fix memleaks
Fixes #15951.
Yu Watanabe [Fri, 29 May 2020 08:00:30 +0000 (17:00 +0900)]
network: clean up doubled white space
Susant Sahani [Fri, 22 May 2020 06:53:36 +0000 (08:53 +0200)]
network: dhcp6 - fix memory leak
Susant Sahani [Tue, 26 May 2020 08:46:54 +0000 (10:46 +0200)]
network: Inroduce DHCP6- send vendor options
network: Inroduce DHCP6- send vendor options
```
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| OPTION_VENDOR_OPTS | option-len |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| enterprise-number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
. .
. vendor-option-data .
. .
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
```
```
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| sub-opt-code | sub-option-len |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
. .
. sub-option-data .
. .
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 31: Vendor-specific Options Format
sub-opt-code The code for the sub-option. A 2-octet
field.
sub-option-len An unsigned integer giving the length of the
sub-option-data field in this sub-option in
octets. A 2-octet field.
sub-option-data The data area for the sub-option. The
length, in octets, is specified by
sub-option-len.
```