diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/zen/cmds/builds_cmd.cpp | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/zen/cmds/builds_cmd.cpp b/src/zen/cmds/builds_cmd.cpp index 2c6b8e50e..0c77db2a0 100644 --- a/src/zen/cmds/builds_cmd.cpp +++ b/src/zen/cmds/builds_cmd.cpp @@ -65,45 +65,6 @@ namespace zen { using namespace std::literals; namespace { - namespace zenutil { - -#if ZEN_PLATFORM_WINDOWS - class SecurityAttributes - { - public: - inline SECURITY_ATTRIBUTES* Attributes() { return &m_Attributes; } - - protected: - SECURITY_ATTRIBUTES m_Attributes{}; - SECURITY_DESCRIPTOR m_Sd{}; - }; - - // Security attributes which allows any user access - - class AnyUserSecurityAttributes : public SecurityAttributes - { - public: - AnyUserSecurityAttributes() - { - m_Attributes.nLength = sizeof m_Attributes; - m_Attributes.bInheritHandle = false; // Disable inheritance - - const BOOL Success = InitializeSecurityDescriptor(&m_Sd, SECURITY_DESCRIPTOR_REVISION); - - if (Success) - { - if (!SetSecurityDescriptorDacl(&m_Sd, TRUE, (PACL)NULL, FALSE)) - { - ThrowLastError("SetSecurityDescriptorDacl failed"); - } - - m_Attributes.lpSecurityDescriptor = &m_Sd; - } - } - }; -#endif // ZEN_PLATFORM_WINDOWS - - } // namespace zenutil static std::atomic<bool> AbortFlag = false; static std::atomic<bool> PauseFlag = false; |