]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Merge pull request #13186 from keszybz/tmpfiles-postponement
authorLennart Poettering <lennart@poettering.net>
Fri, 26 Jul 2019 07:41:00 +0000 (09:41 +0200)
committerGitHub <noreply@github.com>
Fri, 26 Jul 2019 07:41:00 +0000 (09:41 +0200)
Create less stuff when systemd-tmpfiles --create is executed (during installation or otherwise)

NEWS
TODO
man/systemd.netdev.xml
src/boot/efi/linux.c
src/network/netdev/bridge.c
src/network/netdev/netdev-gperf.gperf
sysctl.d/50-default.conf
test/fuzz/fuzz-netdev-parser/directives.netdev
test/test-network/conf/25-bridge.netdev

diff --git a/NEWS b/NEWS
index 0049be76caac2aadcaea0ffa0b5089925e815a34..238ea4a03273b9569010ffd1c21973385639af71 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -2,15 +2,6 @@ systemd System and Service Manager
 
 CHANGES WITH 243 in spe:
 
-        * This release enables unprivileged programs (i.e. requiring neither
-          setuid nor file capabilities) to send ICMP Echo (i.e. ping) requests
-          by turning on the net.ipv4.ping_group_range sysctl of the Linux
-          kernel for the whole UNIX group range, i.e. all processes. This
-          change should be reasonably safe, as the kernel support for it was
-          specifically implemented to allow safe access to ICMP Echo for
-          processes lacking any privileges. If this is not desirable, it can be
-          disabled again by setting the parameter to "1 0".
-
         * Previously, filters defined with SystemCallFilter= would have the
           effect that an calling an offending system call would terminate the
           calling thread. This behaviour never made much sense, since killing
@@ -242,7 +233,9 @@ CHANGES WITH 243 in spe:
 
         * systemd-networkd's bridging support gained two new options ProxyARP=
           and ProxyARPWifi= for configuring proxy ARP behaviour as well as
-          MulticastRouter= for configuring multicast routing behaviour.
+          MulticastRouter= for configuring multicast routing behaviour. A new
+          option MulticastIGMPVersion= may be used to change bridge's multicast
+          Internet Group Management Protocol (IGMP) version.
 
         * systemd-networkd's FooOverUDP support gained the ability to configure
           local and peer IP addresses via Local= and Peer=. A new option
@@ -255,6 +248,10 @@ CHANGES WITH 243 in spe:
           devices, as well as a new "--stats" switch for showing device
           statistics.
 
+        * networkd.conf gained a new setting SpeedMeter= and
+          SpeedMeterIntervalSec=, to measure bitrate of network interfaces. The
+          measured speed may be shown by 'networkctl status'.
+
         * systemd-networkd's .network and .link files gained a new Property=
           setting in the [Match] section, to match against devices with
           specific udev properties.
diff --git a/TODO b/TODO
index 1cf0318b227e50c586b94486ea5cfd97f018ded1..0c87d15e101494a008305f7457dc2c916559614a 100644 (file)
--- a/TODO
+++ b/TODO
@@ -24,6 +24,20 @@ Janitorial Clean-ups:
 
 Features:
 
+* add an explicit "vertical" mode to format-table, so that "systemctl
+  status"-like outputs (i.e. with a series of field names left and values
+  right) become genuine first class citizens, and we gain automatic, sane JSON
+  output for them.
+
+* dissector: invoke fsck on the file systems we encounter, after all ext4 is
+  still pretty popular (and we mount the ESP too with it after all, which is
+  fat)
+
+* systemd-firstboot: teach it dissector magic, so that you can point it to some
+  disk image and it will just set everything in it all behind the scenes.
+
+* systemd-firstboot: add --force mode that replaces existing configuration.
+
 * We should probably replace /var/log/README, /etc/rc.d/README with symlinks
   that are linked to these places instead of copied. After all they are
   constant vendor data.
index 515560f14e139d43ea649e94dc25be50314be789..0775e00bd2fff6c9aa7908073fad7a0e7f526170 100644 (file)
         </listitem>
       </varlistentry>
       <varlistentry>
-        <term><varname>IGMPVersion=</varname></term>
+        <term><varname>MulticastIGMPVersion=</varname></term>
         <listitem>
           <para>Allows to change bridge's multicast Internet Group Management Protocol (IGMP) version.
           Takes an interger 2 or 3. When unset, the kernel's default will be used.
index ad26cc510e9c0c516978793ec62b3b68dac6dd3a..5b623f4b71e20b8ad4df82be24a3c0bdcf77a2b4 100644 (file)
@@ -45,7 +45,7 @@ EFI_STATUS linux_exec(EFI_HANDLE *image,
 
         boot_params = (struct boot_params *) 0xFFFFFFFF;
         err = uefi_call_wrapper(BS->AllocatePages, 4, AllocateMaxAddress, EfiLoaderData,
-                                EFI_SIZE_TO_PAGES(0x4000), (UINTN *) &boot_params);
+                                EFI_SIZE_TO_PAGES(0x4000), (EFI_PHYSICAL_ADDRESS*) &boot_params);
         if (EFI_ERROR(err))
                 return err;
 
index 71a7ac7a437701ec7e37bf624ca98b4718ad8121..011c2c3040f1907e075359361d86526c29f61a89 100644 (file)
@@ -322,13 +322,13 @@ int config_parse_bridge_igmp_version(
         r = safe_atou8(rvalue, &u);
         if (r < 0) {
                 log_syntax(unit, LOG_ERR, filename, line, r,
-                           "Failed to parse bridge IGMP version number '%s', ignoring assignment: %m",
+                           "Failed to parse bridge's multicast IGMP version number '%s', ignoring assignment: %m",
                            rvalue);
                 return 0;
         }
         if (!IN_SET(u, 2, 3)) {
                 log_syntax(unit, LOG_ERR, filename, line, 0,
-                           "Invalid bridge IGMP version number '%s', ignoring assignment.", rvalue);
+                           "Invalid bridge's multicast IGMP version number '%s', ignoring assignment.", rvalue);
                 return 0;
         }
 
index b017ac8ec77e2504926829844ab3db4846b72458..47566f63a8a4c0d23b9f32cfd0128d7b854a5640 100644 (file)
@@ -207,7 +207,7 @@ Bridge.MulticastQuerier,                  config_parse_tristate,
 Bridge.MulticastSnooping,                 config_parse_tristate,                     0,                             offsetof(Bridge, mcast_snooping)
 Bridge.VLANFiltering,                     config_parse_tristate,                     0,                             offsetof(Bridge, vlan_filtering)
 Bridge.STP,                               config_parse_tristate,                     0,                             offsetof(Bridge, stp)
-Bridge.IGMPVersion,                       config_parse_uint8,                        0,                             offsetof(Bridge, igmp_version)
+Bridge.MulticastIGMPVersion,              config_parse_uint8,                        0,                             offsetof(Bridge, igmp_version)
 VRF.TableId,                              config_parse_uint32,                       0,                             offsetof(Vrf, table) /* deprecated */
 VRF.Table,                                config_parse_uint32,                       0,                             offsetof(Vrf, table)
 WireGuard.FirewallMark,                   config_parse_unsigned,                     0,                             offsetof(Wireguard, fwmark)
index f0b4f610f850a27af52544ff1d4cbdc368a90836..27084f62424bf2cf3407c7a1a6bcc6bed2aa15b9 100644 (file)
@@ -30,14 +30,6 @@ net.ipv4.conf.all.accept_source_route = 0
 # Promote secondary addresses when the primary address is removed
 net.ipv4.conf.all.promote_secondaries = 1
 
-# ping(8) without CAP_NET_ADMIN and CAP_NET_RAW
-# The upper limit is set to 2^31-1. Values greater than that get rejected by
-# the kernel because of this definition in linux/include/net/ping.h:
-#   #define GID_T_MAX (((gid_t)~0U) >> 1)
-# That's not so bad because values between 2^31 and 2^32-1 are reserved on
-# systemd-based systems anyway: https://systemd.io/UIDS-GIDS.html#summary
-net.ipv4.ping_group_range = 0 2147483647
-
 # Fair Queue CoDel packet scheduler to fight bufferbloat
 net.core.default_qdisc = fq_codel
 
index 78ffcead1cc326b70c5da9647488c2368f11bc34..e8391dab780cfad2385a3a6f641d09a08f2b43b1 100644 (file)
@@ -45,7 +45,7 @@ AgeingTimeSec=
 Priority=
 GroupForwardMask=
 VLANFiltering=
-IGMPVersion=
+MulticastIGMPVersion=
 [VRF]
 TableId=
 Table=
index a52b9d02fb5a19ebadc3a01cd5e2ed5c9e26fc91..f5c93516379ea236532fc156f31c45d61070b6a6 100644 (file)
@@ -11,4 +11,4 @@ Priority=9
 MulticastQuerier= true
 MulticastSnooping=true
 STP=true
-IGMPVersion=3
+MulticastIGMPVersion=3