Mercurial > dovecot > original-hg > dovecot-1.2
annotate src/lib/restrict-access.h @ 1329:ae229b7acb4c HEAD
Mailbox names are now sent through imap-quoter instead of just escaping it.
This means that mailbox names that would require escapes are instead sent
as literals now.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 02 Apr 2003 05:05:38 +0300 |
parents | 0ca6dfe196f1 |
children | e7c627bacaaf |
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, | |
7 const char *chroot_dir); | |
8 | |
801
86224ff16bf6
Drop root privileges earlier. Close syslog more later in imap-master when
Timo Sirainen <tss@iki.fi>
parents:
0
diff
changeset
|
9 /* 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
|
10 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
|
11 environment settings and we have root uid or gid. */ |
86224ff16bf6
Drop root privileges earlier. Close syslog more later in imap-master when
Timo Sirainen <tss@iki.fi>
parents:
0
diff
changeset
|
12 void restrict_access_by_env(int disallow_root); |
0 | 13 |
14 #endif |