package restrict

import "github.com/docker/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.1
Published
Jun 19, 2014
Platform
linux/amd64
Imports
5 packages
Last checked
2 hours ago

Tools for package owners.