Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754462Ab2EUTPH (ORCPT ); Mon, 21 May 2012 15:15:07 -0400 Received: from terminus.zytor.com ([198.137.202.10]:45178 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752634Ab2EUTPE (ORCPT ); Mon, 21 May 2012 15:15:04 -0400 Message-ID: <4FBA93C1.1070308@zytor.com> Date: Mon, 21 May 2012 12:13:05 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: richard -rw- weinberger CC: Eric Paris , Will Drewry , linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, kernel-hardening@lists.openwall.com, mingo@redhat.com, oleg@redhat.com, peterz@infradead.org, rdunlap@xenotime.net, mcgrathr@chromium.org, tglx@linutronix.de, luto@mit.edu, eparis@redhat.com, serge.hallyn@canonical.com, indan@nul.nu, pmoore@redhat.com, akpm@linux-foundation.org, corbet@lwn.net, eric.dumazet@gmail.com, markus@chromium.org, coreyb@linux.vnet.ibm.com, keescook@chromium.org Subject: Re: seccomp and ptrace. what is the correct order? References: In-Reply-To: X-Enigmail-Version: 1.4.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 915 Lines: 22 On 05/21/2012 11:47 AM, richard -rw- weinberger wrote: > On Mon, May 21, 2012 at 8:21 PM, Eric Paris wrote: >> Is that what we want? Do we want to do the permission check based on >> what a process ask at syscall enter or do we want to do the permission >> check based on what the kernel is actually going to do on behalf of >> the process? > > I think we want the latter. > A system call emulator like UserModeLinux would benefit from that. > Are you sure? This would mean that a seccomp program used by the process to intercept its own system calls via SIGSYS would give completely different results under UML than under native... -hpa -- 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/