uid_wrapper.git
2 years agoBump version to 1.2.9 uid_wrapper-1.2.9
Andreas Schneider [Thu, 2 Dec 2021 13:41:28 +0000 (14:41 +0100)]
Bump version to 1.2.9

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2 years agouwrap: Add support for getgroups_chk()
Andreas Schneider [Mon, 8 Nov 2021 15:19:12 +0000 (16:19 +0100)]
uwrap: Add support for getgroups_chk()

This is required by software built with FORTIFY_SOURCE=2.

https://bugzilla.redhat.com/show_bug.cgi?id=2021214

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2 years agoconfig: Add missing define for HAVE_GETGROUPS
Andreas Schneider [Wed, 24 Nov 2021 09:49:01 +0000 (10:49 +0100)]
config: Add missing define for HAVE_GETGROUPS

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2 years agoUpdate README.install
Andreas Schneider [Mon, 8 Nov 2021 15:33:46 +0000 (16:33 +0100)]
Update README.install

This is detected automatically in the meantime.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2 years agoUpdate README
Andreas Schneider [Wed, 25 Mar 2020 07:22:00 +0000 (08:22 +0100)]
Update README

Reviewed-by: Stefan Metzmacher <metze@samba.org>
2 years agotests: fix unused-result error in tests/test_uwrap_disabled.c
Björn Jacke [Fri, 30 Oct 2020 17:18:05 +0000 (18:18 +0100)]
tests: fix unused-result error in tests/test_uwrap_disabled.c

Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2 years agotests: fix unused-result error in tests/test_setresgid_unprivileged.c
Björn Jacke [Fri, 30 Oct 2020 17:03:08 +0000 (18:03 +0100)]
tests: fix unused-result error in tests/test_setresgid_unprivileged.c

Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2 years agouid_wrapper.c: fall back to pragma init/fini for constructor/destructor if possible
Björn Jacke [Fri, 30 Oct 2020 14:23:02 +0000 (15:23 +0100)]
uid_wrapper.c: fall back to pragma init/fini for constructor/destructor if possible

Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2 years agoconfigure: check for pragma init/fini for constructors/destructors
Björn Jacke [Fri, 30 Oct 2020 14:05:36 +0000 (15:05 +0100)]
configure: check for pragma init/fini for constructors/destructors

Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agogitlab-ci: Add Ubuntu runner
Andreas Schneider [Tue, 24 Mar 2020 09:45:45 +0000 (10:45 +0100)]
gitlab-ci: Add Ubuntu runner

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
4 years agogitlab-ci: Remove debian cross mips build
Andreas Schneider [Tue, 24 Mar 2020 09:44:38 +0000 (10:44 +0100)]
gitlab-ci: Remove debian cross mips build

This isn't supported by Debian anymore.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
4 years agoBump version to 1.2.8 uid_wrapper-1.2.8
Andreas Schneider [Thu, 5 Mar 2020 14:43:49 +0000 (15:43 +0100)]
Bump version to 1.2.8

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
4 years agocmake: Fix path in cmake config
Andreas Schneider [Tue, 3 Mar 2020 09:55:33 +0000 (10:55 +0100)]
cmake: Fix path in cmake config

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
4 years agopkg-config: Fix installation path
Andreas Schneider [Wed, 12 Feb 2020 08:52:40 +0000 (09:52 +0100)]
pkg-config: Fix installation path

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agocmake: Remove unsed dir definitions
Andreas Schneider [Thu, 17 Oct 2019 15:36:36 +0000 (17:36 +0200)]
cmake: Remove unsed dir definitions

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agocmake: Fix BINARYDIR and SOURCEDIR
Andreas Schneider [Thu, 17 Oct 2019 15:36:05 +0000 (17:36 +0200)]
cmake: Fix BINARYDIR and SOURCEDIR

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agocmake: Remove unused variable
Andreas Schneider [Thu, 17 Oct 2019 13:41:06 +0000 (15:41 +0200)]
cmake: Remove unused variable

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agocmake: Add missing PICKY_DEVELOPER option
Andreas Schneider [Thu, 17 Oct 2019 13:33:46 +0000 (15:33 +0200)]
cmake: Add missing PICKY_DEVELOPER option

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoBump version to 1.2.7 uid_wrapper-1.2.7
Andreas Schneider [Mon, 15 Jul 2019 14:17:52 +0000 (16:17 +0200)]
Bump version to 1.2.7

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agouwrap: Fix unsetting the the envname of initial XIDs
Andreas Schneider [Mon, 15 Jul 2019 11:58:44 +0000 (13:58 +0200)]
uwrap: Fix unsetting the the envname of initial XIDs

This issue got introduced by:
1c793e19f1cb8cb33defb171c9ae719ec8a820da

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoBump version to 1.2.6 uid_wrapper-1.2.6
Andreas Schneider [Mon, 15 Jul 2019 08:57:31 +0000 (10:57 +0200)]
Bump version to 1.2.6

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agogitlab-ci: Also test installation
Andreas Schneider [Mon, 15 Jul 2019 08:56:27 +0000 (10:56 +0200)]
gitlab-ci: Also test installation

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agocmake: Fix cmake config files install
Andreas Schneider [Mon, 15 Jul 2019 08:53:53 +0000 (10:53 +0200)]
cmake: Fix cmake config files install

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agodoc: Fix manpage installation
Andreas Schneider [Mon, 15 Jul 2019 08:53:32 +0000 (10:53 +0200)]
doc: Fix manpage installation

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoBump version to 1.2.5 uid_wrapper-1.2.5
Andreas Schneider [Mon, 15 Jul 2019 06:15:22 +0000 (08:15 +0200)]
Bump version to 1.2.5

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agodoc: Document UID_WRAPPER_DISABLE_DEEPBIND
Andreas Schneider [Sat, 1 Sep 2018 17:43:20 +0000 (19:43 +0200)]
doc: Document UID_WRAPPER_DISABLE_DEEPBIND

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agogitlab-ci: Setup CI for uid_wrapper
Andreas Schneider [Tue, 7 May 2019 11:03:37 +0000 (13:03 +0200)]
gitlab-ci: Setup CI for uid_wrapper

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@samba.org>
4 years agocmake: Use GNUInstallDirs
Andreas Schneider [Tue, 7 May 2019 11:02:04 +0000 (13:02 +0200)]
cmake: Use GNUInstallDirs

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@samba.org>
4 years agotests: Don't run test_uwrap_disabled with sanitizers
Andreas Schneider [Tue, 7 May 2019 10:58:49 +0000 (12:58 +0200)]
tests: Don't run test_uwrap_disabled with sanitizers

or on cross compiled hosts (Debian MIPS).

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@samba.org>
4 years agocmake: Correctly set _GNU_SOURCE
Andreas Schneider [Tue, 7 May 2019 10:57:32 +0000 (12:57 +0200)]
cmake: Correctly set _GNU_SOURCE

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@samba.org>
4 years agocmake: Fix configure check for libdl
Andreas Schneider [Tue, 7 May 2019 10:46:47 +0000 (12:46 +0200)]
cmake: Fix configure check for libdl

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@samba.org>
4 years agocmake: Use target_include_directories()
Andreas Schneider [Tue, 7 May 2019 10:45:48 +0000 (12:45 +0200)]
cmake: Use target_include_directories()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@samba.org>
4 years agocmake: Update AddCMockaTest.cmake
Andreas Schneider [Tue, 7 May 2019 10:39:55 +0000 (12:39 +0200)]
cmake: Update AddCMockaTest.cmake

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@samba.org>
4 years agocmake: Update cmocka requirement
Andreas Schneider [Tue, 7 May 2019 10:33:15 +0000 (12:33 +0200)]
cmake: Update cmocka requirement

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@samba.org>
4 years agocmake: Support running the tests with AddressSanitizer
Andreas Schneider [Tue, 7 May 2019 10:32:29 +0000 (12:32 +0200)]
cmake: Support running the tests with AddressSanitizer

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@samba.org>
4 years agocmake: Add AddressSanitizer and UndefinedSanitizer
Andreas Schneider [Tue, 7 May 2019 10:16:11 +0000 (12:16 +0200)]
cmake: Add AddressSanitizer and UndefinedSanitizer

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@samba.org>
4 years agocmake: Move Compiler flags to new file
Andreas Schneider [Tue, 7 May 2019 10:15:16 +0000 (12:15 +0200)]
cmake: Move Compiler flags to new file

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@samba.org>
4 years agocmake: Remove obsolete DefineCompilerFlags.cmake
Andreas Schneider [Tue, 7 May 2019 10:12:30 +0000 (12:12 +0200)]
cmake: Remove obsolete DefineCompilerFlags.cmake

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@samba.org>
4 years agocmake: Improve checks for compiler flags
Andreas Schneider [Tue, 7 May 2019 10:11:45 +0000 (12:11 +0200)]
cmake: Improve checks for compiler flags

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@samba.org>
4 years agocmake: Update CMake defaults
Andreas Schneider [Tue, 7 May 2019 10:06:25 +0000 (12:06 +0200)]
cmake: Update CMake defaults

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@samba.org>
4 years agocmake: Do not misuse CMAKE_REQUIRED_LIBRARIES
Andreas Schneider [Tue, 7 May 2019 10:05:16 +0000 (12:05 +0200)]
cmake: Do not misuse CMAKE_REQUIRED_LIBRARIES

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@samba.org>
4 years agocmake: Require at least cmake 3.5.0
Andreas Schneider [Tue, 7 May 2019 10:03:12 +0000 (12:03 +0200)]
cmake: Require at least cmake 3.5.0

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@samba.org>
4 years agocpack: Fix description and vendor
Andreas Schneider [Tue, 7 May 2019 10:00:30 +0000 (12:00 +0200)]
cpack: Fix description and vendor

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@samba.org>
4 years agoREADME: Rename to a markdown file
Andreas Schneider [Tue, 7 May 2019 09:55:49 +0000 (11:55 +0200)]
README: Rename to a markdown file

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@samba.org>
4 years agouwrap: Remove problematic FALL_THROUGH in uwrap_load_lib_handle()
Andreas Schneider [Tue, 7 May 2019 11:07:01 +0000 (13:07 +0200)]
uwrap: Remove problematic FALL_THROUGH in uwrap_load_lib_handle()

src/uid_wrapper.c:93:24: error: a label can only be part of a statement
and a declaration is not a statement

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@samba.org>
4 years agouwrap: Don't do a deep bind if we run with libasan
Andreas Schneider [Sat, 1 Sep 2018 17:43:20 +0000 (19:43 +0200)]
uwrap: Don't do a deep bind if we run with libasan

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@samba.org>
5 years agoctest: Move to new dashboard
Andreas Schneider [Thu, 5 Jul 2018 08:15:50 +0000 (10:15 +0200)]
ctest: Move to new dashboard

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
5 years agoRename COPYING to LICENSE
Andreas Schneider [Fri, 22 Jun 2018 06:50:38 +0000 (08:50 +0200)]
Rename COPYING to LICENSE

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
5 years agouwrap: Suppress fall through warnings
Andreas Schneider [Thu, 3 Aug 2017 08:48:45 +0000 (10:48 +0200)]
uwrap: Suppress fall through warnings

Suppress fall through warning in switch statement where the fall trough
is intentional.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
5 years agocpack: Do not package build dirs in source tarball
Andreas Schneider [Fri, 22 Jun 2018 06:59:32 +0000 (08:59 +0200)]
cpack: Do not package build dirs in source tarball

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
5 years agocmake: Replace deprecated get_target_property()
Andreas Schneider [Fri, 22 Jun 2018 06:56:02 +0000 (08:56 +0200)]
cmake: Replace deprecated get_target_property()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
6 years agouwrap: Improve parsing IDs from env variables
Andreas Schneider [Tue, 1 Aug 2017 06:14:30 +0000 (08:14 +0200)]
uwrap: Improve parsing IDs from env variables

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
6 years agouwrap: Fix integer overflowed argument
Andreas Schneider [Tue, 1 Aug 2017 06:11:28 +0000 (08:11 +0200)]
uwrap: Fix integer overflowed argument

The previous fix did not address the conversion from 64bit to 32bit.

CID 165232

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
6 years agouwrap: Use calloc to allocate groups array
Andreas Schneider [Thu, 27 Jul 2017 13:55:58 +0000 (15:55 +0200)]
uwrap: Use calloc to allocate groups array

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
6 years agouwrap: Fix integer overflowed argument
Volker Lendecke [Thu, 27 Jul 2017 13:55:18 +0000 (15:55 +0200)]
uwrap: Fix integer overflowed argument

Found by Coverity

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
6 years agoBump version to 1.2.4 uid_wrapper-1.2.4
Andreas Schneider [Fri, 21 Jul 2017 09:58:08 +0000 (11:58 +0200)]
Bump version to 1.2.4

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
6 years agouwrap: Add a workaround for glibc malloc mutex deadlock bug
Andreas Schneider [Fri, 21 Jul 2017 08:54:05 +0000 (10:54 +0200)]
uwrap: Add a workaround for glibc malloc mutex deadlock bug

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
6 years agouwrap: First do garbage collection before exporting ids
Andreas Schneider [Wed, 19 Jul 2017 14:27:05 +0000 (16:27 +0200)]
uwrap: First do garbage collection before exporting ids

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
6 years agotests: Add setgroups to test_fork_exec
Andreas Schneider [Wed, 19 Jul 2017 14:22:39 +0000 (16:22 +0200)]
tests: Add setgroups to test_fork_exec

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
6 years agouwrap: Improve groups string creation
Andreas Schneider [Wed, 19 Jul 2017 13:57:34 +0000 (15:57 +0200)]
uwrap: Improve groups string creation

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
6 years agouwrap: Make the unsigned_str smaller
Andreas Schneider [Wed, 19 Jul 2017 13:44:32 +0000 (15:44 +0200)]
uwrap: Make the unsigned_str smaller

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
6 years agouwrap: Fix type of len value
Andreas Schneider [Wed, 19 Jul 2017 13:43:13 +0000 (15:43 +0200)]
uwrap: Fix type of len value

snprintf return an 'int'.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
6 years agouwrap: Fix two error messages
Andreas Schneider [Wed, 19 Jul 2017 10:15:16 +0000 (12:15 +0200)]
uwrap: Fix two error messages

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
6 years agouwrap: Fix a typo
Andreas Schneider [Wed, 19 Jul 2017 10:14:15 +0000 (12:14 +0200)]
uwrap: Fix a typo

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
6 years agouwrap: Fix a deadlock if uid_wrapper is not enabled
Andreas Schneider [Fri, 21 Jul 2017 06:28:50 +0000 (08:28 +0200)]
uwrap: Fix a deadlock if uid_wrapper is not enabled

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
6 years agouwrap: Fix logging on optimized build
Andreas Schneider [Fri, 21 Jul 2017 09:39:59 +0000 (11:39 +0200)]
uwrap: Fix logging on optimized build

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
6 years agoBump version to 1.2.3 uid_wrapper-1.2.3
Andreas Schneider [Fri, 14 Jul 2017 08:39:53 +0000 (10:39 +0200)]
Bump version to 1.2.3

Signed-off-by: Andreas Schneider <asn@samba.org>
Blessed-by: Stefan Metzmacher <metze@samba.org>
6 years agouwrap: Do an early return if log level doesn't match
Andreas Schneider [Fri, 14 Jul 2017 08:34:48 +0000 (10:34 +0200)]
uwrap: Do an early return if log level doesn't match

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
6 years agouwrap: Always enable logging
Andreas Schneider [Fri, 14 Jul 2017 08:33:46 +0000 (10:33 +0200)]
uwrap: Always enable logging

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
6 years agouwrap: Add log message before exit
Andreas Schneider [Fri, 14 Jul 2017 08:31:05 +0000 (10:31 +0200)]
uwrap: Add log message before exit

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
6 years agouwrap: Add mamximum for groups we can handle while forking
Andreas Schneider [Fri, 14 Jul 2017 07:05:26 +0000 (09:05 +0200)]
uwrap: Add mamximum for groups we can handle while forking

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
6 years agouwrap: Do not leak groups_str
Andreas Schneider [Fri, 14 Jul 2017 07:07:19 +0000 (09:07 +0200)]
uwrap: Do not leak groups_str

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
6 years agoBump version to 1.2.2 uid_wrapper-1.2.2
Andreas Schneider [Wed, 12 Jul 2017 11:03:35 +0000 (13:03 +0200)]
Bump version to 1.2.2

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
6 years agotests: Add a fork and exec test
Andreas Schneider [Wed, 12 Jul 2017 07:16:30 +0000 (09:16 +0200)]
tests: Add a fork and exec test

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
6 years agouwrap: Add support to initialize groups while forking
Andreas Schneider [Tue, 11 Jul 2017 09:59:33 +0000 (11:59 +0200)]
uwrap: Add support to initialize groups while forking

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
7 years agotests: fix a comment typo
Michael Adam [Thu, 22 Sep 2016 00:29:34 +0000 (02:29 +0200)]
tests: fix a comment typo

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
7 years agotests: Use alpha-specific syscalls.
Matt Turner [Tue, 5 Apr 2016 20:28:56 +0000 (13:28 -0700)]
tests: Use alpha-specific syscalls.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11821

Signed-off-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
7 years agouwrap: Use alpha-specific syscalls.
Matt Turner [Tue, 5 Apr 2016 20:28:30 +0000 (13:28 -0700)]
uwrap: Use alpha-specific syscalls.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11821

Signed-off-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
7 years agouwrap: Attempt to dlopen libc.so.*.1 as a fallback.
Matt Turner [Tue, 5 Apr 2016 20:41:13 +0000 (13:41 -0700)]
uwrap: Attempt to dlopen libc.so.*.1 as a fallback.

glibc on Alpha and IA64 is libc.so.6.1.

Without this, uwrap.libc.handle is set to RTLD_NEXT, leading to a
segmentation fault in the unit tests when dlclose() is called.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11821

Signed-off-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
8 years agoBump version to 1.2.1 uid_wrapper-1.2.1
Andreas Schneider [Wed, 16 Mar 2016 13:53:37 +0000 (14:53 +0100)]
Bump version to 1.2.1

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
8 years agouwrap: Make sure prefix is not used uninitialized
Andreas Schneider [Fri, 13 Nov 2015 12:46:24 +0000 (13:46 +0100)]
uwrap: Make sure prefix is not used uninitialized

Signed-off-by: Andreas Schneider <asn@samba.org>
8 years agodoc: Document missing options
Andreas Schneider [Tue, 3 Nov 2015 09:54:07 +0000 (10:54 +0100)]
doc: Document missing options

Signed-off-by: Andreas Schneider <asn@samba.org>
8 years agoBump version to 1.2.0 uid_wrapper-1.2.0
Andreas Schneider [Thu, 29 Oct 2015 07:21:21 +0000 (08:21 +0100)]
Bump version to 1.2.0

Signed-off-by: Andreas Schneider <asn@samba.org>
8 years agotests: Add checks for return values in test_thread_setreuid
Andreas Schneider [Thu, 29 Oct 2015 07:16:32 +0000 (08:16 +0100)]
tests: Add checks for return values in test_thread_setreuid

CID #131817

Signed-off-by: Andreas Schneider <asn@samba.org>
8 years agotests: Rename test_syscall_gid32 to test_syscall_setgroups32
Andreas Schneider [Wed, 28 Oct 2015 08:34:18 +0000 (09:34 +0100)]
tests: Rename test_syscall_gid32 to test_syscall_setgroups32

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
8 years agotests: Move syscall setregid32 test to own executable
Andreas Schneider [Wed, 28 Oct 2015 08:33:16 +0000 (09:33 +0100)]
tests: Move syscall setregid32 test to own executable

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
8 years agotests: Move syscall setregid32 test to own executable
Andreas Schneider [Wed, 28 Oct 2015 08:23:23 +0000 (09:23 +0100)]
tests: Move syscall setregid32 test to own executable

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
8 years agotests: Move syscall setgid32 test to own executable
Andreas Schneider [Wed, 28 Oct 2015 07:36:53 +0000 (08:36 +0100)]
tests: Move syscall setgid32 test to own executable

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
8 years agotests: Rename syscall setresuid32 test and improve it
Andreas Schneider [Wed, 28 Oct 2015 07:26:32 +0000 (08:26 +0100)]
tests: Rename syscall setresuid32 test and improve it

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
8 years agotests: Move syscall setreuid32 test to own executable
Andreas Schneider [Wed, 28 Oct 2015 07:19:43 +0000 (08:19 +0100)]
tests: Move syscall setreuid32 test to own executable

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
8 years agotests: Move syscall setuid32 test to own executable
Andreas Schneider [Wed, 28 Oct 2015 07:15:37 +0000 (08:15 +0100)]
tests: Move syscall setuid32 test to own executable

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
8 years agouwrap: Fix build warning with release build
Andreas Schneider [Wed, 28 Oct 2015 07:05:11 +0000 (08:05 +0100)]
uwrap: Fix build warning with release build

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
8 years agoIgnore build and all obj* directories
Andreas Schneider [Wed, 28 Oct 2015 08:24:08 +0000 (09:24 +0100)]
Ignore build and all obj* directories

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
8 years agocmake: Run threaded tests also on BSD and Solaris
Andreas Schneider [Mon, 12 Oct 2015 16:41:16 +0000 (18:41 +0200)]
cmake: Run threaded tests also on BSD and Solaris

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
8 years agotests: Get the tests working on BSD
Andreas Schneider [Thu, 8 Oct 2015 15:03:48 +0000 (17:03 +0200)]
tests: Get the tests working on BSD

The setuid and seteuid behaviour is different to Linux and Solaris.

The setuid euid tests on BSD look like a bug?

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
8 years agotests: Rename test_gid to test_setgroups
Andreas Schneider [Fri, 9 Oct 2015 11:22:35 +0000 (13:22 +0200)]
tests: Rename test_gid to test_setgroups

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
8 years agotests: Add setresgid unprivileged user test
Andreas Schneider [Tue, 27 Oct 2015 09:42:35 +0000 (10:42 +0100)]
tests: Add setresgid unprivileged user test

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
8 years agotests: Move setresgid test to own executable
Andreas Schneider [Fri, 9 Oct 2015 11:21:20 +0000 (13:21 +0200)]
tests: Move setresgid test to own executable

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
8 years agotests: Move setregid test to own executable
Andreas Schneider [Fri, 9 Oct 2015 11:10:23 +0000 (13:10 +0200)]
tests: Move setregid test to own executable

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
8 years agotests: Move setegid test to own executable
Andreas Schneider [Fri, 9 Oct 2015 07:40:14 +0000 (09:40 +0200)]
tests: Move setegid test to own executable

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>