lkml.org 
[lkml]   [1997]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: /proc/PID/fd/0 design "bug"
                        Hello, Lars!

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

    >stdin of any process is accessible via /proc/PID/fd/0.
    >
    >So I guess you should be able to enter arbitrary text into any running
    >program by doing "echo COMMAND >>/proc/PID/fd/0".
    >
    >This doesn't work. (2.0.32) It should work at least for tty based process.
    >
    >Is this a bug or intentionally?

    /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 )


    Bye.
    --
    Experience is what you get when you were expecting something else.

    --
    With best of best regards, Pawel S. Veselov (aka Black Angel)
    internet : vps@unicorn.niimm.spb.su ( mail,finger,talk )
    Web page : http://www.niimm.spb.su/~vps/


    \
     
     \ /
      Last update: 2005-03-22 13:40    [W:0.021 / U:121.008 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site