Merge pull request #4291 from kolyshkin/codespell-2.3.0

Fix codespell warnings
This commit is contained in:
Akihiro Suda
2024-05-25 02:10:32 +09:00
committed by GitHub
2 changed files with 13 additions and 14 deletions
+11 -11
View File
@@ -27,7 +27,7 @@ var featuresCommand = cli.Command{
return err
}
tru := true
t := true
feat := features.Features{
OCIVersionMin: "1.0.0",
@@ -43,24 +43,24 @@ var featuresCommand = cli.Command{
Namespaces: specconv.KnownNamespaces(),
Capabilities: capabilities.KnownCapabilities(),
Cgroup: &features.Cgroup{
V1: &tru,
V2: &tru,
Systemd: &tru,
SystemdUser: &tru,
Rdma: &tru,
V1: &t,
V2: &t,
Systemd: &t,
SystemdUser: &t,
Rdma: &t,
},
Apparmor: &features.Apparmor{
Enabled: &tru,
Enabled: &t,
},
Selinux: &features.Selinux{
Enabled: &tru,
Enabled: &t,
},
IntelRdt: &features.IntelRdt{
Enabled: &tru,
Enabled: &t,
},
MountExtensions: &features.MountExtensions{
IDMap: &features.IDMap{
Enabled: &tru,
Enabled: &t,
},
},
},
@@ -74,7 +74,7 @@ var featuresCommand = cli.Command{
if seccomp.Enabled {
feat.Linux.Seccomp = &features.Seccomp{
Enabled: &tru,
Enabled: &t,
Actions: seccomp.KnownActions(),
Operators: seccomp.KnownOperators(),
Archs: seccomp.KnownArchs(),
+2 -3
View File
@@ -143,9 +143,8 @@ func setupIO(process *libcontainer.Process, rootuid, rootgid int, createTTY, det
return setupProcessPipes(process, rootuid, rootgid)
}
// createPidFile creates a file with the processes pid inside it atomically
// it creates a temp file with the paths filename + '.' infront of it
// then renames the file
// createPidFile creates a file containing the PID,
// doing so atomically (via create and rename).
func createPidFile(path string, process *libcontainer.Process) error {
pid, err := process.Pid()
if err != nil {