* Hash function */
| 64 | * Hash function |
| 65 | */ |
| 66 | static uint32 |
| 67 | sepgsql_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 |
no test coverage detected