Project

General

Profile

Actions

Feature #11597

open

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

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

Status:
Open
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.

Actions

Also available in: Atom PDF

Like0
Like0