We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89c3c97 commit cb04f48Copy full SHA for cb04f48
libcontainer/apparmor/apparmor.go
@@ -7,6 +7,7 @@ package apparmor
7
// #include <stdlib.h>
8
import "C"
9
import (
10
+ "fmt"
11
"io/ioutil"
12
"os"
13
"unsafe"
@@ -32,7 +33,7 @@ func ApplyProfile(name string) error {
32
33
cName := C.CString(name)
34
defer C.free(unsafe.Pointer(cName))
35
if _, err := C.aa_change_onexec(cName); err != nil {
- return err
36
+ return fmt.Errorf("apparmor failed to apply profile: %s", err)
37
}
38
return nil
39
0 commit comments