fix some typos about libcontainer

Signed-off-by: SataQiu <1527062125@qq.com>
This commit is contained in:
SataQiu
2020-10-17 13:14:55 +08:00
parent d8bfd6c1ca
commit abcc1aae05
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ func setDevices(dirPath string, cgroup *configs.Cgroup) error {
//
// The real issue is that BPF_F_ALLOW_MULTI makes it hard to have a
// race-free blacklist because it acts as a whitelist by default, and
// having a deny-everything program cannot be overriden by other
// having a deny-everything program cannot be overridden by other
// programs. You could temporarily insert a deny-everything program
// but that would result in spurrious failures during updates.
if _, err := ebpf.LoadAttachCgroupDeviceFilter(insts, license, dirFD); err != nil {
@@ -29,7 +29,7 @@ func TestWriteCgroupFileHandlesInterrupt(t *testing.T) {
defer os.RemoveAll(cgroupPath)
if _, err := os.Stat(filepath.Join(cgroupPath, memoryLimit)); err != nil {
// either cgroupv2, or memory controller is not avalable
// either cgroupv2, or memory controller is not available
t.Skip(err)
}
+1 -1
View File
@@ -93,7 +93,7 @@ func groupPrefix(ruleType configs.DeviceType) (string, error) {
}
// findDeviceGroup tries to find the device group name (as listed in
// /proc/devices) with the type prefixed as requried for DeviceAllow, for a
// /proc/devices) with the type prefixed as required for DeviceAllow, for a
// given (type, major) combination. If more than one device group exists, an
// arbitrary one is chosen.
func findDeviceGroup(ruleType configs.DeviceType, ruleMajor int64) (string, error) {