Bug 1522672

Summary: httpd_passwd_t benign(?) AVC on /proc/1
Product: [Fedora] Fedora Reporter: Joe Orton <jorton>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: dwalsh, lvrabec, mgrepl, plautrba, pmoore
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: selinux-policy-3.13.1-283.21.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-10 02:07:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Joe Orton 2017-12-06 08:56:47 UTC
Description of problem:
When httpd is configured to read an SSL private key password at startup, I get an AVC when starting the service.  The password is read correctly and the service starts correctly so this appears benign.

httpd gets a password by running:

exec /bin/systemd-ask-password "Enter SSL pass phrase for $1 ($2) : "

... could be we are spawning this child wrong httpd side so let me know if so.

Version-Release number of selected component (if applicable):
selinux-policy-3.13.1-283.17.fc27.noarch

How reproducible:
always

Steps to Reproduce:
1. systemctl stop httpd
2. openssl req -x509 -outform PEM -subj /CN=localhost -passout pass:foobar -out /etc/pki/tls/certs/localhost.crt -keyout /etc/pki/tls/private/localhost.key
2. systemctl start httpd

Actual results:
type=AVC msg=audit(1512550071.842:310): avc:  denied  { search } for  pid=5531 comm="systemd-ask-pas" name="1" dev="proc" ino=12904 scontext=system_u:system_r:httpd_passwd_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=dir permissive=0

Expected results:
no AVC

Additional info:

Comment 1 Fedora Update System 2018-01-05 14:46:39 UTC
selinux-policy-3.13.1-283.21.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-0d8506aba4

Comment 2 Fedora Update System 2018-01-05 14:49:23 UTC
selinux-policy-3.13.1-283.21.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-0d8506aba4

Comment 3 Fedora Update System 2018-01-06 21:08:55 UTC
selinux-policy-3.13.1-283.21.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-0d8506aba4

Comment 4 Fedora Update System 2018-01-10 02:07:07 UTC
selinux-policy-3.13.1-283.21.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.