Skip to main content

secure_exec_kernel/
lib.rs

1#![forbid(unsafe_code)]
2
3//! Shared per-VM kernel plane for the secure-exec runtime migration.
4
5pub use secure_exec_bridge as bridge;
6pub mod command_registry;
7pub mod device_layer;
8pub mod dns;
9pub mod fd_table;
10pub mod kernel;
11pub mod permissions;
12pub mod pipe_manager;
13pub mod poll;
14pub mod process_table;
15pub mod pty;
16pub mod resource_accounting;
17pub mod socket_table;
18pub mod user;
19
20pub use ::vfs::posix as vfs;
21
22pub mod mount_plugin {
23    pub use ::vfs::posix::mount_plugin::*;
24}
25
26pub mod mount_table {
27    pub use ::vfs::posix::mount_table::*;
28}
29
30pub mod overlay_fs {
31    pub use ::vfs::posix::overlay_fs::*;
32}
33
34pub mod root_fs {
35    pub use ::vfs::posix::root_fs::*;
36}
37
38#[derive(Debug, Clone, Copy, PartialEq, Eq)]
39pub struct KernelScaffold {
40    pub package_name: &'static str,
41    pub supports_native_sidecar: bool,
42    pub supports_browser_sidecar: bool,
43}
44
45pub fn scaffold() -> KernelScaffold {
46    KernelScaffold {
47        package_name: env!("CARGO_PKG_NAME"),
48        supports_native_sidecar: true,
49        supports_browser_sidecar: true,
50    }
51}