The scenario like this.
I'm working on Ubuntu 10.10. I've enable samba sharing with full guest access enable.
In my office I had another server (CentOS 5.5) installed just for me and I've created a Apache VirtualHost which root document pointed to share folder on my comp
This is my fstab setting
//my ubuntu computer name/sharing/www /media/www cifs context=system_u
bject_r:httpd_sys_content_t:s0,username=username,password=******,iocharset=utf8,fi le_mode=0777,dir_mode=0777 0 0
After label the mount folder as httpd_sys_content_t the Apache web server working in correct way (duno much but at least it can index files and excute some php code so)
then the troll come in : if some file was created by my ubuntu (personal comp) then the file would be listed in Apache virtualhost correctly.
But if I'm ssh to CentOS server goto /media/www which was mounted to my unbuntu computer. Then type command like $mkdir something
Suprising that folder ./something could not be accessed by Apache anymore except I remount by umount and mount it again or "setenforce 0"
What is wrong with my system can anyone point me out of this headache