[lkml]   [2013]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Building a BSD-jail clone out of namespaces
"Eric W. Biederman" <> writes:

> That will work, but you really don't want to run with uid == 0 mapped to
> uid == 0. There are too many things in /proc and /sys and similar that
> grant access to uid == 0.

Many thanks for the swift reply. If I map UID zero in the userns to a
non-zero UID outside (say -1), is there any way to use the userns UIDs
instead of host UIDs when accessing the container's root filesystem so I
don't end up with strange file ownerships on disk? This would prevent me
from using the same filesystem on physical hosts or in VMs.

I don't think there's any kernel mechanism that lets me apply a UID
translation layer as part of a bind mount is there?



 \ /
  Last update: 2013-06-06 19:21    [W:0.070 / U:7.892 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site