From 68fe713335183dd37ced78821711c2a3f1ea2cc7 Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Sat, 25 Jan 2014 04:22:09 -0500 Subject: Ignore MP_STATE_DIRECTORY in suid plugins If a plugin still has suid privileges at the time np_enable_state() is called, the MP_STATE_DIRECTORY environment will be ignored. There is no need for a NEWS entry as no suid plugins use np_enable_state yet. --- lib/tests/test_utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/tests') diff --git a/lib/tests/test_utils.c b/lib/tests/test_utils.c index 12252f48..8c3ee229 100644 --- a/lib/tests/test_utils.c +++ b/lib/tests/test_utils.c @@ -38,7 +38,7 @@ main (int argc, char **argv) state_data *temp_state_data; time_t current_time; - plan_tests(150); + plan_tests(151); ok( this_monitoring_plugin==NULL, "monitoring_plugin not initialised"); @@ -440,6 +440,8 @@ main (int argc, char **argv) ok( this_monitoring_plugin==NULL, "Free'd this_monitoring_plugin" ); + ok( mp_suid() == FALSE, "test aren't suid" ); + return exit_status(); } -- cgit v1.2.3-74-g34f1