Gentoo Archives: gentoo-dev

From: William Hubbs <williamh@g.o>
To: gentoo development <gentoo-dev@l.g.o>
Subject: [gentoo-dev] rfc: only the loopback interface should provide net
Date: Mon, 06 Feb 2012 21:06:33
Message-Id: 20120206210451.GA1940@linux1
1 All,
2
3 I've been pondering for a while why All of OpenRC's network interfaces
4 provide net.
5
6 My understanding of the "net" service is that it is there to signal that
7 a generic network connection is active.
8
9 What I would like to do in OpenRC is change the network scripts so that
10 only the loopback interface provides net.
11
12 The down side of this approach will be that if a daemon uses a specific
13 ip address in its configuration, or if it binds to a specific address,
14 the user will have to set up the appropriate configuration options in
15 /etc/conf.d. For example, if I setup sshd to use 192.168.10.1 and eth0 has
16 this address, I have to put the following line in /etc/conf.d/sshd:
17
18 rc_need="net.eth0"
19
20 One advantage I see of this approach is it will provide a fix for bugs like
21 http://bugs.gentoo.org/show_bug.cgi?id=228973 by requiring users to
22 configure services like this to start after the interface they use
23 is started.
24
25 Attached to this message you will find the patch I want to apply to
26 OpenRC to make this change.
27
28 Any thoughts, comments, or suggestions would be helpful.
29
30 William

Attachments

File name MIME type
0001-Only-the-loopback-interface-should-provide-net.patch text/plain

Replies