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

Lars Marowsky-Bree (lmb@pointer.teuto.de)
Sun, 21 Dec 1997 14:31:57 +0100


--MzawGl8SdtHY/0P4
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

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.=20
> 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)

--=20
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 >

--MzawGl8SdtHY/0P4
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i

iQEVAwUBNJ0aTKlZtowJ42DFAQHoPQf/ZS7CpBnqkvpPQEh8ki0J1/6FXk40kXhx
In3/Y22QSCn6F3jakSBAA8pLILLuLw9pqhkFgoHDmVJdgcZEC0GUe5oj16++YpS9
BHwZ2neA9dBqTZONFZpzLi2AiF4sUij7qqU9WepMWQb4NOEzEitrxdgpqHxKYXWf
D0MMK2LQA8jFysN7GlZ4bsfANAza5K5x3pPQmF1sOtLvjRDoG63KA0wzmLYc2YPS
knDXWn+rplICIRzRk4Kkhz+o9hSjt5tk9o1vU75LgSVpcmfJRW5YpvonjSuBAZq2
F9uWWaC2O5ElMgi/WEzdyiDjYrHLjfEhllBHkMK0XQ2S6in1qHXwZw==
=h9uA
-----END PGP SIGNATURE-----

--MzawGl8SdtHY/0P4--