view src/lib/restrict-access.h @ 58:8aaa39e7aec8 HEAD

sendfile() works now properly with 64bit off_t
author Timo Sirainen <tss@iki.fi>
date Wed, 28 Aug 2002 03:11:51 +0300
parents 3b1985cbc908
children 86224ff16bf6
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);

/* chroot, setuid() and setgid() based on environment variables */
void restrict_access_by_env(void);

#endif