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"
|
---|
22 | vfs_full_audit \- record Samba VFS operations in the system log
|
---|
23 | .SH "SYNOPSIS"
|
---|
24 | .HP \w'\ 'u
|
---|
25 | vfs objects = full_audit
|
---|
26 | .SH "DESCRIPTION"
|
---|
27 | .PP
|
---|
28 | This VFS module is part of the
|
---|
29 | \fBsamba\fR(7)
|
---|
30 | suite\&.
|
---|
31 | .PP
|
---|
32 | The
|
---|
33 | vfs_full_audit
|
---|
34 | VFS module records selected client operations to the system log using
|
---|
35 | \fBsyslog\fR(3)\&.
|
---|
36 | .PP
|
---|
37 | vfs_full_audit
|
---|
38 | is able to record the complete set of Samba VFS operations:
|
---|
39 | .RS 4
|
---|
40 | aio_cancel
|
---|
41 | .RE
|
---|
42 | .RS 4
|
---|
43 | aio_error
|
---|
44 | .RE
|
---|
45 | .RS 4
|
---|
46 | aio_fsync
|
---|
47 | .RE
|
---|
48 | .RS 4
|
---|
49 | aio_read
|
---|
50 | .RE
|
---|
51 | .RS 4
|
---|
52 | aio_return
|
---|
53 | .RE
|
---|
54 | .RS 4
|
---|
55 | aio_suspend
|
---|
56 | .RE
|
---|
57 | .RS 4
|
---|
58 | aio_write
|
---|
59 | .RE
|
---|
60 | .RS 4
|
---|
61 | chdir
|
---|
62 | .RE
|
---|
63 | .RS 4
|
---|
64 | chflags
|
---|
65 | .RE
|
---|
66 | .RS 4
|
---|
67 | chmod
|
---|
68 | .RE
|
---|
69 | .RS 4
|
---|
70 | chmod_acl
|
---|
71 | .RE
|
---|
72 | .RS 4
|
---|
73 | chown
|
---|
74 | .RE
|
---|
75 | .RS 4
|
---|
76 | close
|
---|
77 | .RE
|
---|
78 | .RS 4
|
---|
79 | closedir
|
---|
80 | .RE
|
---|
81 | .RS 4
|
---|
82 | connect
|
---|
83 | .RE
|
---|
84 | .RS 4
|
---|
85 | disconnect
|
---|
86 | .RE
|
---|
87 | .RS 4
|
---|
88 | disk_free
|
---|
89 | .RE
|
---|
90 | .RS 4
|
---|
91 | fchmod
|
---|
92 | .RE
|
---|
93 | .RS 4
|
---|
94 | fchmod_acl
|
---|
95 | .RE
|
---|
96 | .RS 4
|
---|
97 | fchown
|
---|
98 | .RE
|
---|
99 | .RS 4
|
---|
100 | fget_nt_acl
|
---|
101 | .RE
|
---|
102 | .RS 4
|
---|
103 | fgetxattr
|
---|
104 | .RE
|
---|
105 | .RS 4
|
---|
106 | flistxattr
|
---|
107 | .RE
|
---|
108 | .RS 4
|
---|
109 | fremovexattr
|
---|
110 | .RE
|
---|
111 | .RS 4
|
---|
112 | fset_nt_acl
|
---|
113 | .RE
|
---|
114 | .RS 4
|
---|
115 | fsetxattr
|
---|
116 | .RE
|
---|
117 | .RS 4
|
---|
118 | fstat
|
---|
119 | .RE
|
---|
120 | .RS 4
|
---|
121 | fsync
|
---|
122 | .RE
|
---|
123 | .RS 4
|
---|
124 | ftruncate
|
---|
125 | .RE
|
---|
126 | .RS 4
|
---|
127 | get_nt_acl
|
---|
128 | .RE
|
---|
129 | .RS 4
|
---|
130 | get_quota
|
---|
131 | .RE
|
---|
132 | .RS 4
|
---|
133 | get_shadow_copy_data
|
---|
134 | .RE
|
---|
135 | .RS 4
|
---|
136 | getlock
|
---|
137 | .RE
|
---|
138 | .RS 4
|
---|
139 | getwd
|
---|
140 | .RE
|
---|
141 | .RS 4
|
---|
142 | getxattr
|
---|
143 | .RE
|
---|
144 | .RS 4
|
---|
145 | kernel_flock
|
---|
146 | .RE
|
---|
147 | .RS 4
|
---|
148 | lgetxattr
|
---|
149 | .RE
|
---|
150 | .RS 4
|
---|
151 | link
|
---|
152 | .RE
|
---|
153 | .RS 4
|
---|
154 | linux_setlease
|
---|
155 | .RE
|
---|
156 | .RS 4
|
---|
157 | listxattr
|
---|
158 | .RE
|
---|
159 | .RS 4
|
---|
160 | llistxattr
|
---|
161 | .RE
|
---|
162 | .RS 4
|
---|
163 | lock
|
---|
164 | .RE
|
---|
165 | .RS 4
|
---|
166 | lremovexattr
|
---|
167 | .RE
|
---|
168 | .RS 4
|
---|
169 | lseek
|
---|
170 | .RE
|
---|
171 | .RS 4
|
---|
172 | lsetxattr
|
---|
173 | .RE
|
---|
174 | .RS 4
|
---|
175 | lstat
|
---|
176 | .RE
|
---|
177 | .RS 4
|
---|
178 | mkdir
|
---|
179 | .RE
|
---|
180 | .RS 4
|
---|
181 | mknod
|
---|
182 | .RE
|
---|
183 | .RS 4
|
---|
184 | open
|
---|
185 | .RE
|
---|
186 | .RS 4
|
---|
187 | opendir
|
---|
188 | .RE
|
---|
189 | .RS 4
|
---|
190 | pread
|
---|
191 | .RE
|
---|
192 | .RS 4
|
---|
193 | pwrite
|
---|
194 | .RE
|
---|
195 | .RS 4
|
---|
196 | read
|
---|
197 | .RE
|
---|
198 | .RS 4
|
---|
199 | readdir
|
---|
200 | .RE
|
---|
201 | .RS 4
|
---|
202 | readlink
|
---|
203 | .RE
|
---|
204 | .RS 4
|
---|
205 | realpath
|
---|
206 | .RE
|
---|
207 | .RS 4
|
---|
208 | removexattr
|
---|
209 | .RE
|
---|
210 | .RS 4
|
---|
211 | rename
|
---|
212 | .RE
|
---|
213 | .RS 4
|
---|
214 | rewinddir
|
---|
215 | .RE
|
---|
216 | .RS 4
|
---|
217 | rmdir
|
---|
218 | .RE
|
---|
219 | .RS 4
|
---|
220 | seekdir
|
---|
221 | .RE
|
---|
222 | .RS 4
|
---|
223 | sendfile
|
---|
224 | .RE
|
---|
225 | .RS 4
|
---|
226 | set_nt_acl
|
---|
227 | .RE
|
---|
228 | .RS 4
|
---|
229 | set_quota
|
---|
230 | .RE
|
---|
231 | .RS 4
|
---|
232 | setxattr
|
---|
233 | .RE
|
---|
234 | .RS 4
|
---|
235 | stat
|
---|
236 | .RE
|
---|
237 | .RS 4
|
---|
238 | statvfs
|
---|
239 | .RE
|
---|
240 | .RS 4
|
---|
241 | symlink
|
---|
242 | .RE
|
---|
243 | .RS 4
|
---|
244 | sys_acl_add_perm
|
---|
245 | .RE
|
---|
246 | .RS 4
|
---|
247 | sys_acl_clear_perms
|
---|
248 | .RE
|
---|
249 | .RS 4
|
---|
250 | sys_acl_create_entry
|
---|
251 | .RE
|
---|
252 | .RS 4
|
---|
253 | sys_acl_delete_def_file
|
---|
254 | .RE
|
---|
255 | .RS 4
|
---|
256 | sys_acl_free_acl
|
---|
257 | .RE
|
---|
258 | .RS 4
|
---|
259 | sys_acl_free_qualifier
|
---|
260 | .RE
|
---|
261 | .RS 4
|
---|
262 | sys_acl_free_text
|
---|
263 | .RE
|
---|
264 | .RS 4
|
---|
265 | sys_acl_get_entry
|
---|
266 | .RE
|
---|
267 | .RS 4
|
---|
268 | sys_acl_get_fd
|
---|
269 | .RE
|
---|
270 | .RS 4
|
---|
271 | sys_acl_get_file
|
---|
272 | .RE
|
---|
273 | .RS 4
|
---|
274 | sys_acl_get_perm
|
---|
275 | .RE
|
---|
276 | .RS 4
|
---|
277 | sys_acl_get_permset
|
---|
278 | .RE
|
---|
279 | .RS 4
|
---|
280 | sys_acl_get_qualifier
|
---|
281 | .RE
|
---|
282 | .RS 4
|
---|
283 | sys_acl_get_tag_type
|
---|
284 | .RE
|
---|
285 | .RS 4
|
---|
286 | sys_acl_init
|
---|
287 | .RE
|
---|
288 | .RS 4
|
---|
289 | sys_acl_set_fd
|
---|
290 | .RE
|
---|
291 | .RS 4
|
---|
292 | sys_acl_set_file
|
---|
293 | .RE
|
---|
294 | .RS 4
|
---|
295 | sys_acl_set_permset
|
---|
296 | .RE
|
---|
297 | .RS 4
|
---|
298 | sys_acl_set_qualifier
|
---|
299 | .RE
|
---|
300 | .RS 4
|
---|
301 | sys_acl_set_tag_type
|
---|
302 | .RE
|
---|
303 | .RS 4
|
---|
304 | sys_acl_to_text
|
---|
305 | .RE
|
---|
306 | .RS 4
|
---|
307 | sys_acl_valid
|
---|
308 | .RE
|
---|
309 | .RS 4
|
---|
310 | telldir
|
---|
311 | .RE
|
---|
312 | .RS 4
|
---|
313 | unlink
|
---|
314 | .RE
|
---|
315 | .RS 4
|
---|
316 | utime
|
---|
317 | .RE
|
---|
318 | .RS 4
|
---|
319 | write
|
---|
320 | .RE
|
---|
321 | .PP
|
---|
322 | In addition to these operations,
|
---|
323 | vfs_full_audit
|
---|
324 | recognizes the special operation names "all" and "none ", which refer to all the VFS operations and none of the VFS operations respectively\&.
|
---|
325 | .PP
|
---|
326 | vfs_full_audit
|
---|
327 | records 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
|
---|
340 | The 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 | .\}
|
---|
350 | PREFIX
|
---|
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 | .\}
|
---|
362 | OPERATION
|
---|
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 | .\}
|
---|
374 | RESULT
|
---|
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 | .\}
|
---|
386 | FILE
|
---|
387 | \- the name of the file or directory the operation was performed on
|
---|
388 | .sp
|
---|
389 | .RE
|
---|
390 | .PP
|
---|
391 | This module is stackable\&.
|
---|
392 | .SH "OPTIONS"
|
---|
393 | .PP
|
---|
394 | vfs_full_audit:prefix = STRING
|
---|
395 | .RS 4
|
---|
396 | Prepend 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
|
---|
400 | vfs_full_audit:success = LIST
|
---|
401 | .RS 4
|
---|
402 | LIST 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
|
---|
405 | vfs_full_audit:failure = LIST
|
---|
406 | .RS 4
|
---|
407 | LIST 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
|
---|
410 | full_audit:facility = FACILITY
|
---|
411 | .RS 4
|
---|
412 | Log messages to the named
|
---|
413 | \fBsyslog\fR(3)
|
---|
414 | facility\&.
|
---|
415 | .RE
|
---|
416 | .PP
|
---|
417 | full_audit:priority = PRIORITY
|
---|
418 | .RS 4
|
---|
419 | Log messages with the named
|
---|
420 | \fBsyslog\fR(3)
|
---|
421 | priority\&.
|
---|
422 | .RE
|
---|
423 | .SH "EXAMPLES"
|
---|
424 | .PP
|
---|
425 | Log 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
|
---|
445 | This man page is correct for version 3\&.0\&.25 of the Samba suite\&.
|
---|
446 | .SH "AUTHOR"
|
---|
447 | .PP
|
---|
448 | The 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\&.
|
---|