]> git.baikalelectronics.ru Git - kernel.git/commit
encrypted-keys: module build fixes
authorMimi Zohar <zohar@linux.vnet.ibm.com>
Sun, 16 Oct 2011 23:17:48 +0000 (19:17 -0400)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Wed, 16 Nov 2011 19:23:14 +0000 (14:23 -0500)
commita433e25e72015a93986652b376cbfe8b3b56b373
tree7163913d680c3160918a466f92cacb473c2c91ec
parentc4622bc199a2da026eefe76b0dbecee5d5fae53c
encrypted-keys: module build fixes

Encrypted keys are encrypted/decrypted using either a trusted or
user-defined key type, which is referred to as the 'master' key.
The master key may be of type trusted iff the trusted key is
builtin or both the trusted key and encrypted keys are built as
modules.  This patch resolves the build dependency problem.

- Use "masterkey-$(CONFIG_TRUSTED_KEYS)-$(CONFIG_ENCRYPTED_KEYS)" construct
to encapsulate the above logic. (Suggested by Dimtry Kasatkin.)
- Fixing the encrypted-keys Makefile, results in a module name change
from encrypted.ko to encrypted-keys.ko.
- Add module dependency for request_trusted_key() definition

Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
security/keys/encrypted-keys/Makefile
security/keys/encrypted-keys/encrypted.h