@taxorubio it does not require escalated privileges!
The context is that I have a subprocess which holds onto root in order to open specific files for the main process, which is not root for security reasons. The root process opens them O_RDONLY and passes them to the non-root process via cmsg(3).. which can then open /proc/self/fd/<fd> as O_RDWR and gain write access to that file.