Index: linux-2.4.28-rsbac-v1.2.3/rsbac/adf/pax/pax_main.c
===================================================================
--- linux-2.4.28-rsbac-v1.2.3/rsbac/adf/pax/pax_main.c	(revision 100)
+++ linux-2.4.28-rsbac-v1.2.3/rsbac/adf/pax/pax_main.c	(working copy)
@@ -34,11 +34,19 @@
 
 /**** PaX set flags func ****/
 #if defined(CONFIG_RSBAC_PAX) && (defined(CONFIG_PAX_HAVE_ACL_FLAGS) || defined(CONFIG_PAX_HOOK_ACL_FLAGS))
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10)
 #if defined(CONFIG_PAX_HAVE_ACL_FLAGS)
+void pax_set_initial_flags(struct linux_binprm * bprm)
+#else
+void rsbac_pax_set_initial_flags_func(struct linux_binprm * bprm)
+#endif
+#else
+#if defined(CONFIG_PAX_HAVE_ACL_FLAGS)
 void pax_set_flags(struct linux_binprm * bprm)
 #else
 void rsbac_pax_set_flags_func(struct linux_binprm * bprm)
 #endif
+#endif
   {
     int err;
     union rsbac_target_id_t tid;
@@ -81,7 +89,11 @@
           }
 #endif
         /* Set flags for process */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10)
+        current->mm->flags = (current->mm->flags & ~RSBAC_PAX_ALL_FLAGS) | attr_val.pax_flags;
+#else
         current->flags = (current->flags & ~RSBAC_PAX_ALL_FLAGS) | attr_val.pax_flags;
+#endif
       }
     else
       {
Index: linux-2.4.28-rsbac-v1.2.3/include/rsbac/types.h
===================================================================
--- linux-2.4.28-rsbac-v1.2.3/include/rsbac/types.h	(revision 107)
+++ linux-2.4.28-rsbac-v1.2.3/include/rsbac/types.h	(working copy)
@@ -397,7 +397,7 @@
 #define PF_PAX_SEGMEXEC	0x20000000	/* Segmentation based non-executable pages */
 #endif
 
-#define RSBAC_PAX_DEF_FLAGS (PF_PAX_SEGMEXEC | PF_PAX_MPROTECT | PF_PAX_RANDMMAP)
+#define RSBAC_PAX_DEF_FLAGS (PF_PAX_SEGMEXEC | PF_PAX_PAGEEXEC | PF_PAX_MPROTECT | PF_PAX_RANDMMAP)
 #define RSBAC_PAX_ALL_FLAGS ((rsbac_pax_flags_t) 255 << 24)
 
 
