1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

1387 Commits

Author SHA1 Message Date
cvs2svn Import User
9a5541595f This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'. 0001-01-01 00:00:00 +00:00
Andrew Bartlett
760c0740ca Kill of Get_Pwnam_Modify and smb_getpwnam(). The latter assumes some things
that just don't apply any more - now that we always keep username and domain
seperate.  Also, the policy it was trying to permit is now implemented by the
auth code.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Jeremy Allison
cfd1bf250b Merge of "profile acls" code.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
f4845b0213 Merge back Richard's FreeBSD sendfile fixes.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
91e41ebe97 HPUX sendfile is now detected correctly.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
a7781f91d8 Never, *ever* hold a mutex lock in the message database where there may
be traversals being attempted. Yes, this was from bitter experience (and
an out of control server :-). Also allow callers to break out of a tdb_chainlock
with sigalarm if desired.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
5881f0a226 Actually use sendfile if selected.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
f956a4d29d Attempt to make broken Linux sendfile work.... Still in progress.
Jeremy.
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
dc3c14fc2b Put unixsocket calls between #ifdef HAVE_UNIXSOCKET's - required for Stratus VOS
(Double checked)
0001-01-01 00:00:00 +00:00
Jeremy Allison
7e2f9769c9 Use HAVE_SENDFILE64, not SENDFILE64.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
872dfd87cd Added fix for broken Linux (no sendfile64). When offset + count > 2GB
then return ENOSYS and let the upper layer handle it.
Jeremy
0001-01-01 00:00:00 +00:00
Jeremy Allison
9dad88e1d4 Fixed up FreeBSD sendfile code - only Solaris left then I can add the
configure tests...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
d7024e8cb9 HPUX takes offset, not pointer to offset.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
2b33a500a8 Fixup sendfile to match HPUX semantics with signal interrups. This was
fiddly.... :-(.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
fd772ca7b1 First cut at portable sendfile code. Only used in readX at the moment
and doesn't actually call sendfile. Needs to be vectored through the
VFS and tested on all supported platforms (Solaris/HPUX/FreeBSD/Linux).
Linux doesn't actually work (2.4.19 kernel) at the moment because it
doesn't have a 64-bit clean sendfile.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
05a202c287 added gencache implementation from mimir - thanks! 0001-01-01 00:00:00 +00:00
Herb Lewis
43a39e85b6 lowercase global_myname in %L substitution 0001-01-01 00:00:00 +00:00
Simo Sorce
29b4b9a2b5 configure.in:
reflect the new example/VFS/ directory organization

lib/substitue.c:
added helper functions needed by recycle bin
0001-01-01 00:00:00 +00:00
Andrew Bartlett
55ee289f58 As per the 'OK' at CIFS2002, only use the readline headers (and this crasy
#ifdef mess...) in readline.c, we don't need or use them in the rest of Samba.

(This OK was of course conditional on 'if you break it, you better fix it...')

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
601b56e04f patch from metze: add a 'vfs' debug class 0001-01-01 00:00:00 +00:00
Jeremy Allison
aca3337196 Add bcast_msg_flags to connection struct. Allows sender to filter when
sending broadcast messages. Also initial cut-down of printing notify
messages (not yet finished).
Jeremy.
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
8fb4534212 Fix typo - Thanks Kai 0001-01-01 00:00:00 +00:00
Simo Sorce
58f912da47 wrong way to handle things, bug found by kai 0001-01-01 00:00:00 +00:00
Andrew Bartlett
9deada345c Add a bit of 'const' and move a lot of our 'repeditive' DEBUG() statements to
'DEBUGADD', so we don't repeat headers.  (Makes them much easier to read).

(Based on patch by kai)

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Herb Lewis
29a8f21211 based on function prototype, the args were switched - this gave an error
on the IRIX compiler. could whoever put the FIXME message take a look and
see if it is still broken.
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
0ea4bcb6b7 Move samr_make_sam_obj_sd to lib/util_seaccess.c. samtest now compiles and
links successfully!
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
fc29385029 Make debuglevel a string for use with debug classes 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
4b7de5ee23 Put in intermediate version of new SAM system. It's not stable yet, code
might be ugly, etc - please don't blame me for anything but instead try to fix
the code :-). Compiling of the new sam system can be enabled with the
configure option --with-sam

Removing passdb/passgrp.c as it's unused
fix typo in utils/testparm.c
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
b1ab3bec8d Make const 0001-01-01 00:00:00 +00:00
Tim Potter
8f065f788b Some debugs for panic_action. 0001-01-01 00:00:00 +00:00
Simo Sorce
b275547c9e add a trivial seeking function to xfile (tseek) that does not do SEEK_CUR
and add commands reget and reput to smbclient that continues a transfer that has been onterrupted.

thanks to josef Zlomek that did the original patch.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
de1964f7fa Updates!
- Don't print an uninitialised buffer in service.c
- Change some charcnv.c functions to take smb_ucs2_t ** instead of void **
- Update NTLMv2 code to use dynamic buffers
- Update experimental SMB signing code - still more work to do
- Move sys_getgrouplist() to SAFE_FREE() and do a DEBUG() on initgroups()
  failure.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
17096315a0 Try to support non-root-mode systems without getgrouplist().
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
a613dde7ed Clarify function comments 0001-01-01 00:00:00 +00:00
Andrew Bartlett
3e682867bb Patch from mimir to back out idra's attempted DOS mitigation patch.
(It broke port 139 name exchange)

I've been thinking about this, and doing is properly is actually rather
difficult - but I'll try and get somthing in there.  (My worry is what
smb_read_error should be set to, and how that interacts with the rest of
samba).

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Simo Sorce
f76e5b2677 We never checked if the smb packet len is != 0
Should fix a supposed DoS too.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
8fbc964f2f We need to return the value here...
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Tridgell
26fc20187d added smb_xstrndup() 0001-01-01 00:00:00 +00:00
Andrew Tridgell
f458113364 added a useful unistr2 display function 0001-01-01 00:00:00 +00:00
Tim Potter
24fa84bda4 Spelling fixes. 0001-01-01 00:00:00 +00:00
Gerald Carter
ccb02f7cfc fix a few segfaults 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
addf29e676 Patch from Paul Green <Paul.Green@stratus.com> to be more POSIX-compatible 0001-01-01 00:00:00 +00:00
Volker Lendecke
5af5326f13 Fix debug level initialization for net.c
Volker
0001-01-01 00:00:00 +00:00
Jeremy Allison
e53a81261e IFSTEST fixes for open fid, nametoolong.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
ec2c17c56f added a generic print_guid utility, and get the byte order handing
right
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
6e34651591 remove 'admin log' parameter (discussed with Jeremy)
remove 'alternate permissions' parameter (deprecated and not used since 2.0) (discussed with tridge)
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
3928578b52 sync 3.0 branch with head 0001-01-01 00:00:00 +00:00
cvs2svn Import User
6938b5b98a This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'. 0001-01-01 00:00:00 +00:00
Andrew Bartlett
a91018dd02 Move tridge's getgrouplist() replacement function from replace.c to a new
'system_smbd.c' file, where it can link with become_root() and unbecome_root(),
and therefore avoiding some nasty 'it workes on linux' bugs.

(The replacement function is implemented in terms of initgroups(), which is
naturally only avaliable to root).

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
8a63fe4505 The idea of this function is not to touch the argument, so make it const too... 0001-01-01 00:00:00 +00:00