FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 08-20-2012, 06:27 PM
Noel David Torres Taño
 
Default can we (fully) fix/integrate NetworkManager (preferred) or release-goal its decommissioning

Have you all minded that there are several *different* use cases?

* Laptop user going here and there, sometimes with Wireless, sometimes with
cable, sometimes with USB stick
* Desktop user with home ADSL
* Server with several connections

Each use case has its own needs, and its own best tools.

No ifupdown nor NM will fit them all, ever.

Regards

Noel Torres
er Envite
 
Old 08-20-2012, 07:10 PM
Stephan Seitz
 
Default can we (fully) fix/integrate NetworkManager (preferred) or release-goal its decommissioning

On Mon, Aug 20, 2012 at 02:19:19PM +0200, Bjørn Mork wrote:

Stephan Seitz <stse+debian@fsing.rootsland.net> writes:

On Mon, Aug 20, 2012 at 01:08:53PM +0200, Bjørn Mork wrote:

Never mind wireless lan where you've got a well defined kernel API. Try
to configure a modern 3G/LTE modem using ifupdown, and you will see the

Is this something different from an UMTS usbstick?

[Good explanation snipped]

Thank you very much.


But yes, if „pon umts†is enough for you then you don't need NM (or even
ifupdown - pppd and vim will do).


Right, that is enough for me. I use the UMTS stick only in the holidays
about three weeks each year. And I’m glad I will get GPRS in the Austrian
mountains. Different LED colours show me the kind of connection.


It seems I have to be careful if I have to buy a new one.

Stephan

--
| Stephan Seitz E-Mail: stse@fsing.rootsland.net |
| Public Keys: http://fsing.rootsland.net/~stse/keys.html |
 
Old 08-21-2012, 12:59 AM
Paul Wise
 
Default can we (fully) fix/integrate NetworkManager (preferred) or release-goal its decommissioning

On Mon, 2012-08-20 at 09:18 +0200, martin f krafft wrote:

> Or get it working properly with Python, make use of the simplicity
> of interpreted languages until the design is actually proven to
> work, and then rewrite it…

Ah, I thought it was further along than that.

--
bye,
pabs

http://wiki.debian.org/PaulWise
 
Old 08-21-2012, 02:16 AM
Ben Hutchings
 
Default can we (fully) fix/integrate NetworkManager (preferred) or release-goal its decommissioning

On Mon, 2012-08-20 at 02:07 +0200, Christoph Anton Mitterer wrote:
> Hey Ben.
>
>
> On Sun, 2012-08-19 at 19:32 +0100, Ben Hutchings wrote:
> > To allow users to connect to the NetworkManager daemon they have to be in the
> > group "netdev".
> Like Vincent already pointed out, CK allows it, too.

Oops, yes, good point.

> In principle nothing speaks generally against either of the two, but I
> guess both of them are just intended towards "who is allowed to connect
> to networks"; either by being member of the group, or by being locally
> logged on (CK).
> But when I e.g. put WPA credentials into /e/n/interfaces and made the
> file specifically readable by root and user foo only, then it still
> exports that connection to all other users (e.g. being logged on
> locally; at least per default).
>
>
> > The capability to *use* credentials is separate from the capability to
> > *read* the credentials.
> Well nevertheless, both can be dangerous already, can't it?

Of course.

> Even if it just allows me to use (i.e. connect to) some WLAN but not
> giving me the actual key, I might be able to access some resources
> there, that ought to be secure.

This is also true if you can run a process on the machine while that
WLAN connection is up. Because the capability to use a network
connection that's already up is another thing again...

> > (Also, the design choice to read credentials from a file that is world-
> > readable by default is incredibly stupid, and you may wish to report
> > bugs on the packages that do that.)
> I don't exactly understand what you mean

I'm saying that reading credentials from /etc/network/interfaces is
probably a bug. In the 'bug' script for Linux kernel packages we have
this filter:

# Hide passwords/keys
awk '$1 ~ /key|pass|^wpa-(anonymous|identity|phase|pin|private|psk)/ { gsub(".", "*", $2); }
$1 == "ethtool-wol" { gsub(".", "*", $3); }
!/^[[:space:]]*#/ { print; }
' </etc/network/interfaces >&3

I can't remember quite how I came up with this list... I assume the
wpa-* fields were previously used by wpa_supplicant hooks, but that
doesn't seem to be the case any more. wireless-tools still uses
wireless-key{1,2,3,4}. For ethtool-wol (wake-on-LAN) there is an
optional 'SecureOn password' for Magic Packet mode. This is a little
bit different from the others but I probably should still add the option
to read it from a separate file.

[...]
> > ifupdown *was* a good framework, but Linux moved on. ifupdown doesn't
> > know anything about interface state.
> What exactly do you mean by "state"?

ifupdown records whether an interface has been brought up using a
particular configuration (referenced by name). If you change the state
using anything other tool, it has no idea. If the driver reports a
change of state, it doesn't react. If you change or remove the
configuration, it doesn't even know how to bring the interface down
again! (That last one should be fixable, by storing the configuration
along with the 'up' state file.)

Pretty much all it does is to run a pre-defined 'up' or 'down' sequence.
Even once it can reliably report failure, I suspect it won't know how to
roll back.

> But anyway,.. it doesn't seem as if it would go away anytime soon,...
> and NM is AFAICS surely not a powerful enough replacement.

Not yet, no.

> > It doesn't know whether hooks
> > succeeded and it can't check for failures because that would be an
> > incompatible change (#547587).
> Sometimes one have to break compatibility ;-)

Yes, and I absolutely support this change. It's just a shame that it's
taken such a long to be recognised as necessary.

[...]
> > I would really like to see Debian developers working to improve Network
> > Manager so it can replace ifupdown. For example, improving the command
> > line interface and support for various types of software devices.
> > Unfortunately, I don't have the spare time to make much of a
> > contribution to that myself. (I do install ifupdown hooks as part of
> > ethtool, so I'll have to think about those.)
> If all that ever happens,... fine (though I like ifupdown and personally
> don't see the need for replacing it),... but it's surely a long road to
> it.... and has the big disadvantage that we (Debian) are then more or
> less bound to what NM (and other distros) do.
> Sometimes it's good of course, having homogeneous frameworks across
> distros,... but this can also be bad.

By the same token, we should have our own kernel, C library, etc.

Ben.

--
Ben Hutchings
The most exhausting thing in life is being insincere. - Anne Morrow Lindberg
 
Old 08-24-2012, 08:44 AM
Andrew Shadura
 
Default can we (fully) fix/integrate NetworkManager (preferred) or release-goal its decommissioning

Hello,

On Mon, 20 Aug 2012 14:51:27 +0100
Ben Hutchings <ben@decadent.org.uk> wrote:

> What I mean is that this still happens:

> # ifup eth0
> ...
> # ifconfig eth0 down
> # ifup eth0
> ifup: interface eth0 already configured

Why should it happen otherwise? You did *NOT* deconfigure the interface.

> People talk about how ifupdown works well with other configuration
> tools, unlike Network Manager. But it doesn't, it only knows how to
> undo the configuration specified in /etc/network/interfaces.

...and NM can't do anything at all which it doesn't know about.

How do you suppose it's possible to undo arbitrary network
configuration done by arbitrary set of tools when there's no central
place to hold such information (and can't possibly be)?

--
WBR, Andrew
 
Old 08-24-2012, 08:46 AM
Andrew Shadura
 
Default can we (fully) fix/integrate NetworkManager (preferred) or release-goal its decommissioning

Hello,

On Mon, 20 Aug 2012 16:21:18 +0200
Mike Hommey <mh@glandium.org> wrote:

> > People talk about how ifupdown works well with other configuration
> > tools, unlike Network Manager. But it doesn't, it only knows how to
> > undo the configuration specified in /etc/network/interfaces.

> ifupdown should be the only way to configure network interfaces.
> Debian should get rid of NM, ifconfig, ip, and all the other heretic
> programs that break ifupdown.

Haha, how clever and funny. And now please go and write you own
NetConfNG which handles all the possible situations, ever. Or maybe you
know any which does that already? I'm not aware of it.

--
WBR, Andrew
 
Old 08-24-2012, 02:03 PM
Ben Hutchings
 
Default can we (fully) fix/integrate NetworkManager (preferred) or release-goal its decommissioning

On Fri, 2012-08-24 at 10:44 +0200, Andrew Shadura wrote:
> Hello,
>
> On Mon, 20 Aug 2012 14:51:27 +0100
> Ben Hutchings <ben@decadent.org.uk> wrote:
>
> > What I mean is that this still happens:
>
> > # ifup eth0
> > ...
> > # ifconfig eth0 down
> > # ifup eth0
> > ifup: interface eth0 already configured
>
> Why should it happen otherwise? You did *NOT* deconfigure the interface.

It certainly isn't in the state that 'ifup' put it the first time. I
want it back in that state now, why won't it do that?

> > People talk about how ifupdown works well with other configuration
> > tools, unlike Network Manager. But it doesn't, it only knows how to
> > undo the configuration specified in /etc/network/interfaces.
>
> ...and NM can't do anything at all which it doesn't know about.
>
> How do you suppose it's possible to undo arbitrary network
> configuration done by arbitrary set of tools when there's no central
> place to hold such information (and can't possibly be)?

There is, it's called the kernel.

Ben.

--
Ben Hutchings
Experience is what causes a person to make new mistakes instead of old ones.
 
Old 08-24-2012, 02:18 PM
Andrew Shadura
 
Default can we (fully) fix/integrate NetworkManager (preferred) or release-goal its decommissioning

Hello,

On Fri, 24 Aug 2012 15:03:49 +0100
Ben Hutchings <ben@decadent.org.uk> wrote:

> There is, it's called the kernel.

No, there isn't, and there can't possibly be, as interface's
configuration isn't only what ifconfig/route/ip reports to you (which
is what kernel knows about it).

--
WBR, Andrew
 
Old 08-24-2012, 04:19 PM
Ben Hutchings
 
Default can we (fully) fix/integrate NetworkManager (preferred) or release-goal its decommissioning

On Fri, Aug 24, 2012 at 04:18:12PM +0200, Andrew Shadura wrote:
> Hello,
>
> On Fri, 24 Aug 2012 15:03:49 +0100
> Ben Hutchings <ben@decadent.org.uk> wrote:
>
> > There is, it's called the kernel.
>
> No, there isn't, and there can't possibly be, as interface's
> configuration isn't only what ifconfig/route/ip reports to you (which
> is what kernel knows about it).

What elements of interface state are you thinking of, then?

Ben.

--
Ben Hutchings
We get into the habit of living before acquiring the habit of thinking.
- Albert Camus


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120824161942.GR29217@decadent.org.uk">http://lists.debian.org/20120824161942.GR29217@decadent.org.uk
 
Old 08-26-2012, 07:24 PM
Vincent Lefevre
 
Default can we (fully) fix/integrate NetworkManager (preferred) or release-goal its decommissioning

On 2012-08-20 13:08:53 +0200, Bjørn Mork wrote:
> Why do you install gnome-core if you don't want the resulting
> package mess?

If it isn't that important, I think the word "essential" shouldn't
be used.

--
Vincent Lefèvre <vincent@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120826192425.GA19561@xvii.vinc17.org">http://lists.debian.org/20120826192425.GA19561@xvii.vinc17.org
 

Thread Tools




All times are GMT. The time now is 09:35 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org