cannot enable executable stack as shared object requires

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

cannot enable executable stack as shared object requires

Postby craig_ar » Tue Feb 01, 2005 10:25 pm

Using fedora core 2
kernel 2.6.10
grsecurity-2.1.0-2.6.10-200501081640.patch
mysql-4.0.23a

Problem i'm having with mysql, it will start up fine but as soon as i try to use mysqladmin i get

error while loading shared libraries: libmysqlclient.so.12: cannot enable executable stack as shared object requires: Permission denied

Any help would be appreciated
Cheers Craig[/b]
Last edited by craig_ar on Wed Feb 02, 2005 10:17 pm, edited 1 time in total.
craig_ar
 
Posts: 2
Joined: Tue Feb 01, 2005 10:10 pm

Postby craig_ar » Wed Feb 02, 2005 10:15 pm

Here is a solution

the short
answer is that you can run either 'execstack -c' on this library (if
you're sure it doesn't actually use a nested function trampoline, which
i believe is the case), or chpax/paxctl -m mysql (the executable using
this library) itself. the latter is bad for security though. also i
recall that this library can be fixed by configuring/compiling mysql
without assembly support, search the gentoo forums/lists/bugzilla, i
think it came up there some time ago.
craig_ar
 
Posts: 2
Joined: Tue Feb 01, 2005 10:10 pm


Return to grsecurity support