Automatic mounting of USB drives...
Kyrre Ness Sjobak
kyrre at solution-forge.net
Fri Oct 29 15:56:12 UTC 2004
tor, 28.10.2004 kl. 23.25 skrev David Zeuthen:
> On Thu, 2004-10-28 at 23:02 +0200, Kyrre Ness Sjobak wrote:
> > It makes me wonder... What if i label the partitions the same as another
> > mountpoint? Could this create a security hole, somehow? (such as
> > labeling a partition `rm -rf /` - would that do a "mkdir `rm -rf /` or
> > could anything so ugly be done?
> >
>
> No, we use mkdir(2), not mkdir(1). We also massage the mountpoint so it
> only contains digits [0-9], ascii letters [A-Za-z], '-' and '_'
> characters. Notably it wont contain any whitespace.
>
Guessed so. Just wanted to "check" - just for that 1% chance of a OH
***!!! i forgot that posibility responce...
> Cheers,
> David
>
More information about the fedora-test-list
mailing list