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

Function sepgsql_avc_hash

contrib/sepgsql/uavc.c:66–72  ·  view source on GitHub ↗

* Hash function */

Source from the content-addressed store, hash-verified

64 * Hash function
65 */
66static uint32
67sepgsql_avc_hash(const char *scontext, const char *tcontext, uint16 tclass)
68{
69 return hash_any((const unsigned char *) scontext, strlen(scontext))
70 ^ hash_any((const unsigned char *) tcontext, strlen(tcontext))
71 ^ tclass;
72}
73
74/*
75 * Reset all the avc caches

Callers 2

sepgsql_avc_computeFunction · 0.85
sepgsql_avc_lookupFunction · 0.85

Calls 1

hash_anyFunction · 0.85

Tested by

no test coverage detected