Bug 1031253

Summary: SELinux is preventing /usr/bin/mate-keyring-daemon from using the 'ipc_lock' capabilities.
Product: [Fedora] Fedora Reporter: William Brown <william>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:6f61f542654fa6bd0e71b050def46b75c5537c280146b400dfdcaf0093663e2b
Fixed In Version: selinux-policy-3.12.1-74.14.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-03 10:33:24 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 William Brown 2013-11-16 07:38:30 UTC
Description of problem:
Login to MATE, and when the keyring starts this denial is listed.

Note, my system is running with the staff_u user type, rather than unconfined_u
SELinux is preventing /usr/bin/mate-keyring-daemon from using the 'ipc_lock' capabilities.

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

If you believe that mate-keyring-daemon should have the ipc_lock capability 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 mate-keyring-da /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                staff_u:staff_r:staff_t:s0-s0:c0.c1023
Target Context                staff_u:staff_r:staff_t:s0-s0:c0.c1023
Target Objects                 [ capability ]
Source                        mate-keyring-da
Source Path                   /usr/bin/mate-keyring-daemon
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           mate-keyring-1.6.0-2.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-74.11.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.11.7-200.fc19.x86_64 #1 SMP Mon
                              Nov 4 14:09:03 UTC 2013 x86_64 x86_64
Alert Count                   3
First Seen                    2013-11-16 17:59:12 CST
Last Seen                     2013-11-16 18:06:19 CST
Local ID                      20393103-bb9b-4a68-95a6-aff49d49bbe2

Raw Audit Messages
type=AVC msg=audit(1384587379.434:584): avc:  denied  { ipc_lock } for  pid=3078 comm="mate-keyring-da" capability=14  scontext=staff_u:staff_r:staff_t:s0-s0:c0.c1023 tcontext=staff_u:staff_r:staff_t:s0-s0:c0.c1023 tclass=capability


type=SYSCALL msg=audit(1384587379.434:584): arch=x86_64 syscall=mlock success=yes exit=0 a0=7f3678c2c000 a1=4000 a2=3 a3=7fffd01cade0 items=0 ppid=1 pid=3078 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=4 tty=(none) comm=mate-keyring-da exe=/usr/bin/mate-keyring-daemon subj=staff_u:staff_r:staff_t:s0-s0:c0.c1023 key=(null)

Hash: mate-keyring-da,staff_t,staff_t,capability,ipc_lock

Additional info:
reporter:       libreport-2.1.9
hashmarkername: setroubleshoot
kernel:         3.11.7-200.fc19.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-11-18 16:45:15 UTC
075e0f3446270b78f1b3057c10fb3efe14d25b27 fixes this in git.

Comment 2 Lukas Vrabec 2013-11-26 09:48:43 UTC
Back ported to f19 and f20.

Comment 3 Fedora Update System 2013-11-26 14:23:04 UTC
selinux-policy-3.12.1-74.14.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-74.14.fc19

Comment 4 Fedora Update System 2013-11-27 04:30:19 UTC
Package selinux-policy-3.12.1-74.14.fc19:
* should fix your issue,
* was pushed to the Fedora 19 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.12.1-74.14.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-22197/selinux-policy-3.12.1-74.14.fc19
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-12-03 10:33:24 UTC
selinux-policy-3.12.1-74.14.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.