Bug 679051 - selinux detection in /usr/sbin/start-ds-admin
Summary: selinux detection in /usr/sbin/start-ds-admin
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: 389-admin
Version: 14
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Rich Megginson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-21 12:41 UTC by Denis Baklikov
Modified: 2011-04-25 23:27 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-28 21:52:25 UTC
Type: ---


Attachments (Terms of Use)

Description Denis Baklikov 2011-02-21 12:41:28 UTC
Description of problem:

If confition for selinux detection never ckecks because of [ -z "yes" ] condition.

/usr/sbin/start-ds-admin

if [ -z "yes" ] ; then # always FALSE
    if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
        SELINUX_CMD="runcon -t unconfined_t --"
    fi
fi

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


How reproducible:
/etc/init.d/dirsrv-admin restart


Actual results:
[FAILED] httpd.worker: Could not open configuration file /etc/dirsrv/admin-serv/httpd.conf: Permission denied

Expected results:
[OK]

Comment 1 Nathan Kinder 2011-02-21 16:03:48 UTC
(In reply to comment #0)
> Description of problem:
> 
> If confition for selinux detection never ckecks because of [ -z "yes" ]
> condition.
> 
> /usr/sbin/start-ds-admin
> 
> if [ -z "yes" ] ; then # always FALSE
>     if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
>         SELINUX_CMD="runcon -t unconfined_t --"
>     fi
> fi
> 

This is by design.  This code makes the admin server run unconfined, which we only want to happen if the admin server was compiled without SELinux support.  Current versions of 389-admin are confined by SELinux policy and are compiled with SELinux support.

> Actual results:
> [FAILED] httpd.worker: Could not open configuration file
> /etc/dirsrv/admin-serv/httpd.conf: Permission denied
> 

What version of 389-ds-base and 389-admin are you running?  I'd also like to know what version of selinux-policy you have installed.  There is a bug that was recently fixed in selinux-policy that you may be running into.

It would also be useful to see if there are any AVC messages that get output in /var/log/audit/audit when you try to start the dirsrv-admin service.

Comment 2 Rich Megginson 2011-02-28 21:24:15 UTC
ping - can you help?

Comment 3 Nathan Kinder 2011-03-28 21:52:25 UTC
Closing this since we have not heard back from the reporter.


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