Muli Ben-Yehuda wrote:
The "standard POSIX API's" (not to mention the "can't change the kernel") is a hard requirement.On Tue, Aug 31, 2004 at 04:33:40PM +0300, [EMAIL PROTECTED] wrote:
Muli - could you give a little more background on what are you trying to achieve?
Make a process which is running with root capabilities appear in a
standard ps output as though it belongs to user 'foo'. I can't change
ps; I can't change the kernel. I can only use the standard POSIX
APIs. I do have root on the system.
I though that maybe the /proc filesystem might make it possible to change some process attributes
but looking through the kernel source of 2.6.5 (ref:
http://lxr.linux.no/source/include/linux/proc_fs.h?v=2.6.5#L71, implementations ref:
http://lxr.linux.no/ident?v=2.6.5;i=write_proc_t) I don't see such an interface.
FWIW, I thought about it for a couple of days before tossing it to the
list, and I don't think it can be one. I'll be happy to be proven
wrong ;-)
Me too.
Cheers,
--Amos
================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]