]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: forwarding: lib: quote the sysctl values
authorHangbin Liu <liuhangbin@gmail.com>
Wed, 8 Feb 2023 03:21:10 +0000 (11:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:50:32 +0000 (12:50 +0100)
commitdaffdb681d7f06c6a4e254179441e62cc5b66356
tree138fae441ab1140b282d8a5a9c4148fbcddc7b46
parent6ddad7f20dde3e121cc976bb533e4ece744ba9d0
selftests: forwarding: lib: quote the sysctl values

[ Upstream commit 3a082086aa200852545cf15159213582c0c80eba ]

When set/restore sysctl value, we should quote the value as some keys
may have multi values, e.g. net.ipv4.ping_group_range

Fixes: 78aab9994521 ("selftests: forwarding: lib: Add sysctl_set(), sysctl_restore()")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Link: https://lore.kernel.org/r/20230208032110.879205-1-liuhangbin@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/net/forwarding/lib.sh