diff options
author | wzt.wzt@gmail.com <wzt.wzt@gmail.com> | 2010-04-18 21:16:17 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2010-04-19 18:47:11 -0400 |
commit | 6f262d8e1acb7b1605b811700326163fa707d355 (patch) | |
tree | 86a40905713bfb79c8a635fe9366b3d9ffdaa8b6 /security/commoncap.c | |
parent | 05b90496f2f366b9d3eea468351888ddf010782a (diff) |
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: Zhitong Wang <zhitong.wangzt@alibaba-inc.com>
Acked-by: Eric Paris <eparis@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/commoncap.c')
-rw-r--r-- | security/commoncap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/commoncap.c b/security/commoncap.c index 61669730da98..c45c4d20baa8 100644 --- a/security/commoncap.c +++ b/security/commoncap.c | |||
@@ -931,7 +931,7 @@ int cap_vm_enough_memory(struct mm_struct *mm, long pages) | |||
931 | * @addr: address attempting to be mapped | 931 | * @addr: address attempting to be mapped |
932 | * @addr_only: unused | 932 | * @addr_only: unused |
933 | * | 933 | * |
934 | * If the process is attempting to map memory below mmap_min_addr they need | 934 | * If the process is attempting to map memory below dac_mmap_min_addr they need |
935 | * CAP_SYS_RAWIO. The other parameters to this function are unused by the | 935 | * CAP_SYS_RAWIO. The other parameters to this function are unused by the |
936 | * capability security module. Returns 0 if this mapping should be allowed | 936 | * capability security module. Returns 0 if this mapping should be allowed |
937 | * -EPERM if not. | 937 | * -EPERM if not. |