You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.4 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /* source: xio-process.h */
  2. /* Copyright Gerhard Rieger and contributors (see file CHANGES) */
  3. /* Published under the GNU General Public License V.2, see file COPYING */
  4. #ifndef __xio_process_h_included
  5. #define __xio_process_h_included 1
  6. extern const struct optdesc opt_setgid_early;
  7. extern const struct optdesc opt_setgid;
  8. extern const struct optdesc opt_setuid_early;
  9. extern const struct optdesc opt_setuid;
  10. extern const struct optdesc opt_substuser_early;
  11. extern const struct optdesc opt_substuser;
  12. #if defined(HAVE_SETGRENT) && defined(HAVE_GETGRENT) && defined(HAVE_ENDGRENT)
  13. extern const struct optdesc opt_substuser_delayed;
  14. #endif
  15. extern const struct optdesc opt_chroot_early;
  16. extern const struct optdesc opt_chroot;
  17. extern const struct optdesc opt_setsid;
  18. extern const struct optdesc opt_setpgid;
  19. /* for option substuser-delayed, save info for later application */
  20. extern bool delayeduser;
  21. extern uid_t delayeduser_uid; /* numeric user id to switch to */
  22. extern gid_t delayeduser_gid; /* numeric group id to switch to */
  23. extern gid_t delayeduser_gids[NGROUPS]; /* num.supplementary group ids */
  24. extern int delayeduser_ngids; /* number of suppl. gids */
  25. extern char *delayeduser_name; /* name of user to switch to */
  26. extern char *delayeduser_dir; /* home directory of user to switch to */
  27. extern char *delayeduser_shell; /* login shell of user to switch to */
  28. extern int _xioopen_setdelayeduser(void);
  29. #endif /* !defined(__xio_process_h_included) */