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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Andreas Schneider [Fri, 9 Oct 2015 07:31:10 +0000 (09:31 +0200)]
tests: Move setgid test to own executable
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Thu, 8 Oct 2015 13:23:24 +0000 (15:23 +0200)]
tests: Add new test_setuid_euid1 and test_setuid_euid2
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Tue, 27 Oct 2015 09:19:57 +0000 (10:19 +0100)]
tests: Create a test for threaded SYS_setuid
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Tue, 27 Oct 2015 09:18:54 +0000 (10:18 +0100)]
tests: Fix test_syscall_setuid to work with privilege checks
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Wed, 23 Sep 2015 12:06:20 +0000 (14:06 +0200)]
tests: Create a test for threaded sync SYS_setreuid
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Tue, 27 Oct 2015 09:21:26 +0000 (10:21 +0100)]
tests: Create a test for threaded SYS_setreuid
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Tue, 27 Oct 2015 09:20:53 +0000 (10:20 +0100)]
tests: Fix test_syscall_setreuid to work with privilege checks
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Tue, 22 Sep 2015 15:41:04 +0000 (17:41 +0200)]
tests: Make syscall setresuid test from test_syscall_uid
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Tue, 22 Sep 2015 15:33:04 +0000 (17:33 +0200)]
tests: Move syscall setreuid test to own executable
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Tue, 22 Sep 2015 15:21:11 +0000 (17:21 +0200)]
tests: Add test_getresuid out of test_uid
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Tue, 22 Sep 2015 14:55:43 +0000 (16:55 +0200)]
tests: Move setresuid test to own executable
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Tue, 22 Sep 2015 12:29:49 +0000 (14:29 +0200)]
tests: Move setreuid test to own executable
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Tue, 22 Sep 2015 12:21:17 +0000 (14:21 +0200)]
tests: Move seteuid test to own executable
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Tue, 22 Sep 2015 12:17:28 +0000 (14:17 +0200)]
tests: Move setuid test to own executable
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Fri, 18 Sep 2015 14:23:17 +0000 (16:23 +0200)]
cmake: Always set UID_WRAPPER_ROOT=1 for tests
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Fri, 9 Oct 2015 07:14:34 +0000 (09:14 +0200)]
uwrap: Add the EINVAL check to setegid()
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Fri, 9 Oct 2015 07:17:16 +0000 (09:17 +0200)]
uwrap: Allow setgid calls only for privileged users
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Fri, 9 Oct 2015 07:13:27 +0000 (09:13 +0200)]
uwrap: Allow setregid calls only for privileged users
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Fri, 9 Oct 2015 07:08:21 +0000 (09:08 +0200)]
uwrap: Allow setresgid calls only for privileged users
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Thu, 8 Oct 2015 14:52:00 +0000 (16:52 +0200)]
uwrap: Move the EINVAL check down in seteuid()
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Thu, 8 Oct 2015 14:55:01 +0000 (16:55 +0200)]
uwrap: Allow setuid calls only for privileged users
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Thu, 8 Oct 2015 14:50:01 +0000 (16:50 +0200)]
uwrap: Allow setreuid calls only for privileged users
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Thu, 8 Oct 2015 14:46:27 +0000 (16:46 +0200)]
uwrap: Allow setresuid calls only for privileged users
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Tue, 20 Oct 2015 13:06:02 +0000 (15:06 +0200)]
uwrap: Fix a possible null pointer dereference
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>
Andreas Schneider [Tue, 22 Sep 2015 15:11:57 +0000 (17:11 +0200)]
uwrap: Improve debug output
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Tue, 22 Sep 2015 15:06:01 +0000 (17:06 +0200)]
uwrap: Fix debug line in uwrap_init()
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>