about summary refs log tree commit diff
path: root/elf/reldep7mod1.c
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2017-02-04 12:02:37 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2017-02-04 12:02:37 +0530
commit53aa04a86c10f49b7481e73d2ca045ecd6ed2df7 (patch)
treec3304cca37aebc39c9293ff47e79d65fe62aebab /elf/reldep7mod1.c
parentd675eaf7d99096a952c1d140abfed82c939fb259 (diff)
downloadglibc-53aa04a86c10f49b7481e73d2ca045ecd6ed2df7.tar.gz
glibc-53aa04a86c10f49b7481e73d2ca045ecd6ed2df7.tar.xz
glibc-53aa04a86c10f49b7481e73d2ca045ecd6ed2df7.zip
tunables: Fail tests correctly when setgid does not work
The child process of the tst-env-setuid process was failing correctly
with EXIT_UNSUPPORTED but the parent did not carry that status forward
and failed instead.  This patch fixes this so that tests on nosuid
/tmp fails gracefully with UNSUPPORTED.  Tested by making my tmpfs
nosuid.

	* elf/tst-env-setuid.c (do_execve): Return EXIT_UNSUPPORTED in
	parent if child exited in that manner.  Print WEXITSTATUS
	instead of the raw status.
	(do_test_prep): Rename to do_test.
	(do_test): Return the result of run_executable_sgid.
	(TEST_FUNCTION_ARGV): Adjust.
Diffstat (limited to 'elf/reldep7mod1.c')
0 files changed, 0 insertions, 0 deletions