Annotation of suX/inc/defs.h, revision 1.4
1.1 misho 1: /*************************************************************************
2: * (C) 2011 AITNET - Sofia/Bulgaria - <office@aitbg.com>
3: * by Michael Pounov <misho@aitbg.com>
4: *
5: * $Author: misho $
1.4 ! misho 6: * $Id: defs.h,v 1.3.4.1 2015/06/17 14:01:33 misho Exp $
1.1 misho 7: *
8: *************************************************************************/
9: #ifndef __DEFS_H
10: #define __DEFS_H
11:
12:
1.4 ! misho 13: #define STRSIZ 256
1.1 misho 14:
1.4 ! misho 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"
1.1 misho 19:
20: #ifndef PACKAGE_NAME
1.4 ! misho 21: #define PACKAGE_NAME "nobody"
1.1 misho 22: #endif
23:
1.4 ! misho 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
1.3 misho 30:
1.1 misho 31:
32: struct tagProc {
1.3 misho 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;
1.1 misho 40: };
41:
42:
43: extern char **environ;
1.3 misho 44: extern cfg_root_t cfg;
1.1 misho 45: extern int Verbose;
46: extern struct tagProc proc;
1.2 misho 47: extern FILE *lf;
1.1 misho 48:
49:
50: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>