Bug 1170083 - SELinux is preventing /usr/bin/systemd-tty-ask-password-agent from 'getattr' accesses on the file /proc/<pid>/stat.
Summary: SELinux is preventing /usr/bin/systemd-tty-ask-password-agent from 'getattr' ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 21
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:90cb9fd30f8ac9cd0922df9674d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-03 08:43 UTC by autarch princeps
Modified: 2015-01-30 23:54 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.13.1-105.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-30 23:54:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description autarch princeps 2014-12-03 08:43:40 UTC
Description of problem:
SELinux is preventing /usr/bin/systemd-tty-ask-password-agent from 'getattr' accesses on the file /proc/<pid>/stat.

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

If sie denken, dass es systemd-tty-ask-password-agent standardmässig erlaubt sein sollte, getattr Zugriff auf stat 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-tty-ask /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:systemd_passwd_agent_t:s0
Target Context                system_u:system_r:openvpn_t:s0
Target Objects                /proc/<pid>/stat [ file ]
Source                        systemd-tty-ask
Source Path                   /usr/bin/systemd-tty-ask-password-agent
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                      dc2f297b-7e9b-4fd9-af3b-d875c17dfaa4

Raw Audit Messages
type=AVC msg=audit(1417595829.575:482): avc:  denied  { getattr } for  pid=3637 comm="systemd-tty-ask" path="/proc/3631/stat" dev="proc" ino=43872 scontext=system_u:system_r:systemd_passwd_agent_t:s0 tcontext=system_u:system_r:openvpn_t:s0 tclass=file permissive=1


type=SYSCALL msg=audit(1417595829.575:482): arch=x86_64 syscall=fstat success=yes exit=0 a0=7 a1=7fffe2dceed0 a2=7fffe2dceed0 a3=7fa576b43800 items=0 ppid=1 pid=3637 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=systemd-tty-ask exe=/usr/bin/systemd-tty-ask-password-agent subj=system_u:system_r:systemd_passwd_agent_t:s0 key=(null)

Hash: systemd-tty-ask,systemd_passwd_agent_t,openvpn_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

Comment 1 Daniel Walsh 2015-01-02 15:20:06 UTC
077eb9dde73221bc2e4ea8200f19ba08c09ba226 allows this in git.

Comment 2 Fedora Update System 2015-01-27 16:49:09 UTC
selinux-policy-3.13.1-105.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/selinux-policy-3.13.1-105.fc21

Comment 3 Fedora Update System 2015-01-30 04:32:06 UTC
Package selinux-policy-3.13.1-105.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.13.1-105.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-1337/selinux-policy-3.13.1-105.fc21
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-01-30 23:54:34 UTC
selinux-policy-3.13.1-105.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.