1: /*************************************************************************
2: * (C) 2011 AITNET - Sofia/Bulgaria - <office@aitbg.com>
3: * by Michael Pounov <misho@aitbg.com>
4: *
5: * $Author: misho $
6: * $Id: defs.h,v 1.4 2015/06/17 14:14:17 misho Exp $
7: *
8: *************************************************************************/
9: #ifndef __DEFS_H
10: #define __DEFS_H
11:
12:
13: #define STRSIZ 256
14:
15: #define DEFAULT_CONFIG "/etc/suX.conf"
16: #define DEFAULT_CMD "!/bin/sh -c"
17: #define DEFAULT_LOG "/var/log/suX.log"
18: #define DEFAULT_SUX_USER "www"
19:
20: #ifndef PACKAGE_NAME
21: #define PACKAGE_NAME "nobody"
22: #endif
23:
24: #define SUX_GET_UID 0x1
25: #define SUX_GET_GID 0x2
26: #define SUX_GET_PRIO 0x4
27: #define SUX_GET_DIR 0x8
28: #define SUX_GET_STDIN 0x40
29: #define SUX_GET_FORCE 0x80
30:
31:
32: struct tagProc {
33: ait_val_t proc_uid;
34: ait_val_t proc_gid;
35: ait_val_t proc_prio;
36: ait_val_t proc_class;
37: ait_val_t proc_dir;
38: ait_val_t proc_name;
39: ait_val_t proc_cmd;
40: };
41:
42:
43: extern char **environ;
44: extern cfg_root_t cfg;
45: extern int Verbose;
46: extern struct tagProc proc;
47: extern FILE *lf;
48:
49:
50: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>