diff options
| author | NeilBrown <neil@brown.name> | 2026-02-25 09:16:50 +1100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-03-06 10:24:11 +0100 |
| commit | 5c6c7ae93236ee46be8e9ac396af2de5d222986c (patch) | |
| tree | e322adb9fb85eae7c32e455a7a524728d26702fb /tools/perf/scripts/python/stackcollapse.py | |
| parent | 1948172bddabef7f9ca46d3e965e71eb93a0dcc5 (diff) | |
Apparmor: Use simple_start_creating() / simple_done_creating()
Instead of explicitly locking the parent and performing a look up in
apparmor, use simple_start_creating(), and then simple_done_creating()
to unlock and drop the dentry.
This removes the need to check for an existing entry (as
simple_start_creating() acts like an exclusive create and can return
-EEXIST), simplifies error paths, and keeps dir locking code
centralised.
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: NeilBrown <neil@brown.name>
Link: https://patch.msgid.link/20260224222542.3458677-6-neilb@ownmail.net
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
