genode/repos/os/src/server/chroot
Norman Feske b078224753 Replace Genode::strncpy by Genode::copy_cstring
- Since Genode::strncpy is not 100% compatible with the POSIX
  strncpy function, better use a distinct name.

- Remove bogus return value from the function, easing the potential
  enforcement of mandatory return-value checks later.

Fixes #3752
2020-05-27 11:56:45 +02:00
..
README Chroot: change root to explicit prefix and label sub-dirs 2018-11-29 11:46:02 +01:00
component.cc Replace Genode::strncpy by Genode::copy_cstring 2020-05-27 11:56:45 +02:00
target.mk import chroot from world repository 2017-10-05 17:40:04 +02:00

README

This component intercepts File_system requests and changes
the root directory attached to requests as defined by
policy or by converting session label elements to a
hierarchy of directories.

Sessions matching policies with _path_ attributes will be "chrooted" to the
configured policy path, sessions not matching policies with _path_ attributes
will be chrooted into paths formed from each session label element. Sessions
matching polices with a _path_prefix_ attribute are both rooted at the
attribute path and in sub-directories formed by the session label.
Sessions requests are downgraded to read-only requests unless matched by
polices with an affirmative _writeable_ attribute. Sessions not matching any
policy are rejected.

Please note that this server is only effective for File_system servers that
honor the "root" or "writeable" argument to session requests.