Bug 718436

Summary: SSSD calls system() to flush NSCD caching services.
Product: [Fedora] Fedora Reporter: Matthew Ife <matthew.ife>
Component: sssdAssignee: Stephen Gallagher <sgallagh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 15CC: jhrozek, sbose, sgallagh, ssorce
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: sssd-1.5.11-2.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-26 03:33:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matthew Ife 2011-07-02 23:17:55 UTC
Description of problem:

In an attempt to flush NSCD if it is running, SSSD will call system(/usr/bin/nscd -i service) to flush the cache.

This is a problem from a SELinux standpoint because future policy writers will need to allow the sss-tools to have execute permission of all bin_t files.

It is preferable to directly fork/exec in this situation because then SELinux policy can support the nscd_domtrans call only which greatly reduces the scope of access required to make this work.

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

sssd-1.5.8

How reproducible:

Consistently reproduceable.

Steps to Reproduce:
1. Call any sss-tools application which alters the local database files.

Actual results:

The request works but SELinux polic would need to permit execute on bin_t types.

Expected results:

No requirement to execute bin_t types when calling nscd.

Comment 1 Fedora Update System 2011-07-05 19:40:17 UTC
sssd-1.5.11-2.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/sssd-1.5.11-2.fc15

Comment 2 Fedora Update System 2011-07-05 19:40:18 UTC
sssd-1.5.11-2.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/sssd-1.5.11-2.fc14

Comment 3 Fedora Update System 2011-07-06 21:27:23 UTC
Package sssd-1.5.11-2.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing sssd-1.5.11-2.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/sssd-1.5.11-2.fc15
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-07-26 03:33:15 UTC
sssd-1.5.11-2.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2011-07-26 03:39:21 UTC
sssd-1.5.11-2.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.