Strange Problem

Hi All,

I am encountering an unexpected problem while running my process, using daemon placed in /etc/init.d/.

I have a process that is opening shared library using dlopen.
When I run my process on the command line, it is able to open the library. But when I used daemon to run my process, I encountered an error - "Fail to open library. failed to map segment from shared object: Permission denied."

I have ensured that I am running daemon from root user.
I am not able to figure out the cause for the same. please share if someone knows the solution for the same.

Thanks in advance