This is how i resolved that issue a while ago.. It used to happen on a 3rd party application that to be honest i dont remember which one but it was on my pearl(may it Rest In Peace or pieces)
anyway.... It was driving me crazy because i had it set to 'allow' in the security settings but still got that message on boot. After playing around with it for days I finally realized that the default security settings were set to deny. I then changed them to allow(options, security settings, application permissions, menu key, edit default permissions) uninstalled the 3rd party app, reinstalled it and everything was fine..
Lemme know if that helps. good luck