Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1472432

Summary: selinux preventing exim from searching directory net
Product: Red Hat Enterprise Linux 7 Reporter: gyuyjxz5kv
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Milos Malik <mmalik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: dazo, lvrabec, mgrepl, mmalik, plautrba, pvrabec, riehecky, ssekidde
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-24 12:44:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description gyuyjxz5kv 2017-07-18 17:25:57 UTC
Description of problem:
A lot of entries in /var/log/messages saying
SELinux is preventing /usr/bin/exim from search access on the directory net

sealert gives me 

Raw Audit Messages
type=AVC msg=audit(1500377938.962:1304): avc:  denied  { search } for  pid=14113 comm="exim" name="net" dev="proc" ino=7154 scontext=system_u:system_r:exim_t:s0-s0:c0.c1023 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=dir


type=SYSCALL msg=audit(1500377938.962:1304): arch=x86_64 syscall=open success=no exit=EACCES a0=7f12c17314b0 a1=80000 a2=1b6 a3=24 items=0 ppid=14109 pid=14113 auid=0 uid=0 gid=93 euid=0 suid=0 fsuid=0 egid=93 sgid=93 fsgid=93 tty=(none) ses=111 comm=exim exe=/usr/sbin/exim subj=system_u:system_r:exim_t:s0-s0:c0.c1023 key=(null)

I'm pretty sure that the directory exim wants to search is /proc/sys/net.

This happens at times unrelated to any messages sent or received as far as I can see.  It looks likely that the centos7 reports https://bugs.centos.org/view.php?id=13247 and
https://bugs.centos.org/view.php?id=12913 are the same thing, but with different alternative mtas, so the issue is probably not specific to exim, but applies to mtas more generally.

Version-Release number of selected component (if applicable):
selinux-policy.noarch 3.13.1-102.el7_3.16, exim 4.89-1.el7.x86_64 from the exim repository

How reproducible:
It keeps happening

Steps to Reproduce:
1. I don't know how to force it, but it seems to happen roughly hourly, so perhaps it is the byproduct of an hourly cron job.
2.
3.

Actual results:
AVC messages that selinux denies exim permission to search directory net

Expected results:
No AVC messages

Additional info:

Comment 2 Milos Malik 2017-07-19 09:05:21 UTC
I believe this bug is duplicate of BZ#1444441.

Comment 3 David Sommerseth 2017-07-19 20:09:40 UTC
I'm not authorized to view bz#1444441 .... can we get an excerpt or be authorized to view it?  Hard to say if this bz is related or not.

Comment 4 Lukas Vrabec 2017-07-24 12:44:28 UTC

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

Comment 5 Pat Riehecky 2017-07-24 13:24:35 UTC
Any chance watchlist users of this bug can be added to bug 1444441 ?