upgrade runc to v1.1.4

This commit is contained in:
Paco Xu
2022-11-08 16:42:48 +08:00
parent f2c89045f4
commit ecbafed7c3
7 changed files with 41 additions and 10 deletions

View File

@@ -198,6 +198,13 @@ func (l *linuxStandardInit) Init() error {
if err != nil {
return err
}
// exec.LookPath might return no error for an executable residing on a
// file system mounted with noexec flag, so perform this extra check
// now while we can still return a proper error.
if err := system.Eaccess(name); err != nil {
return &os.PathError{Op: "exec", Path: name, Err: err}
}
// Set seccomp as close to execve as possible, so as few syscalls take
// place afterward (reducing the amount of syscalls that users need to
// enable in their seccomp profiles). However, this needs to be done