diff options
author | Mickaël Salaün <mic@digikod.net> | 2025-01-13 17:11:10 +0100 |
---|---|---|
committer | Mickaël Salaün <mic@digikod.net> | 2025-01-14 11:57:45 +0100 |
commit | 16a6f4d3b558bd55b52892f2becad8f33cb62ed2 (patch) | |
tree | 447f0e347c1ee14043774983204f5559dc29fb97 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | d32f79a59ae1a90f27735c75f9920c585e6ceb8f (diff) |
landlock: Use scoped guards for ruleset in landlock_add_rule()
Simplify error handling by replacing goto statements with automatic
calls to landlock_put_ruleset() when going out of scope.
This change depends on the TCP support.
Cc: Konstantin Meskhidze <konstantin.meskhidze@huawei.com>
Cc: Mikhail Ivanov <ivanov.mikhail1@huawei-partners.com>
Reviewed-by: Günther Noack <gnoack@google.com>
Link: https://lore.kernel.org/r/20250113161112.452505-3-mic@digikod.net
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions