diff options
| author | Michael Biebl <biebl@debian.org> | 2026-07-03 19:53:18 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2026-07-03 19:53:18 +0200 |
| commit | 537bfce2bda471c92caabd388589230200891509 (patch) | |
| tree | aedeccfaf0ba52c238ecf51fc009c0db5d4b60f0 /data | |
| parent | 869e9027026cdbb15d4e4a6327ff41d2697858eb (diff) | |
New upstream version 1.58~rc1 upstream/1.58_rc1
Diffstat (limited to 'data')
| -rw-r--r-- | data/NetworkManager-config-initrd.service.in | 5 | ||||
| -rw-r--r-- | data/NetworkManager-initrd.service.in | 10 | ||||
| -rw-r--r-- | data/NetworkManager-wait-online-initrd.service.in | 5 | ||||
| -rw-r--r-- | data/NetworkManager.service.in | 10 | ||||
| -rw-r--r-- | data/meson.build | 10 | ||||
| -rw-r--r-- | data/org.freedesktop.NetworkManager.policy.in (renamed from data/org.freedesktop.NetworkManager.policy.in.in) | 4 |
6 files changed, 15 insertions, 29 deletions
diff --git a/data/NetworkManager-config-initrd.service.in b/data/NetworkManager-config-initrd.service.in index 4baf0f64..4f038036 100644 --- a/data/NetworkManager-config-initrd.service.in +++ b/data/NetworkManager-config-initrd.service.in @@ -1,10 +1,10 @@ [Unit] Description=NetworkManager Configuration (initrd) +AssertPathExists=/etc/initrd-release DefaultDependencies=no Wants=systemd-journald.socket After=systemd-journald.socket Before=systemd-udevd.service systemd-udev-trigger.service -ConditionPathExists=/etc/initrd-release [Service] Type=oneshot @@ -22,6 +22,3 @@ ExecStartPost=/bin/sh -c ' \ fi \ ' RemainAfterExit=yes - -[Install] -WantedBy=initrd.target diff --git a/data/NetworkManager-initrd.service.in b/data/NetworkManager-initrd.service.in index aef73a57..f936ffd2 100644 --- a/data/NetworkManager-initrd.service.in +++ b/data/NetworkManager-initrd.service.in @@ -1,11 +1,11 @@ [Unit] Description=NetworkManager (initrd) +AssertPathExists=/etc/initrd-release DefaultDependencies=no Wants=systemd-udev-trigger.service network.target After=systemd-udev-trigger.service network-pre.target dbus.service NetworkManager-config-initrd.service Before=network.target BindsTo=dbus.service -ConditionPathExists=/etc/initrd-release ConditionPathExists=/run/NetworkManager/initrd/neednet ConditionPathExistsGlob=|/usr/lib/NetworkManager/system-connections/* ConditionPathExistsGlob=|/run/NetworkManager/system-connections/* @@ -22,11 +22,3 @@ Environment=NM_CONFIG_ENABLE_TAG=initrd Restart=on-failure ProtectSystem=true ProtectHome=read-only - -[Install] -WantedBy=initrd.target -# We want to enable NetworkManager-wait-online-initrd.service whenever this -# service is enabled. NetworkManager-wait-online-initrd.service has -# WantedBy=network-online.target, so enabling it only has an effect if -# network-online.target itself is enabled or pulled in by some other unit. -Also=NetworkManager-config-initrd.service NetworkManager-wait-online-initrd.service diff --git a/data/NetworkManager-wait-online-initrd.service.in b/data/NetworkManager-wait-online-initrd.service.in index da4a2522..b89aa816 100644 --- a/data/NetworkManager-wait-online-initrd.service.in +++ b/data/NetworkManager-wait-online-initrd.service.in @@ -1,10 +1,10 @@ [Unit] Description=NetworkManager Wait Online (initrd) +AssertPathExists=/etc/initrd-release DefaultDependencies=no Requires=NetworkManager-initrd.service After=NetworkManager-initrd.service Before=network-online.target -ConditionPathExists=/etc/initrd-release ConditionPathExists=/run/NetworkManager/initrd/neednet [Service] @@ -21,6 +21,3 @@ Type=oneshot ExecStart=@bindir@/nm-online -s -q RemainAfterExit=yes Environment=NM_ONLINE_TIMEOUT=3600 - -[Install] -WantedBy=initrd.target network-online.target diff --git a/data/NetworkManager.service.in b/data/NetworkManager.service.in index d0cd8b73..b27b8d2d 100644 --- a/data/NetworkManager.service.in +++ b/data/NetworkManager.service.in @@ -21,8 +21,16 @@ TimeoutStartSec=600 CapabilityBoundingSet=CAP_NET_ADMIN CAP_DAC_OVERRIDE CAP_NET_RAW CAP_BPF CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID CAP_SYS_MODULE CAP_AUDIT_WRITE CAP_KILL CAP_SYS_CHROOT -ProtectSystem=true +PrivateTmp=true + +ProtectClock=true +ProtectControlGroups=true ProtectHome=read-only +ProtectKernelLogs=true +ProtectSystem=true + +RestrictRealtime=true +RestrictSUIDSGID=true # We require file descriptors for DHCP etc. When activating many interfaces, # the default limit of 1024 is easily reached. diff --git a/data/meson.build b/data/meson.build index 34c98e3b..3e292cb2 100644 --- a/data/meson.build +++ b/data/meson.build @@ -55,16 +55,8 @@ if install_udevdir endif if enable_polkit - policy = 'org.freedesktop.NetworkManager.policy' - - policy_in = configure_file( - input: policy + '.in.in', - output: '@BASENAME@', - configuration: data_conf, - ) - i18n.merge_file( - input: policy_in, + input: 'org.freedesktop.NetworkManager.policy.in', output: '@BASENAME@', po_dir: po_dir, install: true, diff --git a/data/org.freedesktop.NetworkManager.policy.in.in b/data/org.freedesktop.NetworkManager.policy.in index 13a0a5b5..cb143a2d 100644 --- a/data/org.freedesktop.NetworkManager.policy.in.in +++ b/data/org.freedesktop.NetworkManager.policy.in @@ -117,8 +117,8 @@ <message>System policy prevents modification of network settings for all users</message> <defaults> <allow_any>auth_admin_keep</allow_any> - <allow_inactive>@NM_MODIFY_SYSTEM_POLICY@</allow_inactive> - <allow_active>@NM_MODIFY_SYSTEM_POLICY@</allow_active> + <allow_inactive>auth_admin_keep</allow_inactive> + <allow_active>auth_admin_keep</allow_active> </defaults> </action> |