The patch titled
SLIM: secfs patch
has been removed from the -mm tree. Its filename was
slim-secfs-patch.patch
This patch was dropped because this work seems to be stalled
------------------------------------------------------
Subject: SLIM: secfs patch
From: Kylene Jo Hall <[EMAIL PROTECTED]>
This patch provides the securityfs used by SLIM.
Signed-off-by: Mimi Zohar <[EMAIL PROTECTED]>
Signed-off-by: Kylene Hall <[EMAIL PROTECTED]>
Cc: Dave Safford <[EMAIL PROTECTED]>
Cc: Mimi Zohar <[EMAIL PROTECTED]>
Cc: Serge Hallyn <[EMAIL PROTECTED]>
Cc: Chris Wright <[EMAIL PROTECTED]>
Cc: Stephen Smalley <[EMAIL PROTECTED]>
Cc: James Morris <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
security/slim/slm_main.c | 1
security/slim/slm_secfs.c | 72 ++++++++++++++++++++++++++++++++++++
2 files changed, 72 insertions(+), 1 deletion(-)
diff -puN /dev/null security/slim/slm_secfs.c
--- /dev/null
+++ a/security/slim/slm_secfs.c
@@ -0,0 +1,72 @@
+/*
+ * SLIM securityfs support: debugging control files
+ *
+ * Copyright (C) 2005, 2006 IBM Corporation
+ * Author: Mimi Zohar <[EMAIL PROTECTED]>
+ * Kylene Hall <[EMAIL PROTECTED]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, version 2 of the License.
+ */
+
+#include <asm/uaccess.h>
+#include <linux/module.h>
+#include <linux/kernel.h>
+#include <linux/security.h>
+#include <linux/debugfs.h>
+#include "slim.h"
+
+static struct dentry *slim_sec_dir, *slim_level;
+
+static ssize_t slm_read_level(struct file *file, char __user *buf,
+ size_t buflen, loff_t *ppos)
+{
+ struct slm_tsec_data *cur_tsec = current->security;
+ ssize_t len;
+ char data[28];
+ if (is_kernel_thread(current))
+ len = scnprintf(data, sizeof(data), "KERNEL\n");
+ else if (!cur_tsec)
+ len = scnprintf(data, sizeof(data), "UNKNOWN\n");
+ else {
+ if (cur_tsec->iac_wx != cur_tsec->iac_r)
+ len = scnprintf(data, sizeof(data), "GUARD wx:%s
r:%s\n",
+ slm_iac_str[cur_tsec->iac_wx],
+ slm_iac_str[cur_tsec->iac_r]);
+ else
+ len = scnprintf(data, sizeof(data), "%s\n",
+ slm_iac_str[cur_tsec->iac_wx]);
+ }
+ return simple_read_from_buffer(buf, buflen, ppos, data, len);
+}
+
+static struct file_operations slm_level_ops = {
+ .read = slm_read_level,
+};
+
+int __init slm_init_secfs(void)
+{
+ if (!slim_enabled)
+ return 0;
+
+ slim_sec_dir = securityfs_create_dir("slim", NULL);
+ if (!slim_sec_dir || IS_ERR(slim_sec_dir))
+ return -EFAULT;
+ slim_level = securityfs_create_file("level", S_IRUGO,
+ slim_sec_dir, NULL, &slm_level_ops);
+ if (!slim_level || IS_ERR(slim_level)) {
+ securityfs_remove(slim_sec_dir);
+ return -EFAULT;
+ }
+ return 0;
+}
+
+__initcall(slm_init_secfs);
+
+void __exit slm_cleanup_secfs(void)
+{
+ securityfs_remove(slim_level);
+ securityfs_remove(slim_sec_dir);
+}
+
diff -puN security/slim/slm_main.c~slim-secfs-patch security/slim/slm_main.c
--- a/security/slim/slm_main.c~slim-secfs-patch
+++ a/security/slim/slm_main.c
@@ -11,7 +11,6 @@
*/
#include <linux/mman.h>
-#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/security.h>
#include <linux/integrity.h>
_
Patches currently in -mm which might be from [EMAIL PROTECTED] are
use-menuconfig-objects-ii-tpm.patch
slim-secfs-patch.patch
slim-make-and-config-stuff.patch
slim-debug-output.patch
slim-documentation.patch
integrity-new-hooks.patch
integrity-fs-hook-placement.patch
integrity-evm-as-an-integrity-service-provider.patch
integrity-ima-integrity_measure-support.patch
integrity-ima-identifiers.patch
integrity-ima-cleanup.patch
integrity-tpm-internal-kernel-interface.patch
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html