selinux: Add boundary check in put_entry()
authorXiu Jianfeng <xiujianfeng@huawei.com>
Tue, 14 Jun 2022 02:14:49 +0000 (10:14 +0800)
committerPaul Moore <paul@paul-moore.com>
Wed, 15 Jun 2022 01:52:37 +0000 (21:52 -0400)
commit15ec76fb29be31df2bccb30fc09875274cba2776
tree77a1eb30dffc1231cafb9f21ea2aa2a55af72c16
parent73de1befcc53a7c68b0c5e76b9b5ac41c517760f
selinux: Add boundary check in put_entry()

Just like next_entry(), boundary check is necessary to prevent memory
out-of-bound access.

Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/policydb.h