]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
4 years agopo: Translated using Weblate (Kabyle) 20924/head
Slimane Selyan Amiri [Sun, 3 Oct 2021 16:05:00 +0000 (18:05 +0200)] 
po: Translated using Weblate (Kabyle)

Currently translated at 2.1% (4 of 189 strings)

Co-authored-by: Slimane Selyan Amiri <selyan.kab@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/kab/
Translation: systemd/main

4 years agopo: Translated using Weblate (Croatian)
Gogo Gogsi [Sun, 3 Oct 2021 16:05:00 +0000 (18:05 +0200)] 
po: Translated using Weblate (Croatian)

Currently translated at 100.0% (189 of 189 strings)

Co-authored-by: Gogo Gogsi <linux.hr@protonmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/hr/
Translation: systemd/main

4 years agoMerge pull request #20886 from bluca/license
Luca Boccassi [Fri, 1 Oct 2021 21:57:11 +0000 (22:57 +0100)] 
Merge pull request #20886 from bluca/license

SPDX: add README and license texts

4 years agopo: Update translation files
Weblate [Fri, 1 Oct 2021 16:26:17 +0000 (18:26 +0200)] 
po: Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/
Translation: systemd/main

4 years agoAdd all other applicable licenses under LICENSES/ 20886/head
Luca Boccassi [Wed, 29 Sep 2021 21:10:34 +0000 (22:10 +0100)] 
Add all other applicable licenses under LICENSES/

License texts copied from:

https://github.com/spdx/license-list-data/blob/master/text/

4 years agoadd LICENSES/README.md explaining the license situation
Luca Boccassi [Wed, 29 Sep 2021 17:42:57 +0000 (18:42 +0100)] 
add LICENSES/README.md explaining the license situation

4 years agoman: add licenses to all files that lack one
Luca Boccassi [Fri, 1 Oct 2021 10:44:33 +0000 (11:44 +0100)] 
man: add licenses to all files that lack one

Documentation is licensed under LGPL-2.1-or-later.
Scripts are MIT to facilitate reuse.
Examples are relicensed to CC0-1.0 to maximise copy-and-paste
for users, with permission from authors.

4 years agotree-wide: fix SPDX short identifier for LGPL-2.1-or-later
Luca Boccassi [Wed, 29 Sep 2021 17:16:09 +0000 (18:16 +0100)] 
tree-wide: fix SPDX short identifier for LGPL-2.1-or-later

https://spdx.dev/ids/#:~:text=Allowing%20later%20versions%20of%20a%20license
https://spdx.org/licenses/LGPL-2.1-or-later.html

4 years agoMerge pull request #20907 from keszybz/licensing-cleanup
Luca Boccassi [Fri, 1 Oct 2021 16:26:08 +0000 (17:26 +0100)] 
Merge pull request #20907 from keszybz/licensing-cleanup

Licensing cleanup

4 years agoxorg/50-systemd-user: add a full license header 20907/head
Zbigniew Jędrzejewski-Szmek [Fri, 1 Oct 2021 11:05:51 +0000 (13:05 +0200)] 
xorg/50-systemd-user: add a full license header

This file is installed onto user systems, so it should have the full
header that says where it came from.

4 years agolicensing: add forgotten spdx headers
Zbigniew Jędrzejewski-Szmek [Fri, 1 Oct 2021 11:04:32 +0000 (13:04 +0200)] 
licensing: add forgotten spdx headers

Those are all "our" files, but we forgot to add the headers,
most likely because of non-standard file extensions.

4 years agolicensing: add missing header to one .network file
Zbigniew Jędrzejewski-Szmek [Fri, 1 Oct 2021 10:54:06 +0000 (12:54 +0200)] 
licensing: add missing header to one .network file

It should have the full header because it will be installed onto
user systems like the other .network files.

4 years agolicensing: add spdx header to chromiumos helper, move license file
Zbigniew Jędrzejewski-Szmek [Fri, 1 Oct 2021 10:49:36 +0000 (12:49 +0200)] 
licensing: add spdx header to chromiumos helper, move license file

It makes it easier to process the license automatically like other files.
The text of the license in tools/chromiumos/LICENSE matches
https://spdx.org/licenses/BSD-3-Clause.html exactly.

4 years agolicensing: add spdx to our .cocci files
Zbigniew Jędrzejewski-Szmek [Fri, 1 Oct 2021 10:28:36 +0000 (12:28 +0200)] 
licensing: add spdx to our .cocci files

Since those are chunks of code based on our codebase, it's easiest to use the
same license.

4 years agolicensing: add header to POTFILES.in
Zbigniew Jędrzejewski-Szmek [Fri, 1 Oct 2021 10:21:09 +0000 (12:21 +0200)] 
licensing: add header to POTFILES.in

This is just a stupid file list, but without the header the file shows
up on the list of files without a header. I checked that 'systemd-update-po'
still works, so I think it's OK to add this.

4 years agolicensing: add missing license headers on translation files
Zbigniew Jędrzejewski-Szmek [Fri, 1 Oct 2021 10:19:43 +0000 (12:19 +0200)] 
licensing: add missing license headers on translation files

Also make the headers more alike for consistency.

4 years agoci: use LGPLv2+ for all our ci configuration
Zbigniew Jędrzejewski-Szmek [Fri, 1 Oct 2021 10:10:22 +0000 (12:10 +0200)] 
ci: use LGPLv2+ for all our ci configuration

4 years agogithub: use the same headers on yaml files
Zbigniew Jędrzejewski-Szmek [Fri, 1 Oct 2021 10:09:20 +0000 (12:09 +0200)] 
github: use the same headers on yaml files

Also adjust the mention of location of mkosi files,
follow-up for d55ad7fe96eb1edf438a7a41a465723bd29d4b10.

4 years agolicensing: say that our github docs are LGPLv2.1+
Zbigniew Jędrzejewski-Szmek [Fri, 1 Oct 2021 10:02:07 +0000 (12:02 +0200)] 
licensing: say that our github docs are LGPLv2.1+

This mirros what 0aff7b7584 did for docs/.

4 years agomount-util: fix fd_is_mount_point() when both the parent and directory are network fs
Franck Bui [Thu, 30 Sep 2021 12:05:36 +0000 (14:05 +0200)] 
mount-util: fix fd_is_mount_point() when both the parent and directory are network fs

The second call to name_to_handle_at_loop() didn't check for the specific
errors that can happen when the parent dir is mounted by nfs and instead of
falling back like it's done for the child dir, fd_is_mount_point() failed in
this case.

4 years agoMerge pull request #20894 from andir/editorconfig
Zbigniew Jędrzejewski-Szmek [Fri, 1 Oct 2021 08:51:48 +0000 (10:51 +0200)] 
Merge pull request #20894 from andir/editorconfig

Set maximum line length in editorconfig for C and XML files

4 years agoreduce the fuzz values in evdev hwdb for Asus UX362FA
Lukas Senionis [Thu, 30 Sep 2021 18:31:26 +0000 (21:31 +0300)] 
reduce the fuzz values in evdev hwdb for Asus UX362FA

4 years agoMerge pull request #20777 from benzea/benzea/fix-seccomp-filter
Yu Watanabe [Fri, 1 Oct 2021 06:12:55 +0000 (15:12 +0900)] 
Merge pull request #20777 from benzea/benzea/fix-seccomp-filter

seccomp: Always install filters for native architecture

4 years agonetworkd-test: fix resolved_domain_restricted_dns
Michael Biebl [Thu, 30 Sep 2021 23:00:28 +0000 (01:00 +0200)] 
networkd-test: fix resolved_domain_restricted_dns

megasearch.net was meant to be a non-existing bogus domain, and had been
for a long time. But it seems some domain grabber recently registered
it, and it's an actual thing now:

  $ host megasearch.net
  megasearch.net has address 207.148.248.143

This causes the test to fail randomly.

Use search.example.com instead which yields

  $ host search.example.com
  Host search.example.com not found: 3(NXDOMAIN)

Fixes: #18357
4 years agoMerge pull request #20884 from mrc0mmand/to-shellcheck-or-not-to-shellcheck
Luca Boccassi [Thu, 30 Sep 2021 19:53:00 +0000 (20:53 +0100)] 
Merge pull request #20884 from mrc0mmand/to-shellcheck-or-not-to-shellcheck

tree-wide: the last batch of shellcheck shenanigans

4 years agotest: use a less restrictive portable profile when running w/ sanitizers 20777/head
Frantisek Sumsal [Thu, 30 Sep 2021 12:14:19 +0000 (14:14 +0200)] 
test: use a less restrictive portable profile when running w/ sanitizers

Since f833df3 we now actually use the seccomp rules defined in portable
profiles. However, the default one is too restrictive for sanitizers, as
it blocks certain syscall required by LSan. Mitigate this by using the
'trusted' profile when running TEST-29-PORTABLE under sanitizers.

4 years agoeditorconfig: set maximum line length to 109 for man/*.xml files 20894/head
Andreas Rammhold [Thu, 30 Sep 2021 11:44:26 +0000 (13:44 +0200)] 
editorconfig: set maximum line length to 109 for man/*.xml files

4 years agoeditorconfig: enforce maximum line length in .c and .h files
Andreas Rammhold [Thu, 30 Sep 2021 11:40:51 +0000 (13:40 +0200)] 
editorconfig: enforce maximum line length in .c and .h files

4 years agoci: introduce Super-Linter for shell scripts 20884/head
Frantisek Sumsal [Wed, 29 Sep 2021 20:08:51 +0000 (22:08 +0200)] 
ci: introduce Super-Linter for shell scripts

See: https://github.com/marketplace/actions/super-linter

4 years agotools: shellcheck-ify tool scripts
Frantisek Sumsal [Wed, 29 Sep 2021 19:28:55 +0000 (21:28 +0200)] 
tools: shellcheck-ify tool scripts

4 years agotest: shellcheck-ify test scripts
Frantisek Sumsal [Wed, 29 Sep 2021 18:30:08 +0000 (20:30 +0200)] 
test: shellcheck-ify test scripts

4 years agotest: drop an unused file
Frantisek Sumsal [Thu, 30 Sep 2021 10:11:27 +0000 (12:11 +0200)] 
test: drop an unused file

4 years agotest: Add failing/non-failing syscall filter test setting architecture
Benjamin Berg [Fri, 24 Sep 2021 11:35:34 +0000 (13:35 +0200)] 
test: Add failing/non-failing syscall filter test setting architecture

This adds a high level test verifying that syscall filtering in
combination with a simple architecture filter for the "native"
architecture works fine.

4 years agotest: Check that "native" architecture is always filtered
Benjamin Berg [Fri, 17 Sep 2021 12:00:39 +0000 (14:00 +0200)] 
test: Check that "native" architecture is always filtered

4 years agoseccomp: Always install filters for native architecture
Benjamin Berg [Fri, 17 Sep 2021 11:05:32 +0000 (13:05 +0200)] 
seccomp: Always install filters for native architecture

The commit 6597686865ff ("seccomp: don't install filters for archs that
can't use syscalls") introduced a regression where filters may not be
installed for the "native" architecture. This means that setting
SystemCallArchitectures=native for a unit effectively disables the
SystemCallFilter= and SystemCallLog= options.

Conceptually, we have two filter stages:
 1. architecture used for syscall (SystemCallArchitectures=)
 2. syscall + architecture combination (SystemCallFilter=)

The above commit tried to optimize the filter generation by skipping the
second level filtering when it is not required.

However, systemd will never fully block the "native" architecture using
the first level filter. This makes the code a lot simpler, as systemd
can execve() the target binary using its own architecture. And, it
should be perfectly fine as the "native" architecture will always be the
one with the most restrictive seccomp filtering.

Said differently, the bug arises because (on x86_64):
 1. x86_64 is permitted by libseccomp already
 2. native != x86_64
 3. the loop wants to block x86_64 because the permitted set only
    contains "native" (i.e. "native" != "x86_64")
 4. x86_64 is marked as blocked in seccomp_local_archs

Thereby we have an inconsistency, where it is marked as blocked in the
seccomp_local_archs array but it is allowed by libseccomp. i.e. we will
skip generating filter stage 2 without having stage 1 in place.

The fix is simple, we just skip the native architecture when looping
seccomp_local_archs. This way the inconsistency cannot happen.

4 years agodocs: Fixing typo in systemd.device man page and README.
alexlzhu [Wed, 29 Sep 2021 20:41:23 +0000 (13:41 -0700)] 
docs: Fixing typo in systemd.device man page and README.

systemd-udevd.service listens to kernel uevents and is needed for device
units to be available.

systemd-udevd.service is misspelled as systemd-udev.service in a couple places.

Fixing typo.

4 years agoci: shellcheck-ify CI scripts
Frantisek Sumsal [Wed, 29 Sep 2021 17:55:24 +0000 (19:55 +0200)] 
ci: shellcheck-ify CI scripts

4 years agoMerge pull request #20876 from poettering/openssl3-creds
Yu Watanabe [Wed, 29 Sep 2021 19:01:57 +0000 (04:01 +0900)] 
Merge pull request #20876 from poettering/openssl3-creds

creds-util: switch to OpenSSL 3.0 APIs

4 years agoMerge pull request #20883 from bluca/bpf_header_license
Luca Boccassi [Wed, 29 Sep 2021 17:05:28 +0000 (18:05 +0100)] 
Merge pull request #20883 from bluca/bpf_header_license

headers: update bpf_insn.h to dual license

4 years agoMerge pull request #20219 from khfeng/use-intel-hid-rfkill
Lennart Poettering [Wed, 29 Sep 2021 16:53:22 +0000 (18:53 +0200)] 
Merge pull request #20219 from khfeng/use-intel-hid-rfkill

hwdb: Remove intel-hid rfkill mask

4 years agodocs: mention that contributed code must be compatible with GPL-2.0-or-later explicitly 20883/head
Luca Boccassi [Wed, 29 Sep 2021 16:42:51 +0000 (17:42 +0100)] 
docs: mention that contributed code must be compatible with GPL-2.0-or-later explicitly

4 years agoheaders: update bpf_insn.h to dual license
Luca Boccassi [Wed, 29 Sep 2021 16:40:52 +0000 (17:40 +0100)] 
headers: update bpf_insn.h to dual license

This header is copied from the kernel. It was relicensed from GPL-2.0-only
to GPL-2.0-only OR BSD-2-Clause, so update our SPDX tag accordingly.

For more details and ACKS from all copyright holders authorizing the
license change see:

https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=d75fe9cb1dd062684c9fb8a4581738170365dc06

4 years agocore/mount: add implicit unit dependencies even if when mount unit is generated from...
Yu Watanabe [Sun, 29 Aug 2021 12:20:43 +0000 (21:20 +0900)] 
core/mount: add implicit unit dependencies even if when mount unit is generated from /proc/self/mountinfo

Hopefully fixes #20566.

4 years agoMerge pull request #20824 from yuwata/sd-dhcp6-client-cleanups
Yu Watanabe [Wed, 29 Sep 2021 15:08:16 +0000 (00:08 +0900)] 
Merge pull request #20824 from yuwata/sd-dhcp6-client-cleanups

sd-dhcp6-client: several cleanups for parsing options

4 years agoMerge pull request #20226 from yuwata/network-introduce-source-and-status
Yu Watanabe [Wed, 29 Sep 2021 15:06:17 +0000 (00:06 +0900)] 
Merge pull request #20226 from yuwata/network-introduce-source-and-status

network: introduce NetworkConfigSource and NetworkConfigState

4 years agoMerge pull request #20871 from mrc0mmand/udevadm-property-value
Yu Watanabe [Wed, 29 Sep 2021 15:05:02 +0000 (00:05 +0900)] 
Merge pull request #20871 from mrc0mmand/udevadm-property-value

udev: teach udevadm --property=NAME and --value options

4 years agoMerge pull request #20877 from yuwata/network-test-mode
Yu Watanabe [Wed, 29 Sep 2021 15:04:41 +0000 (00:04 +0900)] 
Merge pull request #20877 from yuwata/network-test-mode

network: do not update state files when running in test mode

4 years agodoc: network: Move "Independent=" flag to the VXLAN section (#20881)
Marcel Menzel [Wed, 29 Sep 2021 14:19:20 +0000 (16:19 +0200)] 
doc: network: Move "Independent=" flag to the VXLAN section (#20881)

4 years agoMerge pull request #20823 from mrc0mmand/test-storage-iscsi
Yu Watanabe [Wed, 29 Sep 2021 14:17:43 +0000 (23:17 +0900)] 
Merge pull request #20823 from mrc0mmand/test-storage-iscsi

test: iSCSI-related udev tests

4 years agohwdb: sensors: Fix some modalias matches no longer working with newer kernels
Hans de Goede [Tue, 31 Aug 2021 13:49:33 +0000 (15:49 +0200)] 
hwdb: sensors: Fix some modalias matches no longer working with newer kernels

Kernels >= 5.8 have added new fields to the dmi/id/modalias file in the
middle of the modalias (instead of adding them at the end).

Specifically new ":br<value>:" and (optional) ":efr<value>:" fields have
been added between the ":bd<value>:" and ":svn<value>:" fields.

Note the 5.13.0 and 5.14.0 kernels also added a new ":sku<value>:" field
between the ":pvr<value>:" and ":rvn<value>:" fields, this has been fixed
in later 5.13.y and 5.14.y releases, by moving the sku field to the end:
https://lore.kernel.org/lkml/20210831130508.14511-1-hdegoede@redhat.com/

Unfortunately the same cannot be done for the new br and efr fields since
those have been added more then a year ago and hwdb even already has some
newer entries relying on the new br field being there (and thus not working
with older kernels).

Fix the issue with the br and efr fields through the following changes:

1. Replace any matches on ":br<value>" from newer entries with an '*'
2. Replace "bd<value>:svn<value>" matches with: "bd<value>:*svn<value>"
   inserting an '*' where newer kernels will have the new br + efr fields

This makes these matches working with old as well as new kernels.

Link: https://github.com/systemd/systemd/issues/20550
Link: https://github.com/systemd/systemd/pull/20562
4 years agoRevert "ci: temporarily set -Wno-deprecated-declarations in Packit" 20876/head
Lennart Poettering [Wed, 29 Sep 2021 12:40:34 +0000 (14:40 +0200)] 
Revert "ci: temporarily set -Wno-deprecated-declarations in Packit"

This reverts commit af861917c5118cb9f1490f407d86f40fd5e01437.

4 years agoopenssl-util: use EVP API to get RSA bits
Lennart Poettering [Wed, 29 Sep 2021 13:03:44 +0000 (15:03 +0200)] 
openssl-util: use EVP API to get RSA bits

4 years agocreds-util: switch to OpenSSL 3.0 APIs
Lennart Poettering [Wed, 29 Sep 2021 07:47:08 +0000 (09:47 +0200)] 
creds-util: switch to OpenSSL 3.0 APIs

Let's switch from the low-level SHA256 APIs to EVP APIs. The former are
deprecated on OpenSSL 3.0, the latter are supported both by old
OpenSSL and by OpenSSL 3.0, hence are the better choice.

Fixes: #20775
4 years agobasic/unit-file: don't filter out names starting with dot
Anita Zhang [Wed, 29 Sep 2021 06:52:39 +0000 (23:52 -0700)] 
basic/unit-file: don't filter out names starting with dot

Fixes #20859
Reverts 3796bdc55d6ba499d1049f749072218879e619a7

4 years agocore: drop "const" from NeedsDaemonReload unit dbus property
Lennart Poettering [Wed, 29 Sep 2021 08:30:17 +0000 (10:30 +0200)] 
core: drop "const" from NeedsDaemonReload unit dbus property

It's not "const", it can change any time if people change the fs, and we
don#t send out notifications for it. Hence don't claim it was const.
(Otherwise clients might cache it, but they should not)

Prompted-by: #20792
4 years agoresolvconf-compat: make "-u" operation a NOP
Lennart Poettering [Wed, 29 Sep 2021 08:48:24 +0000 (10:48 +0200)] 
resolvconf-compat: make "-u" operation a NOP

According to the various man pages of "resolvconf" the -u switch is for:

"-u Just run the update scripts (if updating is enabled)."

"-u Force resolvconf to update all its subscribers. resolvconf does not
    update the subscribers when adding a resolv.conf that matches what
    it already has for that interface."

We have no "subscribers", we ourselves are the only "subscriber" we
support. Hence it's probably better to ignore such a request and make it
a NOP, then to fail.

Fixes: #20748
4 years agoRevert "CI: run unit tests in a network namespace" 20877/head
Yu Watanabe [Wed, 29 Sep 2021 08:37:21 +0000 (17:37 +0900)] 
Revert "CI: run unit tests in a network namespace"

This reverts commit 8b036b223a40fac9e53189db05d3798ec11eb475.

4 years agonetwork: do not configure anything when running in test mode
Yu Watanabe [Wed, 29 Sep 2021 09:19:38 +0000 (18:19 +0900)] 
network: do not configure anything when running in test mode

4 years agonetwork: do not update state files when running in test mode
Yu Watanabe [Wed, 29 Sep 2021 08:32:55 +0000 (17:32 +0900)] 
network: do not update state files when running in test mode

Fixes #20862.

4 years agoMerge pull request #20802 from yuwata/network-receive-nl80211-multicast-messages
Yu Watanabe [Wed, 29 Sep 2021 11:49:38 +0000 (20:49 +0900)] 
Merge pull request #20802 from yuwata/network-receive-nl80211-multicast-messages

network: receive nl80211 multicast messages

4 years agoudev: teach udevadm --property=NAME and --value options 20871/head
Frantisek Sumsal [Tue, 28 Sep 2021 19:18:08 +0000 (21:18 +0200)] 
udev: teach udevadm --property=NAME and --value options

which allows limiting the properties listed by the `--query=property` option
(and optionally listing only the respective values).

4 years agobasic: introduce test_strv_split_and_extend()
Frantisek Sumsal [Wed, 29 Sep 2021 10:46:11 +0000 (12:46 +0200)] 
basic: introduce test_strv_split_and_extend()

4 years agoCI: run GCC unit test job on push to main
Luca Boccassi [Wed, 29 Sep 2021 10:36:22 +0000 (11:36 +0100)] 
CI: run GCC unit test job on push to main

Allows to get coverage data on coveralls.io

4 years agoudev: sort the options alphabetically
Frantisek Sumsal [Tue, 28 Sep 2021 18:08:05 +0000 (20:08 +0200)] 
udev: sort the options alphabetically

4 years agotest: iSCSI-related udev tests 20823/head
Frantisek Sumsal [Wed, 22 Sep 2021 17:26:45 +0000 (19:26 +0200)] 
test: iSCSI-related udev tests

4 years agotest: save journals of only failing test cases in TEST-64
Frantisek Sumsal [Wed, 22 Sep 2021 09:24:48 +0000 (11:24 +0200)] 
test: save journals of only failing test cases in TEST-64

4 years agotest: explicitly report if we fail to install a file into the image
Frantisek Sumsal [Wed, 22 Sep 2021 08:59:52 +0000 (10:59 +0200)] 
test: explicitly report if we fail to install a file into the image

4 years agotest: add an iSCSI helper
Frantisek Sumsal [Tue, 21 Sep 2021 19:32:30 +0000 (21:32 +0200)] 
test: add an iSCSI helper

4 years agotest: sort the features alphabetically
Frantisek Sumsal [Tue, 21 Sep 2021 18:56:24 +0000 (20:56 +0200)] 
test: sort the features alphabetically

4 years agoMerge pull request #20676 from gogsbread/sysctl-minimize-sideeffect
Lennart Poettering [Wed, 29 Sep 2021 07:17:48 +0000 (09:17 +0200)] 
Merge pull request #20676 from gogsbread/sysctl-minimize-sideeffect

sysctl: minimize side effects when running `systemd-sysctl`

4 years agonetwork: receive genl multicast messages about wlan connections 20802/head
Yu Watanabe [Mon, 20 Sep 2021 19:57:43 +0000 (04:57 +0900)] 
network: receive genl multicast messages about wlan connections

4 years agonetwork: move error handling of enumerating configs to caller side
Yu Watanabe [Tue, 21 Sep 2021 23:25:36 +0000 (08:25 +0900)] 
network: move error handling of enumerating configs to caller side

4 years agonetwork: make manager_enumerate_internal() take sd_netlink object
Yu Watanabe [Mon, 20 Sep 2021 19:44:00 +0000 (04:44 +0900)] 
network: make manager_enumerate_internal() take sd_netlink object

Preparation for dumping information through generic netlink.

4 years agonetwork: split manager_new() into two part
Yu Watanabe [Tue, 21 Sep 2021 23:36:11 +0000 (08:36 +0900)] 
network: split manager_new() into two part

Initialize dbus or netlink is not necessary for fuzzers.

4 years agowifi-util: introduce nl80211_cmd_to_string()
Yu Watanabe [Tue, 21 Sep 2021 06:14:59 +0000 (15:14 +0900)] 
wifi-util: introduce nl80211_cmd_to_string()

4 years agonetwork: rename wifi_iftype -> wlan_iftype
Yu Watanabe [Mon, 20 Sep 2021 21:29:29 +0000 (06:29 +0900)] 
network: rename wifi_iftype -> wlan_iftype

4 years agowifi-util: move, rename, and expose wifi_iftype_to_string()
Yu Watanabe [Mon, 20 Sep 2021 21:25:53 +0000 (06:25 +0900)] 
wifi-util: move, rename, and expose wifi_iftype_to_string()

4 years agosd-netlink: add several attributes for nl80211
Yu Watanabe [Mon, 20 Sep 2021 18:18:50 +0000 (03:18 +0900)] 
sd-netlink: add several attributes for nl80211

4 years agosd-netlink, wifi-util: fix attribute type of NL80211_ATTR_SSID
Yu Watanabe [Tue, 21 Sep 2021 17:30:03 +0000 (02:30 +0900)] 
sd-netlink, wifi-util: fix attribute type of NL80211_ATTR_SSID

4 years agowifi-util: add "ret_" prefix for arguments which store results
Yu Watanabe [Tue, 21 Sep 2021 17:49:29 +0000 (02:49 +0900)] 
wifi-util: add "ret_" prefix for arguments which store results

4 years agosd-netlink: introduce sd_netlink_message_read_data_suffix0()
Yu Watanabe [Tue, 21 Sep 2021 17:17:11 +0000 (02:17 +0900)] 
sd-netlink: introduce sd_netlink_message_read_data_suffix0()

4 years agosd-netlink: make sd_genl_message_new() or friends return -EOPNOTSUPP if a module...
Yu Watanabe [Wed, 22 Sep 2021 05:06:31 +0000 (14:06 +0900)] 
sd-netlink: make sd_genl_message_new() or friends return -EOPNOTSUPP if a module is not supported by the kernel

4 years agosd-netlink: also check multicast group to find suitable match callback
Yu Watanabe [Tue, 21 Sep 2021 07:22:29 +0000 (16:22 +0900)] 
sd-netlink: also check multicast group to find suitable match callback

4 years agosd-netlink: allow to set dump flag for genl or netfilter messages
Yu Watanabe [Mon, 20 Sep 2021 20:05:39 +0000 (05:05 +0900)] 
sd-netlink: allow to set dump flag for genl or netfilter messages

4 years agosd-netlink: add type safe macro for sd_genl_add_match()
Yu Watanabe [Mon, 20 Sep 2021 19:42:37 +0000 (04:42 +0900)] 
sd-netlink: add type safe macro for sd_genl_add_match()

4 years agosd-netlink: minor coding style fixes
Yu Watanabe [Tue, 21 Sep 2021 06:27:13 +0000 (15:27 +0900)] 
sd-netlink: minor coding style fixes

4 years agobasic/linux: update nl80211.h
Yu Watanabe [Tue, 21 Sep 2021 06:10:56 +0000 (15:10 +0900)] 
basic/linux: update nl80211.h

4 years agosd-dhcp6-client: rename dhcp6_lease_set_dns() -> dhcp6_lease_add_dns() 20824/head
Yu Watanabe [Fri, 24 Sep 2021 12:03:24 +0000 (21:03 +0900)] 
sd-dhcp6-client: rename dhcp6_lease_set_dns() -> dhcp6_lease_add_dns()

As it is allowed that multiple DNS server options appear in the message.

4 years agosd-dhcp6-client: do not merge NTP and SNTP options
Yu Watanabe [Fri, 24 Sep 2021 06:00:43 +0000 (15:00 +0900)] 
sd-dhcp6-client: do not merge NTP and SNTP options

Previously, SNTP option is ignored when it appears after NTP option(s),
but merged later NTP options when it appears first.
This makes split the NTP and SNTP addresses, and use SNTP addresses only
when no NTP option is provided.

4 years agosd-dhcp6-client: support multiple NTP server options
Yu Watanabe [Fri, 24 Sep 2021 05:09:14 +0000 (14:09 +0900)] 
sd-dhcp6-client: support multiple NTP server options

Also, it is allowed that the suboption appears multiple times, and each
suboption contains one NTP server.

4 years agosd-dhcp6-client: support multiple domains
Yu Watanabe [Fri, 24 Sep 2021 05:16:44 +0000 (14:16 +0900)] 
sd-dhcp6-client: support multiple domains

4 years agosd-dhcp6-client: make dhcp6_lease_free() accepts NULL
Yu Watanabe [Fri, 24 Sep 2021 14:45:13 +0000 (23:45 +0900)] 
sd-dhcp6-client: make dhcp6_lease_free() accepts NULL

4 years agosd-dhcp6-client: drop domains_count and ntp_fqdn_count
Yu Watanabe [Fri, 24 Sep 2021 05:05:29 +0000 (14:05 +0900)] 
sd-dhcp6-client: drop domains_count and ntp_fqdn_count

4 years agosd-dhcp6-client: use dhcp6_option_parse() in client_parse_message()
Yu Watanabe [Fri, 24 Sep 2021 04:35:36 +0000 (13:35 +0900)] 
sd-dhcp6-client: use dhcp6_option_parse() in client_parse_message()

4 years agosd-dhcp6-client: constify several arguments
Yu Watanabe [Fri, 24 Sep 2021 04:34:14 +0000 (13:34 +0900)] 
sd-dhcp6-client: constify several arguments

4 years agosd-dhcp6-client: slightly modernize dhcp6_option_parse_domainname()/domainname_list()
Yu Watanabe [Thu, 23 Sep 2021 18:49:14 +0000 (03:49 +0900)] 
sd-dhcp6-client: slightly modernize dhcp6_option_parse_domainname()/domainname_list()

4 years agosd-dhcp6-client: fix buffer size calculation in dhcp6_option_parse_ip6addrs()
Yu Watanabe [Thu, 23 Sep 2021 16:24:52 +0000 (01:24 +0900)] 
sd-dhcp6-client: fix buffer size calculation in dhcp6_option_parse_ip6addrs()

GREEDY_REALLOC() takes number of elements, not buffer size.

This also rename dhcp6_option_parse_ip6addrs() to
dhcp6_option_parse_addresses().

4 years agosd-dhcp6-client: modernize dhcp6_option_parse_ia()
Yu Watanabe [Thu, 23 Sep 2021 15:50:01 +0000 (00:50 +0900)] 
sd-dhcp6-client: modernize dhcp6_option_parse_ia()

This makes
- the function not update the arguments for storing results on error,
- use dhcp6_option_parse() to parse sub options,
- ignore all errors, except for -ENOMEM, in parsing sub options,
- update log messages.

4 years agosd-dhcp6-client: make dhcp6_option_parse_status() also parse error message
Yu Watanabe [Thu, 23 Sep 2021 07:30:40 +0000 (16:30 +0900)] 
sd-dhcp6-client: make dhcp6_option_parse_status() also parse error message

This also introduce dhcp6_option_parse_ia_options(). Currently, it is
assumed that each IA address or PD prefix may contain a status sub-option.
But it is not prohibited that other sub-options or multiple status
options are contained.

4 years agotest: add tests for reading unaligned data
Yu Watanabe [Mon, 27 Sep 2021 15:48:59 +0000 (00:48 +0900)] 
test: add tests for reading unaligned data