[Pljava-dev] Problems with SELinux and PL/Java

From: W(dot)Riese at zbw(dot)eu (Riese Wolfgang)
To:
Subject: [Pljava-dev] Problems with SELinux and PL/Java
Date: 2011-02-18 09:07:40
Message-ID: 3A59BB6451C972429019B12996F92DAD02C207C9@frodo.zbw-nett.zbw-kiel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

Hi all,

I'm having troubles using PL/Java on a Red Hat Linux 5.5 64-bit system.
The Problems are related to missing file rights/rules in SELinux.
As long as SELinux is set to enforce Postgres/Java is complaining about
not being able to read jar files and other files necessary to the
application.

For Example:
IO Exception:/home/dspace/dspace/config/stats/GeoIP.dat (Permission
denied)
java.io.FileNotFoundException:
/home/dspace/dspace/config/stats/GeoIP.dat (Permission denied)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
...

Sadly the messages and audit.log are of no help, since they don't record
any trouble with enforcing SELinux.
But as stated above if I turn off SELinux everything works fine.
The problem with permissive/turned off SELinux is, that the department
responsible for the servers is not happy with the prospect of having it
turned off.
So far the only partly working solution I've found is putting the jars
in the /var/lib/pgsql/data/ directory, and I mean putting them there,
symbolic links didn't work for me.
Since I don't want to have the same files in many locations I'd
appreciate any hints on rules/file rights for SELinux, to solve this
problem.

Regards,
Wolfgang

........................................................................
.................................................................
WOLFGANG RIESE
IT Development

ZBW - German National Library of Economics
Leibniz Information Centre for Economics
Neuer Jungfernstieg 21

D-20354 Hamburg

T: +49 (0)40 428 34-240
E: w.riese at zbw.eu
Raum 415

http://www.zbw.eu
http://www.econstor.eu
........................................................................
.................................................................

Ask EconDesk, the information service of the ZBW: www.zbw.eu
........................................................................
.................................................................

Responses

Browse pljava-dev by date

  From Date Subject
Next Message Johann 'Myrkraverk' Oskarsson 2011-02-18 15:05:10 [Pljava-dev] Problems with SELinux and PL/Java
Previous Message Johann 'Myrkraverk' Oskarsson 2011-02-16 07:56:53 [Pljava-dev] Cross Compiled Windows Binaries