plpython security and error handling fixes, from

Kevin Jacobs and Brad McLean.
This commit is contained in:
Tom Lane
2001-11-16 18:04:31 +00:00
parent b0df7a60f2
commit 1ca717f377
4 changed files with 271 additions and 56 deletions

View File

@ -7,3 +7,11 @@ SELECT invalid_type_uncaught('rick');
SELECT invalid_type_caught('rick');
SELECT invalid_type_reraised('rick');
SELECT valid_type('rick');
-- Security sandbox tests
SELECT read_file('/etc/passwd');
SELECT write_file('/tmp/plpython','This is very bad');
SELECT getpid();
SELECT uname();
SELECT sys_exit();
SELECT sys_argv();