Hi Peder.
Try editing /etc/selinux/config and setting SELINUX=disabled, then rebooting and test the same again. If it works it is SElinux that stops it from working. You could also try setting it to permissive, then you will only get audits about it but it should work.
I see that there is no settings for the python-lib in the file /etc/selinux/targeted/contexts/files/file_contexts so that may be the reason it complains.
- Roger
Peder Magne Sefland wrote:
But I installed SUlinux and firewall.
When I tried to access the webpage I get this error
Mod_python error: "PythonHeaderParserHandler nav.web"
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 299, in HandlerDispatch result = object(req)
File "/usr/local/nav/lib/python/nav/web/__init__.py", line 55, in headerparserhandler nav.web.auth.authenticate(req)
File "/usr/local/nav/lib/python/nav/web/auth.py", line 90, in authenticate conn = db.getConnection('navprofile', 'navprofile')
AttributeError: 'module' object has no attribute 'getConnection'
And on the console I get even more errors
# audit(1123578062.447.0): avc: denied { execute } for pid=1791 comm=httpd path=/usr/lib/python2.3/site-packages/psycopgmodule.so dev=dm-0 ino=489605 scontext=user_u:system_r:httpd_t tcontext=root:object_r:etc_t tclass=file