Agreement to relicense NetworkManager under LGPL-2.1+

2020-09-24 Thread Daniel Gnoutcheff
I (Daniel Gnoutcheff) agree to license my contributions to NetworkManager under the terms of the GNU Lesser General Public License version v2.1 or (at your option) any later version. Thanks, Daniel G. signature.asc Description: OpenPGP digital signature

Re: NM connects to a mobile network even if Mobile network in tray icon's context menu is unchecked

2011-08-02 Thread Daniel Gnoutcheff
On 08/01/2011 05:57 PM, Dan Williams wrote: On Sun, 2011-07-31 at 14:41 -0400, Daniel Gnoutcheff wrote: snip So, when the user disables wifi, we transition the wifi devices to NM_DEVICE_STATE_UNAVAILABLE. This is what prevents nm-policy from trying to autoconnect them. It also means

[PATCH] policy: don't autoconnect disabled modems

2011-08-02 Thread Daniel Gnoutcheff
Normally, a device disabled via nm_device_interface_set_enabled() will shift into the UNAVAILABLE state. Modems, however, don't do that. Rather, they pretend that they are in the DISCONNECTED state, presumably to make it easier to re-enable them. To avoid accidentally re-enabling and

[PATCH] modem: fix race with nm_modem_set_mm_enabled

2011-08-02 Thread Daniel Gnoutcheff
Once we've sent a method call over DBus requesting that the modem be disabled, we should assume that the modem is disabled unless we hear otherwise. Otherwise, code that checks the modem state immediately after it gets disabled might think that it's enabled when it almost certainly is not. ---

Re: NM connects to a mobile network even if Mobile network in tray icon's context menu is unchecked

2011-07-31 Thread Daniel Gnoutcheff
On 07/30/2011 06:58 PM, Dan Williams wrote: Yeah, I think your analysis is correct. It would seem really odd to me to auto-activate a mobile broadband connection if the MB is not enabled. If MB is not enabled, only a user action should enable it. Thanks fro checking this out. No problem. :)

Re: NM connects to a mobile network even if Mobile network in tray icon's context menu is unchecked

2011-07-30 Thread Daniel Gnoutcheff
on the menu when Enable Mobile Broadband is unchecked. Eugene is reporting that those connections also appear to be eligible for autoactivation. The former seems OK to me, but the latter is strange. I assume it's a bug; I'll investigate. Have a good one, Daniel Gnoutcheff

[PATCH] supplicant-manager: fix DBus signal signatures

2011-07-29 Thread Daniel Gnoutcheff
The DBus signatures registered (via dbus_g_proxy_add_signal) for the fi.w1.wpa_supplicant.Interface.{BSSAdded,ScanDone} signals were incorrect. That prevented us from receiving wifi ap scan results, at least in the case where wpa_supplicant has DBus introspection disabled. ---

Re: Adhoc: IPV4 setting 'link-local'

2010-08-09 Thread Daniel Gnoutcheff
On 08/08/2010 02:32 AM, Dan Williams wrote: Can you: mv /usr/sbin/avahi-autoipd /usr/sbin/avahi-autoipd.orig and put this into a script named /usr/sbin/avahi-autoipd: #!/bin/bash avahi-autoipd --debug --syslog $@ Ahh ... are you sure you don't mean to write this: #!/bin/bash

Re: Setting static ip base on NetworkManager

2010-08-07 Thread Daniel Gnoutcheff
On 08/03/2010 07:58 AM, edward_do...@wistron.com wrote: Dear, could someone teach me how i can set static ip base on NM. (gateway , DNS etc..) Now, if i don't use nm-applet to control NM. what can i do? i study NM DBus doc. But it doesn't define any Wifi or Wire staic ip. Right, the

[PATCH] ifupdown: header file correction

2010-08-02 Thread Daniel Gnoutcheff
NMIfupdownConnection really is a subclass of NMSysconfigConnection (as declared via the G_DEFINE_TYPE macro in nm-ifconfig-connection.c), but the header incorrectly used NMExportedConnection* in the class and instance structs. We got away with it because NMSysconfigConnection* didn't contain

Re: Get uuid of connection

2010-07-21 Thread Daniel Gnoutcheff
19, 2010 at 7:03 PM, Daniel Gnoutcheff dan...@gnoutcheff.name mailto:dan...@gnoutcheff.name wrote: On 07/19/2010 09:27 AM, Arlen Nascimento wrote: It is possible to do it by means of dbus commands or something? examples? Here's one: http://cgit.freedesktop.org

N-M class diagram

2010-07-20 Thread Daniel Gnoutcheff
Here is an (incomplete and possibly incorrect) UML-ish class diagram of libnm-util, libnm-glib, and parts of the daemon and of nm-applet: http://daniel.gnoutcheff.name/nm/class-diagram-v01.dia I originally created this just as an exercise, but I figure other people may find this useful. This

Re: Get uuid of connection

2010-07-19 Thread Daniel Gnoutcheff
On 07/19/2010 09:27 AM, Arlen Nascimento wrote: It is possible to do it by means of dbus commands or something? examples? Here's one: http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/examples/python/add-system-connection.py dbus-send(1) probably could do the job as well, e.g. if

Re: Get uuid of connection

2010-07-16 Thread Daniel Gnoutcheff
On 07/16/2010 10:16 AM, Arlen Nascimento wrote: Hi, all, I noted that the uuid is created only after when you click on the connection on nm-applet. Is it right? Sometimes. The UUID is generated (I think) whenever a connection is created. (By connection, I mean a group of settings data that

Re: Different permissions for different network interfaces

2010-07-14 Thread Daniel Gnoutcheff
(Simon, just to get you up to speed: you've picked the perfect time to ask this question, since we're actually in the middle of revamping how N-M manages connection settings, esp. in regard to how it manages security restrictions. Our plans/scratch notes reside at

Re: Problems connecting to open (unsecured) WiFi networks from Ubuntu

2010-07-09 Thread Daniel Gnoutcheff
On 07/09/2010 01:17 PM, mike wrote: I have no problem with my wireless network at home, or visiting friends, but it won't connect to public, open, unsecured WiFi networks, eg hotels, trains, ships. snip I've run out of things to stab at blindly. Can anyone help in an informed way?? My guess

[PATCH] keyfile-connection: correctly send update signal

2010-07-09 Thread Daniel Gnoutcheff
For exported connections, nm_settings_connection_interface_update() is supposed to cause the emission of a NM_SETTINGS_CONNECTION_INTERFACE_UPDATED signal. This is usually done by chaining up to the NMExportedConnection implementation of this method, which actually emits the signal. However, the

Re: ['N-M is not allowed to own the service org.freedesktop.NetworkManager']

2010-07-02 Thread Daniel Gnoutcheff
On 07/02/2010 02:21 AM, ddrea...@ms93.url.com.tw wrote: Sorry for replying late. Somehow, I didn't receive the messages. I found messages following my original one only after I viewed the archive by topic. Hmm, are you subscribed to this list? I'm in the habit of using reply to list, so the

Re: Removing user settings services

2010-06-28 Thread Daniel Gnoutcheff
On 06/25/2010 04:37 PM, I wrote: Maybe a better approach is a hybrid of our proposals: have ACLs instead govern the right to _access_ and the right to modify, and then have a polkit action that determines if someone has the right to activate a connection that they can access. I think this

Re: migrating configurations of nm-applet

2010-06-25 Thread Daniel Gnoutcheff
On 06/25/2010 11:44 AM, Sergio Monteiro Basto wrote: Hi, I have a new laptop , and I would like migrate all my configurations and vpns , where this information is saved ?. I saw .gconf/system/networking/connections some configuration but copy them seems not working , any tip ? Well, when

Re: Removing user settings services

2010-06-24 Thread Daniel Gnoutcheff
On 06/23/2010 08:15 PM, Dan Williams wrote: I think the way this gets handled is that if there are no users which have permission to activate/deactivate the connection are logged in, the connection gets terminated. I like this idea in general, though there are a few things we have to be

Re: Removing user settings services

2010-06-22 Thread Daniel Gnoutcheff
Thanks for the comments! On 06/22/2010 04:28 AM, Ludwig Nussel wrote: I'm not sure the privileges need to be that fine grained as in your proposal though. Physical access to a system likely allows to terminate any connection anyways e.g. by unplugging the device or it's wire or by hitting the

Re: http://live.gnome.org/NetworkManager: broken link

2010-06-19 Thread Daniel Gnoutcheff
On 06/19/2010 10:08 AM, Paul Menzel wrote: Dear NM admins, could you please fix NetworkManager at bugzilla.gnome.org from [1] to [2] to fix the following error message. Field meta-status is not a known field. The legal field names are listed here. Thanks, Paul [1]

Re: ModemManager 0.4 API Documentation ?

2010-06-19 Thread Daniel Gnoutcheff
On 06/19/2010 10:56 AM, tom wrote: Hi, where can i find the API Documentation for ModemManager? Cheers, Tom I think this is it: http://projects.gnome.org/NetworkManager/developers/mm-spec-04.html Have a good one, Daniel ___

Re: ['N-M is not allowed to own the service org.freedesktop.NetworkManager']

2010-06-16 Thread Daniel Gnoutcheff
On 06/16/2010 01:01 PM, ddrea...@ms93.url.com.tw wrote: Hi, Dear: I am using Ubuntu 10.04 with regular update. There is a red exclamation mark at the right lower corner of the nm-applet icon. Of course, there was no signal level. Clicking it results in the message of NetworkManager is not

Removing user settings services

2010-06-16 Thread Daniel Gnoutcheff
Hello all! So, as has been discussed on and off list, we're seriously thinking of getting rid of user settings services. This will require giving the system settings service more sophisticated security controls. As per Dan's suggestion, I've started a Wiki page to help with planning this:

Re: dhcpcd timeout

2010-06-11 Thread Daniel Gnoutcheff
On 06/11/2010 04:49 AM, Victor Gaydov wrote: The problem was related to timeouts: 45s is not enough. I changed DHCP_TIMEOUT in sources and added '-t' option to dhcpcd and everything works fine. Is it a way to change dhcp timeout in config file? There is not, I'm afraid. N-M ignores the

How to deal with trojans?

2010-05-20 Thread Daniel Gnoutcheff
While researching/brainstorming for my GSoC project, I've been thinking a lot about related security issues, specifically the issue of trojan programs messing with user settings data. It seems that, while this has long been a concern for N-M development, it hasn't been addressed directly yet. I

[RFC] Fast-user-switching plans

2010-05-20 Thread Daniel Gnoutcheff
I've been spending some time thinking about how to get N-M to work with fast-user-switching. Here are some possible solutions that I have heard of or thought of, presented for review. -- 1: Multiple user settings services This is my favorite idea so far. Instead

Re: networkmanager need old password for keyring

2010-05-13 Thread Daniel Gnoutcheff
On 05/13/2010 05:33 AM, Alex wrote: Can anybody say. On my system linux fedora with xfce, password need to be changed every week, but, when i change my password, NM need old password for unlocking keyring. How to remove this problem ? Hmm ... normally, the gnome_keyring PAM module is supposed

Re: Can not build network-manager from git with debian squeeze

2010-05-10 Thread Daniel Gnoutcheff
On 05/10/2010 09:17 AM, toabctl wrote: checking Linux Wireless Extensions = 18... no configure: error: wireless-tools library and development headers = 28pre9 not installed or not functional ### END ### but: $ dpkg -l|grep wireless-tools ii wireless-tools30~pre9-4 Tools

Re: nm disabled by pppoeconf

2010-05-06 Thread Daniel Gnoutcheff
On 05/06/2010 07:13 PM, Frederik Nnaji wrote: network manager couldn't create a dsl connection on a modem/router device. I know this is not your main question, but I'm quite curious: why didn't this work? What happened when you tried? If this is a bug in N-M, it would be great to get it

Re: Setup development evironment

2010-04-21 Thread Daniel Gnoutcheff
On 04/22/2010 11:14 PM, Nguyen Canh Toan wrote: The problems is I cannot find autogen.sh in nm-applet-0.7.0 source from CVS I suspect the CVS repo is not what you want; that sounds like an old abandoned repo. I believe current nm-applet development is done in a git repo, found here:

Re: keyfile plugin initialization and wireless at boot

2010-04-20 Thread Daniel Gnoutcheff
On 04/20/2010 07:22 PM, Brian DeRocher wrote: - If you manage to get N-M to start looking at /etc/NetworkManager/system-connections, does Available to all users start to work? No, but Casa, my system-connections/ connection shows up. Sweet! I can't edit it. Good! nm-connection-editor can

Re: keyfile plugin initialization and wireless at boot

2010-04-19 Thread Daniel Gnoutcheff
Whoa ... I think I've reproduced at least part of the problem. Yep, we may have a regression on our hands. On my system, /etc/network/interfaces contained only: auto lo iface lo inet loopback But then I decided to edit it to make it mimic your configuration, adding: allow-hotplug eth0 iface

Re: keyfile plugin initialization and wireless at boot

2010-04-18 Thread Daniel Gnoutcheff
On 04/18/2010 10:34 AM, Brian DeRocher wrote: Hey everyone, I'm trying to get my wireless interface to connect at boot. With nm-applet Available to all users is not enabled and i don't understand why. This is a Debian unstable system with both PolicyKit and polkit installed. Deciding to skip

Re: Use of dhclient.d scripts with NetworkManager

2010-03-26 Thread Daniel Gnoutcheff
Robert Nichols wrote: How are the functions in the dhclient.d scripts supposed to be preformed now? In particular, I need the setting for the NTP server that is done in /etc/dhcp/dhclient.d/ntp.sh . Perhaps /etc/NetworkManager/dispatcher.d/ will do? 'man NetworkManager' should describe it in

Re: GSoC?

2010-03-23 Thread Daniel Gnoutcheff
Dan Williams wrote: On Sun, 2010-03-21 at 09:31 -0400, Daniel Gnoutcheff wrote: Is N-M involved/interested in the Google Summer of Code this year? snip I hope so :) Sweet! :D Thanks for the feedback! OK, so it sounds like #2 and #3 are the good ones. I have a slight preference for #2, so

GSoC?

2010-03-21 Thread Daniel Gnoutcheff
Hello all! Is N-M involved/interested in the Google Summer of Code this year? In previous years, I see that N-M participated in GSoC through the Linux Foundation. Will that be happening again this year? If so, awesome! I've been wanting to apply to GSoC for a long time, and N-M is one project

[PATCH] [RFC] Use timeouts in DHCP client daemons

2010-01-24 Thread Daniel Gnoutcheff
OK, here's my suggestion with how to deal with lazy DHCP servers, finally codified as a patch. :) Please be kind, this is my first patch ever :D This moves responsibility for DHCP timeouts down to the DHCP client daemons. Thus, dhclient now has the freedom to take its time when it finds a

Re: DHCP timeout is too short for this college network

2010-01-21 Thread Daniel Gnoutcheff
Hello Dan, thanks for your reply! There are various cases where the DHCP timeout is the amount of latency between NM timing out a legitimate failure and falling back to a working network. Ah, I was afraid it was something like this. That's unfortunate :( The cases where the DHCP latency is

Re: DHCP timeout is too short for this college network

2010-01-11 Thread Daniel Gnoutcheff
José Queiroz wrote: NM needs a lot of fixes and improvements, but I think that in this case, it is completely innocent. Your dhcp server is too lazy, as you can see: it only answered for the initial DHCPDISCOVER on the third attempt, the same for the other messages of the DHCP sequence. I

Re: DHCP timeout is too short for this college network

2010-01-11 Thread Daniel Gnoutcheff
Sven Nielsen wrote: Ask the dhcp team on your campus why they are giving away DHCP leases for 3! days (286274 seconds): I've heard that 3 days is the Microsoft default. The IT department is a Microsoft shop, so that probably explains it. ;) ___

Re: DHCP timeout is too short for this college network

2010-01-11 Thread Daniel Gnoutcheff
John Mahoney wrote: On Ubuntu 9.10 it appears you can edit the file /etc/dhcp3/dhclient.conf and uncomment the line timeout in the file and increase it to say 180 seconds. Thanks for the suggestion! Sadly, it didn't work. I'm running Ubuntu 9.10 too, and I do indeed see that the config file

DHCP timeout is too short for this college network

2010-01-10 Thread Daniel Gnoutcheff
Hello all, First off, let me take this opportunity to thank you all for this really cool piece of software. Networking with n-m is great fun. :) OK, the problem I'm having is a college campus network that has really slow DHCP severs. As in, up to 3 *minutes* to get a lease. Here's a typical