From: Jesse Pollard <pollard@tomcat.admin.navo.hpc.mil>
To: mdharm-kernel@one-eyed-alien.net, Jesse Pollard <jesse@cats-chateau.net>
Cc: Keith Owens <kaos@ocs.com.au>,
Kernel Developer List <linux-kernel@vger.kernel.org>
Subject: Re: using mount from SUID scripts?
Date: Wed, 8 Aug 2001 07:31:02 -0500 (CDT) [thread overview]
Message-ID: <200108081231.HAA69953@tomcat.admin.navo.hpc.mil> (raw)
...
> Unfortunately, the snippit of code here doesn't do the job... after the
> first two lines, the UID is unchanged, while the EUID is still 0 (root). I
> used system "/usr/bin/id" to verify this. /bin/mount is still complaining.
>
> Oh, wait... $> is effective and $< is real. So that first line should be
> ($r, $e) =3D ($<, $>); -- this makes everything happy!
drat... I thought I had that right...
Also the last line should be swapped too:
($r, $e) = ($<, $>);
$< =3D $e;
<<<do stuff>>>
($<, $>) = ($r,$e);
-------------------------------------------------------------------------
Jesse I Pollard, II
Email: pollard@navo.hpc.mil
Any opinions expressed are solely my own.
next reply other threads:[~2001-08-08 12:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-08 12:31 Jesse Pollard [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-08-07 23:29 using mount from SUID scripts? Matthew Dharm
2001-08-08 1:12 ` Keith Owens
2001-08-08 2:29 ` Jesse Pollard
2001-08-08 5:17 ` Matthew Dharm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200108081231.HAA69953@tomcat.admin.navo.hpc.mil \
--to=pollard@tomcat.admin.navo.hpc.mil \
--cc=jesse@cats-chateau.net \
--cc=kaos@ocs.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=mdharm-kernel@one-eyed-alien.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.