I was browsing su binary code by Chainsdd when I was browsing it i saw it using setuid(0)
setgid(0)
to give root permissions
so my question is : Can this method used in my own c library ?
if not then how does the su does it? is it because it is placed in /system
partition with some chmod
or other operations like that have been perfomed on it?