package restrict

import "github.com/dotcloud/docker/pkg/libcontainer/security/restrict"

Index

Functions

func Restrict

func Restrict(mounts ...string) error

This has to be called while the container still has CAP_SYS_ADMIN (to be able to perform mounts). However, afterwards, CAP_SYS_ADMIN should be dropped (otherwise the user will be able to revert those changes).

Source Files

restrict.go

Version
v1.0.0
Published
Jun 8, 2014
Platform
linux/amd64
Imports
5 packages
Last checked
2 minutes ago

Tools for package owners.