This commit is contained in:
Drew Tada 2024-01-11 18:25:21 -06:00
parent fd0d5a64bc
commit b7d7edce90

View File

@ -1108,6 +1108,15 @@ pub async fn kernel(
sig.clone()
)
})
// if issuer is self, retrieve uncritically
} else if cap.issuer.process == on {
Some((
cap.clone(),
keypair
.sign(&rmp_serde::to_vec(&cap).unwrap())
.as_ref()
.to_vec()
))
// otherwise verify the signature before returning
} else {
match p.capabilities.get(cap) {