base: stability fixes — acpid EC, inputd, block driver, ipcd UDS, netstack loopback, ptyd, ramfs, randd, scheme-utils blocking
This commit is contained in:
+9
-1
@@ -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: {}",
|
||||
|
||||
Reference in New Issue
Block a user