]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
3 years agoMerge pull request #18254 from keszybz/trivial-cleanups
Luca Boccassi [Fri, 15 Jan 2021 14:00:06 +0000 (14:00 +0000)] 
Merge pull request #18254 from keszybz/trivial-cleanups

Assorted small cleanups

3 years agoMerge pull request #18214 from elmarco/vsock
Lennart Poettering [Fri, 15 Jan 2021 10:43:15 +0000 (11:43 +0100)] 
Merge pull request #18214 from elmarco/vsock

udev: allow kvm group to access vhost net and vsock devices

3 years agoMerge pull request #18197 from weblate/weblate-systemd-master
Zbigniew Jędrzejewski-Szmek [Fri, 15 Jan 2021 10:10:43 +0000 (11:10 +0100)] 
Merge pull request #18197 from weblate/weblate-systemd-master

Translations update from Weblate

3 years agoMerge pull request #18244 from anitazha/systemctledit
Zbigniew Jędrzejewski-Szmek [Fri, 15 Jan 2021 10:07:02 +0000 (11:07 +0100)] 
Merge pull request #18244 from anitazha/systemctledit

systemctl-edit fixes

3 years agobasic/env-util: modernization 18254/head
Zbigniew Jędrzejewski-Szmek [Fri, 15 Jan 2021 09:23:57 +0000 (10:23 +0100)] 
basic/env-util: modernization

3 years agonspawn: minor modernization
Zbigniew Jędrzejewski-Szmek [Fri, 11 Dec 2020 11:24:26 +0000 (12:24 +0100)] 
nspawn: minor modernization

3 years agosysctl.d: shorten comment
Zbigniew Jędrzejewski-Szmek [Thu, 10 Dec 2020 16:13:12 +0000 (17:13 +0100)] 
sysctl.d: shorten comment

The grammar was a bit suspect in a few places...

3 years agoman: s/dash/mdash/
Zbigniew Jędrzejewski-Szmek [Thu, 10 Dec 2020 16:05:42 +0000 (17:05 +0100)] 
man: s/dash/mdash/

3 years agoMerge pull request #18124 from ryncsn/initrd
Lennart Poettering [Fri, 15 Jan 2021 08:58:17 +0000 (09:58 +0100)] 
Merge pull request #18124 from ryncsn/initrd

initrd: add an env variable to accept non-ramfs rootfs

3 years agoAdd truncate: to StandardOutput= etc.
Lucas Werkmeister [Thu, 14 Jan 2021 21:32:55 +0000 (22:32 +0100)] 
Add truncate: to StandardOutput= etc.

This adds the ability to specify truncate:PATH for StandardOutput= and
StandardError=, similar to the existing append:PATH. The code is mostly
copied from the related append: code. Fixes #8983.

3 years agosystemctl-edit: Add missing ret_dropin_paths argument in retry path 18244/head
Anita Zhang [Thu, 14 Jan 2021 08:17:41 +0000 (00:17 -0800)] 
systemctl-edit: Add missing ret_dropin_paths argument in retry path

find_paths_to_edit() makes 2 calls to unit_find_paths(), one of which is
a retry client-side. ret_dropin_paths should be passed the same in
both cases.

3 years agosystemctl-edit: fix abort in find_paths_to_edit()
Anita Zhang [Thu, 14 Jan 2021 08:02:09 +0000 (00:02 -0800)] 
systemctl-edit: fix abort in find_paths_to_edit()

After 85c5d313b5c92115f5c77663e736bcf21e99f02f, if you, for example,
create a drop-in for -.slice without a corresponding -.slice file, you will
get the following:

  # put some valid stuff in /etc/systemd/system/-.slice.d/override.conf

  [root@image ~]# systemctl daemon-reload
  [root@image ~]# systemctl edit -- -.slice
  Assertion 'path' failed at src/systemctl/systemctl-edit.c:425, function
  find_paths_to_edit(). Aborting.
  Aborted

The aforementioned commit sets the ret_dropin_paths argument for
unit_find_paths(). Thus, unit_find_paths() returns 1 in the example above
because it finds a relevant drop-in. However find_paths_to_edit() was written
to expect 1 only if the unit file itself exists (it does not in this example).

To make this behave more like the version of `systemctl edit` prior to
this commit, add an additional check so the code enters the
"unit file not found" code branch.

3 years agomkosi: Only reset file permissions when $SRCDIR is not a mountpoint
Daan De Meyer [Thu, 14 Jan 2021 18:33:42 +0000 (19:33 +0100)] 
mkosi: Only reset file permissions when $SRCDIR is not a mountpoint

If $SRCDIR is mounted into the build image (via mkosi overrides),
let's not reset the permissions fo the source tree so as to not
modify the original files on the host.

3 years agoMerge pull request #18245 from poettering/unit-file-install-fixes
Luca Boccassi [Thu, 14 Jan 2021 18:46:48 +0000 (18:46 +0000)] 
Merge pull request #18245 from poettering/unit-file-install-fixes

minor unit file install fixes

3 years agosystemctl: unit_file_find_fragment() doesn't log about errors, hence do it in the... 18245/head
Lennart Poettering [Thu, 14 Jan 2021 14:02:33 +0000 (15:02 +0100)] 
systemctl: unit_file_find_fragment() doesn't log about errors, hence do it in the caller

3 years agosystemctl: explicitly comment two cases where we don't log on error cases, on purpose
Lennart Poettering [Thu, 14 Jan 2021 14:02:27 +0000 (15:02 +0100)] 
systemctl: explicitly comment two cases where we don't log on error cases, on purpose

3 years agosystemctl: properly initialize return params in all success cases
Lennart Poettering [Thu, 14 Jan 2021 14:01:55 +0000 (15:01 +0100)] 
systemctl: properly initialize return params in all success cases

3 years agounit-file: downgrade log message to debug
Lennart Poettering [Thu, 14 Jan 2021 14:00:41 +0000 (15:00 +0100)] 
unit-file: downgrade log message to debug

In the other error paths unit_file_find_fragment() doesn't log beyond
debug level, i.e. is of the non-logging library-like kind. Make sure
this error path is handled the same, so that the caller can log.

3 years agounit-file: fix indentation
Lennart Poettering [Thu, 14 Jan 2021 14:00:29 +0000 (15:00 +0100)] 
unit-file: fix indentation

3 years agoinitrd: do a debug log if /etc/initrd-release doesn't take effect 18124/head
Kairui Song [Wed, 13 Jan 2021 17:25:20 +0000 (01:25 +0800)] 
initrd: do a debug log if /etc/initrd-release doesn't take effect

Signed-off-by: Kairui Song <kasong@redhat.com>
3 years agoupdate TODO
Lennart Poettering [Thu, 14 Jan 2021 13:14:24 +0000 (14:14 +0100)] 
update TODO

3 years agohwdb: add Cube Mix Plus (i18B) rotation info
krissgjeng [Wed, 13 Jan 2021 23:08:36 +0000 (00:08 +0100)] 
hwdb: add Cube Mix Plus (i18B) rotation info

Added Cube Mix Plus (i18B) Rotation information.
Also Combined the sensor lines with the different Cube i7 stylus models because they use the same ACCEL_MOUNT_MATRIX

3 years agoMerge pull request #18226 from mrc0mmand/actions-flake-workarounds
Luca Boccassi [Thu, 14 Jan 2021 10:00:24 +0000 (10:00 +0000)] 
Merge pull request #18226 from mrc0mmand/actions-flake-workarounds

ci: assorted workarounds for recent flakes

3 years agoTranslated using Weblate (French) 18197/head
Julien Humbert [Thu, 14 Jan 2021 06:37:21 +0000 (07:37 +0100)] 
Translated using Weblate (French)

Currently translated at 100.0% (189 of 189 strings)

Co-authored-by: Julien Humbert <julroy67@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/fr/
Translation: systemd/master

3 years agoTranslated using Weblate (Romanian)
Vlad [Thu, 14 Jan 2021 06:37:21 +0000 (07:37 +0100)] 
Translated using Weblate (Romanian)

Currently translated at 100.0% (189 of 189 strings)

Co-authored-by: Vlad <milovlad@outlook.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/ro/
Translation: systemd/master

3 years agoUpdate translation files
Weblate [Thu, 14 Jan 2021 06:37:20 +0000 (07:37 +0100)] 
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/master

3 years agoTranslated using Weblate (Belarusian)
Zmicer Turok [Thu, 14 Jan 2021 06:37:20 +0000 (07:37 +0100)] 
Translated using Weblate (Belarusian)

Currently translated at 100.0% (189 of 189 strings)

Co-authored-by: Zmicer Turok <nashtlumach@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/be/
Translation: systemd/master

3 years agoAdd install-sysconfdir=no-samples option for (non-)installation of sample configs
Josh Triplett [Wed, 30 Dec 2020 23:11:30 +0000 (15:11 -0800)] 
Add install-sysconfdir=no-samples option for (non-)installation of sample configs

By default, systemd installs various sample configuration files
containing commented-out defaults. Systems seeking to minimize the
number of files in /etc may wish to install directories and
configuration files that have semantic effects, but not install not
commented-out sample configuration files.

Turn install-sysconfdir into a multi-valued option, with a "no-samples"
value to skip installing sample-only configuration files.

3 years agoci: introduce a watchdog for the sanitized unit test run 18226/head
Frantisek Sumsal [Wed, 13 Jan 2021 20:42:13 +0000 (21:42 +0100)] 
ci: introduce a watchdog for the sanitized unit test run

3 years agoci: skip test-execute on GH Actions under ASan
Frantisek Sumsal [Tue, 12 Jan 2021 21:14:59 +0000 (22:14 +0100)] 
ci: skip test-execute on GH Actions under ASan

It seems to suffer from the same issue as on Travis CI, where the test
randomly fails due to timeouts in its subtests.

See: https://github.com/systemd/systemd/issues/10696#issuecomment-758501797

3 years agoudev: add missing short option name
Yu Watanabe [Wed, 13 Jan 2021 15:10:23 +0000 (00:10 +0900)] 
udev: add missing short option name

Follow-up for 4fcc033b5476039a7a8030e1edc261d42cec028b.

Fixes CID#1442307.

3 years agoMerge pull request #18227 from yuwata/network-dhcp6-pd-manage-temporary-address
Lennart Poettering [Wed, 13 Jan 2021 20:52:44 +0000 (21:52 +0100)] 
Merge pull request #18227 from yuwata/network-dhcp6-pd-manage-temporary-address

network: introduce ManageTemporaryAddress= setting in [DHCPv6PrefixDelegation] section

3 years ago hwdb: add Linx Vision 8 rotation information (#18228)
krissgjeng [Wed, 13 Jan 2021 20:52:11 +0000 (21:52 +0100)] 
 hwdb: add Linx Vision 8 rotation information (#18228)

3 years agoci: optimize the sanitized build under gcc as well
Frantisek Sumsal [Wed, 13 Jan 2021 20:48:36 +0000 (21:48 +0100)] 
ci: optimize the sanitized build under gcc as well

3 years agoinitrd: do a debug log if failed to detect rootfs type
Kairui Song [Wed, 13 Jan 2021 16:39:10 +0000 (00:39 +0800)] 
initrd: do a debug log if failed to detect rootfs type

3 years agoinitrd: extend SYSTEMD_IN_INITRD to accept non-ramfs rootfs
Kairui Song [Tue, 12 Jan 2021 16:04:53 +0000 (00:04 +0800)] 
initrd: extend SYSTEMD_IN_INITRD to accept non-ramfs rootfs

Sometimes, non-ramfs initrd root are useful. Eg, for kdump, because
initramfs is memory consuming, so mount a compressed image in earlier
initrd, chroot into it then let systemd do the rest of job is a good
solution.

But systemd doesn't recognize the initrd environment if rootfs is not a
temporary fs. This is a reasonable check, because switch-root in initrd
will wipe the whole rootfs, will be a disaster if there are any
misdetect.

So extend SYSTEMD_IN_INITRD environment variable, now it accepts boolean
value and two extra keyword, "auto" and "lenient". "auto" is same as
before, and it's the default value. "lenient" will let systemd bypass
the rootfs check.

3 years agoMerge pull request #9864 from ximion/master
Yu Watanabe [Wed, 13 Jan 2021 15:20:04 +0000 (00:20 +0900)] 
Merge pull request #9864 from ximion/master

localed: Run locale-gen if available to generate missing locale

3 years agoMerge pull request #18170 from OnkelUlla/udev_introduce_TxQueueLen=_setting
Yu Watanabe [Wed, 13 Jan 2021 15:19:29 +0000 (00:19 +0900)] 
Merge pull request #18170 from OnkelUlla/udev_introduce_TxQueueLen=_setting

udev: introduce TxQueueLength= setting

3 years agonetwork: introduce ManageTemporaryAddress= setting in [DHCPv6PrefixDelegation] section 18227/head
Yu Watanabe [Tue, 12 Jan 2021 21:34:32 +0000 (06:34 +0900)] 
network: introduce ManageTemporaryAddress= setting in [DHCPv6PrefixDelegation] section

The setting is enabled by default, as NDisc also enabled the flag by
default.

Closes #18208.

3 years agonetwork: drop a function argument which is always constant
Yu Watanabe [Tue, 12 Jan 2021 21:20:44 +0000 (06:20 +0900)] 
network: drop a function argument which is always constant

3 years agoAdded option --check-inhibitors for non-tty usage
Felix Stupp [Thu, 29 Oct 2020 11:48:48 +0000 (12:48 +0100)] 
Added option --check-inhibitors for non-tty usage

As described in #2680, systemctl did ignore inhibitors if it is not
attached to a tty to allow scripts to ignore inhibitors automatically.
This pull request preserves this behavior but allows scripts to
explicit check inhibitors if required.

The new parameter '--check-inhibitors=yes' enables this feature.
The old parameter '-i'/'--ignore-inhibitors' was deprecated in favor
of '--check-inhibitors=no', the default behaviour can be specified
with '--check-inhibitors=auto'.
The new parameter is also described in the documentations and shell
completions found here.

3 years agoudev: allow kvm group to access vhost-net device 18214/head
Marc-André Lureau [Wed, 13 Jan 2021 09:12:26 +0000 (13:12 +0400)] 
udev: allow kvm group to access vhost-net device

/dev/vhost-net is a host accelerator for virtio net devices. It has been
long available and used, thus should be safe to all KVM users.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
3 years agoudev: allow kvm group to access vhost-vsock device
Marc-André Lureau [Tue, 12 Jan 2021 12:03:37 +0000 (16:03 +0400)] 
udev: allow kvm group to access vhost-vsock device

/dev/vhost-vsock allows to setup a guest CID and running
state (VHOST_VSOCK_SET_GUEST_CID, VHOST_VSOCK_SET_RUNNING)

All this should be legitimate and safe for KVM users.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
3 years agoudev: make /dev/vsock 0666
Marc-André Lureau [Wed, 13 Jan 2021 08:56:26 +0000 (12:56 +0400)] 
udev: make /dev/vsock 0666

/dev/vsock supports only ioctl (the only ioctl supported is
IOCTL_VM_SOCKETS_GET_LOCAL_CID), so 0666 should be okay, or 0664 if in
the future we will implement some kind of write support exposed only to
user/group.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
3 years agoMerge pull request #18225 from poettering/tmpfiles-argument
Yu Watanabe [Wed, 13 Jan 2021 06:57:42 +0000 (15:57 +0900)] 
Merge pull request #18225 from poettering/tmpfiles-argument

tmpfiles: fix documentation about quoting the "argument" field in tmpfiles.d snippets

3 years agoudev: introduce TxQueueLength= setting 18170/head
Ulrich Ölmann [Wed, 6 Jan 2021 17:43:06 +0000 (18:43 +0100)] 
udev: introduce TxQueueLength= setting

Enable udev to set the transmit queue length of a device via a new directive to
be used in link files. The kernel stores this parameter as an unsigned 32 bit
integer. As typical values currently range in the order of 10 to a few 10,000
packets reduce the domain of valid values for this directive to 0..4294967294
and take the excluded 4294967295 == UINT32_MAX to indicate that the directive
is unset.

3 years agolink-config: amend log message for failed application of settings
Ulrich Ölmann [Wed, 13 Jan 2021 05:26:28 +0000 (06:26 +0100)] 
link-config: amend log message for failed application of settings

This has been forgotten in pull request #17628 ("udev: Add support to
configure Generic Segment Offload"), see [1].

[1] https://github.com/systemd/systemd/pull/17628

3 years agolocaled: Run locale-gen if available to generate missing locale 9864/head
Matthias Klumpp [Fri, 8 Jan 2021 22:59:38 +0000 (23:59 +0100)] 
localed: Run locale-gen if available to generate missing locale

This change improves integration with distributions using locale-gen to
generate missing locale on-demand, like Debian-based distributions
(Debian/Ubuntu/PureOS/Tanglu/...) and Arch Linux.
We only ever enable new locales for generation, and never disable them.
Furthermore, we only generate UTF-8 locale.

This feature is only used if explicitly enabled at compile-time, and
will also be inert at runtime if the locale-gen binary is missing.

3 years agoAdd helper for case-independent string equality checks
Matthias Klumpp [Sat, 10 Oct 2020 02:40:23 +0000 (04:40 +0200)] 
Add helper for case-independent string equality checks

3 years agonetwork: reconfigure interface when wifi iftype is updated
Yu Watanabe [Tue, 12 Jan 2021 14:35:01 +0000 (23:35 +0900)] 
network: reconfigure interface when wifi iftype is updated

Follow-up for a66a402da471f6230ab8674fd2c1df6d918773b5.

Fixes #18059.

3 years agoci: drop the `unbuffer` workaround
Frantisek Sumsal [Tue, 12 Jan 2021 21:13:33 +0000 (22:13 +0100)] 
ci: drop the `unbuffer` workaround

It actually didn't do anything, the issue was somewhere else.

3 years agoimport: mangle untarred OS images after pull-tar, too
Lennart Poettering [Tue, 12 Jan 2021 17:49:11 +0000 (18:49 +0100)] 
import: mangle untarred OS images after pull-tar, too

We do this for import-tar and import-fs, we should do it for pull-tar,
too.

Fixes: #17563
3 years agotest: add a test that ensures we don't regress on "argument" field handling in tmpfiles.d 18225/head
Lennart Poettering [Tue, 12 Jan 2021 20:39:02 +0000 (21:39 +0100)] 
test: add a test that ensures we don't regress on "argument" field handling in tmpfiles.d

Let's make sure what is now documented as fix for #17740 is not
accidentally changed anymore.

3 years agotmpfiles: add ANSI highlighting to our help text
Lennart Poettering [Tue, 12 Jan 2021 20:38:04 +0000 (21:38 +0100)] 
tmpfiles: add ANSI highlighting to our help text

As it is common now in our tools.

3 years agoextract-word: don't rely on C's downgrade-to-bool feature for chars
Lennart Poettering [Tue, 12 Jan 2021 20:36:54 +0000 (21:36 +0100)] 
extract-word: don't rely on C's downgrade-to-bool feature for chars

The `quote` char variable ectually contains a character, not a pointer
or boolean. hence do an explicit comparison rather than rely on C's
downgrade to bool feature, as per our coding style.

3 years agotmpfiles: document that the "argument" field doesn't do quotes
Lennart Poettering [Tue, 12 Jan 2021 20:34:50 +0000 (21:34 +0100)] 
tmpfiles: document that the "argument" field doesn't do quotes

This adjust the documentation to match the code, addressing #17740.

I actually think that not making the "argument" field accept quotes was
a mistake, but I also understand why this choice was made. Given that we
shipped this forever like this though I don't think it's worth changing
the behaviour now. Supporting quotes for this is not that important I
guess. Hence document the current behaviour.

Fixes: #17740
3 years agohwdb: add Digibras F10-30 rotation information (#18215)
feliperodriguesfr [Tue, 12 Jan 2021 20:48:15 +0000 (17:48 -0300)] 
hwdb: add Digibras F10-30 rotation information (#18215)

3 years agoMerge pull request #18216 from yuwata/dhcp-user-class-length
Yu Watanabe [Tue, 12 Jan 2021 20:43:10 +0000 (05:43 +0900)] 
Merge pull request #18216 from yuwata/dhcp-user-class-length

dhcp: length of each user class field must be positive

3 years agoMerge pull request #18157 from ssahani/vlan-qos
Yu Watanabe [Tue, 12 Jan 2021 20:42:53 +0000 (05:42 +0900)] 
Merge pull request #18157 from ssahani/vlan-qos

network: Allow to configure VLan egress qos maps

3 years agoMerge pull request #17628 from ssahani/network-gso
Yu Watanabe [Tue, 12 Jan 2021 20:42:23 +0000 (05:42 +0900)] 
Merge pull request #17628 from ssahani/network-gso

udev: Add support to configure Generic Segment Offload

3 years agojournal: send journald logs to kmsg again
Franck Bui [Fri, 4 Dec 2020 08:48:52 +0000 (09:48 +0100)] 
journal: send journald logs to kmsg again

This was broken by commit bc694c06e60505efeb09e5278a7b22cdfa23975e.

3 years agonspawn: make rootfs relative to oci bundle path
Arian van Putten [Sun, 20 Dec 2020 22:11:57 +0000 (23:11 +0100)] 
nspawn: make rootfs relative to oci bundle path

This is inline with the OCI runtime spec:

On POSIX platforms, path is either an absolute path or a relative path
to the bundle. For example, with a bundle at /to/bundle and a root
filesystem at /to/bundle/rootfs, the path value can be either
/to/bundle/rootfs or rootfs. The value SHOULD be the conventional
rootfs.
(https://github.com/opencontainers/runtime-spec/blob/master/config.md)

3 years agoutil: rework in_initrd() to make use of path_is_temporary_fs()
Kairui Song [Fri, 8 Jan 2021 06:52:26 +0000 (14:52 +0800)] 
util: rework in_initrd() to make use of path_is_temporary_fs()

3 years agotimedate: actually reset system time with new timezone
Yu Watanabe [Tue, 12 Jan 2021 12:00:27 +0000 (21:00 +0900)] 
timedate: actually reset system time with new timezone

Fix a bug introduced by 56b0ef2fc283425df6ae6f1dc198e0c408f70471.

Closes CID#1436943.

3 years agoudev-builtin-blkid: add support for --hint offsets
Karel Zak [Mon, 30 Nov 2020 10:38:21 +0000 (11:38 +0100)] 
udev-builtin-blkid: add support for --hint offsets

The next libblkid v2.37 is going to support session offsets for
multi-session CD/DVDs. This feature is implemented by "hint offsets".

These offsets are optional and prober specific (e.g., iso, udf, ...).
For this purpose, the library provides a new function
blkid_probe_set_hint(), and blkid(8) provides a new command-line
option --hint <name>=<offset>. For CD/DVD, the offset name is
"session_offset".

The difference between classic --offset and the new --hint is that
--offset is very restrictive and defines the probing area and the rest
of the device is invisible to the library. The new --hint works
like a suggestion, it provides a hint where the user assumes the
filesystem, but the rest of the device is still readable for the
library (for example, to get some additional superblock information
etc.).

If the --hint is without a value then it defaults to zero.

The option --hint implementation in udev-builtin-blkid.c is backwardly
compatible. If compiled against old libblkid, then the option is used in
the same way as --offset.

Addresses: https://github.com/karelzak/util-linux/issues/1161
Addresses: https://github.com/systemd/systemd/pull/17424

3 years agoMerge pull request #18212 from yuwata/two-coverity-fixes
Yu Watanabe [Tue, 12 Jan 2021 15:57:34 +0000 (00:57 +0900)] 
Merge pull request #18212 from yuwata/two-coverity-fixes

Two coverity fixes

3 years agonetwork: merge config_parse_dhcp_user_class() and _vendor_class() 18216/head
Yu Watanabe [Tue, 12 Jan 2021 13:48:47 +0000 (22:48 +0900)] 
network: merge config_parse_dhcp_user_class() and _vendor_class()

3 years agodhcp6: refuse zero length vendor class
Yu Watanabe [Tue, 12 Jan 2021 13:38:29 +0000 (22:38 +0900)] 
dhcp6: refuse zero length vendor class

Also, fixes the maximum length of the vendor class to UINT16_MAX.
Moreover, a memory leak in sd_dhcp6_client_set_request_vendor_class().

3 years agodhcp6: add an assert()
Yu Watanabe [Tue, 12 Jan 2021 13:28:36 +0000 (22:28 +0900)] 
dhcp6: add an assert()

3 years agodhcp: do not assign value twice
Yu Watanabe [Tue, 12 Jan 2021 13:23:53 +0000 (22:23 +0900)] 
dhcp: do not assign value twice

3 years agodhcp6: refuse zero length dhcp user class
Yu Watanabe [Tue, 12 Jan 2021 13:03:43 +0000 (22:03 +0900)] 
dhcp6: refuse zero length dhcp user class

This also fixes a memory leak when
sd_dhcp6_client_set_request_user_class() is called multiple times.

3 years agonetwork: refuse zero length dhcp user class
Yu Watanabe [Tue, 12 Jan 2021 12:55:15 +0000 (21:55 +0900)] 
network: refuse zero length dhcp user class

3 years agodhcp: length of each user class field must be positive
Yu Watanabe [Tue, 12 Jan 2021 12:47:23 +0000 (21:47 +0900)] 
dhcp: length of each user class field must be positive

This also fixes an memory leak when sd_dhcp_client_set_user_class()
is called multiple times.

3 years agolink: Add support to configure Generic Segment Offload 17628/head
Susant Sahani [Tue, 12 Jan 2021 12:36:49 +0000 (13:36 +0100)] 
link: Add support to configure Generic Segment Offload

3 years agomeson: catch up with 'update-man-rules'
Lennart Poettering [Tue, 12 Jan 2021 14:00:08 +0000 (15:00 +0100)] 
meson: catch up with 'update-man-rules'

3 years agoMerge pull request #18217 from ssahani/todo-network
Yu Watanabe [Tue, 12 Jan 2021 13:53:44 +0000 (22:53 +0900)] 
Merge pull request #18217 from ssahani/todo-network

TODO: Already implemented with SendDecline=

3 years agoTODO: SR_IOV already implemeted 18217/head
Susant Sahani [Tue, 12 Jan 2021 13:52:00 +0000 (14:52 +0100)] 
TODO: SR_IOV already implemeted

3 years agoTODO: Already implemented with SendDecline=
Susant Sahani [Tue, 12 Jan 2021 13:47:39 +0000 (14:47 +0100)] 
TODO: Already implemented with SendDecline=

3 years agoupdate TODO
Lennart Poettering [Tue, 12 Jan 2021 13:38:27 +0000 (14:38 +0100)] 
update TODO

3 years agonetwork: Allow to configure VLan egress qos maps 18157/head
Susant Sahani [Tue, 12 Jan 2021 10:02:12 +0000 (11:02 +0100)] 
network: Allow to configure VLan egress qos maps

3 years agonetwork: Allow to configure VLan egress qos maps
Susant Sahani [Tue, 12 Jan 2021 13:30:56 +0000 (14:30 +0100)] 
network: Allow to configure VLan egress qos maps

3 years agosd-netlink: add support to configure Generic Segment Offload
Susant Sahani [Tue, 12 Jan 2021 12:35:31 +0000 (13:35 +0100)] 
sd-netlink: add support to configure Generic Segment Offload

3 years agosd-bus: fix memleak 18212/head
Yu Watanabe [Tue, 12 Jan 2021 11:46:44 +0000 (20:46 +0900)] 
sd-bus: fix memleak

Closes CID#1437780.

3 years agoboot: at least one of os_name_pretty or os_name exists in this block
Yu Watanabe [Tue, 12 Jan 2021 11:43:02 +0000 (20:43 +0900)] 
boot: at least one of os_name_pretty or os_name exists in this block

Closes CID#1438933.

3 years agohwdb.d/70-mouse.hwdb: add entry for ELECOM Huge TrackBall
Tad Fisher [Thu, 7 Jan 2021 22:13:06 +0000 (14:13 -0800)] 
hwdb.d/70-mouse.hwdb: add entry for ELECOM Huge TrackBall

3 years agoMerge pull request #18209 from poettering/virt-fix
Yu Watanabe [Tue, 12 Jan 2021 05:24:37 +0000 (14:24 +0900)] 
Merge pull request #18209 from poettering/virt-fix

three minor fixes to virt.c

3 years agonetwork: introduce new UseAddress= setting in [DHCPv6] section
Yu Watanabe [Mon, 11 Jan 2021 15:02:09 +0000 (00:02 +0900)] 
network: introduce new UseAddress= setting in [DHCPv6] section

If it is disabled, then the addresses provided by the DHCPv6 server will
be ignored.

Closes #18203.

3 years agoMerge pull request #18204 from yuwata/wifi-util-fix-18059
Yu Watanabe [Tue, 12 Jan 2021 05:18:24 +0000 (14:18 +0900)] 
Merge pull request #18204 from yuwata/wifi-util-fix-18059

wifi-util: do not ignore wifi iftype when the interface does not have SSID

3 years agodocs: `mesonconf` is not a valid command, `meson configure` is
igo95862 [Mon, 11 Jan 2021 13:04:33 +0000 (16:04 +0300)] 
docs: `mesonconf` is not a valid command, `meson configure` is

Meson documentation for `meson configure`
https://mesonbuild.com/Commands.html#configure

3 years agoexit-status: fix mappings comment
Iago López Galeiras [Fri, 11 Dec 2020 12:21:54 +0000 (13:21 +0100)] 
exit-status: fix mappings comment

It didn't reflect the current status.

3 years agovirt: fix path mentioned in log message 18209/head
Lennart Poettering [Mon, 11 Jan 2021 20:09:37 +0000 (21:09 +0100)] 
virt: fix path mentioned in log message

3 years agovirt: debug log on unexpected error conditions
Lennart Poettering [Mon, 11 Jan 2021 20:08:51 +0000 (21:08 +0100)] 
virt: debug log on unexpected error conditions

Let's make this more debuggable by logging if we look for something and
get any error other than ENOENT back.

3 years agovirt: merge three variable declarations
Lennart Poettering [Mon, 11 Jan 2021 20:08:01 +0000 (21:08 +0100)] 
virt: merge three variable declarations

3 years agoMerge pull request #18174 from systemd/coverity-now-for-real
Luca Boccassi [Mon, 11 Jan 2021 17:56:13 +0000 (17:56 +0000)] 
Merge pull request #18174 from systemd/coverity-now-for-real

ci: move the Coverity job to GitHub Actions

3 years agowifi-util: do not ignore wifi iftype when SSID is not set 18204/head
Yu Watanabe [Mon, 11 Jan 2021 14:36:42 +0000 (23:36 +0900)] 
wifi-util: do not ignore wifi iftype when SSID is not set

Previously, if an interface does not have SSID, e.g. run in mesh-point
type, then the wifi iftype obtained by the netlink call was ignored.

Fixes #18059.

3 years agowifi-util: cleanup header inclusion
Yu Watanabe [Mon, 11 Jan 2021 14:26:54 +0000 (23:26 +0900)] 
wifi-util: cleanup header inclusion

3 years agoci: remove remaining Travis CI artifacts 18174/head
Frantisek Sumsal [Mon, 11 Jan 2021 14:14:10 +0000 (15:14 +0100)] 
ci: remove remaining Travis CI artifacts

3 years agoci: move the Coverity job to GitHub Actions
Frantisek Sumsal [Fri, 8 Jan 2021 20:45:08 +0000 (21:45 +0100)] 
ci: move the Coverity job to GitHub Actions

3 years agoci: drop a forgotten empty line
Frantisek Sumsal [Fri, 8 Jan 2021 18:53:43 +0000 (19:53 +0100)] 
ci: drop a forgotten empty line

3 years agoMerge pull request #18195 from bluca/bpf_init
Evgeny Vereshchagin [Mon, 11 Jan 2021 14:39:47 +0000 (17:39 +0300)] 
Merge pull request #18195 from bluca/bpf_init

bpf: do not use structured initialization for bpf_attr