security: Create file_truncate hook from path_truncate hook
[linux-block.git] / include / linux / lsm_hook_defs.h
index ec119da1d89b407e95bd683919f4b07b239dca08..f67025823d92d331dbc2cd70c194c40cf4b169a1 100644 (file)
@@ -177,6 +177,7 @@ LSM_HOOK(int, 0, file_send_sigiotask, struct task_struct *tsk,
         struct fown_struct *fown, int sig)
 LSM_HOOK(int, 0, file_receive, struct file *file)
 LSM_HOOK(int, 0, file_open, struct file *file)
+LSM_HOOK(int, 0, file_truncate, struct file *file)
 LSM_HOOK(int, 0, task_alloc, struct task_struct *task,
         unsigned long clone_flags)
 LSM_HOOK(void, LSM_RET_VOID, task_free, struct task_struct *task)