Hello Andrea,

Andrea Zuccherelli:
> I am trying to emerge sys-fs/aufs3 on Gentoo Hardened with inotify use flag,
> but I get this compile error:
>
> hfsnotify.c:208:2: error: assignment of read-only member 'br_hfsn_ops'

Is this caused by grsec patch or their gcc plugin?
If so, I have nothing to help you I am afraid and I don't know why the
gentoo maintainer suggested you to post here.

In May 2010, I have posted to the grsec mainling-list and asked about
the purpose of setting 'const' the members of a structure. And I got a
answer saying
>       :::
> this is the real reason for making field members const, it implicitly forces
> the programmer to think twice about what he's doing. or rather, it would,
>       :::
At that time, I thought twice and developed a patch doing "indirect
assignment". It was a really dirty patch and I really don't like it.

Although I am not sure whether your problem is caused by an unpectedly
added 'const' in C language or not, the "indirect assignment" approach
may help you.
But this is a "workaround" in C language level. If the gcc plugin puts a
variable in the readonly section (linker level), then the problem will
not be solved.

If I get the source code of grsec patch and the gcc plugin which you are
using, I may say something more.


J. R. Okajima

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox

Reply via email to