Jan Falkenhagen
2007-Nov-19 10:58 UTC
[CentOS] Can not mount CIFS-Share on bootup (SELinux Problem)
Hello everybody, i am trying to mount a CIFS-share while booting, providing a credential file for the share (/root/smbpassword) - without success (with SElinux turned on). The share will get mounted just fine when typing mount -a on the shell. And it also will get mounted automatically during boot when SELinux ist turned off. I have searched the documentation, but i have no clue which SElinux context is the right one for the credentialfile and where i have to put it. sincerely -- Jan Falkenhagen
Marcelo Roccasalva
2007-Nov-19 14:58 UTC
[CentOS] Can not mount CIFS-Share on bootup (SELinux Problem)
On Nov 19, 2007 7:58 AM, Jan Falkenhagen <spam.to.f at lkenhagen.de> wrote:> Hello everybody, i am trying to mount a CIFS-share while booting, > providing a credential file for the share (/root/smbpassword) - without > success (with SElinux turned on). The share will get mounted just fine > when typing mount -a on the shell. And it also will get mounted > automatically during boot when SELinux ist turned off.# cd / # egrep smbpassword /var/log/messages | audit2allow -M cifs Review cifs.te and if your satisfied: # semodule -i cifs.pp -- Marcelo "?No ser? acaso que ?sta vida moderna est? teniendo m?s de moderna que de vida?" (Mafalda)