diff options
author | Mickaël Salaün <[email protected]> | 2022-05-06 18:10:56 +0200 |
---|---|---|
committer | Mickaël Salaün <[email protected]> | 2022-05-23 13:27:58 +0200 |
commit | 100f59d964050020285f0c8264ce520f0c406c13 (patch) | |
tree | 037d009604dce35f82e15cdc324258d39dbaed9b /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 9da82b20fde95814af721a2a7b1796a5b4a3d78e (diff) |
LSM: Remove double path_rename hook calls for RENAME_EXCHANGE
In order to be able to identify a file exchange with renameat2(2) and
RENAME_EXCHANGE, which will be useful for Landlock [1], propagate the
rename flags to LSMs. This may also improve performance because of the
switch from two set of LSM hook calls to only one, and because LSMs
using this hook may optimize the double check (e.g. only one lock,
reduce the number of path walks).
AppArmor, Landlock and Tomoyo are updated to leverage this change. This
should not change the current behavior (same check order), except
(different level of) speed boosts.
[1] https://lore.kernel.org/r/[email protected]
Cc: James Morris <[email protected]>
Cc: Kentaro Takeda <[email protected]>
Cc: Serge E. Hallyn <[email protected]>
Acked-by: John Johansen <[email protected]>
Acked-by: Tetsuo Handa <[email protected]>
Reviewed-by: Paul Moore <[email protected]>
Signed-off-by: Mickaël Salaün <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions