base: stability fixes — acpid EC, inputd, block driver, ipcd UDS, netstack loopback, ptyd, ramfs, randd, scheme-utils blocking

This commit is contained in:
Red Bear OS
2026-07-09 23:54:10 +03:00
parent 9f3f77cb72
commit 417fe4a4fa
11 changed files with 241 additions and 63 deletions
+9 -1
View File
@@ -129,7 +129,15 @@ impl DataPacket {
let num_fds = read_num::<usize>(data_stream)?;
message.ancillary_data.num_fds += num_fds;
}
(libc::SOL_SOCKET, SCM_CREDENTIALS) => {}
(libc::SOL_SOCKET, SCM_CREDENTIALS) => {
// Redox kernel already populates the receiver's caller
// context with the sender's credentials, so the UDS
// server has the correct peer uid/gid/pid via
// syscall::data::CallerCtx. The explicit SCM_CREDENTIALS
// cmsg is accepted but not separately verified — the
// kernel-mediated context is the source of truth.
// Cross-referenced with Linux man 7 unix SCM_CREDENTIALS.
}
_ => {
eprintln!(
"Message::from_stream: Unsupported cmsg type received. level: {}, type: {}",