Page 1 of 1

cannot enable executable stack as shared object requires

PostPosted: Tue Feb 01, 2005 10:25 pm
by craig_ar
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]

PostPosted: Wed Feb 02, 2005 10:15 pm
by craig_ar
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.