Current version
Git/Latestdiff: 1.5.6
Latest Snapshots
Produced after each commit or rebase to new upstream version
GIT
RSBAC source code, can be unstable sometimes
No events planned
This shows you the differences between two versions of the page.
Next revisionBoth sides next revision | |||
wiki:experiences:igraltist:patches:2.6.33.5 [2010/06/19 16:55] – created igraltist | wiki:experiences:igraltist:patches:2.6.33.5 [2010/06/19 17:15] – igraltist | ||
---|---|---|---|
Line 1: | Line 1: | ||
[[wiki: | [[wiki: | ||
+ | |||
====== Patch for kernel rsbac-pax 2.6.33.5 ===== | ====== Patch for kernel rsbac-pax 2.6.33.5 ===== | ||
Line 11: | Line 12: | ||
At least apply this patch. | At least apply this patch. | ||
<code bash> | <code bash> | ||
+ | diff -Nur linux-rsbac-pax-prepatch-2.6.33.5/ | ||
+ | --- linux-rsbac-pax-prepatch-2.6.33.5/ | ||
+ | +++ linux-rsbac-pax-2.6.33.5/ | ||
+ | @@ -56,11 +56,24 @@ | ||
+ | # | ||
+ | # | ||
+ | |||
+ | +#include < | ||
+ | +#include < | ||
+ | + | ||
+ | +#ifdef CONFIG_PAX_REFCOUNT | ||
+ | +#include < | ||
+ | +#include < | ||
+ | +#endif | ||
+ | + | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | |||
+ | +#ifdef CONFIG_PAX_HOOK_ACL_FLAGS | ||
+ | +void (*pax_set_initial_flags_func)(struct linux_binprm *bprm); | ||
+ | +EXPORT_SYMBOL(pax_set_initial_flags_func); | ||
+ | +#endif | ||
+ | + | ||
+ | # | ||
+ | |||
+ | int core_uses_pid; | ||
+ | diff -Nur linux-rsbac-pax-prepatch-2.6.33.5/ | ||
+ | --- linux-rsbac-pax-prepatch-2.6.33.5/ | ||
+ | +++ linux-rsbac-pax-2.6.33.5/ | ||
+ | @@ -776,10 +776,10 @@ | ||
+ | |||
+ | | ||
+ | pipe = inode-> | ||
+ | - pipe-> | ||
+ | - pipe-> | ||
+ | + atomic_sub(decr, | ||
+ | + atomic_sub(decw, | ||
+ | |||
+ | - if (!pipe-> | ||
+ | + if (!atomic_read(& | ||
+ | |||
+ | # | ||
+ | | ||
+ | diff -Nur linux-rsbac-pax-prepatch-2.6.33.5/ | ||
+ | --- linux-rsbac-pax-prepatch-2.6.33.5/ | ||
+ | +++ linux-rsbac-pax-2.6.33.5/ | ||
+ | @@ -424,8 +424,8 @@ | ||
+ | | ||
+ | out: | ||
+ | | ||
+ | - sys_mount(" | ||
+ | - sys_chroot(" | ||
+ | + sys_mount((__force char __user *)" | ||
+ | + sys_chroot((__force char __user *)" | ||
+ | |||
+ | /* RSBAC: OK, most stuff initialized and root mounted: Init RSBAC. */ | ||
+ | # | ||
+ | diff -Nur linux-rsbac-pax-prepatch-2.6.33.5/ | ||
+ | --- linux-rsbac-pax-prepatch-2.6.33.5/ | ||
+ | +++ linux-rsbac-pax-2.6.33.5/ | ||
+ | @@ -24,10 +24,17 @@ | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | + | ||
+ | +#ifdef CONFIG_PAX_MPROTECT | ||
+ | +#include < | ||
+ | +#endif | ||
+ | + | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | +#include < | ||
+ | + | ||
+ | # | ||
+ | |||
+ | # | ||
</ | </ |