public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tpm add default function definitions
@ 2009-10-26 13:26 Mimi Zohar
  2009-10-26 13:26 ` [PATCH] ima: remove ACPI dependency Mimi Zohar
  2009-10-26 14:06 ` [PATCH] tpm add default function definitions Rajiv Andrade
  0 siblings, 2 replies; 16+ messages in thread
From: Mimi Zohar @ 2009-10-26 13:26 UTC (permalink / raw)
  To: linux-kernel
  Cc: Mimi Zohar, James Morris, Rajiv Andrade, Jean-Christophe Dubois,
	David Safford, Mimi Zohar, Stable Kernel

Add default tpm_pcr_read/extend function definitions required
by IMA/Kconfig changes.

Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Cc: Stable Kernel <stable@kernel.org>
---
 include/linux/tpm.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/include/linux/tpm.h b/include/linux/tpm.h
index 3338b3f..8eaa8f8 100644
--- a/include/linux/tpm.h
+++ b/include/linux/tpm.h
@@ -31,5 +31,12 @@
 
 extern int tpm_pcr_read(u32 chip_num, int pcr_idx, u8 *res_buf);
 extern int tpm_pcr_extend(u32 chip_num, int pcr_idx, const u8 *hash);
+#else
+static inline int tpm_pcr_read(u32 chip_num, int pcr_idx, u8 *res_buf) {
+	return -ENODEV;
+}
+static inline int tpm_pcr_extend(u32 chip_num, int pcr_idx, const u8 *hash) {
+	return -ENODEV;
+}
 #endif
 #endif
-- 
1.6.0.6


^ permalink raw reply related	[flat|nested] 16+ messages in thread
* [PATCH] ima: remove ACPI dependency
@ 2010-05-04 22:16 Mimi Zohar
  2010-05-05  0:01 ` James Morris
  2010-05-14 14:39 ` Mimi Zohar
  0 siblings, 2 replies; 16+ messages in thread
From: Mimi Zohar @ 2010-05-04 22:16 UTC (permalink / raw)
  To: linux-kernel
  Cc: Jean-Christophe Dubois, Serge Hallyn, Mimi Zohar, James Morris,
	Rajiv Andrade, Mimi Zohar

The ACPI dependency moved to the TPM, where it belongs.  Although
IMA per-se does not require access to the bios measurement log,
verifying the IMA boot aggregate does, which requires ACPI.

This patch prereq's 'TPM: ACPI/PNP dependency removal'
http://lkml.org/lkml/2010/5/4/378.

Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Reported-by: Jean-Christophe Dubois <jcd@tribudubois.net>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Tested-by: Serge Hallyn <serue@us.ibm.com>
---
 security/integrity/ima/Kconfig |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/security/integrity/ima/Kconfig b/security/integrity/ima/Kconfig
index 3d7846d..b6ecfd4 100644
--- a/security/integrity/ima/Kconfig
+++ b/security/integrity/ima/Kconfig
@@ -2,15 +2,14 @@
 #
 config IMA
 	bool "Integrity Measurement Architecture(IMA)"
-	depends on ACPI
 	depends on SECURITY
 	select SECURITYFS
 	select CRYPTO
 	select CRYPTO_HMAC
 	select CRYPTO_MD5
 	select CRYPTO_SHA1
-	select TCG_TPM
-	select TCG_TIS
+	select TCG_TPM if !S390
+	select TCG_TIS if TCG_TPM
 	help
 	  The Trusted Computing Group(TCG) runtime Integrity
 	  Measurement Architecture(IMA) maintains a list of hash
-- 
1.6.6.1


^ permalink raw reply related	[flat|nested] 16+ messages in thread
* [PATCH] ima: remove ACPI dependency
@ 2009-10-20 20:12 Mimi Zohar
  2009-10-25 18:17 ` Jean-Christophe Dubois
  0 siblings, 1 reply; 16+ messages in thread
From: Mimi Zohar @ 2009-10-20 20:12 UTC (permalink / raw)
  To: linux-kernel
  Cc: Mimi Zohar, Jean-Christophe Dubois, James Morris, David Safford,
	Mimi Zohar

Remove ACPI dependency on systems without a TPM enabled.

Reported-by: Jean-Christophe Dubois <jcd@tribudubois.net>
Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
---
 security/integrity/ima/Kconfig |   16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/security/integrity/ima/Kconfig b/security/integrity/ima/Kconfig
index 53d9764..3ca39e7 100644
--- a/security/integrity/ima/Kconfig
+++ b/security/integrity/ima/Kconfig
@@ -2,14 +2,12 @@
 #
 config IMA
 	bool "Integrity Measurement Architecture(IMA)"
-	depends on ACPI
 	select SECURITYFS
 	select CRYPTO
 	select CRYPTO_HMAC
 	select CRYPTO_MD5
 	select CRYPTO_SHA1
-	select TCG_TPM
-	select TCG_TIS
+	select ACPI if TCG_TPM
 	help
 	  The Trusted Computing Group(TCG) runtime Integrity
 	  Measurement Architecture(IMA) maintains a list of hash
@@ -18,12 +16,12 @@ config IMA
 	  to change the contents of an important system file
 	  being measured, we can tell.
 
-	  If your system has a TPM chip, then IMA also maintains
-	  an aggregate integrity value over this list inside the
-	  TPM hardware, so that the TPM can prove to a third party
-	  whether or not critical system files have been modified.
-	  Read <http://www.usenix.org/events/sec04/tech/sailer.html>
-	  to learn more about IMA.
+	  If your system has a TPM chip, and it is enabled, then
+	  IMA also maintains an aggregate integrity value over
+	  this list inside the TPM hardware, so that the TPM can
+	  prove to a third party whether or not critical system
+	  files have been modified. To learn more about IMA, read
+	  <http://www.usenix.org/events/sec04/tech/sailer.html>
 	  If unsure, say N.
 
 config IMA_MEASURE_PCR_IDX
-- 
1.6.0.6


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2010-05-16 23:23 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-26 13:26 [PATCH] tpm add default function definitions Mimi Zohar
2009-10-26 13:26 ` [PATCH] ima: remove ACPI dependency Mimi Zohar
2009-10-27 13:58   ` Eric Paris
2009-10-27 15:59     ` David Safford
2009-10-27 16:36       ` Eric Paris
2009-10-27 20:42         ` David Safford
2009-10-27 20:56           ` Eric Paris
2009-10-28 18:51             ` Rajiv Andrade
2009-10-26 14:06 ` [PATCH] tpm add default function definitions Rajiv Andrade
2009-10-27 14:08   ` Eric Paris
  -- strict thread matches above, loose matches on Subject: below --
2010-05-04 22:16 [PATCH] ima: remove ACPI dependency Mimi Zohar
2010-05-05  0:01 ` James Morris
2010-05-14 14:39 ` Mimi Zohar
2010-05-16 23:23   ` James Morris
2009-10-20 20:12 Mimi Zohar
2009-10-25 18:17 ` Jean-Christophe Dubois

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox