selinux: correct the return value when loads initial sids
stable inclusion from stable-5.10.58 commit f4984f60acc79bf4f626f42a152e6148d0fa4601 bugzilla: 176984 https://gitee.com/openeuler/kernel/issues/I4E2P4 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f4984f60acc79bf4f626f42a152e6148d0fa4601 -------------------------------- commit 4c156084 upstream. It should not return 0 when SID 0 is assigned to isids. This patch fixes it. Cc: stable@vger.kernel.org Fixes: e3e0b582 ("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> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
Chen Jun <chenjun102@huawei.com> Acked-by:
Weilong Chen <chenweilong@huawei.com> Signed-off-by:
Chen Jun <chenjun102@huawei.com> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment