mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
78c0e5f6b6
This patch extracts the child-management functionality from the init component into a new library called "sandbox". The library API is located at 'os/include/os/sandbox.h'. The sandbox API allows for the interaction of the component with the sandboxed children by providing locally implemented services. This mechanism is illustrated by the new test at os/src/test/sandbox. Issue #3601
28 lines
606 B
Plaintext
28 lines
606 B
Plaintext
build "core init test/sandbox app/dummy"
|
|
|
|
create_boot_directory
|
|
|
|
install_config {
|
|
<config>
|
|
<parent-provides>
|
|
<service name="LOG"/>
|
|
<service name="PD"/>
|
|
<service name="CPU"/>
|
|
<service name="ROM"/>
|
|
</parent-provides>
|
|
<default-route>
|
|
<any-service> <parent/> </any-service>
|
|
</default-route>
|
|
<default caps="500"/>
|
|
<start name="test-sandbox">
|
|
<resource name="RAM" quantum="10M"/>
|
|
</start>
|
|
</config>
|
|
}
|
|
|
|
build_boot_image { core ld.lib.so init test-sandbox sandbox.lib.so dummy }
|
|
|
|
append qemu_args " -nographic "
|
|
|
|
run_genode_until "child \"dummy\" exited with exit value 0.*\n" 20
|