diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-11-16 18:04:31 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-11-16 18:04:31 +0000 |
| commit | 1ca717f377c71ff593d5d944133ef8939c1d4aee (patch) | |
| tree | 62d24ed1b8f00168c68a67d82719b58014eea1e7 /src/pl/plpython/plpython_error.sql | |
| parent | b0df7a60f2392d976a797fd6567114b18e3c9322 (diff) | |
| download | postgresql-1ca717f377c71ff593d5d944133ef8939c1d4aee.tar.gz | |
plpython security and error handling fixes, from
Kevin Jacobs and Brad McLean.
Diffstat (limited to 'src/pl/plpython/plpython_error.sql')
| -rw-r--r-- | src/pl/plpython/plpython_error.sql | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pl/plpython/plpython_error.sql b/src/pl/plpython/plpython_error.sql index 2f0486fed9..0cde4df996 100644 --- a/src/pl/plpython/plpython_error.sql +++ b/src/pl/plpython/plpython_error.sql @@ -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(); |
