2008-01-28 16:37:16 -05:00
|
|
|
/* source: xio-process.h */
|
2009-04-02 03:28:58 -04:00
|
|
|
/* Copyright Gerhard Rieger 2001-2009 */
|
2008-01-27 07:00:08 -05:00
|
|
|
/* 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;
|
2009-04-02 03:28:58 -04:00
|
|
|
extern const struct optdesc opt_substuser_early;
|
2008-01-27 07:00:08 -05:00
|
|
|
extern const struct optdesc opt_substuser;
|
2011-11-22 04:58:15 -05:00
|
|
|
#if defined(HAVE_SETGRENT) && defined(HAVE_GETGRENT) && defined(HAVE_ENDGRENT)
|
2008-01-27 07:00:08 -05:00
|
|
|
extern const struct optdesc opt_substuser_delayed;
|
2011-11-22 04:58:15 -05:00
|
|
|
#endif
|
2008-01-27 07:00:08 -05:00
|
|
|
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 size_t 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) */
|