linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] capabilities: Ambient capability patchset
@ 2015-07-14 19:46 Andy Lutomirski
  2015-07-14 19:46 ` [PATCH v4 1/2] capabilities: Ambient capabilities Andy Lutomirski
  2015-07-14 19:46 ` [PATCH v4 2/2] capabilities: Add a securebit to disable PR_CAP_AMBIENT_RAISE Andy Lutomirski
  0 siblings, 2 replies; 9+ messages in thread
From: Andy Lutomirski @ 2015-07-14 19:46 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Serge E. Hallyn, Serge Hallyn, James Morris, Jarkko Sakkinen,
	Ted Ts'o, Andrew G. Morgan, Linux API, Mimi Zohar,
	Michael Kerrisk, Austin S Hemmelgarn, linux-security-module,
	Aaron Jones, Serge Hallyn, LKML, Markku Savela, Kees Cook,
	Jonathan Corbet, Christoph Lameter, Andy Lutomirski

This adds ambient capabilities.  See the individual patch changelogs
for details.

Preliminary userspace code is here, but it needs updating:

https://git.kernel.org/cgit/linux/kernel/git/luto/util-linux-playground.git/commit/?h=cap_ambient&id=7f5afbd175d2

Changes from v3:
 - Rename PR_CAP_AMBIENT_READ to PR_CAP_AMBIENT_IS_SET (Michael Kerrisk)
 - Add PR_CAP_AMBIENT_CLEAR_ALL (Michael Kerrisk)
 - Add acks from v2

Changes from v2:
 - Improve the patch 1 changelog a bit.
 - Add acks.
 - Add comment clarifying the pE' rule.
 - s/except/expect

Changes from v1:
 - Lots of cleanups to the ambient cap code.
 - The securebit is new.
 
Andy Lutomirski (2):
  capabilities: Ambient capabilities
  capabilities: Add a securebit to disable PR_CAP_AMBIENT_RAISE

 fs/proc/array.c                 |   5 +-
 include/linux/cred.h            |   8 ++++
 include/uapi/linux/prctl.h      |   7 +++
 include/uapi/linux/securebits.h |  11 ++++-
 kernel/user_namespace.c         |   1 +
 security/commoncap.c            | 103 ++++++++++++++++++++++++++++++++++++----
 security/keys/process_keys.c    |   1 +
 7 files changed, 124 insertions(+), 12 deletions(-)

-- 
2.4.3

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-07-17 23:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-14 19:46 [PATCH v4 0/2] capabilities: Ambient capability patchset Andy Lutomirski
2015-07-14 19:46 ` [PATCH v4 1/2] capabilities: Ambient capabilities Andy Lutomirski
     [not found]   ` <9f660ee708e58892bfa7012b6b9c840298e24544.1436903028.git.luto-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2015-07-15 11:13     ` James Morris
     [not found]       ` <alpine.LRH.2.11.1507152033420.8351-gx6/JNMH7DfYtjvyW6yDsg@public.gmane.org>
2015-07-15 17:09         ` Andy Lutomirski
     [not found]           ` <CALCETrWMBZ0p7P1FvtrYp5ChJXvvRzy0JpjS8KwUUa5m9gqgQA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-17 20:40             ` Christoph Lameter
     [not found]               ` <alpine.DEB.2.11.1507171539590.13763-wcBtFHqTun5QOdAKl3ChDw@public.gmane.org>
2015-07-17 20:50                 ` Andrew Morton
2015-07-17 23:10                   ` Kees Cook
     [not found]                     ` <CAGXu5j+V0fMae5OOHwU5DcMrG0TCANYOTfbz5+LDZZqYKcXAaw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-17 23:21                       ` Andy Lutomirski
2015-07-14 19:46 ` [PATCH v4 2/2] capabilities: Add a securebit to disable PR_CAP_AMBIENT_RAISE Andy Lutomirski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).