Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1578883
| From | Kees Cook <keescook@chromium.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 3/4] seccomp: Create an action to log before allowing |
| Date | 2017-02-11 01:20 +0100 |
| Message-ID | <t9tzX-23x-3@gated-at.bofh.it> (permalink) |
| References | <t6ELf-5LJ-1@gated-at.bofh.it> <t6ELf-5LJ-3@gated-at.bofh.it> <t8osG-1w6-17@gated-at.bofh.it> <t9tzX-23x-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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. Speaking of which, can you CC linux-api@ on the next version too? -Kees -- Kees Cook Pixel Security
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 0/4] Improved seccomp logging Tyler Hicks <tyhicks@canonical.com> - 2017-02-03 06:40 +0100
[PATCH v2 3/4] seccomp: Create an action to log before allowing Tyler Hicks <tyhicks@canonical.com> - 2017-02-03 06:40 +0100
Re: [PATCH v2 3/4] seccomp: Create an action to log before allowing Kees Cook <keescook@chromium.org> - 2017-02-08 01:40 +0100
Re: [PATCH v2 3/4] seccomp: Create an action to log before allowing Kees Cook <keescook@chromium.org> - 2017-02-09 23:00 +0100
Re: [PATCH v2 3/4] seccomp: Create an action to log before allowing Kees Cook <keescook@chromium.org> - 2017-02-11 01:20 +0100
Re: [PATCH v2 3/4] seccomp: Create an action to log before allowing Tyler Hicks <tyhicks@canonical.com> - 2017-02-11 01:20 +0100
Re: [PATCH v2 3/4] seccomp: Create an action to log before allowing Tyler Hicks <tyhicks@canonical.com> - 2017-02-11 01:20 +0100
[PATCH v2 2/4] seccomp: Add sysctl to configure actions that should be logged Tyler Hicks <tyhicks@canonical.com> - 2017-02-03 06:40 +0100
Re: [PATCH v2 2/4] seccomp: Add sysctl to configure actions that should be logged Kees Cook <keescook@chromium.org> - 2017-02-08 01:40 +0100
Re: [PATCH v2 2/4] seccomp: Add sysctl to configure actions that should be logged Tyler Hicks <tyhicks@canonical.com> - 2017-02-11 01:00 +0100
Re: [PATCH v2 2/4] seccomp: Add sysctl to configure actions that should be logged Kees Cook <keescook@chromium.org> - 2017-02-11 01:10 +0100
[PATCH v2 1/4] seccomp: Add sysctl to display available actions Tyler Hicks <tyhicks@canonical.com> - 2017-02-03 06:40 +0100
Re: [PATCH v2 1/4] seccomp: Add sysctl to display available actions Kees Cook <keescook@chromium.org> - 2017-02-08 01:10 +0100
Re: [PATCH v2 1/4] seccomp: Add sysctl to display available actions Tyler Hicks <tyhicks@canonical.com> - 2017-02-08 01:50 +0100
Re: [PATCH v2 1/4] seccomp: Add sysctl to display available actions Kees Cook <keescook@chromium.org> - 2017-02-08 01:50 +0100
[PATCH v2 4/4] seccomp: Add tests for SECCOMP_RET_LOG Tyler Hicks <tyhicks@canonical.com> - 2017-02-03 06:40 +0100
Re: [PATCH v2 4/4] seccomp: Add tests for SECCOMP_RET_LOG Kees Cook <keescook@chromium.org> - 2017-02-08 01:50 +0100
Re: [PATCH v2 0/4] Improved seccomp logging Kees Cook <keescook@chromium.org> - 2017-02-08 01:00 +0100
csiph-web