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

Re: [PATCH] capabilities: Ambient capability set V1

From: "Serge E. Hallyn" <serge@hallyn.com>
Date: 2015-02-26 15:35:28
Also in: lkml

On Wed, Feb 25, 2015 at 02:25:19PM -0600, Christoph Lameter wrote:
On Wed, 25 Feb 2015, Serge Hallyn wrote:
quoted
Yeah we could make this
Well doing that breaks su.
Don't what exactly?  You're saying that doing

pI' = pI
pA' = pA  (pA is ambient)
pP' = (X & fP) | (pI & (fI | pA))
pE' = pP' & (fE | pA)

stopped su from having CAP_SETGID while

pI' = pI
pA' = pA  (pA is ambient)
pP' = (X & fP) | (pI & (fI | pA))
pE' = pP' & fE

worked?  I'll hope you're saying both "fail", in which case
Its best to leave perm bits untouched.
christoph@fujitsu-haswell:~$ su
setgid: Operation not permitted
Did you initialize by running a program to fill your pI?

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