Bug 248162

Summary: Dovecot will not start with selinux-policy-targeted 2.6.4-26.fc7
Product: [Fedora] Fedora Reporter: Daniel Rowe <bart>
Component: selinux-policy-targetedAssignee: Daniel Walsh <dwalsh>
Status: CLOSED NOTABUG QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: low    
Version: 7   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-07-15 03:44:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daniel Rowe 2007-07-13 15:27:37 UTC
Description of problem:

Latest selinux policy stopping Dovecot from working. Dovecot will not load.

type=AVC msg=audit(1184340111.079:62): avc:  denied  { signull } for  pid=6808
comm="dovecot" scontext=user_u:system_r:dovecot_t:s0
tcontext=system_u:system_r:setroubleshootd_t:s0 tclass=process
type=SYSCALL msg=audit(1184340111.079:62): arch=c000003e syscall=62 success=no
exit=-13 a0=adb a1=0 a2=0 a3=0 items=0 ppid=6807 pid=6808 auid=500 uid=0 gid=0
euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) comm="dovecot"
exe="/usr/sbin/dovecot" subj=user_u:system_r:dovecot_t:s0 key=(null)

Version-Release number of selected component (if applicable):

selinux-policy.noarch                    2.6.4-26.fc7       
selinux-policy-targeted.noarch           2.6.4-26.fc7 

How reproducible:

Every time.

Steps to Reproduce:

1. service dovecot start

Actual results:

Dovecot fails to start with selinux deny in logs. 

Expected results:

Dovecot should be able to start.

Comment 1 Daniel Walsh 2007-07-13 15:47:30 UTC
Could you attach the audit.log.  This avc message you attached does not make any
sense.

Comment 2 Daniel Rowe 2007-07-15 03:44:06 UTC
I have tracked it down what this is. The new policy must have caused a relable
of the /var/run/dovecot/master.pid file or the /var/run/dovecot/master.pid file
became mislabled on the last lot of updates for some reason so Dovecot could not
remove it on shut down and restart. Dovecot didn't complain about the master.pid
file until I turned selinux to permissive. At which point it informed of the
stale pid file.

I turned enforcing mode back on and I manually deleted the
/var/run/dovecot/master.pid and now Dovecot runs fine.