Bug 678744 - SELinux is preventing /usr/libexec/postfix/local from 'write' accesses on the file till.lock.
Summary: SELinux is preventing /usr/libexec/postfix/local from 'write' accesses on the...
Keywords:
Status: CLOSED DUPLICATE of bug 677015
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:3180fd5b414...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-19 08:41 UTC by Till Maas
Modified: 2011-02-21 09:09 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-21 09:09:33 UTC
Type: ---


Attachments (Terms of Use)

Description Till Maas 2011-02-19 08:41:23 UTC
SELinux is preventing /usr/libexec/postfix/local from 'write' accesses on the file till.lock.

*****  Plugin catchall_boolean (89.3 confidence) suggests  *******************

If you want to allow postfix_local domain full write access to mail_spool directories
Then you must tell SELinux about this by enabling the 'allow_postfix_local_write_mail_spool' boolean.
Do
setsebool -P allow_postfix_local_write_mail_spool 1

*****  Plugin catchall (11.6 confidence) suggests  ***************************

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

Additional Information:
Source Context                system_u:system_r:postfix_local_t:s0
Target Context                system_u:object_r:mail_spool_t:s0
Target Objects                till.lock [ file ]
Source                        local
Source Path                   /usr/libexec/postfix/local
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           postfix-2.7.1-1.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-20.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.35.10-74.fc14.x86_64 #1 SMP Thu Dec 23
                              16:04:50 UTC 2010 x86_64 x86_64
Alert Count                   2
First Seen                    Fr 21 Jan 2011 08:33:06 CET
Last Seen                     Fr 28 Jan 2011 08:49:01 CET
Local ID                      63c4f628-4639-42c8-b3de-07fe116440b2

Raw Audit Messages
type=AVC msg=audit(1296200941.323:9): avc:  denied  { write } for  pid=2698 comm="local" name="till.lock" dev=dm-2 ino=1496 scontext=system_u:system_r:postfix_local_t:s0 tcontext=system_u:object_r:mail_spool_t:s0 tclass=file


type=SYSCALL msg=audit(1296200941.323:9): arch=x86_64 syscall=open success=yes exit=EFAULT a0=7fdede570e60 a1=c1 a2=0 a3=24 items=0 ppid=2641 pid=2698 auid=4294967295 uid=0 gid=0 euid=500 suid=0 fsuid=500 egid=12 sgid=0 fsgid=12 tty=(none) ses=4294967295 comm=local exe=/usr/libexec/postfix/local subj=system_u:system_r:postfix_local_t:s0 key=(null)

Hash: local,postfix_local_t,mail_spool_t,file,write

audit2allow

#============= postfix_local_t ==============
#!!!! This avc can be allowed using the boolean 'allow_postfix_local_write_mail_spool'

allow postfix_local_t mail_spool_t:file write;

audit2allow -R

#============= postfix_local_t ==============
#!!!! This avc can be allowed using the boolean 'allow_postfix_local_write_mail_spool'

allow postfix_local_t mail_spool_t:file write;

Comment 1 Miroslav Grepl 2011-02-21 09:09:33 UTC

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


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