bootstrap: use openat (not openat_into) — kernel auto-allocates fd

This commit is contained in:
Red Bear OS
2026-07-08 00:53:21 +03:00
parent 75950f10a8
commit 82bf2444e3
+1 -3
View File
@@ -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,