Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114787
b: refs/heads/master
c: 5311248
h: refs/heads/master
i:
  114785: 1453e02
  114783: dff4718
v: v3
  • Loading branch information
Kirill A. Shutemov authored and Linus Torvalds committed Oct 16, 2008
1 parent a57afa1 commit e26b5c6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cde162c2a963dba6d1b6921b58917ef8f27f4150
refs/heads/master: 53112488bebe25c0f5f8a002470046c0fe9a6c61
2 changes: 1 addition & 1 deletion trunk/arch/alpha/include/asm/a.out.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ struct exec
Worse, we have to notice the start address before swapping to use
/sbin/loader, which of course is _not_ a TASO application. */
#define SET_AOUT_PERSONALITY(BFPM, EX) \
set_personality (((BFPM->sh_bang || EX.ah.entry < 0x100000000L \
set_personality (((BFPM->taso || EX.ah.entry < 0x100000000L \
? ADDR_LIMIT_32BIT : 0) | PER_OSF4))

#endif /* __KERNEL__ */
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ int search_binary_handler(struct linux_binprm *bprm,struct pt_regs *regs)
return retval;

/* Remember if the application is TASO. */
bprm->sh_bang = eh->ah.entry < 0x100000000UL;
bprm->taso = eh->ah.entry < 0x100000000UL;

bprm->file = file;
bprm->loader = loader;
Expand Down
3 changes: 3 additions & 0 deletions trunk/include/linux/binfmts.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ struct linux_binprm{
unsigned long p; /* current top of mem */
unsigned int sh_bang:1,
misc_bang:1;
#ifdef __alpha__
unsigned int taso:1;
#endif
struct file * file;
int e_uid, e_gid;
kernel_cap_t cap_post_exec_permitted;
Expand Down

0 comments on commit e26b5c6

Please sign in to comment.