In user mode [non-root] on a linux machine, I am trying to bind a socket by using a ioctl(iInterfaceSocket, SIOCSIFADDR, &stCommand)
. I am getting error 13 -> Permission denied because of user mode
. If change from usermode to kernel mode everything works fine.
I need to bind the socket in user mode only. Please suggest a solution while explaining the problem above. If I missed any information please let me know and I will provide more info.