[Pkg-samba-maint] failing salsa reprotest job
Michael Tokarev
mjt at tls.msk.ru
Sun Apr 3 07:53:34 BST 2022
I'm seeing a failing reprotest job on salsa.
It fails at configure (!) stage when the build
is happening the second time.
Here's the failing spot (removed irrelevant info):
-----------------------------------------------------------------------------------------------
Checking whether setreuid is available
==>
[..many #defines..]
#define AUTOCONF_TEST 1
#define USE_SETREUID 1
#include "../lib/util/setid.c"
#include "./lib/util_sec.c"
<==
[1/3] Compiling bin/.conf_check_4666d9828146c1dbbbc647fed834b836/test.c
['/usr/bin/gcc', '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1', '-g', '-O2', '-ffile-prefix-map=/tmp/reprotest.Qz5mG7/build-experiment-1/build
-experiment-1=.', '-fstack-protector-strong', '-Wformat', '-Werror=format-security', '-MMD', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED
=1', '-DHAVE_CONFIG_H=1', '-I/tmp/reprotest.Qz5mG7/build-experiment-1/build-experiment-1/source3', '-I.', '-I../..', '-I.', '-I../..', '.
./../test.c', '-c', '-o/tmp/reprotest.Qz5mG7/build-experiment-1/build-experiment-1/bin/.conf_check_4666d9828146c1dbbbc647fed834b836/testb
uild/default/test.c.1.o', '-Wdate-time', '-D_FORTIFY_SOURCE=2']
[2/3] Linking bin/.conf_check_4666d9828146c1dbbbc647fed834b836/testbuild/default/testprog
['/usr/bin/gcc', 'test.c.1.o', '-o/tmp/reprotest.Qz5mG7/build-experiment-1/build-experiment-1/bin/.conf_check_4666d9828146c1dbbbc647fed83
4b836/testbuild/default/testprog', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L/usr/local/lib', '-L/usr/local/lib', '-Wl,-z,relro', '-Wl,-z,now',
'-Wl,-no-undefined', '-Wl,--export-dynamic']
[3/3] Processing bin/.conf_check_4666d9828146c1dbbbc647fed834b836/testbuild/default/testprog
['/tmp/reprotest.Qz5mG7/build-experiment-1/build-experiment-1/bin/.conf_check_4666d9828146c1dbbbc647fed834b836/testbuild/default/testprog']
out: Failed to set gid privileges to (-1,1) now set to (0,0) uid=(0,0)
from /tmp/reprotest.Qz5mG7/build-experiment-1/build-experiment-1/source3: The configuration failed False
not found
It fails the same way for linux thread credential test too:
#define AUTOCONF_TEST 1
#define HAVE_LINUX_THREAD_CREDENTIALS 1
#include "../lib/util/setid.c"
#include "./lib/util_sec.c"
out: Failed to set gid privileges to (-1,1) now set to (0,0) uid=(0,0)
(in the successful build/config the linux-thread-credential test work,
so it does not try setreuid test, but actuall both of them should work).
I wonder if this is due to the usage of faketime for example..
setreuid(-1,1) should Just Work for root.
/mjt
More information about the Pkg-samba-maint
mailing list