Thread (13 messages) 13 messages, 6 authors, 2017-07-14

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

flat view

From: serge@hallyn.com (Serge E. Hallyn)
Date: 2017-07-14 13:34:41
Also in: lkml

Quoting Stefan Berger (stefanb at linux.vnet.ibm.com):
On 07/13/2017 08:38 PM, Eric W. Biederman wrote:
quoted
Stefan Berger [off-list ref] writes:
quoted
On 07/13/2017 01:49 PM, Eric W. Biederman wrote:
quoted
My big question right now is can you implement Ted's suggested
restriction.  Only one security.foo or secuirty.foo at ... 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 security.foo and one security.foo at uid=<> or just a single one security.foo(@[[: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
Not really.  If the file is owned by a uid mapped into the container,
then the container root can chown the file which will clear the file
capability, after which he can set a new one.  If the file is not
owned by a uid mapped into the container, then container root could
not set a filecap anyway.

-serge
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help