From 7fe10af1b240c85293463b74b7946b43f53587b0 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Wed, 9 Jun 2021 13:55:48 -0400 Subject: [PATCH] island: Pass int, not str to has_expected_permissions() --- .../monkey_island/cc/setup/island_config_options_validator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/setup/island_config_options_validator.py b/monkey/monkey_island/cc/setup/island_config_options_validator.py index fcfa524ca..5febe16ab 100644 --- a/monkey/monkey_island/cc/setup/island_config_options_validator.py +++ b/monkey/monkey_island/cc/setup/island_config_options_validator.py @@ -26,7 +26,7 @@ def _raise_if_incorrect_permissions( f: str, linux_expected_permissions: int, windows_expected_permissions: int ): expected_permissions = ( - windows_expected_permissions if is_windows_os() else oct(linux_expected_permissions) + windows_expected_permissions if is_windows_os() else linux_expected_permissions ) if not has_expected_permissions(f, expected_permissions): raise InsecurePermissionsError(