This service will be undergoing maintenance at 00:00 UTC, 2016-08-01. It is expected to last about 1 hours
Bug 235023 - nscd now needs setcap permission
nscd now needs setcap permission
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: selinux-policy (Show other bugs)
5.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
:
Depends On: 234920
Blocks:
  Show dependency treegraph
 
Reported: 2007-04-03 09:06 EDT by Daniel Walsh
Modified: 2014-12-08 16:11 EST (History)
4 users (show)

See Also:
Fixed In Version: RHBA-2007-0544
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-11-07 11:38:52 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Daniel Walsh 2007-04-03 09:06:17 EDT
+++ This bug was initially created as a clone of Bug #234920 +++

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
tclass=process

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


Version-Release number of selected component (if applicable):
selinux-policy-2.5.10-2.fc7.noarch


How reproducible:
always


Steps to Reproduce:
1.get glibc-2.5.90-20 or later
2.(re)start nscd
3.
  
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).

-- Additional comment from dwalsh@redhat.com on 2007-04-02 17:11 EST --
Fixed in selinux-policy-2.5.11-2

-- Additional comment from jakub@redhat.com on 2007-04-03 01:12 EST --
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 1 Daniel Walsh 2007-04-03 09:07:33 EDT
Fixed in selinux-policy-2.4.6-51
Comment 2 RHEL Product and Program Management 2007-04-03 09:23:49 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.
Comment 7 errata-xmlrpc 2007-11-07 11:38:52 EST
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2007-0544.html

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