wiki:experiences:igraltist:patches:r795
=>  Releases

Current version
Git/Snapshot: 1.5.3
Release: 1.5.0

Latest Snapshots
Produced after each commit or rebase to new upstream version

GIT
RSBAC source code, can be unstable sometimes

=>  Events

No events planned

Back to igraltist's experiences

diff -u --recursive rsbac_2.6.31.2_r795/fs/exec.c rsbac_2.6.31.2_pax_r795/fs/exec.c
--- rsbac_2.6.31.2_r795/fs/exec.c	2009-10-11 20:58:27.280751933 +0200
+++ rsbac_2.6.31.2_pax_r795/fs/exec.c	2009-10-11 20:13:22.599876807 +0200
@@ -55,12 +55,23 @@
 #include <linux/kmod.h>
 #include <linux/fsnotify.h>
 #include <linux/fs_struct.h>
+#include <linux/random.h>
+#include <linux/seq_file.h>
 
+#ifdef CONFIG_PAX_REFCOUNT
+#include <linux/kallsyms.h>
+#include <linux/kdebug.h>
+#endif
 #include <asm/uaccess.h>
 #include <asm/mmu_context.h>
 #include <asm/tlb.h>
 #include "internal.h"
 
+#ifdef CONFIG_PAX_HOOK_ACL_FLAGS
+void (*pax_set_initial_flags_func)(struct linux_binprm *bprm);
+EXPORT_SYMBOL(pax_set_initial_flags_func);
+#endif
+
 #include <rsbac/hooks.h>
 
 int core_uses_pid;
diff -u --recursive rsbac_2.6.31.2_r795/init/do_mounts.c rsbac_2.6.31.2_pax_r795/init/do_mounts.c
--- rsbac_2.6.31.2_r795/init/do_mounts.c	2009-10-11 20:58:31.696817973 +0200
+++ rsbac_2.6.31.2_pax_r795/init/do_mounts.c	2009-10-11 20:31:20.174752354 +0200
@@ -423,8 +423,8 @@
 
 	mount_root();
 out:
-	sys_mount(".", "/", NULL, MS_MOVE, NULL);
-	sys_chroot(".");
+	sys_mount((char __user *)".", (char __user *)"/", NULL, MS_MOVE, NULL);
+	sys_chroot((char __user *)".");
 
         /* RSBAC: OK, most stuff initialized and root mounted: Init RSBAC. */
 #ifdef CONFIG_RSBAC
diff -u --recursive rsbac_2.6.31.2_r795/mm/mprotect.c rsbac_2.6.31.2_pax_r795/mm/mprotect.c
--- rsbac_2.6.31.2_r795/mm/mprotect.c	2009-10-11 20:58:33.485751723 +0200
+++ rsbac_2.6.31.2_pax_r795/mm/mprotect.c	2009-10-11 20:32:29.689832490 +0200
@@ -24,10 +24,17 @@
 #include <linux/mmu_notifier.h>
 #include <linux/migrate.h>
 #include <linux/perf_counter.h>
+
+#ifdef CONFIG_PAX_MPROTECT
+#include <linux/elf.h>
+#endif
+
 #include <asm/uaccess.h>
 #include <asm/pgtable.h>
 #include <asm/cacheflush.h>
 #include <asm/tlbflush.h>
+#include <asm/mmu_context.h>
+
 #include <rsbac/hooks.h>
 
 #ifndef pgprot_modify
//
wiki/experiences/igraltist/patches/r795.txt · Last modified: 2009/10/29 00:20 by 127.0.0.1

wiki/experiences/igraltist/patches/r795.txt · Last modified: 2009/10/29 00:20 by 127.0.0.1
This website is kindly hosted by m-privacy