[grsec] grsecurity breaks reiser4 compilation

Radoslav Bodó bodik at civ.zcu.cz
Fri Oct 1 01:06:34 EDT 2010


i think i had the similar problem with recent grsec and openafs. spender
creates this patch for me

http://www.grsecurity.com/~spender/openafs_const_address_space_ops.patch

b

P.S: openafs developers says, yeah, but you have to wait, it does not
fit in our new build scripts, but we'll find out someday ;)


pageexec at freemail.hu napsal(a):
> 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