kernel_optimize_test/security/selinux/ss
Ondrej Mosnacek acbc372e61 selinux: check sidtab limit before adding a new entry
We need to error out when trying to add an entry above SIDTAB_MAX in
sidtab_reverse_lookup() to avoid overflow on the odd chance that this
happens.

Cc: stable@vger.kernel.org
Fixes: ee1a84fdfe ("selinux: overhaul sidtab to fix bug and improve performance")
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Paul Moore <paul@paul-moore.com>
2019-07-24 11:13:34 -04:00
..
avtab.c selinux: convert to kvmalloc 2019-03-12 10:04:02 -07:00
avtab.h selinux: convert to kvmalloc 2019-03-12 10:04:02 -07:00
conditional.c selinux: convert to kvmalloc 2019-03-12 10:04:02 -07:00
conditional.h
constraint.h
context.h
ebitmap.c selinux: provide __le variables explicitly 2019-05-21 15:49:21 -04:00
ebitmap.h
hashtab.c
hashtab.h
mls_types.h
mls.c selinux/stable-4.21 PR 20181224 2018-12-27 12:01:58 -08:00
mls.h selinux: overhaul sidtab to fix bug and improve performance 2018-12-05 16:12:32 -05:00
policydb.c selinux: fix NULL dereference in policydb_destroy() 2019-03-18 12:19:48 -04:00
policydb.h selinux: convert to kvmalloc 2019-03-12 10:04:02 -07:00
services.c selinux: format all invalid context as untrusted 2019-07-01 16:29:05 -04:00
services.h selinux: use separate table for initial SID lookup 2018-12-05 15:36:12 -05:00
sidtab.c selinux: check sidtab limit before adding a new entry 2019-07-24 11:13:34 -04:00
sidtab.h selinux: overhaul sidtab to fix bug and improve performance 2018-12-05 16:12:32 -05:00
status.c
symtab.c
symtab.h