linux-stable/security/selinux/ss
Christian Göttsche 70d91dc9b2 selinux: set next pointer before attaching to list
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>
2023-08-18 16:13:03 -04:00
..
avtab.c selinux: retain const qualifier on string literal in avtab_hash_eval() 2023-05-08 16:49:14 -04:00
avtab.h selinux: retain const qualifier on string literal in avtab_hash_eval() 2023-05-08 16:49:14 -04:00
conditional.c selinux: avoid bool as identifier name 2023-06-05 17:04:01 -04:00
conditional.h selinux: avoid bool as identifier name 2023-06-05 17:04:01 -04:00
constraint.h
context.c
context.h selinux: keep context struct members in sync 2023-05-18 13:38:39 -04:00
ebitmap.c selinux: declare read-only parameters const 2022-08-30 17:14:36 -04:00
ebitmap.h selinux: declare read-only parameters const 2022-08-30 17:14:36 -04:00
hashtab.c selinux: fix bad cleanup on error in hashtab_duplicate() 2022-05-17 18:34:35 -04:00
hashtab.h
mls.c selinux: drop return statement at end of void functions 2022-02-18 10:42:12 -05:00
mls.h
mls_types.h selinux: declare read-only parameters const 2022-08-30 17:14:36 -04:00
policydb.c selinux: set next pointer before attaching to list 2023-08-18 16:13:03 -04:00
policydb.h selinux: deprecated fs ocon 2023-05-23 15:37:56 -04:00
services.c selinux: small cleanups in selinux_audit_rule_init() 2023-05-08 16:53:41 -04:00
services.h selinux: stop passing selinux_state pointers and their offspring 2023-03-14 15:22:45 -04:00
sidtab.c selinux/stable-6.2 PR 20221212 2022-12-13 09:32:05 -08:00
sidtab.h selinux: remove the sidtab context conversion indirect calls 2022-11-09 11:00:49 -05:00
symtab.c
symtab.h