From 12cb35c470ba0c6dd4c7857fa63c3ea8a228d1e7 Mon Sep 17 00:00:00 2001 From: Sergey Cherevko Date: Mon, 18 Dec 2023 13:39:23 +0300 Subject: [PATCH] Added MSVSphere support --- base/password.py | 1 + base/validation.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/base/password.py b/base/password.py index 42c42f8..e1abd39 100644 --- a/base/password.py +++ b/base/password.py @@ -39,6 +39,7 @@ AUTH_TYPES = {'mepis': 'su', 'fedora': 'su', 'redhat': 'su', 'rhel': 'su', + 'msvsphere': 'su', 'slackware': 'su', 'gentoo': 'su', 'redflag': 'su', diff --git a/base/validation.py b/base/validation.py index d555f12..26f8aa3 100644 --- a/base/validation.py +++ b/base/validation.py @@ -55,7 +55,7 @@ class GPG_Verification(DigiSign_Verification): if not os.path.exists(self.__gpg_dir): try: - os.mkdir(self.__gpg_dir, 0o755) + os.mkdir(self.__gpg_dir, 0o700) except OSError: log.error("Failed to create %s" % self.__gpg_dir) self.__change_owner() -- 2.39.3