Bug 1170087

Summary: SELinux is preventing /usr/bin/systemd-ask-password from 'getattr' accesses on the file /run/systemd/ask-password/tmp.tQ6m9B.
Product: [Fedora] Fedora Reporter: autarch princeps <autarch>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:83cfe4d5fb77967880ddc1b69d97db060d2924e731e8f4cf177166d4c21a20cc
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-03 12:20:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description autarch princeps 2014-12-03 08:45:05 UTC
Description of problem:
SELinux is preventing /usr/bin/systemd-ask-password from 'getattr' accesses on the file /run/systemd/ask-password/tmp.tQ6m9B.

*****  Plugin catchall (100. confidence) suggests   **************************

If sie denken, dass es systemd-ask-password standardmässig erlaubt sein sollte, getattr Zugriff auf tmp.tQ6m9B file zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# grep systemd-ask-pas /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:openvpn_t:s0
Target Context                system_u:object_r:systemd_passwd_var_run_t:s0
Target Objects                /run/systemd/ask-password/tmp.tQ6m9B [ file ]
Source                        systemd-ask-pas
Source Path                   /usr/bin/systemd-ask-password
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-216-12.fc21.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-92.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.17.4-301.fc21.x86_64 #1 SMP Thu
                              Nov 27 19:09:10 UTC 2014 x86_64 x86_64
Alert Count                   2
First Seen                    2014-12-03 09:06:33 CET
Last Seen                     2014-12-03 09:37:09 CET
Local ID                      8681369c-bc76-4ff9-bb02-804ab5da3ecd

Raw Audit Messages
type=AVC msg=audit(1417595829.552:478): avc:  denied  { getattr } for  pid=3631 comm="systemd-ask-pas" path="/run/systemd/ask-password/tmp.tQ6m9B" dev="tmpfs" ino=43869 scontext=system_u:system_r:openvpn_t:s0 tcontext=system_u:object_r:systemd_passwd_var_run_t:s0 tclass=file permissive=1


type=SYSCALL msg=audit(1417595829.552:478): arch=x86_64 syscall=fstat success=yes exit=0 a0=3 a1=7fff3ea5e320 a2=7fff3ea5e320 a3=7ff3dda40488 items=0 ppid=3630 pid=3631 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=systemd-ask-pas exe=/usr/bin/systemd-ask-password subj=system_u:system_r:openvpn_t:s0 key=(null)

Hash: systemd-ask-pas,openvpn_t,systemd_passwd_var_run_t,file,getattr

Version-Release number of selected component:
selinux-policy-3.13.1-92.fc21.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.17.4-301.fc21.x86_64
type:           libreport

Potential duplicate: bug 1151974

Comment 1 Lukas Vrabec 2014-12-03 12:20:11 UTC

*** This bug has been marked as a duplicate of bug 1170085 ***