Bug 1369376 - SELinux prevents sendmail from searching in /proc/sys/net directory
Summary: SELinux prevents sendmail from searching in /proc/sys/net directory
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-23 09:07 UTC by Patrik Kis
Modified: 2017-08-01 15:12 UTC (History)
13 users (show)

Fixed In Version: selinux-policy-3.13.1-145.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 15:12:40 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:1861 0 normal SHIPPED_LIVE selinux-policy bug fix update 2017-08-01 17:50:24 UTC

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


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