aboutsummaryrefslogtreecommitdiffstats
path: root/security/tomoyo/domain.c
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2011-06-26 10:21:19 -0400
committerJames Morris <jmorris@namei.org>2011-06-28 19:31:21 -0400
commit2c47ab9353242b0f061959318f83c55360b88fa4 (patch)
tree03693079bf04572d30ef0ca37f717ae8acc29863 /security/tomoyo/domain.c
parent2e503bbb435ae418aebbe4aeede1c6f2a33d6f74 (diff)
TOMOYO: Cleanup part 4.
Gather string constants to one file in order to make the object size smaller. Use unsigned type where appropriate. read()/write() returns ssize_t. 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.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/security/tomoyo/domain.c b/security/tomoyo/domain.c
index 71acebc747c3..7893127d8770 100644
--- a/security/tomoyo/domain.c
+++ b/security/tomoyo/domain.c
@@ -684,10 +684,11 @@ int tomoyo_find_next_domain(struct linux_binprm *bprm)
684 retval = -ENOMEM; 684 retval = -ENOMEM;
685 else { 685 else {
686 retval = 0; 686 retval = 0;
687 if (!old_domain->transition_failed) { 687 if (!old_domain->flags[TOMOYO_DIF_TRANSITION_FAILED]) {
688 old_domain->transition_failed = true; 688 old_domain->flags[TOMOYO_DIF_TRANSITION_FAILED] = true;
689 r.granted = false; 689 r.granted = false;
690 tomoyo_write_log(&r, "%s", "transition_failed\n"); 690 tomoyo_write_log(&r, "%s", tomoyo_dif
691 [TOMOYO_DIF_TRANSITION_FAILED]);
691 printk(KERN_WARNING 692 printk(KERN_WARNING
692 "ERROR: Domain '%s' not defined.\n", tmp); 693 "ERROR: Domain '%s' not defined.\n", tmp);
693 } 694 }