Linux Security Modules development
 help / color / mirror / Atom feed
* [PATCH -next] security: Remove unused declaration cap_mmap_file()
@ 2025-06-24  1:41 Yue Haibing
  2025-06-24 12:27 ` sergeh
  2025-06-24 23:32 ` [PATCH] " Paul Moore
  0 siblings, 2 replies; 5+ messages in thread
From: Yue Haibing @ 2025-06-24  1:41 UTC (permalink / raw)
  To: paul, jmorris, serge, casey
  Cc: linux-security-module, linux-kernel, yuehaibing

Commit 3f4f1f8a1ab7 ("capabilities: remove cap_mmap_file()")
removed the implementation but leave declaration.

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
---
 include/linux/security.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/include/linux/security.h b/include/linux/security.h
index dba349629229..e8d9f6069f0c 100644
--- a/include/linux/security.h
+++ b/include/linux/security.h
@@ -193,8 +193,6 @@ int cap_inode_getsecurity(struct mnt_idmap *idmap,
 			  struct inode *inode, const char *name, void **buffer,
 			  bool alloc);
 extern int cap_mmap_addr(unsigned long addr);
-extern int cap_mmap_file(struct file *file, unsigned long reqprot,
-			 unsigned long prot, unsigned long flags);
 extern int cap_task_fix_setuid(struct cred *new, const struct cred *old, int flags);
 extern int cap_task_prctl(int option, unsigned long arg2, unsigned long arg3,
 			  unsigned long arg4, unsigned long arg5);
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-06-24 23:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-24  1:41 [PATCH -next] security: Remove unused declaration cap_mmap_file() Yue Haibing
2025-06-24 12:27 ` sergeh
2025-06-24 15:48   ` Paul Moore
2025-06-24 20:46     ` Serge E. Hallyn
2025-06-24 23:32 ` [PATCH] " Paul Moore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox