Skip to content

Commit 11ad724

Browse files
committed
refactor(net): rename child_abi module to materialize
Signed-off-by: Cong Wang <cwang@multikernel.io>
1 parent ff53d5a commit 11ad724

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

crates/sandlock-core/src/network/connect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use crate::seccomp::ctx::SupervisorCtx;
1111
use crate::seccomp::notif::{read_child_mem, NotifAction};
1212
use crate::sys::structs::{SeccompNotif, ECONNREFUSED};
1313

14-
use super::child_abi::{
14+
use super::materialize::{
1515
named_unix_socket_path, parse_ip_from_sockaddr, parse_port_from_sockaddr,
1616
set_port_in_sockaddr,
1717
};
File renamed without changes.

crates/sandlock-core/src/network/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//
55
// The module is organized around three phases, each enforced by a boundary:
66
//
7-
// child_abi parse phase: every byte-level reader of child-controlled
7+
// materialize parse phase: every byte-level reader of child-controlled
88
// memory; produces owned values (ChildMsghdr, MaterializedMsg)
99
// so later phases never re-read child state (TOCTOU-safe).
1010
// verdict decide phase: pure policy verdicts over materialized values;
@@ -28,8 +28,8 @@ use crate::seccomp::ctx::SupervisorCtx;
2828
use crate::seccomp::notif::NotifAction;
2929
use crate::sys::structs::SeccompNotif;
3030

31-
mod child_abi;
3231
mod connect;
32+
mod materialize;
3333
mod rules;
3434
mod send;
3535
mod send_engine;

crates/sandlock-core/src/network/send.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use crate::seccomp::ctx::SupervisorCtx;
1111
use crate::seccomp::notif::{read_child_mem, NotifAction};
1212
use crate::sys::structs::{SeccompNotif, ECONNREFUSED};
1313

14-
use super::child_abi::{
14+
use super::materialize::{
1515
materialize_msg, mmsg_entry_ptr, mmsg_msglen_addr, named_unix_socket_path,
1616
parse_ip_from_sockaddr, parse_port_from_sockaddr, ChildMsghdr, MaterializedMsg,
1717
MAX_SEND_BUF,

crates/sandlock-core/src/network/send_engine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use std::os::unix::io::{AsRawFd, OwnedFd, RawFd};
99

1010
use crate::seccomp::notif::{write_child_mem, NotifAction};
1111

12-
use super::child_abi::MaterializedMsg;
12+
use super::materialize::MaterializedMsg;
1313

1414
/// True iff this send should block until it completes: the socket is in blocking
1515
/// mode (`O_NONBLOCK` clear — the dup shares the child's file description, so it

crates/sandlock-core/src/network/unix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use crate::seccomp::ctx::SupervisorCtx;
1313
use crate::seccomp::notif::{read_child_mem, NotifAction};
1414
use crate::sys::structs::{SeccompNotif, ECONNREFUSED};
1515

16-
use super::child_abi::{
16+
use super::materialize::{
1717
materialize_msg, mmsg_entry_ptr, mmsg_msglen_addr, named_unix_socket_path, ChildMsghdr,
1818
MaterializedMsg,
1919
};

0 commit comments

Comments
 (0)