Issue #11597 has been reported by Daniele Orlandi.

----------------------------------------
Feature #11597: Add Linux-specific setfsuid(2)/setfsgid(2)
https://bugs.ruby-lang.org/issues/11597

* Author: Daniele Orlandi
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
I would be helpful if you add a binding to the Linux-specific syscalls

setfsuid(2)
setfsgid(2)

Their purpose is to change the uid/gid with which filesystem access control is performed. Their main usage is simulating fs access on behalf of other users.

Differently from setuid/setreuid/etc... thess calls have thread-local effect, thus they may be useful in solving some problems when needing to temporarily drop privileges in multi-threaded applications.



-- 
https://bugs.ruby-lang.org/