From 1ca717f377c71ff593d5d944133ef8939c1d4aee Mon Sep 17 00:00:00 2001
From: Tom Lane <tgl@sss.pgh.pa.us>
Date: Fri, 16 Nov 2001 18:04:31 +0000
Subject: plpython security and error handling fixes, from Kevin Jacobs and
 Brad McLean.

---
 src/pl/plpython/plpython_error.sql | 8 ++++++++
 1 file changed, 8 insertions(+)

(limited to 'src/pl/plpython/plpython_error.sql')

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();
-- 
cgit v1.2.1

