1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
//! Cross-platform core for the captureDenials / learning-mode pipeline.
//!
//! MXC's learning-mode capture flow has three stages:
//!
//! 1. **Capture** — a backend runs the workload under an OS learning mode
//! and seals a native trace (on Windows, an ETW `.etl`). This lives in
//! the per-OS backend modules.
//! 2. **Analyse** — the trace is decoded into cross-platform
//! [`DeniedResource`] records. The per-OS decoder implements
//! [`DenialAnalyzer`]; this module owns the trait and the model.
//! 3. **Emit** — the records plus a terminating [`DenialSummary`] are
//! written to the actionable JSON output that host applications read to
//! regenerate policy. A deterministic verbose logging sibling contains bounded,
//! sensitive-value-redacted signatures for excluded decoder outcomes.
//!
//! This crate is the cross-platform hinge between stages 2 and 3: it
//! defines the public [`DeniedResource`] model, the [`DenialSummary`]
//! terminator, the [`DenialsDocument`] and [`VerboseLoggingDocument`] output shapes,
//! and the [`DenialAnalyzer`] decode trait. It carries no OS-specific code so
//! the wire format never encodes a platform assumption.
//!
//! ## Mode caveat
//!
//! What a capture contains depends on the active OS learning mode.
//! File/path, UI, and capability denials may be recorded under both
//! `learningMode` (`block`) and `permissiveLearningMode` (`allow`). The
//! concrete ETW event shape differs by mode, and records without a decoded
//! resource identifier are omitted rather than emitted as empty resources.
pub
pub use ;
pub use ;
pub use ;
pub use ;
pub use DenialSummary;
pub use ;