diff options
| author | Stefan Boberg <[email protected]> | 2025-08-27 17:32:03 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2025-08-27 17:32:03 +0200 |
| commit | 5bc18f74e6e87b7ea9d7cc34e777719dc5edd3b3 (patch) | |
| tree | b07659ea0ce05d9cf7de1437ad920159c0473212 /src | |
| parent | Merge remote-tracking branch 'origin/main' into sb/zen-master (diff) | |
| download | zen-5bc18f74e6e87b7ea9d7cc34e777719dc5edd3b3.tar.xz zen-5bc18f74e6e87b7ea9d7cc34e777719dc5edd3b3.zip | |
removed AnyUserSecurityAttributes (not used)
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; |