summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRoshan Shariff <roshan.shariff@gmail.com>2021-05-24 01:30:38 -0600
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-07-20 17:41:38 +0200
commit219710d990e5ea8add3819aa239e15d13e518b04 (patch)
tree95b3ef305425a0a06bf4639619ec66901187d455 /test
parentf7b76d56968811b5ee7951f9d29261748c81a337 (diff)
downloadsystemd-219710d990e5ea8add3819aa239e15d13e518b04.tar.gz
rules.d: Properly quote $env{MODALIAS}
Add quotes around use of $env{MODALIAS} in rules.d/80-drivers.rules. The modalias can contain whitespace, for example when it is dynamically generated using device or vendor IDs. (cherry picked from commit 07c0e5eeaf3183963f4d680555d2289a33735d6e) (cherry picked from commit 1151d6f55dd5cc4925a52e0faeca98963114df9b)
Diffstat (limited to 'test')
-rw-r--r--test/fuzz/fuzz-udev-rules/80-drivers.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fuzz/fuzz-udev-rules/80-drivers.rules b/test/fuzz/fuzz-udev-rules/80-drivers.rules
index 16fa5d8e32..57d69b8232 100644
--- a/test/fuzz/fuzz-udev-rules/80-drivers.rules
+++ b/test/fuzz/fuzz-udev-rules/80-drivers.rules
@@ -2,7 +2,7 @@
ACTION!="add", GOTO="drivers_end"
-ENV{MODALIAS}=="?*", RUN{builtin}+="kmod load $env{MODALIAS}"
+ENV{MODALIAS}=="?*", RUN{builtin}+="kmod load '$env{MODALIAS}'"
SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="SD", RUN{builtin}+="kmod load tifm_sd"
SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="MS", RUN{builtin}+="kmod load tifm_ms"
SUBSYSTEM=="memstick", RUN{builtin}+="kmod load ms_block mspro_block"