diff options
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2011-07-08 00:21:37 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2011-07-10 21:05:32 -0400 |
commit | 2066a36125fcbf5220990173b9d8e8bc49ad7538 (patch) | |
tree | c8ea3a6d92a8b4b68cda986601336e8e8f58553e /security/tomoyo/util.c | |
parent | 5c4274f13819b40e726f6ee4ef13b4952cff5010 (diff) |
TOMOYO: Allow using UID/GID etc. of current thread as conditions.
This patch adds support for permission checks using current thread's UID/GID
etc. in addition to pathnames.
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/tomoyo/util.c')
-rw-r--r-- | security/tomoyo/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/tomoyo/util.c b/security/tomoyo/util.c index 7ff54c95e1f2..e25f7ffd5ba7 100644 --- a/security/tomoyo/util.c +++ b/security/tomoyo/util.c | |||
@@ -138,7 +138,7 @@ char *tomoyo_read_token(struct tomoyo_acl_param *param) | |||
138 | * The @src is updated to point the first character after the value | 138 | * The @src is updated to point the first character after the value |
139 | * on success. | 139 | * on success. |
140 | */ | 140 | */ |
141 | static u8 tomoyo_parse_ulong(unsigned long *result, char **str) | 141 | u8 tomoyo_parse_ulong(unsigned long *result, char **str) |
142 | { | 142 | { |
143 | const char *cp = *str; | 143 | const char *cp = *str; |
144 | char *ep; | 144 | char *ep; |