Bug 234920

Summary: nscd now needs setcap permission
Product: [Fedora] Fedora Reporter: Ulrich Drepper <drepper>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dwalsh, jakub
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Current Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-08-22 14:17:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 235023, 235024    

Description Ulrich Drepper 2007-04-02 20:33:32 UTC
Description of problem:
After we finally managed to fix up nscd to use the libcap codeadded a year ago
nscd now needs more permissions:

audit(1175545373.669:111): avc:  denied  { setcap } for  pid=30769 comm="nscd"
scontext=system_u:system_r:nscd_t:s0 tcontext=system_u:system_r:nscd_t:s0

libcap was added for SELinux  purposes.  The patch was initially written by
James Antill.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.get glibc-2.5.90-20 or later
2.(re)start nscd
Actual results:
above audit message

Expected results:
no such message

Additional info:
Simply adding

allow nscd_t self:process setcap;

should do.  This also much go into RHEL5.1 and perhaps even RHEL4.6 (but here I
defer to Jakub to say whether he has t hat code in RHEL4's glibc).

Comment 1 Daniel Walsh 2007-04-02 21:11:24 UTC
Fixed in selinux-policy-2.5.11-2

Comment 2 Jakub Jelinek 2007-04-03 05:12:21 UTC
It is needed for RHEL5.1 and RHEL4.6 too (the latter is where it actually has
been found - when QA was testing the backport).

Comment 3 Ulrich Drepper 2007-05-05 20:23:25 UTC
Dan, do we need a separate bug to get these changes into RHEL4+5?

Comment 4 Daniel Walsh 2007-05-07 14:28:18 UTC
Should already be in there for u5.  I believe.selinux-policy-targeted-1.17.30-2.145

Comment 5 Daniel Walsh 2007-08-22 14:17:13 UTC
Should be fixed in the current release