commit sysconfig for openSUSE:Factory
Hello community, here is the log from the commit of package sysconfig for openSUSE:Factory checked in at Thu Apr 21 11:45:04 CEST 2011. -------- --- sysconfig/sysconfig.changes 2011-02-14 14:59:46.000000000 +0100 +++ /mounts/work_src_done/STABLE/sysconfig/sysconfig.changes 2011-03-15 18:45:01.000000000 +0100 @@ -1,0 +2,12 @@ +Tue Mar 15 17:12:58 UTC 2011 - mt@suse.de + +- version 0.75.0 +- Moved 77-network.rules and 81-mount.rules to /lib/udev/rules.d + as both contain static rules. +- Fixed spec to use 0600 mode for ifcfg-lo, because of bnc 670871. +- Send gratuitous arp when new SEND_GRATUITOUS_ARP variable is set + to yes either in global network/config or in per-interface ifcfg + file. Fixed to use CHECK_DUPLICATE_IP for ipv4 only (bnc#617373). +- Enslave a slaves into a bond on hotplug "up" event (bnc#669361). + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- sysconfig-0.74.5.tar.bz2 New: ---- sysconfig-0.75.0.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ sysconfig.spec ++++++ --- /var/tmp/diff_new_pack.O2rlGJ/_old 2011-04-21 11:42:47.000000000 +0200 +++ /var/tmp/diff_new_pack.O2rlGJ/_new 2011-04-21 11:42:47.000000000 +0200 @@ -19,8 +19,8 @@ Name: sysconfig -Version: 0.74.5 -Release: 2 +Version: 0.75.0 +Release: 1 Summary: The system configuration scheme Url: http://gitorious.org/opensuse/sysconfig Group: System/Base @@ -87,18 +87,17 @@ /etc/init.d/* %ghost /etc/sysconfig/network/config %ghost /etc/sysconfig/network/dhcp -%config(noreplace) /etc/sysconfig/network/ifcfg-lo +%config(noreplace) %attr(600,root,root) /etc/sysconfig/network/ifcfg-lo %config(noreplace) /etc/sysconfig/network/ifroute-lo %config(noreplace) /etc/ppp/ip-up %config(noreplace) /etc/ppp/ip-down %config(noreplace) /etc/ppp/ipv6-up %config(noreplace) /etc/ppp/ipv6-down -%dir /etc/udev -%dir /etc/udev/rules.d -%config /etc/udev/rules.d/77-network.rules -%config /etc/udev/rules.d/81-mount.rules %dir /lib/udev /lib/udev/udevmountd +%dir /lib/udev/rules.d +/lib/udev/rules.d/77-network.rules +/lib/udev/rules.d/81-mount.rules %dir /etc/modprobe.d %config /etc/sysconfig/network/ifcfg.template %config /etc/modprobe.d/50-blacklist.conf ++++++ sysconfig-0.74.5.tar.bz2 -> sysconfig-0.75.0.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysconfig-0.74.5/ChangeLog new/sysconfig-0.75.0/ChangeLog --- old/sysconfig-0.74.5/ChangeLog 2011-01-25 09:58:08.000000000 +0100 +++ new/sysconfig-0.75.0/ChangeLog 2011-03-15 18:42:19.000000000 +0100 @@ -1,4 +1,68 @@ -commit 2d2bd368534b2fa0d5507101631d6a56368e296b (HEAD, opensuse-11.4) +commit d49703aa84e0fa788cada73abb0e93ba2a9bcab0 (HEAD, master) +Author: Marius Tomaschewski <mt@suse.de> +Date: Tue Mar 15 18:41:42 2011 +0100 + + version 0.75.0, updated changes file + +commit 7403b7372a04228d2e336a672ec8930b387b6c83 +Author: Marius Tomaschewski <mt@suse.de> +Date: Tue Mar 15 18:37:58 2011 +0100 + + Install ifcfg-lo with 0600 mode + + With default mode rpm -V would report it as modified because + of the chmod added to the post-install script in bnc#670871. + +commit 42a0293b6195872f3b68230091a12bcce98596ab +Author: Marius Tomaschewski <mt@suse.de> +Date: Tue Mar 15 18:33:23 2011 +0100 + + Moved static 77-network and 81-mount rules to /lib + + All static rules should be installed into /lib/udev/rules.d + and only configurations in /etc/udev/rules.d. + +commit dd3ab31d88d72d501daf8a2716d0be590f4df714 +Author: Marius Tomaschewski <mt@suse.de> +Date: Tue Mar 15 14:53:18 2011 +0100 + + Send gratuitous arp and fixed dupplicate IP check + + When SEND_GRATUITOUS_ARP is set to "yes" either in global network/config or + in a per-interface ifcfg file, send a gratuitous ARP to inform receivers to + update their arp caches. Fixed to use CHECK_DUPLICATE_IP for ipv4 only. + +commit 42a367de439b492add5355b4c02dc6aeb191f345 +Author: Marius Tomaschewski <mt@suse.de> +Date: Fri Mar 4 14:10:51 2011 +0100 + + Handle bonding slave "up" hotplugging event + + Enslave a slave into a bond on hotplug "up" event (bnc#669361). + +commit 6ee0d3251d63d401b3ccf69a091b46252a0cba74 +Author: Marius Tomaschewski <mt@suse.de> +Date: Tue Mar 8 14:44:39 2011 +0100 + + ifservices: updated obsolete eth-id example. + +commit 2a14007b7ff5dd3cfe056c53f29f1e06ca4e5de2 (origin/opensuse-11.4, origin/master, export/opensuse-11.4, export/master, opensuse-11.4) +Author: Marius Tomaschewski <mt@suse.de> +Date: Mon Feb 14 14:58:48 2011 +0100 + + Updated changes file + +commit a5eb0c11110557cf73bf2551c7c23fc4f8df8239 +Author: Marius Tomaschewski <mt@suse.de> +Date: Mon Feb 14 14:57:54 2011 +0100 + + set 0600 permissions for ifcfg files + + Fixed postinstall script to avoid, that (wireless) ifcfg files + become world readable while installation because of a fillup + run; changed to explicitly set 0600 permissions (bnc#670871). + +commit 2d2bd368534b2fa0d5507101631d6a56368e296b Author: Marius Tomaschewski <mt@suse.de> Date: Tue Jan 25 09:57:13 2011 +0100 @@ -13,7 +77,7 @@ strip trailing dots from domains dns search list as added by the dhcp 4.x dhclient(6), to skip duplicates in the search list. -commit 09584c5bf36c7f2a2cf6d3b4cdb2637dc5426785 (origin/opensuse-11.4, origin/master, master) +commit 09584c5bf36c7f2a2cf6d3b4cdb2637dc5426785 Author: Marius Tomaschewski <mt@suse.de> Date: Tue Jan 18 10:46:20 2011 +0100 @@ -23,13 +87,13 @@ that is a /etc/alternatives link, that may be broken in rare cases (bnc#664726). -commit 90f06b9bea0fb203bb4beaa9a51165f1fe234fa5 (export/master) +commit 90f06b9bea0fb203bb4beaa9a51165f1fe234fa5 Author: Marius Tomaschewski <mt@suse.de> Date: Mon Jan 10 12:15:36 2011 +0100 Fixed typo in doc/ifcfg.5, IPv4 autoip, not IPv6 -commit 5f27fe28321497c64358e2e052e36f40952d56a9 (export/opensuse-11.4) +commit 5f27fe28321497c64358e2e052e36f40952d56a9 Author: Marius Tomaschewski <mt@suse.de> Date: Fri Jan 7 17:32:27 2011 +0100 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysconfig-0.74.5/VERSION new/sysconfig-0.75.0/VERSION --- old/sysconfig-0.74.5/VERSION 2011-01-25 09:50:52.000000000 +0100 +++ new/sysconfig-0.75.0/VERSION 2011-03-15 18:05:03.000000000 +0100 @@ -1 +1 @@ -0.74.5 +0.75.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysconfig-0.74.5/config/sysconfig.config-network new/sysconfig-0.75.0/config/sysconfig.config-network --- old/sysconfig-0.74.5/config/sysconfig.config-network 2011-01-06 10:37:21.000000000 +0100 +++ new/sysconfig-0.75.0/config/sysconfig.config-network 2011-03-15 17:56:20.000000000 +0100 @@ -33,6 +33,14 @@ ## Type: yesno ## Default: no +# If ifup should send a gratuitous ARP to inform the receivers about its +# static IP addresses and perhaps also a link-layer (MAC) address change. +# Make sure that packet sockets (CONFIG_PACKET) are supported in the kernel, +# since this feature uses arping, which depends on that. +SEND_GRATUITOUS_ARP="no" + +## Type: yesno +## Default: no # Switch on/off debug messages for all network configuration stuff. If set to no # most scripts can enable it locally with "-o debug". DEBUG="no" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysconfig-0.74.5/configure new/sysconfig-0.75.0/configure --- old/sysconfig-0.74.5/configure 2011-01-25 09:58:02.000000000 +0100 +++ new/sysconfig-0.75.0/configure 2011-03-15 18:42:04.000000000 +0100 @@ -1,7 +1,7 @@ #! /bin/sh # From configure.in Revision: 1.13 . # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.65 for sysconfig 0.74.5. +# Generated by GNU Autoconf 2.65 for sysconfig 0.75.0. # # Report bugs to <http://www.suse.de/feedback/>. # @@ -702,8 +702,8 @@ # Identity of this package. PACKAGE_NAME='sysconfig' PACKAGE_TARNAME='sysconfig' -PACKAGE_VERSION='0.74.5' -PACKAGE_STRING='sysconfig 0.74.5' +PACKAGE_VERSION='0.75.0' +PACKAGE_STRING='sysconfig 0.75.0' PACKAGE_BUGREPORT='http://www.suse.de/feedback/' PACKAGE_URL='' @@ -1428,7 +1428,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures sysconfig 0.74.5 to adapt to many kinds of systems. +\`configure' configures sysconfig 0.75.0 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1498,7 +1498,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of sysconfig 0.74.5:";; + short | recursive ) echo "Configuration of sysconfig 0.75.0:";; esac cat <<\_ACEOF @@ -1598,7 +1598,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -sysconfig configure 0.74.5 +sysconfig configure 0.75.0 generated by GNU Autoconf 2.65 Copyright (C) 2009 Free Software Foundation, Inc. @@ -1969,7 +1969,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by sysconfig $as_me 0.74.5, which was +It was created by sysconfig $as_me 0.75.0, which was generated by GNU Autoconf 2.65. Invocation command line was $ $0 $@ @@ -2781,7 +2781,7 @@ # Define the identity of the package. PACKAGE='sysconfig' - VERSION='0.74.5' + VERSION='0.75.0' cat >>confdefs.h <<_ACEOF @@ -2834,7 +2834,7 @@ init_ddir='${sysconfdir}/init.d' docdir='${prefix}/usr/share/doc/packages/sysconfig' pppdir='${sysconfdir}/ppp' -udevrulesdir='${sysconfdir}/udev/rules.d' +udevrulesdir='${prefix}/lib/udev/rules.d' nm_dispatcherdir='${sysconfdir}/NetworkManager/dispatcher.d' modprobedir='${sysconfdir}/modprobe.d' omc_svcinfodir='${prefix}/usr/share/omc/svcinfo.d' @@ -11272,7 +11272,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by sysconfig $as_me 0.74.5, which was +This file was extended by sysconfig $as_me 0.75.0, which was generated by GNU Autoconf 2.65. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -11329,7 +11329,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -sysconfig config.status 0.74.5 +sysconfig config.status 0.75.0 configured by $0, generated by GNU Autoconf 2.65, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysconfig-0.74.5/configure.in new/sysconfig-0.75.0/configure.in --- old/sysconfig-0.74.5/configure.in 2011-01-06 10:37:21.000000000 +0100 +++ new/sysconfig-0.75.0/configure.in 2011-03-15 18:07:29.000000000 +0100 @@ -18,7 +18,7 @@ init_ddir='${sysconfdir}/init.d' docdir='${prefix}/usr/share/doc/packages/sysconfig' pppdir='${sysconfdir}/ppp' -udevrulesdir='${sysconfdir}/udev/rules.d' +udevrulesdir='${prefix}/lib/udev/rules.d' nm_dispatcherdir='${sysconfdir}/NetworkManager/dispatcher.d' modprobedir='${sysconfdir}/modprobe.d' omc_svcinfodir='${prefix}/usr/share/omc/svcinfo.d' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysconfig-0.74.5/doc/ifcfg.5 new/sysconfig-0.75.0/doc/ifcfg.5 --- old/sysconfig-0.74.5/doc/ifcfg.5 2011-01-18 11:09:04.000000000 +0100 +++ new/sysconfig-0.75.0/doc/ifcfg.5 2011-03-15 17:56:20.000000000 +0100 @@ -318,6 +318,8 @@ .TP .B CHECK_DUPLICATE_IP .TP +.B SEND_GRATUITOUS_ARP +.TP .B DEBUG .TP .B USE_SYSLOG= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysconfig-0.74.5/doc/ifservices.5 new/sysconfig-0.75.0/doc/ifservices.5 --- old/sysconfig-0.74.5/doc/ifservices.5 2010-11-12 14:17:50.000000000 +0100 +++ new/sysconfig-0.75.0/doc/ifservices.5 2011-03-15 17:49:47.000000000 +0100 @@ -59,20 +59,19 @@ .BR (7) . .SH EXAMPLE -In this example we use an interface with MAC address 00:de:ad:be:af:00. This -interface is not always physically connected. As soon as you plug in the cable -ypbind and autofs should be started. When you pull the cable they should be -stopped. This can be reached with: +In this example we use the eth0 interface, that is not always physically connected. +As soon as you plug in the cable ypbind and autofs should be started. When you pull +the cable they should be stopped. This can be reached with: .sp in file -.I /etc/sysconfig/network/ifcfg-eth-id-00:de:ad:be:af:00 +.I /etc/sysconfig/network/ifcfg-eth0 ... STARTMODE=ifplugd ... in dir -.I /etc/sysconfig/network/ifservices-eth-id-00:de:ad:be:af:00/ +.I /etc/sysconfig/network/ifservices-eth0/ S10portmap -> /etc/init.d/portmap S20ypbind -> /etc/init.d/ypbind diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysconfig-0.74.5/doc/ifsysctl.5 new/sysconfig-0.75.0/doc/ifsysctl.5 --- old/sysconfig-0.74.5/doc/ifsysctl.5 2010-11-16 13:37:09.000000000 +0100 +++ new/sysconfig-0.75.0/doc/ifsysctl.5 2011-03-15 18:02:24.000000000 +0100 @@ -22,7 +22,7 @@ The settings are applied by the .B /etc/sysconfig/network/scripts/ifup-sysctl script executed via -.B /etc/udev/rules.d/77-network.rules +.B /lib/udev/rules.d/77-network.rules rule (see \fBudev(7)\fR), after the creation and after the rename of the interface name to its persistent name (when applicable), but before the \fBifup <interface name> -o hotplug\fR may be executed to configure the interface. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysconfig-0.74.5/scripts/functions new/sysconfig-0.75.0/scripts/functions --- old/sysconfig-0.74.5/scripts/functions 2011-01-11 15:47:31.000000000 +0100 +++ new/sysconfig-0.75.0/scripts/functions 2011-03-15 17:55:55.000000000 +0100 @@ -359,6 +359,33 @@ return 1 } +get_bonding_master () { + local IF="$1" + test "x$IF" = "x" && return 1 + + local a master slave + while IFS=- read a master; do + case $master in + ""|*~|*.old|*.rpmnew|*.rpmsave|*.scpmbackup) + continue + ;; + esac + + local BONDING_MASTER + get_variable BONDING_MASTER "$master" + test "$BONDING_MASTER" = yes || continue + + unset ${!BONDING_SLAVE*} + get_variable BONDING_SLAVE "$master" + for slave in ${!BONDING_SLAVE*} ; do + if test "x$IF" = "x${!slave}" ; then + echo "$master" + return 0 + fi + done + done < <(ls -1d /etc/sysconfig/network/ifcfg-* 2>/dev/null) +} + get_ifplugd_priority () { local IFPLUGD_PRIORITY=0 declare -i IFPLUGD_PRIORITY diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysconfig-0.74.5/scripts/ifup new/sysconfig-0.75.0/scripts/ifup --- old/sysconfig-0.74.5/scripts/ifup 2011-01-18 11:09:04.000000000 +0100 +++ new/sysconfig-0.75.0/scripts/ifup 2011-03-15 17:56:20.000000000 +0100 @@ -560,6 +560,26 @@ [ -n "$tmp_startmode" ] && STARTMODE="$tmp_startmode" fi +###################################################################### +# handle bonding slave "up" hotplugging event +# +if [ "$SCRIPTNAME" = ifup -a "$HOTPLUG" = yes -a \ + "$DHCP" != yes -a "$BONDING_MASTER" != yes ] ; then + + MASTER=`get_bonding_master "$INTERFACE"` + if test "x$MASTER" != x -a -d "/sys/class/net/$MASTER" ; then + + scripts/${SCRIPTNAME}-bonding "$MASTER" "$MASTER" \ + ${OPTIONS:+-o $OPTIONS} + retcode=$? + + # verify we're enslaved now + m=`cd -P "/sys/class/net/$INTERFACE/master" \ + 2>/dev/null && echo ${PWD##*/}` + test "$m" = "$MASTER" || retcode=$R_NOTRUNNING + fi +fi + test "$STARTMODE" = "on" && STARTMODE=auto test "$STARTMODE" = "boot" && STARTMODE=auto test "$STARTMODE" = "onboot" && STARTMODE=auto @@ -1052,11 +1072,11 @@ " IPADDR = $IPADDR\n" \ " PREFIXLEN = $PREFIXLEN\n" \ " CHECK_DUPLICATE_IP = $CHECK_DUPLICATE_IP" - if [ "$CHECK_DUPLICATE_IP" = "yes" ] ; then + if [ "$ISv6" = "no" -a "$CHECK_DUPLICATE_IP" = "yes" ] ; then arping -q -c 2 -w 3 -D -I $INTERFACE $IPADDR \ && CHECK_DUPLICATE_IP=no fi - if [ "$CHECK_DUPLICATE_IP" = "yes" ] ; then + if [ "$ISv6" = "no" -a "$CHECK_DUPLICATE_IP" = "yes" ] ; then logerror "Error on setting up interface" \ "$INTERFACE:$LABEL:\n" \ " address $IPADDR already in use.\n Probably" \ @@ -1091,6 +1111,10 @@ esac ;; *) retcode=$R_NOTRUNNING ;; esac + if [ "$retcode" = "$R_SUCCESS" -a "$ISv6" = "no" -a \ + "$SEND_GRATUITOUS_ARP" = "yes" ] ; then + arping -q -A -c 1 -I $INTERFACE $IPADDR + fi fi ADDRCOUNT=$(($ADDRCOUNT + 1)) done diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysconfig-0.74.5/sysconfig.spec new/sysconfig-0.75.0/sysconfig.spec --- old/sysconfig-0.74.5/sysconfig.spec 2011-01-25 09:58:06.000000000 +0100 +++ new/sysconfig-0.75.0/sysconfig.spec 2011-03-15 18:42:08.000000000 +0100 @@ -19,7 +19,7 @@ Name: sysconfig -Version: 0.74.5 +Version: 0.75.0 Release: 0 Summary: The system configuration scheme Url: http://gitorious.org/opensuse/sysconfig @@ -87,18 +87,17 @@ /etc/init.d/* %ghost /etc/sysconfig/network/config %ghost /etc/sysconfig/network/dhcp -%config(noreplace) /etc/sysconfig/network/ifcfg-lo +%config(noreplace) %attr(600,root,root) /etc/sysconfig/network/ifcfg-lo %config(noreplace) /etc/sysconfig/network/ifroute-lo %config(noreplace) /etc/ppp/ip-up %config(noreplace) /etc/ppp/ip-down %config(noreplace) /etc/ppp/ipv6-up %config(noreplace) /etc/ppp/ipv6-down -%dir /etc/udev -%dir /etc/udev/rules.d -%config /etc/udev/rules.d/77-network.rules -%config /etc/udev/rules.d/81-mount.rules %dir /lib/udev /lib/udev/udevmountd +%dir /lib/udev/rules.d +/lib/udev/rules.d/77-network.rules +/lib/udev/rules.d/81-mount.rules %dir /etc/modprobe.d %config /etc/sysconfig/network/ifcfg.template %config /etc/modprobe.d/50-blacklist.conf @@ -174,18 +173,25 @@ fi # remove ntp variables obsoleted by netconfig (new default is "yes") # as well as some another obsolete dhcp variables +_umask=`umask` for file in etc/sysconfig/network/dhcp etc/sysconfig/network/ifcfg-* ; do name="${file##*\/ifcfg-}" case $name in (lo|""|*" "*|*~|*.old|*.rpmnew|*.rpmsave|*.scpmbackup) continue ;; esac + case $file in + (*/ifcfg-*) umask 0177 ;; + esac sysconfig_remove_and_set -b "" $file \ DHCLIENT_MODIFY_NTP_CONF \ DHCLIENT_ADDITIONAL_OPTIONS \ DHCLIENT_SCRIPT_EXE + umask $_umask done # erroneous move from network/dhcp to network/config while 11.1 beta sysconfig_remove_and_set network/config WRITE_HOSTNAME_TO_HOSTS +# be a little bit paranoid and set the correct mode even we set umask +chmod 0600 etc/sysconfig/network/ifcfg-* %postun %{insserv_cleanup} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysconfig-0.74.5/sysconfig.spec.in new/sysconfig-0.75.0/sysconfig.spec.in --- old/sysconfig-0.74.5/sysconfig.spec.in 2011-01-25 09:55:29.000000000 +0100 +++ new/sysconfig-0.75.0/sysconfig.spec.in 2011-03-15 18:37:23.000000000 +0100 @@ -87,18 +87,17 @@ /etc/init.d/* %ghost /etc/sysconfig/network/config %ghost /etc/sysconfig/network/dhcp -%config(noreplace) /etc/sysconfig/network/ifcfg-lo +%config(noreplace) %attr(600,root,root) /etc/sysconfig/network/ifcfg-lo %config(noreplace) /etc/sysconfig/network/ifroute-lo %config(noreplace) /etc/ppp/ip-up %config(noreplace) /etc/ppp/ip-down %config(noreplace) /etc/ppp/ipv6-up %config(noreplace) /etc/ppp/ipv6-down -%dir /etc/udev -%dir /etc/udev/rules.d -%config /etc/udev/rules.d/77-network.rules -%config /etc/udev/rules.d/81-mount.rules %dir /lib/udev /lib/udev/udevmountd +%dir /lib/udev/rules.d +/lib/udev/rules.d/77-network.rules +/lib/udev/rules.d/81-mount.rules %dir /etc/modprobe.d %config /etc/sysconfig/network/ifcfg.template %config /etc/modprobe.d/50-blacklist.conf @@ -174,18 +173,25 @@ fi # remove ntp variables obsoleted by netconfig (new default is "yes") # as well as some another obsolete dhcp variables +_umask=`umask` for file in etc/sysconfig/network/dhcp etc/sysconfig/network/ifcfg-* ; do name="${file##*\/ifcfg-}" case $name in (lo|""|*" "*|*~|*.old|*.rpmnew|*.rpmsave|*.scpmbackup) continue ;; esac + case $file in + (*/ifcfg-*) umask 0177 ;; + esac sysconfig_remove_and_set -b "" $file \ DHCLIENT_MODIFY_NTP_CONF \ DHCLIENT_ADDITIONAL_OPTIONS \ DHCLIENT_SCRIPT_EXE + umask $_umask done # erroneous move from network/dhcp to network/config while 11.1 beta sysconfig_remove_and_set network/config WRITE_HOSTNAME_TO_HOSTS +# be a little bit paranoid and set the correct mode even we set umask +chmod 0600 etc/sysconfig/network/ifcfg-* %postun %{insserv_cleanup} ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de