[PATCH v2] contrib/selinux: use regex instead of SELinux template