linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Security: Fix the comment of cap_file_mmap()
@ 2010-04-19  1:16 wzt.wzt
  2010-04-19 12:57 ` Eric Paris
  2010-04-19 22:48 ` James Morris
  0 siblings, 2 replies; 3+ messages in thread
From: wzt.wzt @ 2010-04-19  1:16 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-security-module, eparis, jmorris

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>

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Security: Fix the comment of cap_file_mmap()
  2010-04-19  1:16 [PATCH] Security: Fix the comment of cap_file_mmap() wzt.wzt
@ 2010-04-19 12:57 ` Eric Paris
  2010-04-19 22:48 ` James Morris
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Paris @ 2010-04-19 12:57 UTC (permalink / raw)
  To: wzt.wzt; +Cc: linux-kernel, linux-security-module, jmorris

On Sun, Apr 18, 2010 at 9:16 PM,  <wzt.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.wangzt@alibaba-inc.com>

Thank you.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Security: Fix the comment of cap_file_mmap()
  2010-04-19  1:16 [PATCH] Security: Fix the comment of cap_file_mmap() wzt.wzt
  2010-04-19 12:57 ` Eric Paris
@ 2010-04-19 22:48 ` James Morris
  1 sibling, 0 replies; 3+ messages in thread
From: James Morris @ 2010-04-19 22:48 UTC (permalink / raw)
  To: wzt.wzt; +Cc: linux-kernel, linux-security-module, eparis

On Mon, 19 Apr 2010, wzt.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.wangzt@alibaba-inc.com>


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

-- 
James Morris
<jmorris@namei.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-04-19 22:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-19  1:16 [PATCH] Security: Fix the comment of cap_file_mmap() wzt.wzt
2010-04-19 12:57 ` Eric Paris
2010-04-19 22:48 ` James Morris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).