PSC is a setuid C wrapper that opens a protected conf file and drops priviledge, it then execs your perl script, leaving a filehandle for the script to open. Config::Secure (: my first module on CPAN :) initializes the file and optionally can parse the config file for you, giving you a nice hash. It also resets $0 to be the name of the wrapper script.
I created this due to search to find a way to hide DBI passwords in system and cgi scripts, but it can be used for any protected data.
Thanks to tye, zaxo and anyone else who gave me input.
- Ant
- Some of my best work - Fish Dinner
|
|---|