Bug 1386928

Summary: SELinux is preventing smtp from 'read' accesses on the lnk_file log.
Product: [Fedora] Fedora Reporter: Juan Orti <jorti>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, pmoore
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:b76a3ce66212abd4be1f5dc9a529bb141074b8a32fa2d57b82b9d92e27d318ef;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-29 12:42:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Juan Orti 2016-10-19 21:18:50 UTC
Description of problem:
SELinux is preventing smtp from 'read' accesses on the lnk_file log.

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

If cree que de manera predeterminada, smtp debería permitir acceso read sobre log lnk_file.     
Then debería reportar esto como un error.
Puede generar un módulo de política local para permitir este acceso.
Do
allow this access for now by executing:
# ausearch -c 'smtp' --raw | audit2allow -M my-smtp
# semodule -X 300 -i my-smtp.pp

Additional Information:
Source Context                system_u:system_r:postfix_smtp_t:s0
Target Context                system_u:object_r:tmpfs_t:s0
Target Objects                log [ lnk_file ]
Source                        smtp
Source Path                   smtp
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-219.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.1-1.fc25.x86_64 #1 SMP Fri Oct
                              7 14:38:22 UTC 2016 x86_64 x86_64
Alert Count                   672
First Seen                    2016-10-13 19:54:23 CEST
Last Seen                     2016-10-19 22:46:09 CEST
Local ID                      e6adef55-a258-4a0d-92e6-e4d77021e89d

Raw Audit Messages
type=AVC msg=audit(1476909969.226:530): avc:  denied  { read } for  pid=17557 comm="smtp" name="log" dev="tmpfs" ino=24547 scontext=system_u:system_r:postfix_smtp_t:s0 tcontext=system_u:object_r:tmpfs_t:s0 tclass=lnk_file permissive=0


Hash: smtp,postfix_smtp_t,tmpfs_t,lnk_file,read

Version-Release number of selected component:
selinux-policy-3.13.1-219.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.1-1.fc25.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2016-11-29 12:42:06 UTC

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