Commit 6f262d8e authored by wzt.wzt@gmail.com's avatar wzt.wzt@gmail.com Committed by James Morris

Security: Fix the comment of cap_file_mmap()

In the comment of cap_file_mmap(), replace mmap_min_addr to be dac_mmap_min_addr.
Signed-off-by: default avatarZhitong Wang <zhitong.wangzt@alibaba-inc.com>
Acked-by: default avatarEric Paris <eparis@redhat.com>
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent 05b90496
...@@ -931,7 +931,7 @@ int cap_vm_enough_memory(struct mm_struct *mm, long pages) ...@@ -931,7 +931,7 @@ int cap_vm_enough_memory(struct mm_struct *mm, long pages)
* @addr: address attempting to be mapped * @addr: address attempting to be mapped
* @addr_only: unused * @addr_only: unused
* *
* If the process is attempting to map memory below mmap_min_addr they need * If the process is attempting to map memory below dac_mmap_min_addr they need
* CAP_SYS_RAWIO. The other parameters to this function are unused by the * CAP_SYS_RAWIO. The other parameters to this function are unused by the
* capability security module. Returns 0 if this mapping should be allowed * capability security module. Returns 0 if this mapping should be allowed
* -EPERM if not. * -EPERM if not.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment