Bug 1212108 - SELinux is preventing esmtp from 'getattr' accesses on the file /.esmtp_queue/Yb3B7ty2/mail.
Summary: SELinux is preventing esmtp from 'getattr' accesses on the file /.esmtp_queue...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 21
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:42e54e5214362d2798de3ce3390...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-15 14:43 UTC by Daniel Fernando
Modified: 2015-04-16 18:13 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-04-16 18:13:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Daniel Fernando 2015-04-15 14:43:22 UTC
Description of problem:
SELinux is preventing esmtp from 'getattr' accesses on the file /.esmtp_queue/Yb3B7ty2/mail.

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

If você deseja reparar este rótulo.
/.esmtp_queue/Yb3B7ty2/mail rótulo padrão deve ser default_t.
Then você pode executar o restorecon.
Do
# /sbin/restorecon -v /.esmtp_queue/Yb3B7ty2/mail

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

If você acredita que o esmtp deva ser permitido acesso de getattr em mail file  por default.
Then você precisa reportar este como um erro.
Você pode gerar um módulo de política local para permitir este acesso.
Do
permitir este acesso agora executando:
# grep esmtp /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:system_mail_t:s0-s0:c0.c1023
Target Context                system_u:object_r:root_t:s0
Target Objects                /.esmtp_queue/Yb3B7ty2/mail [ file ]
Source                        esmtp
Source Path                   esmtp
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-105.11.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.19.3-200.fc21.x86_64 #1 SMP Thu
                              Mar 26 21:39:42 UTC 2015 x86_64 x86_64
Alert Count                   60
First Seen                    2015-04-05 12:00:07 BRT
Last Seen                     2015-04-14 21:02:46 BRT
Local ID                      5bf7db40-6225-496d-a242-4e7b2fe11202

Raw Audit Messages
type=AVC msg=audit(1429056166.730:1295): avc:  denied  { getattr } for  pid=29353 comm="esmtp" path="/.esmtp_queue/Yb3B7ty2/mail" dev="dm-1" ino=787839 scontext=system_u:system_r:system_mail_t:s0-s0:c0.c1023 tcontext=system_u:object_r:root_t:s0 tclass=file permissive=1


Hash: esmtp,system_mail_t,root_t,file,getattr

Version-Release number of selected component:
selinux-policy-3.13.1-105.11.fc21.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.19.3-200.fc21.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2015-04-16 18:13:39 UTC
Please follow, 
*****  Plugin restorecon (99.5 confidence) suggests   ************************

If você deseja reparar este rótulo.
/.esmtp_queue/Yb3B7ty2/mail rótulo padrão deve ser default_t.
Then você pode executar o restorecon.
Do
# /sbin/restorecon -v /.esmtp_queue/Yb3B7ty2/mail


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