Günther Noack 3350607dc5
security: Create file_truncate hook from path_truncate hook
Like path_truncate, the file_truncate hook also restricts file
truncation, but is called in the cases where truncation is attempted
on an already-opened file.

This is required in a subsequent commit to handle ftruncate()
operations differently to truncate() operations.

Acked-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Acked-by: John Johansen <john.johansen@canonical.com>
Acked-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Günther Noack <gnoack3000@gmail.com>
Link: https://lore.kernel.org/r/20221018182216.301684-2-gnoack3000@gmail.com
Signed-off-by: Mickaël Salaün <mic@digikod.net>
2022-10-19 09:01:40 +02:00
..
2022-08-21 11:50:42 -04:00
2022-08-21 11:50:42 -04:00
2022-02-07 13:04:44 -08:00
2020-12-06 13:44:57 +09:00
2020-12-06 13:44:57 +09:00
2020-11-27 19:36:11 +09:00
2019-01-24 14:50:27 -08:00
2021-06-16 00:01:28 +09:00