libselinux

SELinux library and utilities for security context management

brewmacoslinux
Try with needOr install directly
Source

About

SELinux library and simple utilities

Commands

getenforcesetenforcegetseboolsetseboolsestatuschconrestorecon

Examples

Check the current SELinux enforcement mode$ getenforce
Get the SELinux security context of a file$ ls -Z /etc/passwd
Restore default SELinux context for a file$ restorecon /etc/shadow