Better HN
topnewbestaskshowjobs
Log inSign up

jamesr_

13 karma · joined May 21, 2021 (5y ago) · 1 submissions

https://github.com/jamesr
Submissions

comment 4y ago · link · parent

The kernel maintains a table of which handle values each process owns and uses that to check the capabilities of the calling process when handling a syscall. Sending a capability in a message updates this table as the ownership changes.

We use (somewhat) large and non-dense numerical values for handle values to reduce the risk of accidental reuse of values.