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) = ?
In reply to Re: suid Perl with App::PAR::Packer (pp)
by Tommy
in thread suid Perl with App::PAR::Packer (pp)
by Tommy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |