Re: [PATCH v2] xattr: Enable security.capability in user namespaces

From: Stefan Berger
Date: Fri Jul 14 2017 - 07:33:02 EST

On 07/13/2017 08:38 PM, Eric W. Biederman wrote:
Stefan Berger <stefanb@xxxxxxxxxxxxxxxxxx> writes:

On 07/13/2017 01:49 PM, Eric W. Biederman wrote:

My big question right now is can you implement Ted's suggested
restriction. Only one or attribute ?
We need to raw-list the xattrs and do the check before writing them. I am fairly sure this can be done.

So now you want to allow and one<> or just a single one[[:print:]]*)?

The latter.

That case would prevent a container user from overriding the xattr on the host. Is that what we want? For limiting the number of xattrs and getting that functionality (override IMA signature for example) the former seems better...

For the former I now have the topmost patch here:


To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at