diff options
author | Khadija Kamran <kamrankhadijadj@gmail.com> | 2023-08-12 18:31:08 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2023-08-15 23:04:34 +0300 |
commit | 8e4672d6f902d5c4db1e87e8aa9f530149d85bc6 (patch) | |
tree | 8b2450fcb8a618c672456e1b90801b3f8ebf1e09 /include/linux/lsm_hook_defs.h | |
parent | 6672efbb685f7c9c9df005beb839e1942fd6b34e (diff) | |
download | linux-8e4672d6f902d5c4db1e87e8aa9f530149d85bc6.tar.xz |
lsm: constify the 'file' parameter in security_binder_transfer_file()
SELinux registers the implementation for the "binder_transfer_file"
hook. Looking at the function implementation we observe that the
parameter "file" is not changing.
Mark the "file" parameter of LSM hook security_binder_transfer_file() as
"const" since it will not be changing in the LSM hook.
Signed-off-by: Khadija Kamran <kamrankhadijadj@gmail.com>
[PM: subject line whitespace fix]
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'include/linux/lsm_hook_defs.h')
-rw-r--r-- | include/linux/lsm_hook_defs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/lsm_hook_defs.h b/include/linux/lsm_hook_defs.h index 540caa703573..4bdddb52a8fe 100644 --- a/include/linux/lsm_hook_defs.h +++ b/include/linux/lsm_hook_defs.h @@ -32,7 +32,7 @@ LSM_HOOK(int, 0, binder_transaction, const struct cred *from, LSM_HOOK(int, 0, binder_transfer_binder, const struct cred *from, const struct cred *to) LSM_HOOK(int, 0, binder_transfer_file, const struct cred *from, - const struct cred *to, struct file *file) + const struct cred *to, const struct file *file) LSM_HOOK(int, 0, ptrace_access_check, struct task_struct *child, unsigned int mode) LSM_HOOK(int, 0, ptrace_traceme, struct task_struct *parent) |