]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/binfmt_aout.c
seccomp: use a static inline for a function stub
[karo-tx-linux.git] / fs / binfmt_aout.c
index 1ff94054d35aba8a5c0748585006641010a322af..2eb12f13593db771987c9c4e7cd30c16515fcf11 100644 (file)
@@ -26,7 +26,6 @@
 #include <linux/coredump.h>
 #include <linux/slab.h>
 
-#include <asm/system.h>
 #include <asm/uaccess.h>
 #include <asm/cacheflush.h>
 #include <asm/a.out-core.h>
@@ -267,7 +266,6 @@ static int load_aout_binary(struct linux_binprm * bprm, struct pt_regs * regs)
        }
 
        install_exec_creds(bprm);
-       current->flags &= ~PF_FORKNOEXEC;
 
        if (N_MAGIC(ex) == OMAGIC) {
                unsigned long text_addr, map_size;
@@ -454,7 +452,8 @@ out:
 
 static int __init init_aout_binfmt(void)
 {
-       return register_binfmt(&aout_format);
+       register_binfmt(&aout_format);
+       return 0;
 }
 
 static void __exit exit_aout_binfmt(void)