diff options
author | Paul Moore <paul@paul-moore.com> | 2024-09-25 15:20:19 -0400 |
---|---|---|
committer | Serge Hallyn <sergeh@kernel.org> | 2024-12-04 20:56:28 -0600 |
commit | 3f4f1f8a1ab75314ff5cc14f9ed134bc038926bd (patch) | |
tree | 1c85cd238fe476a63dc030e8431c1f3e218751ac /security | |
parent | 40384c840ea1944d7c5a392e8975ed088ecf0b37 (diff) | |
download | linux-3f4f1f8a1ab75314ff5cc14f9ed134bc038926bd.tar.gz linux-3f4f1f8a1ab75314ff5cc14f9ed134bc038926bd.tar.bz2 linux-3f4f1f8a1ab75314ff5cc14f9ed134bc038926bd.zip |
capabilities: remove cap_mmap_file()
The cap_mmap_file() LSM callback returns the default value for the
security_mmap_file() LSM hook and can be safely removed.
Signed-off-by: Paul Moore <paul@paul-moore.com>
Reviewed-by: Casey Schaufler <casey@schaufler-ca.com>
Reviewed-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Serge Hallyn <sergeh@kernel.org>
Diffstat (limited to 'security')
-rw-r--r-- | security/commoncap.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/security/commoncap.c b/security/commoncap.c index cefad323a0b1..3d103069903b 100644 --- a/security/commoncap.c +++ b/security/commoncap.c @@ -1428,12 +1428,6 @@ int cap_mmap_addr(unsigned long addr) return ret; } -int cap_mmap_file(struct file *file, unsigned long reqprot, - unsigned long prot, unsigned long flags) -{ - return 0; -} - #ifdef CONFIG_SECURITY static const struct lsm_id capability_lsmid = { @@ -1453,7 +1447,6 @@ static struct security_hook_list capability_hooks[] __ro_after_init = { LSM_HOOK_INIT(inode_killpriv, cap_inode_killpriv), LSM_HOOK_INIT(inode_getsecurity, cap_inode_getsecurity), LSM_HOOK_INIT(mmap_addr, cap_mmap_addr), - LSM_HOOK_INIT(mmap_file, cap_mmap_file), LSM_HOOK_INIT(task_fix_setuid, cap_task_fix_setuid), LSM_HOOK_INIT(task_prctl, cap_task_prctl), LSM_HOOK_INIT(task_setscheduler, cap_task_setscheduler), |