mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Various sepgsql corrections.
KaiGai Kohei
This commit is contained in:
@ -42,15 +42,15 @@ SELECT objtype, objname, label FROM pg_seclabels
|
||||
table | t3 | system_u:object_r:sepgsql_fixed_table_t:s0
|
||||
table | t4 | system_u:object_r:sepgsql_secret_table_t:s0
|
||||
table | t5 | system_u:object_r:sepgsql_table_t:s0
|
||||
column | t5.g | system_u:object_r:sepgsql_secret_table_t:s0
|
||||
column | t5.f | system_u:object_r:sepgsql_ro_table_t:s0
|
||||
column | t5.e | system_u:object_r:sepgsql_table_t:s0
|
||||
column | t5.f | system_u:object_r:sepgsql_ro_table_t:s0
|
||||
column | t5.g | system_u:object_r:sepgsql_secret_table_t:s0
|
||||
(8 rows)
|
||||
|
||||
-- Hardwired Rules
|
||||
UPDATE pg_attribute SET attisdropped = true
|
||||
WHERE attrelid = 't5'::regclass AND attname = 'f'; -- failed
|
||||
ERROR: selinux: hardwired security policy violation
|
||||
ERROR: SELinux: hardwired security policy violation
|
||||
--
|
||||
-- Simple DML statements
|
||||
--
|
||||
|
@ -56,8 +56,8 @@ SELECT sepgsql_getcon(); -- confirm client privilege
|
||||
SECURITY LABEL ON TABLE t1
|
||||
IS 'system_u:object_r:sepgsql_ro_table_t:s0'; -- ok
|
||||
SECURITY LABEL ON TABLE t2
|
||||
IS 'invalid seuciryt context'; -- be failed
|
||||
ERROR: invalid security label: "invalid seuciryt context"
|
||||
IS 'invalid security context'; -- be failed
|
||||
ERROR: SELinux: invalid security label: "invalid security context"
|
||||
SECURITY LABEL ON COLUMN t2
|
||||
IS 'system_u:object_r:sepgsql_ro_table_t:s0'; -- be failed
|
||||
ERROR: improper relation name (too many dotted names):
|
||||
|
@ -2,4 +2,4 @@
|
||||
-- Regression Test for Misc Permission Checks
|
||||
--
|
||||
LOAD '$libdir/sepgsql'; -- failed
|
||||
ERROR: SELinux: LOAD is not allowed anyway.
|
||||
ERROR: SELinux: LOAD is not permitted
|
||||
|
Reference in New Issue
Block a user