lkml.org 
[lkml]   [2009]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectChanging another process' UID

Hi folks,


for properly porting Plan9's factotum to Linux, I need some way
to change an running process's uid/gid.

Plan9 has special devices /dev/caphash and /dev/capuse for that.

Some time ago I chose to hack up a different, a bit more generic
way: adding special new uid / gid files to the /proc entries,
so another (root) process can change the uid of an already
running process.

I suppose there's a better way via Linux's caps api, isnt it ?


thx
--
---------------------------------------------------------------------
Enrico Weigelt == metux IT service - http://www.metux.de/
---------------------------------------------------------------------
Please visit the OpenSource QM Taskforce:
http://wiki.metux.de/public/OpenSource_QM_Taskforce
Patches / Fixes for a lot dozens of packages in dozens of versions:
http://patches.metux.de/
---------------------------------------------------------------------


\
 
 \ /
  Last update: 2009-11-10 10:31    [W:0.029 / U:1.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site