Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PATCH] Security: Fix the comment of cap_file_mmap()

0 views
Skip to first unread message

wzt...@gmail.com

unread,
Apr 18, 2010, 9:10:02 PM4/18/10
to
In the comment of cap_file_mmap(), replace mmap_min_addr to be dac_mmap_min_addr.

Signed-off-by: Zhitong Wang <zhitong...@alibaba-inc.com>

---
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majo...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Eric Paris

unread,
Apr 19, 2010, 9:00:01 AM4/19/10
to
On Sun, Apr 18, 2010 at 9:16 PM, <wzt...@gmail.com> wrote:
> In the comment of cap_file_mmap(), replace mmap_min_addr to be dac_mmap_min_addr.
>
> Signed-off-by: Zhitong Wang <zhitong...@alibaba-inc.com>

Thank you.

Acked-by: Eric Paris <epa...@redhat.com

James Morris

unread,
Apr 19, 2010, 6:50:02 PM4/19/10
to
On Mon, 19 Apr 2010, wzt...@gmail.com wrote:

> In the comment of cap_file_mmap(), replace mmap_min_addr to be dac_mmap_min_addr.
>
> Signed-off-by: Zhitong Wang <zhitong...@alibaba-inc.com>


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

--
James Morris
<jmo...@namei.org>

0 new messages