linux-pam (1.5.3)
1 /*
2 * $Id$
3 *
4 * this file is associated with the Linux-PAM filter module.
5 * it was written by Andrew G. Morgan <morgan@linux.kernel.org>
6 *
7 */
8
9 #ifndef PAM_FILTER_H
10 #define PAM_FILTER_H
11
12 #include <sys/file.h>
13
14 /*
15 * this will fail if there is some problem with these file descriptors
16 * being allocated by the pam_filter Linux-PAM module. The numbers
17 * here are thought safe, but the filter developer should use the
18 * macros, as these numbers are subject to change.
19 *
20 * The APPXXX_FILENO file descriptors are the STDIN/OUT/ERR_FILENO of the
21 * application. The filter uses the STDIN/OUT/ERR_FILENO's to converse
22 * with the user, passes (modified) user input to the application via
23 * APPIN_FILENO, and receives application output from APPOUT_FILENO/ERR.
24 */
25
26 #define APPIN_FILENO 3 /* write here to give application input */
27 #define APPOUT_FILENO 4 /* read here to get application output */
28 #define APPERR_FILENO 5 /* read here to get application errors */
29
30 #define APPTOP_FILE 6 /* used by select */
31
32 #endif