From: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
To: Kees Cook <keescook@chromium.org>
Cc: mtk.manpages@gmail.com, linux-api@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] prctl.2: document SECCOMP_MODE_FILTER vs EFAULT
Date: Wed, 07 Jan 2015 09:43:04 +0100 [thread overview]
Message-ID: <54ACF198.4050605@gmail.com> (raw)
In-Reply-To: <1411685267-27949-3-git-send-email-keescook@chromium.org>
On 09/26/2014 12:47 AM, Kees Cook wrote:
> This notes the distinction made between EINVAL and EFAULT when attempting
> to use SECCOMP_MODE_FILTER with PR_SET_SECCOMP.
Thanks, Kees. Applied.
Cheers,
Michael
> Suggested-by: Andy Lutomirski <luto@amacapital.net>
> Signed-off-by: Kees Cook <keescook@chromium.org>
> ---
> man2/prctl.2 | 23 +++++++++++++++++++++++
> 1 file changed, 23 insertions(+)
>
> diff --git a/man2/prctl.2 b/man2/prctl.2
> index 1199891..b7ddaac 100644
> --- a/man2/prctl.2
> +++ b/man2/prctl.2
> @@ -825,6 +825,19 @@ is set appropriately.
> .I arg2
> is an invalid address.
> .TP
> +.B EFAULT
> +.I option
> +is
> +.BR PR_SET_SECCOMP ,
> +.I arg2
> +is
> +.BR SECCOMP_MODE_FILTER ,
> +the system was built with
> +.BR CONFIG_SECCOMP_FILTER
> +and
> +.I arg3
> +is an invalid address.
> +.TP
> .B EINVAL
> The value of
> .I option
> @@ -859,6 +872,16 @@ and the kernel was not configured with
> .B EINVAL
> .I option
> is
> +.BR PR_SET_SECCOMP ,
> +.I arg2
> +is
> +.BR SECCOMP_MODE_FILTER ,
> +and the kernel was not configured with
> +.BR CONFIG_SECCOMP_FILTER .
> +.TP
> +.B EINVAL
> +.I option
> +is
> .BR PR_SET_MM ,
> and one of the following is true
> .RS
>
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
prev parent reply other threads:[~2015-01-07 8:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-25 22:47 [PATCH 0/2] add seccomp man-page Kees Cook
[not found] ` <1411685267-27949-1-git-send-email-keescook-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2014-09-25 22:47 ` [PATCH 1/2] seccomp.2: document seccomp syscall Kees Cook
2014-09-25 22:47 ` Kees Cook
2014-09-26 1:29 ` Andy Lutomirski
[not found] ` <CALCETrVaYjrq0xBDouu9ZQ3Hm65Dmt2Uih4zscCGcDC+M89+qg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-09-26 5:55 ` Kees Cook
2014-09-26 5:55 ` Kees Cook
[not found] ` <CAGXu5jJEn5QZPrVa4UjuT34PVuadhXqSb_d=o3W04QvZq-fMNw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-11-02 16:37 ` Michael Kerrisk (man-pages)
2014-11-02 16:37 ` Michael Kerrisk (man-pages)
[not found] ` <1411685267-27949-2-git-send-email-keescook-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2014-11-02 16:36 ` Michael Kerrisk (man-pages)
2014-11-02 16:36 ` Michael Kerrisk (man-pages)
2014-11-02 17:10 ` Michael Kerrisk (man-pages)
2014-09-25 22:47 ` [PATCH 2/2] prctl.2: document SECCOMP_MODE_FILTER vs EFAULT Kees Cook
2015-01-07 8:43 ` Michael Kerrisk (man-pages) [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54ACF198.4050605@gmail.com \
--to=mtk.manpages@gmail.com \
--cc=keescook@chromium.org \
--cc=linux-api@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.