vfs: add missing pwrite ops to full_audit
authorDavid Disseldorp <ddiss@samba.org>
Thu, 27 Sep 2012 09:50:22 +0000 (11:50 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 10 Oct 2012 06:46:43 +0000 (08:46 +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>
(cherry picked from commit e8e91fbbab16c7bcaa9665839d86c7d169e89fff)

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" },