Patryk Wychowaniec 336ef2de99
nixos/containers: allow containers with long names to create private networks
Launching a container with a private network requires creating a
dedicated networking interface for it; name of that interface is derived
from the container name itself - e.g. a container named `foo` gets
attached to an interface named `ve-foo`.

An interface name can span up to IFNAMSIZ characters, which means that a
container name must contain at most IFNAMSIZ - 3 - 1 = 11 characters;
it's a limit that we validate using a build-time assertion.

This limit has been upgraded with Linux 5.8, as it allows for an
interface to contain a so-called altname, which can be much longer,
while remaining treated as a first-class citizen.

Since altnames have been supported natively by systemd for a while now,
due diligence on our side ends with dropping the name-assertion on newer
kernels.

This commit closes #38509.

systemd/systemd#14467
systemd/systemd#17220
https://lwn.net/Articles/794289/
2021-02-26 17:48:49 +01:00
..
2020-11-09 22:50:17 +01:00
2020-06-30 17:12:03 +02:00
2020-10-25 11:01:30 +01:00
2021-02-12 06:54:20 +01:00
2020-12-28 00:35:46 +00:00
2020-05-22 11:23:31 +02:00
2021-02-22 02:17:24 -05:00
2020-12-09 13:24:48 +01:00
2020-10-25 11:01:31 +01:00
2021-01-24 10:50:56 +01:00
2020-08-23 10:31:58 +02:00
2020-09-07 11:21:26 +02:00
2021-02-23 19:28:51 +01:00
2020-12-22 01:39:03 +01:00
2021-01-18 16:12:52 +00:00
2020-07-06 18:35:34 +02:00
2021-02-08 15:39:37 +01:00
2020-12-28 00:37:13 +01:00
2020-12-17 16:58:57 +01:00
2020-12-17 09:05:53 -05:00
2020-12-05 11:02:40 +01:00
2020-10-25 11:01:30 +01:00
2020-11-02 08:16:01 -05:00
2020-12-21 19:41:24 +01:00
2020-11-04 20:37:50 -05:00
2020-11-24 12:42:06 -05:00
2021-01-26 18:11:38 +01:00
2020-11-12 20:00:50 +01:00
2020-06-23 12:02:27 +02:00
2021-01-25 12:11:59 +01:00
2020-10-25 11:01:30 +01:00
2020-10-25 11:01:31 +01:00
2021-01-24 01:49:49 +01:00
2020-09-02 22:18:52 +08:00
2020-08-18 07:59:44 +10:00