1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/testprogs/blackbox
Samuel Cabrero fc25fe80b4 selftest: Woraround uid wrapper issues when using bash shell
UID_WRAPPER_ROOT=1 is not working properly when tests run in bash shell
instead of dash. After some debugging the reason may be dash spawns a
subshell to run commands, but bash calls execve instead. Traces attached
as reference:

/bin/sh -> dash:

[2(2)/2 at 17s, 1 errors] samba.blackbox.pdbtest(nt4_dc)(nt4_dc:local)
UWRAP_DEBUG(3145) - uwrap_init: Initialize uid_wrapper
UWRAP_DEBUG(3145) - uwrap_init_env: uwrap_init_env
UWRAP_DEBUG(3145) - uwrap_init: Enabled uid_wrapper as root (real uid=1000)
UWRAP_DEBUG(3145) - uwrap_init: Successfully initialized uid_wrapper
UWRAP_DEBUG(3144) - uwrap_init: Initialize uid_wrapper
UWRAP_DEBUG(3144) - uwrap_init_env: uwrap_init_env
UWRAP_DEBUG(3144) - uwrap_init: Enabled uid_wrapper as root (real uid=1000)
UWRAP_DEBUG(3144) - uwrap_init: Successfully initialized uid_wrapper

/bin/sh -> bash:

[2(2)/2 at 17s, 1 errors] samba.blackbox.pdbtest(nt4_dc)(nt4_dc:local)
UWRAP_DEBUG(3352) - uwrap_export_ids: uwrap_export_ids
UWRAP_DEBUG(3354) - uwrap_export_ids: uwrap_export_ids
UWRAP_DEBUG(3354) - uwrap_init: Initialize uid_wrapper
UWRAP_DEBUG(3354) - uwrap_init_env: uwrap_init_env
UWRAP_DEBUG(3354) - uwrap_init_env: Initialize ruid with 1000
UWRAP_DEBUG(3354) - uwrap_init_env: Initalize euid with 1000
UWRAP_DEBUG(3354) - uwrap_init_env: Initalize suid with 1000
UWRAP_DEBUG(3354) - uwrap_init_env: Initialize ruid with 1000
UWRAP_DEBUG(3354) - uwrap_init_env: Initalize egid with 1000
UWRAP_DEBUG(3354) - uwrap_init_env: Initalize sgid with 1000
UWRAP_DEBUG(3354) - uwrap_init_env: Initalize groups with 4,24,27,30,46,108,1000
UWRAP_DEBUG(3354) - uwrap_init: Enabled uid_wrapper as user (real uid=1000)
UWRAP_DEBUG(3354) - uwrap_init: Successfully initialized uid_wrapper
UWRAP_DEBUG(3353) - uwrap_export_ids: uwrap_export_ids
UWRAP_DEBUG(3353) - uwrap_init: Initialize uid_wrapper
UWRAP_DEBUG(3353) - uwrap_init_env: uwrap_init_env
UWRAP_DEBUG(3353) - uwrap_init_env: Initialize ruid with 1000
UWRAP_DEBUG(3353) - uwrap_init_env: Initalize euid with 1000
UWRAP_DEBUG(3353) - uwrap_init_env: Initalize suid with 1000
UWRAP_DEBUG(3353) - uwrap_init_env: Initialize ruid with 1000
UWRAP_DEBUG(3353) - uwrap_init_env: Initalize egid with 1000
UWRAP_DEBUG(3353) - uwrap_init_env: Initalize sgid with 1000
UWRAP_DEBUG(3353) - uwrap_init_env: Initalize groups with 4,24,27,30,46,108,1000
UWRAP_DEBUG(3353) - uwrap_init: Enabled uid_wrapper as user (real uid=1000)
UWRAP_DEBUG(3353) - uwrap_init: Successfully initialized uid_wrapper

Signed-off-by: Samuel Cabrero <scabrero@suse.de>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
2019-03-22 14:03:19 +00:00
..
wintest
bogus.sh testprogs: Fix usage printout of bogus blackbox test 2017-04-29 23:31:10 +02:00
common_test_fns.inc testprogs: Return the correct error status code 2018-03-03 00:01:23 +01:00
common-links.sh selftest: Add more corruption cases for runtime and dbcheck 2017-11-24 15:50:16 +01:00
dbcheck-links.sh dbcheck: don't check expired tombstone objects by default anymore 2019-03-14 03:12:27 +00:00
dbcheck-oldrelease.sh blackbox/dbcheck*.sh: pass --selftest-check-expired-tombstones to dbcheck 2019-03-14 02:12:21 +00:00
dbcheck.sh blackbox/dbcheck.sh: fix dbcheck_fix_one_way_links cleanup 2019-02-11 11:41:21 +01:00
demote-saveddb.sh selftest: Confirm a demote of a real network works 2015-10-26 08:17:47 +01:00
dfree.sh selftest: more dfree command and smbclient disk usage tests 2016-01-06 03:58:59 +01:00
dom_parse.sh Add a blackbox tests for id & getent to test domain@realm type credentials 2016-10-03 19:49:19 +02:00
functionalprep.sh netcmd/ldapcmp: pass --skip-missing-dn to LDAPBase 2018-11-21 07:46:19 +01:00
join_ldapcmp.sh tests: Add a sub-set of tests to show the restored DC is sound 2018-07-03 10:39:14 +02:00
ldapcmp_restoredc.sh netcmd/ldapcmp: pass --skip-missing-dn to LDAPBase 2018-11-21 07:46:19 +01:00
nsstest.sh
renamedc.sh testprogs/blackbox: Use PYTHON env variable for calling python scripts 2018-10-23 05:50:25 +02:00
runtime-links.sh selftest: Add more corruption cases for runtime and dbcheck 2017-11-24 15:50:16 +01:00
schemaupgrade.sh netcmd/ldapcmp: pass --skip-missing-dn to LDAPBase 2018-11-21 07:46:19 +01:00
subunit.sh testprogs/blackbox: add testit[_expect_failure]_grep() to subunit.sh 2018-09-05 00:48:17 +02:00
test_chgdcpass.sh testprogs/blackbox: PY3 bulk change for python scripts use correct python 2018-11-14 05:07:16 +01:00
test_client_etypes.sh testprogs: Use own credential cache for test_client_etypes.sh 2016-09-25 09:05:27 +02:00
test_export_keytab_heimdal.sh testprogs/blackbox: PY3 bulk change for python scripts use correct python 2018-11-14 05:07:16 +01:00
test_export_keytab_mit.sh testprogs/blackbox: PY3 bulk change for python scripts use correct python 2018-11-14 05:07:16 +01:00
test_kinit_heimdal.sh testprogs/blackbox: PY3 bulk change for python scripts use correct python 2018-11-14 05:07:16 +01:00
test_kinit_mit.sh CVE-2018-16853: Add a test to verify s4u2self doesn't crash 2018-11-28 08:22:24 +01:00
test_kinit_trusts_heimdal.sh testprogs/blackbox: PY3 bulk change for python scripts use correct python 2018-11-14 05:07:16 +01:00
test_kinit_trusts_mit.sh testprogs: Add a kinit trust test for MIT KDC 2017-04-29 23:31:10 +02:00
test_kpasswd_heimdal.sh testprogs/blackbox: PY3 bulk change for python scripts use correct python 2018-11-14 05:07:16 +01:00
test_kpasswd_mit.sh testprogs/blackbox: PY3 bulk change for python scripts use correct python 2018-11-14 05:07:16 +01:00
test_ktpass.sh testprogs/blackbox: PY3 bulk change for python scripts use correct python 2018-11-14 05:07:16 +01:00
test_ldb_simple.sh CVE-2016-2112: s4:selftest: run some ldap test against ad_dc_ntvfs, fl2008r2dc and fl2003dc 2016-04-12 19:25:25 +02:00
test_ldb.sh
test_net_ads_dns.sh testprogs/blackbox: don't use hardcoded values in test_net_ads_dns.sh 2017-06-13 22:46:14 +02:00
test_net_ads.sh s3:libads: Add net ads keep-account test 2018-07-30 10:22:59 +02:00
test_net_rpc_user.sh testprogs: Add 'net rpc user' test against AD DC 2017-05-11 20:30:12 +02:00
test_password_settings.sh selftest: Woraround uid wrapper issues when using bash shell 2019-03-22 14:03:19 +00:00
test_pdbtest.sh selftest: Woraround uid wrapper issues when using bash shell 2019-03-22 14:03:19 +00:00
test_pkinit_heimdal.sh CVE-2018-16841 selftest: Check for mismatching principal in certficate compared with principal in AS-REQ 2018-11-28 08:22:24 +01:00
test_pkinit_pac_heimdal.sh testprogs/blackbox: add test_pkinit_pac_heimdal.sh 2016-07-22 23:34:21 +02:00
test_primary_group.sh dsdb: Add comments explaining the limitations of our current backlink behaviour 2018-10-30 10:32:51 +01:00
test_samba_upgradedns.sh testprogs/blackbox: PY3 bulk change for python scripts use correct python 2018-11-14 05:07:16 +01:00
test_samba-tool_ntacl.sh testprogs/blackbox: make sure samba-tool is called with correct python 2018-12-10 10:38:20 +01:00
test_trust_ntlm.sh test_trust_ntlm.sh: add lookup name tests 2018-02-21 14:19:19 +01:00
test_trust_token.sh testprogs/blackbox: add test_trust_token.sh 2018-03-19 20:30:51 +01:00
test_trust_user_account.sh testprogs/blackbox: PY3 bulk change for python scripts use correct python 2018-11-14 05:07:16 +01:00
test_trust_utils.sh testprogs/blackbox: PY3 bulk change for python scripts use correct python 2018-11-14 05:07:16 +01:00
test_wintest.sh Remove some bashisms from the test scripts 2018-02-19 07:36:23 +01:00
tfork.sh lib/util: add a test for samba_runcmd_send() 2017-04-20 16:53:16 +02:00
tombstones-expunge.sh blackbox/*.sh: pass -u to 'diff' 2019-03-14 02:12:19 +00:00
upgradeprovision-oldrelease.sh testprogs/blackbox: Use PYTHON env variable for calling python scripts 2018-10-23 05:50:25 +02:00