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

Function sepgsql_avc_check_valid

contrib/sepgsql/uavc.c:151–161  ·  view source on GitHub ↗

------------------------------------------------------------------------- * * sepgsql_avc_check_valid * * This function checks whether the cached entries are still valid. If * the security policy has been reloaded (or any other events that requires * resetting userspace caches has occurred) since the last reference to * the access vector cache, we must flush the cache. * * Access control

Source from the content-addressed store, hash-verified

149 * -------------------------------------------------------------------------
150 */
151static bool
152sepgsql_avc_check_valid(void)
153{
154 if (selinux_status_updated() > 0)
155 {
156 sepgsql_avc_reset();
157
158 return false;
159 }
160 return true;
161}
162
163/*
164 * sepgsql_avc_unlabeled

Callers 2

sepgsql_avc_trusted_procFunction · 0.85

Calls 1

sepgsql_avc_resetFunction · 0.85

Tested by

no test coverage detected