linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mprotect(2): mention effect of READ_IMPLIES_EXEC personality flag
@ 2010-04-23 16:31 Mark Seaborn
       [not found] ` <w2ke1cf9ca11004230931yff731f6gb45134c3d0d51cbe-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Seaborn @ 2010-04-23 16:31 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

I puzzled over mprotect()'s effect on /proc/*/maps for a while
yesterday -- it was setting "x" without PROT_EXEC being specified.
Here is a patch to add some explanation.

mprotect(2): mention effect of READ_IMPLIES_EXEC personality flag

diff --git a/man2/mprotect.2 b/man2/mprotect.2
index d7b9712..a5aa2fb 100644
--- a/man2/mprotect.2
+++ b/man2/mprotect.2
@@ -125,7 +125,15 @@ Whether
 .B PROT_EXEC
 has any effect different from
 .B PROT_READ
-is architecture- and kernel version-dependent.
+depends on processor architecture, kernel version, and process state. If
+.B READ_IMPLIES_EXEC
+is set in the process's personality flags (see
+.BR personality (2)),
+specifying
+.B PROT_READ
+will implicitly add
+.BR PROT_EXEC.
+
 On some hardware architectures (e.g., i386),
 .B PROT_WRITE
 implies
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] mprotect(2): mention effect of READ_IMPLIES_EXEC personality flag
       [not found] ` <w2ke1cf9ca11004230931yff731f6gb45134c3d0d51cbe-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-02-05 11:28   ` Michael Kerrisk (man-pages)
       [not found]     ` <54D353CB.9050401-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  2015-02-05 13:18   ` Michael Kerrisk (man-pages)
  1 sibling, 1 reply; 5+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-02-05 11:28 UTC (permalink / raw)
  To: Mark Seaborn
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

On 04/23/2010 06:31 PM, Mark Seaborn wrote:
> I puzzled over mprotect()'s effect on /proc/*/maps for a while
> yesterday -- it was setting "x" without PROT_EXEC being specified.
> Here is a patch to add some explanation.

Long after the fact... But applied now. Thanks, Mark.

Cheers,

Michael


> mprotect(2): mention effect of READ_IMPLIES_EXEC personality flag
> 
> diff --git a/man2/mprotect.2 b/man2/mprotect.2
> index d7b9712..a5aa2fb 100644
> --- a/man2/mprotect.2
> +++ b/man2/mprotect.2
> @@ -125,7 +125,15 @@ Whether
>  .B PROT_EXEC
>  has any effect different from
>  .B PROT_READ
> -is architecture- and kernel version-dependent.
> +depends on processor architecture, kernel version, and process state. If
> +.B READ_IMPLIES_EXEC
> +is set in the process's personality flags (see
> +.BR personality (2)),
> +specifying
> +.B PROT_READ
> +will implicitly add
> +.BR PROT_EXEC.
> +
>  On some hardware architectures (e.g., i386),
>  .B PROT_WRITE
>  implies
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] mprotect(2): mention effect of READ_IMPLIES_EXEC personality flag
       [not found] ` <w2ke1cf9ca11004230931yff731f6gb45134c3d0d51cbe-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2015-02-05 11:28   ` Michael Kerrisk (man-pages)
@ 2015-02-05 13:18   ` Michael Kerrisk (man-pages)
  1 sibling, 0 replies; 5+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-02-05 13:18 UTC (permalink / raw)
  To: Mark Seaborn
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

On 04/23/2010 06:31 PM, Mark Seaborn wrote:
> I puzzled over mprotect()'s effect on /proc/*/maps for a while
> yesterday -- it was setting "x" without PROT_EXEC being specified.
> Here is a patch to add some explanation.

Mark, patch applied (rather late,,,).

Cheers,

Michael


> mprotect(2): mention effect of READ_IMPLIES_EXEC personality flag
> 
> diff --git a/man2/mprotect.2 b/man2/mprotect.2
> index d7b9712..a5aa2fb 100644
> --- a/man2/mprotect.2
> +++ b/man2/mprotect.2
> @@ -125,7 +125,15 @@ Whether
>  .B PROT_EXEC
>  has any effect different from
>  .B PROT_READ
> -is architecture- and kernel version-dependent.
> +depends on processor architecture, kernel version, and process state. If
> +.B READ_IMPLIES_EXEC
> +is set in the process's personality flags (see
> +.BR personality (2)),
> +specifying
> +.B PROT_READ
> +will implicitly add
> +.BR PROT_EXEC.
> +
>  On some hardware architectures (e.g., i386),
>  .B PROT_WRITE
>  implies
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] mprotect(2): mention effect of READ_IMPLIES_EXEC personality flag
       [not found]     ` <54D353CB.9050401-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2015-02-07  2:02       ` Mark Seaborn
       [not found]         ` <CAL82V5M701JvwLnURQkO=anrAu8pp=bOZRZbCKN_umg7VxVdUA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Seaborn @ 2015-02-07  2:02 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages); +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

On 5 February 2015 at 03:28, Michael Kerrisk (man-pages)
<mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> On 04/23/2010 06:31 PM, Mark Seaborn wrote:
> > I puzzled over mprotect()'s effect on /proc/*/maps for a while
> > yesterday -- it was setting "x" without PROT_EXEC being specified.
> > Here is a patch to add some explanation.
>
> Long after the fact... But applied now. Thanks, Mark.

Wow, thanks!  What Git branch did you apply the fix on?  I looked at
http://git.kernel.org/cgit/docs/man-pages/man-pages.git/tree/man2/mprotect.2,
but I didn't see the change there.

Cheers,
Mark
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] mprotect(2): mention effect of READ_IMPLIES_EXEC personality flag
       [not found]         ` <CAL82V5M701JvwLnURQkO=anrAu8pp=bOZRZbCKN_umg7VxVdUA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-02-08  8:08           ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-02-08  8:08 UTC (permalink / raw)
  To: Mark Seaborn; +Cc: linux-man

On 7 February 2015 at 03:02, Mark Seaborn <mseaborn-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> wrote:
> On 5 February 2015 at 03:28, Michael Kerrisk (man-pages)
> <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>> On 04/23/2010 06:31 PM, Mark Seaborn wrote:
>> > I puzzled over mprotect()'s effect on /proc/*/maps for a while
>> > yesterday -- it was setting "x" without PROT_EXEC being specified.
>> > Here is a patch to add some explanation.
>>
>> Long after the fact... But applied now. Thanks, Mark.
>
> Wow, thanks!  What Git branch did you apply the fix on?  I looked at
> http://git.kernel.org/cgit/docs/man-pages/man-pages.git/tree/man2/mprotect.2,
> but I didn't see the change there.

Not yet pushed to k.org, but you'll get a mail when the release goes out.

Thanks,

Michael

-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2015-02-08  8:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-23 16:31 [PATCH] mprotect(2): mention effect of READ_IMPLIES_EXEC personality flag Mark Seaborn
     [not found] ` <w2ke1cf9ca11004230931yff731f6gb45134c3d0d51cbe-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-02-05 11:28   ` Michael Kerrisk (man-pages)
     [not found]     ` <54D353CB.9050401-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-02-07  2:02       ` Mark Seaborn
     [not found]         ` <CAL82V5M701JvwLnURQkO=anrAu8pp=bOZRZbCKN_umg7VxVdUA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-02-08  8:08           ` Michael Kerrisk (man-pages)
2015-02-05 13:18   ` Michael Kerrisk (man-pages)

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