Add selinux authorizations for futur application

This commit is contained in:
Adrien Reslinger 2024-09-15 01:11:34 +02:00
parent cacef647a9
commit 9c047cd19a
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
3 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,19 @@
module wireguard_firewall-cmd 1.0;
require {
type cert_t;
type firewalld_t;
type wireguard_t;
class dir { getattr open read search };
class file { getattr open read };
class dbus send_msg;
}
#============= firewalld_t ==============
allow firewalld_t wireguard_t:dbus send_msg;
#============= wireguard_t ==============
allow wireguard_t cert_t:dir { getattr open read search };
allow wireguard_t cert_t:file { getattr open read };
allow wireguard_t firewalld_t:dbus send_msg;