]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
4 years agoAdded Trekstor Primetab S11B
Benjamin Dahlhoff [Sat, 14 Dec 2019 16:48:06 +0000 (17:48 +0100)] 
Added Trekstor Primetab S11B

4 years agoMerge pull request #14354 from poettering/link-fix
Yu Watanabe [Mon, 16 Dec 2019 09:06:33 +0000 (18:06 +0900)] 
Merge pull request #14354 from poettering/link-fix

two trivial doc fixes

4 years agodocs: CSS files should not be executable 14354/head
Lennart Poettering [Mon, 16 Dec 2019 08:50:02 +0000 (09:50 +0100)] 
docs: CSS files should not be executable

4 years agogithub: use systemd.io links in issue template
Lennart Poettering [Mon, 16 Dec 2019 08:49:51 +0000 (09:49 +0100)] 
github: use systemd.io links in issue template

4 years agoMerge pull request #14261 from keszybz/loop-utils-and-efivars
Lennart Poettering [Mon, 16 Dec 2019 08:27:46 +0000 (09:27 +0100)] 
Merge pull request #14261 from keszybz/loop-utils-and-efivars

Fixes for networkd, shared/loop-util, basic/efivars

4 years agoMerge pull request #14196 from keszybz/gpt-auto-generator-debugging
Lennart Poettering [Mon, 16 Dec 2019 08:24:02 +0000 (09:24 +0100)] 
Merge pull request #14196 from keszybz/gpt-auto-generator-debugging

gpt-auto-generator debugging

4 years agoMerge pull request #14350 from yuwata/network-udev-altnames-support
Lennart Poettering [Mon, 16 Dec 2019 08:15:23 +0000 (09:15 +0100)] 
Merge pull request #14350 from yuwata/network-udev-altnames-support

network, udev: add altname support

4 years agotest-network: pass environment variables to networkctl 14350/head
Yu Watanabe [Sun, 15 Dec 2019 19:37:00 +0000 (04:37 +0900)] 
test-network: pass environment variables to networkctl

4 years agotest-network: add a test case for netdev altname
Yu Watanabe [Sun, 15 Dec 2019 19:17:57 +0000 (04:17 +0900)] 
test-network: add a test case for netdev altname

4 years agonetworkctl: show alternative names
Yu Watanabe [Sun, 15 Dec 2019 19:27:27 +0000 (04:27 +0900)] 
networkctl: show alternative names

4 years agonetwork: make Name= in [Match] support alternative names of interfaces
Yu Watanabe [Sun, 15 Dec 2019 13:46:19 +0000 (22:46 +0900)] 
network: make Name= in [Match] support alternative names of interfaces

4 years agoudev: support AlternativeName= setting in .link file
Yu Watanabe [Sun, 15 Dec 2019 14:21:18 +0000 (23:21 +0900)] 
udev: support AlternativeName= setting in .link file

4 years agoutil: introduce ifname_valid_full()
Yu Watanabe [Sun, 15 Dec 2019 14:01:54 +0000 (23:01 +0900)] 
util: introduce ifname_valid_full()

4 years agotest: add a test for sd_netlink_message_{append,read}_strv()
Yu Watanabe [Sun, 15 Dec 2019 12:48:12 +0000 (21:48 +0900)] 
test: add a test for sd_netlink_message_{append,read}_strv()

4 years agosd-netlink: introduce sd_netlink_message_append_strv()
Yu Watanabe [Sun, 15 Dec 2019 12:47:21 +0000 (21:47 +0900)] 
sd-netlink: introduce sd_netlink_message_append_strv()

4 years agosd-netlink: introduce sd_netlink_message_read_strv()
Yu Watanabe [Sun, 15 Dec 2019 12:32:25 +0000 (21:32 +0900)] 
sd-netlink: introduce sd_netlink_message_read_strv()

The combination of sd_netlink_message_enter_container() and
sd_netlink_message_read_string() only reads the last element if the attribute is
duplicated, such a situation easily happens for IFLA_ALT_IFNAME.
The function introduced here reads all matched attributes.

4 years agoshared/loop-util: spin on open() returning ENOENT too 14261/head
Zbigniew Jędrzejewski-Szmek [Sun, 15 Dec 2019 19:58:59 +0000 (20:58 +0100)] 
shared/loop-util: spin on open() returning ENOENT too

https://github.com/systemd/systemd/pull/14261#discussion_r355001559

4 years agobasic/efivars: do not return EIO if an efivar read is shorten than fstat size
Zbigniew Jędrzejewski-Szmek [Fri, 6 Dec 2019 11:13:34 +0000 (12:13 +0100)] 
basic/efivars: do not return EIO if an efivar read is shorten than fstat size

On my machine stat returns size 22, but only 20 bytes are read:

openat(AT_FDCWD, "/sys/firmware/efi/efivars/LoaderTimeInitUSec-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f", O_RDONLY|O_NOCTTY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=22, ...}) = 0
read(3, "\6\0\0\0", 4)                  = 4
read(3, "7\0001\0001\0003\0005\0002\0007\0\0\0", 18) = 16
Failed to read LoaderTimeInitUSec: Input/output error

Let's just accept that the kernel is returning inconsistent results.
It seems to happen two only two variables on my machine:
/sys/firmware/efi/efivars/LoaderTimeInitUSec-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f
/sys/firmware/efi/efivars/LoaderTimeMenuUSec-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f
so it might be related to the way we write them.

4 years agoshared/efi-loader: add some debugging statements
Zbigniew Jędrzejewski-Szmek [Fri, 6 Dec 2019 10:55:20 +0000 (11:55 +0100)] 
shared/efi-loader: add some debugging statements

Should make it easier to figure out why some operations fail...

4 years agoshared/loop-util: spin on LOOP_CTL_REMOVE
Zbigniew Jędrzejewski-Szmek [Fri, 6 Dec 2019 10:35:57 +0000 (11:35 +0100)] 
shared/loop-util: spin on LOOP_CTL_REMOVE

If we call LOOP_CLR_FD and LOOP_CTL_REMOVE too rapidly, the kernel cannot deal
with that (5.3.13-300.fc31.x86_64 running on dual core
Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz).

$ sudo strace -eioctl build/test-dissect-image /tmp/foobar3.img
ioctl(3, TCGETS, 0x7ffcee47de20)        = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(4, LOOP_CTL_GET_FREE)             = 9
ioctl(5, LOOP_SET_FD, 3)                = 0
ioctl(5, LOOP_SET_STATUS64, {lo_offset=0, lo_number=0, lo_flags=LO_FLAGS_READ_ONLY|LO_FLAGS_AUTOCLEAR|LO_FLAGS_PARTSCAN, lo_file_name="", ...}) = 0
ioctl(5, BLKGETSIZE64, [299999744])     = 0
ioctl(5, CDROM_GET_CAPABILITY, 0)       = -1 EINVAL (Invalid argument)
ioctl(5, BLKSSZGET, [512])              = 0
Waiting for device (parent + 0 partitions) to appear...
Found root partition, writable of type btrfs at #-1 (/dev/block/7:9)
ioctl(5, LOOP_CLR_FD)                   = 0
ioctl(3, LOOP_CTL_REMOVE, 9)            = -1 EBUSY (Device or resource busy)
Failed to remove loop device: Device or resource busy

This seems to be clear race condition, and attaching strace is generally enough
to "win" the race. But even with strace attached, we will fail occasionally.
Let's wait a bit and retry. With the wait, on my machine, the second attempt
always succeeds:

...
Found root partition, writable of type btrfs at #-1 (/dev/block/7:9)
ioctl(5, LOOP_CLR_FD)                   = 0
ioctl(3, LOOP_CTL_REMOVE, 9)            = -1 EBUSY (Device or resource busy)
ioctl(3, LOOP_CTL_REMOVE, 9)            = 9
+++ exited with 0 +++

Without the wait, all 64 attempts will occasionally fail.

4 years agoshared/loop-util: fix error handling in loop_device_make_full()
Zbigniew Jędrzejewski-Szmek [Fri, 6 Dec 2019 10:10:10 +0000 (11:10 +0100)] 
shared/loop-util: fix error handling in loop_device_make_full()

The function no longer returns the fd. This complicated semantics, because it
wasn't clear what holds the ownership: the return value or the output
parameter.  There were no users of the fd in the return value, so let's
simplify things conceptually and only return the fd once.

Reduce the scope of variables.

LOOP_CLR_FD was called on the wrong fd. Let's use a cleanup function to make
this automatic and reduce chances of a mixup in the future.

CID 1408498.

4 years agosd-netlink: support IFLA_PROP_LIST and IFLA_ALT_IFNAME attributes
Yu Watanabe [Sun, 15 Dec 2019 11:57:51 +0000 (20:57 +0900)] 
sd-netlink: support IFLA_PROP_LIST and IFLA_ALT_IFNAME attributes

4 years agolinux: update headers
Yu Watanabe [Sun, 15 Dec 2019 11:25:25 +0000 (20:25 +0900)] 
linux: update headers

4 years agoAdd Acer Spin 1 SP111-33 to sensor hwdb
Jin Park [Sun, 15 Dec 2019 03:10:51 +0000 (12:10 +0900)] 
Add Acer Spin 1 SP111-33 to sensor hwdb

4 years agohwdb: Add accel orientation quirk for Thundersoft TST168 tablet
Hans de Goede [Fri, 13 Dec 2019 12:01:02 +0000 (13:01 +0100)] 
hwdb: Add accel orientation quirk for Thundersoft TST168 tablet

Add a quirk to fix the accelerometer orientation on the Thundersoft
TST168 tablet.

4 years agonspawn: fix overlay with automatic temporary tree
Lennart Poettering [Thu, 12 Dec 2019 16:05:21 +0000 (17:05 +0100)] 
nspawn: fix overlay with automatic temporary tree

This makes --overlay=+/foobar::/foobar work again, i.e. where the middle
parameter is left out. According to the documentation this is supposed
to generate a temporary writable work place in the midle. But it
apparently never did. Weird.

4 years agoMerge pull request #14333 from poettering/markdown-header-fixes
Tobias Bernard [Fri, 13 Dec 2019 11:01:59 +0000 (12:01 +0100)] 
Merge pull request #14333 from poettering/markdown-header-fixes

docs: make sure there's only one # markdown header in each file

4 years agodocs: make sure there's only one # markdown header in each file 14333/head
Lennart Poettering [Fri, 13 Dec 2019 10:56:08 +0000 (11:56 +0100)] 
docs: make sure there's only one # markdown header in each file

@bertob wants us to be strict here, and only have one "#" header per
markdown file, and use "##" (or "###", …) for all others. Interestingly,
we mostly got this right already, but this fixes a few cases where this
wasn't correct.

4 years agoblockdev-util: rework get_block_device()
Lennart Poettering [Thu, 12 Dec 2019 13:18:26 +0000 (14:18 +0100)] 
blockdev-util: rework get_block_device()

Let's open the specified path once, and use the same fd for all lookups.
Also, don't check for btrfs twice.

The behaviour remains unmodified.

4 years agoMerge pull request #13915 from ddstreet/ipv6_mtu
Yu Watanabe [Fri, 13 Dec 2019 09:33:04 +0000 (18:33 +0900)] 
Merge pull request #13915 from ddstreet/ipv6_mtu

Set ipv6 mtu after link-up or device mtu change

4 years agoMerge pull request #14320 from yuwata/network-tc-fq_codel-more
Yu Watanabe [Fri, 13 Dec 2019 02:09:36 +0000 (11:09 +0900)] 
Merge pull request #14320 from yuwata/network-tc-fq_codel-more

network: tc: introduce more FQ-CoDel settings

4 years agoMerge pull request #14269 from DaanDeMeyer/enable-mounts-on-root
Lennart Poettering [Thu, 12 Dec 2019 23:05:38 +0000 (00:05 +0100)] 
Merge pull request #14269 from DaanDeMeyer/enable-mounts-on-root

nspawn: Enable specifying root as the mount target directory.

4 years agonspawn-mount: Use FLAGS_SET to check flags. 14269/head
Daan De Meyer [Thu, 12 Dec 2019 19:18:37 +0000 (20:18 +0100)] 
nspawn-mount: Use FLAGS_SET to check flags.

4 years agonspawn: Only bind-mount directory when necessary.
Daan De Meyer [Sat, 7 Dec 2019 11:43:39 +0000 (12:43 +0100)] 
nspawn: Only bind-mount directory when necessary.

4 years agonspawn-mount: Remove unused parameters
Daan De Meyer [Sat, 7 Dec 2019 10:59:59 +0000 (11:59 +0100)] 
nspawn-mount: Remove unused parameters

4 years agonspawn: Enable specifying root as the mount target directory.
Daan De Meyer [Fri, 6 Dec 2019 21:45:14 +0000 (22:45 +0100)] 
nspawn: Enable specifying root as the mount target directory.

Fixes #3847.

4 years agotest: increase qemu timeout for TEST-08 and TEST-09
Christian Ehrhardt [Thu, 12 Dec 2019 12:37:27 +0000 (13:37 +0100)] 
test: increase qemu timeout for TEST-08 and TEST-09

These tests two have shown to be flaky in Ubuntu test infrastructure,
but got more reliable with increased timeouts of 300 seconds each.

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
4 years agonspawn: allow combination of private-network and network-namespace-path
Shengjing Zhu [Sun, 8 Dec 2019 19:00:01 +0000 (03:00 +0800)] 
nspawn: allow combination of private-network and network-namespace-path

Fixes: #14289
4 years agoMerge pull request #14321 from yuwata/network-generator-14319
Lennart Poettering [Thu, 12 Dec 2019 16:52:09 +0000 (17:52 +0100)] 
Merge pull request #14321 from yuwata/network-generator-14319

network-generator: allow empty hostname

4 years agotest-network: add a test case for the new settings of FQ-CoDel 14320/head
Yu Watanabe [Thu, 12 Dec 2019 09:22:09 +0000 (18:22 +0900)] 
test-network: add a test case for the new settings of FQ-CoDel

4 years agonetwork: tc: support more attributes for FQ-CoDel
Yu Watanabe [Thu, 12 Dec 2019 08:25:29 +0000 (17:25 +0900)] 
network: tc: support more attributes for FQ-CoDel

4 years agoMerge pull request #14305 from ssahani/tc-fq
Yu Watanabe [Thu, 12 Dec 2019 12:16:38 +0000 (21:16 +0900)] 
Merge pull request #14305 from ssahani/tc-fq

network tc: inroduce FQ - Fair Queue traffic policing

4 years agotest: add a test case for network-generator 14321/head
Yu Watanabe [Thu, 12 Dec 2019 10:02:25 +0000 (19:02 +0900)] 
test: add a test case for network-generator

4 years agonetwork-generator: allow empty hostname
Yu Watanabe [Thu, 12 Dec 2019 10:01:21 +0000 (19:01 +0900)] 
network-generator: allow empty hostname

Fixes #14319.

4 years agotest-network: add a test case for FQ 14305/head
Yu Watanabe [Thu, 12 Dec 2019 07:29:23 +0000 (16:29 +0900)] 
test-network: add a test case for FQ

4 years agonetwork tc: inroduce FQ - Fair Queue traffic policing
Susant Sahani [Wed, 11 Dec 2019 09:52:51 +0000 (10:52 +0100)] 
network tc: inroduce FQ - Fair Queue traffic policing

Please see http://man7.org/linux/man-pages/man8/tc-fq.8.html

4 years agoMerge pull request #14308 from poettering/man-naming-scheme-typo
Yu Watanabe [Thu, 12 Dec 2019 08:04:06 +0000 (17:04 +0900)] 
Merge pull request #14308 from poettering/man-naming-scheme-typo

superficial fixes to network naming docs

4 years agosd-netlink: add attributes for FQ
Yu Watanabe [Thu, 12 Dec 2019 07:21:49 +0000 (16:21 +0900)] 
sd-netlink: add attributes for FQ

4 years agoMerge pull request #14309 from yuwata/network-tc-vtable
Yu Watanabe [Thu, 12 Dec 2019 06:55:11 +0000 (15:55 +0900)] 
Merge pull request #14309 from yuwata/network-tc-vtable

network: tc: introduce QDiscVTable

4 years agoMerge pull request #14307 from poettering/unicode-fuckup
Anita Zhang [Wed, 11 Dec 2019 21:49:01 +0000 (13:49 -0800)] 
Merge pull request #14307 from poettering/unicode-fuckup

locale-util: drop weird invisible unicode codepoints accidentally ins…

4 years agoMerge pull request #14317 from poettering/hwdb-indent-fix
Anita Zhang [Wed, 11 Dec 2019 21:35:22 +0000 (13:35 -0800)] 
Merge pull request #14317 from poettering/hwdb-indent-fix

hwdb: trivial indentation fix

4 years agolocale-util: drop weird invisible unicode codepoints accidentally inserted in comment 14307/head
Lennart Poettering [Tue, 10 Dec 2019 20:30:39 +0000 (21:30 +0100)] 
locale-util: drop weird invisible unicode codepoints accidentally inserted in comment

4 years agohwdb: trivial indentation fix 14317/head
Lennart Poettering [Wed, 11 Dec 2019 20:35:33 +0000 (21:35 +0100)] 
hwdb: trivial indentation fix

4 years agominor: avoid double title
Tobias Bernard [Wed, 11 Dec 2019 16:19:14 +0000 (17:19 +0100)] 
minor: avoid double title

The logo and H1 were clashing a bit

4 years agodocs: make it pretty
Tobias Bernard [Wed, 11 Dec 2019 16:01:46 +0000 (17:01 +0100)] 
docs: make it pretty

Add custom Jekyll theme, logo, webfont and .gitignore

FIXME: the markdown files have some H1 headers which need to be replaced
with H2

4 years agonetwork: tc: introduce QDiscVTable for future extendability 14309/head
Yu Watanabe [Wed, 11 Dec 2019 11:10:29 +0000 (20:10 +0900)] 
network: tc: introduce QDiscVTable for future extendability

4 years agonetwork: tc: drop unused element
Yu Watanabe [Wed, 11 Dec 2019 11:09:11 +0000 (20:09 +0900)] 
network: tc: drop unused element

4 years agonetwork: tc: drop unused functions
Yu Watanabe [Wed, 11 Dec 2019 10:25:09 +0000 (19:25 +0900)] 
network: tc: drop unused functions

4 years agodocs: direct to systemd.io version of naming scheme docs 14308/head
Lennart Poettering [Wed, 11 Dec 2019 11:04:55 +0000 (12:04 +0100)] 
docs: direct to systemd.io version of naming scheme docs

The document was imported back in
f9e6d49904e06d2cba3871f6873d0519fe086d0f. Let's make sure we actually
point to that version rather than the old one on freedesktop.

4 years agodocs: fix markdown links
Lennart Poettering [Wed, 11 Dec 2019 11:04:32 +0000 (12:04 +0100)] 
docs: fix markdown links

4 years agodocs: use `` quotes for marking identifiers of some form
Lennart Poettering [Wed, 11 Dec 2019 11:03:58 +0000 (12:03 +0100)] 
docs: use `` quotes for marking identifiers of some form

4 years agoman: fix typo in net-naming-scheme man page
Lennart Poettering [Wed, 11 Dec 2019 10:52:00 +0000 (11:52 +0100)] 
man: fix typo in net-naming-scheme man page

4 years agoMerge pull request #14303 from yuwata/tc-use-typesafe-functions
Yu Watanabe [Wed, 11 Dec 2019 11:07:20 +0000 (20:07 +0900)] 
Merge pull request #14303 from yuwata/tc-use-typesafe-functions

network: tc: use typesafe functions

4 years agoMerge pull request #14306 from poettering/markdown-category
Lennart Poettering [Wed, 11 Dec 2019 10:43:31 +0000 (11:43 +0100)] 
Merge pull request #14306 from poettering/markdown-category

beef up systemd.io pages with simple categorization

4 years agodocs: beef up entrypoint documentation page 14306/head
Lennart Poettering [Wed, 11 Dec 2019 09:49:59 +0000 (10:49 +0100)] 
docs: beef up entrypoint documentation page

Let's use the rough categorization of the markdown pages to add basic
sections, via Jeykll templating. Also, add in a couple of additional
links via a JSON array that lists them.

So much web development, so much wow!

4 years agodocs: place all our markdown docs in rough categories
Lennart Poettering [Wed, 11 Dec 2019 09:49:28 +0000 (10:49 +0100)] 
docs: place all our markdown docs in rough categories

4 years agoman: fix typos (#14304)
cheese1 [Wed, 11 Dec 2019 09:33:13 +0000 (10:33 +0100)] 
man: fix typos (#14304)

4 years agonetwork: tc: use typesafe functions to append netlink attributes 14303/head
Yu Watanabe [Wed, 11 Dec 2019 07:31:52 +0000 (16:31 +0900)] 
network: tc: use typesafe functions to append netlink attributes

4 years agosd-netlink: make TCA_OPTIONS take NETLINK_TYPE_UNION
Yu Watanabe [Wed, 11 Dec 2019 07:30:39 +0000 (16:30 +0900)] 
sd-netlink: make TCA_OPTIONS take NETLINK_TYPE_UNION

4 years agoMerge pull request #14278 from ssahani/tc
Yu Watanabe [Wed, 11 Dec 2019 04:27:14 +0000 (13:27 +0900)] 
Merge pull request #14278 from ssahani/tc

network tc: qdisc parent add support to set ingress

4 years agoMerge pull request #14297 from poettering/id128-size
Yu Watanabe [Wed, 11 Dec 2019 04:26:51 +0000 (13:26 +0900)] 
Merge pull request #14297 from poettering/id128-size

cleaning up id128 formatting buffer sizing

4 years agoipv4ll: do not reset conflict counter on restart
AJ Bagwell [Tue, 10 Dec 2019 16:27:31 +0000 (16:27 +0000)] 
ipv4ll: do not reset conflict counter on restart

Don't reset the conflict counter when trying a new pseudo random
address, so that after trying 10 addresses the londer timeout is used in
accordance with the RFC

Fixes #14299.

4 years agotest-network: add a test case for fq-codel 14278/head
Yu Watanabe [Tue, 10 Dec 2019 14:46:38 +0000 (23:46 +0900)] 
test-network: add a test case for fq-codel

4 years agonetwork tc: Add support to conkfigure CoDel - Controlled-Delay Active Queue Managemen...
Susant Sahani [Sat, 7 Dec 2019 19:48:18 +0000 (20:48 +0100)] 
network tc: Add support to conkfigure CoDel - Controlled-Delay Active Queue Management algorithm

```
$ tc qdisc show dev dummy99
qdisc fq_codel 8005: dev dummy99 root refcnt 2 limit 1000p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
$ network cat dumm99.network
[Match]
Name=dummy99

[TrafficControlQueueingDiscipline]
Parent=root
FairQueuingControlledDelayPacketLimit=1000

```

4 years agonetwork tc: qdisc parent add support to set ingress
Susant Sahani [Sat, 7 Dec 2019 16:46:37 +0000 (17:46 +0100)] 
network tc: qdisc parent add support to set ingress

```
$ network tc qdisc
qdisc noqueue 0: dev dummy99 root refcnt 2
qdisc ingress ffff: dev dummy99 parent ffff:fff1 ----------------

$ network cat dumm99.network
[Match]
Name=dummy99

[TrafficControlQueueingDiscipline]
Parent=ingress
```

4 years agoMerge pull request #14280 from yuwata/network-tbf-more
Yu Watanabe [Tue, 10 Dec 2019 15:02:43 +0000 (00:02 +0900)] 
Merge pull request #14280 from yuwata/network-tbf-more

network: tc: add more options for TBF

4 years agoMerge pull request #14295 from poettering/greedy-alloc-round-up
Yu Watanabe [Tue, 10 Dec 2019 11:17:33 +0000 (20:17 +0900)] 
Merge pull request #14295 from poettering/greedy-alloc-round-up

add new GREEDY_ALLOC_ROUND_UP() to make strv_extend() a bit less slow

4 years agotree-wide: use SD_ID128_STRING_MAX where appropriate 14297/head
Lennart Poettering [Tue, 10 Dec 2019 10:52:54 +0000 (11:52 +0100)] 
tree-wide: use SD_ID128_STRING_MAX where appropriate

4 years agoid128: introduce ID128_UUID_STRING_MAX for sizing UUID buffers
Lennart Poettering [Tue, 10 Dec 2019 10:33:28 +0000 (11:33 +0100)] 
id128: introduce ID128_UUID_STRING_MAX for sizing UUID buffers

4 years agoMerge pull request #14284 from yuwata/network-fix-segfault-14283
Anita Zhang [Mon, 9 Dec 2019 21:33:36 +0000 (13:33 -0800)] 
Merge pull request #14284 from yuwata/network-fix-segfault-14283

network: fix segfault in parsing SendOption=

4 years agostrv: when growing strv arrays piecemeal actually allocate memory in exponential... 14295/head
Lennart Poettering [Mon, 9 Dec 2019 17:30:00 +0000 (18:30 +0100)] 
strv: when growing strv arrays piecemeal actually allocate memory in exponential steps

Let's improve memory allocation for call such as strv_extend() that just
one item to an strv: these are often called in a loop, where they used
to be very ineffecient, since we'd allocate byte-exact space. With this
change let's improve on that, by allocating exponentially by rounding up
to the next exponent of 2. This way we get GREEDY_REALLOC()-like
behaviour without passing around state.

In fact this should be good enough so that we could replace existing
loops around GREEDY_REALLOC() for strv build-up with plain strv_extend()
and get similar behaviour.

4 years agotest-util: add more tests for ALIGN_POWER2
Lennart Poettering [Mon, 9 Dec 2019 17:29:29 +0000 (18:29 +0100)] 
test-util: add more tests for ALIGN_POWER2

4 years agomacro: introduce new GREEDY_ALLOC_ROUND_UP() helper
Lennart Poettering [Mon, 9 Dec 2019 17:26:10 +0000 (18:26 +0100)] 
macro: introduce new GREEDY_ALLOC_ROUND_UP() helper

4 years agomacro: avoid subtraction overflow in ALIGN_POWER2()
Lennart Poettering [Mon, 9 Dec 2019 17:24:41 +0000 (18:24 +0100)] 
macro: avoid subtraction overflow in ALIGN_POWER2()

4 years agotest-network: add tests for new TBF settings 14280/head
Yu Watanabe [Sat, 7 Dec 2019 20:55:49 +0000 (05:55 +0900)] 
test-network: add tests for new TBF settings

4 years agonetwork: tc: add more options for TBF
Yu Watanabe [Sat, 7 Dec 2019 20:54:33 +0000 (05:54 +0900)] 
network: tc: add more options for TBF

4 years agotest-network: add a test case for SendOption= 14284/head
Yu Watanabe [Sun, 8 Dec 2019 10:54:49 +0000 (19:54 +0900)] 
test-network: add a test case for SendOption=

4 years agonetwork: fix segfault in parsing SendOption=
Yu Watanabe [Sun, 8 Dec 2019 10:54:20 +0000 (19:54 +0900)] 
network: fix segfault in parsing SendOption=

Fixes #14283.

4 years agoseccomp: real syscall numbers are >= 0
Mike Gilbert [Fri, 6 Dec 2019 19:28:13 +0000 (14:28 -0500)] 
seccomp: real syscall numbers are >= 0

Real syscall numbers start at 0. The fake seccomp values seem to be
strictly less than 0.

Fixes: 4df8fe8415eaf4abd5b93c3447452547c6ea9e5f
4 years agoAdd Cube iWork 11 Stylus
Yong Cong Sin [Sat, 7 Dec 2019 14:15:02 +0000 (01:15 +1100)] 
Add Cube iWork 11 Stylus

4 years agotest: do not fail if new device is plugged during enumeration
Yu Watanabe [Sun, 8 Dec 2019 15:57:06 +0000 (00:57 +0900)] 
test: do not fail if new device is plugged during enumeration

4 years agotest-network: make test_bind_carrier more stable
Yu Watanabe [Sun, 8 Dec 2019 15:39:33 +0000 (00:39 +0900)] 
test-network: make test_bind_carrier more stable

4 years agoMerge pull request #14266 from topimiettinen/dont-resolve-user-if-not-root
Yu Watanabe [Sun, 8 Dec 2019 15:15:31 +0000 (00:15 +0900)] 
Merge pull request #14266 from topimiettinen/dont-resolve-user-if-not-root

resolved: don't resolve the user if not root

4 years agoMerge pull request #14273 from ssahani/ifb
Yu Watanabe [Sat, 7 Dec 2019 20:13:08 +0000 (05:13 +0900)] 
Merge pull request #14273 from ssahani/ifb

network: introduce IFB

4 years agonetwork: fix copy and paste mistake
Yu Watanabe [Sat, 7 Dec 2019 14:20:37 +0000 (23:20 +0900)] 
network: fix copy and paste mistake

4 years agoresolved, networkd: don't resolve the user if not root 14266/head
Topi Miettinen [Fri, 6 Dec 2019 14:36:58 +0000 (16:36 +0200)] 
resolved, networkd: don't resolve the user if not root

If a daemon is not started as root, most likely it also can't create its
directory and let's not try to resolve the user in that case either.

Create /run/systemd/netif/lldp with tmpfiles.d like other netif directories.

This is also very helpful for preparing a RootImage for the daemons as NSS crud
is not needed.

4 years agotest-network: add test case for IFB 14273/head
Yu Watanabe [Sat, 7 Dec 2019 15:03:29 +0000 (00:03 +0900)] 
test-network: add test case for IFB

4 years agonetwork: introduce ifb (Intermediate Functional Block)
Susant Sahani [Sat, 7 Dec 2019 13:35:55 +0000 (14:35 +0100)] 
network: introduce ifb (Intermediate Functional Block)

Intermediate Functional Block

The Intermediate Functional Block (ifb) pseudo network interface acts as a QoS concentrator for multiple different sources of traffic. Packets from or to other interfaces have to be redirected to it using the mirred action in order to be handled, regularly routed traffic will be dropped. This way, a single stack of qdiscs, classes and filters can be shared between multiple interfaces.

Here's a simple example to feed incoming traffic from multiple interfaces through a Stochastic Fairness Queue (sfq):

(1) # modprobe ifb
(2) # ip link set ifb0 up
(3) # tc qdisc add dev ifb0 root sfq

4 years agosd-netlink: add support for ifb device
Susant Sahani [Sat, 7 Dec 2019 13:35:23 +0000 (14:35 +0100)] 
sd-netlink: add support for ifb device

4 years agoMerge pull request #14102 from ssahani/acd-duplicate-ip
Yu Watanabe [Sat, 7 Dec 2019 05:11:44 +0000 (14:11 +0900)] 
Merge pull request #14102 from ssahani/acd-duplicate-ip

network: introduce DAD for static IPV4 address