in reply to Re: Insecure dependency in system under -T, with list form invocation
in thread Insecure dependency in system under -T, with list form invocation
I did use the basename of $0 in my usage function.
This worked fine as long as I was running the script normally.
But as soon as I installed it as suid, the $0 turned to contain something like /dev/fd/4 (i.e. the file descriptor under which perl had opened the script, and which was passed to a child process, running under the new id, I assume).
So, how is a script supposed to know under what name it was invoked, if suid'd?
Is this a specific problem on Solaris?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: $0 in suid enabled script
by Anonymous Monk on Sep 15, 2008 at 13:14 UTC | |
by tye (Sage) on Sep 15, 2008 at 15:18 UTC | |
by Anonymous Monk on Sep 15, 2008 at 15:21 UTC | |
by cramdorgi (Acolyte) on Sep 15, 2008 at 15:43 UTC |