add apparmor:

Signed-off-by: Victor Vieux <vieux@docker.com>
Upstream-commit: c2c5e57a8ea4b1dc35c58654443a8c4508277904
Component: engine
This commit is contained in:
Victor Vieux
2014-09-29 23:34:45 +00:00
parent fe37a1db8f
commit f73d9c3630
5 changed files with 17 additions and 5 deletions

View File

@ -49,6 +49,10 @@ func (d *driver) createContainer(c *execdriver.Command) (*libcontainer.Config, e
}
}
if c.AppArmorProfile != "" {
container.AppArmorProfile = c.AppArmorProfile
}
if err := d.setupCgroups(container, c); err != nil {
return nil, err
}