Opened 13 years ago
Closed 13 years ago
#4118 closed enhancement (fixed)
Fix hostname call to be SELinux friendly
Reported by: | anonymous | Owned by: | Rob Smith |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythweb | Version: | unknown |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
Not sure if this was already posted. I have mythweb working with my SELinux-enabled system with this simple change. I find it rather dismissive to disable SELinux on my apache daemon for one bug fix. Would probably have to test on Windows ( I have no capability)
[root@chronos includes]# pwd /var/www/html/mythtv/includes [root@chronos includes]# diff init.php init.php.orig 42,43c42 < $uname=posix_uname(); < define('hostname', empty($_SERVERhostname?) ? trim($unamenodename?) : $_SERVERhostname?); ---
define('hostname', empty($_SERVERhostname?) ? trim(
hostname
) : $_SERVERhostname?);
oops. should read: