2010-04-19 01:09:32

by wzt wzt

[permalink] [raw]
Subject: [PATCH] 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 <[email protected]>

---
security/commoncap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/security/commoncap.c b/security/commoncap.c
index 6166973..c45c4d2 100644
--- a/security/commoncap.c
+++ b/security/commoncap.c
@@ -931,7 +931,7 @@ int cap_vm_enough_memory(struct mm_struct *mm, long pages)
* @addr: address attempting to be mapped
* @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
* capability security module. Returns 0 if this mapping should be allowed
* -EPERM if not.
--
1.6.5.3


2010-04-19 12:57:32

by Eric Paris

[permalink] [raw]
Subject: Re: [PATCH] Security: Fix the comment of cap_file_mmap()

On Sun, Apr 18, 2010 at 9:16 PM, <[email protected]> wrote:
> In the comment of cap_file_mmap(), replace mmap_min_addr to be dac_mmap_min_addr.
>
> Signed-off-by: Zhitong Wang <[email protected]>

Thank you.

Acked-by: Eric Paris <[email protected]

2010-04-19 22:48:27

by James Morris

[permalink] [raw]
Subject: Re: [PATCH] Security: Fix the comment of cap_file_mmap()

On Mon, 19 Apr 2010, [email protected] wrote:

> In the comment of cap_file_mmap(), replace mmap_min_addr to be dac_mmap_min_addr.
>
> Signed-off-by: Zhitong Wang <[email protected]>


Applied to
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6#next

--
James Morris
<[email protected]>