Bug 1369376

Summary: SELinux prevents sendmail from searching in /proc/sys/net directory
Product: Red Hat Enterprise Linux 7 Reporter: Patrik Kis <pkis>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: bnater, jjelen, lvrabec, mgrepl, mike.ely, mmalik, neil.mukerji, pkis, plautrba, pvrabec, rzilka, ssekidde, todoleza
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.13.1-145.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 15:12:40 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:

Description Patrik Kis 2016-08-23 09:07:52 UTC
Description of problem:
The following AVC denials were seen while running one of our test:

----
time->Mon Aug 22 15:45:33 2016
type=SYSCALL msg=audit(1471873533.454:155): arch=c000003e syscall=2 success=no exit=-13 a0=7fd7f5b4f8b8 a1=80000 a2=1b6 a3=24 items=0 ppid=1 pid=16582 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=51 sgid=51 fsgid=51 tty=(none) ses=4294967295 comm="sendmail" exe="/usr/sbin/sendmail.sendmail" subj=system_u:system_r:sendmail_t:s0 key=(null)
type=AVC msg=audit(1471873533.454:155): avc:  denied  { search } for  pid=16582 comm="sendmail" name="net" dev="proc" ino=6833 scontext=system_u:system_r:sendmail_t:s0 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=dir
----
time->Mon Aug 22 15:45:33 2016
type=SYSCALL msg=audit(1471873533.547:157): arch=c000003e syscall=2 success=no exit=-13 a0=7f02bdaf98b8 a1=80000 a2=1b6 a3=24 items=0 ppid=1 pid=16610 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=51 sgid=51 fsgid=51 tty=(none) ses=4294967295 comm="sendmail" exe="/usr/sbin/sendmail.sendmail" subj=system_u:system_r:sendmail_t:s0 key=(null)
type=AVC msg=audit(1471873533.547:157): avc:  denied  { search } for  pid=16610 comm="sendmail" name="net" dev="proc" ino=6833 scontext=system_u:system_r:sendmail_t:s0 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=dir
----

I'm not sure if it should be enabled or not, so better reporting it.

Version-Release number of selected component (if applicable):
selinux-policy-3.13.1-93.el7

How reproducible:
I'm not not sure

Comment 2 Lukas Vrabec 2016-08-23 11:23:12 UTC
Does it break anything?

Comment 3 Patrik Kis 2016-08-23 12:38:44 UTC
(In reply to Lukas Vrabec from comment #2)
> Does it break anything?

Nothing was observed.

Comment 14 errata-xmlrpc 2017-08-01 15:12:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:1861