diff options
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 |