Does pmount honor mount_root?

Martin Pitt martin at
Mon Oct 24 10:00:19 PDT 2005

Hi Artem!

Artem Kachitchkine [2005-10-24  9:04 -0700]:
> >Normal users aren't supposed to specify a random directory.
> Is my understanding correct that this is not a security issue, but one 
> of standards compliance (FHS)?

It is a security issue; you would not want an user mounting his USB
stick over /usr, /tmp, /home, or other sensitive directories. pmount
already checks that nothing else is mounted on the target mount point,
though, but better safe than sorry. :-)

Right now the /media path is hardcoded into the .c files; since pmount
is now autotoolized, I can make this a configure option, but the use
case of changing this patch is not big enough to justify adding a
runtime option (and introduce more bugs :-) ).



Martin Pitt
Ubuntu Developer
Debian Developer

In a world without walls and fences, who needs Windows and Gates?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url :

More information about the hal mailing list