centos 系統(tǒng)的 selinux 日志保存在 /var/log/audit/audit.log 文件中。 您可以通過(guò)以下幾種方法查看這些日志:
使用 ausearch 命令查看今天的 SELinux 訪(fǎng)問(wèn)控制 (AVC) 日志:
ausearch -m avc -ts today
使用 grep 命令過(guò)濾日志,查找包含 “avc” 關(guān)鍵字的條目:
grep avc /var/log/audit/audit.log
使用 ausearch 命令查看最新的 SELinux AVC 日志:
ausearch -m avc -te now
這些命令能夠幫助您高效地檢查和分析 centos 系統(tǒng)中的 SELinux 日志信息。