kata-sys-util: upgrade nix version

New nix is supporting UMOUNT_NOFOLLOW, upgrade nix
version to use this flag instead of the self-defined flag.

Fixes: #4670

Signed-off-by: liubin <liubin0329@gmail.com>
This commit is contained in:
liubin
2022-07-15 16:50:29 +08:00
parent 9f49f7adca
commit 996a6b80bc
12 changed files with 32 additions and 22 deletions

View File

@@ -12,7 +12,7 @@ async-trait = "0.1.48"
dbs-utils = "0.1.0"
go-flag = "0.1.0"
libc = ">=0.2.39"
nix = "0.16.1"
nix = "0.24.1"
seccompiler = "0.2.0"
serde_json = ">=1.0.9"
slog = "2.5.2"

View File

@@ -14,7 +14,7 @@ lazy_static = "1.4.0"
libc = ">=0.2.39"
netlink-sys = "0.8.3"
netlink-packet-route = "0.12.0"
nix = "0.16.0"
nix = "0.24.1"
rand = "^0.7.2"
rtnetlink = "0.10.0"
scopeguard = "1.0.0"

View File

@@ -128,7 +128,7 @@ impl ShareVirtioFsStandalone {
info!(sl!(), "shutdown virtiofsd pid {}", pid);
let pid = ::nix::unistd::Pid::from_raw(pid as i32);
if let Err(err) = ::nix::sys::signal::kill(pid, nix::sys::signal::SIGKILL) {
if err != ::nix::Error::Sys(nix::errno::Errno::ESRCH) {
if err != ::nix::Error::ESRCH {
return Err(anyhow!("failed to kill virtiofsd pid {} {}", pid, err));
}
}

View File

@@ -11,7 +11,7 @@ anyhow = "^1.0"
async-trait = "0.1.48"
containerd-shim-protos = { version = "0.2.0", features = ["async"]}
lazy_static = "1.4.0"
nix = "0.23.1"
nix = "0.24.1"
protobuf = "2.27.0"
serde_json = "1.0.39"
slog = "2.5.2"

View File

@@ -19,7 +19,7 @@ containerd-shim-protos = { version = "0.2.0", features = ["async"]}
go-flag = "0.1.0"
libc = "0.2.108"
log = "0.4.14"
nix = "0.23.1"
nix = "0.24.1"
protobuf = "2.27.0"
sha2 = "=0.9.3"
slog = {version = "2.5.2", features = ["std", "release_max_level_trace", "max_level_trace"]}