mirror of
https://framagit.org/ppom/reaction
synced 2026-03-14 12:45:47 +01:00
- 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
61 lines
1.1 KiB
Jsonnet
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'],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|