Components#
- Generic Trace Library
- bitmanipulation
- concurrency
- containers
- containers_rust
- filesystem
- FlatBuffers-Library
- Hash
- JSON-Library
- language
- Memory
- log_frontend
- Log Frontend Requirements
- Component Architecture
- FMEA (Failure Modes and Effects Analysis)
- DFA (Dependent Failure Analysis)
- Assumptions of Use
- Detailed Design
- Rust Bridge Detailed Design
- Log Frontend Detailed Design
- External Libraries
- Detailed Design
- Low Level Design of the Configuration and Initialization for
mw::log - Dependency graph
- References
- Registry Aware Recorder Factory
- Dynamic backend loading for mw::log
- Goal
- Targets
- Dynamic loading and Application Binary Interface (ABI)
- Design Decision for dlopen() based solution
- 1. Detailed Design
- 1.1 Detailed Design Requirements
- REQ-DD-1: C++ Plugin Boundary with Toolchain Identity
- REQ-DD-2: ABI Version Guard
- REQ-DD-3: Configuration-Driven Backend Loading
- REQ-DD-4: Fallback Chain
- REQ-DD-5: Frontend FFI Preservation
- REQ-DD-6: Shared libc/libstdc++ Contract
- REQ-DD-7: Backend Loading inside Runtime Constructor (Meyer’s Singleton)
- 1.2 Verification Requirements
- 1.1 Detailed Design Requirements
- 2. Safety Requirements
- 3. Security Requirements
- 3.1 Detailed Design
- REQ-SEC-1: Absolute Path for dlopen()
- REQ-SEC-2: qtsafefs Enforcement for production software runnning QNX
- REQ-SEC-3: Compensating Controls for Omitted RTLD_NOSHARE
- REQ-SEC-4: RPATH Hardening (Plugin and Transitive Dependencies)
- REQ-SEC-5: Exported Symbol Minimization
- REQ-SEC-6: Environment Variable Integrity Check (Needs further investigation)
- REQ-SEC-7: dlerror() Output Sanitization
- REQ-SEC-8: QNX secpol and Ability Restrictions
- REQ-SEC-9: PROT_EXEC Enforcement via procnto -mX
- REQ-SEC-10: ELF Hardening Flags
- 3.2 Verification Requirements
- REQ-SEC-V1: Absolute Path Enforcement
- REQ-SEC-V2: Backend Directory Ownership Verification
- REQ-SEC-V3: Compensating Controls Enforcement
- REQ-SEC-V4: Exported Symbol Check
- REQ-SEC-V5: RPATH Verification
- REQ-SEC-V6: ELF Hardening Verification
- REQ-SEC-V7: pathtrust Enforcement
- REQ-SEC-V8: Execute Permission Enforcement
- REQ-SEC-V9: Environment Variable Mutation Detection
- REQ-SEC-V10: dlerror() Sanitization
- REQ-SEC-V11: Double-Load Same Soname from Different Paths
- 3.1 Detailed Design
- 4. Performance Requirements
- 5. Assumptions of Use (AoUs)
- AOU-1: qtsafefs Backend Directory
- AOU-2: pathtrust-Enabled Filesystems
- AOU-3: procnto -mX Enabled
- AOU-4: secpol Configuration
- AOU-5: Backend .so File Permissions
- AOU-6: Environment Variable Integrity
- AOU-7: Logging Configuration File
- AOU-8: No mw::log in Plugin Constructors
- AOU-9: Shared Memory Semantics
- AOU-10: Plugin Vtable Lifetime
- AOU-11: Toolchain Identity for Backend Plugins
- AOU-12: Transitive Dependencies on Trusted Filesystems
- AOU-13: EM/PHM Timing Budget
- TODOs
- Design Decisions
- Implementation Inspection Checklist
- os
- result
- Scope Exit
- Cross-Language Shared-Layout Data Types
- static_reflection_with_serialization
- String Manipulation
- Utils
Overview#
Bit Manipulation Library (doc__bitmanipulation): Utilities for bit manipulation.
Concurrency Library (doc__concurrency): Provides a generic interface to execute any C++ callable in a parallel context, supporting various execution strategies (e.g., thread pool, timed execution), thread safety, interruption handling, and periodic/delayed task execution.
Containers Library (doc__containers): Offers a
DynamicArray(fixed-size array with dynamic construction-time size) and an intrusive linked list implementation conforming to the P0406R1 proposal.JSON-Library (doc__json): JSON abstraction layer that can switch between different parsers/serializers under the hood.
FlatBuffers-Library (doc__flatbuffers): FlatBuffers-Library with serialization, read access, and structural verification of FlatBuffers data, plus code generation via
flatcfor C++, Rust, and Python.Filesystem Library (doc__filesystem): Filesystem manipulation library similar to
std::filesystem.Hash Library (doc__hash): Provides CRC-32 checksums and SHA hashes (SHA-256, SHA-384, SHA-512). Includes a native SHA-256 implementation for safety-oriented, non-cryptographic data-integrity checks.
FutureCPP Library (doc__futurecpp): Extends the C++17 Standard Library with features from newer C++ standards up to C++26, as well as selected proposals for the C++ Standard Library.
Safecpp Library (doc__safecpp): A collection of utilities that helps developers write safer C++ code, including overflow-safe arithmetic, scoped callable execution, abort-on-exception enforcement, atomic overflow prevention, null-terminated string view utilities, and coverage data preservation in GTest death tests.
Memory Library (doc__memory): Endianness utilities, size and alignment information, and a ring buffer with construction-time capacity.
OS Library (doc__os): OS Abstraction Layer (OSAL) to interface with different POSIX-like operating systems such as Linux and QNX.
Result Library (doc__result): Provides a unified approach to error handling without exceptions, conforming to C++23
std::expected.Scope Exit (doc__scope_exit): Provides RAII-based scope guards that invoke a callable on scope exit unless released.
Cross-Language Shared-Layou... (doc__shared_layout): Cross-Language Shared-Layout Data Types for zero-copy data exchange between C++ and Rust.
Static Reflection With Seri... (doc__static_reflection_with_serialization): A header-only library for binary serialization, deserialization, and compile-time type reflection of heterogenuous C++ data structures with focus on compile-time safety and efficiency of serialization, as well as efficiency of filtering by content during deserialization.
mw::log: Logging frontend.
String Manipulation (doc__string_manipulation): Provides allocation-conscious helpers for command-line arguments, lazy string-view splitting, and string-like comparison and hashing.
Utils Library (doc__utils): Provides a collection of small, reusable utilities that do not fit into the other base libraries.