Selinux

Garry T. Williams gtwilliams at gmail.com
Mon May 2 02:01:35 UTC 2011


On Sunday, May 01, 2011 20:00:51 Patrick Lists wrote:
> On 05/02/2011 01:49 AM, Patrick Dupre wrote:
> > cannot restore segment prot after reloc
> 
>  From a little googling I understand this should fix the error:
> 
> chcon -t texrel_shlib_t 
> /home/pdupre/Spectroscopy/test/blib/arch/auto/ttt/ttt.so
> 
> Iirc the actual fix has something to do with compiler flags and not 
> touching the stack (or something like that).

Your work-around will get it done, but...

Dont't do that.  Make a position independent library so relocation is
not needed.

Compile with -fpic and you won't require relocation.

By the way, this has nothing to do with execution on the stack.

-- 
Garry Williams


More information about the users mailing list