vfs: add missing pwrite ops to full_audit
authorDavid Disseldorp <ddiss@samba.org>
Thu, 27 Sep 2012 09:50:22 +0000 (11:50 +0200)
committerDavid Disseldorp <ddiss@samba.org>
Fri, 28 Sep 2012 15:44:55 +0000 (17:44 +0200)
The op enum is used by audit_opname() as an index into the vfs_op_names
array, so any decrepencies cause bogus audit log entries.

Signed-off-by: Jim McDonough <jmcd@samba.org>
source3/modules/vfs_full_audit.c

index 1a481abfd513c567a82500afb1a0b7457a476f68..5c5f91cfd0164f187abb286cdecccaff62d65ad4 100644 (file)
@@ -236,6 +236,8 @@ static struct {
        { SMB_VFS_OP_PREAD_RECV,        "pread_recv" },
        { SMB_VFS_OP_WRITE,     "write" },
        { SMB_VFS_OP_PWRITE,    "pwrite" },
+       { SMB_VFS_OP_PWRITE_SEND,       "pwrite_send" },
+       { SMB_VFS_OP_PWRITE_RECV,       "pwrite_recv" },
        { SMB_VFS_OP_LSEEK,     "lseek" },
        { SMB_VFS_OP_SENDFILE,  "sendfile" },
        { SMB_VFS_OP_RECVFILE,  "recvfile" },