mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
sepgsql: Enforce db_procedure:{execute} permission.
To do this, we add an additional object access hook type, OAT_FUNCTION_EXECUTE. KaiGai Kohei
This commit is contained in:
@ -97,6 +97,8 @@ SECURITY LABEL ON COLUMN t2.b
|
||||
-- Tests for Trusted Procedures
|
||||
--
|
||||
-- @SECURITY-CONTEXT=unconfined_u:unconfined_r:sepgsql_regtest_user_t:s0
|
||||
SET sepgsql.debug_audit = true;
|
||||
SET client_min_messages = log;
|
||||
SELECT f1(); -- normal procedure
|
||||
SELECT f2(); -- trusted procedure
|
||||
SELECT f3(); -- trusted procedure that raises an error
|
||||
|
Reference in New Issue
Block a user