Blank page after security patching on 0-8-6h

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
ast
Posts: 4
Joined: Wed Jan 24, 2007 4:44 am

Blank page after security patching on 0-8-6h

Post by ast »

I had a fully working Cacti 0.8.6h before I applied the security fixes mentioned in an security announcement.
After installing as mentioned on the site I get a blank page.
On the server I get the following messages:

audit(1169627693.715:22): avc: denied {getattr} for pid=1900 comm="httpd" name="database.php" dev=dm-0 ino-1338375 scontext=system_u:system_r:httpd_t:s0 tcontext=root:object_r:tmp_t:s0 tclass=file

audit(1169627603.719:23): avc: denied { read } for pid=1900 comm="httpd" name="database.php" dev=dm-0 ino=1338375 scontext=system_u:system_r:httpd_t:s0 tcontext=root:object_r:tmp_t:s0 tclass=file

Cacti is installed on a FC5-machine.
I already tried the command senforce=0 after reboot but that doesn't help.

Has anybody had this problem and how can I fix it?

Th@nx for any help :cry:
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

did Cacti work with SELinux before patching ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
ast
Posts: 4
Joined: Wed Jan 24, 2007 4:44 am

Post by ast »

I don't use SELinux. Only Fedora Core 5.
It was working fine before installing the patches.
So... Point is I don't have a clue why it is doing this.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Strange, these error messages look like SELinux ones...

Can you post the content of the /etc/selinux/config file ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
ast
Posts: 4
Joined: Wed Jan 24, 2007 4:44 am

Post by ast »

In the config file are the following entries:

SELINUX=enforcing
SELINUXTYPE=targeted
SETLOCALDEFS=0

That's it.
I've tried setting SELINUX on permissive but to no avail.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Can you try to disable enforcing mode :

Code: Select all

# setenforce 0
I'm not using Fedora, but it's described here : http://fedora.redhat.com/docs/selinux-f ... #id2962669
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
ast
Posts: 4
Joined: Wed Jan 24, 2007 4:44 am

Post by ast »

I had already tried it. It didn't have the desired effect.
But someone else mentioned that the security context of the updated files might be wrong.
After checking how to make that visible (ls -l --scontext) it was shown that security context was replaced to tmp_t on the updated files. This was the result of the patch -pl -N command.
Resetting them with chcon -R -t httpd_sys_content_t <filename> did the trick finally.

Thanks anyway for all the comments.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests