Minor sepgsql regression test fixes.

This commit is contained in:
Robert Haas 2011-02-02 23:46:51 -05:00
parent c7689ee733
commit 87d967f70f
3 changed files with 6 additions and 2 deletions

View file

@ -3,3 +3,5 @@
/sepgsql-regtest.if
/sepgsql-regtest.pp
/tmp
# Generated subdirectories
/results/

View file

@ -34,7 +34,8 @@ SECURITY LABEL ON FUNCTION customer_credit(int)
SELECT objtype, objname, label FROM pg_seclabels
WHERE provider = 'selinux'
AND objtype in ('table', 'column')
AND objname in ('t1', 't2', 't3', 't4', 't5', 't5.e', 't5.f', 't5.g');
AND objname in ('t1', 't2', 't3', 't4', 't5', 't5.e', 't5.f', 't5.g')
ORDER BY objname;
objtype | objname | label
---------+---------+---------------------------------------------
table | t1 | system_u:object_r:sepgsql_table_t:s0

View file

@ -40,7 +40,8 @@ SECURITY LABEL ON FUNCTION customer_credit(int)
SELECT objtype, objname, label FROM pg_seclabels
WHERE provider = 'selinux'
AND objtype in ('table', 'column')
AND objname in ('t1', 't2', 't3', 't4', 't5', 't5.e', 't5.f', 't5.g');
AND objname in ('t1', 't2', 't3', 't4', 't5', 't5.e', 't5.f', 't5.g')
ORDER BY objname;
-- Hardwired Rules
UPDATE pg_attribute SET attisdropped = true