Thread (42 messages) flat view 42 messages, 4 authors, 2015-02-26

Re: [PATCH] capabilities: Ambient capability set V1

From: Andy Lutomirski <luto@amacapital.net>
Date: 2015-02-23 15:59:59
Also in: lkml

On Mon, Feb 23, 2015 at 7:53 AM, Christoph Lameter [off-list ref] wrote:
On Mon, 23 Feb 2015, Andy Lutomirski wrote:
quoted
At the very least, I think it needs to define and implement what
happens when a cap is added to ambient and then dropped from
permitted. We also may need LSM_UNSAFE_something to clear the ambient
set to avoid a major security issue.
The ambient cap needs to stay otherwise we will have issues again if
another binary/script is forked. IMHO the only way to switch off an
ambient capability should be another prctl action. The intend is after all
to have the cap available for all inherited processes.
No, sadly.

If you set ambient caps and then run a setuid program (without
no_new_privs), then the ambient set *must* be cleared by the kernel
because that's what the setuid program expects.  Yes, the whole
concept of setuid is daft, but it exists and we have to keep it
working safely, or at least as safely as it ever worked.

--Andy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help