Mercurial > dovecot > original-hg > dovecot-1.2
annotate src/lib/restrict-access.h @ 3863:55df57c028d4 HEAD
Added "bool" type and changed all ints that were used as booleans to bool.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 13 Jan 2006 22:25:57 +0200 |
parents | 8690d2000e33 |
children | e4eb71ae8e96 |
rev | line source |
---|---|
0 | 1 #ifndef __RESTRICT_ACCESS_H |
2 #define __RESTRICT_ACCESS_H | |
3 | |
4 /* set environment variables so they can be read with | |
5 restrict_access_by_env() */ | |
6 void restrict_access_set_env(const char *user, uid_t uid, gid_t gid, | |
1506
e7c627bacaaf
Allow first_valid_gid to be 0. Drop any supplementary groups not in valid
Timo Sirainen <tss@iki.fi>
parents:
1271
diff
changeset
|
7 const char *chroot_dir, |
2141
8690d2000e33
Added mail_extra_groups setting.
Timo Sirainen <tss@iki.fi>
parents:
1506
diff
changeset
|
8 gid_t first_valid_gid, gid_t last_valid_gid, |
8690d2000e33
Added mail_extra_groups setting.
Timo Sirainen <tss@iki.fi>
parents:
1506
diff
changeset
|
9 const char *extra_groups); |
0 | 10 |
801
86224ff16bf6
Drop root privileges earlier. Close syslog more later in imap-master when
Timo Sirainen <tss@iki.fi>
parents:
0
diff
changeset
|
11 /* chroot, setuid() and setgid() based on environment variables. |
86224ff16bf6
Drop root privileges earlier. Close syslog more later in imap-master when
Timo Sirainen <tss@iki.fi>
parents:
0
diff
changeset
|
12 If disallow_roots is TRUE, we'll kill ourself if we didn't have the |
86224ff16bf6
Drop root privileges earlier. Close syslog more later in imap-master when
Timo Sirainen <tss@iki.fi>
parents:
0
diff
changeset
|
13 environment settings and we have root uid or gid. */ |
3863
55df57c028d4
Added "bool" type and changed all ints that were used as booleans to bool.
Timo Sirainen <tss@iki.fi>
parents:
2141
diff
changeset
|
14 void restrict_access_by_env(bool disallow_root); |
0 | 15 |
16 #endif |