Add option to use file-based locking for libkpod state

Signed-off-by: Matthew Heon <mheon@redhat.com>
This commit is contained in:
Matthew Heon 2017-07-20 14:43:41 -04:00
parent fa6e2d81f9
commit 9529f565b2
5 changed files with 35 additions and 4 deletions

View file

@ -502,6 +502,7 @@ func New(config *Config) (*Server, error) {
appArmorEnabled: apparmor.IsEnabled(),
appArmorProfile: config.ApparmorProfile,
}
if s.seccompEnabled {
seccompProfile, fileErr := ioutil.ReadFile(config.SeccompProfile)
if fileErr != nil {