Bug 1024394 - SELinux is preventing /usr/libexec/postfix/local from 'add_name' accesses on the directory Maildir.
Summary: SELinux is preventing /usr/libexec/postfix/local from 'add_name' accesses on ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:16c81833935c3ee1d6cb05f89b8...
: 1024431 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-29 15:01 UTC by Jeff MacDonald
Modified: 2014-02-05 22:30 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-05 22:30:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jeff MacDonald 2013-10-29 15:01:56 UTC
Description of problem:
SELinux is preventing /usr/libexec/postfix/local from 'add_name' accesses on the directory Maildir.

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

If you believe that local should be allowed add_name access on the Maildir 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 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:admin_home_t:s0
Target Objects                Maildir [ dir ]
Source                        local
Source Path                   /usr/libexec/postfix/local
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           postfix-2.9.7-1.fc18.i686
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-106.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.11.4-101.fc18.i686 #1 SMP Thu
                              Oct 10 14:33:33 UTC 2013 i686 i686
Alert Count                   1
First Seen                    2013-10-29 11:01:04 EDT
Last Seen                     2013-10-29 11:01:04 EDT
Local ID                      52fa1679-c9e9-4711-8b2c-a73f643ac3e0

Raw Audit Messages
type=AVC msg=audit(1383058864.803:49703): avc:  denied  { add_name } for  pid=30884 comm="local" name="Maildir" scontext=system_u:system_r:postfix_local_t:s0 tcontext=system_u:object_r:admin_home_t:s0 tclass=dir


type=SYSCALL msg=audit(1383058864.803:49703): arch=i386 syscall=mkdir success=no exit=EACCES a0=b81a3508 a1=1c0 a2=b7775a80 a3=b81a3515 items=0 ppid=1466 pid=30884 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=local exe=/usr/libexec/postfix/local subj=system_u:system_r:postfix_local_t:s0 key=(null)

Hash: local,postfix_local_t,admin_home_t,dir,add_name

audit2allow

#============= postfix_local_t ==============
allow postfix_local_t admin_home_t:dir add_name;

audit2allow -R
require {
	type postfix_local_t;
}

#============= postfix_local_t ==============
auth_filetrans_admin_home_content(postfix_local_t)


Additional info:
reporter:       libreport-2.1.7
hashmarkername: setroubleshoot
kernel:         3.11.4-101.fc18.i686
type:           libreport

Comment 1 Daniel Walsh 2013-10-29 16:49:23 UTC
restorecon -R -v /root

Comment 2 Daniel Walsh 2013-10-29 16:50:18 UTC
*** Bug 1024431 has been marked as a duplicate of this bug. ***

Comment 3 Jeff MacDonald 2013-10-29 19:45:43 UTC
Description of problem:
I have been getting a bunch of these alerts today. I suspect it has something to do with receiving mail since that is all this instance of postfix does.


Additional info:
reporter:       libreport-2.1.7
hashmarkername: setroubleshoot
kernel:         3.11.4-101.fc18.i686
type:           libreport

Comment 4 Jeff MacDonald 2013-10-30 12:51:21 UTC
Description of problem:
Same issue as other bug reports: most likely this alert is triggered by receiving mail. I am using spamassassin if that matters.

Additional info:
reporter:       libreport-2.1.7
hashmarkername: setroubleshoot
kernel:         3.11.4-101.fc18.i686
type:           libreport

Comment 5 Daniel Walsh 2013-11-04 16:40:55 UTC
Did you run the restorecon command?

Comment 6 Fedora End Of Life 2013-12-21 14:43:20 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 7 Fedora End Of Life 2014-02-05 22:30:59 UTC
Fedora 18 changed to end-of-life (EOL) status on 2014-01-14. Fedora 18 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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