[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[JDEV] CLI-P



so which provide an acceptable level of security? etc.

1)
a process authenticates itself to the jabber server
and then creates a named pipe somewhere in the user's home space (~/.jabber/)
(~/.jabber is mode 700 and the pipe 400)

the message sender talks to the authenticated process through the named pipe
the authenticated process only sends the process if the uid of the sender
matches the uid of the user that spawned the authenticated process...

2)
the authentication process gets run in the background, on recepit of SIG
it forks a child, the child receives input and returns it and exits...
(since the parent is in the bg, the child will be too)

advantage: the code only get's compiled the initial time it is run...
problem: currently to send a message you'd have to:

killall -SIG (authenticated process) [we have a shell script or alias do this]
fg (unless someone knows a way to do this programatically, for the child only)
provide the data for the message
terminate the message
^Z (because the parent comes into the foreground along with the client
when you fg)

when what we want is:
killall -SIG (authenticated process) [we have a shell script or alias do this]
provide the data for the message
terminate the message

3)
we become the shell, pass along all unrecognized commands to a system() or ``
not exactly elegant...

jp
--
Please take the time to answer the simple survey at:
					http://www.pthbb.org/cgi.bin/survey/
                                                  *             __    *      .
           \     |     /           .        . .           .  . ((_
               _____                       .                         .     .
          --  /     \  --           .        .      .   +    .   .     _/\
      oooooooooo.   |               * .       .   .           *       / ;M\_ .
   .oooooooooooo.oo.	              .  .    .       . /\    .      /  :IMM\
  ..oooooooooooo..oo.	Jerrad Pierce              /\  /  \         /   ;IIWMM
  ..oooooooooo.......	209 North Street     +    /  \ /  \  .     /   ;IIIIWM
  ...ooooooooo.......	Randolph, MA 02368        /  \     \  ___/   :;IIIIIWM
  ....ooo....o.......	                         /    \    \ /  ::     ;;IIIMI
   .....ooo......... 	http://www.pthbb.org     /    \     \   :     :::;IIIM
     ..ooooooo....	__________________________ ||   ||       ::.....::::::
MOTD on Sweetmorn, the 50th of Confusion, in the YOLD 3165. Celebrate Confuflux!:

"Here's what I know," said the physicist. "If we lived in a microscopic world, trucks would crash into walls, fly apart and then reassemble perfectly on the other side of the wall. This has been proven."