Bug 670047

Summary: SELinux is preventing /usr/libexec/accounts-daemon from 'getattr' accesses on the filesystem /.
Product: [Fedora] Fedora Reporter: Iván Jiménez <icj>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:3ce8686b23c577c157bd4d04767db2a7aba9a9ec3d3e9c6aff0c3abec4f85a93
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-17 12:03:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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