FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 10-21-2010, 10:57 AM
admin lewis
 
Default temp dir, httpd and selinux

Hi,
I have a php software installed on a centos server with selinux
enforced activeted.
The php software (glpi --> http://www.glpi-project.org) have a plugin
that must write on a temp dir... but selinux dont give access to that
dir to write.
How should i do ?
lewis
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 10-22-2010, 09:33 AM
Ned Slider
 
Default temp dir, httpd and selinux

On 21/10/10 11:57, admin lewis wrote:
> Hi,
> I have a php software installed on a centos server with selinux
> enforced activeted.
> The php software (glpi --> http://www.glpi-project.org) have a plugin
> that must write on a temp dir... but selinux dont give access to that
> dir to write.
> How should i do ?
> lewis


Take a look at the "Troubleshooting" section of the SELinux guide on the
Wiki:

http://wiki.centos.org/HowTos/SELinux#head-02c04b0b030dd3c3d58bb7acbbcff033505dd3af

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 10-26-2010, 06:16 AM
Mathieu Baudier
 
Default temp dir, httpd and selinux

> How should i do ?

You probably need to use chcon to change the SELinux context of the
temp directory to httpd_sys_content_t (or something like
httpd_<specific>_script_rw_t).

In order to troubleshoot:
- switch SELinux to permissive mode
- perform your actions (they should now work, and the SELinux issues
will be written in the audit log)
- run sealert -a on the /var/log/audit/audit.log file, it will give
you hint on how to fix it
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 01:48 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org