summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* talloc: version 2.1.5talloc-2.1.5Stefan Metzmacher2015-11-054-1/+77
| | | | | | * Minor build fixes Signed-off-by: Stefan Metzmacher <metze@samba.org>
* uwrap: Bump version to 1.2.0Andreas Schneider2015-11-051-1/+1
| | | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Thu Nov 5 12:30:02 CET 2015 on sn-devel-104
* uwrap: Fix build warning with release buildAndreas Schneider2015-11-051-0/+8
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* uwrap: Add the EINVAL check to setegid()Andreas Schneider2015-11-051-0/+6
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* uwrap: Allow setgid calls only for privileged usersAndreas Schneider2015-11-051-2/+57
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* uwrap: Allow setregid calls only for privileged usersAndreas Schneider2015-11-051-2/+85
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* uwrap: Allow setresgid calls only for privileged usersAndreas Schneider2015-11-051-55/+107
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* uwrap: Move the EINVAL check down in seteuid()Andreas Schneider2015-11-051-4/+5
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* uwrap: Allow setuid calls only for privileged usersAndreas Schneider2015-11-051-2/+57
| | | | | | Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* uwrap: Allow setreuid calls only for privileged usersAndreas Schneider2015-11-051-7/+84
| | | | | | Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* uwrap: Allow setresuid calls only for privileged usersAndreas Schneider2015-11-051-33/+89
| | | | | | Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* uwrap: Fix a possible null pointer dereferenceAndreas Schneider2015-11-051-0/+16
| | | | | | | | If uid_wrapper is loaded but not enabled (UID_WRAPPER environment variable not set), then we dereference a NULL pointer while forking. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* uwrap: Improve debug outputAndreas Schneider2015-11-051-15/+15
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* uwrap: Fix debug line in uwrap_init()Andreas Schneider2015-11-051-2/+3
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* ntvfs: Add error debug statements for set_unix_securityAndreas Schneider2015-11-051-0/+3
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* selftest: Start Samba AD DC as rootAndreas Schneider2015-11-051-0/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4-rpc_server: Get the real initial uid for selftestAndreas Schneider2015-11-051-0/+8
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* selftest: Start smbd, nmbd and winbindd as rootAndreas Schneider2015-11-051-0/+3
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3-lib: Get the real initial uid for selftestAndreas Schneider2015-11-051-0/+14
| | | | | | | | We need this that if we connect as the user who started smbd, we are able to perform privileged operation like creating a user. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* vfs_offline: add documentationUri Simchoni2015-11-052-0/+73
| | | | | | | | Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Nov 5 01:22:48 CET 2015 on sn-devel-104
* vfs_offline: add a blackbox testUri Simchoni2015-11-043-0/+40
| | | | | Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfs_offline: add vfs_offline moduleUri Simchoni2015-11-043-1/+55
| | | | | | | | | | | | | | | | | | This module marks all file in the share as offline. It can be useful for shares mounted on top of a remote file system (either through a samba VFS module or via FUSE). Offline files change the behavior of Windows explorer, and prevent it from peeking inside folders just for the sake of drawing a nice icon of them. This greatly reduces the number of requests Windows Explorer makes, and improves user experience when dealing with remote file systems. The offline bit also has an effect on the behavior of Windows redirector. Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3: rpcclient: Prevent null ptr access by returning error if no creds availableNoel Power2015-11-041-0/+5
| | | | | | | | | | Prevent rpccli_netlogon_password_logon being called with 'NULL' credentials. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11569 Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3: winbind: Prevent null ptr access by returning error if no creds availableNoel Power2015-11-041-2/+5
| | | | | | | | | | | Prevent rpccli_netlogon_network_logon/rpccli_netlogon_password_logon being called with 'NULL' credentials BUG: https://bugzilla.samba.org/show_bug.cgi?id=11569 Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3: smbd: If EA's are turned off on a share don't allow an SMB2 create ↵Jeremy Allison2015-11-041-0/+6
| | | | | | | | | | | | | | | | | containing them. Otherwise a create that should have failed may succeed. Based on an original patch from John Mulligan <phlogistonjohn@asynchrono.us> and comments from Uri Simchoni <uri@samba.org> BUG: https://bugzilla.samba.org/show_bug.cgi?id=11589 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org> Autobuild-User(master): Uri Simchoni <uri@samba.org> Autobuild-Date(master): Wed Nov 4 22:14:22 CET 2015 on sn-devel-104
* wafsamba: detect programmer errors in CHECK_BUNDLED_SYSTEM()Stefan Metzmacher2015-11-041-25/+25
| | | | | | | | | | | | | | | | All prerequisite libraries of CHECK_BUNDLED_SYSTEM[_PKG](onlyif='lib1 lib2') need to be checked before. That means conf.env['FOUND_SYSTEMLIB_lib1'] and conf.env['FOUND_SYSTEMLIB_lib2'] need to exist independed of its value (True or False). Otherwise this is a logic error. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11458 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Nov 4 18:38:18 CET 2015 on sn-devel-104
* tests: Add tests for net ads (join|leave)Andreas Schneider2015-11-042-0/+36
| | | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org> Autobuild-User(master): Uri Simchoni <uri@samba.org> Autobuild-Date(master): Wed Nov 4 15:35:57 CET 2015 on sn-devel-104
* ctdb-build: Add ctdb/ directory to include path for top-level buildAmitay Isaacs2015-11-041-1/+1
| | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Wed Nov 4 03:52:27 CET 2015 on sn-devel-104
* ctdb-include: Use new protocol definitionsAmitay Isaacs2015-11-045-761/+6
| | | | | | | This gets rid of the duplicate definitions from ctdb_protocol.h. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Rename G_LOCK_READ/WRITE to CTDB_G_LOCK_READ/WRITEAmitay Isaacs2015-11-043-6/+6
| | | | | | | to avoid clash with definitions from source3/include/g_lock.h. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-client: Rename g_lock datatypes as per new protocol.hAmitay Isaacs2015-11-041-28/+28
| | | | | | | | | | struct server_id => ctdb_server_id enum g_lock_type => ctdb_g_lock_type struct g_lock_rec => ctdb_g_lock struct g_lock_recs => ctdb_g_lock_list Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Remove unused definitionsAmitay Isaacs2015-11-042-7/+1
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-tools: Use replace headers instead of system headersAmitay Isaacs2015-11-041-15/+6
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Remove explicit include of ctdb_protocol.hAmitay Isaacs2015-11-042-2/+0
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Rename struct ctdb_control_get_ifaces to ctdb_iface_list_oldAmitay Isaacs2015-11-048-20/+20
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Rename struct ctdb_control_public_ip_info to ↵Amitay Isaacs2015-11-045-12/+12
| | | | | | | ctdb_public_ip_info_old Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Rename struct ctdb_control_iface_info to ctdb_ifaceAmitay Isaacs2015-11-048-18/+18
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Rename struct ctdb_control_transdb to ctdb_transdbAmitay Isaacs2015-11-045-20/+20
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Rename struct ctdb_control_set_tunable to ctdb_tunable_oldAmitay Isaacs2015-11-043-7/+7
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Rename struct ctdb_control_pulldb to ctdb_pulldbAmitay Isaacs2015-11-044-7/+7
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Rename struct ctdb_control_gratious_arp to ctdb_addr_info_oldAmitay Isaacs2015-11-043-26/+13
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Rename struct ctdb_control_ip_iface to ctdb_addr_info_oldAmitay Isaacs2015-11-045-33/+30
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Rename struct ctdb_tunable to ctdb_tunable_listAmitay Isaacs2015-11-045-66/+66
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Rename struct ctdb_control_tcp_tickle_list to ctdb_tickle_list_oldAmitay Isaacs2015-11-045-44/+34
| | | | | | | Also remove unnecessary struct ctdb_tcp_wire_array. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Rename struct srvid_request_data to ctdb_disable_messageAmitay Isaacs2015-11-043-11/+11
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Rename struct srvid_request to ctdb_srvid_messageAmitay Isaacs2015-11-044-17/+17
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Rename struct ctdb_ban_time to ctdb_ban_stateAmitay Isaacs2015-11-047-21/+24
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Rename struct ctdb_tcp_connection to ctdb_connectionAmitay Isaacs2015-11-047-93/+84
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Rename struct ctdb_control_tcp_addr to ctdb_connectionAmitay Isaacs2015-11-044-15/+15
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Rename struct ctdb_server_id_list to ctdb_client_id_list_oldAmitay Isaacs2015-11-045-12/+11
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>