net: sched: remove duplicate check of user rights in qdisc
authorZhengchao Shao <shaozhengchao@huawei.com>
Fri, 19 Aug 2022 04:18:54 +0000 (12:18 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 23 Aug 2022 08:18:26 +0000 (10:18 +0200)
commitab4850819176a92864f6ebd6c932ed926a337054
treeaa88c1306f30cab41f72c95cb17d241dd5b84178
parent97d29b9231c73d8c2c1c5b6add6d1f679bb579f9
net: sched: remove duplicate check of user rights in qdisc

In rtnetlink_rcv_msg function, the permission for all user operations
is checked except the GET operation, which is the same as the checking
in qdisc. Therefore, remove the user rights check in qdisc.

Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Message-Id: <20220819041854.83372-1-shaozhengchao@huawei.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/sched/cls_api.c
net/sched/sch_api.c