提交 d6409e5c 编写于 作者: D Davide Caratti 提交者: Xie XiuQi

tc-tests: test denial of 'goto chain' on 'random' traffic in gact.json

mainline inclusion
from mainline-4.20
commit 88c2e3b4a97
category: bugfix
bugzilla: 6145
CVE: NA

-------------------------------------------------

add test to verify if act_gact forbids 'goto chain' control actions on
'random' traffic in gact.json.
Signed-off-by: NDavide Caratti <dcaratti@redhat.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Signed-off-by: NZhiqiang Liu <liuzhiqiang26@huawei.com>
Signed-off-by: NMao Wenan <maowenan@huawei.com>
Reviewed-by: NWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 e4f08355
...@@ -536,5 +536,29 @@ ...@@ -536,5 +536,29 @@
"matchPattern": "^[ \t]+index [0-9]+ ref", "matchPattern": "^[ \t]+index [0-9]+ ref",
"matchCount": "0", "matchCount": "0",
"teardown": [] "teardown": []
},
{
"id": "8e47",
"name": "Add gact action with random determ goto chain control action",
"category": [
"actions",
"gact"
],
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action pass random determ goto chain 1 2 index 90",
"expExitCode": "255",
"verifyCmd": "$TC actions list action gact",
"matchPattern": "action order [0-9]*: gact action pass random type determ goto chain 1 val 2.*index 90 ref",
"matchCount": "0",
"teardown": [
"$TC actions flush action gact"
]
} }
] ]
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册