mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-22 02:07:47 +00:00
This patch unconditionally applies the labeling of sessions and thereby removes the most common use case of 'Child_policy::filter_session_args'. Furthermore, the patch removes an ambiguity of the session labels of sessions created by the parent of behalf of its child, e.g., the PD session created as part of 'Child' now has the label "<child-name>" whereas an unlabeled PD-session request originating from the child has the label "<child-name> -> ". This way, the routing-policy of 'Child_policy::resolve_session_request' can differentiate both cases. As a consequence, the stricter labeling must now be considered wherever a precise label was specified as a key for a session route or a server- side policy selection. The simplest way to adapt those cases is to use a 'label_prefix' instead of the 'label' attribute. Alternatively, the 'label' attribute may used by appending " -> " (note the whitespace). Fixes #2171
83 lines
1.5 KiB
Plaintext
83 lines
1.5 KiB
Plaintext
assert_spec linux
|
|
|
|
#
|
|
# Build
|
|
#
|
|
|
|
build { core init drivers/timer
|
|
server/dynamic_rom
|
|
app/rom_to_file
|
|
server/lx_fs
|
|
}
|
|
|
|
create_boot_directory
|
|
|
|
#
|
|
# Generate config
|
|
#
|
|
|
|
install_config {
|
|
<config>
|
|
<parent-provides>
|
|
<service name="LOG"/>
|
|
<service name="RM"/>
|
|
<service name="ROM" />
|
|
<service name="RAM" />
|
|
<service name="CPU" />
|
|
<service name="PD" />
|
|
</parent-provides>
|
|
<default-route>
|
|
<any-service> <any-child/> <parent/> </any-service>
|
|
</default-route>
|
|
<start name="timer">
|
|
<resource name="RAM" quantum="1M"/>
|
|
<provides><service name="Timer"/></provides>
|
|
</start>
|
|
<start name="dynamic_rom">
|
|
<resource name="RAM" quantum="4M"/>
|
|
<provides><service name="ROM"/></provides>
|
|
<config verbose="yes">
|
|
<rom name="test">
|
|
<inline description="update"><test />
|
|
</inline>
|
|
<sleep milliseconds="1000" />
|
|
<inline description="finished"/>
|
|
</rom>
|
|
</config>
|
|
</start>
|
|
<start name="lx_fs">
|
|
<resource name="RAM" quantum="4M"/>
|
|
<provides> <service name="File_system" /> </provides>
|
|
<config>
|
|
<policy label_prefix="rom_to_file" root="/fs_test" writeable="yes" />
|
|
</config>
|
|
</start>
|
|
<start name="rom_to_file">
|
|
<resource name="RAM" quantum="4M"/>
|
|
<config rom="test" />
|
|
</start>
|
|
</config>}
|
|
|
|
#
|
|
# Boot image
|
|
#
|
|
|
|
exec mkdir -p bin/fs_test
|
|
|
|
build_boot_image { core init timer
|
|
dynamic_rom
|
|
rom_to_file
|
|
lx_fs
|
|
fs_test
|
|
}
|
|
|
|
append qemu_args " -nographic "
|
|
|
|
run_genode_until "finished" 10
|
|
|
|
set output [exec cat bin/fs_test/test]
|
|
|
|
compare_output_to {<test />}
|
|
|
|
exec rm -r bin/fs_test
|