Make plugins dir private.
This prevents mounts in the plugins dir from leaking into other namespaces which can prevent removal (`device or resource busy`), particularly on older kernels. Signed-off-by: Brian Goff <cpuguy83@gmail.com> (cherry picked from commit 0c2821d6f2de692d105e50a399daa65169697cca) Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
@ -105,6 +105,11 @@ func NewManager(config ManagerConfig) (*Manager, error) {
|
||||
if err := os.MkdirAll(manager.tmpDir(), 0700); err != nil {
|
||||
return nil, errors.Wrapf(err, "failed to mkdir %v", manager.tmpDir())
|
||||
}
|
||||
|
||||
if err := setupRoot(manager.config.Root); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var err error
|
||||
manager.containerdClient, err = config.Executor.Client(manager) // todo: move to another struct
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user