* sepgsql_getenforce * * It returns whether the current working mode tries to enforce access * control decision, or not. It shall be enforced when sepgsql_mode is * SEPGSQL_MODE_DEFAULT and system is running in enforcing mode. */
| 648 | * SEPGSQL_MODE_DEFAULT and system is running in enforcing mode. |
| 649 | */ |
| 650 | bool |
| 651 | sepgsql_getenforce(void) |
| 652 | { |
| 653 | if (sepgsql_mode == SEPGSQL_MODE_DEFAULT && |
| 654 | selinux_status_getenforce() > 0) |
| 655 | return true; |
| 656 | |
| 657 | return false; |
| 658 | } |
| 659 | |
| 660 | /* |
| 661 | * sepgsql_audit_log |
no outgoing calls
no test coverage detected