]> www.infradead.org Git - users/jedix/linux-maple.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>
Tue, 14 Feb 2023 18:11:48 +0000 (19:11 +0100)
commit81685c59dc4b8a790955b560fe47eec4f4f2d694
tree3d9a9ce2b51c7cb5a917410f05767b72debfac59
parent399f1cccc447546e77967cc957414bb1dd0f7b4e
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: f5ae57784ba8 ("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