From b95bc2f1cce6e2e6d3a0f61d7584f621e0d8aa49 Mon Sep 17 00:00:00 2001 From: m8in Date: Mon, 26 Oct 2026 21:06:48 +0100 Subject: [PATCH] Ubuntu 26.04 does not allow Regex in sudoers-files, here we trust the script handling all parameters right. --- .../all/etc/sudoers.d/allow-composition-sync-send | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/definitions/default/hosts/all/etc/sudoers.d/allow-composition-sync-send b/definitions/default/hosts/all/etc/sudoers.d/allow-composition-sync-send index 23b2541..2af7c3e 100644 --- a/definitions/default/hosts/all/etc/sudoers.d/allow-composition-sync-send +++ b/definitions/default/hosts/all/etc/sudoers.d/allow-composition-sync-send @@ -1,10 +1,2 @@ -# Definition: 3 mandantory parameter, 4. and 5. are optional -# [[:space:]]+ -> Expects at least on space character -# ( ... )? -> defines the group as optional -Cmnd_Alias C_COMPOSITION_SYNC = \ - /cis/script/host/zfs/composition-sync/sync-send.sh \ - ^[a-zA-Z][a-zA-Z0-9_-]* \ - [a-zA-Z][a-zA-Z0-9.-]* \ - @[a-zA-Z0-9._:-]* \ - ([a-zA-Z0-9][a-zA-Z0-9._:-]*)?$ -composition-sync ALL = (root) NOPASSWD: C_COMPOSITION_SYNC +# Script sync-send.sh was designed to reject invalid parameters. +composition-sync ALL = (root) NOPASSWD: /cis/script/host/zfs/composition-sync/sync-send.sh