Bug 903883

Summary: gpg-agent wants read/open access to /proc/sys/crypto/fips_enabled
Product: [Fedora] Fedora Reporter: Garrett Holmstrom <gholms>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-08 02:23:54 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 Garrett Holmstrom 2013-01-25 00:49:06 UTC
Description of problem:
gpg-agent seems to want to read /proc/sys/crypto/fips_enabled when it starts, but gpg_agent_t doesn't appear to have anything along the lines of kernel_read_system_state that would allow it to do that sort of thing.

If it matters, the user I'm logging in as has a staff_u login.


type=AVC msg=audit(1359073913.455:599): avc:  denied  { read } for  pid=5080 comm="gpg-agent" name="fips_enabled" dev="proc" ino=1742 scontext=staff_u:staff_r:gpg_agent_t:s0-s0:c0.c1023 tcontext=system_u:object_r:proc_t:s0 tclass=file

type=AVC msg=audit(1359073913.455:599): avc:  denied  { open } for  pid=5080 comm="gpg-agent" path="/proc/sys/crypto/fips_enabled" dev="proc" ino=1742 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(1359073913.455:599): arch=x86_64 syscall=open success=yes exit=EIO a0=7f57e2023d30 a1=0 a2=1b6 a3=238 items=0 ppid=5078 pid=5080 auid=1000 uid=1000 gid=100 euid=1000 suid=1000 fsuid=1000 egid=100 sgid=100 fsgid=100 ses=8 tty=(none) comm=gpg-agent exe=/usr/bin/gpg-agent subj=staff_u:staff_r:gpg_agent_t:s0-s0:c0.c1023 key=(null)


Version-Release number of selected component (if applicable):
gnupg2-2.0.19-7.fc18.x86_64
selinux-policy-3.11.1-71.fc18.noarch

Comment 1 Garrett Holmstrom 2013-01-25 00:51:10 UTC
Oops, I missed one.  It also wants getattr:

type=AVC msg=audit(1359073913.455:600): avc:  denied  { getattr } for  pid=5080 comm="gpg-agent" path="/proc/sys/crypto/fips_enabled" dev="proc" ino=1742 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(1359073913.455:600): arch=x86_64 syscall=fstat success=yes exit=0 a0=5 a1=7fff853611e0 a2=7fff853611e0 a3=0 items=0 ppid=5078 pid=5080 auid=1000 uid=1000 gid=100 euid=1000 suid=1000 fsuid=1000 egid=100 sgid=100 fsgid=100 ses=8 tty=(none) comm=gpg-agent exe=/usr/bin/gpg-agent subj=staff_u:staff_r:gpg_agent_t:s0-s0:c0.c1023 key=(null)

Comment 2 Miroslav Grepl 2013-01-25 09:56:50 UTC
Added.

commit 335c4ea1629afb521475589541583ac6d8880057
Author: Miroslav Grepl <mgrepl>
Date:   Fri Jan 25 10:55:38 2013 +0100

    Allow gpg-agent to read /proc/sys/crypto/fips_enabled

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

Comment 4 Fedora Update System 2013-02-01 16:39:14 UTC
Package selinux-policy-3.11.1-74.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-74.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-1693/selinux-policy-3.11.1-74.fc18
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-02-08 02:23:55 UTC
selinux-policy-3.11.1-74.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.