[grsec] grsecurity breaks reiser4 compilation

Kerin Millar kerframil at gmail.com
Thu Sep 30 22:27:14 EDT 2010


On 1 October 2010 01:15,  <pageexec at freemail.hu> wrote:
> 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?

There are known good (so to speak) patches here:

http://kernel.sysresccd.org/sysresccd-1.6.1/

--Kerin


More information about the grsecurity mailing list