Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1183941

[PATCH v4 0/2] capabilities: Ambient capability patchset

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Andy Lutomirski <luto@kernel.org>
Newsgroups linux.kernel
Subject [PATCH v4 0/2] capabilities: Ambient capability patchset
Date Tue, 14 Jul 2015 21:50:02 +0200
Message-ID <pMenf-1AT-3@gated-at.bofh.it> (permalink)
X-Original-To Andrew Morton <akpm@linuxfoundation.org>
X-Mailer git-send-email 2.4.3
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 43
Organization linux.* mail to news gateway
X-Original-Cc "Serge E. Hallyn" <serge@hallyn.com>, Serge Hallyn <serge.hallyn@ubuntu.com>, James Morris <james.l.morris@oracle.com>, Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>, Ted Ts'o <tytso@mit.edu>, "Andrew G. Morgan" <morgan@kernel.org>, Linux API <linux-api@vger.kernel.org>, Mimi Zohar <zohar@linux.vnet.ibm.com>, Michael Kerrisk <mtk.manpages@gmail.com>, Austin S Hemmelgarn <ahferroin7@gmail.com>, linux-security-module <linux-security-module@vger.kernel.org>, Aaron Jones <aaronmdjones@gmail.com>, Serge Hallyn <serge.hallyn@canonical.com>, LKML <linux-kernel@vger.kernel.org>, Markku Savela <msa@moth.iki.fi>, Kees Cook <keescook@chromium.org>, Jonathan Corbet <corbet@lwn.net>, Christoph Lameter <cl@linux.com>, Andy Lutomirski <luto@kernel.org>
X-Original-Date Tue, 14 Jul 2015 12:46:14 -0700
X-Original-Message-ID <cover.1436903028.git.luto@kernel.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref aioe.org linux.kernel:1183941

Show key headers only | View raw


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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH v4 0/2] capabilities: Ambient capability patchset Andy Lutomirski <luto@kernel.org> - 2015-07-14 21:50 +0200
  [PATCH v4 2/2] capabilities: Add a securebit to disable PR_CAP_AMBIENT_RAISE Andy Lutomirski <luto@kernel.org> - 2015-07-14 21:50 +0200

csiph-web