]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit487afb82e5135ce5a878ca111ea4349d9c119d5c
treeaa88c1306f30cab41f72c95cb17d241dd5b84178
parent6888dff268fc9f426aa327a811bc339bc01fff90
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