restrict-access.h revision de1ec079c58e6278a24dc1a84a08510e5ee7e45f
#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);
/* 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