From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludwig Nussel Date: Wed, 18 May 2011 07:03:49 +0000 Subject: Re: future of sysctls? Message-Id: <201105180903.50183.ludwig.nussel@suse.de> List-Id: References: <201105121741.27459.ludwig.nussel@suse.de> In-Reply-To: <201105121741.27459.ludwig.nussel@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org Lennart Poettering wrote: > On Tue, 17.05.11 09:15, Ludwig Nussel (ludwig.nussel@suse.de) wrote: > > Lennart Poettering wrote: > > > On Thu, 12.05.11 17:41, Ludwig Nussel (ludwig.nussel@suse.de) wrote: > > > > I'm currently struggling to find a sane way to set > > > > net.ipv6.conf.default.use_tempaddr. > > > > Traditionally at some point during boot "sysctl -e -q -p /etc/sysct= l.conf" is > > > > called. That doesn't really work out anymore. The aforementioned se= tting needs > > > > to be applied after the ipv6 module is loaded (could be compiled in= to the > > > > kernel too though) otherwise it wouldn't apply. It needs to be set = before a > > > > network driver is loaded though as the default value is copied to > > > > interfaces specific settings at interface creation time. On top of > > > > that there are also network interface specific sysctls that need to > > > > be applied after an interface is created (e.g. > > > > net.ipv6.conf.eth0.use_tempaddr). > > >=20 > > > Something like this is kinda broken anyway, since it is racy: you can > > > apply the sysctl only after the interface is already available. > >=20 > > Exactly. > >=20 > > > Might be a good idea to just ignore these kinds of settings. Or if th= is > > > is not possible, then set them from NM or whatever controls the netwo= rk. > >=20 > > That's that hack that's currently in place. Network scripts grep > > /etc/sysctl.conf for interface specific settings... >=20 > Urks. What we could do to make this nicer is add a simple prefix match > logic to our sysctl apply tool, so that it is easy to apply a subtree of > sysctls when the time comes. I've sent a patch to the procps maintainer but he has yet to respond. It's not a real solution anyways. It just makes a dirty hack a little more efficient. cu Ludwig --=20 (o_ Ludwig Nussel //\ V_/_ http://www.suse.de/ SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffe= r, HRB 16746 (AG N=FCrnberg)=20