Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp557986imm; Wed, 17 Oct 2018 04:51:42 -0700 (PDT) X-Google-Smtp-Source: ACcGV62FwHX93aG7HvGrbzvgu5D877dPcY16BnoR9pZ7BjTVEe3wJbSYpoIWxiuCBrL/JjVfANXo X-Received: by 2002:a63:c14a:: with SMTP id p10-v6mr24155221pgi.424.1539777102090; Wed, 17 Oct 2018 04:51:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539777102; cv=none; d=google.com; s=arc-20160816; b=jxOrW2oF/0vKsFubzHxd4BXejW9m33IYMoiO4b3LVUiQRmGttnF5Te5yMoFEz1V5v6 rjzkO/XZo6jaCsVM8Q53zVf/PEPIb/mnCsUSo5Rs6zi1iSzUDwCcr7erWlhn2vODre4l ME6D/onF6kegNe7TzC+X28kWJwxMFwNZX9tsN59apDSinzAAcAllbbRFJxbwm/l++hlt zbrj9BuukSeIvnEobArT0ATWp/ls2V1AemHFH08+UoBV+tzK9rMpDxtmziWXDTdLuUPc OkwE+t4KMVoxoNLSKedbiF6VxD2ixufErPCs8T/hJZh8ulrJPfvLA02+ynqlf1yFeQkt vrBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=jmFzpzLwkb/SlSKZkR9GMeizWWUcvBFzw3hPJEuOTlc=; b=Nzd+ahpUqXxzISbpz4ue0SaFtCctMskrUkMYLer2jzk/GnYzj3yQTiryG9jXRPcZ6m +SjWKpX6e6/JIdbGBx1CT35h3svKDmpYWfSl5dNjl6gtpsxL04HS1vW/zkJu7+TIN4rq Zj685KSFp2obxBh7ZHjTJGBurMW32henHHORpmrIDbGrFvEIJ+M7dS9kAi4M5toNluu/ HLFy7iIUC9tYgAPJZBpQWTDzEYIEON4DtmLGTck774F11zebWQX1pAQq9w16H8AqRwuA ZP4T1W4aksHq8zRKH2BlQrscgtoamob7uArQRvvEc0+mN4Zgy1h9GQ5jVg+DjLe/3a6W J4/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r1F8+IfJ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v20-v6si15462393pgk.586.2018.10.17.04.51.25; Wed, 17 Oct 2018 04:51:42 -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=@gmail.com header.s=20161025 header.b=r1F8+IfJ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727192AbeJQTqY (ORCPT + 99 others); Wed, 17 Oct 2018 15:46:24 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:33922 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726954AbeJQTqX (ORCPT ); Wed, 17 Oct 2018 15:46:23 -0400 Received: by mail-ot1-f65.google.com with SMTP id v2so18708427otk.1 for ; Wed, 17 Oct 2018 04:51:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jmFzpzLwkb/SlSKZkR9GMeizWWUcvBFzw3hPJEuOTlc=; b=r1F8+IfJg1bhpjD7mFcvoGen5x8nI8ooYfgv2kxBDAJb89/hcVM1wVPyviRfas30DJ hNymNxYq60Fg6BIMPuzWMTCrZpKCq1JNbTfbBPGlE0PtYrefMJZ3pzLfvwCsw+gImFSa tChzxbgQOP4NRSwyEEJHHXELCM581HNCNM2sbo4TLfd2d5S58AqO1ZaVJY8YGXlZ7ezz sFyApcD/q6ZA/ujibEA63x3dxkfZcA0himoieWRGeRXTOrB+J8sAs6+h9lOJVfU/yOF8 6pdudPaE+yvgxGZAaQigPCfVgr7K8Q1e0MSXmRnpWDg/sJ1tpaVVKDzQMWX+IYe1CfF0 AFbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jmFzpzLwkb/SlSKZkR9GMeizWWUcvBFzw3hPJEuOTlc=; b=SNo6t8TNPsR0XdMA4EIxyVjeeiE1fVQQxlSSJrzZFpvcKejLjUANZ0Yhvvellb0dQS 2U3CpDaRUqR3v9FPw3xWMNnUwcNJ6k/+WmfMFbgNCNW1NopWkEKQxZEGJWQKBMTPgsRQ GTAcDjaOj27KqVdE4yll8597N9Bmevl1jGY0Bn4h++dZ4MzWQ1yFghTA2nK9K0MBZoUO GKQ5h9cnrSNsJMkUQuz5Mi17fKjHCugaitFa9M0Kuj994kBtRCbjxPdMA/7H6vMDKtHu AUowwKYkVp5o0EK+kUnAITRPjB9/lxhxpVYxA48iCwzvoCWiYJaDmUU/KO05CIMyOpYm w1Yg== X-Gm-Message-State: ABuFfojFEDVd2El5zek9AuGxdEEIu9s0jGmZJ164Sj3VMK4TA6ymdwLV DJNvz+TUdDHbR7RpwM5klnVjkrTllflCVH4bpc8= X-Received: by 2002:a9d:11b2:: with SMTP id v47mr15357823otf.281.1539777062825; Wed, 17 Oct 2018 04:51:02 -0700 (PDT) MIME-Version: 1.0 References: <20180906152859.7810-1-tycho@tycho.ws> <20180906152859.7810-4-tycho@tycho.ws> In-Reply-To: From: Michael Tirado Date: Wed, 17 Oct 2018 07:25:00 +0000 Message-ID: Subject: Re: [PATCH v6 3/5] seccomp: add a way to get a listener fd from ptrace To: Andy Lutomirski , Tycho Andersen Cc: LKML , Kees Cook Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 13, 2018 at 12:02 AM Andy Lutomirski wrote: > > Or we could have a > seccomp() mode that adds a filter but only kicks in after execve(). > > --Andy Hey that's a pretty good idea, then we could block execve in a seccomp launcher without post-exec cooperation, or that patch I wrote that used an execve counter which probably should have been through prctl instead. As for the rest of this long thread, has anyone mentioned a specific use case that I missed? I didn't see code patches sent to the linux-kernel mailing list, only this discussion thread so I'm probably missing some important context. Was it for loading modules into kernel from a container? Couldn't that be handled completely in user space without using seccomp at all? Do we really want to turn seccomp into a container IPC mechanism? It seems out of scope IMO, and especially if it could be handled in user space already. Why does it have to be a file descriptor, what would you be writing back to? Could waitid be used somehow instead of ptrace to get notification from a filter? tldr, can someone kindly tell me how to find all the details surrounding these patches so I can stop making really bad guesses?