Re: selinux and wordpress, wordpress-mu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daniel J Walsh wrote:
> On 03/29/2009 12:15 PM, Ian Weller wrote:
>>    # semanage fcontext -a -t httpd_var_run_t '/usr/share/wordpress-mu'
>>    # semanage fcontext -a -t httpd_var_run_t
>> '/usr/share/wordpress-mu/wp-config.php'
>>    # semanage fcontext -a -t httpd_var_run_t
>> '/usr/share/wordpress-mu/wp-content(/.*)?'
> 
> How about
> 
> # semanage fcontext -a -t httpd_sys_script_exec_t
> '/usr/share/wordpress-mu/wp-config.php'


> # semanage fcontext -a -t httpd_sys_content_rw_t
> '/usr/share/wordpress-mu/wp-content(/.*)?'
> 

A program definitely should not be writing to the /usr/ hierarchy.  You
need to move those files elsewhere on the filesystem.  I'd move them to
/etc/wordpress-mu/wp-config.php and /var/lib/wordpress-mu/wp-content/.

If the directories are configurable or patchable in one place in the
source, then it's good to make this change there.  If not, you can do
what moinmoin does and use symlinks for wordpress to find the files.

-Toshio

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux