Commit Graph
48650 Commits
Author SHA1 Message Date
Yu Watanabe fec1b650ad network: introduce ManageTemporaryAddress= setting in [DHCPv6PrefixDelegation] section
The setting is enabled by default, as NDisc also enabled the flag by
default.

Closes #18208.
2021-01-14 00:17:05 +09:00
Yu Watanabe 8b76ee89d7 network: drop a function argument which is always constant 2021-01-14 00:16:10 +09:00
Felix Stupp 4327574fc1 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.
2021-01-13 16:07:36 +01:00
Yu Watanabe 65ab27211c Merge pull request #18225 from poettering/tmpfiles-argument
tmpfiles: fix documentation about quoting the "argument" field in tmpfiles.d snippets
2021-01-13 15:57:42 +09:00
Yu Watanabe 537ae584c8 network: reconfigure interface when wifi iftype is updated
Follow-up for a66a402da4.

Fixes #18059.
2021-01-13 06:42:02 +09:00
Lennart Poettering c33e405f20 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
2021-01-12 22:03:38 +01:00
Lennart Poettering 1cf96f68db 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.
2021-01-12 22:00:35 +01:00
Lennart Poettering 3f532a5930 tmpfiles: add ANSI highlighting to our help text
As it is common now in our tools.
2021-01-12 22:00:35 +01:00
Lennart Poettering fa67d9c0d6 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.
2021-01-12 22:00:35 +01:00
Lennart Poettering 29271da500 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
2021-01-12 22:00:35 +01:00
feliperodriguesfr 4bb322f58c hwdb: add Digibras F10-30 rotation information (#18215) 2021-01-13 05:48:15 +09:00
Yu Watanabe 09db85080a Merge pull request #18216 from yuwata/dhcp-user-class-length
dhcp: length of each user class field must be positive
2021-01-13 05:43:10 +09:00
Yu Watanabe 048be097d2 Merge pull request #18157 from ssahani/vlan-qos
network: Allow to configure VLan egress qos maps
2021-01-13 05:42:53 +09:00
Yu Watanabe 7c5869530c Merge pull request #17628 from ssahani/network-gso
udev: Add support to configure Generic Segment Offload
2021-01-13 05:42:23 +09:00
Franck Bui b3d6eb0165 journal: send journald logs to kmsg again
This was broken by commit bc694c06e6.
2021-01-12 20:36:02 +01:00
Arian van Putten 089cd8b34b 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)
2021-01-12 18:29:19 +01:00
Yu Watanabe df49792e01 timedate: actually reset system time with new timezone
Fix a bug introduced by 56b0ef2fc2.

Closes CID#1436943.
2021-01-13 00:59:33 +09:00
Karel Zak 4fcc033b54 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
2021-01-13 00:58:43 +09:00
Yu Watanabe 885598f36c Merge pull request #18212 from yuwata/two-coverity-fixes
Two coverity fixes
2021-01-13 00:57:34 +09:00
Yu Watanabe 6fda02e150 network: merge config_parse_dhcp_user_class() and _vendor_class() 2021-01-13 00:07:48 +09:00
Yu Watanabe 019951ec97 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().
2021-01-13 00:07:33 +09:00
Yu Watanabe 361eb4125d dhcp6: add an assert() 2021-01-13 00:00:56 +09:00
Yu Watanabe 8b6ea477a7 dhcp: do not assign value twice 2021-01-13 00:00:56 +09:00
Yu Watanabe 5a99444e4f 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.
2021-01-13 00:00:56 +09:00
Yu Watanabe b79951fa32 network: refuse zero length dhcp user class 2021-01-13 00:00:56 +09:00
Yu Watanabe e4336c0a5d 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.
2021-01-13 00:00:56 +09:00
Susant Sahani 1e270127de link: Add support to configure Generic Segment Offload 2021-01-12 15:19:23 +01:00
Lennart Poettering b433300e4c meson: catch up with 'update-man-rules' 2021-01-12 15:00:38 +01:00
Yu Watanabe 7c08f24a50 Merge pull request #18217 from ssahani/todo-network
TODO: Already implemented with SendDecline=
2021-01-12 22:53:44 +09:00
Susant Sahani 4707ae99cd TODO: SR_IOV already implemeted 2021-01-12 14:52:00 +01:00
Susant Sahani 973fa2cd4f TODO: Already implemented with SendDecline= 2021-01-12 14:47:39 +01:00
Lennart Poettering 9786ba1386 update TODO 2021-01-12 14:38:37 +01:00
Susant Sahani ea07086285 network: Allow to configure VLan egress qos maps 2021-01-12 14:31:03 +01:00
Susant Sahani 0d9b8913e2 network: Allow to configure VLan egress qos maps 2021-01-12 14:30:56 +01:00
Susant Sahani c97cad60d1 sd-netlink: add support to configure Generic Segment Offload 2021-01-12 13:35:31 +01:00
Yu Watanabe 8f13ef254b sd-bus: fix memleak
Closes CID#1437780.
2021-01-12 20:46:47 +09:00
Yu Watanabe ecb3e9fba3 boot: at least one of os_name_pretty or os_name exists in this block
Closes CID#1438933.
2021-01-12 20:43:06 +09:00
Tad Fisher 712fffd4b8 hwdb.d/70-mouse.hwdb: add entry for ELECOM Huge TrackBall 2021-01-12 14:27:09 +09:00
Yu Watanabe 0375cb546f Merge pull request #18209 from poettering/virt-fix
three minor fixes to virt.c
2021-01-12 14:24:37 +09:00
Yu Watanabe 1536b7b2d0 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.
2021-01-12 14:19:03 +09:00
Yu Watanabe e2645ca619 Merge pull request #18204 from yuwata/wifi-util-fix-18059
wifi-util: do not ignore wifi iftype when the interface does not have SSID
2021-01-12 14:18:24 +09:00
igo95862 5adfb06d55 docs: mesonconf is not a valid command, meson configure is
Meson documentation for `meson configure`
https://mesonbuild.com/Commands.html#configure
2021-01-12 14:17:48 +09:00
Iago López Galeiras abcd208840 exit-status: fix mappings comment
It didn't reflect the current status.
2021-01-11 21:48:07 +01:00
Lennart Poettering 79efcd0235 virt: fix path mentioned in log message 2021-01-11 21:10:55 +01:00
Lennart Poettering b7ec9e719b 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.
2021-01-11 21:10:51 +01:00
Lennart Poettering a7e508f899 virt: merge three variable declarations 2021-01-11 21:10:24 +01:00
Luca Boccassi bcac754d66 Merge pull request #18174 from systemd/coverity-now-for-real
ci: move the Coverity job to GitHub Actions
2021-01-11 17:56:13 +00:00
Yu Watanabe a66a402da4 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.
2021-01-12 01:12:37 +09:00
Yu Watanabe a533007815 wifi-util: cleanup header inclusion 2021-01-12 01:11:50 +09:00
Frantisek Sumsal 590ebd62f2 ci: remove remaining Travis CI artifacts 2021-01-11 16:02:37 +01:00