Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4139687imd; Mon, 29 Oct 2018 19:05:47 -0700 (PDT) X-Google-Smtp-Source: AJdET5edkChT7zoMCkV5+fxvVnlTp6zlROFgnn4xN0+5SP7VM2y7wn4VVwShNLn6x3lNGiIcTxaI X-Received: by 2002:a63:cd17:: with SMTP id i23mr8068084pgg.13.1540865147180; Mon, 29 Oct 2018 19:05:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540865147; cv=none; d=google.com; s=arc-20160816; b=Lyicfw6LbTX9AfF4HxdBkBo2RDu1FsFK015bWPVKSvta4y6ej7AbaPnDojwwv8P+6S dk87tLXNnEsKAwVHWyjUb5uKZLCUnWqmD8g2vha5bMz73Y+vcUHiHLn2uDbAenBST/20 n3PxmVS2g21g0hpLhcUpVCsiOze5v/bNmfUkIRXDEOxRI/Qmy4/crvZyME4o13SEkE3t m1NEZNfGe3I8ZxjBi89ZhXusQAsrCdRi+UO/YkUaHAQXjrZpY19bHV69aXAZXK7Hz8gp PqWjLLAleWtYfSzLMpWnl6eTxkgf+gSDzdtRJ1N0GCAPXImK41CypTgds8ICHraPfO33 GkVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=rHjsyUZwkVdffniSG8yBXo3rDvcKss3R2U6JiFgs1Xw=; b=xE8/tzHO3SlPDkYGj64s/i89T15ZtwUh1KRLpAtIj5rY5FrW83eZ24sP61395gbhn4 Bg3vC8O0jSEmrxkvjZC/BkHCXVsWAQvHKsKTZpQeB6puILM92iUSoL4elklxMSnFrwI+ Vb7bBCi3mdxZOae63SfdaYpGpeRjbs6TUPDJ9y0tc0zfxnOSh1yPaVAnV8mauQIfuucX Yi+4pPu/Y0zmHC760F5BtSf6Ckk302+vIGixH26Gp4ccaGKYLqRHHkb6uU9l/yAG5kOb 2Y5K/xVczvcU1zD908HGYs3VsHSCaYEUqIXYFKTZHXOWOjkzoZUMtJTI6KqLRS3LCZVB 2zyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tycho-ws.20150623.gappssmtp.com header.s=20150623 header.b=dv0A6oS7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 186-v6si9105727pfc.95.2018.10.29.19.05.30; Mon, 29 Oct 2018 19:05:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@tycho-ws.20150623.gappssmtp.com header.s=20150623 header.b=dv0A6oS7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726050AbeJ3K4g (ORCPT + 99 others); Tue, 30 Oct 2018 06:56:36 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:37863 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725956AbeJ3K4g (ORCPT ); Tue, 30 Oct 2018 06:56:36 -0400 Received: by mail-io1-f65.google.com with SMTP id k17-v6so6314532ioc.4 for ; Mon, 29 Oct 2018 19:05:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tycho-ws.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=rHjsyUZwkVdffniSG8yBXo3rDvcKss3R2U6JiFgs1Xw=; b=dv0A6oS7gxTfAvNXdJHyl2JHYiDRTvytU5e6pLb0lqvUL8qEwMSYhu32jeAiHwduWA 9mqCMmfHXoxvaQ1IkdELBgLSltxz9DZJ553CKV+jFFPvX8iKTgx1mys4OJXzXYISdW9L Qcw53froqjtrlolukPx2LrkfVmad0BjGR7RVQXCJJR+R6cTzE/8mlMWZjcJJPQx3xy/V l8BbyEkGCBRpLLwyBaFJcBrLgYV34W0YI6TiP8gcq1PoWakRmIiD+VkOmuUPMOi0ovAo cfMHALXYYWaiS1pEgM/RFxL5xI1fHHlVQm8qLa77kP6hpoTxNGE0T7g0AG9MZU6XD487 Nk/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=rHjsyUZwkVdffniSG8yBXo3rDvcKss3R2U6JiFgs1Xw=; b=Y08Tp0MLAA89QoxwG/w7KK6UK0BoPrngQ+aYHZPtU/oPWNTtNWt4tvisUt5MsCsJtV 0HRpbwkcFqKXVobdt6COyg54IiBF28RQrz+/xPOs+NJNX4ZmEygNevEIBNomFf2j3iWQ gTXnj5U7k5yyt+/0YzkD3dVRR1RMPB1UqjIjrm6k1KAN0RhSMcdZdPkX8s7lglWAFFOV YLq9+YZw831mI54yiUxVP2kPDeiP2HH+UcJ57VZUndpPAw8Qgv/mRA7LZMhJRZB+7gsr 7dJb6xWD1dVM/7LODINEleslLVZPZV3jjChDzPZ98RQQtcpKIFQMp2xiIqlBIIXObPAO I/QA== X-Gm-Message-State: AGRZ1gIyw9ncsOZx6qG17F3gCNHFQI1JuI09LbRogtyYZD4lFxQI8hcU 4k0mp+SlQ0mMttd3lefs4tUcDQ== X-Received: by 2002:a6b:5503:: with SMTP id j3-v6mr2253762iob.209.1540865110020; Mon, 29 Oct 2018 19:05:10 -0700 (PDT) Received: from cisco (75-166-175-210.hlrn.qwest.net. [75.166.175.210]) by smtp.gmail.com with ESMTPSA id d19-v6sm6843650itd.15.2018.10.29.19.05.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Oct 2018 19:05:09 -0700 (PDT) Date: Mon, 29 Oct 2018 20:05:07 -0600 From: Tycho Andersen To: "Serge E. Hallyn" Cc: Kees Cook , Andy Lutomirski , Oleg Nesterov , "Eric W . Biederman" , Christian Brauner , Tyler Hicks , Akihiro Suda , Aleksa Sarai , linux-kernel@vger.kernel.org, containers@lists.linux-foundation.org, linux-api@vger.kernel.org Subject: Re: [PATCH v8 2/2] samples: add an example of seccomp user trap Message-ID: <20181030020507.GA7343@cisco> References: <20181029224031.29809-1-tycho@tycho.ws> <20181029224031.29809-3-tycho@tycho.ws> <20181029233100.GA24103@mail.hallyn.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181029233100.GA24103@mail.hallyn.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 29, 2018 at 11:31:00PM +0000, Serge E. Hallyn wrote: > On Mon, Oct 29, 2018 at 04:40:31PM -0600, Tycho Andersen wrote: > > + if (req->data.nr != __NR_mount) { > > + fprintf(stderr, "huh? trapped something besides mknod? %d\n", req->data.nr); > > 'besides mount' ? Yes, thanks :) Tycho