acrn-kernel/security/selinux/ss
Christian Göttsche d6b64d710e selinux: set next pointer before attaching to list
commit 70d91dc9b2 upstream.

Set the next pointer in filename_trans_read_helper() before attaching
the new node under construction to the list, otherwise garbage would be
dereferenced on subsequent failure during cleanup in the out goto label.

Cc: <stable@vger.kernel.org>
Fixes: 4300590243 ("selinux: implement new format of filename transitions")
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-30 16:11:07 +02:00
..
avtab.c
avtab.h
conditional.c
conditional.h
constraint.h
context.c
context.h
ebitmap.c
ebitmap.h
hashtab.c
hashtab.h
mls.c
mls.h
mls_types.h
policydb.c
policydb.h
services.c
services.h
sidtab.c
sidtab.h
symtab.c
symtab.h