I am reading and following examples in MySQL 5.1 Plugin Development. After compiling and moving a .so file (think DLL or Assembly file in Windows) into MySQL plugin directory, I got this message when I tried to create a UDF (User Defined Function):
mysql> create function udf_staticexample returns integer soname 'udf_staticexample.so'; ERROR 1126 (HY000): Can't open shared library 'udf_staticexample.so' (errno: 0 /usr/lib/mysql/plugin/udf_staticexample.so: failed to map segment from shared object: Permission denied)
This is caused by the fact that the .so shared object file is not in the right SELinux security context:
[root@asusfedora plugin]# ll -Z lrwxrwxrwx. root root …[Read more]