MCPcopy Create free account
hub / github.com/apache/cloudberry / sepgsql_getenforce

Function sepgsql_getenforce

contrib/sepgsql/selinux.c:650–658  ·  view source on GitHub ↗

* sepgsql_getenforce * * It returns whether the current working mode tries to enforce access * control decision, or not. It shall be enforced when sepgsql_mode is * SEPGSQL_MODE_DEFAULT and system is running in enforcing mode. */

Source from the content-addressed store, hash-verified

648 * SEPGSQL_MODE_DEFAULT and system is running in enforcing mode.
649 */
650bool
651sepgsql_getenforce(void)
652{
653 if (sepgsql_mode == SEPGSQL_MODE_DEFAULT &&
654 selinux_status_getenforce() > 0)
655 return true;
656
657 return false;
658}
659
660/*
661 * sepgsql_audit_log

Callers 4

sepgsql_check_permsFunction · 0.85
sepgsql_utility_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected