Update copyright for 2022
[pgsql.git] / src / include / commands / seclabel.h
blob1577988f1d55fc7ad82484bffe325c78aab6d121
1 /*
2 * seclabel.h
4 * Prototypes for functions in commands/seclabel.c
6 * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
8 */
9 #ifndef SECLABEL_H
10 #define SECLABEL_H
12 #include "catalog/objectaddress.h"
15 * Internal APIs
17 extern char *GetSecurityLabel(const ObjectAddress *object,
18 const char *provider);
19 extern void SetSecurityLabel(const ObjectAddress *object,
20 const char *provider, const char *label);
21 extern void DeleteSecurityLabel(const ObjectAddress *object);
22 extern void DeleteSharedSecurityLabel(Oid objectId, Oid classId);
25 * Statement and ESP hook support
27 extern ObjectAddress ExecSecLabelStmt(SecLabelStmt *stmt);
29 typedef void (*check_object_relabel_type) (const ObjectAddress *object,
30 const char *seclabel);
31 extern void register_label_provider(const char *provider,
32 check_object_relabel_type hook);
34 #endif /* SECLABEL_H */