]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: correct the return value when loads initial sids
authorXiu Jianfeng <xiujianfeng@huawei.com>
Thu, 29 Jul 2021 03:16:44 +0000 (11:16 +0800)
committerPaul Moore <paul@paul-moore.com>
Mon, 2 Aug 2021 13:59:50 +0000 (09:59 -0400)
commit8539dc21d256aea2cd08a013b15b6ac7bd41ba5c
treee7a0283d4a1857d1558e614f1bb9794a44e7c63f
parent9d053b91aa3a1f19711d24c5372a408e5f60cd72
selinux: correct the return value when loads initial sids

It should not return 0 when SID 0 is assigned to isids.
This patch fixes it.

Cc: stable@vger.kernel.org
Fixes: 867c8d62e81ce ("selinux: remove unused initial SIDs and improve handling")
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
[PM: remove changelog from description]
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/policydb.c