1 |
Rich Freeman wrote: |
2 |
> However, FWIW, linux namespaces cannot be used to have only a single |
3 |
> file appear differently to different processes. Mount namespaces can |
4 |
> only operate at the directory level. |
5 |
|
6 |
So to work around that limitation we insist that everyone change how |
7 |
their systems are set up, and still have to reintroduce mtab under a |
8 |
different name ("utab", hidden away under /run) because |
9 |
/proc/self/mounts *doesn't* contain everything that's supposed to be in |
10 |
mtab after all? |
11 |
|
12 |
If someone decides they want to use, say, different DNS servers in |
13 |
different namespaces, should we make the kernel store the server IP |
14 |
addresses, add a /proc file that dumps them out in the expected format, |
15 |
and demand that everyone replace their /etc/resolv.conf with a symlink |
16 |
to /proc/self/resolv.conf? Or maybe, if people want namespaces, they |
17 |
can implement them properly, in which case it becomes literally a |
18 |
self-solving problem. |