[grsec] grsecurity breaks reiser4 compilation
pageexec at freemail.hu
pageexec at freemail.hu
Thu Sep 30 20:15:58 EDT 2010
On 30 Sep 2010 at 17:18, qwe 64 wrote:
> Hi, today i tried to compile kernel (2.6.32.23) with reiser4 patch
> and latest grsecurity, however i got "assignment to read-only
> structure" error.
> I found a reason for that.
> grsecurity patch modifies file include/linux/fs.h , in particular -
> struct super_operations , adding "const"s there.
> It causes compilation error in reiser4's reiser4_init_super_data at
> init_super.c line 399 when it tries to do sbinfo->ops.super =
> reiser4_super_operations .
the main question to answer is why reiser4 needs to modify this structure
at runtime in the first place as it is a no-go in vanilla linux as well,
it's just not enforced at the compiler level (but try to get it past Al
Viro and you'll see ;). so where's this patch/code exactly and why does
it do this?
More information about the grsecurity
mailing list