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

MythTV mythtv at cvs.mythtv.org
Thu Nov 1 18:04:34 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       |   Resolution:         
  Mlocked:  0            |  
-------------------------+--------------------------------------------------

Comment(by anonymous):

 oops.  should read:

 {{{
 [root at chronos includes]# pwd
 /var/www/html/mythtv/includes
 [root at chronos includes]# diff init.php init.php.orig
 42,43c42
 <     $uname=posix_uname();
 <     define('hostname', empty($_SERVER['hostname']) ?
 trim($uname['nodename']) : $_SERVER['hostname']);
 ---
 >     define('hostname', empty($_SERVER['hostname']) ? trim(`hostname`) :
 $_SERVER['hostname']);

 }}}

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/4118#comment:1>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list