Bug 670047 - SELinux is preventing /usr/libexec/accounts-daemon from 'getattr' accesses on the filesystem /.
Summary: SELinux is preventing /usr/libexec/accounts-daemon from 'getattr' accesses on...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:3ce8686b23c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-16 22:28 UTC by Iván Jiménez
Modified: 2011-01-17 12:03 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-17 12:03:41 UTC
Type: ---


Attachments (Terms of Use)

Description Iván Jiménez 2011-01-16 22:28:19 UTC
SELinux is preventing /usr/libexec/accounts-daemon from 'getattr' accesses on the filesystem /.

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

If you believe that accounts-daemon should be allowed getattr access on the  filesystem 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 accounts-daemon /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:accountsd_t:s0
Target Context                system_u:object_r:fs_t:s0
Target Objects                / [ filesystem ]
Source                        accounts-daemon
Source Path                   /usr/libexec/accounts-daemon
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           accountsservice-0.6.1-1.fc14
Target RPM Packages           filesystem-2.4.36-1.fc15
Policy RPM                    selinux-policy-3.9.12-6.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.37-2.fc15.x86_64
                              #1 SMP Fri Jan 7 14:57:36 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Mon 17 Jan 2011 03:25:41 AM EST
Last Seen                     Mon 17 Jan 2011 03:25:41 AM EST
Local ID                      756a3a2e-4b1f-47ec-98f1-9c58f2727616

Raw Audit Messages
type=AVC msg=audit(1295252741.796:67): avc:  denied  { getattr } for  pid=1306 comm="accounts-daemon" name="/" dev=dm-0 ino=2 scontext=system_u:system_r:accountsd_t:s0 tcontext=system_u:object_r:fs_t:s0 tclass=filesystem


type=SYSCALL msg=audit(1295252741.796:67): arch=x86_64 syscall=fstatfs success=no exit=EACCES a0=d a1=7fff55b37d70 a2=0 a3=7fff55b37a30 items=0 ppid=1 pid=1306 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=accounts-daemon exe=/usr/libexec/accounts-daemon subj=system_u:system_r:accountsd_t:s0 key=(null)

Hash: accounts-daemon,accountsd_t,fs_t,filesystem,getattr

audit2allow

#============= accountsd_t ==============
allow accountsd_t fs_t:filesystem getattr;

audit2allow -R

#============= accountsd_t ==============
allow accountsd_t fs_t:filesystem getattr;

Comment 1 Miroslav Grepl 2011-01-17 12:03:41 UTC
Fixed in selinux-policy-3.9.12-8.fc15


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