From 7643102ccde50c63d51b1bbd5831be2c6f5b7917 Mon Sep 17 00:00:00 2001 From: shreyamalviya Date: Thu, 10 Jun 2021 16:55:56 +0530 Subject: [PATCH] Rename function to not use abbreviations --- monkey/monkey_island/cc/environment/utils.py | 4 +++- monkey/monkey_island/cc/environment/windows_permissions.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/monkey/monkey_island/cc/environment/utils.py b/monkey/monkey_island/cc/environment/utils.py index 866cf5d4f..fb239221c 100644 --- a/monkey/monkey_island/cc/environment/utils.py +++ b/monkey/monkey_island/cc/environment/utils.py @@ -40,7 +40,9 @@ def _create_secure_directory_linux(path: str): def _create_secure_directory_windows(path: str): try: security_attributes = win32security.SECURITY_ATTRIBUTES() - security_attributes.SECURITY_DESCRIPTOR = windows_permissions.get_sd_for_owner_only_perms() + security_attributes.SECURITY_DESCRIPTOR = ( + windows_permissions.get_security_descriptor_for_owner_only_perms() + ) win32file.CreateDirectory(path, security_attributes) except Exception as ex: LOG.error( diff --git a/monkey/monkey_island/cc/environment/windows_permissions.py b/monkey/monkey_island/cc/environment/windows_permissions.py index 02640e734..f090083f6 100644 --- a/monkey/monkey_island/cc/environment/windows_permissions.py +++ b/monkey/monkey_island/cc/environment/windows_permissions.py @@ -4,7 +4,7 @@ import win32con import win32security -def get_sd_for_owner_only_perms() -> None: +def get_security_descriptor_for_owner_only_perms() -> None: user = get_user_pySID_object() security_descriptor = win32security.SECURITY_DESCRIPTOR()