diff options
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2014-01-25 09:22:09 (GMT) |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2014-01-25 09:22:09 (GMT) |
commit | 68fe713335183dd37ced78821711c2a3f1ea2cc7 (patch) | |
tree | b558cc2a200249002d2716a9e3803c272fb01aaf /lib/tests/test_utils.c | |
parent | 25a289f307270bb8f814a2df923aeab50acd50c6 (diff) | |
download | monitoring-plugins-68fe713335183dd37ced78821711c2a3f1ea2cc7.tar.gz |
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.
Diffstat (limited to 'lib/tests/test_utils.c')
-rw-r--r-- | lib/tests/test_utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/tests/test_utils.c b/lib/tests/test_utils.c index 12252f4..8c3ee22 100644 --- a/lib/tests/test_utils.c +++ b/lib/tests/test_utils.c | |||
@@ -38,7 +38,7 @@ main (int argc, char **argv) | |||
38 | state_data *temp_state_data; | 38 | state_data *temp_state_data; |
39 | time_t current_time; | 39 | time_t current_time; |
40 | 40 | ||
41 | plan_tests(150); | 41 | plan_tests(151); |
42 | 42 | ||
43 | ok( this_monitoring_plugin==NULL, "monitoring_plugin not initialised"); | 43 | ok( this_monitoring_plugin==NULL, "monitoring_plugin not initialised"); |
44 | 44 | ||
@@ -440,6 +440,8 @@ main (int argc, char **argv) | |||
440 | 440 | ||
441 | ok( this_monitoring_plugin==NULL, "Free'd this_monitoring_plugin" ); | 441 | ok( this_monitoring_plugin==NULL, "Free'd this_monitoring_plugin" ); |
442 | 442 | ||
443 | ok( mp_suid() == FALSE, "test aren't suid" ); | ||
444 | |||
443 | return exit_status(); | 445 | return exit_status(); |
444 | } | 446 | } |
445 | 447 | ||