in reply to suid Perl with App::PAR::Packer (pp)
GASP!
What if I changed that to 0777...
185 if (mkdir(top_tmpdir, 0700) == -1 && errno != EEXIST) {
Hmmm... nope. Sefault. Still getting permission-denied. More fun... strace says:
... stat("/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) = 0 access("/tmp", W_OK) = 0 mkdir("/tmp/par-746f6d6d79", 0777) = -1 EEXIST (File exists) getpid() = 3292 mkdir("/tmp/par-746f6d6d79/temp-3292", 0777) = -1 EACCES (Permission d +enied) mkdir("/tmp/par-746f6d6d79/temp-3292", 0777) = -1 EACCES (Permission d +enied) write(2, "./suid_script: creation of priva"..., 103./suid_script: crea +tion of private cache subdirectory /tmp/par-746f6d6d79/temp-3292 fail +ed (errno= 13) ) = 103 exit_group(255) = ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: suid Perl with App::PAR::Packer (pp)
by Tommy (Chaplain) on Oct 13, 2013 at 19:50 UTC | |
by Anonymous Monk on Oct 13, 2013 at 20:05 UTC | |
by Tommy (Chaplain) on Oct 14, 2013 at 04:12 UTC |