From: daw@mozart.cs.berkeley.edu (David Wagner)
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] + story;) on POSIX capabilities and SUID bit
Date: 16 Apr 2002 02:15:07 GMT [thread overview]
Message-ID: <a9g1fb$onq$1@abraham.cs.berkeley.edu> (raw)
In-Reply-To: <Pine.LNX.4.33.0204122026170.903-100000@seldon.terminus.sk>
Marek Zelem wrote:
>Our new formula:
> * (***) pP' = (fP & X) | (fI & pI)
> * pI' = pP'
> * pE' = ((pP' & pE) | fP) & X & fE
Can you say anything about why this is safe and doesn't introduce
vulnerabilities? (The capabilities misfeature that caused sendmail
8.10.1 to leak root privilege really drove home for me the subtlety of
this stuff.)
Also, the meaning of fE and fP seem backwards from what I would have
expected. Maybe this reflects a lack in my understanding in capabilities,
but I thought 'effective' refers to capabilities you're allowed to invoke
at the moment, whereas 'permitted' refers to an upper bound on what
capabilities you're allowed enable in 'effective', consequently I would
have swapped the treatment of fE and fP. Can you clear up my confusion?
Finally, what's the story behind the changes to CAP_INIT_EFF_SET and
CAP_INIT_INH_SET, and the business with CAP_SETPCAP? If I understand
correctly, one side-effect of this change is that you've changed cap_bset
(X, the global bound on capabilities above) to add CAP_SETPCAP to it.
Is this safe? What motivated this change? Did I understand correctly?
next prev parent reply other threads:[~2002-04-16 2:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-12 18:38 [PATCH] + story;) on POSIX capabilities and SUID bit Marek Zelem
2002-04-16 2:15 ` David Wagner [this message]
2002-04-17 16:06 ` Marek Zelem
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='a9g1fb$onq$1@abraham.cs.berkeley.edu' \
--to=daw@mozart.cs.berkeley.edu \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox