android_kernel_motorola_sm6375/security/selinux
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Christian Göttsche 799f22279e selinux: use correct type for context length
[ Upstream commit b97df7c098c531010e445da88d02b7bf7bf59ef6 ]

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: Christian Göttsche <[email protected]>
[PM: wrapped commit description]
Signed-off-by: Paul Moore <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2022-04-15 14:18:22 +02:00
..
include
ss selinux: fix race condition when computing ocontext SIDs 2021-12-17 10:12:24 +01:00
.gitignore
avc.c selinux: use __GFP_NOWARN with GFP_NOWAIT in the AVC 2021-07-19 08:53:10 +02:00
hooks.c LSM: general protection fault in legacy_parse_param 2022-04-15 14:18:21 +02:00
ibpkey.c
Kconfig
Makefile
netif.c
netlabel.c
netlink.c
netnode.c
netport.c
nlmsgtab.c
selinuxfs.c
xfrm.c selinux: use correct type for context length 2022-04-15 14:18:22 +02:00