Bug 659405 - SELinux is preventing /usr/libexec/dovecot/imap from 'search' accesses on the directory /home/nim/.local.
Summary: SELinux is preventing /usr/libexec/dovecot/imap from 'search' accesses on the...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:bbbe8560151...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-02 18:23 UTC by Nicolas Mailhot
Modified: 2010-12-03 09:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-12-03 09:39:54 UTC
Type: ---


Attachments (Terms of Use)

Description Nicolas Mailhot 2010-12-02 18:23:16 UTC
SELinux is preventing /usr/libexec/dovecot/imap from 'search' accesses on the directory /home/nim/.local.

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

If you believe that imap should be allowed search access on the .local directory 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 /usr/libexec/dovecot/imap /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:dovecot_t:s0
Target Context                unconfined_u:object_r:gconf_home_t:s0
Target Objects                /home/nim/.local [ dir ]
Source                        imap
Source Path                   /usr/libexec/dovecot/imap
Port                          <Inconnu>
Host                          (removed)
Source RPM Packages           dovecot-2.0.7-2.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.10-5.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.36.1-10.fc15.x86_64 #1 SMP Mon
                              Nov 29 14:41:22 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    jeu. 02 déc. 2010 19:22:38 CET
Last Seen                     jeu. 02 déc. 2010 19:22:38 CET
Local ID                      348e11d9-320f-4bab-b47f-ba0b44f84bbc

Raw Audit Messages
type=AVC msg=audit(1291314158.107:16255): avc:  denied  { search } for  pid=1395 comm="imap" name=".local" dev=dm-0 ino=70875 scontext=system_u:system_r:dovecot_t:s0 tcontext=unconfined_u:object_r:gconf_home_t:s0 tclass=dir

imap,dovecot_t,gconf_home_t,dir,search
type=SYSCALL msg=audit(1291314158.107:16255): arch=x86_64 syscall=stat success=yes exit=0 a0=14301a8 a1=7fff74a260c0 a2=7fff74a260c0 a3=1 items=0 ppid=10390 pid=1395 auid=4294967295 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=4294967295 comm=imap exe=/usr/libexec/dovecot/imap subj=system_u:system_r:dovecot_t:s0 key=(null)
imap,dovecot_t,gconf_home_t,dir,search

#============= dovecot_t ==============
allow dovecot_t gconf_home_t:dir search;

Comment 1 Daniel Walsh 2010-12-02 18:35:43 UTC
Are you storing mail under /home/nim/.local?

Comment 2 Nicolas Mailhot 2010-12-02 20:58:24 UTC
I moved my user mail store to .local/share/maildir/ since .local/share/ seems the correct root nowadays (thanks to xfg for trying to clean up the historical dotfile/dir mess)

Comment 3 Miroslav Grepl 2010-12-03 09:39:54 UTC
I have fixed "gnome_manage_data()" interface which will fix this issue.

Fixed in selinux-policy-3.9.10-6.fc15


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