how to fix ioctl permissions denied error? I searched in lots of websites/forums but did not find a solution for this problem, and this site is last chance, this is problem:
This problem have several other users too.
my phone is Galaxy S7 Edge , exynos, Oreo 8.0 (Stock ROM), rooted with magisk latest version.
root works well in other applications.
In pentesting applications like csploit, Network Spoofer, WifiKill and others  root works well(grants permission)  but when start using options of app(for example, arp spoofing, network sniffer, MITM, etc) drops same error:
[ERROR] Unable to retrieve local hardware address libnet ( ioctl: Permission denied )
what to do? Can this issue fixed? or exactly which permission is it?

Also one interesting thing, when I installed old version of WifiKill app it worked - killed wifi connection.
finally, I solved this problem , it needed permissive selinux mode, so I installed custom kernel on my phone and everything works perfect.