diff options
author | Xin Xiong <xiongx18@fudan.edu.cn> | 2022-04-28 06:39:08 +0300 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2022-07-10 01:13:59 +0300 |
commit | 11c3627ec6b56c1525013f336f41b79a983b4d46 (patch) | |
tree | 0f68d3c99a74ef6e88371d3663d8fa9f9595ac11 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bab1f77fb815374e9d092a72d5a2abc7c943bca3 (diff) | |
download | linux-11c3627ec6b56c1525013f336f41b79a983b4d46.tar.xz |
apparmor: fix reference count leak in aa_pivotroot()
The aa_pivotroot() function has a reference counting bug in a specific
path. When aa_replace_current_label() returns on success, the function
forgets to decrement the reference count of “target”, which is
increased earlier by build_pivotroot(), causing a reference leak.
Fix it by decreasing the refcount of “target” in that path.
Fixes: 2ea3ffb7782a ("apparmor: add mount mediation")
Co-developed-by: Xiyu Yang <xiyuyang19@fudan.edu.cn>
Signed-off-by: Xiyu Yang <xiyuyang19@fudan.edu.cn>
Co-developed-by: Xin Tan <tanxin.ctf@gmail.com>
Signed-off-by: Xin Tan <tanxin.ctf@gmail.com>
Signed-off-by: Xin Xiong <xiongx18@fudan.edu.cn>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions