diff options
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2010-06-16 03:20:24 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2010-08-02 01:34:31 -0400 |
commit | 05336dee9f5a23c042e5938b42f996dd35e31ee6 (patch) | |
tree | c5dd4abb5bf15e06b399aa1b1e5db56bd848c762 /security/tomoyo/domain.c | |
parent | 9ee0c823c18119914283358b35a1c3ebb14c2f90 (diff) |
TOMOYO: Use common code for open and mkdir etc.
tomoyo_file_perm() and tomoyo_path_permission() are similar.
We can embed tomoyo_file_perm() into tomoyo_path_permission().
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/domain.c')
-rw-r--r-- | security/tomoyo/domain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/tomoyo/domain.c b/security/tomoyo/domain.c index fe621af46c2e..35317e783f34 100644 --- a/security/tomoyo/domain.c +++ b/security/tomoyo/domain.c | |||
@@ -960,7 +960,7 @@ int tomoyo_find_next_domain(struct linux_binprm *bprm) | |||
960 | } | 960 | } |
961 | 961 | ||
962 | /* Check execute permission. */ | 962 | /* Check execute permission. */ |
963 | retval = tomoyo_check_exec_perm(&r, &rn); | 963 | retval = tomoyo_path_permission(&r, TOMOYO_TYPE_EXECUTE, &rn); |
964 | if (retval == TOMOYO_RETRY_REQUEST) | 964 | if (retval == TOMOYO_RETRY_REQUEST) |
965 | goto retry; | 965 | goto retry; |
966 | if (retval < 0) | 966 | if (retval < 0) |