Bug 1593038

Summary: SELinux is preventing touch from write, open access on the archivo /root/.esmtp_queue/sEPOIlib/mail.
Product: [Fedora] Fedora Reporter: Subliminal_Sabotage <daysofstatics>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: dwalsh, lvrabec, mgrepl, plautrba, pmoore
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:308d767e5d4d9170f561ed110c69c2bda77ffe2a9bcfb993f65efa5f8c2903ef;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-03 11:20:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Subliminal_Sabotage 2018-06-19 23:52:01 UTC
Description of problem:
SELinux is preventing touch from write, open access on the archivo /root/.esmtp_queue/sEPOIlib/mail.

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

Si cree que de manera predeterminada se debería permitir a touch el acceso write open sobre  mail file.     
Then debería reportar esto como un error.
Puede generar un módulo de política local para permitir este acceso.
Do
permita el acceso temporalmente ejecutando:
# ausearch -c 'touch' --raw | audit2allow -M mi-touch
# semodule -X 300 -i mi-touch.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                /root/.esmtp_queue/sEPOIlib/mail [ file ]
Source                        touch
Source Path                   touch
Port                          <Desconocido>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.1-32.fc28.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.16.15-300.fc28.x86_64 #1 SMP Tue
                              Jun 12 00:42:35 UTC 2018 x86_64 x86_64
Alert Count                   3
First Seen                    2018-06-19 19:50:16 -04
Last Seen                     2018-06-19 19:50:16 -04
Local ID                      0a137b56-9f10-4465-b0c4-779310c8b056

Raw Audit Messages
type=AVC msg=audit(1529452216.994:929): avc:  denied  { write open } for  pid=8493 comm="sendmail" path="/root/.esmtp_queue/sEPOIlib/mail" dev="dm-0" ino=794597 scontext=system_u:system_r:logwatch_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mail_home_rw_t:s0 tclass=file permissive=0


Hash: touch,logwatch_t,mail_home_rw_t,file,write,open

Version-Release number of selected component:
selinux-policy-3.14.1-32.fc28.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.16.15-300.fc28.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2018-07-03 11:20:01 UTC

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