[DSE-Dev] Bug#474956: not working that well

Russell Coker russell at coker.com.au
Tue Jun 26 04:03:21 UTC 2012


rjc at athena:/tmp$ gcc open_init_pty.c -lutil
rjc at athena:/tmp$ ./a.out bash
rjc at athena:/tmp$   PID TTY          TIME CMD
 4250 pts/6    00:00:00 bash
 4253 pts/6    00:00:00 ps
rjc at athena:/tmp$   PID TTY          TIME CMD
 4250 pts/6    00:00:00 bash
 4254 pts/6    00:00:00 ps

The latest version of that code doesn't work correctly, it doesn't handle 
local echo.  From the above you can see the result of running bash and typing 
"ps" at the command-line.

Also I've attached a C++ version of the code in question that uses a class for 
the ring buffer.  It makes the code more readable and maintainable.

In regard to sending the code upstream, this has always been my thing for 
Debian.  As Manoj has disappeared that makes me the real upstream for this 
program.  I expect that the people who release the upstream policycoreutils 
archives will be happy to take whatever I think is good as they aren't really 
interested in it.

-- 
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: open_init_pty.cpp
Type: text/x-c++src
Size: 10464 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/selinux-devel/attachments/20120626/c28b3c66/attachment.cpp>


More information about the SELinux-devel mailing list