| 416 | } |
| 417 | |
| 418 | bool |
| 419 | sepgsql_avc_check_perms(const ObjectAddress *tobject, |
| 420 | uint16 tclass, uint32 required, |
| 421 | const char *audit_name, |
| 422 | bool abort_on_violation) |
| 423 | { |
| 424 | char *tcontext = GetSecurityLabel(tobject, SEPGSQL_LABEL_TAG); |
| 425 | bool rc; |
| 426 | |
| 427 | rc = sepgsql_avc_check_perms_label(tcontext, |
| 428 | tclass, required, |
| 429 | audit_name, abort_on_violation); |
| 430 | if (tcontext) |
| 431 | pfree(tcontext); |
| 432 | |
| 433 | return rc; |
| 434 | } |
| 435 | |
| 436 | /* |
| 437 | * sepgsql_avc_trusted_proc |
no test coverage detected