Expand description
Capability-based Security System
See also: Architecture Overview for the security model and data flow diagrams.
Implements a capability-based security model for Strat9-OS. All kernel resources are accessed through unforgeable tokens (capabilities).
Re-exportsยง
use crate::ipc;๐use crate::ipc::MultiHandleResource;๐use crate::process::TaskId;๐use crate::sync::SpinLock;๐use crate::vfs;๐use alloc::collections::BTreeMap;๐use alloc::vec::Vec;๐use core::sync::atomic::AtomicU64;๐use core::sync::atomic::AtomicUsize;๐use core::sync::atomic::Ordering;๐use spin::Once;๐
Structsยง
- CapId
- Unique identifier for a capability
- CapPermissions
- Permissions associated with a capability
- Capability
- A capability token that grants access to a kernel resource
- Capability
Manager - Global capability manager
- Capability
Table - Table of capabilities for a process.
- DmaRights
- DMA rights carried by an IOMMU-related capability.
- Resource
Key ๐ - Key for per-resource refcounting: (resource_type, resource_ptr)
Enumsยง
- Resource
Type - Types of kernel resources that can be accessed via capabilities
Staticsยง
- CAPABILITY_
MANAGER ๐
Functionsยง
- get_
capability_ manager - Get a reference to the global capability manager
- release_
capability - Releases a capability and cleans up the underlying resource.