Steven Danneman
af0e199b31
Add an optional SMB_STRUCT_SMB parameter to VFS_OP_READDIR
...
* this allows VFS implementations that prefetch stat information on
readdir to return it through one VFS call
* backwards compatibility is maintained by passing in NULL
* if the system readdir doesn't return stat info, the stat struct is
set to invalid
2009-02-09 23:56:16 -08:00
Tim Prouty
b8f7cdbd79
s3: Add a new SMB_VFS_GET_ALLOC_SIZE vfs operation
...
This allows module implementors to customize what allocation size is
returned to the client.
2009-01-29 15:29:33 -08:00
todd stecher
48b0016cff
Extend NTIMES to allow setting create_time
...
1) Add in smb_file_time struct to clarify code and make room for createtime.
2) Get and set create time from SMB messages.
3) Fixup existing VFS modules + examples Some OS'es allow for the
setting of the birthtime through kernel interfaces. This value is
generically used for Windows createtime, but is not settable in the
code today.
2009-01-23 21:05:38 -08:00
Volker Lendecke
21b7b000fb
Use talloc_tos in vfs_full_audit.c:do_log
2009-01-05 13:42:27 +01:00
Volker Lendecke
3305fa2798
Fix a bad memleak in vfs_full_audit
2009-01-05 13:42:26 +01:00
Volker Lendecke
6d4fd789f6
Add create_file to vfs_op_names
2009-01-05 13:09:32 +01:00
Volker Lendecke
34d0cb4f17
Fix bug 6012: Add "get_real_filename" to full_audit
...
Thanks to Hodur <coil93@gmail.com> for testing!
Volker
2009-01-05 13:09:31 +01:00
Tim Prouty
5844012285
s3: Change SMB_VFS_CREATE_FILE to take a create_file_flags argument
...
This replaces the is_dos_path bool with a more future-proof argument.
The next step is to plumb INTERNAL_OPEN_ONLY through this flag instead
of overridding the oplock_request.
2008-12-03 17:51:44 -08:00
Tim Prouty
61b4597e3c
s3: Add SMB_VFS_CREATE_FILE to vfs_full_audit module
2008-12-03 17:50:57 -08:00
Jelmer Vernooij
4746f79d50
Use {u,}int64_t instead of SMB_BIG_{U,}INT.
2008-10-14 01:59:36 +02:00
Jeremy Allison
ec5d09dbff
Update vfs version as I've added a const to the security_descriptor paramter in fset_nt_acl().
...
Need to watch the build farm to make sure I haven't broken the AIX or Solaris ACL modules.
Jeremy.
2008-10-07 17:50:01 -07:00
Jeremy Allison
9253044276
Fix bug #5692 - Core dump in full_audit.so.
...
There were some function mismatches in the various GET_NT_ACL modules (some places the fsp parameter has not been removed).
Jeremy.
(This used to be commit 221cc5e21e
)
2008-08-14 10:58:50 -07:00
Lars Müller
878766c6a8
Add SMB_VFS_OP_RECVFILE to get it in sync with vfs.h
...
Fix "vfs_full_audit.c: name table not in sync with vfs.h" panic reported
by Franz Sirl.
(This used to be commit 72b96b75a4
)
2008-07-04 14:51:01 +02:00
Volker Lendecke
40f5eab5eb
Wrap the unix token info in a unix_user_token in auth_serversupplied_info
...
No functional change, this is a preparation for more current_user ref removal
(This used to be commit dcaedf345e
)
2008-06-19 18:51:37 +02:00
Volker Lendecke
d1e0c7f0c1
Add STREAMINFO op to vfs_full_audit
...
Fix Coverity ID 552 and 553
(This used to be commit c46e10d260
)
2008-06-07 09:04:03 +02:00
Volker Lendecke
50ab871813
Remove some references to get_current_username() and current_user_info
...
(This used to be commit 344d69f95e
)
2008-05-25 11:43:57 +02:00
Volker Lendecke
5bda9a8af0
Remove "user" from connection_struct
...
(This used to be commit 368454a27c
)
2008-05-10 11:17:01 +02:00
Volker Lendecke
53a623d8a6
Remove the unix token info from connection_struct
...
(This used to be commit 2834dacc8d
)
2008-05-10 11:17:01 +02:00
Jeremy Allison
00b2cdf75e
Yay ! Remove a VFS entry. Removed the set_nt_acl() call,
...
this can only be done via fset_nt_acl() using an open
file/directory handle. I'd like to do the same with
get_nt_acl() but am concerned about efficiency
problems with "hide unreadable/hide unwritable" when
doing a directory listing (this would mean opening
every file in the dir on list).
Moving closer to rationalizing the ACL model and
maybe moving the POSIX calls into a posix_acl VFS
module rather than having them as first class citizens
of the VFS.
Jeremy.
(This used to be commit f487f742cb
)
2008-05-08 18:09:07 -07:00
Michael Adam
0db7aba8af
Remove redundant parameter fd from SMB_VFS_CLOSE().
...
Now all those redundant fd's have vanished from the VFS API.
Michael
(This used to be commit 1429453551
)
2008-04-21 00:22:42 +02:00
Volker Lendecke
20caa9bbe6
Fix Coverity ID 450
...
(This used to be commit 700cceb694
)
2008-03-23 18:28:23 +01:00
Volker Lendecke
296bbc3c9f
Fix Coverity IDs 553, 552
...
(This used to be commit 1a0aed566b
)
2008-03-21 10:22:15 +01:00
Michael Adam
fef9cf00e1
Combine fsp and tofd to tofsp in SMB_VFS_RECVFILE().
...
Michael
(This used to be commit 3958abffaf
)
2008-01-11 01:27:05 +01:00
Michael Adam
4caab9ca25
Combine fsp and fromfd to fromfsp in SMB_VFS_SENDFILE().
...
Michael
(This used to be commit a52cfb7d77
)
2008-01-11 01:27:05 +01:00
Michael Adam
e9a3a62e74
Remove redundant parameter fd from SMB_VFS_WRITE().
...
Michael
(This used to be commit c8ae7d095a
)
2008-01-10 15:49:35 +01:00
Michael Adam
1d66f4d58b
Remove redundant parameter fd from SMB_VFS_READ().
...
Michael
(This used to be commit a8fc2ddad8
)
2008-01-10 15:33:51 +01:00
Michael Adam
4a056e127a
Remove redundant parameter fd from SMB_VFS_AIO_CANCEL().
...
Michael
(This used to be commit 3c997ae000
)
2008-01-08 12:20:55 +01:00
Michael Adam
aab6704ce8
Remove redundant parameter fd from SMB_VFS_FSETXATTR().
...
Michael
(This used to be commit 0bd2643463
)
2008-01-08 11:47:33 +01:00
Michael Adam
1590dd32cf
Remove redundant parameter fd from SMB_VFS_FREMOVEXATTR().
...
Michael
(This used to be commit bfc3b5a27f
)
2008-01-08 11:29:09 +01:00
Michael Adam
9f691df852
Remove redundant parameter fd from SMB_VFS_FLISTXATTR().
...
Michael
(This used to be commit 167649b3b8
)
2008-01-08 10:51:40 +01:00
Michael Adam
50ee744fa4
Remove redundant parameter fd from SMB_VFS_FGETXATTR().
...
Michael
(This used to be commit 2cb739a82d
)
2008-01-08 10:00:47 +01:00
Michael Adam
5921607f26
Remove redundant parameter fd from SMB_VFS_SYS_ACL_SET_FD().
...
Michael
(This used to be commit 9296e93588
)
2008-01-08 01:54:19 +01:00
Michael Adam
b2182c11ea
Remove redundant parameter fd from SMB_VFS_FCHMOD_ACL().
...
Michael
(This used to be commit 7b201c177b
)
2008-01-08 01:14:24 +01:00
Michael Adam
62e9d503d8
Remove redundant parameter fd from SMB_VFS_SYS_ACL_GET_FD().
...
Michael
(This used to be commit 42663e8736
)
2008-01-07 23:54:07 +01:00
Michael Adam
f7bf4cb3f1
Remove redundant parameter fd from SMB_VFS_GETLOCK().
...
Michael
(This used to be commit ee5a20becd
)
2008-01-07 22:18:50 +01:00
Michael Adam
26169410cd
Remove redundant parameter fd from SMB_VFS_LINUX_SETLEASE().
...
Michael
(This used to be commit 8880eb82f1
)
2008-01-07 21:47:56 +01:00
Michael Adam
327cc04da5
Remove redundant parameter fd from SMB_VFS_KERNEL_FLOCK().
...
Michael
(This used to be commit 195c519377
)
2008-01-07 17:14:20 +01:00
Michael Adam
edd30e716f
Remove redundant parameter fd from SMB_VFS_LOCK().
...
Michael
(This used to be commit 4f3ab2c406
)
2008-01-07 16:38:23 +01:00
Michael Adam
b457b94bb8
Remove redundant parameter fd from SMB_VFS_FTRUNCATE().
...
Michael
(This used to be commit 2ad66050a0
)
2008-01-07 15:59:02 +01:00
Michael Adam
670909cb07
Remove redundant parameter fd from SMB_VFS_FCHOWN().
...
Michael
(This used to be commit fbb193db3e
)
2008-01-07 15:59:02 +01:00
Michael Adam
e614dec27f
Remove redundant parameter fd from SMB_VFS_FCHMOD().
...
Michael
(This used to be commit a54d5604da
)
2008-01-07 15:59:02 +01:00
Michael Adam
87a684f7fc
Remove redundant parameter fd from SMB_VFS_FSTAT().
...
Michael
(This used to be commit 0b86c420be
)
2008-01-07 15:59:01 +01:00
Michael Adam
8dcce0d236
Remove redundant parameter fd from SMB_VFS_FSYNC().
...
Michael
(This used to be commit 8f83c9a7b2
)
2008-01-07 15:59:01 +01:00
Michael Adam
6f657c873e
Remove redundant parameter fd from SMB_VFS_LSEEK().
...
Michael
(This used to be commit df929796f2
)
2008-01-07 15:59:01 +01:00
Michael Adam
a56b417809
Remove redundant parameter fd from SMB_VFS_PWRITE().
...
Michael
(This used to be commit 8c4901a19a
)
2008-01-07 15:59:01 +01:00
Michael Adam
ca275e2549
Remove unneeded parameter fd from SMB_VFS_PREAD().
...
Michael
(This used to be commit 73e28806ce
)
2008-01-07 00:14:19 +01:00
Michael Adam
05352cf2cb
Remove superfluous parameter fd from SMB_VFS_FSET_NT_ACL().
...
Michael
(This used to be commit 4f2d139a18
)
2008-01-06 23:08:00 +01:00
Michael Adam
ee24c629a6
Remove superfluous fd parameter from SMB_VFS_FGET_NT_ACL().
...
Michael
(This used to be commit c0c7c1223d
)
2008-01-06 23:07:59 +01:00
Michael Adam
233eb0e560
Change the prototype of the vfs function get_nt_acl().
...
Up to now, get_nt_acl() took a files_struct pointer (fsp) and
a file name. All the underlying functions should need and now
do need (after the previous preparatory work), is a connection_struct
and a file name. The connection_struct is already there in the
vfs_handle passed to the vfs functions. So the files_struct
argument can be eliminated.
This eliminates the need of calling open_file_stat in a couple
of places to produce the fsp needed.
Michael
(This used to be commit b5f600fab5
)
2007-12-19 23:08:01 +01:00
Jeremy Allison
ec7426d917
Fix warning message about data type always true.
...
Jeremy.
(This used to be commit 0a3be0aad7
)
2007-12-11 15:10:37 -08:00