Allow recursion in binfmt_script and binfmt_misc
[pandora-kernel.git] / include / linux / binfmts.h
index 54980a3..7394b5b 100644 (file)
@@ -39,6 +39,7 @@ struct linux_binprm{
 #ifdef __alpha__
        unsigned int taso:1;
 #endif
+       unsigned int recursion_depth;
        struct file * file;
        int e_uid, e_gid;
        kernel_cap_t cap_post_exec_permitted;
@@ -61,6 +62,7 @@ struct linux_binprm{
 #define BINPRM_FLAGS_EXECFD_BIT 1
 #define BINPRM_FLAGS_EXECFD (1 << BINPRM_FLAGS_EXECFD_BIT)
 
+#define BINPRM_MAX_RECURSION 4
 
 /*
  * This structure defines the functions that are used to load the binary formats that