diff options
| author | Zygmunt Krynicki <me@zygoon.pl> | 2026-05-04 13:13:24 +0200 |
|---|---|---|
| committer | John Johansen <john.johansen@canonical.com> | 2026-06-13 20:14:08 -0700 |
| commit | 7306c41672487a6c28430714be063bc6942c28f2 (patch) | |
| tree | 67db6e93f58c0e86169c0e8ed2bde993ff0c0dbb /include/linux/timerqueue.h | |
| parent | 45cf568241048e560a81aa2053f06a62069f5640 (diff) | |
apparmor: release exe file resources on path failure
get_current_exe_path() takes both an exe_file reference and a path
reference before resolving the path name. If aa_path_name() failed, it
returned immediately and leaked both references.
Route the failure through the common cleanup path so fput() and path_put()
always run after the references are acquired.
Fixes: 8d34e16f7f2b ("apparmor: userns: Add support for execpath in userns")
Reviewed-by: Ryan Lee <ryan.lee@canonical.com>
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
