Project

General

Profile

Feature #11597

Add Linux-specific setfsuid(2)/setfsgid(2)

Added by vihai (Daniele Orlandi) over 5 years ago. Updated over 5 years ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:71093]

Description

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.

Also available in: Atom PDF