slackware-current/source/n/network-scripts/0001-netconfig-turn-off-rc.networkmanager-if-networkmanager-is-not-selected.patch
Patrick J Volkerding 5f74398bf9 Thu Nov 11 20:36:12 UTC 2021
a/sdparm-1.12-x86_64-2.txz:  Rebuilt.
  Recompiled against sg3_utils-1.47.
a/sysvinit-scripts-15.0-noarch-6.txz:  Rebuilt.
  rc.{6,S,M}: merged changes for compatibility with LXC containers.
a/udisks-1.0.5-x86_64-10.txz:  Rebuilt.
  Recompiled against sg3_utils-1.47.
ap/lxc-4.0.11-x86_64-1.txz:  Upgraded.
  Requires libseccomp-2.5.3.
  No more local versions of rc.{6,S,M,inet1}: the regular versions work now.
l/elfutils-0.186-x86_64-1.txz:  Upgraded.
l/libgpod-0.8.3-x86_64-11.txz:  Rebuilt.
  Recompiled against sg3_utils-1.47.
l/libseccomp-2.5.3-x86_64-1.txz:  Added.
  This is needed by lxc-4.0.11. Thanks to Willy Sudiarto Raharjo.
l/sg3_utils-1.47-x86_64-1.txz:  Upgraded.
  Shared library .so-version bump.
n/network-scripts-15.0-noarch-17.txz:  Rebuilt.
  Merged changes in rc.inet1 to make it compatible with LXC containers.
  Patched netconfig to ensure the proper permissions on rc.networkmanager
  when NetworkManager is not chosen.
x/ibus-1.5.25-x86_64-4.txz:  Rebuilt.
  [PATCH] client/gtk2/ibusimcontext: Fix wrong cursor location in gtk3 apps.
  Thanks to Lockywolf.
2021-11-12 08:59:57 +01:00

20 lines
899 B
Diff

From d5e9803b79f3bf909b01c3ff3a5cdb0d7594dba0 Mon Sep 17 00:00:00 2001
From: Patrick J. Volkerding <volkerdi@slackware.com>
Date: Wed, 10 Nov 2021 16:27:08 -0600
Subject: [PATCH] Ensure proper rc.networkmanager permissions
In case rc.networkmanager was made executable by the admin or with a previous
run of netconfig, we need to disable it if networkmanager wasn't selected in
this netconfig run.
--- ./sbin/netconfig.orig 2021-04-16 13:51:20.261045081 -0500
+++ ./sbin/netconfig 2021-11-10 16:14:09.388939104 -0600
@@ -1071,6 +1071,8 @@
write_config_files
if [ "$NETWORKMANAGER" = "yes" -a -r etc/rc.d/rc.networkmanager ]; then
chmod 755 etc/rc.d/rc.networkmanager
+ elif [ ! "$NETWORKMANAGER" = "yes" -a -x etc/rc.d/rc.networkmanager ]; then
+ chmod 644 etc/rc.d/rc.networkmanager
fi
dialog --msgbox "Settings accepted. Basic network configuration is complete." 6 40
else