Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.14-pre8 /fs/exec.c

Filename:/fs/exec.c
Lines Added:6
Lines Deleted:2
Also changed in: (Previous) 2.4.14-pre7  2.4.14-pre6  2.4.14-pre5  2.4.14-pre4  2.4.14-pre3  2.4.14-pre2 
(Following) 2.4.14  2.4.17-pre3  2.4.17-pre4  2.4.17-pre5  2.4.17-pre6  2.4.17-pre7 

Location
[  2.4.14-pre8
  [  fs
     o  exec.c

Patch

diff -u --recursive --new-file v2.4.13/linux/fs/exec.c linux/fs/exec.c
--- v2.4.13/linux/fs/exec.c   Sun Sep 23 11:41:00 2001
+++ linux/fs/exec.c   Fri Nov  2 17:39:20 2001
@@ -275,6 +275,7 @@
       goto out;
    if (!pte_none(*pte))
       goto out;
+   lru_cache_add(page);
    flush_dcache_page(page);
    flush_page_to_ram(page);
    set_pte(pte, pte_mkdirty(pte_mkwrite(mk_pte(page, PAGE_COPY))));
@@ -770,7 +771,6 @@
        if (!bprm->loader && eh->fh.f_magic == 0x183 &&
       (eh->fh.f_flags & 0x3000) == 0x3000)
        {
-      char * dynloader[] = { "/sbin/loader" };
       struct file * file;
       unsigned long loader;
 
@@ -780,10 +780,14 @@
 
            loader = PAGE_SIZE*MAX_ARG_PAGES-sizeof(void *);
 
-      file = open_exec(dynloader[0]);
+      file = open_exec("/sbin/loader");
       retval = PTR_ERR(file);
       if (IS_ERR(file))
          return retval;
+
+      /* Remember if the application is TASO.  */
+      bprm->sh_bang = eh->ah.entry < 0x100000000;
+
       bprm->file = file;
       bprm->loader = loader;
       retval = prepare_binprm(bprm);


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.