[kernel][magenta] Implement policy guts

.. and wire to one syscall.

This CL shows the end-to-end process of
computing policy and applying it to a
single case: mx_channel_create().

It also changes how policy is declared
making it simpler to process: now
regardless of the condition, the policy
have a single set of constants
MX_ACTION_POL_DENY, MX_POL_ACTION_ALLOW
and so on.

Change-Id: I2b09ce54af3c1ab3332e7b2ab160cd5b768e8dd5
12 files changed
tree: 3a54f46112ca512c04a476719c209ee2976fedc9
  1. bootloader/
  2. docs/
  3. kernel/
  4. make/
  5. prebuilt/
  6. scripts/
  7. system/
  8. third_party/
  9. .clang-format
  10. .dir-locals.el
  11. .gitignore
  12. .travis.yml
  13. AUTHORS
  14. LICENSE
  15. makefile
  16. navbar.md
  17. PATENTS
  18. README.md
README.md

Magenta

Magenta is the core platform that powers the Fuchsia OS. Magenta is composed of a microkernel (source in kernel/...) as well as a small set of userspace services, drivers, and libraries (source in system/...) necessary for the system to boot, talk to hardware, load userspace processes and run them, etc. Fuchsia builds a much larger OS on top of this foundation.

The canonical Magenta Git repository is located at: https://fuchsia.googlesource.com/magenta

A read-only mirror of the code is present at: https://github.com/fuchsia-mirror/magenta

The Magenta Kernel provides syscalls to manage processes, threads, virtual memory, inter-process communication, waiting on object state changes, and locking (via futexes).

Currently there are some temporary syscalls that have been used for early bringup work, which will be going away in the future as the long term syscall API/ABI surface is finalized. The expectation is that there will be 10s, not 100s of syscalls.

Magenta syscalls are generally non-blocking. The wait (one, many, set) family of syscalls, ioport reads, and thread sleep being the notable exceptions.

This page is a non-comprehensive index of the magenta documentation.