Bug 682263 - SELinux is preventing /usr/lib/cyrus-imapd/cyrus-master from 'setattr' accesses on the sock_file lmtp.
Summary: SELinux is preventing /usr/lib/cyrus-imapd/cyrus-master from 'setattr' access...
Keywords:
Status: CLOSED DUPLICATE of bug 682260
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:46547fb9b76...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-04 15:59 UTC by Grosswiler Roger
Modified: 2011-03-07 09:25 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-07 09:25:51 UTC
Type: ---


Attachments (Terms of Use)

Description Grosswiler Roger 2011-03-04 15:59:38 UTC
SELinux is preventing /usr/lib/cyrus-imapd/cyrus-master from 'setattr' accesses on the sock_file lmtp.

*****  Plugin catchall_labels (83.8 confidence) suggests  ********************

If you want to allow cyrus-master to have setattr access on the lmtp sock_file
Then you need to change the label on lmtp
Do
# semanage fcontext -a -t FILE_TYPE 'lmtp'
where FILE_TYPE is one of the following: cyrus_var_lib_t, cyrus_var_run_t. 
Then execute: 
restorecon -v 'lmtp'


*****  Plugin catchall (17.1 confidence) suggests  ***************************

If you believe that cyrus-master should be allowed setattr access on the lmtp sock_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 cyrus-master /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:system_r:cyrus_t:s0
Target Context                unconfined_u:object_r:var_lib_t:s0
Target Objects                lmtp [ sock_file ]
Source                        cyrus-master
Source Path                   /usr/lib/cyrus-imapd/cyrus-master
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           cyrus-imapd-2.3.16-7.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-31.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.11-83.fc14.i686.PAE #1 SMP
                              Mon Feb 7 06:57:55 UTC 2011 i686 i686
Alert Count                   1
First Seen                    Fr 04 Mär 2011 16:56:13 CET
Last Seen                     Fr 04 Mär 2011 16:56:13 CET
Local ID                      489ce16d-3299-4ed0-b15a-77802875fa28

Raw Audit Messages
type=AVC msg=audit(1299254173.434:30972): avc:  denied  { setattr } for  pid=3906 comm="cyrus-master" name="lmtp" dev=dm-0 ino=2763582 scontext=unconfined_u:system_r:cyrus_t:s0 tcontext=unconfined_u:object_r:var_lib_t:s0 tclass=sock_file


type=SYSCALL msg=audit(1299254173.434:30972): arch=i386 syscall=chmod success=yes exit=0 a0=1e4ff88 a1=1ff a2=bb03b4 a3=12 items=0 ppid=1 pid=3906 auid=502 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm=cyrus-master exe=/usr/lib/cyrus-imapd/cyrus-master subj=unconfined_u:system_r:cyrus_t:s0 key=(null)

Hash: cyrus-master,cyrus_t,var_lib_t,sock_file,setattr

audit2allow

#============= cyrus_t ==============
allow cyrus_t var_lib_t:sock_file setattr;

audit2allow -R

#============= cyrus_t ==============
allow cyrus_t var_lib_t:sock_file setattr;

Comment 1 Miroslav Grepl 2011-03-07 09:25:51 UTC

*** This bug has been marked as a duplicate of bug 682260 ***


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