Bug 1583170 - SELinux is preventing sendmail from 'open' accesses on the directory /root/.esmtp_queue.
Summary: SELinux is preventing sendmail from 'open' accesses on the directory /root/.e...
Keywords:
Status: CLOSED DUPLICATE of bug 1582701
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 27
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:8d7d8e7a3b4f12c55ca372e44e7...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-28 11:53 UTC by henoc
Modified: 2018-06-02 22:44 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-06-02 22:44:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description henoc 2018-05-28 11:53:22 UTC
Description of problem:
After upgrading from fedora 26 to fedora 27.
SELinux is preventing sendmail from 'open' accesses on the directory /root/.esmtp_queue.

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

If you believe that sendmail should be allowed open 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:
# ausearch -c 'sendmail' --raw | audit2allow -M my-sendmail
# semodule -X 300 -i my-sendmail.pp

Additional Information:
Source Context                system_u:system_r:fsdaemon_t:s0
Target Context                system_u:object_r:mail_home_rw_t:s0
Target Objects                /root/.esmtp_queue [ dir ]
Source                        sendmail
Source Path                   sendmail
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-283.34.fc27.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.16.11-200.fc27.x86_64 #1 SMP Tue
                              May 22 18:36:25 UTC 2018 x86_64 x86_64
Alert Count                   2
First Seen                    2018-05-28 07:40:27 AST
Last Seen                     2018-05-28 07:40:32 AST
Local ID                      39c18905-d5a0-441f-b95f-2a33d776b81d

Raw Audit Messages
type=AVC msg=audit(1527507632.550:238): avc:  denied  { open } for  pid=1999 comm="sendmail" path="/root/.esmtp_queue" dev="sda2" ino=1704996 scontext=system_u:system_r:fsdaemon_t:s0 tcontext=system_u:object_r:mail_home_rw_t:s0 tclass=dir permissive=1


Hash: sendmail,fsdaemon_t,mail_home_rw_t,dir,open

Version-Release number of selected component:
selinux-policy-3.13.1-283.34.fc27.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.3
hashmarkername: setroubleshoot
kernel:         4.16.11-200.fc27.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2018-06-02 22:44:13 UTC

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


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