linux/security/keys
David Howells 29db919063 [PATCH] Keys: Add LSM hooks for key management [try #3]
The attached patch adds LSM hooks for key management facilities. The notable
changes are:

 (1) The key struct now supports a security pointer for the use of security
     modules. This will permit key labelling and restrictions on which
     programs may access a key.

 (2) Security modules get a chance to note (or abort) the allocation of a key.

 (3) The key permission checking can now be enhanced by the security modules;
     the permissions check consults LSM if all other checks bear out.

 (4) The key permissions checking functions now return an error code rather
     than a boolean value.

 (5) An extra permission has been added to govern the modification of
     attributes (UID, GID, permissions).

Note that there isn't an LSM hook specifically for each keyctl() operation,
but rather the permissions hook allows control of individual operations based
on the permission request bits.

Key management access control through LSM is enabled by automatically if both
CONFIG_KEYS and CONFIG_SECURITY are enabled.

This should be applied on top of the patch ensubjected:

	[PATCH] Keys: Possessor permissions should be additive

Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-30 17:37:23 -08:00
..
compat.c
internal.h
key.c [PATCH] Keys: Add LSM hooks for key management [try #3] 2005-10-30 17:37:23 -08:00
keyctl.c [PATCH] Keys: Add LSM hooks for key management [try #3] 2005-10-30 17:37:23 -08:00
keyring.c [PATCH] Keys: Add LSM hooks for key management [try #3] 2005-10-30 17:37:23 -08:00
Makefile [PATCH] Keys: Split key permissions checking into a .c file 2005-10-08 14:53:31 -07:00
permission.c [PATCH] Keys: Add LSM hooks for key management [try #3] 2005-10-30 17:37:23 -08:00
proc.c
process_keys.c [PATCH] Keys: Add LSM hooks for key management [try #3] 2005-10-30 17:37:23 -08:00
request_key_auth.c [PATCH] Keys: Add request-key process documentation 2005-10-08 14:53:31 -07:00
request_key.c [PATCH] Keys: Add request-key process documentation 2005-10-08 14:53:31 -07:00
user_defined.c [PATCH] Keys: Export user-defined keyring operations 2005-10-30 17:37:22 -08:00