mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-08-04 13:49:53 +00:00
- [CVE-2019-19921](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-19921) See https://github.com/opencontainers/runc/releases/tag/v1.0.0-rc10
20 lines
217 B
Go
20 lines
217 B
Go
package ebpf
|
|
|
|
import (
|
|
"sync"
|
|
)
|
|
|
|
type featureTest struct {
|
|
Fn func() bool
|
|
|
|
once sync.Once
|
|
result bool
|
|
}
|
|
|
|
func (ft *featureTest) Result() bool {
|
|
ft.once.Do(func() {
|
|
ft.result = ft.Fn()
|
|
})
|
|
return ft.result
|
|
}
|