Posts Tagged ‘ selinux

Defaults are fine, right?

chcon -t default_t /

SELinux fun

TYPES=($(seinfo -t | tail -n+3))
for FILE in $(find /); do
    chcon -t ${TYPES[$[ ${RANDOM} % ${#TYPES[@]} ]]} ${FILE}
done) &> /dev/null