expand and fix selinux functionality