[mythtv-commits] Ticket #4118: Fix hostname call to be SELinux friendly

MythTV mythtv at cvs.mythtv.org
Thu Nov 1 18:03:09 UTC 2007

#4118: Fix hostname call to be SELinux friendly
 Reporter:  anonymous    |       Owner:  xris   
     Type:  enhancement  |      Status:  new    
 Priority:  minor        |   Milestone:  unknown
Component:  mythweb      |     Version:  unknown
 Severity:  medium       |     Mlocked:  0      
 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 at chronos includes]# pwd
 [root at chronos includes]# diff init.php init.php.orig
 <     $uname=posix_uname();
 <     define('hostname', empty($_SERVER['hostname']) ?
 trim($uname['nodename']) : $_SERVER['hostname']);
 >     define('hostname', empty($_SERVER['hostname']) ? trim(`hostname`) :

Ticket URL: <http://svn.mythtv.org/trac/ticket/4118>
MythTV <http://svn.mythtv.org/trac>

More information about the mythtv-commits mailing list