Hello there,
Apparently, a container tries to run some "sudo" command at some point. While it's not an issue per se (well... it is, but that's another story), it raises AVC since the container tries to connect to DBus.
In a SELinux enabled system with proper separation/labelling, this is forbidden:
type=AVC msg=audit(1552310721.905:654): avc: denied { connectto } for pid=35795 comm="sudo" path="/run/dbus/system_bus_socket" scontext=system_u:system_r:container_t:s0:c478,c555 tcontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tclass=unix_stream_socket permissive=1
For now I have no idea what container tries to do that, so if anyone has some knowledge about that, it would be great to share so that we can work it out :).
Thanks!
Cheers,
C.
/var/log/ audit/audit. log:type= USER_ACCT msg=audit( 1553621646. 085:3730) : pid=71808 uid=42436 auid=4294967295 ses=4294967295 subj=system_ u:system_ r:container_ t:s0:c493, c684 msg='op= PAM:accounting grantors=pam_unix acct="nova" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success' UID="unknown( 42436)" AUID="unset" audit/audit. log:type= USER_CMD msg=audit( 1553621646. 085:3731) : pid=71808 uid=42436 auid=4294967295 ses=4294967295 subj=system_ u:system_ r:container_ t:s0:c493, c684 msg='cwd="/" cmd="kolla_ set_configs" terminal=? res=success' UID="unknown( 42436)" AUID="unset" audit/audit. log:type= CRED_REFR msg=audit( 1553621646. 085:3732) : pid=71808 uid=0 auid=4294967295 ses=4294967295 subj=system_ u:system_ r:container_ t:s0:c493, c684 msg='op=PAM:setcred grantors= pam_env, pam_unix acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success' UID="root" AUID="unset" audit/audit. log:type= AVC msg=audit( 1553621646. 085:3733) : avc: denied { connectto } for pid=71808 comm="sudo" path="/ run/dbus/ system_ bus_socket" scontext= system_ u:system_ r:container_ t:s0:c493, c684 tcontext= system_ u:system_ r:system_ dbusd_t: s0-s0:c0. c1023 tclass= unix_stream_ socket permissive=0 audit/audit. log:type= SYSCALL msg=audit( 1553621646. 085:3733) : arch=c000003e syscall=42 success=no exit=-13 a0=4 a1=56057de3b810 a2=1d a3=7ffcbd665f90 items=0 ppid=71791 pid=71808 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="sudo" exe="/usr/bin/sudo" subj=system_ u:system_ r:container_ t:s0:c493, c684 key=(null) ARCH=x86_ 64 SYSCALL=connect AUID="unset" UID="root" GID="root" EUID="root" SUID="root" FSUID="root" EGID="root" SGID="root" FSGID="root" audit/audit. log:type= USER_START msg=audit( 1553621646. 085:3734) : pid=71808 uid=0 auid=4294967295 ses=4294967295 subj=system_ u:system_ r:container_ t:s0:c493, c684 msg='op= PAM:session_ open grantors= pam_limits, pam_unix acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success' UID="root" AUID="unset" audit/audit. log:type= USER_END msg=audit( 1553621646. 180:3735) : pid=71808 uid=0 auid=4294967295 ses=4294967295 subj=system_ u:system_ r:container_ t:s0:c493, c684 msg='op= PAM:session_ close grantors= pam_limits, pam_unix acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success' UID="root" AUID="unset" audit/audit. log:type= CRED_DISP msg=audit( 1553621646. 180:3736) : pid=71808 uid=0 auid=4294967295 ses=4294967295 subj=system_ u:system_ r:container_ t:s0:c493, c684 msg='op=PAM:setcred grantors= pam_env, pam_unix acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success' UID="root" AUID="unset" /usr/local/ bin/kolla_ set_configs sudo:session) : Failed to connect to system bus: Permission denied sudo:session) : session opened for user root by (uid=0) sudo:session) : session closed for user root
/var/log/
/var/log/
/var/log/
/var/log/
/var/log/
/var/log/
/var/log/
/var/log/secure:Mar 26 17:34:06 undercloud-0 sudo[71808]: nova : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=
/var/log/secure:Mar 26 17:34:06 undercloud-0 sudo[71808]: pam_systemd(
/var/log/secure:Mar 26 17:34:06 undercloud-0 sudo[71808]: pam_unix(
/var/log/secure:Mar 26 17:34:06 undercloud-0 sudo[71808]: pam_unix(
So it seems this is the nova user:...