/tmp on tmpfs with selinux enabled
Aleksandar Milivojevic
amilivojevic at pbl.ca
Fri May 6 15:35:08 UTC 2005
Matthew Miller wrote:
> On Fri, May 06, 2005 at 09:59:47AM -0500, Aleksandar Milivojevic wrote:
>
>>Basically, I have /tmp mounted on small tmpfs file system (to keep it
>>separate from root partition, without need for allocating dedicated disc
>>space for it). Now, root directory of anything mounted as tmpfs will be
>
> A non-selinux issue I ran into trying to do this: loopback devices can't (or
> couldn't) be on tmpfs. Previously, this caused new kernel installs to fail,
> but shouldn't with the new way of doing initrds -- but it still might cause
> other surprises.
Seems that on current kernels (well, at least 2.6.9+) loopback device
can live on tmpfs. I've just tried out "mount -o loop /tmp/fd.img
/tmp/mnt", and it worked correctly on machine that has tmpfs mounted
/tmp (RHEL4 machine, currently my Fedora machine is using "normal" /tmp).
--
Aleksandar Milivojevic <amilivojevic at pbl.ca> Pollard Banknote Limited
Systems Administrator 1499 Buffalo Place
Tel: (204) 474-2323 ext 276 Winnipeg, MB R3T 1L7
More information about the users
mailing list