Modify

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

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']);

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

(In [14846]) Fixes #4118, adds in support for a new subtitle type. Thanks Nick

comment:4 Changed 5 years ago by kormoc

  • Status changed from closed to reopened
  • Resolution fixed deleted

whoops, wrong number

comment:5 Changed 5 years ago by kormoc

  • Status changed from reopened to closed
  • Resolution set to fixed

(In [14847]) Fixes #4118, this uses the posix function to determin hostname, making this selinux safe.

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.