* [Patch -mm] integrity: ima exit
@ 2007-03-28 16:39 Mimi Zohar
0 siblings, 0 replies; only message in thread
From: Mimi Zohar @ 2007-03-28 16:39 UTC (permalink / raw)
To: linux-kernel; +Cc: safford, serue, kjhall, sailer, zohar, akpm
This patch corrects calling an __exit function from a non-_-exit function.
signed-off-by: Mimi Zohar <zohar@us.ibm.com>
signed-off-by: Kylene Hall <kjhall@us.ibm.com>
---
security/evm/ima/ima_init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6.21-rc5-mm2/security/evm/ima/ima_init.c
===================================================================
--- linux-2.6.21-rc5-mm2.orig/security/evm/ima/ima_init.c
+++ linux-2.6.21-rc5-mm2/security/evm/ima/ima_init.c
@@ -111,7 +111,7 @@ int ima_init(void)
return ima_fs_init();
}
-void ima_cleanup(void)
+void __exit ima_cleanup(void)
{
ima_fs_cleanup();
}
Index: linux-2.6.21-rc5-mm2/security/evm/evm_integrity.h
===================================================================
--- linux-2.6.21-rc5-mm2.orig/security/evm/evm_integrity.h
+++ linux-2.6.21-rc5-mm2/security/evm/evm_integrity.h
@@ -9,21 +9,21 @@
extern unsigned int evm_enable_ima;
#ifdef CONFIG_IMA_MEASURE
-static inline int evm_ima_init(void)
+static int evm_ima_init(void)
{
if (evm_enable_ima)
return ima_init();
return 0;
}
-static inline void evm_ima_measure(const unsigned char *name, int hash_len,
+static void evm_ima_measure(const unsigned char *name, int hash_len,
char *hash)
{
if (evm_enable_ima)
ima_measure(name, hash_len, hash);
}
-static inline void evm_ima_cleanup(void)
+static void __exit evm_ima_cleanup(void)
{
if (evm_enable_ima)
ima_cleanup();
@@ -31,19 +31,19 @@ static inline void evm_ima_cleanup(void)
}
#else
-static inline int evm_ima_init(void)
+static int evm_ima_init(void)
{
evm_enable_ima = 0;
return 0;
}
-static inline void evm_ima_measure(const unsigned char *name, int hash_len,
+static void evm_ima_measure(const unsigned char *name, int hash_len,
char *hash)
{
return;
}
-static inline void evm_ima_cleanup(void)
+static void __exit evm_ima_cleanup(void)
{
evm_enable_ima = 0;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-03-28 16:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-28 16:39 [Patch -mm] integrity: ima exit Mimi Zohar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®