Andrew Tridgell
b1b58a1dcf
use glibc sys/inotify.h header
...
when we first added the inotify code glibc didn't have the inotify
functions yet. Now that it does we can use the official header and
avoid the asm/unistd.h syscall workaround
2008-10-30 15:53:46 +11:00
Stefan Metzmacher
b99926ca5e
s4: ntvfs/posix: to set a DACL at open time SEC_DESC_DACL_PRESENT must be set
...
metze
2008-10-28 17:13:21 +01:00
Jelmer Vernooij
23302413b3
Remove unused include param/param.h.
2008-10-24 16:37:56 +02:00
Jelmer Vernooij
c3415b3e57
Add version of next_codepoint without iconv_convenience.
2008-10-24 16:00:43 +02:00
Jelmer Vernooij
284f523ec7
Remove a few more usages of global_loadparm.
2008-10-24 13:22:12 +02:00
Jelmer Vernooij
8b06312f7e
Eliminate another instance of global_loadparm.
2008-10-24 13:13:27 +02:00
Jelmer Vernooij
922a29992e
Remove iconv_convenience parameter from simple string push/pull
...
functions.
2008-10-24 03:40:09 +02:00
Jelmer Vernooij
7ec58471df
Split up codepoints code, use consistent _m suffix.
2008-10-24 02:51:03 +02:00
Jelmer Vernooij
87ec1d2532
Make sure prototypes are always included, make some functions static and
...
remove some unused functions.
2008-10-20 18:59:51 +02:00
Jelmer Vernooij
aaa3e0425d
Fix includes.
2008-10-15 02:52:10 +02:00
Jelmer Vernooij
0d99e58f27
Fix include paths for files that aren't compiled - breaks dependency
...
file generation.
2008-10-12 04:41:53 +02:00
Jelmer Vernooij
9565999755
Fix include paths to new location of libutil.
2008-10-11 21:31:42 +02:00
Jelmer Vernooij
181ee01da6
Pass session options around; saves another use of global_loadparm.
2008-09-30 02:47:19 +02:00
Andrew Tridgell
d2bdb8fb16
empty access mask is only denied on SMB2
2008-09-24 18:10:23 -07:00
Andrew Tridgell
d3c6c71ff2
zero access mask should give ACCESS_DENIED
2008-09-24 18:10:23 -07:00
Andrew Tridgell
f4e212323f
added some debug code
2008-09-23 12:09:56 +10:00
Jelmer Vernooij
8ec93160d5
Fix last few includes to use new tdb location.
2008-09-16 16:09:50 +02:00
Stefan Metzmacher
548ed8d958
ntvfs_generic: fix handling of create_options for SMB2
...
metze
(This used to be commit cbd585d2a1e179615eba773cb07385524369c686)
2008-08-14 13:13:51 +02:00
Stefan Metzmacher
cc60d5a032
pvfs: fix handling of create_option flags
...
metze
(This used to be commit 3c6cadf76861d6522c5ec41953df1ba2fac4910d)
2008-08-14 13:13:51 +02:00
Andrew Tridgell
2ecda9fde4
we can't query the ACL on a new file till it exists!
...
(This used to be commit 4f6646f06988b1fb8be9e0c8ae833bb9792184af)
2008-07-24 14:21:52 +10:00
Andrew Tridgell
1d12c64066
fixed spelling error
...
(This used to be commit 341f64834e13cdbc7d4742a4652ae39b70a4231f)
2008-07-24 14:19:49 +10:00
Andrew Bartlett
853194c308
More 'must be ignored' options from the MS-SMB doc.
...
Also in particular the 'sync' flags (which Samba has traditionally
ignored).
Thanks to Olivier Salamin <olivier.salamin@gmail.com> for pointing out
more flags that needed to be handled.
Andrew Bartlett
(This used to be commit 370bb39cd79fe49efd36a1ceb3e896d386e6d3ce)
2008-07-18 18:40:19 +10:00
Andrew Bartlett
e92125e631
Ignore and handle more NT Create & X options.
...
The MS-SMB document explains that some of these options should be
ignored. The test proves it.
/* Must be ignored by the server, per MS-SMB 2.2.8 */
/* Must be ignored by the server, per MS-SMB 2.2.8 */
If we implement HSM in samba4 (likely) we should honour this bit.
/* Don't pull this file off tape in a HSM system */
Andrew Bartlett
(This used to be commit 502739ff90d56d2c9aabe8e224317f6ceb175c17)
2008-07-16 14:00:18 +10:00
Stefan Metzmacher
98014c5668
pvfs: create a pvfs_acl subsystem
...
That means that the pvfs_acl implementations no longer register
as ntvfs modules (which was wrong)
metze
(This used to be commit 89e90556ec57fce24faf0ed3d6fe262edd974b28)
2008-06-28 10:30:25 +02:00
Stefan Metzmacher
c9d2570ce3
pvfs: pvfs_aio should be a subsystem instead of an extra ntvfs module
...
metze
(This used to be commit c904e28bef95cb0d61bf86f2ba1cef2d4e018d5f)
2008-06-28 10:30:18 +02:00
Andrew Tridgell
70219bee13
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
...
(This used to be commit 9d74201e462f2f95ed5bd91200681db3bd2a9277)
2008-06-03 15:11:42 -07:00
Stefan Metzmacher
b800af662c
pvfs: use utimes() instead of utime() to get better timestamp resolution
...
Note: that libreplace always provides utimes()
metze
(This used to be commit 61bad69e2d7f84e2c6d6fb82917cfa86b17f54b0)
2008-06-03 14:05:04 +02:00
Stefan Metzmacher
6e52c4feb8
pvfs_close: correctly handle the write time updates passed by close()
...
metze
(This used to be commit 7f033ce4fb6fc897f8159926d5a6d2e45dd447b6)
2008-06-03 14:03:52 +02:00
Stefan Metzmacher
60759b64a7
pvfs: correctly set the write time in the handle destructor
...
metze
(This used to be commit 58c118ab4d2b76c4ea68d79b711b81900634f767)
2008-06-03 14:03:51 +02:00
Stefan Metzmacher
d1bb49a2ab
pvfs_setfileinfo: update the write time in the opendb
...
metze
(This used to be commit 418e2592b48d558ff1d32031d64263ae21cf1eb0)
2008-06-03 14:03:51 +02:00
Stefan Metzmacher
ad19d5455e
pvfs: trigger a write time update 2 seconds after the first write
...
metze
(This used to be commit c8e15d4c185f18322a882aa908939fa9d0e341a0)
2008-06-03 14:03:50 +02:00
Stefan Metzmacher
47b54c7680
pvfs: add posix:writetimeupdatedelay option
...
metze
(This used to be commit c3ba19ca62affced96b927fcbe63cf5d075aed22)
2008-06-03 14:03:50 +02:00
Stefan Metzmacher
c43591c216
pvfs: add PVFS_RESOLVE_NO_OPENDB flag and get the write time from the opendb
...
By default get the current write time from the opendb,
but allow callers to pass PVFS_RESOLVE_NO_OPENDB
for performance reasons, if they don't need to the write time.
metze
(This used to be commit def52cc0988c26a815e74b3391e5857512408d90)
2008-06-03 14:03:50 +02:00
Stefan Metzmacher
0827b08a43
opendb: add write time handling
...
metze
(This used to be commit 3868d8ce630c71e2c70aae442fcdbd68ba1eb708)
2008-06-03 14:03:49 +02:00
Andrew Tridgell
538f624fe0
it is not valid to set a UNLOCK flag on a lock request
...
(This used to be commit 63f315572969e7fc52bdc7c0b38eaaee736d5e2a)
2008-06-03 09:36:02 +10:00
Andrew Tridgell
405e64c437
more updates for new info levels
...
(This used to be commit 85d1873ee92fcc7df3addc42ddb8189144901f8b)
2008-06-02 11:05:06 +10:00
Andrew Tridgell
8da3217d1b
smbpid is 32 bit, and update SMB2 locking per MS-SMB2
...
The UNLOCK bit is only used from the first lock structure
(This used to be commit 9483b7c137b61d3029a1e1e7d8d8d0723b541129)
2008-06-02 11:04:13 +10:00
Andrew Tridgell
1bdd08227e
smbpid needs to be 32 bit now to cope with SMB2
...
(This used to be commit a2854fd6eaf097b5a9a562e0b8f1a599485fec42)
2008-06-02 11:03:19 +10:00
Andrew Tridgell
beaa01e403
implemented client side SMB2 signing
...
This doessn't work against Windows yet, and I've submitted a WSPP
request for clarification of the docs to try and find out
why. Meanwhile this is no worse than what we had, as it only gets used
when the server demands signing, and we didn't work then anyway.
(This used to be commit b788096add3586d7277efcd3bf5ca7f3a604cb7a)
2008-05-30 17:03:54 +10:00
Andrew Tridgell
b33dba845e
don't emulate broken SMB2 locking behaviour from windows
...
(This used to be commit c50e7a15f9a7f2c5821b5ee468f9ade6eaa0ed55)
2008-05-30 07:28:29 +10:00
Andrew Tridgell
f0bc7c07fe
don't mask out SEC_FILE_READ_ATTRIBUTE on SMB2
...
(This used to be commit 1dfa50a48040bdc1166be2dbe1063fd8a79166f8)
2008-05-29 22:22:42 +10:00
Andrew Tridgell
383d10577c
fixed the error code for bad SMB2 ioctls
...
(This used to be commit b1d2d388ecff96dfcc17da24796f36c40cbb3eed)
2008-05-29 20:46:18 +10:00
Andrew Tridgell
c86dc11be6
added support for returning the maximal access MXAC tag in SMB2 create
...
(This used to be commit 4eb49335d5f0319f9aa47ded5215a2977d3336bf)
2008-05-29 19:16:26 +10:00
Andrew Tridgell
21d770a02c
querying the ACCESS_INFORMATION is always allowed
...
(This used to be commit 25d5b94d6a700f2d294e108aeca85cffcd5bbb4f)
2008-05-29 18:23:33 +10:00
Andrew Tridgell
e42ded24a0
SEC_FILE_READ_ATTRIBUTE is only automatically granted on SMB, not SMB2
...
(This used to be commit 7bff0691428ed3f75c1a9cbaae692bc9830640e6)
2008-05-29 18:23:20 +10:00
Andrew Tridgell
67226f054b
fixed create_action for truncated files
...
(This used to be commit 884c32fcef48244bd260026a61790332bd706eb4)
2008-05-28 22:44:20 +10:00
Andrew Tridgell
86d69fd4b6
SMB2 doesn't have NAME_INFORMATION level
...
(This used to be commit a431d51b113c2e214ccfe7a678ba0a565b020263)
2008-05-28 21:48:40 +10:00
Andrew Tridgell
fa0bc441e3
don't allow a file to be changed to a directory with setfileinfo
...
(This used to be commit ad7acbf8bf83c7250dfcbd57f0f4e19e57534a92)
2008-05-28 20:06:04 +10:00
Andrew Tridgell
6b70726305
implement the documented SMB2 create blobs in the server
...
Not all of them are honoured yet, but they are all parsed and the ones
that have SMB equivalents are honoured
(This used to be commit 9fc70e2ed6a54f6d9a0530f4d37c0f8acadb6778)
2008-05-28 16:28:37 +10:00
Andrew Tridgell
275e057bea
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
...
(This used to be commit ecb0e5477aa63180daade5c597e7ac2aebfc1e15)
2008-05-28 12:07:20 +10:00