While doing some tracing today I noticed that we call setgroups() regardless of whether or not PLFS is running as root.
This fails with EPERM (Operation not permitted) if PLFS is not root, so shouldn't we just avoid calling it entirely by checking getuid() == 0 before trying to call setgroups()?
I coded up a quick fix for it and it made it much easier to read through the output of strace without thousands of entries complaining about permissions.
While doing some tracing today I noticed that we call setgroups() regardless of whether or not PLFS is running as root.
This fails with EPERM (Operation not permitted) if PLFS is not root, so shouldn't we just avoid calling it entirely by checking getuid() == 0 before trying to call setgroups()?
I coded up a quick fix for it and it made it much easier to read through the output of strace without thousands of entries complaining about permissions.