Bug 797211 - SELinux is preventing /usr/libexec/postfix/smtpd from 'write' accesses on the dossier /var/spool/postfix/incoming.
Summary: SELinux is preventing /usr/libexec/postfix/smtpd from 'write' accesses on the...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:eaf26b5dc4b43878fe3372c9ce1...
: 797210 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-24 15:06 UTC by Nicolas Mailhot
Modified: 2012-02-24 18:49 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-24 18:48:47 UTC
Type: ---


Attachments (Terms of Use)

Description Nicolas Mailhot 2012-02-24 15:06:57 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.3.0-0.rc4.git3.1.fc18.x86_64
reason:         SELinux is preventing /usr/libexec/postfix/smtpd from 'write' accesses on the dossier /var/spool/postfix/incoming.
time:           ven. 24 févr. 2012 15:58:07 CET

description:
:SELinux is preventing /usr/libexec/postfix/smtpd from 'write' accesses on the dossier /var/spool/postfix/incoming.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that smtpd should be allowed write access on the incoming 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 smtpd /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:postfix_smtpd_t:s0
:Target Context                system_u:object_r:postfix_spool_t:s0
:Target Objects                /var/spool/postfix/incoming [ dir ]
:Source                        smtpd
:Source Path                   /usr/libexec/postfix/smtpd
:Port                          <Inconnu>
:Host                          (removed)
:Source RPM Packages           postfix-2.9.1-1.fc18.x86_64
:Target RPM Packages           postfix-2.9.1-1.fc18.x86_64
:Policy RPM                    selinux-policy-3.10.0-93.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.0-0.rc4.git3.1.fc18.x86_64 #1
:                              SMP Thu Feb 23 01:12:10 UTC 2012 x86_64 x86_64
:Alert Count                   7
:First Seen                    ven. 24 févr. 2012 15:56:37 CET
:Last Seen                     ven. 24 févr. 2012 15:57:37 CET
:Local ID                      53caa949-7563-4f7a-9e2a-e7b0d5b3dc74
:
:Raw Audit Messages
:type=AVC msg=audit(1330095457.877:84): avc:  denied  { write } for  pid=2311 comm="smtpd" name="incoming" dev="dm-1" ino=92348 scontext=system_u:system_r:postfix_smtpd_t:s0 tcontext=system_u:object_r:postfix_spool_t:s0 tclass=dir
:
:
:type=AVC msg=audit(1330095457.877:84): avc:  denied  { add_name } for  pid=2311 comm="smtpd" name="878493.2311" scontext=system_u:system_r:postfix_smtpd_t:s0 tcontext=system_u:object_r:postfix_spool_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1330095457.877:84): arch=x86_64 syscall=open success=yes exit=EXDEV a0=7f916cf1e1a0 a1=c2 a2=0 a3=7f916ced5512 items=0 ppid=1011 pid=2311 auid=4294967295 uid=89 gid=89 euid=89 suid=89 fsuid=89 egid=89 sgid=89 fsgid=89 tty=(none) ses=4294967295 comm=smtpd exe=/usr/libexec/postfix/smtpd subj=system_u:system_r:postfix_smtpd_t:s0 key=(null)
:
:Hash: smtpd,postfix_smtpd_t,postfix_spool_t,dir,write
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Daniel Walsh 2012-02-24 18:48:47 UTC
Fixed in selinux-policy-3.10.0-94.fc17

Comment 2 Daniel Walsh 2012-02-24 18:49:04 UTC
*** Bug 797210 has been marked as a duplicate of this bug. ***


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