27 if (seclabel == NULL ||
28 strcmp(seclabel,
"unclassified") == 0 ||
29 strcmp(seclabel,
"classified") == 0)
32 if (strcmp(seclabel,
"secret") == 0 ||
33 strcmp(seclabel,
"top secret") == 0)
37 (
errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
38 errmsg(
"only superuser can set '%s' label", seclabel)));
43 errmsg(
"'%s' is not a valid security label", seclabel)));
PG_FUNCTION_INFO_V1(dummy_seclabel_dummy)
static void dummy_object_relabel(const ObjectAddress *object, const char *seclabel)
Datum dummy_seclabel_dummy(PG_FUNCTION_ARGS)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
void register_label_provider(const char *provider_name, check_object_relabel_type hook)