1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-15471 Isolate/sandbox PAM modules, so that they can't crash the server

tests fixed.
This commit is contained in:
Alexey Botchkov
2018-07-04 21:52:01 +04:00
parent de745ecf29
commit 725c3df53e
5 changed files with 29 additions and 24 deletions

View File

@ -1,4 +1,4 @@
let $PAM_PLUGIN_VERSION= $AUTH_PAM_V1_SO;
--source pam_init.inc
--write_file $MYSQLTEST_VARDIR/tmp/pam_good.txt
@ -25,12 +25,6 @@ EOF
--error 1
--exec $MYSQL_TEST -u test_pam --plugin-dir=$plugindir < $MYSQLTEST_VARDIR/tmp/pam_bad.txt
--echo #
--echo # pam module crashes
--echo #
--error 1
--exec $MYSQL_TEST -u crash_pam_tool --plugin-dir=$plugindir < $MYSQLTEST_VARDIR/tmp/pam_good.txt
--remove_file $MYSQLTEST_VARDIR/tmp/pam_good.txt
--remove_file $MYSQLTEST_VARDIR/tmp/pam_bad.txt
drop user test_pam;