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

Function sepgsql_exec_check_perms

contrib/sepgsql/hooks.c:290–305  ·  view source on GitHub ↗

* sepgsql_exec_check_perms * * Entrypoint of DML permissions */

Source from the content-addressed store, hash-verified

288 * Entrypoint of DML permissions
289 */
290static bool
291sepgsql_exec_check_perms(List *rangeTabls, bool abort)
292{
293 /*
294 * If security provider is stacking and one of them replied 'false' at
295 * least, we don't need to check any more.
296 */
297 if (next_exec_check_perms_hook &&
298 !(*next_exec_check_perms_hook) (rangeTabls, abort))
299 return false;
300
301 if (!sepgsql_dml_privileges(rangeTabls, abort))
302 return false;
303
304 return true;
305}
306
307/*
308 * sepgsql_utility_command

Callers

nothing calls this directly

Calls 1

sepgsql_dml_privilegesFunction · 0.85

Tested by

no test coverage detected