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
v0.11.1
Published
May 8, 2014
Platform
linux/amd64
Imports
3 packages
Last checked
1 minute ago

Tools for package owners.