From: Andy Lutomirski <luto@stanford.edu>
To: David Wagner <daw@cs.berkeley.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: posix capabilities inheritance
Date: Fri, 24 Oct 2003 14:24:00 -0700 [thread overview]
Message-ID: <3F999870.4050709@stanford.edu> (raw)
In-Reply-To: <fa.hq0dft9.9i0obd@ifi.uio.no>
David Wagner wrote:
> Andy Lutomirski wrote:
>
>>I've been programming Windows for a long time, and windows has a
>>capability system. [...] All capabilities are disabled by default (almost --
>>there's a pointless exception, of course). The result is that every
>>program that uses a privileged function (e.g. change the time, restart,
>>etc.) wraps that call with something that turns enables the capability
>>at first, then disables it. This has no benefit -- a hijacked
>>privileged program can still enable them, and the admin never sees this,
>>because everything enables them.
>
>
> Actually, it does have some benefits. If I do an open() somewhere
> else in the code, I know that it is not going to unintentionally use
> my elevated privileges. That's useful. Least privilege, and all that.
Agreed, somewhat. The problem IMHO is that, even for caps like
CAP_DAC_READ_SEARCH, no existing code expects this behavior. (Windows
example again: users with SeBackupPrivilege have a _very_ hard time
using it since few programs actually know what to do with it.) If I'm a
user with CAP_DAC_READ_SEARCH, I don't want to have to rewrite all of
fileutils just to use that privilege. Users can still have this
behavior, though, under my proposed evolution rules:
pE' = pP' & (pE|fP)
Pretend that 'cap' is a bash builtin that did the obvious thing:
~backupuser/.bashrc: cap all disable
~backupuser/bin/privrun: cap all enable; exec $*
Now that user can't accidentally use CAP_DAC_READ_SEARCH, but s/he could
do 'privrun ls', for example, if necessary. (I'm ignoring funny issues
with cd here.) All of this is without the fE mask and without modifying
or breaking existing user tools.
If you can think of a use for fE, let me know :)
Andy
next parent reply other threads:[~2003-10-24 21:24 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <fa.f26d55g.1qgijbi@ifi.uio.no>
[not found] ` <fa.hq0dft9.9i0obd@ifi.uio.no>
2003-10-24 21:24 ` Andy Lutomirski [this message]
[not found] <fa.n4rmmgg.2423pm@ifi.uio.no>
[not found] ` <fa.l1oevhb.1s5k583@ifi.uio.no>
2003-10-24 8:44 ` posix capabilities inheritance Andy Lutomirski
2003-10-24 12:41 ` Theodore Ts'o
2003-10-24 16:44 ` Andy Lutomirski
2003-10-24 20:58 ` David Wagner
[not found] <fa.f4bs2b4.fhub0m@ifi.uio.no>
2003-10-23 22:05 ` Michael Glasgow
2003-10-23 22:59 ` Theodore Ts'o
2003-10-24 1:36 ` Ernie Petrides
2003-10-24 2:19 ` Bernd Eckenfels
2003-10-24 5:10 ` Ernie Petrides
2003-10-25 19:51 ` Pavel Machek
2003-10-23 1:41 Albert Cahalan
[not found] <fa.f9mv0tb.27sf3j@ifi.uio.no>
2003-10-23 1:36 ` Michael Glasgow
2003-10-23 1:57 ` Andy Lutomirski
[not found] <fa.f36f4t9.1rg8j3v@ifi.uio.no>
2003-10-22 7:11 ` Michael Glasgow
2003-10-22 19:40 ` Andy Lutomirski
[not found] <fa.hehull9.10mmngt@ifi.uio.no>
2003-10-21 18:24 ` Andy Lutomirski
-- strict thread matches above, loose matches on Subject: below --
2003-10-21 11:26 Michael Glasgow
2003-10-23 16:46 ` Theodore Ts'o
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=3F999870.4050709@stanford.edu \
--to=luto@stanford.edu \
--cc=daw@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.