File: xio-process.h

package info (click to toggle)
socat 2.0.0~beta9-1
  • links: PTS
  • area: main
  • in suites: experimental
  • size: 3,740 kB
  • sloc: ansic: 30,875; sh: 11,630; makefile: 149
file content (34 lines) | stat: -rw-r--r-- 1,429 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* source: xio-process.h */
/* Copyright Gerhard Rieger */
/* Published under the GNU General Public License V.2, see file COPYING */

#ifndef __xio_process_h_included
#define __xio_process_h_included 1

extern const struct optdesc opt_setgid_early;
extern const struct optdesc opt_setgid;
extern const struct optdesc opt_setuid_early;
extern const struct optdesc opt_setuid;
extern const struct optdesc opt_substuser_early;
extern const struct optdesc opt_substuser;
#if defined(HAVE_SETGRENT) && defined(HAVE_GETGRENT) && defined(HAVE_ENDGRENT)
extern const struct optdesc opt_substuser_delayed;
#endif
extern const struct optdesc opt_chroot_early;
extern const struct optdesc opt_chroot;
extern const struct optdesc opt_setsid;
extern const struct optdesc opt_setpgid;

/* for option substuser-delayed, save info for later application */
extern bool delayeduser;
extern uid_t delayeduser_uid;	/* numeric user id to switch to */
extern gid_t delayeduser_gid;	/* numeric group id to switch to */
extern gid_t delayeduser_gids[NGROUPS];	/* num.supplementary group ids */
extern int   delayeduser_ngids;	/* number of suppl. gids */
extern char *delayeduser_name;	/* name of user to switch to */
extern char *delayeduser_dir;	/* home directory of user to switch to */
extern char *delayeduser_shell;	/* login shell of user to switch to */

extern int _xioopen_setdelayeduser(void);

#endif /* !defined(__xio_process_h_included) */