reaction/tests/test-conf/test-virtual.jsonnet
ppom 2f57f73ac9
Fix systemd functionality
- Non-absolute WorkingDirectory was refused by systemd
- Plugin specific-conf updated

Improvements:
- ReadOnlyPaths=/
- ProtectHome=true in release builds
- SystemCallFilter further restricted

Disabled:
- DynamicUser: breaks stdio communication, FIXME!
- RestrictAddressFamilies: seems impossible to override to default.
- CapabilityBoundingSet: too restrictive
2026-02-12 12:00:00 +01:00

61 lines
1.1 KiB
Jsonnet

{
patterns: {
num: {
regex: @"[0-9]+",
},
all: {
regex: @".*",
},
},
plugins: {
virtual: {
path: './target/debug/reaction-plugin-virtual',
check_root: false,
systemd_options: {
},
},
},
streams: {
s0: {
cmd: ['bash', '-c', 'for i in $(seq 4); do echo $i; sleep 0.1; done; sleep 1.2'],
filters: {
f0: {
regex: ['^<num>$'],
actions: {
a0: {
type: 'virtual',
options: {
send: 'a0 <num>',
to: 's1',
},
},
b0: {
type: 'virtual',
options: {
send: 'b0 <num>',
to: 's1',
},
after: '600ms',
},
},
},
},
},
s1: {
type: 'virtual',
options: {},
filters: {
f1: {
regex: ['^<all>$'],
actions: {
a1: {
cmd: ['sh', '-c', 'echo <all> >>./log'],
},
},
},
},
},
},
}