android_kernel_motorola_sm6375/security/selinux
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Christian Göttsche 2119237920 UPSTREAM: selinux: check return value of sel_make_avc_files
sel_make_avc_files() might fail and return a negative errno value on
memory allocation failures. Re-add the check of the return value,
dropped in 66f8e2f03c02 ("selinux: sidtab reverse lookup hash table").

Reported by clang-analyzer:

    security/selinux/selinuxfs.c:2129:2: warning: Value stored to
      'ret' is never read [deadcode.DeadStores]
            ret = sel_make_avc_files(dentry);
            ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~

Bug: 254441685
Fixes: 66f8e2f03c02 ("selinux: sidtab reverse lookup hash table")
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
[PM: description line wrapping, added proper commit ref]
Signed-off-by: Paul Moore <paul@paul-moore.com>
(cherry picked from commit bcb62828e3e8c813b6613db6eb7fd9657db248fc)
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: Id75241f6c1c3b501bda6160cee9be1a9c3b83fd3
2022-11-22 07:58:43 +00:00
..
include UPSTREAM: selinux: add proper NULL termination to the secclass_map permissions 2021-10-01 11:32:55 -07:00
ss This is the 5.4.167 stable release 2021-12-17 13:08:20 +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 This is the 5.4.189 stable release 2022-04-19 16:29:31 +02:00
ibpkey.c selinux: Fix error return code in sel_ib_pkey_sid_slow() 2020-11-18 19:20:30 +01:00
Kconfig
Makefile
netif.c
netlabel.c
netlink.c
netnode.c
netport.c
nlmsgtab.c ANDROID: selinux: modify RTM_GETNEIGH{TBL} 2021-06-21 08:31:02 +00:00
selinuxfs.c UPSTREAM: selinux: check return value of sel_make_avc_files 2022-11-22 07:58:43 +00:00
xfrm.c selinux: use correct type for context length 2022-04-15 14:18:22 +02:00