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

2856 Commits

Author SHA1 Message Date
Andrew Tridgell
cb435543f8 r23786: Use linux/dqblk_xfs.h rather than a private copy of this header in the
Samba3 tree.

This is neater, plus it avoids the need to get legal approval from SGI
to use their GPLv2-only code under GPLv3.

If/when SGI legal sort things out, we could consider adding back this
header for very old systems where linux/dqblk_xfs.h is not available.
2007-10-10 12:28:24 -05:00
Andrew Tridgell
b0132e94fc r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text 2007-10-10 12:28:22 -05:00
Jeremy Allison
c2f7ab1c17 r23780: Find and fix more GPL2 -> GPL3.
Jeremy.
2007-10-10 12:28:21 -05:00
Jeremy Allison
407e6e695b r23779: Change from v2 or later to v3 or later.
Jeremy.
2007-10-10 12:28:20 -05:00
Michael Adam
821bc84109 r23769: Move removal of the tdb from the generic tdb_validate function
to the caller (winbindd_validate_cache in this case).
Next, there will be a backup handling for the tdb files.

Michael
2007-10-10 12:23:55 -05:00
Volker Lendecke
91af086823 r23756: Fix Coverity id 388 2007-10-10 12:23:52 -05:00
Michael Adam
b68856d990 r23751: Call tdb_close even when validation was not successful.
Michael
2007-10-10 12:23:52 -05:00
Volker Lendecke
836782b07b r23726: Explicitly pass down the FLAGS2 field to srvstr_pull_buf. The next
checkin will pull this up to srvstr_get_path. At that point we can get more
independent of the inbuf, the base_ptr in pull_string will only be used
to satisfy UCS2 alignment constraints.
2007-10-10 12:23:49 -05:00
Jeremy Allison
77a46c7aee r23673: Check for integer wrap on incoming data.
Jeremy.
2007-10-10 12:23:45 -05:00
Michael Adam
82be4137b7 r23669: Move a variable into the only block where it is used. 2007-10-10 12:23:44 -05:00
Michael Adam
a4c2b20296 r23668: When creating a new string value, win2k regedit delivers
one byte of data despite characters being two-byte.

This modifies registry_pull_value, to change the data
to the correct two-byte version of the empty string,
(as delivered by winxp), when only one byte of data is
received.

Michael
2007-10-10 12:23:44 -05:00
Volker Lendecke
51a3933b3d r23665: Remove two unneeded global variables 2007-10-10 12:23:43 -05:00
Volker Lendecke
c195eccefe r23662: According to simo, check_dos_char is needed 2007-10-10 12:23:43 -05:00
Volker Lendecke
7e9a4c39a5 r23660: Anybody know what check_dos_char() was used for? It wasn't called at
all, so it's gone. With it 8k bss went away.
2007-10-10 12:23:43 -05:00
Volker Lendecke
3ec43e18a4 r23659: file_pload is not used outside of util_file.c 2007-10-10 12:23:42 -05:00
Volker Lendecke
83865e3288 r23658: One pstring a day....
This one was particularly tasty, it was a static one. So 1k less
footprint per process.
2007-10-10 12:23:42 -05:00
Michael Adam
00be68a841 r23641: Put check for forbidden values in smbconf into a function.
(This will be used in a next step to prevent storing these
values in reg_smbconf.c.)

Michael
2007-10-10 12:23:40 -05:00
Michael Adam
d4accdbb52 r23639: Eliminate trailing whitespaces in the new tdb_validate functions...
Michael
2007-10-10 12:23:39 -05:00
Michael Adam
062d8c6129 r23610: Move some winbindd_cache specific flags and actions
back to winbindd_cache.c. The generic mechanism
should open the cache tdb readonly and with default
flags.

Michael
2007-10-10 12:23:36 -05:00
Michael Adam
527edfa0cb r23600: First step in abstracting the winbindd cache validation
code into a generic tdb validation code.
In lib/util_tdb.c for a start.

Michael
2007-10-10 12:23:35 -05:00
Volker Lendecke
669eff902a r23595: One pstring a day... 2007-10-10 12:23:34 -05:00
Volker Lendecke
6beaa87da9 r23594: Fix parsing of local pids if cluster support is compiled in but no
cluster is used
2007-10-10 12:23:34 -05:00
Jeremy Allison
d7b39e4534 r23590: Fix realloc leak on failure case from Jim Meyering <jim@meyering.net>.
Jeremy.
2007-10-10 12:23:33 -05:00
James Peach
8f6cf4b8c2 r23576: Fix some confusion between HAVE_BROKEN_GETGROUPS and USE_BSD_SETGROUPS. 2007-10-10 12:23:31 -05:00
Jeremy Allison
0f10d2ed31 r23572: Ensure we obey Unicode consortium restrictions. Code
based on patch from MORIYAMA Masayuki <moriyama@miraclelinux.com>.
Jeremy.
2007-10-10 12:23:31 -05:00
Günther Deschner
27fdf995d1 r23569: Also dump fd_event in dump_event_list().
Guenther
2007-10-10 12:23:30 -05:00
Michael Adam
4b5d9b2ba7 r23566: Fix the sys_bsd_setgroups function. The actual workaround was inactive.
Michael
2007-10-10 12:23:30 -05:00
Günther Deschner
4e1e697ac4 r23562: Add dump_event_list() for debugging the event list.
Guenther
2007-10-10 12:23:29 -05:00
Jeremy Allison
1e66a8340e r23550: Add more UNIX error -> NT status mappings.
Jeremy.
2007-10-10 12:23:27 -05:00
Volker Lendecke
009af09099 r23528: Two changes to make the valgrind massif (heap profiler) output readable:
Remove the allocated inbuf/output. In async I/O we copy the buffers
explicitly now, so NewInBuffer is called exactly once. This does not
reduce memory footprint, but removes one of the larger chunks that
clobber the rest of the massif output

In getgroups_unix_user on Linux 2.6 we allocated 64k groups x 4 bytes
per group x 2 (once in the routine itself and once in libc) = 512k just
to throw it away directly again. This reduces it do a more typical limit
of 32 groups per user. We certainly cope with overflow fine if 32 is not
enough. Not 100% sure about this one, a DEVELOPER only thing?
2007-10-10 12:23:26 -05:00
Volker Lendecke
e6e5703658 r23518: Remove the silly assumption that string_replace requires a pstring.
Jeremy, I am always very confused about the different length arguments
in convert_string and friends. Can you take a look at the change in
string_replace and verify it's ok? Thanks!

While at it, remove the pstring limit for strhasupper and strhaslower.
2007-10-10 12:23:25 -05:00
James Peach
171dc060e2 r23510: Tidy calls to smb_panic by removing trailing newlines. Print the
failed expression in SMB_ASSERT.
2007-10-10 12:23:23 -05:00
Michael Adam
6fd7114049 r23507: Split one general function normalize_dbkey from reg_db.c into util_reg.c
(To be used in other place in subsequent commit.)

Michael
2007-10-10 12:23:22 -05:00
Michael Adam
efd3e2bfb7 r23485: This checkin consists mostly of refactorings in preparation of the
activation of global registry options in loadparm.c, mainly to
extract functionality from net_conf.c to be made availabel elsewhere
and to minimize linker dependencies.

In detail:

* move functions registry_push/pull_value from lib/util_reg.c to new file
  lib/util_reg_api.c

* create a fake user token consisting of builtin administrators sid and
  se_disk_operators privilege by hand instead of using get_root_nt_token()
  to minimize linker deps for bin/net.

  + new function registry_create_admin_token() in new lib/util_reg_smbconf.c
  + move dup_nt_token from auth/token_util.c to new file lib/util_nttoken.c
  + adapt net_conf.c and Makefile.in accordingly.

* split lib/profiles.c into two parts: new file lib/profiles_basic.c
  takes all the low level mask manipulation and format conversion functions
  (se_priv, privset, luid). the privs array is completely hidden from
  profiles.c by adding some access-functions. some mask-functions are not
  static anymore.

  Generally, SID- and LUID-related stuff that has more dependencies
  is kept in lib/profiles.c

* Move initialization of regdb from net_conf.c into a function
  registry_init_regdb() in lib/util_reg_smbconf.c.

Michael
2007-10-10 12:23:21 -05:00
James Peach
e3ea997289 r23475: Fix the prototype for sys_broken_setgroups and log *BSD group list
truncation a bit more verbosely.
2007-10-10 12:23:19 -05:00
James Peach
07f562be7a r23470: Fix supplementary group list truncation for *BSD. We need to pass
the correct group list length and only truncate to NGROUPS_MAX if
it is too long.
2007-10-10 12:23:18 -05:00
Simo Sorce
e6399f1aa1 r23411: We were missing displayName and that was preventing us
from successfully deleting an entry when "account" is
the STRUCTURAL objectclass used for users and machines.
"account" is used each time the user entry is in /etc/passwd
and we have only the samba attributes in ldap, as well
as for rfc2307(bis) standard based directories.
2007-10-10 12:23:15 -05:00
Volker Lendecke
15553d6327 r23410: Merge the core of the cluster code.
I'm 100% certain I've forgotten to merge something, but the main code
should be in. It's mainly in dbwrap_ctdb.c, ctdbd_conn.c and
messages_ctdbd.c.

There should be no changes to the non-cluster case, it does survive make
test on my laptop.

It survives some very basic tests with ctdbd enables, I did not do the
full test suite for clusters yet.

Phew...

Volker
2007-10-10 12:23:14 -05:00
Volker Lendecke
0442e680ee r23408: Remove a bogus comment 2007-10-10 12:23:14 -05:00
James Peach
6ebaf856c1 r23393: Support BSD group semantics by making sure that the effective GID is always
passed as the first GID when calling setgroups(2).
2007-10-10 12:23:12 -05:00
Jeremy Allison
bf951e3d7f r23371: Fix the misleading comment I added - it really *should*
say "locks chain and returned record", not
"and returns record"
Jeremy.
2007-10-10 12:23:11 -05:00
Jeremy Allison
d0b6456763 r23370: Traverse in tdb wasn't consistently using the
travlocks.lock_rw for lock read/write types, it
was sometimes using it (tdb_next_lock) and
sometimes explicitly using F_WRLCK instead.
Change this to consistently use travlocks.lock_rw
only.
I'm pretty sure about this fix (else I woudn't
be checking this in :-) but tridge and Volker
please review.
Jeremy.
2007-10-10 12:23:10 -05:00
Andrew Tridgell
15345bbc73 r23367: check the "use mmap" option for ldb too 2007-10-10 12:23:10 -05:00
Michael Adam
5f5b931492 r23363: Activate rep_pread and rep_pwrite in lib/replace/replace.h.
This fixes the build on a SuSE 6.1. :-)
I guess this had been merely forgotten.

But beware: The implementations of rep_pread and rep_pwrite are
not thread safe.

Michael
2007-10-10 12:23:10 -05:00
Volker Lendecke
c0f40eb584 r23362: Respect "use mmap" in tdb_wrap_open(). Tridge, you might want to merge
this in your tree.
2007-10-10 12:23:10 -05:00
Jeremy Allison
bafd3b93f9 r23357: timespec_current() was returning the wrong ns time
(multiplying tv_sec, not tv_usec).
Jeremy.
2007-10-10 12:23:09 -05:00
Simo Sorce
42d846ff87 r23356: We missed to add the 'c' character to the list of valid ones for
shell escaping.

I hate this kind of bugs more than how Jeremy hates off by ones :(

Simo.
2007-10-10 12:23:09 -05:00
Volker Lendecke
4042d2cdd2 r23344: Better error message 2007-10-10 12:23:08 -05:00
Volker Lendecke
0014ee44b8 r23343: Fix error return 2007-10-10 12:23:07 -05:00
Stefan Metzmacher
815d210171 r23337: fix a crash bug...I wonder why only HP-UX 11.00 ans 11.11 noticed
it via a SIGBUS...

I missed to remove the samba3 specifc code path to tdb_open_ex()
when I synced lib/tdb/ with samba4. The explicit cast in on tdb_open_ex()
dropped the compiler warning :-(

metze
2007-10-10 12:23:07 -05:00