tomoyo: version bump to 2.2.0.
[linux-3.10.git] / security / tomoyo / tomoyo.c
index f3ab20758c0f1c3f2377f33e632b79e7a94b2715..5b481912752a91e10199cef23f664d76454ec751 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Copyright (C) 2005-2009  NTT DATA CORPORATION
  *
- * Version: 2.2.0-pre   2009/02/01
+ * Version: 2.2.0   2009/04/01
  *
  */
 
@@ -107,13 +107,13 @@ static char *tomoyo_sysctl_path(struct ctl_table *table)
        *--end = '\0';
        buflen--;
        while (table) {
-               char buf[32];
+               char num[32];
                const char *sp = table->procname;
 
                if (!sp) {
-                       memset(buf, 0, sizeof(buf));
-                       snprintf(buf, sizeof(buf) - 1, "=%d=", table->ctl_name);
-                       sp = buf;
+                       memset(num, 0, sizeof(num));
+                       snprintf(num, sizeof(num) - 1, "=%d=", table->ctl_name);
+                       sp = num;
                }
                if (tomoyo_prepend(&end, &buflen, sp) ||
                    tomoyo_prepend(&end, &buflen, "/"))
@@ -287,6 +287,7 @@ static int __init tomoyo_init(void)
                panic("Failure registering TOMOYO Linux");
        printk(KERN_INFO "TOMOYO Linux initialized\n");
        cred->security = &tomoyo_kernel_domain;
+       tomoyo_realpath_init();
        return 0;
 }