Re: [RFC] x86: restrict pid namespaces to 32 or 64 bit syscalls

From: H. Peter Anvin
Date: Sun Aug 14 2011 - 10:50:01 EST

Solar Designer <solar@xxxxxxxxxxxx> wrote:

>On Sat, Aug 13, 2011 at 10:08:57PM -0700, H. Peter Anvin wrote:
>> Andi Kleen <andi@xxxxxxxxxxxxxx> wrote:
>> >Sounds to me a better alternative would be more aggressive,
>> >fuzzing of the compat calls.
>> Agreed. Other than that, I can see a fine-grained permission filter,

>but the compat vs noncompat axis is just spurious.
>In case anyone cares, I respectfully disagree. I am with Vasiliy on
>this. I think that proactive fuzzing is great, but it is not an
>alternative - we can also do both fuzzing and reduction of attack
>surface at once. With Vasiliy reusing an existing check (in a future
>revision of the patch), there's not going to be any performance impact.
>Fine-grained restrictions would be great, but the 32- vs. 64-bit
>restriction makes sense to me as well. I expect different systems to
>use these different kinds of restrictions in different cases.
>We will definitely want to support x32 as well. We'd appreciate any
>suggestions on how to do it best.

i386 vs x86-64 vs x32 is just one of many axes along which syscalls can be restricted (and for that matter, one axis if backward compatibility), and it does not make sense to burden the code with ad hoc filters. Designing a general filter facility which can be used to restrict any container to the subset of system calls it actually needs would make more sense, no?
Sent from my mobile phone. Please excuse my brevity and lack of formatting.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at