diff options
| author | Robert Haas <rhaas@postgresql.org> | 2012-03-15 16:08:40 -0400 |
|---|---|---|
| committer | Robert Haas <rhaas@postgresql.org> | 2012-03-15 16:08:40 -0400 |
| commit | 523176cbf14a3414170a83dd43686c0eccdc61c6 (patch) | |
| tree | 307f38c7f20e2e9982dbd4bc2583aedf196ffe1a /contrib/sepgsql/sepgsql.sql.in | |
| parent | eb990a2b9efff853d0c68a9cf902b1df23498540 (diff) | |
sepgsql_setcon().
This is intended as infrastructure to allow sepgsql to cooperate with
connection pooling software, by allowing the effective security label
to be set for each new connection.
KaiGai Kohei, reviewed by Yeb Havinga.
Diffstat (limited to 'contrib/sepgsql/sepgsql.sql.in')
| -rw-r--r-- | contrib/sepgsql/sepgsql.sql.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/sepgsql/sepgsql.sql.in b/contrib/sepgsql/sepgsql.sql.in index 45ffe31e6bd..917d12dbbed 100644 --- a/contrib/sepgsql/sepgsql.sql.in +++ b/contrib/sepgsql/sepgsql.sql.in @@ -30,6 +30,7 @@ -- LOAD 'MODULE_PATHNAME'; CREATE OR REPLACE FUNCTION pg_catalog.sepgsql_getcon() RETURNS text AS 'MODULE_PATHNAME', 'sepgsql_getcon' LANGUAGE C; +CREATE OR REPLACE FUNCTION pg_catalog.sepgsql_setcon(text) RETURNS bool AS 'MODULE_PATHNAME', 'sepgsql_setcon' LANGUAGE C; CREATE OR REPLACE FUNCTION pg_catalog.sepgsql_mcstrans_in(text) RETURNS text AS 'MODULE_PATHNAME', 'sepgsql_mcstrans_in' LANGUAGE C STRICT; CREATE OR REPLACE FUNCTION pg_catalog.sepgsql_mcstrans_out(text) RETURNS text AS 'MODULE_PATHNAME', 'sepgsql_mcstrans_out' LANGUAGE C STRICT; CREATE OR REPLACE FUNCTION pg_catalog.sepgsql_restorecon(text) RETURNS bool AS 'MODULE_PATHNAME', 'sepgsql_restorecon' LANGUAGE C; |
