Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5537111ybl; Tue, 10 Dec 2019 07:36:45 -0800 (PST) X-Google-Smtp-Source: APXvYqztnmQrUvGypJyr8P6SKVXuvsFbMg39VAR54udpIfJ1LFSyZNvc9s48rCqo6km5MFUSNn2y X-Received: by 2002:aca:bd42:: with SMTP id n63mr4500635oif.70.1575992204977; Tue, 10 Dec 2019 07:36:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575992204; cv=none; d=google.com; s=arc-20160816; b=N7EgXj86C3wj4mj+evkZHeqAPxIaUe6A1/nIA3WU/ikWev8gEqd2mtTdLF73NuyCNe 4ybRiCO3oNWBLIjJvWfJrvOsdl0rX9xRi4TeYOOKAoKOnwWg3+KB2scft6JlNF0feSA5 oa+Czcqk9EEOlp1HFUpFrLmqcqK+wMzF25WjH//nwIPtkLC+5P0AwOkAvZJZ4u+boD/u 07GOtq/PfYgalwJGNBPknM4Pg28TTjzQWcE7TBRvf7iezmk+t8CEne+CFDpkclqOaP35 tpctFNywrz9Mmv1K6zBzQ59oJf/ZSPnWMxatzSXdPA6LbGZpCwQEbdt25vWc4UUKomD1 6qwQ== 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=2fl7MawNYz3ZkzAynbewcYICAZpqfTz/726fJLPlUqY=; b=PiGmvWbn32trCxAo3s4yR3f+aO5JK6mfVqfXU+apV2DSaUDSW6fRheNlOkDH5P5ZHP dDrQSRXfQWNuU7VKucuBonTob3WVSArR+Gd3hAimh2AimgJU9krMACMeN0KtY6mI/XUb xC6/YkedR3VYFl0Mj1l2KDMiq6AMwTnpop9QdCJUs+XSN7CjeTnB9fMvfaJ9FJcWBllS k58PhnWDuVzPo1bOSM9OJbQmr1wM9SX5lSy2aDLqWhUvSlxhYpJKUpjvWdJfWqaot8Fh q+u7F40OIcXWVYv1DPyzdIslnx3TMli2Zzfs0bIDeb2My7ltN5CuTLpTrlIsA26x9wIx t+0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tycho-ws.20150623.gappssmtp.com header.s=20150623 header.b=dLr9mxK5; 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 m5si1936107ote.187.2019.12.10.07.36.31; Tue, 10 Dec 2019 07:36:44 -0800 (PST) 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=dLr9mxK5; 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 S1727528AbfLJPf5 (ORCPT + 99 others); Tue, 10 Dec 2019 10:35:57 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:43210 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727380AbfLJPf5 (ORCPT ); Tue, 10 Dec 2019 10:35:57 -0500 Received: by mail-pf1-f196.google.com with SMTP id h14so18975pfe.10 for ; Tue, 10 Dec 2019 07:35:57 -0800 (PST) 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=2fl7MawNYz3ZkzAynbewcYICAZpqfTz/726fJLPlUqY=; b=dLr9mxK51zZV+Yu2FI7AUlxZvrxRgKsin4pzn22uIL01caSkZBm0F9Ej0HqRbj5Ntw iDS6aVTPjxYGrCnHxfnEPz5AupmhMGnJaNwJTqAZscAogtCDNRi3ntrAWDd6j+BA31d/ 7NN8HG2uotdH5Nd3+DKTuPRACNDQeoB6p/OWfLJbHnG3ssvxaZUBQ7a3hPexwP8R5Mtc EBKv51edPLT/5zNFy9pcCQCOTKJJ4Y6ab0sKXDFvOsWZGqCbOCSV4gXmTF5IdvqzZqdX 0e+owlJwnLoGMrXgLvZSoQrSiJBGrWSDpWokCd0zk2HZpmOoGYw2jidyJr5yhDTicMB+ Gf8g== 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=2fl7MawNYz3ZkzAynbewcYICAZpqfTz/726fJLPlUqY=; b=sd7t6XyMzJAV996PcsroEWSe0jfhiymLdojR4gshbap61mxQhfuFKyQbUWtVsQRPln V5TmRhtlkYw+UDkIgMVCXWpImOH1+F21jb7MRUhNtxJeswm++U+DpcPUJHmRmM+yWDKH Y0cS6v5Qv7YmKJ9wt93MGqbfE4F6JqMpvdBTF0Y06Ruyd4gh+z0GCRmo8PAqiVS2Y7UY hikQPYZldvJn+mVT/ly0n6xPvXuKhLiuy76wW7deAA8dvumyWNx2g5b18qWYuPH7SBaT 0kpcS8ycbE7yrWcq/AwTRjk2mT34qWD9lY9RbWm7anu8d/sxZM7DfNZ+Zl2HwmHsemYP 6Weg== X-Gm-Message-State: APjAAAUUEaid3ZeqwWiEkYopa81cCUHuMjfvgQORAPctDxTQAms6MBp0 1A3f7A0wgNZBt/9QOkMT8O6JAA== X-Received: by 2002:aa7:9f9b:: with SMTP id z27mr36066045pfr.102.1575992156359; Tue, 10 Dec 2019 07:35:56 -0800 (PST) Received: from cisco ([2601:282:902:b340:b1ae:d960:d4d7:eda9]) by smtp.gmail.com with ESMTPSA id e12sm1501838pjs.3.2019.12.10.07.35.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2019 07:35:55 -0800 (PST) Date: Tue, 10 Dec 2019 08:35:55 -0700 From: Tycho Andersen To: Christian Brauner Cc: Oleg Nesterov , Sargun Dhillon , linux-kernel@vger.kernel.org, containers@lists.linux-foundation.org, linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, jannh@google.com, cyphar@cyphar.com, luto@amacapital.net, viro@zeniv.linux.org.uk, Jed Davis , Gian-Carlo Pascutto , Emilio Cobos =?iso-8859-1?Q?=C1lvarez?= , Florian Weimer Subject: Re: [PATCH v2 4/4] samples: Add example of using PTRACE_GETFD in conjunction with user trap Message-ID: <20191210153555.GD22803@cisco> References: <20191209070646.GA32477@ircssh-2.c.rugged-nimbus-611.internal> <20191209192959.GB10721@redhat.com> <20191209204635.GC10721@redhat.com> <20191210111051.j5opodgjalqigx6q@wittgenstein> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191210111051.j5opodgjalqigx6q@wittgenstein> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 10, 2019 at 12:10:52PM +0100, Christian Brauner wrote: > > #define SECCOMP_IOCTL_NOTIF_SET_FD SECCOMP_IOWR(4, ) There's even some code already for this one: https://lore.kernel.org/linux-fsdevel/20180927151119.9989-6-tycho@tycho.ws/ Tycho