News for hackers. Stuff that matters.
Re:How do groups work on Linux? by halayli on Tuesday November 21, 2017 @11:48AM (#15749210)
Regarding setuid, this is why when you run programs like ping(8) it doesn't require root access to open a raw socket. ping's setuid is set so upon execution it executes as root since ping is owned by root and then calls setuid(getuid()) to run as the intended user.
Re:How do groups work on Linux? by Huggernaut on Tuesday November 21, 2017 @02:17PM (#15750685)
In some distributions, ping is now no longer setuid, but instead setcap with CAP_NET_RAW to narrow down the privileges gained.