diff options
| author | 2026-02-13 11:29:38 -0800 | |
|---|---|---|
| committer | 2026-06-13 20:14:07 -0700 | |
| commit | 32e92764d6f8d251c1bca62be33793287b453a81 (patch) | |
| tree | 51496ebbf9fdf164b3028d7791cfbad10bfc841e /scripts/Makefile.thinlto | |
| parent | apparmor: fix rawdata_f_data implicit flex array (diff) | |
apparmor: grab ns lock and refresh when looking up changehat child profiles
There was a race condition involving change_hat and profile replacement in
which replacement of the parent profile during a changehat operation could
result in the list of children becoming empty and the changehat operation
failing. To prevent this:
- grab the namespace lock until we've built the hat transition, and
- use aa_get_newest_profile to avoid using stale profile objects.
Link: https://bugs.launchpad.net/bugs/2139664
Fixes: 89dbf1962aa63 ("apparmor: move change_hat mediation to using labels")
Reviewed-by: Georgia Garcia <georgia.garcia@canonical.com>
Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
