comparison src/lib/restrict-access.h @ 2141:8690d2000e33 HEAD

Added mail_extra_groups setting.
author Timo Sirainen <tss@iki.fi>
date Wed, 16 Jun 2004 05:04:01 +0300
parents e7c627bacaaf
children 55df57c028d4
comparison
equal deleted inserted replaced
2140:e2cd51b99359 2141:8690d2000e33
3 3
4 /* set environment variables so they can be read with 4 /* set environment variables so they can be read with
5 restrict_access_by_env() */ 5 restrict_access_by_env() */
6 void restrict_access_set_env(const char *user, uid_t uid, gid_t gid, 6 void restrict_access_set_env(const char *user, uid_t uid, gid_t gid,
7 const char *chroot_dir, 7 const char *chroot_dir,
8 gid_t first_valid_gid, gid_t last_valid_gid); 8 gid_t first_valid_gid, gid_t last_valid_gid,
9 const char *extra_groups);
9 10
10 /* chroot, setuid() and setgid() based on environment variables. 11 /* chroot, setuid() and setgid() based on environment variables.
11 If disallow_roots is TRUE, we'll kill ourself if we didn't have the 12 If disallow_roots is TRUE, we'll kill ourself if we didn't have the
12 environment settings and we have root uid or gid. */ 13 environment settings and we have root uid or gid. */
13 void restrict_access_by_env(int disallow_root); 14 void restrict_access_by_env(int disallow_root);