2 |
7u83 |
1 |
# Crown Copyright (c) 1997
|
|
|
2 |
#
|
|
|
3 |
# This TenDRA(r) Computer Program is subject to Copyright
|
|
|
4 |
# owned by the United Kingdom Secretary of State for Defence
|
|
|
5 |
# acting through the Defence Evaluation and Research Agency
|
|
|
6 |
# (DERA). It is made available to Recipients with a
|
|
|
7 |
# royalty-free licence for its use, reproduction, transfer
|
|
|
8 |
# to other parties and amendment for any purpose not excluding
|
|
|
9 |
# product development provided that any such use et cetera
|
|
|
10 |
# shall be deemed to be acceptance of the following conditions:-
|
|
|
11 |
#
|
|
|
12 |
# (1) Its Recipients shall ensure that this Notice is
|
|
|
13 |
# reproduced upon any copies or amended versions of it;
|
|
|
14 |
#
|
|
|
15 |
# (2) Any amended version of it shall be clearly marked to
|
|
|
16 |
# show both the nature of and the organisation responsible
|
|
|
17 |
# for the relevant amendment or amendments;
|
|
|
18 |
#
|
|
|
19 |
# (3) Its onward transfer from a recipient to another
|
|
|
20 |
# party shall be deemed to be that party's acceptance of
|
|
|
21 |
# these conditions;
|
|
|
22 |
#
|
|
|
23 |
# (4) DERA gives no warranty or assurance as to its
|
|
|
24 |
# quality or suitability for any purpose and DERA accepts
|
|
|
25 |
# no liability whatsoever in relation to any use to which
|
|
|
26 |
# it may be put.
|
|
|
27 |
#
|
|
|
28 |
+USE "svid3", "", "config" ;
|
|
|
29 |
+IF %% __SYSV_AUDITING_EXTENSION %%
|
|
|
30 |
+USE "svid3", "sys/types.h" ;
|
|
|
31 |
|
|
|
32 |
+CONST int ABUFGET, ABUFSET ;
|
|
|
33 |
+CONST int AUDITON, AUDITOFF, ASTATUS ;
|
|
|
34 |
+CONST int AGETSYS, ASETSYS, AGETUSR, ASETME, AGETLVL, ACNTLVL, ASETLVL ;
|
|
|
35 |
+CONST int ASETUSR, AYAUDIT, ANAUDIT ;
|
|
|
36 |
+CONST int ADT_LMASK, ADT_RMASK, ADT_OMASK ;
|
|
|
37 |
+CONST int PPATH, PNODE, APATH, ANODE, PSIZE, PSPECIAL, ASPECIAL ;
|
|
|
38 |
+CONST int ASHUT, AALOG, APROG, ADISA ;
|
|
|
39 |
+CONST int ALOGGET, ALOGSET ;
|
|
|
40 |
|
|
|
41 |
+FIELD struct abuf {
|
|
|
42 |
int vhigh ;
|
|
|
43 |
int bsize ;
|
|
|
44 |
} ;
|
|
|
45 |
|
|
|
46 |
+CONST int ADT_VERLEN ;
|
|
|
47 |
+NAT ~ADT_VERLEN ;
|
|
|
48 |
|
|
|
49 |
+FIELD struct actl {
|
|
|
50 |
int auditon ;
|
|
|
51 |
char version [ ~ADT_VERLEN ] ;
|
|
|
52 |
long gmtsecoff ;
|
|
|
53 |
} ;
|
|
|
54 |
|
|
|
55 |
+FIELD struct arec {
|
|
|
56 |
int rtype ;
|
|
|
57 |
int rstatus ;
|
|
|
58 |
int rsize ;
|
|
|
59 |
char *argp ;
|
|
|
60 |
} ;
|
|
|
61 |
|
|
|
62 |
+TYPE adtemask_t ;
|
|
|
63 |
|
|
|
64 |
+FIELD struct aevt {
|
|
|
65 |
adtemask_t emask ;
|
|
|
66 |
uid_t uid ;
|
|
|
67 |
unsigned int flags ;
|
|
|
68 |
unsigned int nlvls ;
|
|
|
69 |
level_t *lvl_minp ;
|
|
|
70 |
level_t *lvl_maxp ;
|
|
|
71 |
level_t *lvl_tblp ;
|
|
|
72 |
} ;
|
|
|
73 |
|
|
|
74 |
+CONST int ADT_DATESZ, ADT_NODESZ ;
|
|
|
75 |
+NAT ~ADT_DATESZ, ~ADT_NODESZ ;
|
|
|
76 |
|
|
|
77 |
+FIELD struct alog {
|
|
|
78 |
int flags ;
|
|
|
79 |
int onfull ;
|
|
|
80 |
int onerr ;
|
|
|
81 |
int maxsize ;
|
|
|
82 |
int seqnum ;
|
|
|
83 |
char mmp [ ~ADT_DATESZ ] ;
|
|
|
84 |
char ddp [ ~ADT_DATESZ ] ;
|
|
|
85 |
char pnodep [ ~ADT_NODESZ ] ;
|
|
|
86 |
char anodep [ ~ADT_NODESZ ] ;
|
|
|
87 |
char *ppathp ;
|
|
|
88 |
char *apathp ;
|
|
|
89 |
char *progp ;
|
|
|
90 |
char *defpathp ;
|
|
|
91 |
char *defnodep ;
|
|
|
92 |
char *defpgmp ;
|
|
|
93 |
int defonfull ;
|
|
|
94 |
} ;
|
|
|
95 |
|
|
|
96 |
+FUNC int auditbuf ( int, struct abuf *, int ) ;
|
|
|
97 |
+FUNC int auditctl ( int, struct actl *, int ) ;
|
|
|
98 |
+FUNC int auditdmp ( struct arec *, int ) ;
|
|
|
99 |
+FUNC int auditevt ( int, struct aevt *, int ) ;
|
|
|
100 |
+FUNC int auditlog ( int, struct alog *, int ) ;
|
|
|
101 |
|
|
|
102 |
+ENDIF
|