aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalcolm Parsons <malcolm.parsons@gmail.com>2006-06-25 21:49:41 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-26 00:04:24 -0400
commitfcc18e83e1f6fd9fa6b333735bf0fcd530655511 (patch)
tree44cfe84786b80dcbc76a1c0a073137db27dd3f68
parent091487772c3312f3de599d99ca1d73395b54ed61 (diff)
[PATCH] uclinux: use PER_LINUX_32BIT in binfmt_flat
binfmt_flat.c calls set_personality with PER_LINUX as the personality. On the arm architecture this results in the program running in 26bit usermode. PER_LINUX_32BIT should be used instead. This doesn't affect other architectures that use binfmt_flat. Signed-off-by: Greg Ungerer <gerg@uclinux.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--fs/binfmt_flat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c
index b1c902e319c1..c94d52eafd1b 100644
--- a/fs/binfmt_flat.c
+++ b/fs/binfmt_flat.c
@@ -510,7 +510,7 @@ static int load_flat_file(struct linux_binprm * bprm,
510 } 510 }
511 511
512 /* OK, This is the point of no return */ 512 /* OK, This is the point of no return */
513 set_personality(PER_LINUX); 513 set_personality(PER_LINUX_32BIT);
514 } 514 }
515 515
516 /* 516 /*