Keep It Simple, Stupid | |
PerlMonks |
Re^4: suid Perl with App::PAR::Packer (pp)by Tommy (Chaplain) |
on Oct 14, 2013 at 04:12 UTC ( [id://1058123]=note: print w/replies, xml ) | Need Help?? |
Dear, Anonymous Monk. I did what you asked and put the diff up as a gist on github. It's here: https://gist.github.com/tommybutler/6970628 Please read the notes on the patch before using it, because it notes that the build helper script had to be changed in order to make it work (by removing the --clean option when calling pp). I added crypto filters to the compiled executable for better security, given that it is suid. I also put into the BEGIN block of the script an instant-exit if $< isn't my uid. The updated (fixed) build helper script:
Tommy A mistake can be valuable or costly, depending on how faithfully you pursue correction
In Section
Seekers of Perl Wisdom
|
|