Strange mounting issue with ext3

Robby Workman rw at rlworkman.net
Mon Apr 6 07:25:02 PDT 2009


On Mon, 06 Apr 2009 16:31:35 +0200
Ozan Çağlayan <ozan at pardus.org.tr> wrote:

> Hi,
> 
> Kernel: 2.6.25.20
> Desktop: KDE 4.2
> OS: Pardus
> hal: 20090304
> hal-info: 20090330
> 
> I was just bumping hal and hal-info to their latest snapshots and
> I've detected a strange issue.
> 
> 
> I'm creating a new ext3 partition on my USB stick:
> 
> # mkfs.ext3 -L "somelabel" /dev/sdb1
> 
> And then when I insert it HAL mounts it correctly
> into /media/somelabel but with wrong permissions:
> 
> # ls -l /media
> drwxr-xr-x  3 root  root  4096  Apr  6  16:20  somelabel
> 
> So a normal user which clicks on Dolphin's notification on its
> desktop, isn't able at all to write onto the usb stick. But HAL
> insists that it mounts it on behalf of uid 1001:
> 
> ..
> Apr  6 16:21:54 laptop hald: mounted /dev/sdb1 on behalf of uid 1001
> Apr  6 16:21:54 laptop hald[12956]: 16:21:54.440 [I]
> osspec.c:298: /proc/mounts tells, that the mount has tree changed
> Apr  6 16:21:54 laptop hald[12956]: 16:21:54.440 [I] device.c:1894:
> Removing locks from ':1.859' Apr  6 16:21:54 laptop hald[12956]:
> 16:21:54.440 [I] hald_dbus.c:4086: No more methods in queue Apr  6
> 16:21:54 laptop hald[12956]: 16:21:54.440 [D] hotplug.c:453: events
> queued = 0, events in progress = 0 Apr  6 16:21:54 laptop
> hald[12956]: 16:21:54.440 [D] hotplug.c:458: Hotplug-queue empty
> now ... no hotplug events in progress Apr  6 16:25:36 laptop
> hald[12956]: 16:25:36.222 [I] device.c:1894: Removing locks from
> ':1.862' ..
> 
> If I create a VFAT on the usb stick, everything works correctly, the
> disk is really mounted on behalf of 1001 and 1001 is able to write it
> peacefully.
> 
> What's going on here, am I missing something?


Are you *sure* you think it's a good idea for HAL to change the
ownership and/or permissions of a Unix filesystem?

-RW
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20090406/e88f5b46/attachment.pgp 


More information about the hal mailing list