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.

Signed-off-by: Andy Lutomirski <[email protected]>
Acked-by: Andrew G. Morgan <[email protected]>
Acked-by: Serge Hallyn <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Serge Hallyn <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Aaron Jones <[email protected]>
Cc: Ted Ts'o <[email protected]>
Cc: Andrew G. Morgan <[email protected]>
Cc: Mimi Zohar <[email protected]>
Cc: Austin S Hemmelgarn <[email protected]>
Cc: Markku Savela <[email protected]>
Cc: Jarkko Sakkinen <[email protected]>
Cc: Michael Kerrisk <[email protected]>
Cc: James Morris <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2 files changed