Debian Codegraph @

policycoreutils/run_init/open_init_pty.8

raw
1 .\" Hey, Emacs! This is an -*- nroff -*- source file.
2 .\" Copyright (c) 2005 Manoj Srivastava <[email protected]>
3 .\"
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
8 .\"
9 .\" The GNU General Public License's references to "object code"
10 .\" and "executables" are to be interpreted as the output of any
11 .\" document formatting or typesetting system, including
12 .\" intermediate and printed output.
13 .\"
14 .\" This manual is distributed in the hope that it will be useful,
15 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
16 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 .\" GNU General Public License for more details.
18 .\"
19 .\" You should have received a copy of the GNU General Public
20 .\" License along with this manual; if not, write to the Free
21 .\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
22 .\" USA.
23 .\"
24 .\"
25 .TH OPEN_INIT_PTY "8" "January 2005" "Security Enhanced Linux" NSA
26 .SH NAME
27 open_init_pty \- run an program under a pseudo terminal
28 .SH SYNOPSIS
29 .B open_init_pty
30 \fISCRIPT\fR [[\fIARGS\fR]...]
31 .br
32 .SH DESCRIPTION
33 .PP
34 Run a program under a pseudo terminal. This is used by
35 .B run_init
36 to run actually run the program after setting up the proper
37 context. This program acquires a new Pseudo terminal, forks a child
38 process that binds to the pseudo terminal, and then sits around and
39 connects the physical terminal it was invoked upon with the pseudo
40 terminal, passing keyboard input into to the child process, and passing the
41 output of the child process to the physical terminal.
42 .PP
43 It sets up the pseudo terminal properly based on the physical terminal
44 attributes, and then sets the user's terminal to RAW mode, taking care
45 to reset it on exit.
46 .SH AUTHOR
47 This manual page was written by Manoj Srivastava <[email protected]>,
48 for the Debian GNU/Linux system.