postgresql_16:9.6.40.6 Sepgsql Functions
PostgreSQL 16 > Appendixes > Additional Supplied Modules and Extensions > sepgsql — SELinux-, label-based mandatory access control (MAC) security module > Sepgsql Functions
(see sepgsql-functions-table) shows the available functions.
| Function Description | | --- | | sepgsql_getcon () text Returns the client domain, the current security label of the client. | | sepgsql_setcon ( text ) boolean Switches the client domain of the current session to the new domain, if allowed by the security policy. It also accepts NULL input as a request to transition to the client's original domain. | | sepgsql_mcstrans_in ( text ) text Translates the given qualified MLS/MCS range into raw format if the mcstrans daemon is running. | | sepgsql_mcstrans_out ( text ) text Translates the given raw MLS/MCS range into qualified format if the mcstrans daemon is running. | | sepgsql_restorecon ( text ) boolean Sets up initial security labels for all objects within the current database. The argument may be NULL, or the name of a specfile to be used as alternative of the system default. |