pub enum KernelRequest {
CapDelegate {
new_cap: Capability,
target: PluginId,
},
CapRevoke {
cap_id: CapId,
},
SetPluginLevel {
plugin_id: PluginId,
level: SecurityLevel,
},
SetResourceLevel {
resource_id: ResourceId,
level: SecurityLevel,
},
Tick,
RotateKey {
new_key: Key,
},
}Expand description
Kernel dispatch request (extractable)
All security-critical mutations go through this enum. Policy evaluation happens in the shell BEFORE dispatch.
Corresponds to Lean: inductive KernelRequest
Variants§
CapDelegate
Delegate a capability to a plugin Pre-condition: Policy already approved by shell
Fields
§
new_cap: CapabilityThe new capability to delegate
CapRevoke
Revoke a capability (and descendants)
SetPluginLevel
Update plugin security label
Fields
§
level: SecurityLevelThe new security level to assign
SetResourceLevel
Update resource security label
Fields
§
resource_id: ResourceIdThe resource whose level is being changed
§
level: SecurityLevelThe new security level to assign
Tick
Advance time
RotateKey
Rotate HMAC key (kernel-only, privileged operation)
SECURITY: Only privileged kernel code should invoke this. The current key becomes the previous key for grace period verification.
Trait Implementations§
Source§impl Clone for KernelRequest
impl Clone for KernelRequest
Source§fn clone(&self) -> KernelRequest
fn clone(&self) -> KernelRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for KernelRequest
impl RefUnwindSafe for KernelRequest
impl Send for KernelRequest
impl Sync for KernelRequest
impl Unpin for KernelRequest
impl UnsafeUnpin for KernelRequest
impl UnwindSafe for KernelRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more