Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib/restrict-access.h @ 6410:e4eb71ae8e96 HEAD
Changed .h ifdef/defines to use <NAME>_H format.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 16 Sep 2007 11:31:27 +0300 |
parents | 55df57c028d4 |
children | 59ac3628b8d8 |
line wrap: on
line source
#ifndef RESTRICT_ACCESS_H #define RESTRICT_ACCESS_H /* set environment variables so they can be read with restrict_access_by_env() */ void restrict_access_set_env(const char *user, uid_t uid, gid_t gid, const char *chroot_dir, gid_t first_valid_gid, gid_t last_valid_gid, const char *extra_groups); /* chroot, setuid() and setgid() based on environment variables. If disallow_roots is TRUE, we'll kill ourself if we didn't have the environment settings and we have root uid or gid. */ void restrict_access_by_env(bool disallow_root); #endif