Bug 1295923 - SELinux is preventing sendmail from 'read' accesses on the directory .esmtp_queue.
Summary: SELinux is preventing sendmail from 'read' accesses on the directory .esmtp_q...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 22
Hardware: x86_64
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:3b7f04addbf615a9fb1cfac8b0a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-05 19:35 UTC by morgan read
Modified: 2016-07-19 20:51 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-07-19 20:51:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description morgan read 2016-01-05 19:35:53 UTC
Description of problem:
using the computer...
SELinux is preventing sendmail from 'read' accesses on the directory .esmtp_queue.

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

If you believe that sendmail should be allowed read 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 sendmail /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:logwatch_t:s0-s0:c0.c1023
Target Context                system_u:object_r:mail_home_rw_t:s0
Target Objects                .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-128.21.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.2.8-200.fc22.x86_64 #1 SMP Tue
                              Dec 15 16:50:23 UTC 2015 x86_64 x86_64
Alert Count                   5
First Seen                    2015-12-31 03:41:02 GMT
Last Seen                     2016-01-05 11:34:03 GMT
Local ID                      3ebb6d9c-bd4a-4600-9669-b79e391ba1bc

Raw Audit Messages
type=AVC msg=audit(1451993643.291:984): avc:  denied  { read } for  pid=22102 comm="sendmail" name=".esmtp_queue" dev="dm-3" ino=681826 scontext=system_u:system_r:logwatch_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mail_home_rw_t:s0 tclass=dir permissive=0


Hash: sendmail,logwatch_t,mail_home_rw_t,dir,read

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

Additional info:
reporter:       libreport-2.6.3
hashmarkername: setroubleshoot
kernel:         4.2.8-200.fc22.x86_64
type:           libreport

Comment 1 morgan read 2016-01-10 14:58:31 UTC
Description of problem:
user logged in, running guncash

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

Additional info:
reporter:       libreport-2.6.3
hashmarkername: setroubleshoot
kernel:         4.2.8-200.fc22.x86_64
type:           libreport

Comment 2 Lukas Vrabec 2016-01-12 15:20:28 UTC
Hi, 
If you type:
#chcon -t sendmail_exec_t /usr/lib/sendmail.sendmail
problem still persists? 

Thank you.

Comment 3 morgan read 2016-01-13 15:09:24 UTC
Description of problem:
This bug is popping up often - something going on in the background with mail

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

Additional info:
reporter:       libreport-2.6.3
hashmarkername: setroubleshoot
kernel:         4.2.8-200.fc22.x86_64
type:           libreport

Comment 4 morgan read 2016-01-20 14:10:46 UTC
Description of problem:
ditto

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

Additional info:
reporter:       libreport-2.6.3
hashmarkername: setroubleshoot
kernel:         4.2.8-200.fc22.x86_64
type:           libreport

Comment 5 morgan read 2016-03-14 11:57:44 UTC
# chcon -t sendmail_exec_t /usr/lib/sendmail.sendmail
chcon: cannot access ‘/usr/lib/sendmail.sendmail’: No such file or directory

Hmm, I guess the problem still exists if the only reason it wouldn't exist is that command...  Which fails.

I'll wait and see if perhaps it doesn't exist for some other reason

Comment 6 Fedora End Of Life 2016-07-19 20:51:18 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 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.