Bug 915487

Summary: SELinux is preventing /usr/bin/gpg-agent from 'read' accesses on the file fips_enabled.
Product: [Fedora] Fedora Reporter: Garrett Holmstrom <gholms>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dominick.grift, dwalsh, jamielinux, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:e73999b20a388139f94b213ef23516fb753e7f0e6959eb10878944785d6a9ceb
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-03 22:43:03 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 Garrett Holmstrom 2013-02-25 21:19:01 UTC
Description of problem:
This popped up immediately after logging into an xfce4 session.
SELinux is preventing /usr/bin/gpg-agent from 'read' accesses on the file fips_enabled.

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

If you believe that gpg-agent should be allowed read access on the fips_enabled file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep gpg-agent /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                staff_u:staff_r:gpg_agent_t:s0-s0:c0.c1023
Target Context                system_u:object_r:proc_t:s0
Target Objects                fips_enabled [ file ]
Source                        gpg-agent
Source Path                   /usr/bin/gpg-agent
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gnupg2-2.0.19-7.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-79.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.7.9-201.fc18.x86_64 #1 SMP Mon
                              Feb 18 21:07:56 UTC 2013 x86_64 x86_64
Alert Count                   3
First Seen                    2013-02-19 12:12:05 PST
Last Seen                     2013-02-25 12:22:02 PST
Local ID                      73bf0449-14a3-4afa-896a-1659bd2faa54

Raw Audit Messages
type=AVC msg=audit(1361823722.867:326): avc:  denied  { read } for  pid=1446 comm="gpg-agent" name="fips_enabled" dev="proc" ino=7651 scontext=staff_u:staff_r:gpg_agent_t:s0-s0:c0.c1023 tcontext=system_u:object_r:proc_t:s0 tclass=file


type=SYSCALL msg=audit(1361823722.867:326): arch=x86_64 syscall=open success=no exit=EACCES a0=3850053d30 a1=0 a2=1b6 a3=238 items=0 ppid=1444 pid=1446 auid=1000 uid=1000 gid=100 euid=1000 suid=1000 fsuid=1000 egid=100 sgid=100 fsgid=100 ses=1 tty=(none) comm=gpg-agent exe=/usr/bin/gpg-agent subj=staff_u:staff_r:gpg_agent_t:s0-s0:c0.c1023 key=(null)

Hash: gpg-agent,gpg_agent_t,proc_t,file,read

audit2allow

#============= gpg_agent_t ==============
allow gpg_agent_t proc_t:file read;

audit2allow -R

#============= gpg_agent_t ==============
allow gpg_agent_t proc_t:file read;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.7.9-201.fc18.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-02-26 21:39:13 UTC
We have this in Rawhide.

Comment 2 Miroslav Grepl 2013-02-28 12:39:49 UTC
commit 30841a5314b6524f83b2f65c7a51e941fc81c2b6
Author: Miroslav Grepl <mgrepl>
Date:   Thu Feb 28 13:38:44 2013 +0100

    Allow gpg-agent to access fips_enabled file

Comment 3 Fedora Update System 2013-03-01 13:06:00 UTC
selinux-policy-3.11.1-82.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-82.fc18

Comment 4 Fedora Update System 2013-03-02 20:15:54 UTC
Package selinux-policy-3.11.1-82.fc18:
* should fix your issue,
* was pushed to the Fedora 18 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.11.1-82.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-3309/selinux-policy-3.11.1-82.fc18
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-03-03 22:43:04 UTC
selinux-policy-3.11.1-82.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.