Move SddlAdministratorsLocalSystem to non-platform specific file

Signed-off-by: Ameya Gawde <agawde@mirantis.com>
This commit is contained in:
Ameya Gawde 2023-07-25 09:54:09 -07:00
parent e6b06e24fd
commit 3f2620f5b1
No known key found for this signature in database
GPG key ID: 64765AF5C5C36611
2 changed files with 4 additions and 3 deletions

View file

@ -6,6 +6,10 @@ import (
"strings"
)
// SddlAdministratorsLocalSystem is local administrators plus NT AUTHORITY\System.
// For non-Windows machine, it holds no meaning.
const SddlAdministratorsLocalSystem = "D:P(A;OICI;GA;;;BA)(A;OICI;GA;;;SY)"
// IsAbs is a platform-agnostic wrapper for filepath.IsAbs.
//
// On Windows, golang filepath.IsAbs does not consider a path \windows\system32

View file

@ -9,9 +9,6 @@ import (
"golang.org/x/sys/windows"
)
// SddlAdministratorsLocalSystem is local administrators plus NT AUTHORITY\System.
const SddlAdministratorsLocalSystem = "D:P(A;OICI;GA;;;BA)(A;OICI;GA;;;SY)"
// volumePath is a regular expression to check if a path is a Windows
// volume path (e.g., "\\?\Volume{4c1b02c1-d990-11dc-99ae-806e6f6e6963}"
// or "\\?\Volume{4c1b02c1-d990-11dc-99ae-806e6f6e6963}\").