Hi,
I have a machine, originally Plesk 12.5 on CentOS 7.
All was working fine.
Yesterday I upgraded to Onyx via the web-upgrade-Tool.
Today qmail won't accept SMTP connections any more:
# telnet localhost 25
Trying ::1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
As all deamons seemed to be running fine, I checked SELinux:
/var/log/audit/audit.log
type=AVC msg=audit(1481709881.072:958): avc: denied { write } for pid=3482 comm="qmail-queue" path="pipe:[19640]" dev="pipefs" ino=19640 scontext=system_u:system_r:qmail_queue_t:s0 tcontext=system_u:system_r:qmail_start_t:s0 tclass=fifo_file
type=AVC msg=audit(1481709881.072:958): avc: denied { read } for pid=3482 comm="qmail-queue" path="pipe:[19641]" dev="pipefs" ino=19641 scontext=system_u:system_r:qmail_queue_t:s0 tcontext=system_u:system_r:qmail_start_t:s0 tclass=fifo_file
type=SYSCALL msg=audit(1481709881.072:958): arch=c000003e syscall=59 success=yes exit=0 a0=409776 a1=60d210 a2=7ffdf3c29998 a3=0 items=0 ppid=715 pid=3482 auid=4294967295 uid=2522 gid=2520 euid=2522 suid=2522 fsuid=2522 egid=31 sgid=31 fsgid=31 tty=(none) ses=4294967295 comm="qmail-queue" exe="/var/qmail/bin/qmail-queue" subj=system_u:system_r:qmail_queue_t:s0 key=(null)
type=AVC msg=audit(1481709881.075:959): avc: denied { read } for pid=3482 comm="qmail-queue" name="group" dev="vda1" ino=3396 scontext=system_u:system_r:qmail_queue_t:s0 tcontext=system_ubject_rasswd_file_t:s0 tclass=file
So, in order to get my system up and working again, I set SELinux to "permissive" - and immediately qmail starts to accept incoming connections again.
Apparently the upgrade breaks SElinux config or qmail requires additional permissions or... I don't know.
Is there any reference regarding how the thing is supposed to look like, how I can check that and how to get to where it should be? Is there a tool to re-set selinux to what it should be?
Does any of the Plesk-repair-tools reset selinux?
I found this documentation: https://linux.die.net/man/8/qmail_selinux
But with my very basic undertsnding of SELinux I'm not sure how to check these preconditions or how to adjust.
Also I see that I have almost 200 packets marked as"updates available", but it seems they do include qmail or SELinux, so I'll wait with that until stuff is sorted...?
Thanks for any help!
Southy
I have a machine, originally Plesk 12.5 on CentOS 7.
All was working fine.
Yesterday I upgraded to Onyx via the web-upgrade-Tool.
Today qmail won't accept SMTP connections any more:
# telnet localhost 25
Trying ::1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
As all deamons seemed to be running fine, I checked SELinux:
/var/log/audit/audit.log
type=AVC msg=audit(1481709881.072:958): avc: denied { write } for pid=3482 comm="qmail-queue" path="pipe:[19640]" dev="pipefs" ino=19640 scontext=system_u:system_r:qmail_queue_t:s0 tcontext=system_u:system_r:qmail_start_t:s0 tclass=fifo_file
type=AVC msg=audit(1481709881.072:958): avc: denied { read } for pid=3482 comm="qmail-queue" path="pipe:[19641]" dev="pipefs" ino=19641 scontext=system_u:system_r:qmail_queue_t:s0 tcontext=system_u:system_r:qmail_start_t:s0 tclass=fifo_file
type=SYSCALL msg=audit(1481709881.072:958): arch=c000003e syscall=59 success=yes exit=0 a0=409776 a1=60d210 a2=7ffdf3c29998 a3=0 items=0 ppid=715 pid=3482 auid=4294967295 uid=2522 gid=2520 euid=2522 suid=2522 fsuid=2522 egid=31 sgid=31 fsgid=31 tty=(none) ses=4294967295 comm="qmail-queue" exe="/var/qmail/bin/qmail-queue" subj=system_u:system_r:qmail_queue_t:s0 key=(null)
type=AVC msg=audit(1481709881.075:959): avc: denied { read } for pid=3482 comm="qmail-queue" name="group" dev="vda1" ino=3396 scontext=system_u:system_r:qmail_queue_t:s0 tcontext=system_ubject_rasswd_file_t:s0 tclass=file
So, in order to get my system up and working again, I set SELinux to "permissive" - and immediately qmail starts to accept incoming connections again.
Apparently the upgrade breaks SElinux config or qmail requires additional permissions or... I don't know.
Is there any reference regarding how the thing is supposed to look like, how I can check that and how to get to where it should be? Is there a tool to re-set selinux to what it should be?
Does any of the Plesk-repair-tools reset selinux?
I found this documentation: https://linux.die.net/man/8/qmail_selinux
But with my very basic undertsnding of SELinux I'm not sure how to check these preconditions or how to adjust.
Also I see that I have almost 200 packets marked as"updates available", but it seems they do include qmail or SELinux, so I'll wait with that until stuff is sorted...?
Thanks for any help!
Southy