From: Tyler Hicks <tyhicks@canonical.com>
To: Kees Cook <keescook@chromium.org>
Cc: Paul Moore <paul@paul-moore.com>, Eric Paris <eparis@redhat.com>,
Andy Lutomirski <luto@amacapital.net>,
Will Drewry <wad@chromium.org>,
linux-audit@redhat.com, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 3/4] seccomp: Create an action to log before allowing
Date: Fri, 10 Feb 2017 18:15:02 -0600 [thread overview]
Message-ID: <3c240412-361b-3ac2-aec6-3266a7a977d6@canonical.com> (raw)
In-Reply-To: <CAGXu5jKY6GtSrUeP7Rgs70HHaFudjw29QOAbfhyS=Jx=2VOyJw@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1488 bytes --]
On 02/10/2017 06:08 PM, Kees Cook wrote:
> On Fri, Feb 10, 2017 at 4:01 PM, Tyler Hicks <tyhicks@canonical.com> wrote:
>> On 02/07/2017 06:33 PM, Kees Cook wrote:
>>> This adds to UAPI, so it'd be good to think for a moment about how
>>> this would work on older kernels: right now, if someone tried to use
>>> this RET_LOG on an old kernel, it'll get treated like RET_KILL. Is
>>> this sane?
>>
>> It is not sane for userspace code to blindly attempt to use a new
>> feature on an old kernel. One of the main motivations of the
>> actions_avail sysctl is to allow userspace to be smart about what the
>> current kernel supports.
>
> Yeah, agreed. I mean, userspace could also build a little test
> program, toss in RET_LOG, run it and see if it get SIGSYS. But that's
> so much more pain that checking in /proc.
>
>> I'll be adding logic (requested by Paul) to libseccomp that checks this
>> sysctl when SECOMP_RET_LOG is attempted to be used. Programs that don't
>> use libseccomp will have to do something similar.
>
> Excellent, I had been meaning to ask if you'd chatted with Paul at
> all, since this is an API addition for libseccomp.
We talked through some of it after the initial PR that I submitted to
libseccomp:
https://github.com/seccomp/libseccomp/pull/64
I'll be updating that as we get closer to a land-able set of kernel patches.
> Speaking of which, can you CC linux-api@ on the next version too?
Yes, good idea!
Tyler
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
next prev parent reply other threads:[~2017-02-11 0:15 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-03 5:37 [PATCH v2 0/4] Improved seccomp logging Tyler Hicks
2017-02-03 5:37 ` [PATCH v2 1/4] seccomp: Add sysctl to display available actions Tyler Hicks
2017-02-08 0:03 ` Kees Cook
2017-02-08 0:25 ` Tyler Hicks
2017-02-08 0:43 ` Kees Cook
2017-02-14 0:25 ` Tyler Hicks
2017-02-14 0:26 ` Kees Cook
2017-02-03 5:37 ` [PATCH v2 2/4] seccomp: Add sysctl to configure actions that should be logged Tyler Hicks
2017-02-08 0:24 ` Kees Cook
2017-02-10 23:56 ` Tyler Hicks
2017-02-11 0:05 ` Kees Cook
2017-02-03 5:37 ` [PATCH v2 3/4] seccomp: Create an action to log before allowing Tyler Hicks
2017-02-08 0:33 ` Kees Cook
2017-02-09 21:49 ` Kees Cook
2017-02-11 0:01 ` Tyler Hicks
2017-02-11 0:08 ` Kees Cook
2017-02-11 0:15 ` Tyler Hicks [this message]
2017-02-03 5:37 ` [PATCH v2 4/4] seccomp: Add tests for SECCOMP_RET_LOG Tyler Hicks
2017-02-08 0:39 ` Kees Cook
2017-02-07 23:58 ` [PATCH v2 0/4] Improved seccomp logging Kees Cook
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=3c240412-361b-3ac2-aec6-3266a7a977d6@canonical.com \
--to=tyhicks@canonical.com \
--cc=eparis@redhat.com \
--cc=keescook@chromium.org \
--cc=linux-audit@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@amacapital.net \
--cc=paul@paul-moore.com \
--cc=wad@chromium.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®