Re: SELinux and daemons - clever way to change default locations?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Florin Andrei wrote:

In the particular case of moving /var/lib/mysql to the separate filesystem /db, it's enough to mount /db with the same SELinux context like /var:

mount -o defcontext=system_u:object_r:var_t /db

Actually, in /etc/fstab you have to append a :s0 otherwise it won't mount automatically at boot:

LABEL=/db /db ext3 defcontext=system_u:object_r:var_t:s0 1 2

--
Florin Andrei

http://florin.myip.org/
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux