Bug 1250091 - SELinux is preventing mktemp from 'write' accesses on the directory /.esmtp_queue.
Summary: SELinux is preventing mktemp from 'write' accesses on the directory /.esmtp_q...
Keywords:
Status: CLOSED DUPLICATE of bug 1149164
Alias: None
Product: Fedora
Classification: Fedora
Component: esmtp
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Steven M. Parrish
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:3f52bbbcb402f587dcb0a910d37...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-04 13:43 UTC by Chris Zwilling
Modified: 2015-09-17 19:33 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-09-17 19:33:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Chris Zwilling 2015-08-04 13:43:58 UTC
Description of problem:
SELinux is preventing mktemp from 'write' accesses on the directory /.esmtp_queue.

*****  Plugin restorecon (99.5 confidence) suggests   ************************

If you want to fix the label. 
/.esmtp_queue default label should be default_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /.esmtp_queue

*****  Plugin catchall (1.49 confidence) suggests   **************************

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

Additional Information:
Source Context                system_u:system_r:system_mail_t:s0
Target Context                system_u:object_r:root_t:s0
Target Objects                /.esmtp_queue [ dir ]
Source                        mktemp
Source Path                   mktemp
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-128.8.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.1.3-200.fc22.x86_64 #1 SMP Wed
                              Jul 22 19:51:58 UTC 2015 x86_64 x86_64
Alert Count                   1
First Seen                    2015-08-04 08:26:31 CDT
Last Seen                     2015-08-04 08:26:31 CDT
Local ID                      c878fa6d-49c6-475b-9bdd-4c8814e77cf5

Raw Audit Messages
type=AVC msg=audit(1438694791.57:697): avc:  denied  { write } for  pid=3140 comm="mktemp" name=".esmtp_queue" dev="dm-0" ino=3538945 scontext=system_u:system_r:system_mail_t:s0 tcontext=system_u:object_r:root_t:s0 tclass=dir permissive=0


Hash: mktemp,system_mail_t,root_t,dir,write

Version-Release number of selected component:
selinux-policy-3.13.1-128.8.fc22.noarch

Additional info:
reporter:       libreport-2.6.2
hashmarkername: setroubleshoot
kernel:         4.1.3-200.fc22.x86_64
type:           libreport

Comment 1 Dan Mossor [danofsatx] 2015-09-17 19:33:28 UTC

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


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