Bug 713557

Summary: SELinux is preventing /usr/libexec/dovecot/auth from 'getattr' accesses on the système de fichiers /.
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:9d0238404f16be759d6b23dd652c2996ae6a98709eb35271f292c10e81ae18e5
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-16 10:05:55 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 Nicolas Mailhot 2011-06-15 19:12:54 UTC
SELinux is preventing /usr/libexec/dovecot/auth from 'getattr' accesses on the système de fichiers /.

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

If you believe that auth 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 auth /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:dovecot_auth_t:s0
Target Context                system_u:object_r:fs_t:s0
Target Objects                / [ filesystem ]
Source                        auth
Source Path                   /usr/libexec/dovecot/auth
Port                          <Inconnu>
Host                          (removed)
Source RPM Packages           dovecot-2.0.13-1.fc16
Target RPM Packages           filesystem-2.4.42-1.fc16
Policy RPM                    selinux-policy-3.9.16-28.fc16
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.0-0.rc3.git0.3.fc16.x86_64 #1
                              SMP Tue Jun 14 17:13:27 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    mer. 15 juin 2011 21:07:42 CEST
Last Seen                     mer. 15 juin 2011 21:07:42 CEST
Local ID                      9b12c8ca-f18b-4cf8-9ac3-62dbfd13378c

Raw Audit Messages
type=AVC msg=audit(1308164862.491:93): avc:  denied  { getattr } for  pid=2624 comm="auth" name="/" dev=dm-1 ino=2 scontext=system_u:system_r:dovecot_auth_t:s0 tcontext=system_u:object_r:fs_t:s0 tclass=filesystem


type=SYSCALL msg=audit(1308164862.491:93): arch=x86_64 syscall=statfs success=no exit=EACCES a0=36a8616665 a1=7fffda969610 a2=d a3=314f80e0ca items=0 ppid=2602 pid=2624 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=auth exe=/usr/libexec/dovecot/auth subj=system_u:system_r:dovecot_auth_t:s0 key=(null)

Hash: auth,dovecot_auth_t,fs_t,filesystem,getattr

audit2allow

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

audit2allow -R

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

On a rawhide system freshly updated with all the latest stuff and rebooted
after relabeling