mirror of
https://github.com/m8tin/cis.git
synced 2026-11-02 14:17:24 +01:00
Ubuntu 26.04 does not allow Regex in sudoers-files, here we trust the script handling all parameters right.
This commit is contained in:
1 file changed
+2
-10
@@ -1,10 +1,2 @@
|
|||||||
# Definition: 3 mandantory parameter, 4. and 5. are optional
|
# Script sync-send.sh was designed to reject invalid parameters.
|
||||||
# [[:space:]]+ -> Expects at least on space character
|
composition-sync ALL = (root) NOPASSWD: /cis/script/host/zfs/composition-sync/sync-send.sh
|
||||||
# ( ... )? -> 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
|
|
||||||
Reference in new issue
Block a user