Bug 622882 - SELinux is preventing /usr/sbin/ns-slapd "getattr" access to /usr/lib64/dirsrv.
Summary: SELinux is preventing /usr/sbin/ns-slapd "getattr" access to /usr/lib64/dirsrv.
Alias: None
Product: 389
Classification: Retired
Component: Security - General
Version: 1.2.6
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Nathan Kinder
QA Contact: Chandrasekar Kannan
: 622880 (view as bug list)
Depends On:
Blocks: 434915 389_1.2.6
TreeView+ depends on / blocked
Reported: 2010-08-10 16:37 UTC by Rich Megginson
Modified: 2015-01-04 23:43 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2010-09-29 14:51:49 UTC

Attachments (Terms of Use)
avc (3.56 KB, text/plain)
2010-08-10 16:37 UTC, Rich Megginson
no flags Details

Description Rich Megginson 2010-08-10 16:37:02 UTC
Created attachment 437946 [details]

This was on F-13 but I suspect it may affect other platforms.  This happened after upgrading to the 389-ds-base-1.2.6.rc6.

Comment 1 Nathan Kinder 2010-08-10 16:54:00 UTC
This has to do with the change made for fixing bug 594745.  We removed the dirsrv_lib_t label and labeled our libs as the default of lib_t.  When a label is removed (by removing a policy module), any files using that label are changed to use unlabeled_t.

For the attached AVC, we can see that /usr/lib64/dirsrv is using the unlabeled_t label, yet the policy default is lib_t.  The files owned by the 389-ds-base package are supposed to be relabelled by calling fixfiles from the specfile.  Perhaps this scriptlet is not working?

Comment 2 Nathan Kinder 2010-08-10 16:56:49 UTC
*** Bug 622880 has been marked as a duplicate of this bug. ***

Comment 3 Rich Megginson 2010-08-10 17:56:19 UTC
This bug only affects upgrades from 1.2.6.rc5 to 1.2.6.rc6 or later.  I've tried clean install - no problem - 1.2.5 -> 1.2.6 - no problem - 1.2.6.a1 -> 1.2.6.rc6 - no problem.

I've added a warning about this to the release notes.

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