Index: src/audit_plugin.cc =================================================================== --- src/audit_plugin.cc (revision 728) +++ src/audit_plugin.cc (working copy) @@ -1259,7 +1259,15 @@ { sql_print_error("%s Failed file open: [%s], errno: %d.", log_prefix, file_name, errno); - return false; + + char pidFilename[100]; + sprintf(pidFilename, "/proc/%d/exe", getpid()); + if ((fd = my_open(pidFilename, O_RDONLY, MYF(MY_WME))) < 0) + { + sql_print_error("%s Failed file open: [%s], errno: %d.", + log_prefix, pidFilename, errno); + return false; + } } my_MD5Context context;