Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 162227 - RHAPS rhdb-jonas service does not work with SELinux
Summary: RHAPS rhdb-jonas service does not work with SELinux
Alias: None
Product: Red Hat Application Server
Classification: Retired
Component: jonas
Version: 2.0
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Fernando Nasser
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2005-07-01 00:45 UTC by Fernando Nasser
Modified: 2007-04-18 17:28 UTC (History)
1 user (show)

Fixed In Version: 2.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2005-09-28 18:05:11 UTC

Attachments (Terms of Use)

Description Fernando Nasser 2005-07-01 00:45:01 UTC
Description of problem:

The RPM does not initialize the database, and even if that is done by hand the
service will not start

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


How reproducible:


Steps to Reproduce:
1. Turn on SELinux
2. Install JOnAS
3. service rhdb-jonas start
Actual results:

Expected results:

A DBMS running on port 5433

Additional info:

The post script must use runuser instead of su if SELinus is on during th4e

Also, if SELinux is installed, the following likes have to be added to the
selinux configuration file


/usr/share/jonas/pgsql(/.*)?       system_u:object_r:postgresql_db_t
/var/log/rhdb/rhdb(/.*)?                system_u:object_r:postgresql_log_t

But if the SELinux package selinux-policy-targeted is installed after the
jonas-examples package, the jonas-examples package will not have installed those
lines, so the jonas-examples package would have to be uninstalled and installed
again.  There should be a /etc/selinux/targeted/contexts/files/file_contexts.d
directory for fragments like this and should be created by something in core. 
But perhaps selinux-policy-targeted is in core?

Comment 3 Fernando Nasser 2005-09-28 18:05:11 UTC
Will RHEL4 U1 this should work.
It is not supported however.  Use at your own risk.

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