Skip to content
Commit 4b9b60b5 authored by Christian Göttsche's avatar Christian Göttsche Committed by Greg Kroah-Hartman
Browse files

selinux: use correct type for context length



[ Upstream commit b97df7c0 ]

security_sid_to_context() expects a pointer to an u32 as the address
where to store the length of the computed context.

Reported by sparse:

    security/selinux/xfrm.c:359:39: warning: incorrect type in arg 4
                                    (different signedness)
    security/selinux/xfrm.c:359:39:    expected unsigned int
                                       [usertype] *scontext_len
    security/selinux/xfrm.c:359:39:    got int *

Signed-off-by: default avatarChristian Göttsche <cgzones@googlemail.com>
[PM: wrapped commit description]
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7507ead1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment