Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1159783
| Path | csiph.com!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Oleg Nesterov <oleg@redhat.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3] seccomp: add ptrace options for suspend/resume |
| Date | Sat, 06 Jun 2015 01:50:02 +0200 |
| Message-ID | <py9x8-7AM-9@gated-at.bofh.it> (permalink) |
| References | <py7lG-4cR-39@gated-at.bofh.it> <py7OG-51D-1@gated-at.bofh.it> <py7Ym-5sK-9@gated-at.bofh.it> |
| X-Original-To | Tycho Andersen <tycho.andersen@canonical.com> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | Mutt/1.5.18 (2008-05-17) |
| X-Scanned-By | MIMEDefang 2.68 on 10.5.11.22 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 30 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Kees Cook <keescook@chromium.org>, Andy Lutomirski <luto@amacapital.net>, Will Drewry <wad@chromium.org>, Roland McGrath <roland@hack.frob.com>, Pavel Emelyanov <xemul@parallels.com>, "Serge E. Hallyn" <serge.hallyn@ubuntu.com> |
| X-Original-Date | Sat, 6 Jun 2015 01:48:00 +0200 |
| X-Original-Message-ID | <20150605234800.GA31991@redhat.com> |
| X-Original-References | <1433539312-3999-1-git-send-email-tycho.andersen@canonical.com> <20150605215208.GA27105@redhat.com> <20150605220619.GI31599@hopstrocity> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | aioe.org linux.kernel:1159783 |
Show key headers only | View raw
On 06/05, Tycho Andersen wrote: > > right thing to do, just leave out the definition of > may_suspend_seccomp all together, or add in another if defined() in > the header? Just declare it unconditionally in .h. The kernel relies on this kind of dead-code elimination anyway. For example, please look at "extern void __put_user_bad(void)" in uaccess.h. IOW, extern void undefined_func(void); if (0) undefined_func(); should be safe. > Maybe we will get rid of this pesky function all together though... Yes ;) Oleg. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH v3] seccomp: add ptrace options for suspend/resume Oleg Nesterov <oleg@redhat.com> - 2015-06-06 01:50 +0200
csiph-web