collect audit.log for easier selinux investigation

Audit log contains useful information about selinux issues

Reviewed-By: Milan Kubik <mkubik@redhat.com>
This commit is contained in:
Martin Basti 2017-04-05 15:11:09 +02:00
parent 70743c8c48
commit fd597f83ae
2 changed files with 4 additions and 0 deletions

View File

@ -295,6 +295,7 @@ class BasePathNamespace(object):
SSSD_MC_PASSWD = "/var/lib/sss/mc/passwd"
SSSD_PUBCONF_KNOWN_HOSTS = "/var/lib/sss/pubconf/known_hosts"
SSSD_PUBCONF_KRB5_INCLUDE_D_DIR = "/var/lib/sss/pubconf/krb5.include.d/"
VAR_LOG_AUDIT = "/var/log/audit/audit.log"
DIRSRV_LOCK_DIR = "/var/lock/dirsrv"
VAR_LOG_DIRSRV_INSTANCE_TEMPLATE = "/var/log/dirsrv/slapd-%s"
SLAPD_INSTANCE_ACCESS_LOG_TEMPLATE = "/var/log/dirsrv/slapd-%s/access"

View File

@ -84,6 +84,9 @@ def setup_server_logs_collecting(host):
# dogtag logs
host.collect_log(os.path.join(paths.VAR_LOG_PKI_DIR))
# selinux logs
host.collect_log(paths.VAR_LOG_AUDIT)
# SSSD debugging must be set after client is installed (function
# setup_sssd_debugging)