Debian Bug report logs - #258064
Writes to /etc/resolv.conf

version graph

Package: gnome-ppp; Maintainer for gnome-ppp is Zak B. Elep <zakame@spunge.org>; Source for gnome-ppp is src:gnome-ppp.

Reported by: Thomas Hood <jdthood@yahoo.co.uk>

Date: Wed, 7 Jul 2004 13:18:03 UTC

Severity: normal

Found in version 0.3.2-8

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, unknown-package@qa.debian.org:
Bug#258064; Package gnome-ppp. Full text and rfc822 format available.

Acknowledgement sent to Thomas Hood <jdthood@yahoo.co.uk>:
New Bug report received and forwarded. Copy sent to unknown-package@qa.debian.org. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Thomas Hood <jdthood@yahoo.co.uk>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Writes to /etc/resolv.conf
Date: Wed, 07 Jul 2004 15:12:00 +0200
Package: gnome-ppp
Version: 0.3.2-8
Severity: serious

gnome-ppp writes addresses into /etc/resolv.conf.  This will interfere
with the operation of resolvconf if resolvconf is installed.  Therefore,
one of the following needs to be done.

1. gnome-ppp to Conflict with resolvconf
2. gnome-ppp to be modified so that it doesn't write to /etc/resolv.conf
   when resolvconf is installed (as determined by the presence of the
   executable file /sbin/resolvconf); gnome-ppp could then Suggest or
   Recommend resolvconf


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (900, 'unstable'), (700, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.4.25
Locale: LANG=en_IE@euro, LC_CTYPE=en_IE@euro

Versions of packages gnome-ppp depends on:
ii  libart-2.0-2              2.3.16-5       Library of functions for 2D graphi
ii  libatk1.0-0               1.6.1-2        The ATK accessibility toolkit
ii  libbonobo2-0              2.6.2-4        Bonobo CORBA interfaces library
ii  libbonoboui2-0            2.6.1-1        The Bonobo UI library
ii  libc6                     2.3.2.ds1-13   GNU C Library: Shared libraries an
ii  libgconf2-4               2.6.2-1        GNOME configuration database syste
ii  libglade2-0               1:2.4.0-1      Library to load .glade files at ru
ii  libglib2.0-0              2.4.2-1        The GLib library of C routines
ii  libgnome2-0               2.6.1-7        The GNOME 2 library - runtime file
ii  libgnomecanvas2-0         2.6.1.1-2      A powerful object-oriented display
ii  libgnomeui-0              2.6.1.1-3      The GNOME 2 libraries (User Interf
ii  libgnomevfs2-0            2.6.1.1-3      The GNOME virtual file-system libr
ii  libgtk2.0-0               2.4.3-1        The GTK+ graphical user interface 
ii  libice6                   4.3.0.dfsg.1-4 Inter-Client Exchange library
ii  liborbit2                 1:2.10.2-1.1   libraries for ORBit2 - a CORBA ORB
ii  libpango1.0-0             1.4.0-4        Layout and rendering of internatio
ii  libpopt0                  1.7-4          lib for parsing cmdline parameters
ii  libsm6                    4.3.0.dfsg.1-4 X Window System Session Management
ii  libx11-6                  4.3.0.dfsg.1-4 X Window System protocol client li
ii  libxml2                   2.6.10-3       GNOME XML library
ii  wvdial                    1.54.0-1       PPP dialer with built-in intellige
ii  xlibs                     4.3.0.dfsg.1-4 X Window System client libraries m
ii  zlib1g                    1:1.2.1.1-3    compression library - runtime

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, unknown-package@qa.debian.org:
Bug#258064; Package gnome-ppp. Full text and rfc822 format available.

Acknowledgement sent to Dan Korostelev <dan@ats.energo.ru>:
Extra info received and forwarded to list. Copy sent to unknown-package@qa.debian.org. Full text and rfc822 format available.

Message #10 received at 258064@bugs.debian.org (full text, mbox):

From: Dan Korostelev <dan@ats.energo.ru>
To: 258064@bugs.debian.org
Subject: It shouldn't write.
Date: Wed, 07 Jul 2004 17:43:46 +0400
I just checked the code and saw, that write_resolv_conf (the function
that should write info in resolv.conf) is commented out. So does it
really writes anything in resolv.conf? (gnome-ppp, not wvdial or pppd or
something else in lower levels)

-- 
Dan Korostelev <dan@ats.energo.ru>




Information forwarded to debian-bugs-dist@lists.debian.org, Dan Korostelev <dan@ats.energo.ru>:
Bug#258064; Package gnome-ppp. Full text and rfc822 format available.

Acknowledgement sent to Thomas Hood <jdthood@aglu.demon.nl>:
Extra info received and forwarded to list. Copy sent to Dan Korostelev <dan@ats.energo.ru>. Full text and rfc822 format available.

Message #15 received at 258064@bugs.debian.org (full text, mbox):

From: Thomas Hood <jdthood@aglu.demon.nl>
To: 258064@bugs.debian.org
Subject: OK
Date: Thu, 08 Jul 2004 06:12:04 +0200
severity 258064 normal
thanks

(I have Bcc: 'ed this to control@bugs.debian.org in order to perform
these Bug Tracking System commands.)

Ah, you are right.  There is a big ol' /* ... */ in the
write_resolv_conf() function.  OK, then the bug I reported does not
exist.  However, if the writing of resolv.conf is disabled then the
related fields of the setup window and the related comments written
to wvdial.conf should also be eliminated.  I suggest that

    #ifdef FUTZ_WITH_RESOLV_CONF
    #endif

be used to eliminated the relevant code.  Upstream might be willing
to accept this patch; then Debian can simply build without
FUTZ_WITH_RESOLV_CONF defined.

P.S. When replying to a bug report you must send a copy to
nnnnn-submitter@bugs.debian.org , otherwise the submitter does
not get a copy of the message.
--
Thomas




Severity set to `normal'. Request was from Thomas Hood <jdthood@aglu.demon.nl> to control@bugs.debian.org. Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#258064; Package gnome-ppp. Full text and rfc822 format available.

Acknowledgement sent to Dan Korostelev <dan@ats.energo.ru>:
Extra info received and forwarded to list. Full text and rfc822 format available.

Message #22 received at 258064@bugs.debian.org (full text, mbox):

From: Dan Korostelev <dan@ats.energo.ru>
To: 258064@bugs.debian.org, 258064-submitter@bugs.debian.org
Subject: Re: Bug#258064: OK
Date: Thu, 08 Jul 2004 13:49:09 +0400
[Message part 1 (text/plain, inline)]
Upstream, at this moment is working on bringing back resolv.conf code
and fixing other minor bugs, he'll probably relase a new version today,
so I'll have to work on some resolvconfistation of gnome-ppp.

-- 
Dan Korostelev <dan@ats.energo.ru>
[signature.asc (application/pgp-signature, inline)]

Message sent on to Thomas Hood <jdthood@yahoo.co.uk>:
Bug#258064. Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Dan Korostelev <dan@ats.energo.ru>:
Bug#258064; Package gnome-ppp. Full text and rfc822 format available.

Acknowledgement sent to Thomas Hood <jdthood@aglu.demon.nl>:
Extra info received and forwarded to list. Copy sent to Dan Korostelev <dan@ats.energo.ru>. Full text and rfc822 format available.

Message #30 received at 258064@bugs.debian.org (full text, mbox):

From: Thomas Hood <jdthood@aglu.demon.nl>
To: 258064@bugs.debian.org, 258064-submitter@bugs.debian.org
Subject: Re: Bug#258064: OK
Date: Thu, 08 Jul 2004 12:57:19 +0200
On Thu, 2004-07-08 at 11:49, Dan Korostelev wrote:
> Upstream, at this moment is working on bringing back resolv.conf code
> and fixing other minor bugs, he'll probably relase a new version today,
> so I'll have to work on some resolvconfistation of gnome-ppp.


Do you think he will accept a patch to make the resolv.conf-
manipulation code optional?  That would make maintenance of
the package easier.
--
Thomas Hood




Message sent on to Thomas Hood <jdthood@yahoo.co.uk>:
Bug#258064. Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#258064; Package gnome-ppp. Full text and rfc822 format available.

Acknowledgement sent to Dan Korostelev <dan@ats.energo.ru>:
Extra info received and forwarded to list. Full text and rfc822 format available.

Message #38 received at 258064@bugs.debian.org (full text, mbox):

From: Dan Korostelev <dan@ats.energo.ru>
To: 258064-submitter@bugs.debian.org, 258064@bugs.debian.org
Subject: Re: Bug#258064: OK
Date: Thu, 08 Jul 2004 15:21:55 +0400
[Message part 1 (text/plain, inline)]
В сообщении от Чтв, 2004-07-08 at 12:57 +0200, Thomas Hood писал:

> Do you think he will accept a patch to make the resolv.conf-
> manipulation code optional?  That would make maintenance of
> the package easier.
I think, he's using Debian now (just migrated from Slack), so I think
he'll accept. 
*naively* Even more, maybe he'll make the patch before me :)

-- 
Dan Korostelev <dan@ats.energo.ru>
[signature.asc (application/pgp-signature, inline)]

Message sent on to Thomas Hood <jdthood@yahoo.co.uk>:
Bug#258064. Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Dan Korostelev <dan@ats.energo.ru>:
Bug#258064; Package gnome-ppp. Full text and rfc822 format available.

Acknowledgement sent to Thomas Hood <jdthood@aglu.demon.nl>:
Extra info received and forwarded to list. Copy sent to Dan Korostelev <dan@ats.energo.ru>. Full text and rfc822 format available.

Message #46 received at 258064@bugs.debian.org (full text, mbox):

From: Thomas Hood <jdthood@aglu.demon.nl>
To: 258064@bugs.debian.org
Subject: Re: Bug#258064: OK
Date: Thu, 08 Jul 2004 13:40:57 +0200
On Thu, 2004-07-08 at 13:21, Dan Korostelev wrote:
> *naively* Even more, maybe he'll make the patch before me :)

That'd be nice.  :)
-- 
Thomas Hood <jdthood@aglu.demon.nl>




Severity set to `serious'. Request was from Thomas Hood <jdthood@aglu.demon.nl> to control@bugs.debian.org. Full text and rfc822 format available.

Severity set to `normal'. Request was from Dan Korostelev <dan@ats.energo.ru> to control@bugs.debian.org. Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Dan Korostelev <dan@ats.energo.ru>:
Bug#258064; Package gnome-ppp. Full text and rfc822 format available.

Acknowledgement sent to Thomas Hood <jdthood@aglu.demon.nl>:
Extra info received and forwarded to list. Copy sent to Dan Korostelev <dan@ats.energo.ru>. Full text and rfc822 format available.

Message #55 received at 258064@bugs.debian.org (full text, mbox):

From: Thomas Hood <jdthood@aglu.demon.nl>
To: 258064@bugs.debian.org
Subject: Re: Re:
Date: Sat, 10 Jul 2004 19:05:10 +0200
On Sat, 2004-07-10 at 18:45, Dan Korostelev wrote:
> It's the UI bug, not the policy violation.


RC level bugs can also be used by the maintainer to prevent migration
into testing.  It's your call.


> > > BTW, On mentors.debian.net there's a package with removed DNS stuff from
> > > GUI. Waiting for a sponsor to upload.
> > Good news.
> Upstream released a 0.3.5, but the tarball doesn't contain glade file,
> so it's broken and I can't update the debian package, but I'm working
> with that code to add resolvconf magic.


See below.


> Upstream's resolv.conf writings
> perform not on connect, but on config changes.


That is rather useless.


> So I'll have to remove it
> and place resolvconf code in connected/disconnected events.


I see no need for gnome-ppp to interface with resolvconf.  At most
gnome-ppp should check for the presence of executable /sbin/resolvconf
and disable its own resolv.conf-futzing features if found.

Resolvconf gets nameserver information directly from pppd via
/etc/ppp/ip-(up|down).d/000resolvconf when the interface goes
up|down.  No intervention by gnome-ppp is needed.


> Also I think
> that gnome-ppp should depend on resolvconf, because it can totally fuck
> up resolv.conf w/o resolvconf. Is that okay?


Given that gnome-ppp doesn't do anything terribly useful with
resolv.conf either way, I think it would be best to unconditionally
#ifdef out the code that futzes with resolv.conf.  The package could
Suggest or Recommend resolvconf but I see no need to Depend on it.
--
Thomas







Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#258064; Package gnome-ppp. Full text and rfc822 format available.

Acknowledgement sent to Dan Korostelev <dan@ats.energo.ru>:
Extra info received and forwarded to list. Full text and rfc822 format available.

Message #60 received at 258064@bugs.debian.org (full text, mbox):

From: Dan Korostelev <dan@ats.energo.ru>
To: Thomas Hood <jdthood@aglu.demon.nl>, 258064@bugs.debian.org
Subject: Re: Bug#258064: Re:
Date: Sat, 10 Jul 2004 21:35:50 +0400
[Message part 1 (text/plain, inline)]
On Сбт, 2004-07-10 at 19:05 +0200, Thomas Hood wrote:


> > So I'll have to remove it
> > and place resolvconf code in connected/disconnected events.
> I see no need for gnome-ppp to interface with resolvconf.  At most
> gnome-ppp should check for the presence of executable /sbin/resolvconf
> and disable its own resolv.conf-futzing features if found.
> Resolvconf gets nameserver information directly from pppd via
> /etc/ppp/ip-(up|down).d/000resolvconf when the interface goes
> up|down.  No intervention by gnome-ppp is needed.
Well, then how to set up DNS info manually? WvDial doesn't work with
resolv[.]conf itself, thats why GNOME-PPP should write a resolv.conf
itself, when user want to setup dns servers manually. Here should be
some resolvconf interaction.

-- 
Dan Korostelev <dan@ats.energo.ru>
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Dan Korostelev <dan@ats.energo.ru>:
Bug#258064; Package gnome-ppp. Full text and rfc822 format available.

Acknowledgement sent to Thomas Hood <jdthood@aglu.demon.nl>:
Extra info received and forwarded to list. Copy sent to Dan Korostelev <dan@ats.energo.ru>. Full text and rfc822 format available.

Message #65 received at 258064@bugs.debian.org (full text, mbox):

From: Thomas Hood <jdthood@aglu.demon.nl>
To: 258064@bugs.debian.org
Subject: Re: Bug#258064: Re:
Date: Sat, 10 Jul 2004 19:50:38 +0200
On Sat, 2004-07-10 at 19:35, Dan Korostelev wrote:
> Well, then how to set up DNS info manually? WvDial doesn't work with
> resolv[.]conf itself, thats why GNOME-PPP should write a resolv.conf
> itself, when user want to setup dns servers manually. Here should be
> some resolvconf interaction.


You should emulate pppconfig if you want to add this feature.
pppconfig keeps resolv.conf files in /etc/ppp/resolv/ each named
after a provider.  (pppconfig creates these files after asking
the user questions through a console interface.  gnome-ppp
could do the same using a GUI interface.)  After pppd is started
with a certain provider name, the associated resolv.conf file is
moved into place (if resolvconf is not installed) or piped to
resolvconf (if resolvconf is installed) by the pppd hook scripts
/etc/ppp/ip-up.d/0dns-up and /etc/ppp/ip-down.d/0dns-down.
(These scripts are part of the pppconfig package.)

Ideally you would discuss this with the pppconfig maintainer
and figure out some way for gnome-ppp to make use of pppconfig
as a back end.  If the pppconfig maintainer won't cooperate
then you can simply copy and adapt /etc/ppp/ip-(up|down).d/0dns
for use by gnome-ppp.  Or you can decide to leave this feature
out for now.
--
Thomas




Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#258064; Package gnome-ppp. Full text and rfc822 format available.

Acknowledgement sent to Dan Korostelev <dan@ats.energo.ru>:
Extra info received and forwarded to list. Full text and rfc822 format available.

Message #70 received at 258064@bugs.debian.org (full text, mbox):

From: Dan Korostelev <dan@ats.energo.ru>
To: Thomas Hood <jdthood@aglu.demon.nl>, 258064@bugs.debian.org
Subject: Re: Bug#258064: Re:
Date: Sun, 11 Jul 2004 00:30:59 +0400
[Message part 1 (text/plain, inline)]
One question. Is it possible for gnome-ppp to configure resolv info
without needing root privileges?


On Сбт, 2004-07-10 at 19:50 +0200, Thomas Hood wrote:
> On Sat, 2004-07-10 at 19:35, Dan Korostelev wrote:
> > Well, then how to set up DNS info manually? WvDial doesn't work with
> > resolv[.]conf itself, thats why GNOME-PPP should write a resolv.conf
> > itself, when user want to setup dns servers manually. Here should be
> > some resolvconf interaction.
> 
> 
> You should emulate pppconfig if you want to add this feature.
> pppconfig keeps resolv.conf files in /etc/ppp/resolv/ each named
> after a provider.  (pppconfig creates these files after asking
> the user questions through a console interface.  gnome-ppp
> could do the same using a GUI interface.)  After pppd is started
> with a certain provider name, the associated resolv.conf file is
> moved into place (if resolvconf is not installed) or piped to
> resolvconf (if resolvconf is installed) by the pppd hook scripts
> /etc/ppp/ip-up.d/0dns-up and /etc/ppp/ip-down.d/0dns-down.
> (These scripts are part of the pppconfig package.)
> 
> Ideally you would discuss this with the pppconfig maintainer
> and figure out some way for gnome-ppp to make use of pppconfig
> as a back end.  If the pppconfig maintainer won't cooperate
> then you can simply copy and adapt /etc/ppp/ip-(up|down).d/0dns
> for use by gnome-ppp.  Or you can decide to leave this feature
> out for now.
> --
> Thomas
> 
> 
-- 
Dan Korostelev <dan@ats.energo.ru>
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Dan Korostelev <dan@ats.energo.ru>:
Bug#258064; Package gnome-ppp. Full text and rfc822 format available.

Acknowledgement sent to Thomas Hood <jdthood@aglu.demon.nl>:
Extra info received and forwarded to list. Copy sent to Dan Korostelev <dan@ats.energo.ru>. Full text and rfc822 format available.

Message #75 received at 258064@bugs.debian.org (full text, mbox):

From: Thomas Hood <jdthood@aglu.demon.nl>
To: 258064@bugs.debian.org
Subject: Re: Bug#258064: Re:
Date: Sun, 11 Jul 2004 07:52:25 +0200
On Sat, 2004-07-10 at 22:30, Dan Korostelev wrote:
> One question. Is it possible for gnome-ppp to configure resolv info
> without needing root privileges?

Let's distinguish between writing the files in /etc/ppp/resolv/
and writing directly to /etc/resolv.conf.

The first can be done without root privileges if the administrator
gives users write permission to /etc/ppp/resolv/.  That isn't how
the permissions are set when pppconfig is installed, though.

The second requires root privileges because /etc/resolv.conf is
writable only by root.  However, /usr/sbin/pppd is setuid root so
it and its hook scripts can write resolv.conf based on information
sent by the peer or stored in /etc/ppp/resolv/ files.

Basically the answer is No.
--
Thomas




Information forwarded to debian-bugs-dist@lists.debian.org, zakame@spunge.org (Zak B. Elep):
Bug#258064; Package gnome-ppp. Full text and rfc822 format available.

Acknowledgement sent to Paul Cupis <paul@cupis.co.uk>:
Extra info received and forwarded to list. Copy sent to zakame@spunge.org (Zak B. Elep). Full text and rfc822 format available.

Message #80 received at 258064@bugs.debian.org (full text, mbox):

From: Paul Cupis <paul@cupis.co.uk>
To: Debian Bug Tracking System <258064@bugs.debian.org>
Subject: gnome-ppp and resolvconf
Date: Sun, 24 Dec 2006 00:57:50 +0000
Package: gnome-ppp
Followup-For: Bug #258064

Has there been any progress since 2004 which might allow gnome-ppp and
resolvconf to co-exist on a Debian system, please?

Regards,



Information forwarded to debian-bugs-dist@lists.debian.org, zakame@spunge.org (Zak B. Elep):
Bug#258064; Package gnome-ppp. (Sat, 25 Oct 2008 14:03:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to green <greenfreedom10@gmail.com>:
Extra info received and forwarded to list. Copy sent to zakame@spunge.org (Zak B. Elep). (Sat, 25 Oct 2008 14:03:02 GMT) Full text and rfc822 format available.

Message #85 received at 258064@bugs.debian.org (full text, mbox):

From: green <greenfreedom10@gmail.com>
To: 258064@bugs.debian.org
Subject: gnome-ppp & resolvconf
Date: Sat, 25 Oct 2008 08:58:32 -0500
[Message part 1 (text/plain, inline)]
*Bump*

Is gnome-ppp alive?

It would be great if resolvconf and gnome-ppp could both be installed.

Thanks.
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 18 16:02:17 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.