capabilities: add a securebit to disable PR_CAP_AMBIENT_RAISE 54/277654/1 accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix accepted/tizen/6.5/unified/20220713.144341 accepted/tizen/7.0/unified/20221110.063804 accepted/tizen/7.0/unified/hotfix/20221116.111953 accepted/tizen/unified/20220712.132911 submit/tizen/20220712.041416 submit/tizen_6.5/20220712.041332 submit/tizen_6.5/20220712.041400 tizen_7.0_m2_release
authorAndy Lutomirski <luto@kernel.org>
Fri, 4 Sep 2015 22:42:51 +0000 (15:42 -0700)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Mon, 11 Jul 2022 20:34:02 +0000 (22:34 +0200)
commitbbdb1aa7d4d927266473367072c1de9a258f8b47
treecdf08661e61994277a4452936c4b3264961db1f2
parent30c891e38cd1f7f9129812c5d5c9e50a5ede450c
capabilities: add a securebit to disable PR_CAP_AMBIENT_RAISE

Per Andrew Morgan's request, add a securebit to allow admins to disable
PR_CAP_AMBIENT_RAISE.  This securebit will prevent processes from adding
capabilities to their ambient set.

For simplicity, this disables PR_CAP_AMBIENT_RAISE entirely rather than
just disabling setting previously cleared bits.

Change-Id: I0a81bd7a3ede292e3e966633d3a2181fc9166078
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Acked-by: Andrew G. Morgan <morgan@kernel.org>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Christoph Lameter <cl@linux.com>
Cc: Serge Hallyn <serge.hallyn@canonical.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Aaron Jones <aaronmdjones@gmail.com>
Cc: Ted Ts'o <tytso@mit.edu>
Cc: Andrew G. Morgan <morgan@kernel.org>
Cc: Mimi Zohar <zohar@linux.vnet.ibm.com>
Cc: Austin S Hemmelgarn <ahferroin7@gmail.com>
Cc: Markku Savela <msa@moth.iki.fi>
Cc: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Cc: James Morris <james.l.morris@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Origin: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=746bf6d64275be0c65b0631d8a72b16f1454cfa1
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
include/uapi/linux/securebits.h
security/commoncap.c