diff options
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2010-02-10 19:42:40 -0500 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2010-02-14 17:00:18 -0500 |
commit | 76bb0895d038be7bcdb6ccfcd2dd7deb30371d6b (patch) | |
tree | 5948c68b08561deb20d155853faed475a15a4235 /security/tomoyo/realpath.c | |
parent | bf24fb016c861b7f52be0c36c4cedd3e89afa2e2 (diff) |
TOMOYO: Merge headers.
Gather structures and constants scattered around security/tomoyo/ directory.
This is for preparation for adding garbage collector since garbage collector
needs to know structures and constants which TOMOYO uses.
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/tomoyo/realpath.c')
-rw-r--r-- | security/tomoyo/realpath.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/security/tomoyo/realpath.c b/security/tomoyo/realpath.c index 2f7f54fc6812..9557168b3767 100644 --- a/security/tomoyo/realpath.c +++ b/security/tomoyo/realpath.c | |||
@@ -15,9 +15,7 @@ | |||
15 | #include <linux/fs_struct.h> | 15 | #include <linux/fs_struct.h> |
16 | #include <linux/hash.h> | 16 | #include <linux/hash.h> |
17 | #include <linux/magic.h> | 17 | #include <linux/magic.h> |
18 | |||
19 | #include "common.h" | 18 | #include "common.h" |
20 | #include "realpath.h" | ||
21 | 19 | ||
22 | /** | 20 | /** |
23 | * tomoyo_encode: Convert binary string to ascii string. | 21 | * tomoyo_encode: Convert binary string to ascii string. |
@@ -246,14 +244,6 @@ static unsigned int tomoyo_allocated_memory_for_savename; | |||
246 | static unsigned int tomoyo_quota_for_savename; | 244 | static unsigned int tomoyo_quota_for_savename; |
247 | 245 | ||
248 | /* | 246 | /* |
249 | * TOMOYO uses this hash only when appending a string into the string | ||
250 | * table. Frequency of appending strings is very low. So we don't need | ||
251 | * large (e.g. 64k) hash size. 256 will be sufficient. | ||
252 | */ | ||
253 | #define TOMOYO_HASH_BITS 8 | ||
254 | #define TOMOYO_MAX_HASH (1u<<TOMOYO_HASH_BITS) | ||
255 | |||
256 | /* | ||
257 | * tomoyo_name_list is used for holding string data used by TOMOYO. | 247 | * tomoyo_name_list is used for holding string data used by TOMOYO. |
258 | * Since same string data is likely used for multiple times (e.g. | 248 | * Since same string data is likely used for multiple times (e.g. |
259 | * "/lib/libc-2.5.so"), TOMOYO shares string data in the form of | 249 | * "/lib/libc-2.5.so"), TOMOYO shares string data in the form of |