* sepgsql_schema_drop * * It checks privileges to drop the supplied schema object. */
| 111 | * It checks privileges to drop the supplied schema object. |
| 112 | */ |
| 113 | void |
| 114 | sepgsql_schema_drop(Oid namespaceId) |
| 115 | { |
| 116 | ObjectAddress object; |
| 117 | char *audit_name; |
| 118 | |
| 119 | /* |
| 120 | * check db_schema:{drop} permission |
| 121 | */ |
| 122 | object.classId = NamespaceRelationId; |
| 123 | object.objectId = namespaceId; |
| 124 | object.objectSubId = 0; |
| 125 | audit_name = getObjectIdentity(&object, false); |
| 126 | |
| 127 | sepgsql_avc_check_perms(&object, |
| 128 | SEPG_CLASS_DB_SCHEMA, |
| 129 | SEPG_DB_SCHEMA__DROP, |
| 130 | audit_name, |
| 131 | true); |
| 132 | pfree(audit_name); |
| 133 | } |
| 134 | |
| 135 | /* |
| 136 | * sepgsql_schema_relabel |
no test coverage detected