Skip to main content

Module review

Module review 

Source
Expand description

The review the maintenance tick makes of what may have drifted (spec 3.2 §7.4, §9.1 permission drift).

At most once per partition and UTC day, the kernel lists what is older than the partition’s ProactivityPolicy::review_period:

ListWhat
rulesStanding rules with no expires_at, granted longer ago than the period, each with a renewal ask
sleepersWaiting processes asleep or suspended for longer than the period
frozenProcesses a freeze parked longer ago than the period
crossingsCrossings out of the partition that recur, at least ReviewReport::CROSSING_THRESHOLD times in ReviewReport::CROSSING_WINDOW by source, target, resource and name (spec 3.2 §7.8), each with partition membership as the remedy

A report is published as a KernelEvent::Review and written as one kernel.review audit record — ids, ages, resource names and counts, no content. The review never revokes, suspends or kills anything, and never waives a crossing.

adk-kernel reads no harness type (§6 D-1), so it reads standing rules through a StandingRuleSource the harness implements over its rule store.

Structs§

AgedProcess
A process the review reports (spec 3.2 §7.4).
ReviewReport
One partition’s review (spec 3.2 §7.4, §9.1): what is older than its review period.
RuleAge
When a standing rule was granted and whether it expires, as the review reads it (spec 3.2 §9.1).
StaleRule
A standing rule the review asks to renew (spec 3.2 §9.1).

Traits§

StandingRuleSource
Reads the standing rules the review checks (spec 3.2 §9.1): the harness implements it over its rule store and Harness::kernel registers it (KernelBuilder::standing_rules).