Bug 737909

Summary: SELinux is preventing /usr/libexec/postfix/bounce from 'lock' accesses on the file /var/spool/postfix/defer/8/81D4FE0DF0.
Product: [Fedora] Fedora Reporter: Mark Knoop <mark>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:ead561805c97e1867d8e99d7f090d1edb56dee97cdb4e1c064cf45f385ac1df5
Fixed In Version: selinux-policy-3.9.16-48.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-04 02:35:31 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 Mark Knoop 2011-09-13 11:31:41 UTC
SELinux is preventing /usr/libexec/postfix/bounce from 'lock' accesses on the file /var/spool/postfix/defer/8/81D4FE0DF0.

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

If you believe that bounce should be allowed lock access on the 81D4FE0DF0 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 bounce /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:postfix_bounce_t:s0
Target Context                system_u:object_r:postfix_spool_maildrop_t:s0
Target Objects                /var/spool/postfix/defer/8/81D4FE0DF0 [ file ]
Source                        bounce
Source Path                   /usr/libexec/postfix/bounce
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           postfix-2.8.4-1.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-38.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.40.4-5.fc15.x86_64 #1 SMP
                              Tue Aug 30 14:38:32 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Tue 13 Sep 2011 12:29:54 BST
Last Seen                     Tue 13 Sep 2011 12:29:54 BST
Local ID                      180f38c9-834a-4bd5-886a-ca8fe6ae056e

Raw Audit Messages
type=AVC msg=audit(1315913394.189:1046): avc:  denied  { lock } for  pid=2438 comm="bounce" path="/var/spool/postfix/defer/8/81D4FE0DF0" dev=dm-1 ino=921074 scontext=system_u:system_r:postfix_bounce_t:s0 tcontext=system_u:object_r:postfix_spool_maildrop_t:s0 tclass=file


type=SYSCALL msg=audit(1315913394.189:1046): arch=x86_64 syscall=flock success=yes exit=0 a0=d a1=6 a2=6 a3=fffffffffffffff0 items=0 ppid=1492 pid=2438 auid=4294967295 uid=89 gid=89 euid=89 suid=89 fsuid=89 egid=89 sgid=89 fsgid=89 tty=(none) ses=4294967295 comm=bounce exe=/usr/libexec/postfix/bounce subj=system_u:system_r:postfix_bounce_t:s0 key=(null)

Hash: bounce,postfix_bounce_t,postfix_spool_maildrop_t,file,lock

audit2allow

#============= postfix_bounce_t ==============
allow postfix_bounce_t postfix_spool_maildrop_t:file lock;

audit2allow -R

#============= postfix_bounce_t ==============
allow postfix_bounce_t postfix_spool_maildrop_t:file lock;

Comment 1 Miroslav Grepl 2011-09-15 14:13:01 UTC
Are you getting only this AVC?

What does

grep postfix_bounce_t /var/log/audit/audit.log

Comment 2 Fedora Update System 2011-11-16 16:17:18 UTC
selinux-policy-3.9.16-48.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-48.fc15

Comment 3 Fedora Update System 2011-11-17 23:35:41 UTC
Package selinux-policy-3.9.16-48.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.9.16-48.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-16023/selinux-policy-3.9.16-48.fc15
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-12-04 02:35:31 UTC
selinux-policy-3.9.16-48.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.