authorized-exec/config.example.pl
Georg Pfuetzenreuter 3bed7bad11
Anchoring
For better security out of the box, always perform exact matching unless
a more lenient pattern is explicitly provided by the administrator.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2024-09-15 18:34:57 +02:00

12 lines
189 B
Prolog

# the patterns are read as regular expressions and anchored with ^ and $ by default
(
'georg' => [
'echo hi',
'true',
'printf %s [a-z0-9 ]+',
],
'root' => [
'ls -a /root',
],
)