2003-12-30 22:30:32 +01:00
|
|
|
/* IMPORTANT defines */
|
|
|
|
|
|
|
|
#ifndef __DGAMELAUNCH_H
|
|
|
|
#define __DGAMELAUNCH_H
|
|
|
|
|
|
|
|
struct dg_user
|
|
|
|
{
|
2003-12-31 20:47:49 +01:00
|
|
|
char *username;
|
|
|
|
char *email;
|
|
|
|
char *env;
|
|
|
|
char *password;
|
|
|
|
int flags;
|
2003-12-30 22:30:32 +01:00
|
|
|
};
|
|
|
|
|
2003-12-31 20:47:49 +01:00
|
|
|
struct dg_banner
|
|
|
|
{
|
|
|
|
char **lines;
|
|
|
|
unsigned int len;
|
|
|
|
};
|
|
|
|
|
|
|
|
#define SHED_UID 5 /* the uid to shed privs to */
|
|
|
|
#define SHED_GID 60 /* the gid to shed privs to */
|
|
|
|
#define MAXUSERS 64000 /* solves some preallocation issues. */
|
2003-12-30 22:30:32 +01:00
|
|
|
|
2003-12-30 23:41:35 +01:00
|
|
|
#define LOC_CHROOT "/var/lib/dgamelaunch/"
|
|
|
|
#define LOC_NETHACK "/bin/nethack"
|
|
|
|
#define LOC_DGLROOT "/dgldir/"
|
|
|
|
#define LOC_DGLDIR LOC_DGLROOT "rcfiles/"
|
|
|
|
#define LOC_TTYRECDIR LOC_DGLROOT "ttyrec/"
|
|
|
|
#define LOC_INPROGRESSDIR LOC_DGLROOT "inprogress/"
|
|
|
|
#define LOC_SPOOLDIR "/var/mail"
|
|
|
|
#define LOC_CANNED "/dgl-default-rcfile"
|
2003-12-31 21:21:00 +01:00
|
|
|
#define LOC_BANNER "/dgl-banner"
|
2003-12-30 22:30:32 +01:00
|
|
|
#endif
|