Jeremy Allison
54eaf2de74
Get closer to passing S4 RAW-ACLs.
...
Jeremy.
2008-10-31 18:04:53 -07:00
Jeremy Allison
8344e94574
Unify se_access_check with the S4 code. Will make
...
calculation of SEC_FLAG_MAXIMUM_ALLOWED much easier
for files.
Jeremy.
2008-10-31 10:51:45 -07:00
Jeremy Allison
8c1a90c2e3
Start moving us closer to passing S4 RAW-ACL test using the vfs_acl_xattr module. Inheritance fails at the moment though.
...
Jeremy.
2008-10-30 16:13:03 -07:00
Jeremy Allison
782f309df3
Inherit Windows ACLs on a new directory.
...
Jeremy.
2008-10-30 13:51:28 -07:00
Jeremy Allison
680975d07b
Fix CID 606 - failed to return -1 after socket() fail.
...
Jeremy.
2008-10-29 16:43:19 -07:00
Jeremy Allison
7c53ffea28
Allow a new file to inherit the Windows ACL from its parent.
...
Now to do the same for directories.
Jeremy.
2008-10-29 13:27:14 -07:00
Jelmer Vernooij
0c840bd8d2
Share xattr implementation.
2008-10-15 15:57:39 +02:00
Jelmer Vernooij
4746f79d50
Use {u,}int64_t instead of SMB_BIG_{U,}INT.
2008-10-14 01:59:36 +02:00
Jeremy Allison
2a2f9400bf
Whitespace tidyup and an optimization to remove a talloc.
...
Jeremy.
2008-10-13 14:12:43 -07:00
Holger Hetterich
3e1d6c6020
Enable optional anonymization of user names,
...
if the configuration parameter anonymization_prefix is defined in
smb.conf, and use the prefix given there.
2008-10-13 14:08:49 -07:00
Jeremy Allison
e5692d4cbe
Remove SEC_ACCESS. It's a uint32_t.
...
Jeremy.
2008-10-09 09:49:03 -07:00
Volker Lendecke
45b359a77f
Make use of ZERO_STRUCT (the first memset was actually wrong)
2008-10-09 17:34:52 +02:00
Tim Prouty
88a58ae0ee
Fixed "might be uninitialized" warning
2008-10-08 16:38:38 -07:00
Jeremy Allison
646df8bec6
Deal with inheritance from parent directory when setting Windows
...
ACLs.
Jeremy.
2008-10-08 15:18:25 -07:00
Jeremy Allison
859facda89
Fix const warning.
...
Jeremy.
2008-10-07 17:56:32 -07: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
2024d87cf5
Make map_errno_from_nt_status() a generic call, not just a cli specific one.
...
Remove some unused calls from vfs_acl_xattr. Test for SD's on existing files.
Jeremy.
2008-10-07 14:43:42 -07:00
Tim Prouty
cde1b09d68
Fixed build warning "passing arg from incompatible pointer type"
...
The fix explicitly makes the conversion from timeval to time_t using the
existing time utility functions.
Compiling modules/vfs_smb_traffic_analyzer.c
modules/vfs_smb_traffic_analyzer.c: In function `smb_traffic_analyzer_send_data':
modules/vfs_smb_traffic_analyzer.c:173: warning: passing arg 1 of `localtime' from incompatible pointer type
2008-10-06 17:18:10 -07:00
Jeremy Allison
370cbe0060
Turn the socket connections into a refcounted list - in the common case there'll now only be one socket per smbd.
...
Changed the format of the wire data to (a) include a version number (V1) as the first element. (b) removed the
";)" at the end an replaced it with a "\n". Receiver can change back if needed, and now receiver can just log
"as-is" to a text file (making testing easier). Added my (C). Sorry Holger, but I've changed quite a bit now.
Jeremy.
2008-10-01 12:50:29 -07:00
Jeremy Allison
c164ff2be5
Convert to allocated strings. Use write_data(), not send as this doesn't correctly
...
deal with EINTR. Jim and Holger please check this still works.
Jeremy.
2008-09-30 16:19:37 -07:00
Jeremy Allison
5d7d18b7e8
Revert erroneous commit.
...
Jeremy.
2008-09-30 15:26:26 -07:00
Jeremy Allison
4e6445a072
Remove current_user_info - not needed.
...
Jeremy.
2008-09-30 15:21:58 -07:00
Jeremy Allison
321191d5e2
Restructure the module so it connects to the remote data sink
...
on connect, and closes the socket on client disconnect. This should
make it much more efficient. Store the remote fd in a private data
pointer off the handle. Finally we need to remove the fstrings and
convert to allocated buffer storage.
Jeremy.
2008-09-30 15:13:19 -07:00
Jeremy Allison
da6c7aa2a1
Use IPv4/v6 independent calls. Change safe_strcpy/cat to strlcpy/cat (this
...
needs changing to talloc_sprintf) and fix file descriptor resource leaks
in error paths. Jim and Holger please check !
Jeremy.
2008-09-25 12:02:22 -07:00
Jim McDonough
a78ac8a46b
Fix the new vfs_smb_traffic_analyzer build for static links
2008-09-24 20:51:04 -04:00
Holger Hetterich
964fb9f249
SMB traffic analyzer vfs module from Holger Hetterich <hhetter@novell.com>
...
Used to gather data to feed to a database for live and historical
analysis of usage per user, per share, etc.
Helper apps to read the data still to come. This one still needs to be
made ipv6 enabled (connection is made to the helper app).
2008-09-24 19:16:57 -04:00
Günther Deschner
fd3ba988dc
s3-nbt: fix remaining callers of ndr_push/pull_struct_blob.
...
Guenther
2008-09-23 09:49:56 +02:00
Jeremy Allison
0379d9c151
Correctly get+set the NT ACL on a file. Now to make us check it on open..
...
Jeremy.
2008-09-17 13:44:29 -07:00
Jeremy Allison
21ca0c31b9
Mark module experimental, fix crash bugs.
...
Jeremy.
2008-09-17 12:34:09 -07:00
Jeremy Allison
5cc096a109
First (incomplete) cut of this module. Based on Volker's original work.
...
Jeremy.
2008-09-16 15:55:06 -07:00
Volker Lendecke
d4b41079cb
When setting an NFSv4 ACL, map generic bits
...
(This used to be commit dbe7a61be2 )
2008-09-08 16:53:54 +02:00
Andrew Tridgell
52c39dd55d
fixed an errno handling bug that could lead to an infinite loop
...
(This used to be commit 5ccdc58ce9 )
2008-08-26 14:39:42 +02:00
Andrew Tridgell
f09e8ce2ce
fixed tsmsm_sendfile(). The logic was totally broken.
...
(This used to be commit 794e48b809 )
2008-08-26 14:39:42 +02: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
Michael Adam
762439025a
Revert "Add a gpfs_prefetch module"
...
This reverts commit fc9b30bed2 .
Sorry, this got pushed by accident:
"This can not go upstream yet because it uses the non-GPL libgpfs."
Michael
(This used to be commit 26a3cf0be9 )
2008-08-14 17:46:28 +02:00
Michael Adam
4136ab3c98
Put prototypes of modules/vfs_irixacl.c to new modules/vfs_irixacl.h.
...
Thereby (hopefully) fixing the potential build problems with IRIX acls.
Michael
(This used to be commit 61c201d416 )
2008-08-14 11:22:49 +02:00
Michael Adam
34294b31aa
Put prototypes of modules/vfs_hpuxacl.c to new modules/vfs_hpuxacl.h.
...
Thereby (hopefully) fixing the potential build problems with HPUX acls.
Michael
(This used to be commit 4f2a1de990 )
2008-08-14 11:22:48 +02:00
Michael Adam
1c72d476ec
Put prototypes of modules/vfs_solarisacl.c to new modules/vfs_solarisacl.h.
...
Thereby (hopefully) fixing the potential build problems with solaris acls.
Michael
(This used to be commit 8413c05afc )
2008-08-14 11:22:48 +02:00
Michael Adam
14fd4ac3ea
Put prototypes of modules/vfs_tru64acl.c to new modules/vfs_tru64acl.h.
...
Thereby (hopefully) fixing the build with tru64 acls.
Michael
(This used to be commit 1ab64b6985 )
2008-08-14 11:22:48 +02:00
Michael Adam
7871fa0b69
Put prototypes of modules/vfs_posixacl.c into new modules/vfs_posixacl.h.
...
Michael
(This used to be commit 876f679343 )
2008-08-14 11:22:48 +02:00
Volker Lendecke
b0935e5663
Add a gpfs_prefetch module
...
This can not go upstream yet because it uses the non-GPL libgpfs. So it will
not be compiled by default and will not be included in the SOFS RPMs. But upon
Sven's request, we include it in the git tree and the source RPMs, so that it
can be built for in-house tests.
(This used to be commit fc9b30bed2 )
2008-08-13 11:54:05 +02:00
Andrew Tridgell
d609ccbab5
keep compatibility with v3-0-ctdb name for fileid:mapping option
...
(This used to be commit 2856d2e4a4 )
2008-08-13 11:54:01 +02:00
Volker Lendecke
bdd815e554
Fix the build of vfs_zfsacl.c
...
(cherry picked from commit b83beeda44 )
(This used to be commit b46ce28039 )
2008-07-18 17:53:58 +02:00
Volker Lendecke
c1636e7383
Change the directory parameter in streams_depot to become consistent
...
This is not built by default and not documented in 3.2.0, so I doubt this will
break any setups :-)
(cherry picked from commit ca2dfb372c )
(This used to be commit 9393cdda97 )
2008-07-18 11:21:57 +02:00
Jeremy Allison
4d1979423e
Fix from Volodymyr Khomenko <Volodymyr.Khomenko@exanet.com>. Make ntimes
...
function more like POSIX and allow NULL arg. Help vfs developers.
Jeremy.
(This used to be commit 613f2849ad )
2008-07-15 15:26:36 -07:00
Volker Lendecke
a74f451a86
Remove an unused extern reference in vfs_aixacl2.c
...
(This used to be commit 1dfb9242d1 )
2008-07-12 10:16:09 +02:00
Volker Lendecke
e9489e9ff6
Fix the build of nfs4_acls.c
...
(This used to be commit 2abb7cd867 )
2008-07-11 13:03:42 +02: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
39479c9ee6
Remove current_user_info reference from vfs_recycle.c
...
(This used to be commit fdc03c0a5b )
2008-06-19 15:53:43 +02:00