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)
commit4c156084daa8ee70978e4b150b5eb5fc7b1f15be
treee7a0283d4a1857d1558e614f1bb9794a44e7c63f
parentd99cf13f14200cdb5cbb704345774c9c0698612d
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: e3e0b582c321a ("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