1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

551 Commits

Author SHA1 Message Date
Jelmer Vernooij
69b51f702a r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacement
for REQUIRED_SUBSYSTEMS.
(This used to be commit adc8a019b6da256f104abed1b82bfde6998a2ac9)
2007-10-10 14:04:18 -05:00
James Peach
cdae64b18c r15189: Add parentheses to force ISDOt and ISDOTDOT evaluation order. Fix typo
that made the BASE-DIR2 test fail.
(This used to be commit dcebc59a987b3c0d8379912d0451dedb9e895451)
2007-10-10 14:04:15 -05:00
James Peach
7baa8a13aa r15188: Restore svn rev. 15183, 15184 and 15185, which I inadvertantly clobbered
in r15186. I don't think I should be allowed to use quilt and svn at the
same time any more :(
(This used to be commit e0ca5ead27743c84f5d9310a05d6d718862ead1d)
2007-10-10 14:04:14 -05:00
James Peach
6ab33938d5 r15186: Introduce ISDOT and ISDOTDOT macros for testing whether a filename is
"." for "..". These express the intention better that strcmp or strequal
and improve searchability via cscope/ctags.
(This used to be commit 7e4ad7e8e5ec266b969e3075c4ad7f021571f24e)
2007-10-10 14:04:14 -05:00
James Peach
f380d365ea r15185: Force all NTVFS modules to provide a critical sizes structure so
the version information can be checked when modules are registered.
(This used to be commit 95eb55806339fc5409c0adf137ebd5bffd7098ac)
2007-10-10 14:04:14 -05:00
James Peach
419e6d1112 r15184: Declare ntvfs_register with a typed ops pointer.
(This used to be commit bf946e6d6d3de1384588a687e15e030f3b1806f0)
2007-10-10 14:04:14 -05:00
James Peach
073587abac r15183: Hoist the critical sizes initialiser into a header so that modules
can have standard access to critical sizes. Add a convenience function
to determine whether two critical sizes differ.
(This used to be commit 7ced96d2d348701734cc4cdf3f8899dbce8cd0f7)
2007-10-10 14:04:13 -05:00
Stefan Metzmacher
44ba105503 r15118: - do access checks also when the owner and group are not changed
- only call chown/fchown when we want to change something

metze
(This used to be commit 46b3096d938331a2339a876649bc6cbfec883cb2)
2007-10-10 14:04:10 -05:00
Stefan Metzmacher
dd894d5626 r15117: add more comments
metze
(This used to be commit d76f3e2fb61317633876afc90c1cea1130e58dea)
2007-10-10 14:04:09 -05:00
Stefan Metzmacher
8302b889b4 r15078: add TODO about setting the full ACL with an NTTRANS_CREATE
metze
(This used to be commit bd2c899d83615066fbd1332495a4610eeea8f8ee)
2007-10-10 14:04:07 -05:00
Stefan Metzmacher
732027b87a r15071: fix typo
metze
(This used to be commit fde8922947551f5f7d50607c5c83feba062138c8)
2007-10-10 14:04:06 -05:00
Stefan Metzmacher
0dd63e0432 r15069: - don't crash on a NULL acl
- add the correct access checks for changing sd->group and sd->dacl

metze
(This used to be commit 2a61f65cd4084bf690caccf87efaf46551a13aee)
2007-10-10 14:04:06 -05:00
Stefan Metzmacher
f347be4c73 r15057: fix access masks for getting and setting security_descriptors
I'll add some torture tests later...

metze
(This used to be commit ce045f4df37b6740f2bf849fd06ab51c682ea0b7)
2007-10-10 14:04:04 -05:00
Stefan Metzmacher
e91394cecc r15056: w2k3 gives NT_STATUS_ACCESS_DENIED instead of NT_STATUS_ACCESS_VIOLATION
metze
(This used to be commit 5c1d96b36f14538360d90afc76ddba59d4feee1b)
2007-10-10 14:04:04 -05:00
Andrew Tridgell
289911bb4e r15048: started on the server side implementation of oplocks. The code is not
functional yet, I'm committing so it doesn't diverge too much from
other peoples work. It is disabled by default.
(This used to be commit ba0b8a218dfe1ef6cdf7de724fb30650301369dd)
2007-10-10 14:04:03 -05:00
Andrew Tridgell
3979da11a4 r15029: fixed the detection of inotify
(This used to be commit 5471b4b1a812dad3c97c97b938bd2dc41ae32420)
2007-10-10 14:04:02 -05:00
Tim Potter
bfa8d64909 r15017: When making up our own inotify functions, make sure glibc exports the
__NR_inotify_* syscall numbers before trying.
(This used to be commit 5e79adda7c7e00c194efd1a5e57671f7bd34fe50)
2007-10-10 14:04:01 -05:00
Jelmer Vernooij
fd4a8ad8c3 r14993: Make subsystems again
(This used to be commit d55b040bd280c86423f2a620dfc0341accb23cc4)
2007-10-10 14:00:52 -05:00
Stefan Metzmacher
5d221987c7 r14990: talloc_reference() can fail
metze
(This used to be commit 4410d7ea5d356f9a04f419f7254a60c20b1345c0)
2007-10-10 14:00:51 -05:00
Stefan Metzmacher
7672505c72 r14966: make more functions _PUBLIC_
metze
(This used to be commit 193f7da254cce40ab30fda9e99b8cd07e0b0a0a8)
2007-10-10 14:00:47 -05:00
Stefan Metzmacher
2e894625e7 r14964: - move sidmap code from ntvfs_common to SAMDB
- make ntvfs_common a library
- create sys_notify library

metze
(This used to be commit a3e1d56cf7b688c515f5d6d4d43e0b24c2261d15)
2007-10-10 14:00:47 -05:00
Andrew Tridgell
5b1a495e96 r14963: check talloc returns
(This used to be commit dd928e84ece04d35144befeda7a9b9dd597e4cf7)
2007-10-10 14:00:47 -05:00
Stefan Metzmacher
09eb876ac0 r14961: fix compiler warning
tridge: please add checks after talloc_realloc() and talloc_strdup()!

metze
(This used to be commit c136191870f91d4ce652da535a1cd52f4772574d)
2007-10-10 14:00:46 -05:00
Andrew Tridgell
26c9cd6211 r14960: don't declare variables mid-function
(This used to be commit 4537de9289ce025a240fe46a708434c195138d20)
2007-10-10 14:00:46 -05:00
Andrew Tridgell
cd794e79f9 r14959: allow change notify to be disabled completely using
notify:enable=False
(This used to be commit 2a8f093105f3047a3697f29aadcc9c48c6ac88e1)
2007-10-10 14:00:46 -05:00
Andrew Tridgell
127967334f r14956: change the notify search to be much more efficient by using a
per-depth bisection search. This makes the notify_trigger() call
log(N) which makes us scale well for large numbers of outstanding
notifies
(This used to be commit 16fd00925fdbf77e7a403ad501bf6ea429404c76)
2007-10-10 14:00:45 -05:00
Stefan Metzmacher
317c4b81a5 r14951: - remove unused var 'path'
- fix compiler warning

metze
(This used to be commit 4d7de8b251e006a469adf2793dae422e128844c5)
2007-10-10 14:00:22 -05:00
Andrew Tridgell
b5ee277f1a r14948: add testing of truncate events, and add truncate support to inotify
backend
(This used to be commit b80523a631ec57c7d19e9a23dca4594d71036138)
2007-10-10 14:00:21 -05:00
Andrew Tridgell
2b0537143c r14947: add support for file truncate events
(This used to be commit ed1b90407d8ef6e0216931cb3a89cc9a7789ead2)
2007-10-10 14:00:21 -05:00
Andrew Tridgell
fa91368fb4 r14945: allow the notify backend to be specified per share
(This used to be commit 467027e7730a3bc56f152df7e2ec272905e19584)
2007-10-10 14:00:21 -05:00
Andrew Tridgell
ee2fb760af r14943: bring the inotify backend up to date with all the strange rename
semantics
(This used to be commit 74c274ea072fc45debaafd438ff63321b38a1448)
2007-10-10 14:00:20 -05:00
Andrew Tridgell
4abf299e0c r14941: a rename of a file (but not a directory) triggers 3 events. The first
two are the rename (FROM and TO) then the 3rd event is a modify event
of both attributes and creation time.
(This used to be commit 010a1b14a58c0194e1f8bba29f4d02a86b7559c5)
2007-10-10 14:00:20 -05:00
Stefan Metzmacher
115acb5dd0 r14939: don't use a void pointer
metze
(This used to be commit 03906b2b13c000ad9683f6bb1e336075655e1367)
2007-10-10 14:00:20 -05:00
Andrew Tridgell
e54abee4e1 r14933: fix the handling of notify filters to be much closer to the behaviour
of w2k3. The behaviour is particularly tricky for rename.
(This used to be commit 4d3b8d95498a328ffc08ecb62d9531b6bfe4e2b5)
2007-10-10 14:00:19 -05:00
Andrew Tridgell
fe071da009 r14932: ensure that we send a NOTIFY_ACTION_OLD_NAME and
NOTIFY_ACTION_NEW_NAME together to the client.
(This used to be commit d58011b0f35c3299f35ba9d72a7b9b9b17253511)
2007-10-10 14:00:18 -05:00
Andrew Tridgell
e221db7a39 r14928: demonstrate that the completion filter is only set on the first notify
on a directory handle
(This used to be commit b6e40d9b0832fbab662f9289a30c26e2576b4821)
2007-10-10 14:00:18 -05:00
Andrew Tridgell
1dee94c333 r14926: change the inotify backend to implement the rather unusual semantics
for rename. The cookies in inotify tell us (indirectly!) if its a
rename between directories or not
(This used to be commit 13574a8d0c7228bf36a6debe4853f693c9f8f543)
2007-10-10 14:00:17 -05:00
Andrew Tridgell
930e247d56 r14925: trigger NOTIFY_ACTION_OLD_NAME and NOTIFY_ACTION_NEW_NAME events for
renames, if in the same directory. For renames between directories
generate NOTIFY_ACTION_REMOVED and NOTIFY_ACTION_ADDED
(This used to be commit 2ac248edf05c3ee715165f2b33055de480743e87)
2007-10-10 14:00:17 -05:00
Andrew Tridgell
22c1c78b1d r14924: when handling recursive change notify, the client expects a windows
path name back
(This used to be commit ceb85d12f7efb002af7a271f999e22f94b8536fb)
2007-10-10 14:00:17 -05:00
Andrew Tridgell
416d7b4210 r14920: allow a notify backend to separately specify if it has handled the
given mask for the current directory and sub-directories. This allows
us to setup the less efficient internal handling for subdirectories,
while using the kernel inotify service for the current directory if
available. It also allows inotify to handle only some of the filter
bits, leaving the other filter bits for the user space handler.
(This used to be commit 7c3d989fa44c7f57853a825337159f476d7dff80)
2007-10-10 14:00:17 -05:00
Andrew Tridgell
a9cb173f76 r14918: cleaner handling of systems without inotify
(This used to be commit cf17ff15b15942f0ce068dd0a94b3b565a9b93cb)
2007-10-10 14:00:16 -05:00
Stefan Metzmacher
770edafbf2 r14912: don't crash if inotify isn't present...
metze
(This used to be commit 953aa7887b310117a05a59291f3770a9beb5e1eb)
2007-10-10 14:00:15 -05:00
Andrew Tridgell
6d98076c15 r14877: added support for the kernel inotify mechanism. This passes basic
tests, but still needs some more work to ensure we correctly cope with
events that may generate both a system inotify event and a internal
notify event. The system inotify events won't handle recursion, and
don't understand things like streams.

This also adds the ntvfs/sysdep/ directory, which is meant for system
dependent code that is not tied to a particular ntvfs backend. The
inotify code is a good example of that.
(This used to be commit eadadbb44adb3c4081d6ff1d85a9b850a0227059)
2007-10-10 14:00:11 -05:00
Stefan Metzmacher
1af925f394 r14860: create libcli/security/security.h
metze
(This used to be commit 9ec706238c173992dc938d537bdf1103bf519dbf)
2007-10-10 13:59:44 -05:00
Andrew Tridgell
05c53f70f0 r14838: fix the build. Looks like I still haven't quite got the hang of the
new dependency/proto system :-)
(This used to be commit 63ae3f21e3471895ba83df1c2fdc4147090f7fdb)
2007-10-10 13:59:25 -05:00
Andrew Tridgell
07372df2fa r14835: split out the config rules for the ntvfs/common/ directory
(This used to be commit 33495d19cf0263f6df5ec935f51c68bde84b1d01)
2007-10-10 13:59:24 -05:00
Stefan Metzmacher
96b5dd789b r14822: if we use the snum used by the lp_* functions instead of the wire TID,
then don't use tid as name...

metze
(This used to be commit d41d48caf209fec9f5f04d38d75277b1cfeed22f)
2007-10-10 13:59:24 -05:00
Andrew Tridgell
be0a00726f r14808: added notify_trigger() calls for rename and setfileinfo calls
(This used to be commit adb4ea32e2d5506cb213ea4c0715918042fba084)
2007-10-10 13:59:22 -05:00
Andrew Tridgell
6942d1d62c r14805: use tdb_lock_bystring() to prevent race conditions in notify add/remove
(This used to be commit a6be44f78ca2eaecbf0b6d8598addba5a11ae966)
2007-10-10 13:59:21 -05:00
Andrew Tridgell
aec7f3ae72 r14803: copy with the root directory, which has /. on the end of the path
(This used to be commit 16742cd28621d205f21c855e5635be1dfc3f2b69)
2007-10-10 13:59:21 -05:00