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
On Nov 19, 2007 7:58 AM, Jan Falkenhagen spam.to.f@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