Permissions for hal mounted drives
william.muriithi-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Thu Jul 3 15:35:26 UTC 2008
Redelmeier, I was using Fedora 5. I also noticed another system
running centos 5 mounted the drives just like Fedora 5. This seem to
have changed in Fedora 9 as the directory property you highlighted is
what I am looking for.
Madi, thanks for the pointers. I am going to google a bit and see what
take over from HAL after drive insertion. I am however looking for the
opposite characteristics to what you described. The system is a
desktop, so users should be allowed access to portable drives - more
like in Windows.
> *As I understand it*... HAL broadcasts changes in hardware (ie: disk being
> connected) using a D-Bus signal. That's it. From there, it's up to
> programs that are interested in storage devices messages to decide what to
> do. In Gnome, this is, I believe, handled by the gnome virtual file
> system. It may in turn call 'pmount', but that is merely a setuid wrapper
> to mount with some checks in it.
> So I don't have an exact answer for you (sorry, it's late or I would look
> into it), but hopefully this will help point you in the right direction.
> As for *why* it restricts access to you, I would suspect it is because the
> listener that is reacting to HAL's dbus signal is running in user-space
> and only can mount with your permissions, being essentially unprivileged
> itself. It's essentially your Gnome session mounting the drive, after all.
> What you could do, assuming my guesses are even close to right, is write
> your own DBus application that waits for mount messages and, when it gets
> a notice, checks the permissions and remounts the drive with more
> permissive restrictions given whatever conditions you care about.
> Again, this is a lot of guessing on my (tired) part. But I hope it might
> The Toronto Linux Users Group. Meetings: http://gtalug.org/
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy