mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
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>
This commit is contained in:
committed by
Paul Moore
parent
6672efbb68
commit
8e4672d6f9
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user