containers: Provide fs_context op for container setting
Provide an fs_context op to notify a filesystem that a container has been
set. The filesystem should do whatever cleanup it needs, then call
do_set_container() and then re-set its container/namespace dependent stuff.
This allows the following:
(1) proc and mqueue mounts to set the correct pid and ipc namespaces
respectively.
(2) afs to discard the old default cell before the net namespace is
changed (ie. while it is still pinned), after which it can get the new
default cell.
Signed-off-by: David Howells <dhowells@redhat.com>
6 files changed