mount.cifs and credentials file

Dawid Gajownik gajownik at gmail.com
Fri Mar 16 12:44:00 UTC 2007


On 3/16/07, Paul Howarth <paul at city-fan.org> wrote:
> You're probably having problems with trying to read /root before you
> even get to the credentials file. What I use is this:

May I ask you what version of selinux-policy-targeted do you have in
your system? I changed configuration and still have AVC messages:

audit(1174047007.131:6): avc:  denied  { read } for  pid=2242
comm="mount.cifs" name="smbcredential-polsl" dev=sda1 ino=131578
scontext=system_u:system_r:mount_t:s0
tcontext=user_u:object_r:samba_etc_t:s0 tclass=file

[gajownik at cyklop ~]$ ls -lZ /etc/samba/
-rw-r--r--  root root system_u:object_r:samba_etc_t    lmhosts
-rw-r--r--  root root system_u:object_r:samba_etc_t    smb.conf
-rw-------  root root user_u:object_r:samba_etc_t      smbcredential-polsl
[gajownik at cyklop ~]$

fstab:
//dionizos/usr /srv/dionizos          cifs
credentials=/etc/samba/smbcredential-polsl,uid=gajownik,gid=users,file_mode=0666,dir
_mode=0777 0 0

selinux-policy-targeted-2.4.6-42.fc6




More information about the fedora-selinux-list mailing list