Bug 712967 - SELinux is preventing /usr/bin/gnome-keyring-daemon from using the 'setcap' accesses on a process.
Summary: SELinux is preventing /usr/bin/gnome-keyring-daemon from using the 'setcap' a...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:f28ced08f46...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-13 18:32 UTC by Kyle Martin
Modified: 2012-02-10 08:48 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-10 08:48:14 UTC
Type: ---


Attachments (Terms of Use)

Description Kyle Martin 2011-06-13 18:32:12 UTC
SELinux is preventing /usr/bin/gnome-keyring-daemon from using the 'setcap' accesses on a process.

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

If you believe that gnome-keyring-daemon should be allowed setcap access on processes labeled xguest_gkeyringd_t 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 gnome-keyring-d /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                xguest_u:xguest_r:xguest_gkeyringd_t:s0
Target Context                xguest_u:xguest_r:xguest_gkeyringd_t:s0
Target Objects                Unknown [ process ]
Source                        gnome-keyring-d
Source Path                   /usr/bin/gnome-keyring-daemon
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gnome-keyring-3.0.3-1.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-26.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.7-30.fc15.i686.PAE #1 SMP
                              Fri May 27 05:44:56 UTC 2011 i686 i686
Alert Count                   5
First Seen                    Mon 13 Jun 2011 01:16:02 PM CDT
Last Seen                     Mon 13 Jun 2011 01:16:04 PM CDT
Local ID                      f276d6bb-e2ac-4abc-aaeb-9a1578311253

Raw Audit Messages
type=AVC msg=audit(1307988964.630:192): avc:  denied  { setcap } for  pid=18259 comm="gnome-keyring-d" scontext=xguest_u:xguest_r:xguest_gkeyringd_t:s0 tcontext=xguest_u:xguest_r:xguest_gkeyringd_t:s0 tclass=process


type=SYSCALL msg=audit(1307988964.630:192): arch=i386 syscall=capset success=no exit=EACCES a0=b7892724 a1=b789272c a2=476ffff4 a3=ffffffff items=0 ppid=18089 pid=18259 auid=501 uid=501 gid=501 euid=501 suid=501 fsuid=501 egid=501 sgid=501 fsgid=501 tty=(none) ses=12 comm=gnome-keyring-d exe=/usr/bin/gnome-keyring-daemon subj=xguest_u:xguest_r:xguest_gkeyringd_t:s0 key=(null)

Hash: gnome-keyring-d,xguest_gkeyringd_t,xguest_gkeyringd_t,process,setcap

audit2allow

#============= xguest_gkeyringd_t ==============
allow xguest_gkeyringd_t self:process setcap;

audit2allow -R

#============= xguest_gkeyringd_t ==============
allow xguest_gkeyringd_t self:process setcap;

Comment 1 Daniel Walsh 2011-06-13 18:56:11 UTC
Fixed in selinux-policy-3.9.16-29.fc15


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