bootstrap: use openat (not openat_into) — kernel auto-allocates fd
This commit is contained in:
@@ -173,10 +173,8 @@ impl<'sock> NamespaceScheme<'sock> {
|
||||
return Err(Error::new(ENODEV));
|
||||
};
|
||||
|
||||
let reserved = syscall::reserve_fd(1)?;
|
||||
let scheme_fd = syscall::openat_into(
|
||||
let scheme_fd = syscall::openat(
|
||||
cap_fd.as_raw_fd(),
|
||||
reserved,
|
||||
reference,
|
||||
flags,
|
||||
fcntl_flags as usize,
|
||||
|
||||
Reference in New Issue
Block a user