uwrap: Support dropping all supplemetary groups with setgroups()

Dropping all supplementary groups is a common practice when changing
UIDs. This patch adds support for dropping all supplementary groups when
setgroups is called with size=0.

Signed-off-by: Jakub Hrozek <jakub.hrozek@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>

tests: Fix test for dopping supplementary groups.

Signed-off-by: Andreas Schneider <asn@samba.org>
Bump version to 1.0.2.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
tests: Remove test with legacy "access" system call.

AArch64 architecture does not implement legacy system calls and as a
result SYS_access is not defined (as it got replaced with "accessat"
syscall).

Signed-off-by: Marcin Juszkiewicz <mjuszkiewicz@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
testsuite: Fix comparison
TESTS: add -DOSX if building on OS X

We need some OS X specific branch in the tests.
TESTS: SYS_gettimeofday behaves differently on OS X

SYS_gettimeofday returns the number of seconds on OS X and doesn't set
the tz parameter.