Re: I'm not the process you think I am

From: amos_at_nonexisting.hamakor.org.il
Date: Tue 31 Aug 2004 - 17:09:29 IDT


Muli Ben-Yehuda wrote:

>On Tue, Aug 31, 2004 at 04:33:40PM +0300, amos_at_amos.mailshell.com 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.
>
>
The "standard POSIX API's" (not to mention the "can't change the
kernel") is a hard requirement.
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 linux-il-request_at_linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request_at_linux.org.il



This archive was generated by hypermail 2.1.7 : Tue 31 Aug 2004 - 17:16:39 IDT