From d462b025c385537ff0c9107cd3dc7aa32288b209 Mon Sep 17 00:00:00 2001 From: Michael Rash Date: Sat, 30 Apr 2016 09:36:36 -0400 Subject: [PATCH] [test suite] fix sudo tests (localhost -> ALL) from @oneru --- test/tests/rijndael_hmac_cmd_exec.pl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/tests/rijndael_hmac_cmd_exec.pl b/test/tests/rijndael_hmac_cmd_exec.pl index 9feebb03..ef757de6 100644 --- a/test/tests/rijndael_hmac_cmd_exec.pl +++ b/test/tests/rijndael_hmac_cmd_exec.pl @@ -123,7 +123,7 @@ ### the touch binary, which might change from system to system. Also ### 'USER' is swapped out with the owner of the test suite files ### (not necessarily root). - 'sudo_conf' => 'USER localhost = NOPASSWD: /usr/bin/cat, TOUCH', + 'sudo_conf' => 'USER ALL = NOPASSWD: /usr/bin/cat, TOUCH', 'cmd_exec_file_owner' => 'root', 'fw_rule_created' => $REQUIRE_NO_NEW_RULE, }, @@ -138,7 +138,7 @@ 'fwknopd_cmdline' => "$fwknopdCmd -c $cf{'def'} -a $sudo_access_conf " . "-d $default_digest_file -p $default_pid_file $intf_str", 'sudo_test' => $YES, - 'sudo_conf' => 'USER localhost = NOPASSWD: /usr/bin/cat, (root) TOUCH', + 'sudo_conf' => 'USER ALL = NOPASSWD: /usr/bin/cat, (root) TOUCH', 'sudo_exec_user' => $YES, 'cmd_exec_file_owner' => 'USER', 'fw_rule_created' => $REQUIRE_NO_NEW_RULE, @@ -156,7 +156,7 @@ "-d $default_digest_file -p $default_pid_file $intf_str", 'sudo_test' => $YES, 'exec_user' => $YES, - 'sudo_conf' => 'USER localhost = NOPASSWD: /usr/bin/cat, TOUCH', + 'sudo_conf' => 'USER ALL = NOPASSWD: /usr/bin/cat, TOUCH', 'sudo_exec_user' => $YES, 'cmd_exec_file_not_created' => $YES, 'fw_rule_created' => $REQUIRE_NO_NEW_RULE, @@ -174,7 +174,7 @@ "-d $default_digest_file -p $default_pid_file $intf_str", 'sudo_test' => $YES, 'exec_user' => $YES, - 'sudo_conf' => 'USER localhost = NOPASSWD: /usr/bin/cat, (USER) TOUCH', + 'sudo_conf' => 'USER ALL = NOPASSWD: /usr/bin/cat, (USER) TOUCH', 'sudo_exec_user' => $YES, 'cmd_exec_file_owner' => 'USER', 'fw_rule_created' => $REQUIRE_NO_NEW_RULE, @@ -191,7 +191,7 @@ "-d $default_digest_file -p $default_pid_file $intf_str", 'sudo_test' => $YES, 'exec_user' => $YES, - 'sudo_conf' => 'USER localhost = NOPASSWD: /usr/bin/cat, (baduser) TOUCH', + 'sudo_conf' => 'USER ALL = NOPASSWD: /usr/bin/cat, (baduser) TOUCH', 'sudo_exec_user' => $YES, 'cmd_exec_file_not_created' => $YES, 'fw_rule_created' => $REQUIRE_NO_NEW_RULE, @@ -209,7 +209,7 @@ "-d $default_digest_file -p $default_pid_file $intf_str", 'sudo_test' => $YES, 'exec_user' => $YES, - 'sudo_conf' => 'USER localhost = NOPASSWD: /usr/bin/cat, notouchcmd', + 'sudo_conf' => 'USER ALL = NOPASSWD: /usr/bin/cat, notouchcmd', 'sudo_exec_user' => $YES, 'cmd_exec_file_not_created' => $YES, 'fw_rule_created' => $REQUIRE_NO_NEW_RULE, @@ -227,7 +227,7 @@ "-d $default_digest_file -p $default_pid_file $intf_str", 'sudo_test' => $YES, 'exec_user' => $YES, - 'sudo_conf' => 'USER localhost = NOPASSWD: /usr/bin/cat, (USER : USER) TOUCH', + 'sudo_conf' => 'USER ALL = NOPASSWD: /usr/bin/cat, (USER : USER) TOUCH', 'sudo_exec_user' => $YES, 'cmd_exec_file_owner' => 'USER', 'fw_rule_created' => $REQUIRE_NO_NEW_RULE, @@ -244,7 +244,7 @@ "-d $default_digest_file -p $default_pid_file $intf_str", 'sudo_test' => $YES, 'exec_user' => $YES, - 'sudo_conf' => 'USER localhost = NOPASSWD: /usr/bin/cat, (USER : USER) TOUCH', + 'sudo_conf' => 'USER ALL = NOPASSWD: /usr/bin/cat, (USER : USER) TOUCH', 'sudo_exec_user' => $YES, 'sudo_exec_group' => $YES, 'cmd_exec_file_owner' => 'USER',