The program rights
A demonstration of rights on handles (properties 2 and 20).
The root service gives this program two handles, each with a part of its rights: the machine with Inspect, the boot image with Read. The program asks the kernel for nine operations. The window shows each answer of the kernel: the kernel refuses each operation that needs another right.
| Fact | Value |
|---|---|
| Source | programs/rights |
| Boot image | in the boot image; the image is not built, so its size is not known |
| Imports | none |
| Imported by | none |
Exports
| Export | What it does |
|---|---|
| entry() |
Read from the source of the module, as the build reads it to describe the exports (tools/kerneltool/describe.odin).
What the root service gives it
| What | Value | As the root service says |
|---|---|---|
| Grants | {.Inspect, .Image} | It shows what the kernel refuses. |
| Budget: pages, programs, threads | {pages = 2048, programs = 1, threads = 2} |
Read from grants_of and things_of in programs/root/main.odin; budget_of in the same file adds the limits of processor time and of log records.
