Bug 702447 - SELinux is preventing /usr/libexec/telepathy-gabble from 'getattr' accesses on the file /home/newman/.cache/telepathy/gabble/caps-cache.db.
Summary: SELinux is preventing /usr/libexec/telepathy-gabble from 'getattr' accesses o...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:6870d221687...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-05 17:09 UTC by Michal Nowak
Modified: 2013-03-08 02:12 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-06 05:04:00 UTC
Type: ---


Attachments (Terms of Use)

Description Michal Nowak 2011-05-05 17:09:59 UTC
SELinux is preventing /usr/libexec/telepathy-gabble from 'getattr' accesses on the file /home/newman/.cache/telepathy/gabble/caps-cache.db.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label. 
/home/newman/.cache/telepathy/gabble/caps-cache.db default label should be telepathy_gabble_cache_home_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /home/newman/.cache/telepathy/gabble/caps-cache.db

*****  Plugin catchall (1.49 confidence) suggests  ***************************

If you believe that telepathy-gabble should be allowed getattr access on the caps-cache.db 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 telepathy-gabbl /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:telepathy_gabble_t:s0-s0
                              :c0.c1023
Target Context                unconfined_u:object_r:cache_home_t:s0
Target Objects                /home/newman/.cache/telepathy/gabble/caps-cache.db
                              [ file ]
Source                        telepathy-gabbl
Source Path                   /usr/libexec/telepathy-gabble
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           telepathy-gabble-0.12.0-1.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-18.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.4-20.fc15.i686 #1 SMP Thu Apr
                              28 23:45:59 UTC 2011 i686 i686
Alert Count                   1
First Seen                    Thu 05 May 2011 07:08:36 PM CEST
Last Seen                     Thu 05 May 2011 07:08:36 PM CEST
Local ID                      c46913ec-0d20-41d8-9049-0fa25c1b7f11

Raw Audit Messages
type=AVC msg=audit(1304615316.839:81): avc:  denied  { getattr } for  pid=2421 comm="telepathy-gabbl" path="/home/newman/.cache/telepathy/gabble/caps-cache.db" dev=dm-6 ino=1576607 scontext=unconfined_u:unconfined_r:telepathy_gabble_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:cache_home_t:s0 tclass=file


type=SYSCALL msg=audit(1304615316.839:81): arch=i386 syscall=stat64 success=no exit=EACCES a0=8ae44e8 a1=bff37b00 a2=106dff4 a3=1 items=0 ppid=2420 pid=2421 auid=501 uid=501 gid=501 euid=501 suid=501 fsuid=501 egid=501 sgid=501 fsgid=501 tty=(none) ses=1 comm=telepathy-gabbl exe=/usr/libexec/telepathy-gabble subj=unconfined_u:unconfined_r:telepathy_gabble_t:s0-s0:c0.c1023 key=(null)

Hash: telepathy-gabbl,telepathy_gabble_t,cache_home_t,file,getattr

audit2allow

#============= telepathy_gabble_t ==============
allow telepathy_gabble_t cache_home_t:file getattr;

audit2allow -R

#============= telepathy_gabble_t ==============
allow telepathy_gabble_t cache_home_t:file getattr;

Comment 1 Miroslav Grepl 2011-05-06 05:04:00 UTC
Fixed in the latest selinux-policy ( -21 release)


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