Zbigniew Jędrzejewski-Szmek
ae7e5d2037
Merge pull request #17476 from poettering/resolved-tweaks
...
three small resolved cleanups
2020-10-29 18:58:56 +01:00
Hans de Goede
ac6a1b9017
hwdb: Add accel orientation quirk for Predia Basic tablet
...
Add a quirk to fix the accelerometer orientation on the
Predia Basic tablet.
2020-10-29 17:41:24 +01:00
Yu, Li-Yu
bc117ec359
document udev escaped string in udev(7)
2020-10-29 22:57:00 +08:00
Yu, Li-Yu
c32d562da5
udev: add fuzzer for udev_rule_parse_value
2020-10-29 20:19:29 +08:00
Yu, Li-Yu
9abfd759d2
udev: test udev_rule_parse_value()
2020-10-29 20:19:29 +08:00
Yu, Li-Yu
aea3253e71
udev: escaped string syntax e"..." in rule files
...
* Existing valid rule files written with KEY="value" are not affected
* Now, KEY=e"value\n" becomes valid. Where `\n` is a newline character
* Escape sequences supported by src/basic/escape.h:cunescape() is
supported
2020-10-29 20:15:23 +08:00
Zbigniew Jędrzejewski-Szmek
c062cd9dde
headers: use custom LicenseRef- spdx tag for various "public domain" files
...
There is no spdx tag defined for those versions of "public domain", but we can
add a custom tag, see
https://spdx.github.io/spdx-spec/6-other-licensing-information-detected/ .
crc32.h is updated to match crc32.c.
2020-10-29 11:41:27 +01:00
Zbigniew Jędrzejewski-Szmek
448e7440c2
headers: add spdx tags to imported files with a known license
...
I added the header in the cases where the license text is present and it is
easy to find the appropriate SPDX header.
For "public domain" stuff: SDPX treats each "public domain" license as unique [1],
but luckily the one in siphash24.c is one of the identified variants. There are
some other cases which specify "public domain" but there doesn't seem to be a
SPDX identifier.
[1] https://wiki.spdx.org/view/Legal_Team/Decisions/Dealing_with_Public_Domain_within_SPDX_Files
gunicode.[ch] are imported from glib, which is licensed as LGPL2.1+,
see https://gitlab.gnome.org/GNOME/glib/-/blob/master/glib/gunicode.h .
2020-10-29 11:32:24 +01:00
Zbigniew Jędrzejewski-Szmek
59a711c2cd
time-wait-sync: drop gpl snail mail boilerplate
...
No idea why this chunk was left when we removed the other copies.
2020-10-29 10:47:28 +01:00
Zbigniew Jędrzejewski-Szmek
4368277c74
tree-wide: use the usual SPDX header for our own files
2020-10-29 10:47:20 +01:00
Yu Watanabe
7b6c92e6bb
journalctl: drop format_journal_url() if gcrypt is not used
...
Follow-up for f1b823596f .
2020-10-29 00:28:28 -07:00
Yu Watanabe
5722fb89bc
net-condition: introduce struct NetMatch
2020-10-29 15:04:52 +09:00
Yu Watanabe
26f4d32365
meson: drop libsystemd_network from several binaries
...
This reduces the size of udevadm:
Before:
```
$ ll udevadm
-rwxrwxr-x 1 watanabe watanabe 1203800 Oct 29 01:36 udevadm
```
After:
```
$ ll udevadm
-rwxrwxr-x 1 watanabe watanabe 1094384 Oct 29 01:38 udevadm
```
2020-10-29 14:23:49 +09:00
Yu Watanabe
01ab92af71
tree-wide: drop unnecessary inclusion of network-internal.h
2020-10-29 14:23:49 +09:00
Yu Watanabe
dc7f6c9b94
sd-network: move net_get_unique_predictable_data() and net_get_name_persisten()
2020-10-29 14:23:49 +09:00
Yu Watanabe
c2f781bc15
conf-parser: fix indentation
2020-10-29 14:23:49 +09:00
Yu Watanabe
7e19cc5462
net-condition: move net_match_config() and related conf parsers
2020-10-29 14:23:49 +09:00
Yu Watanabe
1929ed0e58
sd-network: move link_get_type_string()
2020-10-29 14:23:49 +09:00
Yu Watanabe
0ec2a7a125
libsystemd-network: move config_parse_hwaddr() and config_parse_hwaddrs()
2020-10-29 14:23:49 +09:00
Yu Watanabe
fc27088ae7
udev: move config_parse_ifalias()
2020-10-29 14:23:49 +09:00
Yu Watanabe
796aa313b3
network: move config_parse_bridge_port_priority()
2020-10-29 14:23:49 +09:00
Yu Watanabe
6a74900002
libsystemd-network: make conf parsers accept an empty string
2020-10-29 14:23:49 +09:00
Yu Watanabe
7e7aa4e811
libsystemd-network: downgrade log level in conf parsers
2020-10-29 14:23:49 +09:00
Luca Weiss
50f7b8fb28
Update org.freedesktop.hostname1 documentation
...
This documents the polkit actions for `SetDeployment()` and `SetLocation()` which previously were undocumented.
2020-10-28 22:16:57 +01:00
Zbigniew Jędrzejewski-Szmek
23b13549fa
Merge pull request #17435 from poettering/event-shuffle-refactor
...
sd-event: split up sd_event_source_set_enable() function
2020-10-28 18:21:13 +01:00
Zbigniew Jędrzejewski-Szmek
a1989bd84b
Merge pull request #17454 from keszybz/journal-dlopen-cleanup
...
Journal dlopen cleanup and qrcode printing test
2020-10-28 18:20:27 +01:00
Zbigniew Jędrzejewski-Szmek
32c3a623ce
Merge pull request #17467 from keszybz/unconditionally-pull-in-cryptsetup-remote
...
Unconditionally pull in cryptsetup-remote.target in the initramfs
2020-10-28 18:00:04 +01:00
Timo Rothenpieler
f1f1714411
networkctl: use and print full hardware address
...
Intentionally not checking the iftype for the ieee_oui lookup to support
other ethernet-like devices.
2020-10-28 15:18:01 +01:00
Timo Rothenpieler
14b66dbc92
dhcp4: fix DHCP on InfiniBand interfaces
...
With these patches applied, networkd is successfully able to get an
address from a DHCP server on an IPoIB interface.
1)
Makes networkd pass the actual interface type to the dhcp client,
instead of hardcoding it to Ethernet.
2)
Fixes some issues in handling the larger (20 Byte) IB MAC addresses in
the dhcp code.
3)
Add a new field to networkds Link struct, which holds the interface
broadcast address.
3.1)
Modify the DHCP code to also expect the broadcast address as parameter.
On an Ethernet-Interface the Broadcast address never changes and is always
all 6 bytes set to 0xFF.
On an IB one however it is not neccesarily always the same, thus
fetching the actual address from the interface is neccesary.
4)
Only the last 8 bytes of an IB MAC are stable, so when using an IB MAC to
generate a client ID, only pass those 8 bytes.
2020-10-28 14:44:43 +01:00
Timo Rothenpieler
b8162cd200
network: store full hardware address in Link struct
...
This passes the legacy ethernet address to functions in a lot of places,
which all will need migrated to handle arbitrary size hardware addresses
eventually.
2020-10-28 14:44:43 +01:00
Timo Rothenpieler
4fc8a29a7e
sd-netlink: introduce netlink_message_{read,append}_hw_addr
...
Hardware addresses come in various shapes and sizes, these new functions
and accomapying data structures account for that instead of hard-coding
a hardware address to the 6 bytes of an ethernet MAC.
2020-10-28 14:44:43 +01:00
Yu Watanabe
61eb77c4b6
network: drop link_load()
...
The link state file does not exist, as it is always removed on stop.
2020-10-28 18:16:01 +09:00
Yu Watanabe
6fdcef2174
network: do not serialize/deserialize routes
...
The same as the previous commit. These are not used.
2020-10-28 18:16:01 +09:00
Yu Watanabe
7b829a7b3b
network: do not serialize/deserialize addresses
...
The link state file is always removed when networkd is stopping. So,
the deserialization logic does not work. Moreover, the ADDRESSES=
entry is not used by sd-network, so serialization is also not necessary.
2020-10-28 18:15:57 +09:00
Lennart Poettering
48625dc437
Merge pull request #17471 from keszybz/man-update-fedora-version
...
Update fedora version in man pages
2020-10-28 10:09:12 +01:00
Lennart Poettering
b370adb593
resolved: advertise smaller UDP datagram size on extra stubs
2020-10-28 10:01:07 +01:00
Lennart Poettering
8facd1ce4f
resolved: remove redundant conditionalization
...
If all protocols are listed there's no point in having the if check.
Follow-up for 8b4198373b
2020-10-28 10:01:03 +01:00
Lennart Poettering
1ed314087f
resolved: use structured initialization everywhere
2020-10-28 10:00:28 +01:00
Yu Watanabe
ca97e7cda0
network: do not serialize/deserialize ipv4ll address
...
The link state file is always removed on stop. So, we cannot deserialize
the address from the file. Moreover, currently the IPv4 link-local address
is always dropped by link_drop_foreign_addresses() on restart. Let's
drop the serialize/deserialize logic for IPv4 LL address.
2020-10-28 15:46:09 +09:00
Yu Watanabe
778c879533
network: use sysctl_read_ip_property() where applicable
2020-10-28 15:44:10 +09:00
Yu Watanabe
31a9a27d4c
sysctl-util: truncate newline in read value
2020-10-28 15:44:10 +09:00
Yu Watanabe
62f12d757c
network: downgrade log level in dhcp4_configure()
2020-10-28 15:44:10 +09:00
Yu Watanabe
a41768533f
network: always enable sysctl property promote_secondaries
...
systemd-sysctl already enables promote_secondaries for all interface.
So, networkd also enables it unconditionally.
2020-10-28 15:44:10 +09:00
Yu Watanabe
e69642dccc
network: mention that the error will be ignored
2020-10-28 15:44:10 +09:00
Yu Watanabe
5360b089e1
network: drop dhcp4_init()
...
It is now called by only dhcp4_configure(). Let's merge them.
2020-10-28 15:44:10 +09:00
Yu Watanabe
3def88503a
network: set previous DHCP4 address in link->addresses_foreign
...
Previously, the address was taken from the state file, but DHCP4_ADDRESS=
entry was dropped by 46986251d6 .
Moreover, the link state file is always removed when networkd is
stopping. Let's take the address from the list of enumerated addresses.
2020-10-28 15:44:05 +09:00
Zbigniew Jędrzejewski-Szmek
a149d4a95e
Merge pull request #17455 from poettering/packet-auxdata
...
add Timestamping= to socket units and some other .socket unit tweaks
2020-10-27 20:20:57 +01:00
Zbigniew Jędrzejewski-Szmek
c37a43d2dd
Merge pull request #17438 from anitazha/systoomd_quick
...
Additional fix ups from #17417
2020-10-27 18:43:34 +01:00
Zbigniew Jędrzejewski-Szmek
a881d96183
meson: fix setting of ENABLE_OOMD
...
-Doomd=auto (the default) didn't work as intended because the initial correct
value was overwritten later by logic that didn't check for 'auto'.
2020-10-27 18:42:49 +01:00
Zbigniew Jędrzejewski-Szmek
158b28313f
test: add a simple test for the qr printing code
...
Ideally, we'd read back what we wrote, but that would have been
much more complicated. But just writing stuff is useful to test under
valgrind or manually.
2020-10-27 18:33:29 +01:00