fix typos
Signed-off-by: allencloud <allen.sun@daocloud.io>
This commit is contained in:
parent
4c013a1524
commit
f596858395
|
@ -177,7 +177,7 @@ func UnreserveLabel(label string) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// DupSecOpt takes an process label and returns security options that
|
// DupSecOpt takes a process label and returns security options that
|
||||||
// can be used to set duplicate labels on future container processes
|
// can be used to set duplicate labels on future container processes
|
||||||
func DupSecOpt(src string) []string {
|
func DupSecOpt(src string) []string {
|
||||||
return selinux.DupSecOpt(src)
|
return selinux.DupSecOpt(src)
|
||||||
|
|
|
@ -19,7 +19,7 @@ func TestCaptureTestFunc(t *testing.T) {
|
||||||
// the first frame is the caller
|
// the first frame is the caller
|
||||||
frame := stack.Frames[0]
|
frame := stack.Frames[0]
|
||||||
if expected := "captureFunc"; frame.Function != expected {
|
if expected := "captureFunc"; frame.Function != expected {
|
||||||
t.Fatalf("expteced function %q but recevied %q", expected, frame.Function)
|
t.Fatalf("expected function %q but recevied %q", expected, frame.Function)
|
||||||
}
|
}
|
||||||
expected := "/runc/libcontainer/stacktrace"
|
expected := "/runc/libcontainer/stacktrace"
|
||||||
if !strings.HasSuffix(frame.Package, expected) {
|
if !strings.HasSuffix(frame.Package, expected) {
|
||||||
|
|
Loading…
Reference in New Issue