Ticket #4118 (closed enhancement: fixed)
Opened 5 years ago
Last modified 5 years ago
Fix hostname call to be SELinux friendly
| Reported by: | anonymous | Owned by: | kormoc |
|---|---|---|---|
| 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?);
Attachments
Change History
comment:1 Changed 5 years ago by anonymous
comment:2 Changed 5 years ago by kormoc
- Owner changed from xris to kormoc
- Status changed from new to assigned
comment:3 Changed 5 years ago by kormoc
- Status changed from assigned to closed
- Resolution set to fixed
comment:4 Changed 5 years ago by kormoc
- Status changed from closed to reopened
- Resolution fixed deleted
whoops, wrong number

oops. should read:
[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($_SERVER['hostname']) ? trim($uname['nodename']) : $_SERVER['hostname']); --- > define('hostname', empty($_SERVER['hostname']) ? trim(`hostname`) : $_SERVER['hostname']);