ra8-firmware
0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
shell_entrypoint_policy_hil.py
Go to the documentation of this file.
1
# SPDX-License-Identifier: MIT
2
# Copyright (c) 2026 Brighton Sikarskie
3
"""Raw typed-policy rows for the HIL shell domain.
4
5
The aggregate module converts these compact rows into ``ShellPolicy`` values.
6
Keeping HIL in a separate domain makes the authority reviewable without
7
letting the exhaustive aggregate exceed the repository file-size cap.
8
"""
9
10
from
__future__
import
annotations
11
12
from
typing
import
TypeAlias
13
14
ShellPolicyRow: TypeAlias = tuple[str, str, str, str, bool, bool]
15
16
HIL_POLICY_ROWS: tuple[ShellPolicyRow, ...] = (
17
(
"scripts/hil/all.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
18
(
"scripts/hil/bench.sh"
,
"privileged"
,
"entry"
,
"bash"
,
False
,
False
),
19
(
"scripts/hil/bench_contention.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
20
(
"scripts/hil/bench_hold_and_work.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
21
(
"scripts/hil/bench_unguarded_probe.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
22
(
"scripts/hil/camera_livestream.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
23
(
"scripts/hil/camera_picture.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
24
(
"scripts/hil/camera_tunnel.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
25
(
"scripts/hil/camera_video.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
26
(
"scripts/hil/check_alive.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
27
(
"scripts/hil/dev.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
28
(
"scripts/hil/dlm_reset.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
29
(
"scripts/hil/dlm_reset_local.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
30
(
"scripts/hil/erase.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
31
(
"scripts/hil/eth_tcp.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
32
(
"scripts/hil/exit_low_power.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
33
(
"scripts/hil/find_jlink.sh"
,
"privileged"
,
"entry"
,
"bash"
,
False
,
False
),
34
(
"scripts/hil/flash.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
35
(
"scripts/hil/flash_retry.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
36
(
"scripts/hil/hid_test.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
37
(
"scripts/hil/jlink_memprobe.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
38
(
"scripts/hil/lib/bench_client.sh"
,
"privileged"
,
"sourced-only"
,
"bash"
,
False
,
True
),
39
(
"scripts/hil/lib/bench_exit_traps_selftest.sh"
,
"privileged"
,
"entry"
,
"bash"
,
False
,
False
),
40
(
"scripts/hil/lib/bench_host.sh"
,
"privileged"
,
"sourced-only"
,
"bash"
,
False
,
True
),
41
(
"scripts/hil/lib/bench_human.sh"
,
"privileged"
,
"sourced-only"
,
"bash"
,
False
,
True
),
42
(
"scripts/hil/lib/bench_lock.sh"
,
"privileged"
,
"sourced-only"
,
"bash"
,
False
,
True
),
43
(
"scripts/hil/lib/bench_selftest.sh"
,
"privileged"
,
"sourced-only"
,
"bash"
,
False
,
True
),
44
(
"scripts/hil/lib/hil_conf.sh"
,
"privileged"
,
"dual-use"
,
"bash"
,
False
,
True
),
45
(
"scripts/hil/lib/preflash_guard.sh"
,
"privileged"
,
"sourced-only"
,
"bash"
,
False
,
True
),
46
(
"scripts/hil/lib/privileged_helper.sh"
,
"privileged"
,
"sourced-only"
,
"bash"
,
False
,
True
),
47
(
"scripts/hil/lib/python_env.sh"
,
"privileged"
,
"dual-use"
,
"bash"
,
True
,
True
),
48
(
"scripts/hil/lib/rig_contract.sh"
,
"privileged"
,
"dual-use"
,
"bash"
,
True
,
True
),
49
(
"scripts/hil/lib/rig_env.sh"
,
"privileged"
,
"sourced-only"
,
"bash"
,
False
,
True
),
50
(
"scripts/hil/lib/tty_resolve.sh"
,
"privileged"
,
"sourced-only"
,
"bash"
,
False
,
True
),
51
(
"scripts/hil/msc_test.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
52
(
"scripts/hil/ppps.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
53
(
"scripts/hil/probe.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
54
(
"scripts/hil/recover.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
55
(
"scripts/hil/reflash.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
56
(
"scripts/hil/rtt_scrape.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
57
(
"scripts/hil/run.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
58
(
"scripts/hil/run_direct.sh"
,
"privileged"
,
"entry"
,
"bash"
,
False
,
False
),
59
(
"scripts/hil/run_local.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
60
(
"scripts/hil/tapo.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
61
(
"scripts/hil/usb_test.sh"
,
"privileged"
,
"entry"
,
"bash"
,
True
,
False
),
62
)
scripts
checks
shell_entrypoint_policy_hil.py
Generated by
1.16.1