Releases
Current version
Git/Latestdiff: 1.5.6
Latest Snapshots
Produced after each commit or rebase to new upstream version
GIT clone e.g. at git://git.rsbac.org/linux-6.18.y
Events
No events planned
This shows you the differences between two versions of the page.
| — | wiki:experiences:igraltist:patches:2.6.33.3 [2010/05/07 13:22] (current) – created igraltist | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | [[wiki: | ||
| + | ====== Patch for kernel rsbac-pax 2.6.33.3 ===== | ||
| + | |||
| + | The follow source have to download and the patches have to apply like the links are. | ||
| + | |||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | |||
| + | At least apply this patch. | ||
| + | <code bash> | ||
| + | diff -uNrp rsbac-2.6.33-prepar-pax/ | ||
| + | --- rsbac-2.6.33-prepar-pax/ | ||
| + | +++ rsbac-pax-2.6.33/ | ||
| + | @@ -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 -uNrp rsbac-2.6.33-prepar-pax/ | ||
| + | --- rsbac-2.6.33-prepar-pax/ | ||
| + | +++ rsbac-pax-2.6.33/ | ||
| + | @@ -776,10 +776,10 @@ pipe_release(struct inode *inode, int de | ||
| + | |||
| + | | ||
| + | pipe = inode-> | ||
| + | - pipe-> | ||
| + | - pipe-> | ||
| + | - | ||
| + | - if (!pipe-> | ||
| + | + atomic_sub(decr, | ||
| + | + atomic_sub(decw, | ||
| + | + | ||
| + | + if (!atomic_read(& | ||
| + | |||
| + | # | ||
| + | | ||
| + | diff -uNrp rsbac-2.6.33-prepar-pax/ | ||
| + | --- rsbac-2.6.33-prepar-pax/ | ||
| + | +++ rsbac-pax-2.6.33/ | ||
| + | @@ -424,8 +424,8 @@ void __init prepare_namespace(void) | ||
| + | | ||
| + | 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 -uNrp rsbac-2.6.33-prepar-pax/ | ||
| + | --- rsbac-2.6.33-prepar-pax/ | ||
| + | +++ rsbac-pax-2.6.33/ | ||
| + | @@ -24,10 +24,16 @@ | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | + | ||
| + | +#ifdef CONFIG_PAX_MPROTECT | ||
| + | +#include < | ||
| + | +#endif | ||
| + | + | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | +#include < | ||
| + | # | ||
| + | |||
| + | # | ||
| + | </ | ||