From: Andy Lutomirski <luto@myrealbox.com>
To: akpm@osdl.org, chrisw@osdl.org, linux-kernel@vger.kernel.org
Cc: luto@myrealbox.com
Subject: [PATCH 0/2] capabilities
Date: Tue, 11 May 2004 20:24:22 -0700 [thread overview]
Message-ID: <200405112024.22097.luto@myrealbox.com> (raw)
This reintroduces useful capabilities.
In this model, the inheritable mask is a limit on what capabilities
the task or any of its children may have. Permitted and effective masks
have their old meanings.
Init gets all capabilities (even CAP_SETPCAP) since it seems absurd to do
otherwise.
Part 1 shouldn't change user-visible behavior; it just moves the vfs
capability logic into fs/exec.c (where it IMHO belongs) and the setuid
logic into apply_creds (where it IMHO belongs). I made no effort to
make apply_creds pretty since it all gets deleted in the next patch
anyway.
Part 2 redoes the capability logic.
This code is paranoid about setuid. A later patch will allow that to
be overridden by a sysctl so that securelevel can be done usefully.
I left cap_bset in, even though I can't see a use for it anymore.
I put some user tools at http://www.stanford.edu/~luto/cap/; I've used
themn to exercise this code somewhat.
It applies to 2.6.6-mm1. It does _not_ apply to 2.6.6 vanilla, but the fix
should be trivial (it conflicts with something in fs/exec.c). It will not
apply to earlier versions, as it depends on the compute_creds race fix.
Please let me know what you think and if you see any holes in this code
or possibilities of exposing / introducing bugs in other programs (think
Sendmail bug).
This should also eliminate the Oracle magic-group mess :)
Andrew- is this sufficiently non-scary for -mm?
Where this is going:
There is probably some dead code now in sys_capset. I'll check on that.
Also, I have an ext3 xattr caps patch lying around somewhere. I can try
to get it working again.
--Andy
next reply other threads:[~2004-05-12 3:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-12 3:24 Andy Lutomirski [this message]
2004-05-12 3:44 ` Chris Wright
2004-05-12 23:41 ` Andrew Morton
2004-05-13 1:50 ` Andy Lutomirski
2004-05-13 1:55 ` Andrew Morton
2004-05-15 0:00 ` Paul Jakma
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=200405112024.22097.luto@myrealbox.com \
--to=luto@myrealbox.com \
--cc=akpm@osdl.org \
--cc=chrisw@osdl.org \
--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
all inboxes | Powered by JetHome®