source: branches/samba-3.5.x/docs/manpages/vfs_full_audit.8

Last change on this file was 773, checked in by Herwig Bauernfeind, 12 years ago

Samba Server 3.5: Update branch to 3.5.20

File size: 6.2 KB
Line 
1'\" t
2.\" Title: vfs_full_audit
3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5.\" Date: 12/14/2012
6.\" Manual: System Administration tools
7.\" Source: Samba 3.5
8.\" Language: English
9.\"
10.TH "VFS_FULL_AUDIT" "8" "12/14/2012" "Samba 3\&.5" "System Administration tools"
11.\" -----------------------------------------------------------------
12.\" * set default formatting
13.\" -----------------------------------------------------------------
14.\" disable hyphenation
15.nh
16.\" disable justification (adjust text to left margin only)
17.ad l
18.\" -----------------------------------------------------------------
19.\" * MAIN CONTENT STARTS HERE *
20.\" -----------------------------------------------------------------
21.SH "NAME"
22vfs_full_audit \- record Samba VFS operations in the system log
23.SH "SYNOPSIS"
24.HP \w'\ 'u
25vfs objects = full_audit
26.SH "DESCRIPTION"
27.PP
28This VFS module is part of the
29\fBsamba\fR(7)
30suite\&.
31.PP
32The
33vfs_full_audit
34VFS module records selected client operations to the system log using
35\fBsyslog\fR(3)\&.
36.PP
37vfs_full_audit
38is able to record the complete set of Samba VFS operations:
39.RS 4
40aio_cancel
41.RE
42.RS 4
43aio_error
44.RE
45.RS 4
46aio_fsync
47.RE
48.RS 4
49aio_read
50.RE
51.RS 4
52aio_return
53.RE
54.RS 4
55aio_suspend
56.RE
57.RS 4
58aio_write
59.RE
60.RS 4
61chdir
62.RE
63.RS 4
64chflags
65.RE
66.RS 4
67chmod
68.RE
69.RS 4
70chmod_acl
71.RE
72.RS 4
73chown
74.RE
75.RS 4
76close
77.RE
78.RS 4
79closedir
80.RE
81.RS 4
82connect
83.RE
84.RS 4
85disconnect
86.RE
87.RS 4
88disk_free
89.RE
90.RS 4
91fchmod
92.RE
93.RS 4
94fchmod_acl
95.RE
96.RS 4
97fchown
98.RE
99.RS 4
100fget_nt_acl
101.RE
102.RS 4
103fgetxattr
104.RE
105.RS 4
106flistxattr
107.RE
108.RS 4
109fremovexattr
110.RE
111.RS 4
112fset_nt_acl
113.RE
114.RS 4
115fsetxattr
116.RE
117.RS 4
118fstat
119.RE
120.RS 4
121fsync
122.RE
123.RS 4
124ftruncate
125.RE
126.RS 4
127get_nt_acl
128.RE
129.RS 4
130get_quota
131.RE
132.RS 4
133get_shadow_copy_data
134.RE
135.RS 4
136getlock
137.RE
138.RS 4
139getwd
140.RE
141.RS 4
142getxattr
143.RE
144.RS 4
145kernel_flock
146.RE
147.RS 4
148lgetxattr
149.RE
150.RS 4
151link
152.RE
153.RS 4
154linux_setlease
155.RE
156.RS 4
157listxattr
158.RE
159.RS 4
160llistxattr
161.RE
162.RS 4
163lock
164.RE
165.RS 4
166lremovexattr
167.RE
168.RS 4
169lseek
170.RE
171.RS 4
172lsetxattr
173.RE
174.RS 4
175lstat
176.RE
177.RS 4
178mkdir
179.RE
180.RS 4
181mknod
182.RE
183.RS 4
184open
185.RE
186.RS 4
187opendir
188.RE
189.RS 4
190pread
191.RE
192.RS 4
193pwrite
194.RE
195.RS 4
196read
197.RE
198.RS 4
199readdir
200.RE
201.RS 4
202readlink
203.RE
204.RS 4
205realpath
206.RE
207.RS 4
208removexattr
209.RE
210.RS 4
211rename
212.RE
213.RS 4
214rewinddir
215.RE
216.RS 4
217rmdir
218.RE
219.RS 4
220seekdir
221.RE
222.RS 4
223sendfile
224.RE
225.RS 4
226set_nt_acl
227.RE
228.RS 4
229set_quota
230.RE
231.RS 4
232setxattr
233.RE
234.RS 4
235stat
236.RE
237.RS 4
238statvfs
239.RE
240.RS 4
241symlink
242.RE
243.RS 4
244sys_acl_add_perm
245.RE
246.RS 4
247sys_acl_clear_perms
248.RE
249.RS 4
250sys_acl_create_entry
251.RE
252.RS 4
253sys_acl_delete_def_file
254.RE
255.RS 4
256sys_acl_free_acl
257.RE
258.RS 4
259sys_acl_free_qualifier
260.RE
261.RS 4
262sys_acl_free_text
263.RE
264.RS 4
265sys_acl_get_entry
266.RE
267.RS 4
268sys_acl_get_fd
269.RE
270.RS 4
271sys_acl_get_file
272.RE
273.RS 4
274sys_acl_get_perm
275.RE
276.RS 4
277sys_acl_get_permset
278.RE
279.RS 4
280sys_acl_get_qualifier
281.RE
282.RS 4
283sys_acl_get_tag_type
284.RE
285.RS 4
286sys_acl_init
287.RE
288.RS 4
289sys_acl_set_fd
290.RE
291.RS 4
292sys_acl_set_file
293.RE
294.RS 4
295sys_acl_set_permset
296.RE
297.RS 4
298sys_acl_set_qualifier
299.RE
300.RS 4
301sys_acl_set_tag_type
302.RE
303.RS 4
304sys_acl_to_text
305.RE
306.RS 4
307sys_acl_valid
308.RE
309.RS 4
310telldir
311.RE
312.RS 4
313unlink
314.RE
315.RS 4
316utime
317.RE
318.RS 4
319write
320.RE
321.PP
322In addition to these operations,
323vfs_full_audit
324recognizes the special operation names "all" and "none ", which refer to all the VFS operations and none of the VFS operations respectively\&.
325.PP
326vfs_full_audit
327records operations in fixed format consisting of fields separated by \'|\' characters\&. The format is:
328.sp
329.if n \{\
330.RS 4
331.\}
332.nf
333 smbd_audit: PREFIX|OPERATION|RESULT|FILE
334
335.fi
336.if n \{\
337.RE
338.\}
339.PP
340The record fields are:
341.sp
342.RS 4
343.ie n \{\
344\h'-04'\(bu\h'+03'\c
345.\}
346.el \{\
347.sp -1
348.IP \(bu 2.3
349.\}
350PREFIX
351\- the result of the full_audit:prefix string after variable substitutions
352.RE
353.sp
354.RS 4
355.ie n \{\
356\h'-04'\(bu\h'+03'\c
357.\}
358.el \{\
359.sp -1
360.IP \(bu 2.3
361.\}
362OPERATION
363\- the name of the VFS operation
364.RE
365.sp
366.RS 4
367.ie n \{\
368\h'-04'\(bu\h'+03'\c
369.\}
370.el \{\
371.sp -1
372.IP \(bu 2.3
373.\}
374RESULT
375\- whether the operation succeeded or failed
376.RE
377.sp
378.RS 4
379.ie n \{\
380\h'-04'\(bu\h'+03'\c
381.\}
382.el \{\
383.sp -1
384.IP \(bu 2.3
385.\}
386FILE
387\- the name of the file or directory the operation was performed on
388.sp
389.RE
390.PP
391This module is stackable\&.
392.SH "OPTIONS"
393.PP
394vfs_full_audit:prefix = STRING
395.RS 4
396Prepend audit messages with STRING\&. STRING is processed for standard substitution variables listed in
397\fBsmb.conf\fR(5)\&. The default prefix is "%u|%I"\&.
398.RE
399.PP
400vfs_full_audit:success = LIST
401.RS 4
402LIST is a list of VFS operations that should be recorded if they succeed\&. Operations are specified using the names listed above\&.
403.RE
404.PP
405vfs_full_audit:failure = LIST
406.RS 4
407LIST is a list of VFS operations that should be recorded if they failed\&. Operations are specified using the names listed above\&.
408.RE
409.PP
410full_audit:facility = FACILITY
411.RS 4
412Log messages to the named
413\fBsyslog\fR(3)
414facility\&.
415.RE
416.PP
417full_audit:priority = PRIORITY
418.RS 4
419Log messages with the named
420\fBsyslog\fR(3)
421priority\&.
422.RE
423.SH "EXAMPLES"
424.PP
425Log file and directory open operations on the [records] share using the LOCAL7 facility and ALERT priority, including the username and IP address:
426.sp
427.if n \{\
428.RS 4
429.\}
430.nf
431 \fI[records]\fR
432 \m[blue]\fBpath = /data/records\fR\m[]
433 \m[blue]\fBvfs objects = full_audit\fR\m[]
434 \m[blue]\fBfull_audit:prefix = %u|%I\fR\m[]
435 \m[blue]\fBfull_audit:success = open opendir\fR\m[]
436 \m[blue]\fBfull_audit:failure = all\fR\m[]
437 \m[blue]\fBfull_audit:facility = LOCAL7\fR\m[]
438 \m[blue]\fBfull_audit:priority = ALERT\fR\m[]
439.fi
440.if n \{\
441.RE
442.\}
443.SH "VERSION"
444.PP
445This man page is correct for version 3\&.0\&.25 of the Samba suite\&.
446.SH "AUTHOR"
447.PP
448The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
Note: See TracBrowser for help on using the repository browser.