Gentoo Archives: gentoo-dev

From: Patrick McLean <chutzpah@g.o>
To: gentoo-dev@l.g.o
Cc: rich0@g.o
Subject: Re: [gentoo-dev] rfc: converting /etc/mtab to a symlink
Date: Mon, 14 Oct 2013 22:41:04
Message-Id: 20131014154029.725818da@gentoo.org
In Reply to: Re: [gentoo-dev] rfc: converting /etc/mtab to a symlink by Rich Freeman
1 On Mon, 14 Oct 2013 15:50:36 -0400
2 Rich Freeman <rich0@g.o> wrote:
3
4 > On Mon, Oct 14, 2013 at 2:58 PM, David Leverton
5 > <levertond@××××××××××.com> wrote:
6 > >
7 > > If only someone would invent some sort of kernel feature that could
8 > > make the name "/etc/mtab" refer to different files in different
9 > > processes....
10 > >
11 >
12 > However, FWIW, linux namespaces cannot be used to have only a single
13 > file appear differently to different processes. Mount namespaces can
14 > only operate at the directory level.
15
16 This is not true. Bind mounts can be performed on a single file, and
17 bind mounts are part of mount namespaces. Granted the target file _must_
18 exist (it could be a dead symlink, or a symlink to /dev/null) before
19 performing the bind mount.

Replies

Subject Author
Re: [gentoo-dev] rfc: converting /etc/mtab to a symlink David Leverton <levertond@××××××××××.com>