using mount from SUID scripts?

Matthew Dharm (mdharm-kernel@one-eyed-alien.net)
Tue, 7 Aug 2001 16:29:39 -0700


--FCuugMFkClbJLl1L
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I've got an SUID perl script (yes, it's EUID is really 0) which I'd like to
use mount from to mount a file via loopback...

Unfortunately, it looks like mount refuses to actually mount anything if
the EUID and UID aren't the same....

Does anyone happen to know a way around this? Yes, I know this isn't the
most secure thing in the world... but I'm basically trying to build a
filesystem image and put stuff on it using dd, mkfs, mount, and cp. It all
works great when run as root, but it really needs to be useable as a
typical user.

Matt

--=20
Matthew Dharm Home: mdharm-usb@one-eyed-alien.=
net=20
Maintainer, Linux USB Mass Storage Driver

It was a new hope.
-- Dust Puppy
User Friendly, 12/25/1998

--FCuugMFkClbJLl1L
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7cHnjz64nssGU+ykRAmhZAKDIMIx5M8fUk5AkT+EeIRHCOCLd9ACgnkDz
mgMYY1cXwHFyvZaWem+W3p4=
=JJ+P
-----END PGP SIGNATURE-----

--FCuugMFkClbJLl1L--
-
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/