Skip to content

Commit 2e8216d

Browse files
author
Zhou Hao
committed
validation: add apparmorProfile validation
Signed-off-by: Zhou Hao <[email protected]>
1 parent b113b38 commit 2e8216d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package main
2+
3+
import (
4+
"github.com/opencontainers/runtime-tools/validation/util"
5+
)
6+
7+
func main() {
8+
g, err := util.GetDefaultGenerator()
9+
if err != nil {
10+
util.Fatal(err)
11+
}
12+
g.SetProcessApparmorProfile("acme_secure_profile")
13+
err = util.RuntimeInsideValidate(g, nil, nil)
14+
if err != nil {
15+
util.Fatal(err)
16+
}
17+
}

0 commit comments

Comments
 (0)