]> 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)
commitb9130bdb5adcbd3723322699e26a032e6b562a99
treee7a0283d4a1857d1558e614f1bb9794a44e7c63f
parent0cd659a2bbbfd16fdcb63fecef8847e1d35f3cc8
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: 518f4d2b7b8f9 ("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