diff -uNr linux-2.6.37.orig//security/tomoyo/file.c linux-2.6.37/security/tomoyo/file.c --- linux-2.6.37.orig//security/tomoyo/file.c 2011-03-02 07:56:50.349999882 +0000 +++ linux-2.6.37/security/tomoyo/file.c 2011-03-02 07:57:38.293328407 +0000 @@ -927,7 +927,7 @@ struct path *path, const int flag) { const u8 acc_mode = ACC_MODE(flag); - int error = -ENOMEM; + int error = 0; struct tomoyo_path_info buf; struct tomoyo_request_info r; int idx; @@ -938,9 +938,6 @@ buf.name = NULL; r.mode = TOMOYO_CONFIG_DISABLED; idx = tomoyo_read_lock(); - if (!tomoyo_get_realpath(&buf, path)) - goto out; - error = 0; /* * If the filename is specified by "deny_rewrite" keyword, * we need to check "allow_rewrite" permission when the filename is not