LAMP How To – Open Source At Work

Only Passion Matters

Entries Tagged ‘selinux’

mounting windows share on local machine via samba – fixing selinux

if you are running selinux, you get this error

SELinux is preventing samba (smbd) “getattr” to /mnt/blarblar (cifs_t). For complete SELinux messages. run sealert -l e523015e-150a-4736-80c1-c7a40af6d396″

In fstab, we need to mount samba with the right context like so:

//10.2.115.11/linuxbackup /mnt/blarblar  cifs domain=MYDOMAIN,user=backupservice,password=blarblar,context=system_u:object_r:samba_share_t:s0 0 0

or using command line, remember to use the right context

mount –context=”system_u:object_r:samba_share_t:s0″

I found the “samba_selinux” [...]

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • StumbleUpon
  • Technorati
  • LinkedIn
  • MySpace
  • Slashdot
  • TwitThis
  • Yahoo! Buzz

selinux: samba and nfs

I find “man samba_selinux” really well documented. All the common problems associate with samba selinux can be found there.

Share and Enjoy:

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • StumbleUpon
  • Technorati
  • LinkedIn
  • MySpace
  • Slashdot
  • TwitThis
  • Yahoo! Buzz

selinux relabeling error

when you disable and enable selinux, it relabels the files upon start up. There seems to be a bug where sometimes selinux relabel the files wrongly. I once got the fcontext of all the files under /sbin and /bin as boot_t. This can create serious problems… worst than you can imagine. I can’t even ssh [...]

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • StumbleUpon
  • Technorati
  • LinkedIn
  • MySpace
  • Slashdot
  • TwitThis
  • Yahoo! Buzz