Commit 70d91dc
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: <[email protected]>
Fixes: 4300590 ("selinux: implement new format of filename transitions")
Signed-off-by: Christian Göttsche <[email protected]>
Signed-off-by: Paul Moore <[email protected]>1 parent 06c2afb commit 70d91dc
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2005 | 2005 | | |
2006 | 2006 | | |
2007 | 2007 | | |
| 2008 | + | |
2008 | 2009 | | |
2009 | 2010 | | |
2010 | 2011 | | |
| |||
2017 | 2018 | | |
2018 | 2019 | | |
2019 | 2020 | | |
2020 | | - | |
2021 | 2021 | | |
2022 | 2022 | | |
2023 | 2023 | | |
| |||
0 commit comments