Relocate directories (e.g. tmp): how?

Chris Adams cmadams at hiwaay.net
Tue Feb 19 03:39:50 UTC 2008


Once upon a time, S P Arif Sahari Wibowo <arifsaha at yahoo.com> said:
> For example, I have always been relocate the tmp and var 
> directories in one separate volume (rapid changing content). 
> Usually the volume will be mounted on /var and /tmp is a symlink 
> to var/tmp. This arrangement has been working well for me until 
> RHEL / CentOS 4. Then when I tried Fedora 8, this setup stop 
> working: SELinux stop some program - e.g. Xorg and dhcp client - 
> to work with this tmp symlink.

I hit this too; my solution was to bind mount /tmp onto /var/tmp.  My
/etc/fstab has:

/tmp	/var/tmp	none	bind

-- 
Chris Adams <cmadams at hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.




More information about the fedora-selinux-list mailing list