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. |