redox/config/x86_64/desktop-contain.toml

44 lines
912 B
TOML
Raw Normal View History

# Desktop configuration using the Contain sandbox
2024-01-03 20:22:34 +01:00
2024-01-04 21:46:01 +01:00
include = ["../desktop.toml"]
2024-01-03 20:22:34 +01:00
# Override the default settings here
# General settings
[general]
# Filesystem size in MiB
# filesystem_size = 1024
# Package settings
[packages]
# example = {}
2024-01-04 21:46:01 +01:00
# Override orbital init to use contain_orblogin
2024-01-03 20:22:34 +01:00
[[files]]
path = "/usr/lib/init.d/20_orbital"
2024-01-03 20:22:34 +01:00
data = """
audiod
export VT 3
2024-01-03 20:22:34 +01:00
orbital contain_orblogin launcher
unset VT
2024-01-03 20:22:34 +01:00
"""
2024-01-04 21:46:01 +01:00
# Override console init to use contain
2024-01-03 20:22:34 +01:00
[[files]]
path = "/usr/lib/init.d/30_console"
2024-01-03 20:22:34 +01:00
data = """
2024-01-04 21:46:01 +01:00
getty --contain 2
getty --contain /scheme/debug/no-preserve -J
2024-01-03 20:22:34 +01:00
"""
[[files]]
path = "/etc/contain.toml"
data = """
pass_schemes = ["rand", "null", "tcp", "udp", "thisproc", "pty", "orbital", "display.vesa"]
sandbox_schemes = ["file"]
files = ["file:/dev/null"]
rofiles = ["file:/etc/passwd", "file:/etc/hostname", "file:/etc/localtime"]
dirs = ["file:/tmp"]
rodirs = ["file:/bin", "file:/ui"]
"""