restrict-access.h revision abe286bb37c58a5c8425d4095d0e6736e7cc6044
#ifndef __RESTRICT_ACCESS_H
#define __RESTRICT_ACCESS_H
/* set environment variables so they can be read with
restrict_access_by_env() */
const char *chroot_dir,
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(int disallow_root);
#endif