1 /* begin include file - access_audit_flags.incl.pl1 */
 2 
 3 /* NOTE: All changes must be done also to access_audit_flags.incl.alm !!!!!! */
 4 
 5 /* Modified 85-01-14 by EJ Sharpe for n_audit_access_types, constants for
 6                               indexing into flags array */
 7 /* Modified 85-01-07 by EJ Sharpe for cleanup */
 8 /* Modified 84-11-16 by EJ Sharpe to add alternate dcl */
 9 
10 /* The following structure describes the per-process audit
11 data which determines which events must be audited. */
12 
13 dcl 1 audit_flags             based aligned,
14       2 objects (6) unal,     /* n_audit_objects */
15         3 grant_level         fixed bin (2) uns unal,
16         3 deny_level          fixed bin (2) uns unal,
17       2 pad                   bit (7) unal,
18       2 admin_ops             bit (1) unal,
19       2 priv_ops              bit (1) unal,
20       2 faults                bit (1) unal,
21       2 cc_1_10               bit (1) unal,       /* small channel */
22       2 cc_10_100             bit (1) unal;       /* moderate channel */
23 
24 dcl 1 audit_flags_alt         based aligned,
25       2 objects (6) unal,     /* n_audit_objects */
26         3 grant_level         fixed bin (2) uns unal,
27         3 deny_level          fixed bin (2) uns unal,
28       2 pad                   bit (7) unal,
29       2 flags (5) bit (1) unal /* n_audit_flags */;
30 
31 dcl n_audit_objects           init (6)
32                     fixed bin int static options (constant);
33 dcl n_audit_flags             init (5)
34                     fixed bin int static options (constant);
35 dcl n_audit_access_types      init (3)
36                     fixed bin int static options (constant);
37 
38 /* constants for indexing into the "objects" array */
39 dcl (
40     FSOBJ_AUDIT_OBJECT_INDEX  init (1),
41     FSATTR_AUDIT_OBJECT_INDEX init (2),
42     RCP_AUDIT_OBJECT_INDEX    init (3),
43     ADMIN_AUDIT_OBJECT_INDEX  init (4),
44     SPECIAL_AUDIT_OBJECT_INDEX init (5),
45     OTHER_AUDIT_OBJECT_INDEX  init (6)
46     )               fixed bin int static options (constant);
47 
48 /* constants for indexing into the flags array (in the alternate dcl) */
49 dcl (
50     ADMIN_OP_AUDIT_FLAG_INDEX           init (1),
51     PRIV_OP_AUDIT_FLAG_INDEX            init (2),
52     FAULTS_AUDIT_FLAG_INDEX             init (3),
53     CC_1_10_AUDIT_FLAG_INDEX            init (4),
54     CC_10_100_AUDIT_FLAG_INDEX          init (5)
55     )               fixed bin int static options (constant);
56 
57 /* constants which define the meaning of the level values / access types */
58 dcl (
59     NONE                      init (0),
60     MODIFY_ACCESS             init (1),
61     MODIFY                    init (2),
62     READ                      init (3)
63     )     fixed bin (2) uns int static options (constant);
64 
65 /* Note:  "MODIFY" implies "MODIFY_ACCESS" as well;
66           "READ" implies "MODIFY" and "MODIFY_ACCESS" as well */
67 
68 /* Note:  The size of the metering data in active_hardcore_data is
69           dependant upon the number of audit flags and objects.
70           Specifically, the number of metering buckets is:
71           n_audit_objects*2*n_audit_access_types+n_audit_flags+1
72           (the extra "1" is for debugging purposes)                   */
73 
74 /* end include file - access_audit_flags.incl.pl1 */