devfs.rules: Serious problems with this cfg.

Bug #10999 reported by Debian Bug Importer
8
Affects Status Importance Assigned to Milestone
gnome-volume-manager (Debian)
Fix Released
Unknown
gnome-volume-manager (Ubuntu)
Invalid
High
Unassigned

Bug Description

Automatically imported from Debian bug report #284492 http://bugs.debian.org/284492

Revision history for this message
In , Marco d'Itri (md) wrote : Re: Bug#284492: devfs.rules: Don't change NAME into a port(host?/bus?) specific target, for gvm.

reassign 284492 gnome-volume-manager
thanks

On Dec 06, "M Mestnik) (Shared Account" <email address hidden> wrote:

> Gnome-volume-manager mounts my cds with the REAL device "NAME=". It's good
> to see that it's not being set to "hdc" but it's still being set to a
> port(host?/bus?) specific name. I subjest that the NAME="%c{2}" since this
> will allways be easy to see as a cdrom. Then SYMLINK="%k %c{1}".

There is no reason to change the default configuration of udev.
I'm reassigning this bug to g-v-m, in the possibility that its
maintainer has something to add.

--
ciao, |
Marco | [9625 logsqKUHX4XcQ]

Revision history for this message
In , Mike Mestnik (cheako) wrote : Re: Bug#284492: devfs.rules: Don't change NAME into a port(host?/bus?) specific target, for gvm.)

retitle 284492 devfs.rules: Serious problems with this cfg.
severity 284492 grave
thank you.

Justification: may encourage ppl to use root to access ide and scsi
devices.

I HAD to patch one of my computers to fix this problem. While I was
changing the ide-devfs.sh I saw that the group(disk,cdrom,floppy) was NOT
set. In scsi-devfs.sh the get_ide_offset uses "/proc/ide/*/media".

These are some farily important problems. I should have a patch some time
today(CST).

__________________________________
Do you Yahoo!?
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #284492 http://bugs.debian.org/284492

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Mon, 06 Dec 2004 12:56:22 -0600
From: "M Mestnik) (Shared Account" <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: devfs.rules: Don't change NAME into a port(host?/bus?) specific target,
 for gvm.

Package: udev
Version: 0.046-5
Severity: normal

Gnome-volume-manager mounts my cds with the REAL device "NAME=". It's good
to see that it's not being set to "hdc" but it's still being set to a
port(host?/bus?) specific name. I subjest that the NAME="%c{2}" since this
will allways be easy to see as a cdrom. Then SYMLINK="%k %c{1}".

gvm will then automount(using pmount) /dev/cdroms/cdrom? on
/media/cdroms_cdrom?. Any reason why this can't be "cdroms_?" like
"floppy_0"? You could think ahead and make NAME="%c{3}" (c{3} =
cdroms/%n) and have SYMLINK="%k %c{1} %c{2}".

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (950, 'testing'), (150, 'unstable'), (140, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages udev depends on:
ii debconf [debconf-2.0] 1.4.40 Debian configuration management sy
ii hotplug 0.0.20040329-16 Linux Hotplug Scripts
ii initscripts 2.86-5 Standard scripts needed for bootin
ii libc6 2.3.2.ds1-19 GNU C Library: Shared libraries an
ii makedev 2.3.1-75 Creates device files in /dev

-- debconf information:
  udev/devfs-warning:
* udev/reboot-warning:

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Mon, 6 Dec 2004 20:11:54 +0100
From: <email address hidden> (Marco d'Itri)
To: <email address hidden>, <email address hidden>
Cc: Debian Bug Tracking System <email address hidden>,
 <email address hidden>
Subject: Re: Bug#284492: devfs.rules: Don't change NAME into a port(host?/bus?) specific target,
 for gvm.

--cWoXeonUoKmBZSoM
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

reassign 284492 gnome-volume-manager
thanks

On Dec 06, "M Mestnik) (Shared Account" <email address hidden> wrote:

> Gnome-volume-manager mounts my cds with the REAL device "NAME=3D". It's =
good
> to see that it's not being set to "hdc" but it's still being set to a
> port(host?/bus?) specific name. I subjest that the NAME=3D"%c{2}" since =
this
> will allways be easy to see as a cdrom. Then SYMLINK=3D"%k %c{1}".

There is no reason to change the default configuration of udev.
I'm reassigning this bug to g-v-m, in the possibility that its
maintainer has something to add.

--=20
ciao, |
Marco | [9625 logsqKUHX4XcQ]

--cWoXeonUoKmBZSoM
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBtK76FGfw2OHuP7ERApkaAJ9dl8MdAxHwKK5YR1nvsDomi2CQIwCeNhLX
5dNEiguNbmN3S/0n/ixJMZ4=
=MaaV
-----END PGP SIGNATURE-----

--cWoXeonUoKmBZSoM--

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Tue, 7 Dec 2004 06:22:22 -0800 (PST)
From: Mike Mestnik <email address hidden>
To: <email address hidden>,
  "bugs.debian.org control" <email address hidden>
Subject: Re: Bug#284492: devfs.rules: Don't change NAME into a port(host?/bus?) specific target,
 for gvm.)

retitle 284492 devfs.rules: Serious problems with this cfg.
severity 284492 grave
thank you.

Justification: may encourage ppl to use root to access ide and scsi
devices.

I HAD to patch one of my computers to fix this problem. While I was
changing the ide-devfs.sh I saw that the group(disk,cdrom,floppy) was NOT
set. In scsi-devfs.sh the get_ide_offset uses "/proc/ide/*/media".

These are some farily important problems. I should have a patch some time
today(CST).

__________________________________
Do you Yahoo!?
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com

Revision history for this message
In , Sjoerd Simons (sjoerd-spring) wrote : Re: Bug#284492: devfs.rules: Don't change NAME into a port(host?/bus?) specific target, for gvm.

On Mon, Dec 06, 2004 at 08:11:54PM +0100, Marco d'Itri wrote:
> reassign 284492 gnome-volume-manager
> thanks
>
> On Dec 06, "M Mestnik) (Shared Account" <email address hidden> wrote:
>
> > Gnome-volume-manager mounts my cds with the REAL device "NAME=". It's good
> > to see that it's not being set to "hdc" but it's still being set to a
> > port(host?/bus?) specific name. I subjest that the NAME="%c{2}" since this
> > will allways be easy to see as a cdrom. Then SYMLINK="%k %c{1}".
>
> There is no reason to change the default configuration of udev.
> I'm reassigning this bug to g-v-m, in the possibility that its
> maintainer has something to add.

Are you just guess that it will behave that way, or does it really behave that
way? The current unstable hal and g-v-m shouldn't (They check
volume.policy.desired_mount_point).

If it was just a guess, please close this bug.. Otherwise i need a lot more
info :)

  Sjoerd
--
Isn't it interesting that the same people who laugh at science fiction
listen to weather forecasts and economists?
  -- Kelvin Throop III

Revision history for this message
In , Mike Mestnik (cheako) wrote : Re: Bug#284492: devfs.rules: Don't change NAME into a port(host?/bus?) specific target, for gvm.)

tag 284492 +patch
thank you.

This should fix about 3 or 4 BUGS in devfs.rules and support scripts.
The fix for the NAME bug is also in this patch, thought it is just a
matter of moving strings around to fix this.

I don't see why this is a g-v-m bug, AFAIWT g-v-m gets the device name
from udev and passes it along to pmount. pmount takes the name and
creates /media/%n and nautilus makes a desctop icon made %n.

So if anything other then udev it's a nautilus bug.

Revision history for this message
In , Mike Mestnik (cheako) wrote : Re: Bug#284492: devfs.rules: Don't change NAME into a port(host?/bus?) specific target, for gvm.

--- Sjoerd Simons <email address hidden> wrote:

> On Mon, Dec 06, 2004 at 08:11:54PM +0100, Marco d'Itri wrote:
> > reassign 284492 gnome-volume-manager
> > thanks
> >
> > On Dec 06, "M Mestnik) (Shared Account" <email address hidden>
> wrote:
> >
> > > Gnome-volume-manager mounts my cds with the REAL device "NAME=".
> It's good
> > > to see that it's not being set to "hdc" but it's still being set to
> a
> > > port(host?/bus?) specific name. I subjest that the NAME="%c{2}"
> since this
> > > will allways be easy to see as a cdrom. Then SYMLINK="%k %c{1}".
> >
> > There is no reason to change the default configuration of udev.
> > I'm reassigning this bug to g-v-m, in the possibility that its
> > maintainer has something to add.
>
> Are you just guess that it will behave that way, or does it really
> behave that
> way? The current unstable hal and g-v-m shouldn't (They check
> volume.policy.desired_mount_point).
>
The name changed after I started using udev's devfs.rules. These rules
for whatever reason change the name to the true devfs name and make a
symlink to the compat(%n) name given by upstream(guessing the kernel).

So udev changed the name of the dir made by pmount, is gvm even involved
in this proces? I would guess that gvm simply runes mount and maby pmount
dereferences the symlinks.

Also how is volume.policy.desired_mount_point to be changed, so the user
can use only devfs names or only compat names or only old-compat names?

> If it was just a guess, please close this bug.. Otherwise i need a lot
> more
> info :)
>
> Sjoerd
> --
> Isn't it interesting that the same people who laugh at science fiction
> listen to weather forecasts and economists?
> -- Kelvin Throop III
>

__________________________________
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage less.
http://info.mail.yahoo.com/mail_250

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Tue, 7 Dec 2004 17:18:07 +0100
From: <email address hidden> (Sjoerd Simons)
To: Marco d'Itri <email address hidden>
Cc: <email address hidden>, <email address hidden>,
 <email address hidden>
Subject: Re: Bug#284492: devfs.rules: Don't change NAME into a port(host?/bus?) specific target,
 for gvm.

On Mon, Dec 06, 2004 at 08:11:54PM +0100, Marco d'Itri wrote:
> reassign 284492 gnome-volume-manager
> thanks
>
> On Dec 06, "M Mestnik) (Shared Account" <email address hidden> wrote:
>
> > Gnome-volume-manager mounts my cds with the REAL device "NAME=". It's good
> > to see that it's not being set to "hdc" but it's still being set to a
> > port(host?/bus?) specific name. I subjest that the NAME="%c{2}" since this
> > will allways be easy to see as a cdrom. Then SYMLINK="%k %c{1}".
>
> There is no reason to change the default configuration of udev.
> I'm reassigning this bug to g-v-m, in the possibility that its
> maintainer has something to add.

Are you just guess that it will behave that way, or does it really behave that
way? The current unstable hal and g-v-m shouldn't (They check
volume.policy.desired_mount_point).

If it was just a guess, please close this bug.. Otherwise i need a lot more
info :)

  Sjoerd
--
Isn't it interesting that the same people who laugh at science fiction
listen to weather forecasts and economists?
  -- Kelvin Throop III

Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (9.2 KiB)

Message-ID: <email address hidden>
Date: Tue, 07 Dec 2004 10:45:55 -0600
From: Mike Mestnik <email address hidden>
To: <email address hidden>,
 "bugs.debian.org control" <email address hidden>
Cc: Marco d'Itri <email address hidden>
Subject: Re: Bug#284492: devfs.rules: Don't change NAME into a port(host?/bus?)
 specific target, for gvm.)

--------------050800020809010409080404
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

tag 284492 +patch
thank you.

This should fix about 3 or 4 BUGS in devfs.rules and support scripts.
The fix for the NAME bug is also in this patch, thought it is just a
matter of moving strings around to fix this.

I don't see why this is a g-v-m bug, AFAIWT g-v-m gets the device name
from udev and passes it along to pmount. pmount takes the name and
creates /media/%n and nautilus makes a desctop icon made %n.

So if anything other then udev it's a nautilus bug.

--------------050800020809010409080404
Content-Type: text/x-patch;
 name="udevconf.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="udevconf.diff"

diff -ruNa /etc/udev/devfs.rules udev/devfs.rules
--- /etc/udev/devfs.rules 2004-11-28 12:24:26.000000000 -0600
+++ udev/devfs.rules 2004-12-07 10:22:00.000000000 -0600
@@ -13,20 +13,20 @@
 #

 # IDE block devices
-BUS="ide", KERNEL="hd[a-z]*", PROGRAM="/etc/udev/scripts/ide-devfs.sh %k %b %n", NAME="%c{1}", SYMLINK="%k %c{2}"
+BUS="ide", KERNEL="hd[a-z]*", PROGRAM="/etc/udev/scripts/ide-devfs.sh %k %b %n", NAME="%c{1}", SYMLINK="%k %c{5} %c{6}", USER"%c{2}", GROUP="%c{3}", MODE="%c{4}"

 # permissions for SCSI sg devices
-BUS="scsi", KERNEL="s[grt][0-9]*", SYSFS{type}="5", PROGRAM="/etc/udev/scripts/scsi-devfs.sh %k %b %n", NAME="%c{1}", SYMLINK="%k %c{2}", MODE="0660", GROUP="cdrom"
+BUS="scsi", KERNEL="s[grt][0-9]*", SYSFS{type}="5", PROGRAM="/etc/udev/scripts/scsi-devfs.sh %k %b %n", NAME="%c{1}", SYMLINK="%k %c{5} %c{6}", USER"%c{2}", GROUP="cdrom", MODE="0660"

 # SCSI block devices
-BUS="scsi", KERNEL="sd[a-z]", PROGRAM="/etc/udev/scripts/scsi-devfs.sh %k %b %n", NAME="%c{1}", SYMLINK="%k %c{2}"
-BUS="scsi", KERNEL="sd[a-z][0-9]*", PROGRAM="/etc/udev/scripts/scsi-devfs.sh %k %b %n", NAME="%c{1}", SYMLINK="%k %c{2}"
-BUS="scsi", KERNEL="sd[a-i][a-z]", PROGRAM="/etc/udev/scripts/scsi-devfs.sh %k %b %n", NAME="%c{1}", SYMLINK="%k %c{2}"
-BUS="scsi", KERNEL="sd[a-i][a-z][0-9]*", PROGRAM="/etc/udev/scripts/scsi-devfs.sh %k %b %n", NAME="%c{1}", SYMLINK="%k %c{2}"
-BUS="scsi", KERNEL="s[grt][0-9]*", PROGRAM="/etc/udev/scripts/scsi-devfs.sh %k %b %n", NAME="%c{1}", SYMLINK="%k %c{2}"
-BUS="scsi", KERNEL="scd[0-9]*", PROGRAM="/etc/udev/scripts/scsi-devfs.sh %k %b %n", NAME="%c{1}", SYMLINK="%k %c{2}"
-BUS="scsi", KERNEL="st[0-9]*", PROGRAM="/etc/udev/scripts/scsi-devfs.sh %k %b %n", NAME="%c{1}", SYMLINK="%k %c{2}"
-BUS="scsi", KERNEL="nst[0-9]*", PROGRAM="/etc/udev/scripts/scsi-devfs.sh %k %b %n", NAME="%c{1}", SYMLINK="%k %c{2}"
+BUS="scsi", KERNEL="sd[a-z]", PROGRAM="/etc/udev/scripts/scsi-devfs.sh %k %b %n", NAME="%c{1}", SYMLINK="%k %c{5} %c{6}", USER"%c{2}", GROUP="%c{3}", MODE="%c{4}"
+BUS="scsi", KERNEL="sd[a-z][0-9]...

Read more...

Revision history for this message
In , Sjoerd Simons (sjoerd-spring) wrote : Re: Bug#284492: devfs.rules: Don't change NAME into a port(host?/bus?) specific target, for gvm.)

reassign 284492 udev
thanks,
On Tue, Dec 07, 2004 at 10:45:55AM -0600, Mike Mestnik wrote:
> tag 284492 +patch
> thank you.
>
> This should fix about 3 or 4 BUGS in devfs.rules and support scripts.
> The fix for the NAME bug is also in this patch, thought it is just a
> matter of moving strings around to fix this.

Reassigning it to udev, because of this patch. Note that your are mixing
problem and that completely sucks with respect to the bts! (It makes tracking
basically impossible).

> I don't see why this is a g-v-m bug, AFAIWT g-v-m gets the device name
> from udev and passes it along to pmount. pmount takes the name and
> creates /media/%n and nautilus makes a desctop icon made %n.

g-v-m doesn't even has a clue what udev is. Please check how stuff works,
before making statements like this.

> So if anything other then udev it's a nautilus bug.

Sorry, you don't really make sense here. Please if you want to make a point,
show me something that actually happened to you with recent versions of the
whole stack. Otherwise your just wasting our time :)

  Sjoerd
--
Life sucks, but death doesn't put out at all.
  -- Thomas J. Kopp

Revision history for this message
In , Marco d'Itri (md) wrote :

On Dec 07, Mike Mestnik <email address hidden> wrote:

> This should fix about 3 or 4 BUGS in devfs.rules and support scripts.
I already explained that there is no bug in devfs.rules. If you don't
like the default configuration then change it on your system.

And get a clue, this is not a grave bug.

--
ciao, |
Marco | [9637 prI36eOja2Iuw]

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Tue, 7 Dec 2004 09:00:00 -0800 (PST)
From: Mike Mestnik <email address hidden>
To: Sjoerd Simons <email address hidden>, Marco d'Itri <email address hidden>
Cc: <email address hidden>, <email address hidden>
Subject: Re: Bug#284492: devfs.rules: Don't change NAME into a port(host?/bus?) specific target,
 for gvm.

--- Sjoerd Simons <email address hidden> wrote:

> On Mon, Dec 06, 2004 at 08:11:54PM +0100, Marco d'Itri wrote:
> > reassign 284492 gnome-volume-manager
> > thanks
> >
> > On Dec 06, "M Mestnik) (Shared Account" <email address hidden>
> wrote:
> >
> > > Gnome-volume-manager mounts my cds with the REAL device "NAME=".
> It's good
> > > to see that it's not being set to "hdc" but it's still being set to
> a
> > > port(host?/bus?) specific name. I subjest that the NAME="%c{2}"
> since this
> > > will allways be easy to see as a cdrom. Then SYMLINK="%k %c{1}".
> >
> > There is no reason to change the default configuration of udev.
> > I'm reassigning this bug to g-v-m, in the possibility that its
> > maintainer has something to add.
>
> Are you just guess that it will behave that way, or does it really
> behave that
> way? The current unstable hal and g-v-m shouldn't (They check
> volume.policy.desired_mount_point).
>
The name changed after I started using udev's devfs.rules. These rules
for whatever reason change the name to the true devfs name and make a
symlink to the compat(%n) name given by upstream(guessing the kernel).

So udev changed the name of the dir made by pmount, is gvm even involved
in this proces? I would guess that gvm simply runes mount and maby pmount
dereferences the symlinks.

Also how is volume.policy.desired_mount_point to be changed, so the user
can use only devfs names or only compat names or only old-compat names?

> If it was just a guess, please close this bug.. Otherwise i need a lot
> more
> info :)
>
> Sjoerd
> --
> Isn't it interesting that the same people who laugh at science fiction
> listen to weather forecasts and economists?
> -- Kelvin Throop III
>

__________________________________
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage less.
http://info.mail.yahoo.com/mail_250

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Tue, 7 Dec 2004 18:11:36 +0100
From: <email address hidden> (Sjoerd Simons)
To: <email address hidden>, <email address hidden>
Cc: "bugs.debian.org control" <email address hidden>,
 Marco d'Itri <email address hidden>
Subject: Re: Bug#284492: devfs.rules: Don't change NAME into a port(host?/bus?) specific target,
 for gvm.)

reassign 284492 udev
thanks,
On Tue, Dec 07, 2004 at 10:45:55AM -0600, Mike Mestnik wrote:
> tag 284492 +patch
> thank you.
>
> This should fix about 3 or 4 BUGS in devfs.rules and support scripts.
> The fix for the NAME bug is also in this patch, thought it is just a
> matter of moving strings around to fix this.

Reassigning it to udev, because of this patch. Note that your are mixing
problem and that completely sucks with respect to the bts! (It makes tracking
basically impossible).

> I don't see why this is a g-v-m bug, AFAIWT g-v-m gets the device name
> from udev and passes it along to pmount. pmount takes the name and
> creates /media/%n and nautilus makes a desctop icon made %n.

g-v-m doesn't even has a clue what udev is. Please check how stuff works,
before making statements like this.

> So if anything other then udev it's a nautilus bug.

Sorry, you don't really make sense here. Please if you want to make a point,
show me something that actually happened to you with recent versions of the
whole stack. Otherwise your just wasting our time :)

  Sjoerd
--
Life sucks, but death doesn't put out at all.
  -- Thomas J. Kopp

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Tue, 7 Dec 2004 18:13:08 +0100
From: <email address hidden> (Marco d'Itri)
Cc: <email address hidden>
Subject: Re: Bug#284492: devfs.rules: Don't change NAME into a port(host?/bus?) specific target,
 for gvm.)

--k1lZvvs/B4yU6o8G
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Dec 07, Mike Mestnik <email address hidden> wrote:

> This should fix about 3 or 4 BUGS in devfs.rules and support scripts.=20
I already explained that there is no bug in devfs.rules. If you don't
like the default configuration then change it on your system.

And get a clue, this is not a grave bug.

--=20
ciao, |
Marco | [9637 prI36eOja2Iuw]

--k1lZvvs/B4yU6o8G
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBteSkFGfw2OHuP7ERAs7uAJwNQ5gDN8ymf9QYcCd3eY92c55xIgCgiifS
ot/PfwjuiK1nwTrfr++Wo0I=
=m9Xa
-----END PGP SIGNATURE-----

--k1lZvvs/B4yU6o8G--

Revision history for this message
Matt Zimmerman (mdz) wrote :

Rejected upstream

Changed in gnome-volume-manager:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.