Susant Sahani
9633f977ea
Add test for IPv6 Route advertisement
2019-09-17 12:10:19 +02:00
Susant Sahani
203d4df573
network: Add support to advertie ipv6 route
...
Implements https://tools.ietf.org/html/rfc4191
cat veth99.network
```
[Match]
Name=veth99
[Network]
DHCP=no
IPv6PrefixDelegation=yes
Address=2001:db8:0:1::1/64
[IPv6Prefix]
Prefix=2001:db8:0:1::4/64
[IPv6RoutePrefix]
Route=2001:db0:fff::/48
```
Wireshark
```
Frame 481: 142 bytes on wire (1136 bits), 142 bytes captured (1136 bits) on interface 0
Ethernet II, Src: 1e:04:f8:b8:2f:d4 (1e:04:f8:b8:2f:d4), Dst: IPv6mcast_01 (33:33:00:00:00:01)
Internet Protocol Version 6, Src: fe80::1c04:f8ff:feb8:2fd4, Dst: ff02::1
Internet Control Message Protocol v6
Type: Router Advertisement (134)
Code: 0
Checksum: 0xec77 [correct]
[Checksum Status: Good]
Cur hop limit: 0
Flags: 0x00, Prf (Default Router Preference): Medium
Router lifetime (s): 0
Reachable time (ms): 0
Retrans timer (ms): 0
ICMPv6 Option (Source link-layer address : 1e:04:f8:b8:2f:d4)
Type: Source link-layer address (1)
Length: 1 (8 bytes)
Link-layer address: 1e:04:f8:b8:2f:d4 (1e:04:f8:b8:2f:d4)
ICMPv6 Option (MTU : 1500)
Type: MTU (5)
Length: 1 (8 bytes)
Reserved
MTU: 1500
ICMPv6 Option (Prefix information : 2001:db8:0:1::4/64)
Type: Prefix information (3)
Length: 4 (32 bytes)
Prefix Length: 64
Flag: 0xc0, On-link flag(L), Autonomous address-configuration flag(A)
Valid Lifetime: 2592000
Preferred Lifetime: 604800
Reserved
Prefix: 2001:db8:0:1::4
ICMPv6 Option (Route Information : Medium 2001:db0:fff::/48)
Type: Route Information (24)
Length: 3 (24 bytes)
Prefix Length: 48
Flag: 0x00, Route Preference: Medium
...0 0... = Route Preference: Medium (0)
000. .000 = Reserved: 0
Route Lifetime: 604800
Prefix: 2001:db0:fff::
```
2019-09-17 12:09:59 +02:00
Susant Sahani
61cda4d796
network DHCP4: Dont mislead the logs.
...
The debug log making sense to the end user as an error.
2019-09-17 08:09:44 +09:00
Donald A. Cupp Jr
d34a58222d
Update m4 for selective utmp support.
...
modified: tmpfiles.d/systemd.conf.m4
2019-09-16 21:11:44 +02:00
matthiasroos
358e50fa7f
hwdb: add Medion Akoya E2292 ( #13498 )
...
Fixes #13480 .
2019-09-16 21:10:15 +02:00
Rafael Fontenelle
bf55a2df4d
po: update Brazilian Portuguese translation
2019-09-16 21:09:03 +02:00
Franck Bui
5a1c1b534f
core: restore initialization of u->source_mtime
...
During the rework of unit file loading, commit e8630e6952 dropped the
initialization u->source_mtime. This had the bad side effect that generated
units always needed daemon reloading.
2019-09-16 15:53:52 +02:00
Zbigniew Jędrzejewski-Szmek
036eb795ad
Merge pull request #13551 from keszybz/ll-no-default-route
...
Link local no default route
2019-09-16 14:27:41 +02:00
Yu Watanabe
f39fc2d88b
Merge pull request #13354 from keszybz/two-refactoring-patches
...
Two or more refactoring patches
2019-09-16 21:24:13 +09:00
Zbigniew Jędrzejewski-Szmek
36b12282e1
basic/conf-files: make conf_files_list() take just a single directory
...
This function had two users (apart from tests), and both only used one
argument. And it seems likely that if we need to pass more directories,
either the _nulstr() or the _strv() form would be used. Let's simplify
the code.
2019-09-16 09:15:05 +02:00
Zbigniew Jędrzejewski-Szmek
48da02ec6f
core/mount-setup: use conf_files_list_strv() for relabel-extra.d/
2019-09-16 09:15:05 +02:00
Zbigniew Jędrzejewski-Szmek
7268295765
update-utmp: define main() through macro
...
Update logging a bit: drop logging of the pid, nowadays pid1 and journald
do a very good job of logging that. Always log about failure to open audit
fd, but at DEBUG_LEVEL if not important.
2019-09-16 09:15:05 +02:00
Benjamin Gilbert
71de68476c
mount-setup: relabel items mentioned directly in relabel-extra.d
...
relabel_extra() relabels the descendants of directories listed in
relabel-extra.d, but doesn't relabel the files or directories
explicitly named there. This makes it impossible to use
relabel-extra.d to relabel the root of a filesystem. Fix by
relabeling the named items too.
2019-09-16 09:04:22 +02:00
Renaud Métrich
f5e0b942af
Call getgroups() to know size of supplementary groups array to allocate
...
Resolves RHBZ #1743230 - journalctl dumps core when stack limit is reduced to 256 KB
2019-09-16 08:51:36 +02:00
Yu Watanabe
1520151268
network: add more debug messages
2019-09-15 22:33:11 +09:00
Yu Watanabe
c697db75de
network: set scope and protocol for default route
2019-09-15 22:33:11 +09:00
Yu Watanabe
750f919112
network: drop redundant and invalid destination address
...
When dst_prefixlen is not set, the value is not used.
2019-09-15 22:33:11 +09:00
Yu Watanabe
70dc23624e
network: do not use implicit cast to boolean
2019-09-15 22:33:11 +09:00
Yu Watanabe
2aa7d367ec
network: do not create default route for ipv4 link local addressing
...
When nspawn container with private network starts, networkd creates
the default route for the interface. The route may cause problem on
the host side, and it can be created with DefaultRouteOnDevice= now.
Hence, this makes networkd not create the route implicitly any more.
Closes #13418 .
2019-09-15 22:33:11 +09:00
Piotr Drąg
9870c55ef5
po: update Polish translation
2019-09-14 13:05:46 +02:00
Zbigniew Jędrzejewski-Szmek
3af900718e
Merge pull request #13405 from yuwata/network-ipv6-privacy-extensions-cleanup
...
Network ipv6 privacy extensions cleanup
2019-09-13 18:03:29 +02:00
Zbigniew Jędrzejewski-Szmek
de5ae832f2
Merge pull request #13439 from yuwata/core-support-systemctl-clean-more
...
core: support systemctl clean more
2019-09-13 16:15:02 +02:00
Zbigniew Jędrzejewski-Szmek
c30197eb31
Merge pull request #13519 from yuwata/udev-fix-multi-match
...
udev: fix multi match
2019-09-13 15:27:55 +02:00
Yu Watanabe
bd9014c360
man: move TimeoutCleanSec= entry from .service to .exec
...
Follow-up for 12213aed12 .
Closes #13546 .
2019-09-13 15:06:40 +02:00
Ronan Pigott
4f6c727637
zsh: udpate bootctl completions
2019-09-13 14:38:05 +02:00
Zbigniew Jędrzejewski-Szmek
f731fd5be6
resolved: fix abort when recv() returns 0
...
https://bugzilla.redhat.com/show_bug.cgi?id=1703598
2019-09-13 13:31:43 +09:00
Yu Watanabe
5dcd46dd53
Merge pull request #13538 from keszybz/doc-tweaks
...
Various minor tweaks that don't deserve seperate pull requests
2019-09-13 13:31:20 +09:00
Bastien Nocera
d7cf4984b0
hwdb: Also mark lis3lv02d sensors in "HP" laptops as being in the base
...
We matched "*Hewlett-Packard*" laptops but not "*HP*" laptops, which
caused a regression for the HP Elite Book 850 G3.
Fixes: 4247938ee1
Closes : #13543
2019-09-12 23:52:53 +02:00
Zbigniew Jędrzejewski-Szmek
ea2552639b
polkit: change "revert settings" to "reset settings"
...
"reset" is more understandable. The verb is "revert", but it might actually be
better to have a description which uses different words instead of duplicating
the name of the command.
https://github.com/systemd/systemd/commit/379158684abd981cc760342aad61b1c813b71eb2#commitcomment-34992552
2019-09-12 18:35:49 +02:00
Zbigniew Jędrzejewski-Szmek
f255a21f67
Merge pull request #13500 from yuwata/udev-fix-static_node
...
udev: add missing flag for OPTIONS=static_node
2019-09-12 17:36:34 +02:00
Evgeny Vereshchagin
807f9a1700
fuzzit: export the API key instead of using auth
...
"We removed some cahing related code that auth used and caused problems"
2019-09-12 14:02:21 +03:00
Zbigniew Jędrzejewski-Szmek
ff7cfff0c4
man: remove repeated words
...
https://github.com/systemd/systemd/commit/b5328434c91b10ad49647e2352e62b1fbdce329d#commitcomment-34989175
2019-09-12 11:17:23 +02:00
Zbigniew Jędrzejewski-Szmek
06c52cc2b7
man: fix description of ARPIntervalSec= units
...
https://bugzilla.redhat.com/show_bug.cgi?id=1751363
2019-09-12 11:17:20 +02:00
Zbigniew Jędrzejewski-Szmek
90137b6252
TODO: add stuff about timers
2019-09-12 11:17:20 +02:00
Yu Watanabe
7d79cc96ea
Merge pull request #13526 from yuwata/network-check-access-mode-of-key-file
...
network: check access mode of key file
2019-09-12 12:02:28 +09:00
Yu Watanabe
be7110826e
network: do not abort execution when a config file cannot be loaded
...
Closes #13516 .
2019-09-11 21:15:22 +09:00
Yu Watanabe
0f93577647
fileio: update warning message
2019-09-11 21:11:18 +09:00
Yu Watanabe
0bae857564
network: also check the permission of key file
2019-09-11 21:11:01 +09:00
baybal
26fe3af8ae
hwdb: axis override for Dell 9360 touchpad
...
and possibly other XPS models sharing the touchpad (#13472 )
2019-09-11 12:08:59 +10:00
Evgeny Vereshchagin
2dd9b65778
oss-fuzz.sh: stop downloading the skia seed corpus
...
When the fuzz target was integrated, it was added as a stopgap
to get fuzz-json up and running. It served its purpose and can
safely be removed to prevent tools/oss-fuzz.sh from failing with
```
+wget -O /home/travis/build/systemd/systemd/out/fuzz-json_seed_corpus.zip https://storage.googleapis.com/skia-fuzzer/oss-fuzz/skjson_seed_corpus.zip
--2019-09-10 22:40:44-- https://storage.googleapis.com/skia-fuzzer/oss-fuzz/skjson_seed_corpus.zip
Resolving storage.googleapis.com (storage.googleapis.com)... 74.125.70.128, 2607:f8b0:4001:c05::80
Connecting to storage.googleapis.com (storage.googleapis.com)|74.125.70.128|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2019-09-10 22:40:44 ERROR 403: Forbidden.
```
Ideally we should put our seed corpus somewhere and download it from there
but I haven't got round to it.
2019-09-11 03:24:29 +03:00
Yu Watanabe
48d26c9085
test: add test cases for empty string match
2019-09-11 09:06:15 +09:00
Yu Watanabe
067cc51f2e
udev: fix multi match
...
Fixes #13518 .
2019-09-11 09:05:39 +09:00
Yu Watanabe
39b7b6cb4a
Merge pull request #13511 from ssahani/networkctl-dhcp
...
networkctl Improve display of address . Show it's dhcp
2019-09-10 15:16:15 +09:00
Susant Sahani
cdf01b36db
networkctl: Display address is a DHCP4 address
...
CLoses https://github.com/systemd/systemd/issues/10839
2019-09-09 20:01:54 +05:30
Susant Sahani
611224d9fe
sd-network: add support to get DHCP4 address
2019-09-09 20:01:33 +05:30
Yu Watanabe
20eef7c55c
udev: also logs file permission
2019-09-09 01:30:49 +09:00
Yu Watanabe
5abba26e2f
udev: add missing flag for OPTIONS=static_node
...
Fixes RHBZ#1740664.
2019-09-09 01:28:02 +09:00
Evgeny Vereshchagin
77b1af585a
travis: skip the right stage
...
It's just a follow-up to https://github.com/systemd/systemd/pull/13493 .
The stage is called "Fuzzit-Regression" now.
2019-09-07 22:01:16 +00:00
Evgeny Vereshchagin
20c9c29c68
travis: switch to the latest version of the fuzzit CLI
...
I was informed that fuzzit-1.1 is going to be deprecated soon. Generally
the latest version isn't recommened because it's still in beta and theoretically
might be backwards incompatible but let's try rolling forward to avoid PRs
like this going forward. We can always roll it back :-)
2019-09-07 00:06:36 +03:00
Fabian Henneke
d45ee2f31a
udev: Add id program and rule for FIDO security tokens
...
Add a fido_id program meant to be run for devices in the hidraw
subsystem via an IMPORT directive. The program parses the HID report
descriptor and assigns the ID_SECURITY_TOKEN environment variable if a
declared usage matches the FIDO_CTAPHID_USAGE declared in the FIDO CTAP
specification. This replaces the previous approach of whitelisting all
known security token models manually.
This commit is accompanied by a test suite and a fuzzer target for the
descriptor parsing routine.
Fixes : #11996 .
2019-09-07 02:23:58 +09:00