[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] CEntOS 5.6 + PHP53 + Drupal6 + Selinux
- Subject: [ale] CEntOS 5.6 + PHP53 + Drupal6 + Selinux
- From: david at systemoverlord.com (David Tomaschik)
- Date: Wed, 27 Jul 2011 22:12:26 -0400
- In-reply-to: <CAEo=5Pwa3ON32th4BOyrssfayg9tH6v5-HPS5r_MYkgF6jwOGw@mail.gmail.com>
- References: <CAEo=5Pwa3ON32th4BOyrssfayg9tH6v5-HPS5r_MYkgF6jwOGw@mail.gmail.com>
On Wed, Jul 27, 2011 at 9:58 PM, Jim Kinney <jim.kinney at gmail.com> wrote:
> = a long arduous pile of pain setting up a gazillion selinux allowances.
>
> dump audit log, restart httpd, test, get failure and generate possible
> solution with audit2allow -R
> edit local-drupal_sux_selinux_hard.te and merge in new policy changes, make,
> make load
> repeat while noting with terror of all the things this environment is
> touching.
>
<snip>
>
> The file it's hitting (fcgi-bin/php5.fcgi) should NOT be set to home_root_t
> but should be set to httpd_sys_script_exec_t but for unknown reasons, chcon
> is blocked for changing the file context on that FCGIWrapper? in the virtual
> hosts fcgi-bin dir. Even facls is correct. mod_fcgid sets a binary elsewhere
> but the simple fcgi file is copied from ??? or generated by virtualmin
> (ARGH!) It works fine but the busted context and blocked change has me
> stumped.
>
> So the other alternative is to use the drupal rpm from EPEL with the hope
> they have the selinux contexts included, scavenge those from the
> post-install script section and also hope it works happy with virtualmin as
> that is a huge pile of perl I really don't want to start poking around in.
>
> it's time for a beer (or three).
>
> --
> --
> James P. Kinney III
>
Jim,
Just curious, but is this any different from any other PHP app on
CentOS? Just wondering if you've discovered anything Drupal-specific.
David
--
David Tomaschik, RHCE, LPIC-1
System Administrator/Open Source Advocate
OpenPGP: 0x5DEA789B
http://systemoverlord.com
david at systemoverlord.com