---
name: "vfs_full_audit"
section: "8"
platform: "linux"
package: "samba"
version: "2:4.25.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/vfs_full_audit"
---

# vfs\_full\_audit(8)

record Samba VFS operations in the system log

## NAME

vfs\_full\_audit - record Samba VFS operations in the system log

## SYNOPSIS

vfs objects = full\_audit

## DESCRIPTION

This VFS module is part of the [**samba**(7)](/samba/7.md) suite.

The vfs\_full\_audit VFS module records selected client operations to the system log using [**syslog**(3)](/syslog/3.md).

vfs\_full\_audit is able to record the complete set of Samba VFS operations:

aio\_force

brl\_lock\_windows

brl\_unlock\_windows

chdir

close

closedir

connect

create\_dfs\_pathat

create\_file

disconnect

disk\_free

durable\_cookie

durable\_disconnect

durable\_reconnect

fallocate

fchflags

fchmod

fchown

fcntl

fdopendir

fget\_compression

fget\_dos\_attributes

fget\_nt\_acl

fgetxattr

file\_id\_create

filesystem\_sharemode

flistxattr

fntimes

freaddir\_attr

fremovexattr

fs\_capabilities

fsctl

fset\_dos\_attributes

fset\_nt\_acl

fsetxattr

fs\_file\_id

fstat

fstatat

fstreaminfo

fsync\_recv

fsync\_send

ftruncate

get\_alloc\_size

get\_dfs\_referrals

get\_dos\_attributes\_recv

get\_dos\_attributes\_send

getlock

get\_quota

get\_real\_filename

get\_real\_filename\_at

get\_shadow\_copy\_data

getxattrat\_recv

getxattrat\_send

is\_offline

lchown

linkat

linux\_setlease

lock

lseek

lstat

mkdirat

mknodat

ntimes

offload\_read\_recv

offload\_read\_send

offload\_write\_recv

offload\_write\_send

open

openat

open\_share\_root

parent\_pathname

pread

pread\_recv

pread\_send

pwrite

pwrite\_recv

pwrite\_send

read

read\_dfs\_pathat

readdir

readlinkat

realpath

recvfile

removexattr

renameat

rewinddir

sendfile

set\_compression

set\_offline

set\_quota

snap\_check\_path

snap\_create

snap\_delete

stat

statvfs

strict\_lock\_check

symlinkat

sys\_acl\_blob\_get\_fd

sys\_acl\_delete\_def\_fd

sys\_acl\_get\_fd

sys\_acl\_set\_fd

translate\_name

unlinkat

write

In addition to these operations, vfs\_full\_audit recognizes the special operation names "all" and "none ", which refer to all the VFS operations and none of the VFS operations respectively.

If an unknown operation name is used (for example an operation name is miss-spelled), the module will fail to load and clients will be refused connections to a share using this module.

vfs\_full\_audit records operations in fixed format consisting of fields separated by '\|' characters. The format is:

```
		smbd_audit: PREFIX|OPERATION|RESULT|FILE
```

The record fields are:

• PREFIX - the result of the full\_audit:prefix string after variable substitutions

• OPERATION - the name of the VFS operation

• RESULT - whether the operation succeeded or failed

• FILE - the name of the file or directory the operation was performed on

This module is stackable.

## OPTIONS

full\_audit:prefix = STRING

Prepend audit messages with STRING. STRING is processed for standard substitution variables listed in [**smb.conf**(5)](/smb.conf/5.md). The default prefix is "%u\|%I".

full\_audit:success = LIST

LIST is a list of VFS operations that should be recorded if they succeed. Operations are specified using the names listed above. Operations can be unset by prefixing the names with "!". The default is none operations.

full\_audit:failure = LIST

LIST is a list of VFS operations that should be recorded if they failed. Operations are specified using the names listed above. Operations can be unset by prefixing the names with "!". The default is none operations.

full\_audit:facility = FACILITY

Log messages to the named [**syslog**(3)](/syslog/3.md) facility.

full\_audit:priority = PRIORITY

Log messages with the named [**syslog**(3)](/syslog/3.md) priority.

full\_audit:syslog = true/false

Log messages to syslog (default) or as a debug level 1 message.

full\_audit:log\_secdesc = true/false

Log an sddl form of the security descriptor coming in when a client sets an acl. Defaults to false.

## EXAMPLES

Log file and directory open operations on the \[records\] share using the LOCAL7 facility and ALERT priority, including the username and IP address. Logging excludes the open VFS function on failures:

```
        [records]
	path = /data/records
	vfs objects = full_audit
	full_audit:prefix = %u|%I
	full_audit:success = open opendir
	full_audit:failure = all !open
	full_audit:facility = LOCAL7
	full_audit:priority = ALERT
```

## VERSION

This man page is part of version 4.25.1 of the Samba suite.

## AUTHOR

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.
