디버그:

디버그:

SELinux를 비활성화했다가 활성화한 후 Apache 및 MySQL이 message.log에 다음 오류와 함께 시작되지 않습니다.

imjournal: rename() failed for new path: '/var/lib/rsyslog/imjournal.state': Permission denied [v8.24.0-34.el7 try http://www.rsyslog.com/e/0 ]

디버그:

ausearch -ts 최근 -m avc -i:

type=PROCTITLE msg=audit(06/17/2019 12:50:55.444:179) : 
proctitle=/usr/sbin/httpd -DFOREGROUND 
type=SYSCALL msg=audit(06/17/2019 12:50:55.444:179) : arch=x86_64 
syscall=open success=no exit=EACCES(Permission denied) a0=0x55edf621f410 
a1=O_WRONLY|O_CREAT|O_APPEND|O_CLOEXEC a2=0666 a3=0x7ffc3f67e060 items=0 
ppid=1 pid=3966 auid=unset uid=root gid=root euid=root suid=root fsuid=root 
egid=root sgid=root fsgid=root tty=(none) ses=unset comm=httpd 
exe=/usr/sbin/httpd subj=system_u:system_r:httpd_t:s0 key=(null) 
type=AVC msg=audit(06/17/2019 12:50:55.444:179) : avc:  denied  { append } 
for  pid=3966 comm=httpd name=error.log dev="vda1" ino=318782163 
scontext=system_u:system_r:httpd_t:s0 
tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=file permissive=0 

상태:

SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   enforcing
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      31

관련 정보