Ohai,
while looking at katello-nightly-rpm-pipeline 1033 failed - #4 by evgeni I noticed that there are a few SELinux denials in the logs:
type=AVC msg=audit(1626392980.545:2750): avc: denied { create } for pid=31039 comm="gunicorn" scontext=system_u:system_r:pulpcore_server_t:s0 tcontext=system_u:system_r:pulpcore_server_t:s0 tclass=unix_dgram_socket permissive=1
type=AVC msg=audit(1626392980.545:2751): avc: denied { connect } for pid=31039 comm="gunicorn" scontext=system_u:system_r:pulpcore_server_t:s0 tcontext=system_u:system_r:pulpcore_server_t:s0 tclass=unix_dgram_socket permissive=1
type=AVC msg=audit(1626392980.545:2751): avc: denied { sendto } for pid=31039 comm="gunicorn" path="/run/systemd/notify" scontext=system_u:system_r:pulpcore_server_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=unix_dgram_socket permissive=1
and
type=AVC msg=audit(1626394111.747:3480): avc: denied { write } for pid=8039 comm="pulpcore-worker" name="exports" dev="vda1" ino=6029750 scontext=system_u:system_r:pulpcore_t:s0 tcontext=system_u:object_r:var_lib_t:s0 tclass=dir permissive=1
type=AVC msg=audit(1626394111.747:3480): avc: denied { add_name } for pid=8039 comm="pulpcore-worker" name="Test_Organization" scontext=system_u:system_r:pulpcore_t:s0 tcontext=system_u:object_r:var_lib_t:s0 tclass=dir permissive=1
type=AVC msg=audit(1626394111.747:3480): avc: denied { create } for pid=8039 comm="pulpcore-worker" name="Test_Organization" scontext=system_u:system_r:pulpcore_t:s0 tcontext=system_u:object_r:var_lib_t:s0 tclass=dir permissive=1
type=AVC msg=audit(1626394111.748:3481): avc: denied { create } for pid=8039 comm="pulpcore-worker" name="export-76a2de76-edaa-45dc-8fba-ccc2da4771e2-20210716_0008.tar.gz" scontext=system_u:system_r:pulpcore_t:s0 tcontext=system_u:object_r:var_lib_t:s0 tclass=file permissive=1
type=AVC msg=audit(1626394111.748:3481): avc: denied { write open } for pid=8039 comm="pulpcore-worker" path="/var/lib/pulp/exports/Test_Organization/Test_CV/1.0/2021-07-16T00-08-31-00-00/export-76a2de76-edaa-45dc-8fba-ccc2da4771e2-20210716_0008.tar.gz" dev="vda1" ino=6411379 scontext=system_u:system_r:pulpcore_t:s0 tcontext=system_u:object_r:var_lib_t:s0 tclass=file permissive=1
type=AVC msg=audit(1626394111.748:3482): avc: denied { getattr } for pid=8039 comm="pulpcore-worker" path="/var/lib/pulp/exports/Test_Organization/Test_CV/1.0/2021-07-16T00-08-31-00-00/export-76a2de76-edaa-45dc-8fba-ccc2da4771e2-20210716_0008.tar.gz" dev="vda1" ino=6411379 scontext=system_u:system_r:pulpcore_t:s0 tcontext=system_u:object_r:var_lib_t:s0 tclass=file permissive=1
type=AVC msg=audit(1626394111.748:3483): avc: denied { ioctl } for pid=8039 comm="pulpcore-worker" path="/var/lib/pulp/exports/Test_Organization/Test_CV/1.0/2021-07-16T00-08-31-00-00/export-76a2de76-edaa-45dc-8fba-ccc2da4771e2-20210716_0008.tar.gz" dev="vda1" ino=6411379 ioctlcmd=5401 scontext=system_u:system_r:pulpcore_t:s0 tcontext=system_u:object_r:var_lib_t:s0 tclass=file permissive=1
type=AVC msg=audit(1626394111.785:3484): avc: denied { read } for pid=8039 comm="pulpcore-worker" name="export-76a2de76-edaa-45dc-8fba-ccc2da4771e2-20210716_0008.tar.gz" dev="vda1" ino=6411379 scontext=system_u:system_r:pulpcore_t:s0 tcontext=system_u:object_r:var_lib_t:s0 tclass=file permissive=1
The gunicorn ones are older, the pulpcore-worker ones are new since we added export tests to forklift.
I think the later ones would be fixed if we label /var/lib/pulp/exports
properly (in katello-selinux
, as that’s not a Pulp-default path, I think?) Or shall we start labeling /var/lib/pulp/(.*)
in pulpcore-selinux
now that we don’t need/have pulp-selinux
anymore?