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 04-26-2010, 04:30 PM
Matthew Johnson
 
Default bindv6only again

On Mon Apr 26 18:02, Salvo Tomaselli wrote:
> You have a missconception of "broken".
> POSIX has a default value, the developers will read the POSIX documentation
> and tell you to screw you if you do a bugreport saying that if you voluntarily
> make your system non-compliant then their software doesn't work.

Default does not mean "only permittable". If POSIX allows it to be set to
either value, then no matter what the _default_ is, not coping with either is a
bug.

I don't believe that very many people are suggesting that not working with
bindv6only=1 is not a bug which should be filed and fix when it occurs in the
archive, nor that it should not be configurable to whatever setting we do not
choose as the default. I agree - programs which don't work with the current
setting are broken and should be fixed - but that does not mean we should go
out of our way to exhibit such brokenness to our users. This seems like too much
being contrary because it's technically allowed and declaiming the results not
to be our problem, even though it breaks a lot of systems.

I think we should change the default back _and_ work towards fixing all the
applications, without making them instantly RC buggy in the mean time. It
smacks of 'uncoordinated transition' to me.

Matt

--
Matthew Johnson
 
Old 04-26-2010, 05:30 PM
Josselin Mouette
 
Default bindv6only again

Le lundi 26 avril 2010 Ă* 15:17 +0000, Clint Adams a Ă©crit :
> On Mon, Apr 26, 2010 at 04:53:24PM +0200, Juliusz Chroboczek wrote:
> > The apparent consensus is being ignored -- the default value is still
> > the one that people don't want.
>
> It's the one that I want.

Good. Now if you or one of those who advocate this “broken by default”
behavior could provide patches for gdm3, this would be more productive.

Cheers,
--
.'`. Josselin Mouette
: :' :
`. `' “If you behave this way because you are blackmailed by someone,
`- […] I will see what I can do for you.” -- Jörg Schilling
 
Old 04-26-2010, 05:52 PM
Salvo Tomaselli
 
Default bindv6only again

On Monday 26 April 2010 18:30:29 Matthew Johnson wrote:
> Default does not mean "only permittable". If POSIX allows it to be set to
> either value, then no matter what the _default_ is, not coping with either
> is a bug.

Default: a selection automatically used by a computer program in the absence
of a choice made by the user.

Source: http://www.merriam-webster.com/dictionary/default

Can you post your definition of the word "default" and your source? Because if
we don't speak the same language we aren't going to understand each other.

Bye

--
Salvo Tomaselli


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201004261952.41469.tiposchi@tiscali.it">http://lists.debian.org/201004261952.41469.tiposchi@tiscali.it
 
Old 04-26-2010, 05:54 PM
Julien Cristau
 
Default bindv6only again

On Mon, Apr 26, 2010 at 19:30:14 +0200, Josselin Mouette wrote:

> Le lundi 26 avril 2010 Ă* 15:17 +0000, Clint Adams a Ă©crit :
> > On Mon, Apr 26, 2010 at 04:53:24PM +0200, Juliusz Chroboczek wrote:
> > > The apparent consensus is being ignored -- the default value is still
> > > the one that people don't want.
> >
> > It's the one that I want.
>
> Good. Now if you or one of those who advocate this “broken by default”
> behavior could provide patches for gdm3, this would be more productive.
>
Not that I advocate the broken current default, but here's a
not-even-build-tested patch against master.

Cheers,
Julien

From: Julien Cristau <jcristau@debian.org>
Date: Mon, 26 Apr 2010 19:42:16 +0200
Subject: [PATCH] xdmcp: disable IPV6_V6ONLY for ipv6 listening sockets

This allows ipv4 connections mapped to ipv6, in case the system default
is backwards.

Signed-off-by: Julien Cristau <jcristau@debian.org>
---
daemon/gdm-xdmcp-display-factory.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/daemon/gdm-xdmcp-display-factory.c b/daemon/gdm-xdmcp-display-factory.c
index 447833d..87a0d1a 100644
--- a/daemon/gdm-xdmcp-display-factory.c
+++ b/daemon/gdm-xdmcp-display-factory.c
@@ -411,6 +411,14 @@ create_socket (struct addrinfo *ai)
return sock;
}

+#if defined(ENABLE_IPV6) && defined(IPV6_V6ONLY)
+ if (ai->ai_family == AF_INET6) {
+ int zero = 0;
+ if (setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, &zero, sizeof(zero)) < 0)
+ g_warning("setsockopt(IPV6_V6ONLY): %s", g_strerror(errno));
+ }
+#endif
+
if (bind (sock, ai->ai_addr, ai->ai_addrlen) < 0) {
g_warning ("bind: %s", g_strerror (errno));
close (sock);
--
1.7.0.5
 
Old 04-26-2010, 06:03 PM
Julien Cristau
 
Default bindv6only again

On Mon, Apr 26, 2010 at 19:54:53 +0200, Julien Cristau wrote:

> On Mon, Apr 26, 2010 at 19:30:14 +0200, Josselin Mouette wrote:
>
> > Le lundi 26 avril 2010 Ă* 15:17 +0000, Clint Adams a Ă©crit :
> > > On Mon, Apr 26, 2010 at 04:53:24PM +0200, Juliusz Chroboczek wrote:
> > > > The apparent consensus is being ignored -- the default value is still
> > > > the one that people don't want.
> > >
> > > It's the one that I want.
> >
> > Good. Now if you or one of those who advocate this “broken by default”
> > behavior could provide patches for gdm3, this would be more productive.
> >
> Not that I advocate the broken current default, but here's a
> not-even-build-tested patch against master.
>
And the chooser part...

From: Julien Cristau <jcristau@debian.org>
Date: Mon, 26 Apr 2010 20:00:51 +0200
Subject: [PATCH] chooser: disable IPV6_V6ONLY

Signed-off-by: Julien Cristau <jcristau@debian.org>
---
gui/simple-chooser/gdm-host-chooser-widget.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/gui/simple-chooser/gdm-host-chooser-widget.c b/gui/simple-chooser/gdm-host-chooser-widget.c
index e694728..0c8f46c 100644
--- a/gui/simple-chooser/gdm-host-chooser-widget.c
+++ b/gui/simple-chooser/gdm-host-chooser-widget.c
@@ -544,6 +544,13 @@ xdmcp_init (GdmHostChooserWidget *widget)
widget->priv->socket_fd = socket (AF_INET6, SOCK_DGRAM, 0);
if (widget->priv->socket_fd != -1) {
widget->priv->have_ipv6 = TRUE;
+#ifdef IPV6_V6ONLY
+ {
+ int zero = 0;
+ if (setsockopt(widget->priv->socket_fd, IPPROTO_IPV6, IPV6_V6ONLY, &zero, sizeof(zero)) < 0)
+ g_warning("setsockopt(IPV6_V6ONLY): %s", g_strerror(errno));
+ }
+#endif
}
#endif
if (! widget->priv->have_ipv6) {
--
1.7.0.5
 
Old 04-26-2010, 06:22 PM
Don Armstrong
 
Default bindv6only again

On Mon, 26 Apr 2010, Salvo Tomaselli wrote:
> On Monday 26 April 2010 18:30:29 Matthew Johnson wrote:
> > Default does not mean "only permittable". If POSIX allows it to be
> > set to either value, then no matter what the _default_ is, not
> > coping with either is a bug.
>
> Default: a selection automatically used by a computer program in the absence
> of a choice made by the user.
>
> Source: http://www.merriam-webster.com/dictionary/default
>
> Can you post your definition of the word "default" and your source?
> Because if we don't speak the same language we aren't going to
> understand each other.

There's no conflict here. The definition quoted says nothing about
default meaning "only permittable", exactly as Matthew claims above.

If the software doesn't work properly when either of the permissible
values is set when it is possible for the software to handle either
value correctly, the software is buggy. It may not be a bug that you
rush to fix, but it certainly is one.

If the upstream maintainer doesn't want to apply patches necessary to
work properly with either value set, that's their purview, but it
doesn't make the software non-buggy in Debian.


Don Armstrong

--
LEADERSHIP -- A form of self-preservation exhibited by people with
autodestructive imaginations in order to ensure that when it comes to
the crunch it'll be someone else's bones which go crack and not their
own.
-- The HipCrime Vocab by Chad C. Mulligan
(John Brunner _Stand On Zanzibar_ p256-7)

http://www.donarmstrong.com http://rzlab.ucr.edu


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100426182207.GY21525@teltox.donarmstrong.com">ht tp://lists.debian.org/20100426182207.GY21525@teltox.donarmstrong.com
 
Old 04-26-2010, 07:24 PM
Salvo Tomaselli
 
Default bindv6only again

On Monday 26 April 2010 20:22:07 Don Armstrong wrote:
> There's no conflict here. The definition quoted says nothing about
> default meaning "only permittable", exactly as Matthew claims above.
>
> If the software doesn't work properly when either of the permissible
> values is set when it is possible for the software to handle either
> value correctly, the software is buggy. It may not be a bug that you
> rush to fix, but it certainly is one.
Set by whom? If the program itself doesn't change the setting, it will not
expect it to be another one.
There is a conflict, just pretending there isn't, doesn't make it go away.

Bye

--
Salvo Tomaselli


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201004262124.15557.tiposchi@tiscali.it">http://lists.debian.org/201004262124.15557.tiposchi@tiscali.it
 
Old 04-26-2010, 07:46 PM
 
Default bindv6only again

On Apr 26, Juliusz Chroboczek <jch@pps.jussieu.fr> wrote:

> The apparent consensus is being ignored -- the default value is still
Because:
- nobody cares about the consensus in the peanut gallery
- as explained in #560238, it is still not the time to make a choice

> This is of course nonsense. Choosing the default value that is
> incompatible with all other Unix systems (with the exception of OpenBSD)
Actually it is my understanding that 1 is the only choice for all BSD
systems (and Windows).

--
ciao,
Marco
 
Old 04-26-2010, 07:59 PM
Don Armstrong
 
Default bindv6only again

On Mon, 26 Apr 2010, Salvo Tomaselli wrote:
> On Monday 26 April 2010 20:22:07 Don Armstrong wrote:
> > If the software doesn't work properly when either of the permissible
> > values is set when it is possible for the software to handle either
> > value correctly, the software is buggy. It may not be a bug that you
> > rush to fix, but it certainly is one.
>
> Set by whom?

It doesn't matter who sets it. If the program doesn't work properly
with either setting, and it's possible for it to work properly with
either setting by patching the code, it's a bug that should be fixed.

> If the program itself doesn't change the setting, it will not
> expect it to be another one.

If the program wants a specific behavior, it should call setsockopt
appropriately. [But I'm unfortunatly unable to parse your full meaning
particularly well.]


Don Armstrong

--
Where I sleep at night, is this important compared to what I read
during the day? What do you think defines me? Where I slept or what I
did all day?
-- Thomas Van Orden of Van Orden v. Perry

http://www.donarmstrong.com http://rzlab.ucr.edu


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100426195908.GA21525@teltox.donarmstrong.com">ht tp://lists.debian.org/20100426195908.GA21525@teltox.donarmstrong.com
 
Old 04-26-2010, 08:32 PM
Salvo Tomaselli
 
Default bindv6only again

On Monday 26 April 2010 21:59:08 Don Armstrong wrote:
> It doesn't matter who sets it. If the program doesn't work properly
> with either setting, and it's possible for it to work properly with
> either setting by patching the code, it's a bug that should be fixed.
It matters because in my view, the app expects it to be 0 unless the
application itself had changed it.

Bye
--
Salvo Tomaselli


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201004262232.38760.tiposchi@tiscali.it">http://lists.debian.org/201004262232.38760.tiposchi@tiscali.it
 

Thread Tools




All times are GMT. The time now is 11:55 PM.

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