## WireGuard VPN. ######################################## ## ## Execute WireGuard in the wireguard domain. ## ## ## ## Domain allowed to transition. ## ## # interface(`wireguard_domtrans',` gen_require(` type wireguard_t, wireguard_exec_t; ') corecmd_search_bin($1) domtrans_pattern($1, wireguard_exec_t, wireguard_t) ') ######################################## ## ## Execute WireGuard in the wireguard domain, and ## allow the specified role the wireguard domain. ## ## ## ## Domain allowed to transition. ## ## ## ## ## Role allowed access. ## ## ## # interface(`wireguard_run',` gen_require(` attribute_role wireguard_roles; ') wireguard_domtrans($1) roleattribute $2 wireguard_roles; ') ######################################## ## ## All of the rules required to ## administrate a WireGuard ## environment. ## ## ## ## Domain allowed access. ## ## ## ## ## Role allowed access. ## ## ## # interface(`wireguard_admin',` gen_require(` type wireguard_t, wireguard_etc_t, wireguard_initrc_exec_t, wireguard_unit_t; ') admin_process_pattern($1, wireguard_t) init_startstop_service($1, $2, wireguard_t, wireguard_initrc_exec_t, wireguard_unit_t) files_search_etc($1) admin_pattern($1, wireguard_etc_t) ')