diff options
| author | John Johansen <john.johansen@canonical.com> | 2024-04-18 23:10:21 -0700 |
|---|---|---|
| committer | John Johansen <john.johansen@canonical.com> | 2026-08-10 22:49:42 -0700 |
| commit | c37e23f84a361aeb319edd60021604336c8cc57a (patch) | |
| tree | 431b70f62dd48dea189955415f341bf910665d6a /scripts/git.orderFile | |
| parent | 812aa0aa67d50c251d9788f1d225438e747507f0 (diff) | |
| download | linux-c37e23f84a361aeb319edd60021604336c8cc57a.tar.gz linux-c37e23f84a361aeb319edd60021604336c8cc57a.zip | |
apparmor: fix race condition in label replacement
label replacement can result in the need for locking on two separate
trees. Currently this is done by locking the tree to remove and then
the tree to add to.
For compound labels the race can result in the old label proxy
pointing to the the new label that lost the race and that was not
inserted in to the new tree. This does not break mediation, but it does
result in a task that will not update its profile correctly on future
mediation, and that will leak its refcount due to a circular reference
in its proxy, resulting in a memory leak.
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'scripts/git.orderFile')
0 files changed, 0 insertions, 0 deletions
