8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / lib / libbsm / adt_record.dtd.1
blobb65fe383537b8286d498b6ca807df430dd080c9a
1 <?xml version="1.0" encoding="UTF-8" ?>
3 <!--
4 Copyright 2010 Sun Microsystems, Inc. All rights reserved.
5 Use is subject to license terms.
7 CDDL HEADER START
9 The contents of this file are subject to the terms of the
10 Common Development and Distribution License (the "License").
11 You may not use this file except in compliance with the License.
13 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14 or http://www.opensolaris.org/os/licensing.
15 See the License for the specific language governing permissions
16 and limitations under the License.
18 When distributing Covered Code, include this CDDL HEADER in each
19 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
20 If applicable, add the following below this CDDL HEADER, with the
21 fields enclosed by brackets "[]" replaced with your own identifying
22 information: Portions Copyright [yyyy] [name of copyright owner]
24 CDDL HEADER END
25 -->
28 <!--Entity Definitions-->
30 <!-- timeattr or iso8601
32 timeattr:
33 the time/date to the second in strftime(3C) default format,
34 followed by milliseconds offset.
36 Example: time="Mon May 06 12:10:18 2002" msec="750"
38 iso8601:
39 ISO 8601 standard format date time and timezone;
40 YYYY-MM-DD HH:MM:SS.sss +/-HH:MM; year, month, day 24 hour time with
41 milliseconds + or - offset from Universal Time (UTC, aka GMT)
43 Example: iso8601="2003-09-17 16:47:41.831 -07:00"
45 -->
46 <!ENTITY % timeattr "time CDATA #IMPLIED
47 msec CDATA #IMPLIED">
49 <!ENTITY % iso8601 "iso8601 CDATA #IMPLIED">
51 <!-- xinfo Generic info for X related tokens. -->
52 <!ENTITY % xinfo "xid CDATA #REQUIRED
53 xcreator-uid CDATA #REQUIRED">
55 <!-- reserved_toks
57 This represents the set of "reserved" tokens whose placement is
58 fixed.
60 -->
61 <!ENTITY % reserved_toks "(
62 file |
63 record |
64 host |
65 sequence
69 <!-- normaltoks
71 This represents the set of all tokens other than the "reserved"
72 tokens.
74 -->
75 <!ENTITY % normaltoks "(
76 acl |
77 arbitrary |
78 argument |
79 attribute |
80 cmd |
81 exit |
82 exec_args |
83 exec_env |
84 fmri |
85 group |
86 ip |
87 ip_address |
88 IPC |
89 IPC_perm |
90 ip_port |
91 liaison |
92 opaque |
93 path |
94 path_attr |
95 privilege |
96 process |
97 return |
98 sensitivity_label |
99 old_socket |
100 socket |
101 subject |
102 text |
103 user |
104 use_of_authorization |
105 use_of_privilege |
106 X_atom |
107 X_client |
108 X_color_map |
109 X_cursor |
110 X_font |
111 X_graphic_context |
112 X_pixmap |
113 X_property |
114 X_selection |
115 X_window |
116 zone
120 <!--Element Definitions-->
122 <!--
124 The main element, "audit", consists of a sequence of file & record tokens.
127 <!ELEMENT audit (file | record)*>
129 <!-- file token -->
130 <!ELEMENT file (#PCDATA)>
131 <!ATTLIST file %iso8601;>
134 <!-- record token
136 Audit records will have this general layout of tokens after the
137 first token (which is the record token):
138 (tokens),subject,group,(tokens),return,sequence,host
140 (all tokens after the record token are optional; the host token is unused.)
143 <!ELEMENT record (
144 (%normaltoks;)*,
145 sequence?,
146 host?
149 <!ATTLIST record
150 version CDATA #REQUIRED
151 event CDATA #REQUIRED
152 modifier CDATA #IMPLIED
153 host CDATA #IMPLIED
154 %iso8601;
157 <!-- text token -->
158 <!ELEMENT text (#PCDATA)>
160 <!-- user token -->
161 <!ELEMENT user EMPTY>
162 <!ATTLIST user
163 uid CDATA #REQUIRED
164 username CDATA #REQUIRED
167 <!-- path token -->
168 <!ELEMENT path (#PCDATA)>
170 <!-- path_attr token -->
171 <!ELEMENT path_attr (xattr*)>
172 <!ELEMENT xattr (#PCDATA)>
174 <!-- host token -->
175 <!ELEMENT host (#PCDATA)>
177 <!-- subject token -->
178 <!ELEMENT subject EMPTY>
179 <!ATTLIST subject
180 audit-uid CDATA #REQUIRED
181 uid CDATA #REQUIRED
182 gid CDATA #REQUIRED
183 ruid CDATA #REQUIRED
184 rgid CDATA #REQUIRED
185 pid CDATA #REQUIRED
186 sid CDATA #REQUIRED
187 tid CDATA #REQUIRED
190 <!-- process token -->
191 <!ELEMENT process EMPTY>
192 <!ATTLIST process
193 audit-uid CDATA #REQUIRED
194 uid CDATA #REQUIRED
195 gid CDATA #REQUIRED
196 ruid CDATA #REQUIRED
197 rgid CDATA #REQUIRED
198 pid CDATA #REQUIRED
199 sid CDATA #REQUIRED
200 tid CDATA #REQUIRED
203 <!-- return token -->
204 <!ELEMENT return EMPTY>
205 <!ATTLIST return
206 errval CDATA #REQUIRED
207 retval CDATA #REQUIRED
210 <!-- exit token -->
211 <!ELEMENT exit EMPTY>
212 <!ATTLIST exit
213 errval CDATA #REQUIRED
214 retval CDATA #REQUIRED
217 <!-- sequence token -->
218 <!ELEMENT sequence EMPTY>
219 <!ATTLIST sequence
220 seq-num CDATA #REQUIRED
223 <!-- fmri token -->
224 <!ELEMENT fmri (#PCDATA)>
226 <!-- group token -->
227 <!ELEMENT group (gid)*>
228 <!ELEMENT gid (#PCDATA)>
230 <!-- opaque token -->
231 <!ELEMENT opaque (#PCDATA)>
233 <!-- liaison token -->
234 <!-- (NOTE: liaison is obsolete and is no longer generated -->
235 <!ELEMENT liaison (#PCDATA)>
237 <!-- argument token -->
238 <!ELEMENT argument EMPTY>
239 <!ATTLIST argument
240 arg-num CDATA #REQUIRED
241 value CDATA #REQUIRED
242 desc CDATA #REQUIRED
245 <!-- attribute token -->
246 <!ELEMENT attribute EMPTY>
247 <!ATTLIST attribute
248 mode CDATA #REQUIRED
249 uid CDATA #REQUIRED
250 gid CDATA #REQUIRED
251 fsid CDATA #REQUIRED
252 nodeid CDATA #REQUIRED
253 device CDATA #REQUIRED
256 <!-- cmd token -->
257 <!ELEMENT cmd (argv*, arge*)>
258 <!ELEMENT argv (#PCDATA)>
259 <!ELEMENT arge (#PCDATA)>
261 <!-- exec_args token -->
262 <!ELEMENT exec_args (arg*)>
263 <!ELEMENT arg (#PCDATA)>
265 <!-- exec_env token -->
266 <!ELEMENT exec_env (env*)>
267 <!ELEMENT env (#PCDATA)>
269 <!-- arbitrary token -->
270 <!ELEMENT arbitrary (#PCDATA)>
271 <!ATTLIST arbitrary
272 print CDATA #REQUIRED
273 type CDATA #REQUIRED
274 count CDATA #REQUIRED
277 <!-- privilege token -->
278 <!ELEMENT privilege (#PCDATA)>
279 <!ATTLIST privilege
280 set-type CDATA #REQUIRED
283 <!-- secflags token -->
284 <!ELEMENT secflags (#PCDATA)>
285 <!ATTLIST secflags
286 set-type CDATA #REQUIRED
290 <!-- use_of_privilege token -->
291 <!ELEMENT use_of_privilege (#PCDATA)>
292 <!ATTLIST use_of_privilege
293 result CDATA #REQUIRED
296 <!-- sensitivity_label token -->
297 <!ELEMENT sensitivity_label (#PCDATA)>
299 <!-- use_of_authorization token -->
300 <!ELEMENT use_of_authorization (#PCDATA)>
302 <!-- IPC token -->
303 <!ELEMENT IPC EMPTY>
304 <!ATTLIST IPC
305 ipc-type CDATA #REQUIRED
306 ipc-id CDATA #REQUIRED
309 <!-- IPC_perm token -->
310 <!ELEMENT IPC_perm EMPTY>
311 <!ATTLIST IPC_perm
312 uid CDATA #REQUIRED
313 gid CDATA #REQUIRED
314 creator-uid CDATA #REQUIRED
315 creator-gid CDATA #REQUIRED
316 mode CDATA #REQUIRED
317 seq CDATA #REQUIRED
318 key CDATA #REQUIRED
321 <!-- ip_address token -->
322 <!ELEMENT ip_address (#PCDATA)>
324 <!-- ip_port token -->
325 <!-- (NOTE: ip_port is obsolete and is no longer generated -->
326 <!ELEMENT ip_port (#PCDATA)>
328 <!-- ip token -->
329 <!-- (NOTE: ip is obsolete and is no longer generated -->
330 <!ELEMENT ip EMPTY>
331 <!ATTLIST ip
332 version CDATA #REQUIRED
333 service_type CDATA #REQUIRED
334 len CDATA #REQUIRED
335 id CDATA #REQUIRED
336 offset CDATA #REQUIRED
337 time_to_live CDATA #REQUIRED
338 protocol CDATA #REQUIRED
339 cksum CDATA #REQUIRED
340 src_addr CDATA #REQUIRED
341 dest_addr CDATA #REQUIRED
344 <!-- old_socket token -->
345 <!ELEMENT old_socket EMPTY>
346 <!ATTLIST old_socket
347 type CDATA #REQUIRED
348 port CDATA #REQUIRED
349 addr CDATA #REQUIRED
352 <!-- socket token -->
353 <!ELEMENT socket EMPTY>
354 <!ATTLIST socket
355 sock_domain CDATA #REQUIRED
356 sock_type CDATA #REQUIRED
357 lport CDATA #REQUIRED
358 laddr CDATA #REQUIRED
359 fport CDATA #REQUIRED
360 faddr CDATA #REQUIRED
363 <!-- acl token -->
364 <!ELEMENT acl EMPTY>
365 <!ATTLIST acl
366 type CDATA #IMPLIED
367 value CDATA #IMPLIED
368 mode CDATA #IMPLIED
369 flags CDATA #IMPLIED
370 id CDATA #IMPLIED
371 access_mask CDATA #IMPLIED
374 <!-- tid token -->
375 <!-- future intent: contain one of ipadr | MTUadr | device -->
376 <!ELEMENT tid (ipadr*)>
377 <!ATTLIST tid
378 type CDATA #REQUIRED
381 <!-- ipadr content of tid token -->
382 <!ELEMENT ipadr EMPTY>
383 <!ATTLIST ipadr
384 local-port CDATA #REQUIRED
385 remote-port CDATA #REQUIRED
386 host CDATA #REQUIRED
389 <!-- X_atom token -->
390 <!ELEMENT X_atom (#PCDATA)>
392 <!-- X_color_map token -->
393 <!ELEMENT X_color_map EMPTY>
394 <!ATTLIST X_color_map %xinfo;>
396 <!-- X_cursor token -->
397 <!ELEMENT X_cursor EMPTY>
398 <!ATTLIST X_cursor %xinfo;>
400 <!-- X_font token -->
401 <!ELEMENT X_font EMPTY>
402 <!ATTLIST X_font %xinfo;>
404 <!-- X_graphic_context token -->
405 <!ELEMENT X_graphic_context EMPTY>
406 <!ATTLIST X_graphic_context %xinfo;>
408 <!-- X_pixmap token -->
409 <!ELEMENT X_pixmap EMPTY>
410 <!ATTLIST X_pixmap %xinfo;>
412 <!-- X_window token -->
413 <!ELEMENT X_window EMPTY>
414 <!ATTLIST X_window %xinfo;>
416 <!-- X_property token -->
417 <!ELEMENT X_property (#PCDATA)>
418 <!ATTLIST X_property %xinfo;>
420 <!-- X_client token -->
421 <!ELEMENT X_client (#PCDATA)>
423 <!-- X_selection token -->
424 <!ELEMENT X_selection (xsel_text, xsel_type, xsel_data)>
425 <!ELEMENT x_sel_text (#PCDATA)>
426 <!ELEMENT x_sel_type (#PCDATA)>
427 <!ELEMENT x_sel_data (#PCDATA)>
429 <!-- zonename token -->
430 <!ELEMENT zone EMPTY>
431 <!ATTLIST zone
432 name CDATA #REQUIRED