Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753622AbaGPV2T (ORCPT ); Wed, 16 Jul 2014 17:28:19 -0400 Received: from mail-la0-f48.google.com ([209.85.215.48]:44689 "EHLO mail-la0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753320AbaGPV2A (ORCPT ); Wed, 16 Jul 2014 17:28:00 -0400 MIME-Version: 1.0 In-Reply-To: References: <1405017631-27346-1-git-send-email-keescook@chromium.org> <20140711164931.GA18473@redhat.com> From: Andy Lutomirski Date: Wed, 16 Jul 2014 14:27:38 -0700 Message-ID: Subject: Re: [PATCH v10 0/11] seccomp: add thread sync ability To: Kees Cook Cc: Oleg Nesterov , LKML , Alexei Starovoitov , "Michael Kerrisk (man-pages)" , Andrew Morton , Daniel Borkmann , Will Drewry , Julien Tinnes , David Drysdale , Linux API , "x86@kernel.org" , "linux-arm-kernel@lists.infradead.org" , Linux MIPS Mailing List , linux-arch , linux-security-module Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 16, 2014 at 2:23 PM, Kees Cook wrote: > On Wed, Jul 16, 2014 at 12:45 PM, Andy Lutomirski wrote: >> In seccomp_prepare_user_filter, would it make sense to return -EINVAL >> if !user_filter? That will make it slightly more pleasant to >> implement TSYNC-without-change if anyone ever wants it. (This isn't >> really necessary -- it's just slightly more polite.) > > I can't do this since EFAULT is already used to detect seccomp > capabilities from userspace. Aha. In that case, can you (separately) send a prctl.2 manpage patch documenting that? Also, I'm pretty sure you can get away with doing this for seccomp(2) -- EINVAL and ENOSYS are easily distinguishable, but the current behavior is IMO also fine if documented. --Andy -- 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/