Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ crossbeam = "0.8.1"
futures = "0.3.19"
libc = "0.2.112"
log = {version = "0.4.2", features=["kv_unstable"]}
nix = "0.29"
nix = "0.30"
oci-spec = "0.7"
os_pipe = "1.1"
prctl = "1.0.0"
Expand Down
6 changes: 3 additions & 3 deletions crates/runc/src/asynchronous/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
*/

use std::{fmt::Debug, io::Result, os::unix::io::AsRawFd, process::Stdio};
use std::{fmt::Debug, io::Result, process::Stdio};

use async_trait::async_trait;
use nix::unistd::{Gid, Uid};
Expand Down Expand Up @@ -67,10 +67,10 @@ impl PipedIo {
let gid = Some(Gid::from_raw(gid));
if stdin {
let rd = pipe.rd.try_clone()?;
nix::unistd::fchown(rd.as_raw_fd(), uid, gid)?;
nix::unistd::fchown(rd, uid, gid)?;
} else {
let wr = pipe.wr.try_clone()?;
nix::unistd::fchown(wr.as_raw_fd(), uid, gid)?;
nix::unistd::fchown(wr, uid, gid)?;
}
Ok(Some(pipe))
}
Expand Down
4 changes: 2 additions & 2 deletions crates/runc/src/synchronous/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ impl PipedIo {
let gid = Some(Gid::from_raw(gid));
if stdin {
let rd = pipe.rd.try_clone()?;
nix::unistd::fchown(rd.as_raw_fd(), uid, gid)?;
nix::unistd::fchown(rd, uid, gid)?;
} else {
let wr = pipe.wr.try_clone()?;
nix::unistd::fchown(wr.as_raw_fd(), uid, gid)?;
nix::unistd::fchown(wr, uid, gid)?;
}
Ok(Some(pipe))
}
Expand Down
Loading