rhel:selinux
Содержание
10. SELinux
Просмотр и установка режима работы SELinux
getenforce /code> <code bash> setenforce 0 | 1
Просмотр и установка переменных booleans
getsebool -a
setsebool boolean on | off #опционально -P для постоянного применения Persistent
Просмотр и установка context
semanage fcontext -l ls -Z ps -axZ
semanage fcontext -a -t context_type '/directory(/.*)?'
Восстановить значения context по умолчанию
restorecon -R /directory
Аудит
sealert -a /var/log/audit.log
rhel/selinux.txt · Последнее изменение: 2024/12/21 19:00 — 127.0.0.1