assert_spec linux
create_boot_directory
proc tresor_image_file { } {
return "vfs_tresor_block.img"
}
set use_interactively [expr ![get_cmd_switch --autopilot]]
import_from_depot [depot_user]/pkg/[drivers_interactive_pkg] \
[depot_user]/pkg/terminal \
[depot_user]/src/ncurses \
[depot_user]/src/bash \
[depot_user]/src/coreutils \
[depot_user]/src/nitpicker
build {
core
timer
init
server/lx_fs
lib/vfs_tresor
lib/vfs_tresor_crypto_aes_cbc
lib/vfs_tresor_crypto_memcopy
lib/vfs_tresor_trust_anchor
lib/vfs_import
lib/vfs_jitterentropy
lib/vfs_pipe
test/vfs_stress
test/libc
server/log_terminal
server/report_rom
server/fs_rom
app/tresor_init_trust_anchor
app/sequence
}
set config {
}
append_if $use_interactively config {
}
append_if [expr !$use_interactively] config {
}
append config {
2018-01-01 00:01
}
install_config $config
set shell_script "run/vfs_tresor.sh"
set repo "[repository_contains $shell_script]"
exec cp $repo/$shell_script bin/
append boot_modules {
lx_fs
tresor_init_trust_anchor
vfs_tresor.lib.so
vfs_tresor_crypto_aes_cbc.lib.so
vfs_tresor_crypto_memcopy.lib.so
vfs_tresor_trust_anchor.lib.so
vfs_tresor.sh
vfs.lib.so
vfs_import.lib.so
vfs_jitterentropy.lib.so
vfs_pipe.lib.so
posix.lib.so
libc.lib.so
libcrypto.lib.so
log_terminal
fs_rom
report_rom
sequence
init
core
timer
ld.lib.so
}
append boot_modules {
encrypted_private_key superblock_hash
}
append boot_modules [tresor_image_file]
set fd [open [run_dir]/genode/focus w]
puts $fd " \" domain=\"default\"/>"
close $fd
build_boot_image $boot_modules
if {$use_interactively} {
run_genode_until forever
} else {
run_genode_until {.*--- Automated Tresor testing finished.*} 1800
}