git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9ca792
)
vfs: add missing pwrite ops to full_audit
author
David Disseldorp
<ddiss@samba.org>
Thu, 27 Sep 2012 09:50:22 +0000
(11:50 +0200)
committer
David 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
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_full_audit.c
b/source3/modules/vfs_full_audit.c
index 1a481abfd513c567a82500afb1a0b7457a476f68..5c5f91cfd0164f187abb286cdecccaff62d65ad4 100644
(file)
--- a/
source3/modules/vfs_full_audit.c
+++ b/
source3/modules/vfs_full_audit.c
@@
-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" },