Bug 1160339

Summary: selinux denies execute,read and getattr for ntlm_auth
Product: Red Hat Enterprise Linux 7 Reporter: David Spurek <dspurek>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Dalibor Pospíšil <dapospis>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: dapospis, ebenes, lvrabec, mgrepl, mmalik, plautrba, pvrabec
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.13.1-8.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-05 10:46:38 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 David Spurek 2014-11-04 15:09:59 UTC
Description of problem:
time->Sun Nov  2 00:05:27 2014
type=SYSCALL msg=audit(1414901127.896:11910): arch=80000016 syscall=5 success=no exit=-13 a0=3fffc5f3e3a a1=0 a2=1b6 a3=0 items=0 ppid=6120 pid=6229 auid=4294967295 uid=95 gid=95 euid=95 suid=95 fsuid=95 egid=95 sgid=95 fsgid=95 tty=(none) ses=4294967295 comm="ntlm_auth" exe="/usr/bin/ntlm_auth" subj=system_u:system_r:winbind_helper_t:s0 key=(null)
type=AVC msg=audit(1414901127.896:11910): avc:  denied  { read } for  pid=6229 comm="ntlm_auth" name="urandom" dev="devtmpfs" ino=2640 scontext=system_u:system_r:winbind_helper_t:s0 tcontext=system_u:object_r:urandom_device_t:s0 tclass=chr_file
----
time->Sun Nov  2 00:05:27 2014
type=SYSCALL msg=audit(1414901127.896:11911): arch=80000016 syscall=106 success=no exit=-13 a0=3fffc5f3e3a a1=3ffff926740 a2=3ffff926740 a3=0 items=0 ppid=6120 pid=6229 auid=4294967295 uid=95 gid=95 euid=95 suid=95 fsuid=95 egid=95 sgid=95 fsgid=95 tty=(none) ses=4294967295 comm="ntlm_auth" exe="/usr/bin/ntlm_auth" subj=system_u:system_r:winbind_helper_t:s0 key=(null)
type=AVC msg=audit(1414901127.896:11911): avc:  denied  { getattr } for  pid=6229 comm="ntlm_auth" path="/dev/urandom" dev="devtmpfs" ino=2640 scontext=system_u:system_r:winbind_helper_t:s0 tcontext=system_u:object_r:urandom_device_t:s0 tclass=chr_file
----
time->Sun Nov  2 00:05:27 2014
type=SYSCALL msg=audit(1414901127.896:11912): arch=80000016 syscall=5 success=no exit=-13 a0=3fffc5f3ed0 a1=0 a2=1b6 a3=0 items=0 ppid=6120 pid=6229 auid=4294967295 uid=95 gid=95 euid=95 suid=95 fsuid=95 egid=95 sgid=95 fsgid=95 tty=(none) ses=4294967295 comm="ntlm_auth" exe="/usr/bin/ntlm_auth" subj=system_u:system_r:winbind_helper_t:s0 key=(null)
type=AVC msg=audit(1414901127.896:11912): avc:  denied  { read } for  pid=6229 comm="ntlm_auth" name="tmp" dev="dm-0" ino=100663489 scontext=system_u:system_r:winbind_helper_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=dir
----
time->Sun Nov  2 00:05:27 2014
type=SYSCALL msg=audit(1414901127.896:11913): arch=80000016 syscall=5 success=no exit=-13 a0=3fffc5f3ecc a1=0 a2=1b6 a3=0 items=0 ppid=6120 pid=6229 auid=4294967295 uid=95 gid=95 euid=95 suid=95 fsuid=95 egid=95 sgid=95 fsgid=95 tty=(none) ses=4294967295 comm="ntlm_auth" exe="/usr/bin/ntlm_auth" subj=system_u:system_r:winbind_helper_t:s0 key=(null)
type=AVC msg=audit(1414901127.896:11913): avc:  denied  { read } for  pid=6229 comm="ntlm_auth" name="tmp" dev="dm-0" ino=1139 scontext=system_u:system_r:winbind_helper_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=dir
----
time->Sun Nov  2 00:05:27 2014
type=SYSCALL msg=audit(1414901127.896:11914): arch=80000016 syscall=5 success=no exit=-13 a0=3fffc5f3ed6 a1=0 a2=1b6 a3=0 items=0 ppid=6120 pid=6229 auid=4294967295 uid=95 gid=95 euid=95 suid=95 fsuid=95 egid=95 sgid=95 fsgid=95 tty=(none) ses=4294967295 comm="ntlm_auth" exe="/usr/bin/ntlm_auth" subj=system_u:system_r:winbind_helper_t:s0 key=(null)
type=AVC msg=audit(1414901127.896:11914): avc:  denied  { read } for  pid=6229 comm="ntlm_auth" name="tmp" dev="dm-0" ino=1139 scontext=system_u:system_r:winbind_helper_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=dir
----
time->Sun Nov  2 00:05:27 2014
type=SYSCALL msg=audit(1414901127.896:11915): arch=80000016 syscall=11 success=no exit=-13 a0=3ffff92877f a1=3ffff928888 a2=2aae490e4b0 a3=0 items=0 ppid=6229 pid=6230 auid=4294967295 uid=95 gid=95 euid=95 suid=95 fsuid=95 egid=95 sgid=95 fsgid=95 tty=(none) ses=4294967295 comm="ntlm_auth" exe="/usr/bin/ntlm_auth" subj=system_u:system_r:winbind_helper_t:s0 key=(null)
type=AVC msg=audit(1414901127.896:11915): avc:  denied  { execute } for  pid=6230 comm="ntlm_auth" name="netstat" dev="dm-0" ino=35153103 scontext=system_u:system_r:winbind_helper_t:s0 tcontext=system_u:object_r:bin_t:s0 tclass=file
----
time->Sun Nov  2 00:05:27 2014
type=SYSCALL msg=audit(1414901127.896:11916): arch=80000016 syscall=11 success=no exit=-13 a0=3ffff92877b a1=3ffff928888 a2=2aae490e4b0 a3=0 items=0 ppid=6229 pid=6230 auid=4294967295 uid=95 gid=95 euid=95 suid=95 fsuid=95 egid=95 sgid=95 fsgid=95 tty=(none) ses=4294967295 comm="ntlm_auth" exe="/usr/bin/ntlm_auth" subj=system_u:system_r:winbind_helper_t:s0 key=(null)
type=AVC msg=audit(1414901127.896:11916): avc:  denied  { execute } for  pid=6230 comm="ntlm_auth" name="netstat" dev="dm-0" ino=35153103 scontext=system_u:system_r:winbind_helper_t:s0 tcontext=system_u:object_r:bin_t:s0 tclass=file
----
time->Sun Nov  2 00:05:27 2014
type=SYSCALL msg=audit(1414901127.896:11917): arch=80000016 syscall=5 success=no exit=-13 a0=3fffc5f3e3a a1=0 a2=1b6 a3=0 items=0 ppid=6120 pid=6229 auid=4294967295 uid=95 gid=95 euid=95 suid=95 fsuid=95 egid=95 sgid=95 fsgid=95 tty=(none) ses=4294967295 comm="ntlm_auth" exe="/usr/bin/ntlm_auth" subj=system_u:system_r:winbind_helper_t:s0 key=(null)
type=AVC msg=audit(1414901127.896:11917): avc:  denied  { read } for  pid=6229 comm="ntlm_auth" name="urandom" dev="devtmpfs" ino=2640 scontext=system_u:system_r:winbind_helper_t:s0 tcontext=system_u:object_r:urandom_device_t:s0 tclass=chr_file

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

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Miroslav Grepl 2014-11-05 09:47:24 UTC
commit 494bd8fc1eabc7ef69f1271cdd6a37bcb1c17aa5
Author: Miroslav Grepl <mgrepl>
Date:   Wed Nov 5 10:46:42 2014 +0100

    Allow winbind-helper to execute ntlm_auth in the caller domain

Comment 12 errata-xmlrpc 2015-03-05 10:46:38 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://rhn.redhat.com/errata/RHBA-2015-0458.html