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:
@ -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;
|
||||
|
Reference in New Issue
Block a user