Skip to content

Commit f3128dd

Browse files
Yue Haibingpcmoore
authored andcommitted
security: Remove unused declaration cap_mmap_file()
Commit 3f4f1f8 ("capabilities: remove cap_mmap_file()") removed the implementation but leave declaration. Signed-off-by: Yue Haibing <yuehaibing@huawei.com> Reviewed-by: Serge Hallyn <serge@hallyn.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
1 parent 9fc86a8 commit f3128dd

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

include/linux/security.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,6 @@ int cap_inode_getsecurity(struct mnt_idmap *idmap,
193193
struct inode *inode, const char *name, void **buffer,
194194
bool alloc);
195195
extern int cap_mmap_addr(unsigned long addr);
196-
extern int cap_mmap_file(struct file *file, unsigned long reqprot,
197-
unsigned long prot, unsigned long flags);
198196
extern int cap_task_fix_setuid(struct cred *new, const struct cred *old, int flags);
199197
extern int cap_task_prctl(int option, unsigned long arg2, unsigned long arg3,
200198
unsigned long arg4, unsigned long arg5);

0 commit comments

Comments
 (0)