not mount, and likely not the shell - the thing is that perl doesn't like it
when the effective uid is not equal to the real uid. Perl is very good at
limiting the damange an unsuspecting script does. This is to prevent passing
a "confused" environment to the shell.
The following can work around this:
($r,$e) = ( $>, $< ); # save real and effective uid's
$< = $e; # force real uid to the effective
`/bin/mount ....`
($>, $<) = ($r,$e); # restore mixed state
Remember, the options to mount should come from a fixed table with user
selected input used to select which table entry to use... or a strictly
fixed mount command.
Otherwise you have an even bigger security hole.
-- ------------------------------------------------------------------------- Jesse I Pollard, II Email: jesse@cats-chateau.netAny opinions expressed are solely my own. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/