Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: $< and setuid: quite different animals?

by almut (Canon)
on Apr 10, 2010 at 06:52 UTC ( #833957=note: print w/ replies, xml ) Need Help??

in reply to $< and setuid: quite different animals?

Try it the other way round (first effective, then real):

$> = $uid; $< = $uid; ...
$ sudo strace ./ 2>&1 | grep '^setr' setresuid(-1, 65534, -1) = 0 setreuid(65534, 4294967295) = 0 setresuid(-1, 0, -1) = -1 EPERM (Operation not perm +itted) setreuid(0, 4294967295) = -1 EPERM (Operation not perm +itted)

Comment on Re: $< and setuid: quite different animals?
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://833957]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2015-07-28 05:05 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (252 votes), past polls