off topic - cifs selinux and apache question

Daniel J Walsh dwalsh at redhat.com
Wed Jun 4 19:05:15 UTC 2008


Phill wrote:
> I have a web server running Apache 2.2.3 on CentOS 5.
> I am linking to an xls spreadsheet on a windows server
> share. I have the share mounted cifs ro locally on the
> Linux server. I am unsure what would be the best
> method of doing this. The way I have it setup now
> causes me to get SELinux complaints about httpd access
> to non http context files, since the context on the
> mounted share is cifs_t. Does anyone know the
> preferred method of accessing a spreadsheet, or other
> type of file located on a windows share, from Apache
> web server running on Linux machine? I thought maybe
> some sort of script might be the answer but I have
> just a little experience with cgi. Thanks in advance!
> 
> 
> 
>       
> 

If you turn on httpd_enable_homedirs use_samba_home_dirs

it should work

setsebool -P httpd_enable_homedirs=1 use_samba_home_dirs=1




More information about the fedora-list mailing list