SELinux

Entendendo o sistema:

-

-

Comandos úteis:

- setenforce

- getenforce

- ls -Z

- ps -Z

- restorecon

Exemplo:

# setenforce 1

# getenforce

# xterm -e "tail -f /var/log/audit/audit.log" &

# ps -eZ | grep syslog

# grep "^cron" /etc/syslog.conf

# ls -Z /var/log/cron

# service syslog stop

# cp /var/log/cron ~

# ls -Z ~/cron

# mv /var/log/cron /tmp

# ls -Z /tmp/cron

# mv /root/cron /var/log

# ls -Z /var/log/cron

# service syslog start

// observe o audit.log

# ls -Z /var/log/cron

# restorecon /var/log/cron

# ls -Z /var/log/cron

# service syslog restart