Re: /proc/PID/fd/0 design "bug"

Balaji Ramani (balajir@paul.rutgers.edu)
Mon, 22 Dec 1997 09:14:50 -0500 (EST)


Hi,

It works for me as root in 2.1.70

Balaji

On Sun, 21 Dec 1997, Lars Marowsky-Bree wrote:

> On 1997-12-21T16:13:58,
> "Pawel S. Veselov" <vps@unicorn.niimm.spb.su> said:
>
> > /proc/PID/fd has rights of user.group this process is run.
> > So you only can affect your own processes. ( assuming you are not root )
>
> Even as root I am not able to use /proc/PID/fd/0 to stuff arbitary input
> into any program.
>
> This SHOULD work and has useful applications (it would allow some of the
> ugly gpm hacks in the kernel to go away)
>
> --
> Lars Marowsky-Bree :homepage email: \ geek, BOFH, psychopath, magician, /
> http://teuto.net/~lmb/ lmb@teuto.net \ killer, looney, genius, pervert /
> pgp-key-id: 0x09e360c5 / ff 2a 82 e8 6b 85 79 23 9c da b5 81 d4 fc 29 e6
> < to prevent forgery, all email by me is signed with PGP >
>