netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* non-root, non-real network manipulation for netconf testing
@ 2008-06-03  8:05 martin f krafft
  2008-06-03 10:05 ` Ben Hutchings
  2008-06-03 17:43 ` Bas Wijnen
  0 siblings, 2 replies; 6+ messages in thread
From: martin f krafft @ 2008-06-03  8:05 UTC (permalink / raw)
  To: netdev discussion list; +Cc: netconf developers list

[-- Attachment #1: Type: text/plain, Size: 1756 bytes --]

Dear networking wizards,

This is a bit of a self-reflexive mail, but I hope some of you might
have some input...

In writing netconf[0], we are having a bit of a problem with the
test suite, since many of netconf's operations require root rights
(e.g. interface manipulation with /bin/ip). In addition, a test
suite manipulating the network configuration of the running machine
is not really something I feel comfortable with.

0. http://netconf.alioth.debian.org

So I am trying to come up with alternative plans, of which there are
three:

1. do not fail tests that need root rights when run as non-root
2. set up a VDE network (which still requires root rights)
3. write a mock /bin/ip which pretends to be doing what it'd be doing

None of these three is satisfactory. (1) provides incomplete test
coverage unless run by root, which is not going to be done very
often, (2) can be combined with (1) but still puts the host machine
in danger of losing connectivity, and (3) just sounds terrible,
especially when other stuff, like dhclient or wpa_supplicant come
into play.

Of course, I am asking a bit much, but maybe you guys have some
input that could help us move along?

What I really want is some context handler that can emulate
a complete network and process stack for my test scripts, let
a normal user modify anything they want, but not touch anything on
the actual system. Sort of like database transactions. I think I may
be out of luck though, no?

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
"you don't sew with a fork, so I see no reason
 to eat with knitting needles."
                               -- miss piggy, on eating chinese food
 
spamtraps: madduck.bogus@madduck.net

[-- Attachment #2: Digital signature (see http://martin-krafft.net/gpg/) --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-06-04 13:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-03  8:05 non-root, non-real network manipulation for netconf testing martin f krafft
2008-06-03 10:05 ` Ben Hutchings
2008-06-03 10:20   ` martin f krafft
2008-06-03 10:47     ` Ben Hutchings
2008-06-04  9:13       ` martin f krafft
2008-06-03 17:43 ` Bas Wijnen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).