Bug 858314

Summary: SELinux prevents /usr/sbin/nslcd (nslcd_t) from using the sys_nice capability
Product: Red Hat Enterprise Linux 7 Reporter: Milos Malik <mmalik>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: dspurek, dwalsh, mmalik
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.11.1-38.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 856580 Environment:
Last Closed: 2014-06-13 11:01:15 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:
Bug Depends On: 856580    
Bug Blocks:    

Description Milos Malik 2012-09-18 15:50:24 UTC
selinux-policy-targeted-3.11.1-19.el7.noarch
selinux-policy-doc-3.11.1-19.el7.noarch
selinux-policy-minimum-3.11.1-19.el7.noarch
selinux-policy-3.11.1-19.el7.noarch
selinux-policy-devel-3.11.1-19.el7.noarch
nss-pam-ldapd-0.7.17-1.el7.x86_64

Steps to reproduce:
 * get a RHEL-7 machine where targeted policy is active
 * run following automated test: /CoreOS/openldap/Sanity/integration-nss-pam-ldapd
 * search for AVCs

Actual results:
----
type=SYSCALL msg=audit(09/18/2012 17:37:53.702:1294) : arch=x86_64 syscall=sched_setscheduler success=yes exit=0 a0=0x3d4b a1=0x0 a2=0x7fff290e73c0 a3=0x7fff290e7120 items=0 ppid=1 pid=15691 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=nslcd exe=/usr/sbin/nslcd subj=system_u:system_r:nslcd_t:s0 key=(null) 
type=AVC msg=audit(09/18/2012 17:37:53.702:1294) : avc:  denied  { sys_nice } for  pid=15691 comm=nslcd capability=sys_nice  scontext=system_u:system_r:nslcd_t:s0 tcontext=system_u:system_r:nslcd_t:s0 tclass=capability 
----

Expected results:
 * no AVCs

Comment 1 Daniel Walsh 2012-10-12 20:31:44 UTC
Fixed in selinux-policy-3.11.1-38.el7

Comment 3 Ludek Smid 2014-06-13 11:01:15 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.