Re: seccomp and ptrace. what is the correct order?

From: H. Peter Anvin
Date: Mon May 21 2012 - 15:15:04 EST


On 05/21/2012 11:47 AM, richard -rw- weinberger wrote:
> On Mon, May 21, 2012 at 8:21 PM, Eric Paris <netdev@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/